From ff616af86d76b343989d3a455bc6634bb685b954 Mon Sep 17 00:00:00 2001 From: webprofusion-chrisc Date: Mon, 29 Jan 2024 16:22:05 +0800 Subject: [PATCH] Update 8.6.0 --- 1315.47f532243e702ebc.js => 1315.dc5521f963e4ba4e.js | 2 +- 1372.4d08c3619ccb9c02.js => 1372.049789db1a9c05dd.js | 2 +- 1745.d1821f88b5b88536.js => 1745.43da8ed3a83550af.js | 2 +- 185.148db3edf3f541cd.js | 1 - 185.ec7c2780f32d9a4f.js | 1 + 2841.bb9b54b2ef2ba816.js => 2841.78ee00a2c2e64dfe.js | 2 +- 2975.18612941c0cbf5ad.js | 1 + 2975.62ffd62add59be22.js | 1 - 3150.58bfc3fd60eb642b.js => 3150.bf0b42d10fb4b78e.js | 2 +- 3483.641d1e89bd90f639.js | 1 + 3483.91811fdb183a3e14.js | 1 - 3544.852eb714f33ef324.js => 3544.55827b13c2d5e2f0.js | 2 +- 3672.06013441ef2f96e2.js | 1 - 3672.e917aad16f9ba8c0.js | 1 + 3734.4e95f8c0a56d424d.js | 1 + 3734.7a8ff8ec9e82884f.js | 1 - 3998.7c6bd11685c135f4.js => 3998.c64f721d045730d5.js | 2 +- 4087.9b029ba21122026d.js => 4087.db66ef8a109ac573.js | 2 +- 4090.f398639c670f5e5d.js => 4090.13e5e6fc3a42f9bc.js | 2 +- 433.cef341761d760619.js => 433.1ebc9a1caea70989.js | 2 +- 4458.5fd66ad24f883dd1.js | 1 - 4458.99e9fced430ef937.js | 1 + 4530.07789d0977a90397.js | 1 + 4530.0d8921ee1a086632.js | 1 - 469.2dad78fe404d096a.js | 1 + 469.a2803c28c005f4f2.js | 1 - 4764.fc73c49a566dcee1.js => 4764.0635bd3a2a2fcc3a.js | 2 +- 4882.0746da0b521efd7a.js | 1 + 505.fd27da52b7a1275a.js => 505.243e4adcc3646d7d.js | 2 +- 5248.b9f582f469842254.js | 1 + 5454.c21ce327af63c8e5.js => 5454.0eccc433a18a0595.js | 2 +- 5675.4f38009025b018d4.js | 1 - 5675.5096099c01862d0b.js | 1 + 5860.65c4f663e067f0ac.js | 1 + 5860.a2c78dc150394f51.js | 1 - 5962.77be1af1d96a643b.js | 1 - 5962.9043fc63a5d0595e.js | 1 + 6304.0e514baccb2a35a6.js | 1 - 6304.ce5975176f2e3528.js | 1 + 8058.92bc3c5df214f8f0.js => 6416.d2723744cffdb9ec.js | 2 +- 6642.6f1f0b0fc284bedc.js | 1 - 6642.7076da7f58e06be4.js | 1 + 6673.5c0d9275b99698ef.js => 6673.6801f9b2a82684aa.js | 2 +- 6754.19a35a2430ba9096.js | 1 + 6754.c47a7b77328193c0.js | 1 - 7059.34617710b1a82707.js | 1 + 7059.5f539cff3f4c3aaa.js | 1 - 7219.815cd4f854766a3e.js | 1 - 7219.f63835907e853f3f.js | 1 + 7465.83b0bb785617426f.js => 7465.5523aea818076ba2.js | 2 +- 7635.31c6e8c9a782e3fa.js | 1 - 7635.d0b9d1f4c6c6de67.js | 1 + 7666.24537b2ea8d6bb4c.js | 1 + 7666.29d433eae6578207.js | 1 - 5951.5a427d3c573c8c1c.js => 8315.bf1570894ba06876.js | 2 +- 8382.1741ce35366784e1.js | 1 - 8382.2b409b3cb06ad54b.js | 1 + 8484.0beab6348706abe3.js => 8484.aa4304650bb0a820.js | 2 +- 8577.4404aff3d1e23511.js | 1 - 8577.52ce6a56c6140f30.js | 1 + 8594.9d98505708847739.js => 8594.3fd983801f5e017a.js | 2 +- 8633.ed9be4c6b313b021.js => 8633.9b7a5e4ce63aec7e.js | 2 +- 8811.ebab0417cd0088bd.js => 8811.f9369853f077be45.js | 2 +- 8866.4db2bfc4d5f24800.js | 1 + 8866.c9fb9b42d8600530.js | 1 - 8895.e40046089c8493e3.js | 1 - 9302.450c869ee8f15fac.js | 1 - 9352.1824a3c4aeabc76f.js | 1 + 9352.7d84c3937ff46d66.js | 1 - 9588.fbad7ea635d3c2fc.js => 9588.10e5e908d9a70ed5.js | 2 +- 962.104efbb8dc4483c5.js | 1 - 962.15d012086f54e986.js | 1 + 9793.3154faefc8b0b5c6.js | 1 + 9793.3cf2993fddb73d56.js | 1 - 9820.5e3b370abd56fba1.js | 1 - 9820.84c624a4a3200641.js | 1 + 9857.1213480377202a1b.js => 9857.518fb0b02b3f2a97.js | 2 +- 9882.b600ed44014945da.js | 1 + 9882.e3658b6c6b8ad9ea.js | 1 - 9992.3d010baba94dc440.js | 1 + 9992.afc949ac608758b1.js | 1 - common.557d5670fd4f041f.js | 1 + common.b80dfddfac2df0b6.js | 1 - index.html | 4 ++-- main.1f9c03df2475c29a.js | 1 - main.778056336ac5de0e.js | 1 + runtime.5c00b4562f134a92.js | 1 + runtime.77eca2ec69c0779f.js | 1 - styles.13e3bb3a8a8c763f.css | 1 + styles.bc4974fee20802c3.css | 1 - 90 files changed, 58 insertions(+), 58 deletions(-) rename 1315.47f532243e702ebc.js => 1315.dc5521f963e4ba4e.js (99%) rename 1372.4d08c3619ccb9c02.js => 1372.049789db1a9c05dd.js (76%) rename 1745.d1821f88b5b88536.js => 1745.43da8ed3a83550af.js (96%) delete mode 100644 185.148db3edf3f541cd.js create mode 100644 185.ec7c2780f32d9a4f.js rename 2841.bb9b54b2ef2ba816.js => 2841.78ee00a2c2e64dfe.js (93%) create mode 100644 2975.18612941c0cbf5ad.js delete mode 100644 2975.62ffd62add59be22.js rename 3150.58bfc3fd60eb642b.js => 3150.bf0b42d10fb4b78e.js (98%) create mode 100644 3483.641d1e89bd90f639.js delete mode 100644 3483.91811fdb183a3e14.js rename 3544.852eb714f33ef324.js => 3544.55827b13c2d5e2f0.js (96%) delete mode 100644 3672.06013441ef2f96e2.js create mode 100644 3672.e917aad16f9ba8c0.js create mode 100644 3734.4e95f8c0a56d424d.js delete mode 100644 3734.7a8ff8ec9e82884f.js rename 3998.7c6bd11685c135f4.js => 3998.c64f721d045730d5.js (99%) rename 4087.9b029ba21122026d.js => 4087.db66ef8a109ac573.js (99%) rename 4090.f398639c670f5e5d.js => 4090.13e5e6fc3a42f9bc.js (99%) rename 433.cef341761d760619.js => 433.1ebc9a1caea70989.js (97%) delete mode 100644 4458.5fd66ad24f883dd1.js create mode 100644 4458.99e9fced430ef937.js create mode 100644 4530.07789d0977a90397.js delete mode 100644 4530.0d8921ee1a086632.js create mode 100644 469.2dad78fe404d096a.js delete mode 100644 469.a2803c28c005f4f2.js rename 4764.fc73c49a566dcee1.js => 4764.0635bd3a2a2fcc3a.js (98%) create mode 100644 4882.0746da0b521efd7a.js rename 505.fd27da52b7a1275a.js => 505.243e4adcc3646d7d.js (98%) create mode 100644 5248.b9f582f469842254.js rename 5454.c21ce327af63c8e5.js => 5454.0eccc433a18a0595.js (99%) delete mode 100644 5675.4f38009025b018d4.js create mode 100644 5675.5096099c01862d0b.js create mode 100644 5860.65c4f663e067f0ac.js delete mode 100644 5860.a2c78dc150394f51.js delete mode 100644 5962.77be1af1d96a643b.js create mode 100644 5962.9043fc63a5d0595e.js delete mode 100644 6304.0e514baccb2a35a6.js create mode 100644 6304.ce5975176f2e3528.js rename 8058.92bc3c5df214f8f0.js => 6416.d2723744cffdb9ec.js (59%) delete mode 100644 6642.6f1f0b0fc284bedc.js create mode 100644 6642.7076da7f58e06be4.js rename 6673.5c0d9275b99698ef.js => 6673.6801f9b2a82684aa.js (98%) create mode 100644 6754.19a35a2430ba9096.js delete mode 100644 6754.c47a7b77328193c0.js create mode 100644 7059.34617710b1a82707.js delete mode 100644 7059.5f539cff3f4c3aaa.js delete mode 100644 7219.815cd4f854766a3e.js create mode 100644 7219.f63835907e853f3f.js rename 7465.83b0bb785617426f.js => 7465.5523aea818076ba2.js (97%) delete mode 100644 7635.31c6e8c9a782e3fa.js create mode 100644 7635.d0b9d1f4c6c6de67.js create mode 100644 7666.24537b2ea8d6bb4c.js delete mode 100644 7666.29d433eae6578207.js rename 5951.5a427d3c573c8c1c.js => 8315.bf1570894ba06876.js (51%) delete mode 100644 8382.1741ce35366784e1.js create mode 100644 8382.2b409b3cb06ad54b.js rename 8484.0beab6348706abe3.js => 8484.aa4304650bb0a820.js (98%) delete mode 100644 8577.4404aff3d1e23511.js create mode 100644 8577.52ce6a56c6140f30.js rename 8594.9d98505708847739.js => 8594.3fd983801f5e017a.js (74%) rename 8633.ed9be4c6b313b021.js => 8633.9b7a5e4ce63aec7e.js (99%) rename 8811.ebab0417cd0088bd.js => 8811.f9369853f077be45.js (55%) create mode 100644 8866.4db2bfc4d5f24800.js delete mode 100644 8866.c9fb9b42d8600530.js delete mode 100644 8895.e40046089c8493e3.js delete mode 100644 9302.450c869ee8f15fac.js create mode 100644 9352.1824a3c4aeabc76f.js delete mode 100644 9352.7d84c3937ff46d66.js rename 9588.fbad7ea635d3c2fc.js => 9588.10e5e908d9a70ed5.js (95%) delete mode 100644 962.104efbb8dc4483c5.js create mode 100644 962.15d012086f54e986.js create mode 100644 9793.3154faefc8b0b5c6.js delete mode 100644 9793.3cf2993fddb73d56.js delete mode 100644 9820.5e3b370abd56fba1.js create mode 100644 9820.84c624a4a3200641.js rename 9857.1213480377202a1b.js => 9857.518fb0b02b3f2a97.js (90%) create mode 100644 9882.b600ed44014945da.js delete mode 100644 9882.e3658b6c6b8ad9ea.js create mode 100644 9992.3d010baba94dc440.js delete mode 100644 9992.afc949ac608758b1.js create mode 100644 common.557d5670fd4f041f.js delete mode 100644 common.b80dfddfac2df0b6.js delete mode 100644 main.1f9c03df2475c29a.js create mode 100644 main.778056336ac5de0e.js create mode 100644 runtime.5c00b4562f134a92.js delete mode 100644 runtime.77eca2ec69c0779f.js create mode 100644 styles.13e3bb3a8a8c763f.css delete mode 100644 styles.bc4974fee20802c3.css diff --git a/1315.47f532243e702ebc.js b/1315.dc5521f963e4ba4e.js similarity index 99% rename from 1315.47f532243e702ebc.js rename to 1315.dc5521f963e4ba4e.js index 2ec2e975..19923a62 100644 --- a/1315.47f532243e702ebc.js +++ b/1315.dc5521f963e4ba4e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1315],{1315:(b,p,r)=>{r.r(p),r.d(p,{ion_col:()=>s,ion_grid:()=>l,ion_row:()=>m});var d=r(5349),o=r(3882);const c={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},x=i=>void 0===i||""===i||!!window.matchMedia&&window.matchMedia(c[i]).matches,g=typeof window<"u"?window:void 0,e=g&&!!(g.CSS&&g.CSS.supports&&g.CSS.supports("--a: 0")),h=["","xs","sm","md","lg","xl"],s=class{constructor(i){(0,d.r)(this,i),this.offset=void 0,this.offsetXs=void 0,this.offsetSm=void 0,this.offsetMd=void 0,this.offsetLg=void 0,this.offsetXl=void 0,this.pull=void 0,this.pullXs=void 0,this.pullSm=void 0,this.pullMd=void 0,this.pullLg=void 0,this.pullXl=void 0,this.push=void 0,this.pushXs=void 0,this.pushSm=void 0,this.pushMd=void 0,this.pushLg=void 0,this.pushXl=void 0,this.size=void 0,this.sizeXs=void 0,this.sizeSm=void 0,this.sizeMd=void 0,this.sizeLg=void 0,this.sizeXl=void 0}onResize(){(0,d.i)(this)}getColumns(i){let n;for(const a of h){const t=x(a),u=this[i+a.charAt(0).toUpperCase()+a.slice(1)];t&&void 0!==u&&(n=u)}return n}calculateSize(){const i=this.getColumns("size");if(!i||""===i)return;const n="auto"===i?"auto":e?`calc(calc(${i} / var(--ion-grid-columns, 12)) * 100%)`:i/12*100+"%";return{flex:`0 0 ${n}`,width:`${n}`,"max-width":`${n}`}}calculatePosition(i,n){const a=this.getColumns(i);if(a)return{[n]:e?`calc(calc(${a} / var(--ion-grid-columns, 12)) * 100%)`:a>0&&a<12?a/12*100+"%":"auto"}}calculateOffset(i){return this.calculatePosition("offset",i?"margin-right":"margin-left")}calculatePull(i){return this.calculatePosition("pull",i?"left":"right")}calculatePush(i){return this.calculatePosition("push",i?"right":"left")}render(){const i="rtl"===document.dir,n=(0,o.b)(this);return(0,d.h)(d.H,{class:{[n]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(i)),this.calculatePull(i)),this.calculatePush(i)),this.calculateSize())},(0,d.h)("slot",null))}};s.style=":host{-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}";const l=class{constructor(i){(0,d.r)(this,i),this.fixed=!1}render(){const i=(0,o.b)(this);return(0,d.h)(d.H,{class:{[i]:!0,"grid-fixed":this.fixed}},(0,d.h)("slot",null))}};l.style=":host{-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;-ms-flex:1;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}";const m=class{constructor(i){(0,d.r)(this,i)}render(){return(0,d.h)(d.H,{class:(0,o.b)(this)},(0,d.h)("slot",null))}};m.style=":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}"}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1315],{1315:(b,p,r)=>{r.r(p),r.d(p,{ion_col:()=>s,ion_grid:()=>l,ion_row:()=>m});var d=r(9942),o=r(5551);const c={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"},x=i=>void 0===i||""===i||!!window.matchMedia&&window.matchMedia(c[i]).matches,g=typeof window<"u"?window:void 0,e=g&&!!(g.CSS&&g.CSS.supports&&g.CSS.supports("--a: 0")),h=["","xs","sm","md","lg","xl"],s=class{constructor(i){(0,d.r)(this,i),this.offset=void 0,this.offsetXs=void 0,this.offsetSm=void 0,this.offsetMd=void 0,this.offsetLg=void 0,this.offsetXl=void 0,this.pull=void 0,this.pullXs=void 0,this.pullSm=void 0,this.pullMd=void 0,this.pullLg=void 0,this.pullXl=void 0,this.push=void 0,this.pushXs=void 0,this.pushSm=void 0,this.pushMd=void 0,this.pushLg=void 0,this.pushXl=void 0,this.size=void 0,this.sizeXs=void 0,this.sizeSm=void 0,this.sizeMd=void 0,this.sizeLg=void 0,this.sizeXl=void 0}onResize(){(0,d.i)(this)}getColumns(i){let n;for(const a of h){const t=x(a),u=this[i+a.charAt(0).toUpperCase()+a.slice(1)];t&&void 0!==u&&(n=u)}return n}calculateSize(){const i=this.getColumns("size");if(!i||""===i)return;const n="auto"===i?"auto":e?`calc(calc(${i} / var(--ion-grid-columns, 12)) * 100%)`:i/12*100+"%";return{flex:`0 0 ${n}`,width:`${n}`,"max-width":`${n}`}}calculatePosition(i,n){const a=this.getColumns(i);if(a)return{[n]:e?`calc(calc(${a} / var(--ion-grid-columns, 12)) * 100%)`:a>0&&a<12?a/12*100+"%":"auto"}}calculateOffset(i){return this.calculatePosition("offset",i?"margin-right":"margin-left")}calculatePull(i){return this.calculatePosition("pull",i?"left":"right")}calculatePush(i){return this.calculatePosition("push",i?"right":"left")}render(){const i="rtl"===document.dir,n=(0,o.b)(this);return(0,d.h)(d.H,{class:{[n]:!0},style:Object.assign(Object.assign(Object.assign(Object.assign({},this.calculateOffset(i)),this.calculatePull(i)),this.calculatePush(i)),this.calculateSize())},(0,d.h)("slot",null))}};s.style=":host{-webkit-padding-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xs, var(--ion-grid-column-padding, 5px));margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;width:100%;max-width:100%;min-height:1px}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-sm, var(--ion-grid-column-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-md, var(--ion-grid-column-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-lg, var(--ion-grid-column-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-start:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));-webkit-padding-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-inline-end:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-top:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px));padding-bottom:var(--ion-grid-column-padding-xl, var(--ion-grid-column-padding, 5px))}}";const l=class{constructor(i){(0,d.r)(this,i),this.fixed=!1}render(){const i=(0,o.b)(this);return(0,d.h)(d.H,{class:{[i]:!0,"grid-fixed":this.fixed}},(0,d.h)("slot",null))}};l.style=":host{-webkit-padding-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xs, var(--ion-grid-padding, 5px));-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;display:block;-ms-flex:1;flex:1}@media (min-width: 576px){:host{-webkit-padding-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-sm, var(--ion-grid-padding, 5px))}}@media (min-width: 768px){:host{-webkit-padding-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-md, var(--ion-grid-padding, 5px))}}@media (min-width: 992px){:host{-webkit-padding-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-lg, var(--ion-grid-padding, 5px))}}@media (min-width: 1200px){:host{-webkit-padding-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-start:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));-webkit-padding-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-inline-end:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-top:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px));padding-bottom:var(--ion-grid-padding-xl, var(--ion-grid-padding, 5px))}}:host(.grid-fixed){width:var(--ion-grid-width-xs, var(--ion-grid-width, 100%));max-width:100%}@media (min-width: 576px){:host(.grid-fixed){width:var(--ion-grid-width-sm, var(--ion-grid-width, 540px))}}@media (min-width: 768px){:host(.grid-fixed){width:var(--ion-grid-width-md, var(--ion-grid-width, 720px))}}@media (min-width: 992px){:host(.grid-fixed){width:var(--ion-grid-width-lg, var(--ion-grid-width, 960px))}}@media (min-width: 1200px){:host(.grid-fixed){width:var(--ion-grid-width-xl, var(--ion-grid-width, 1140px))}}:host(.ion-no-padding){--ion-grid-column-padding:0;--ion-grid-column-padding-xs:0;--ion-grid-column-padding-sm:0;--ion-grid-column-padding-md:0;--ion-grid-column-padding-lg:0;--ion-grid-column-padding-xl:0}";const m=class{constructor(i){(0,d.r)(this,i)}render(){return(0,d.h)(d.H,{class:(0,o.b)(this)},(0,d.h)("slot",null))}};m.style=":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}"}}]); \ No newline at end of file diff --git a/1372.4d08c3619ccb9c02.js b/1372.049789db1a9c05dd.js similarity index 76% rename from 1372.4d08c3619ccb9c02.js rename to 1372.049789db1a9c05dd.js index be357480..4f94f6ea 100644 --- a/1372.4d08c3619ccb9c02.js +++ b/1372.049789db1a9c05dd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1372],{1372:(F,m,c)=>{c.r(m),c.d(m,{ion_button:()=>E,ion_icon:()=>M});var r=c(5349),k=c(839),f=c(6710),u=c(3567),w=c(3882);let p;const l=(o,t,n,i,e)=>(n="ios"===(n&&y(n))?"ios":"md",i&&"ios"===n?o=y(i):e&&"md"===n?o=y(e):(!o&&t&&!g(t)&&(o=t),d(o)&&(o=y(o))),d(o)&&""!==o.trim()&&""===o.replace(/[a-z]|-|\d/gi,"")?o:null),h=o=>d(o)&&(o=o.trim(),g(o))?o:null,g=o=>o.length>0&&/(\/|\.)/.test(o),d=o=>"string"==typeof o,y=o=>o.toLowerCase(),P=o=>o&&""!==o.dir?"rtl"===o.dir.toLowerCase():"rtl"===document?.dir.toLowerCase(),E=class{constructor(o){(0,r.r)(this,o),this.ionFocus=(0,r.d)(this,"ionFocus",7),this.ionBlur=(0,r.d)(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.handleClick=t=>{const{el:n}=this;"button"===this.type?(0,u.o)(this.href,t,this.routerDirection,this.routerAnimation):(0,k.n)(n)&&this.submitForm(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.color=void 0,this.buttonType="button",this.disabled=!1,this.expand=void 0,this.fill=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.download=void 0,this.href=void 0,this.rel=void 0,this.shape=void 0,this.size=void 0,this.strong=!1,this.target=void 0,this.type="button",this.form=void 0}disabledChanged(){const{disabled:o}=this;this.formButtonEl&&(this.formButtonEl.disabled=o)}renderHiddenButton(){const o=this.formEl=this.findForm();if(o){const{formButtonEl:t}=this;if(null!==t&&o.contains(t))return;const n=this.formButtonEl=document.createElement("button");n.type=this.type,n.style.display="none",n.disabled=this.disabled,o.appendChild(n)}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=(0,k.i)(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(void 0===this.fill||"clear"===this.fill)&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:o}=this;if(o instanceof HTMLFormElement)return o;if("string"==typeof o){const t=document.getElementById(o);return t?t instanceof HTMLFormElement?t:((0,f.p)(`Form with selector: "#${o}" could not be found. Verify that the id is attached to a
element.`,this.el),null):((0,f.p)(`Form with selector: "#${o}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`,this.el),null)}return void 0!==o?((0,f.p)('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',this.el),null):this.el.closest("form")}submitForm(o){this.formEl&&this.formButtonEl&&(o.preventDefault(),this.formButtonEl.click())}render(){const o=(0,w.b)(this),{buttonType:t,type:n,disabled:i,rel:e,target:x,size:v,href:O,color:G,expand:T,hasIconOnly:N,shape:A,strong:Z,inheritedAttributes:J}=this,B=void 0===v&&this.inItem?"small":v,D=void 0===O?"button":"a",Q="button"===D?{type:n}:{download:this.download,href:O,rel:e,target:x};let _=this.fill;return null==_&&(_=this.inToolbar||this.inListHeader?"clear":"solid"),"button"!==n&&this.renderHiddenButton(),(0,r.h)(r.H,{onClick:this.handleClick,"aria-disabled":i?"true":null,class:(0,u.c)(G,{[o]:!0,[t]:!0,[`${t}-${T}`]:void 0!==T,[`${t}-${B}`]:void 0!==B,[`${t}-${A}`]:void 0!==A,[`${t}-${_}`]:!0,[`${t}-strong`]:Z,"in-toolbar":(0,u.h)("ion-toolbar",this.el),"in-toolbar-color":(0,u.h)("ion-toolbar[color]",this.el),"in-buttons":(0,u.h)("ion-buttons",this.el),"button-has-icon-only":N,"button-disabled":i,"ion-activatable":!0,"ion-focusable":!0})},(0,r.h)(D,Object.assign({},Q,{class:"button-native",part:"native",disabled:i,onFocus:this.onFocus,onBlur:this.onBlur},J),(0,r.h)("span",{class:"button-inner"},(0,r.h)("slot",{name:"icon-only"}),(0,r.h)("slot",{name:"start"}),(0,r.h)("slot",null),(0,r.h)("slot",{name:"end"})),"md"===o&&(0,r.h)("ion-ripple-effect",{type:this.rippleType})))}get el(){return(0,r.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}};E.style={ios:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',md:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};const I=o=>{if(1===o.nodeType){if("script"===o.nodeName.toLowerCase())return!1;for(let t=0;t{const n={};return t.forEach(i=>{o.hasAttribute(i)&&(null!==o.getAttribute(i)&&(n[i]=o.getAttribute(i)),o.removeAttribute(i))}),n})(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(o,t,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver(e=>{e[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(o)}else n()}loadIcon(){if(this.isVisible){const o=(o=>{let t=h(o.src);return t||(t=l(o.name,o.icon,o.mode,o.ios,o.md),t?(o=>{const t=(()=>{if(typeof window>"u")return new Map;if(!p){const o=window;o.Ionicons=o.Ionicons||{},p=o.Ionicons.map=o.Ionicons.map||new Map}return p})().get(o);return t||(0,r.j)(`svg/${o}.svg`)})(t):o.icon&&(t=h(o.icon),t||(t=h(o.icon[o.mode]),t))?t:null)})(this);o&&(b.has(o)?this.svgContent=b.get(o):((o,t)=>{let n=L.get(o);if(!n){if(!(typeof fetch<"u"&&typeof document<"u"))return b.set(o,""),Promise.resolve();if((o=>o.startsWith("data:image/svg+xml"))(o)&&(o=>-1!==o.indexOf(";utf8,"))(o)){z||(z=new DOMParser);const e=z.parseFromString(o,"text/html").querySelector("svg");return e&&b.set(o,e.outerHTML),Promise.resolve()}n=fetch(o).then(i=>{if(i.ok)return i.text().then(e=>{e&&!1!==t&&(e=(o=>{const t=document.createElement("div");t.innerHTML=o;for(let i=t.childNodes.length-1;i>=0;i--)"svg"!==t.childNodes[i].nodeName.toLowerCase()&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&"svg"===n.nodeName.toLowerCase()){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),I(n))return t.innerHTML}return""})(e)),b.set(o,e||"")});b.set(o,"")}),L.set(o,n)}return n})(o,this.sanitize).then(()=>this.svgContent=b.get(o)),this.didLoadIcon=!0)}this.iconName=l(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:o,iconName:t,inheritedAttributes:n,el:i}=this,e=this.mode||"md",x=!!t&&(t.includes("arrow")||t.includes("chevron"))&&!1!==o,v=o||x;return(0,r.h)(r.H,Object.assign({role:"img",class:Object.assign(Object.assign({[e]:!0},K(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":v,"icon-rtl":v&&P(i)})},n),(0,r.h)("div",this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return(0,r.f)(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}},V=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",K=o=>o?{"ion-color":!0,[`ion-color-${o}`]:!0}:null;M.style=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"},3567:(F,m,c)=>{c.d(m,{c:()=>f,g:()=>w,h:()=>k,o:()=>C});var r=c(5861);const k=(a,s)=>null!==s.closest(a),f=(a,s)=>"string"==typeof a&&a.length>0?Object.assign({"ion-color":!0,[`ion-color-${a}`]:!0},s):s,w=a=>{const s={};return(a=>void 0!==a?(Array.isArray(a)?a:a.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(a).forEach(l=>s[l]=!0),s},p=/^[a-z][a-z0-9+\-.]*:/,C=function(){var a=(0,r.Z)(function*(s,l,h,g){if(null!=s&&"#"!==s[0]&&!p.test(s)){const d=document.querySelector("ion-router");if(d)return l?.preventDefault(),d.push(s,h,g)}return!1});return function(l,h,g,d){return a.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1372],{1372:(F,v,d)=>{d.r(v),d.d(v,{ion_button:()=>E,ion_icon:()=>M});var e=d(9942),k=d(512),f=d(2400),u=d(4459),w=d(5551);let p;const l=(o,t,n,i,r)=>(n="ios"===(n&&y(n))?"ios":"md",i&&"ios"===n?o=y(i):r&&"md"===n?o=y(r):(!o&&t&&!g(t)&&(o=t),c(o)&&(o=y(o))),c(o)&&""!==o.trim()&&""===o.replace(/[a-z]|-|\d/gi,"")?o:null),h=o=>c(o)&&(o=o.trim(),g(o))?o:null,g=o=>o.length>0&&/(\/|\.)/.test(o),c=o=>"string"==typeof o,y=o=>o.toLowerCase(),P=o=>o&&""!==o.dir?"rtl"===o.dir.toLowerCase():"rtl"===document?.dir.toLowerCase(),E=class{constructor(o){(0,e.r)(this,o),this.ionFocus=(0,e.d)(this,"ionFocus",7),this.ionBlur=(0,e.d)(this,"ionBlur",7),this.inItem=!1,this.inListHeader=!1,this.inToolbar=!1,this.formButtonEl=null,this.formEl=null,this.inheritedAttributes={},this.handleClick=t=>{const{el:n}=this;"button"===this.type?(0,u.o)(this.href,t,this.routerDirection,this.routerAnimation):(0,k.n)(n)&&this.submitForm(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.color=void 0,this.buttonType="button",this.disabled=!1,this.expand=void 0,this.fill=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.download=void 0,this.href=void 0,this.rel=void 0,this.shape=void 0,this.size=void 0,this.strong=!1,this.target=void 0,this.type="button",this.form=void 0}disabledChanged(){const{disabled:o}=this;this.formButtonEl&&(this.formButtonEl.disabled=o)}renderHiddenButton(){const o=this.formEl=this.findForm();if(o){const{formButtonEl:t}=this;if(null!==t&&o.contains(t))return;const n=this.formButtonEl=document.createElement("button");n.type=this.type,n.style.display="none",n.disabled=this.disabled,o.appendChild(n)}}componentWillLoad(){this.inToolbar=!!this.el.closest("ion-buttons"),this.inListHeader=!!this.el.closest("ion-list-header"),this.inItem=!!this.el.closest("ion-item")||!!this.el.closest("ion-item-divider"),this.inheritedAttributes=(0,k.i)(this.el)}get hasIconOnly(){return!!this.el.querySelector('[slot="icon-only"]')}get rippleType(){return(void 0===this.fill||"clear"===this.fill)&&this.hasIconOnly&&this.inToolbar?"unbounded":"bounded"}findForm(){const{form:o}=this;if(o instanceof HTMLFormElement)return o;if("string"==typeof o){const t=document.getElementById(o);return t?t instanceof HTMLFormElement?t:((0,f.p)(`Form with selector: "#${o}" could not be found. Verify that the id is attached to a element.`,this.el),null):((0,f.p)(`Form with selector: "#${o}" could not be found. Verify that the id is correct and the form is rendered in the DOM.`,this.el),null)}return void 0!==o?((0,f.p)('The provided "form" element is invalid. Verify that the form is a HTMLFormElement and rendered in the DOM.',this.el),null):this.el.closest("form")}submitForm(o){this.formEl&&this.formButtonEl&&(o.preventDefault(),this.formButtonEl.click())}render(){const o=(0,w.b)(this),{buttonType:t,type:n,disabled:i,rel:r,target:x,size:m,href:O,color:G,expand:T,hasIconOnly:N,shape:A,strong:Z,inheritedAttributes:J}=this,B=void 0===m&&this.inItem?"small":m,D=void 0===O?"button":"a",Q="button"===D?{type:n}:{download:this.download,href:O,rel:r,target:x};let _=this.fill;return null==_&&(_=this.inToolbar||this.inListHeader?"clear":"solid"),"button"!==n&&this.renderHiddenButton(),(0,e.h)(e.H,{onClick:this.handleClick,"aria-disabled":i?"true":null,class:(0,u.c)(G,{[o]:!0,[t]:!0,[`${t}-${T}`]:void 0!==T,[`${t}-${B}`]:void 0!==B,[`${t}-${A}`]:void 0!==A,[`${t}-${_}`]:!0,[`${t}-strong`]:Z,"in-toolbar":(0,u.h)("ion-toolbar",this.el),"in-toolbar-color":(0,u.h)("ion-toolbar[color]",this.el),"in-buttons":(0,u.h)("ion-buttons",this.el),"button-has-icon-only":N,"button-disabled":i,"ion-activatable":!0,"ion-focusable":!0})},(0,e.h)(D,Object.assign({},Q,{class:"button-native",part:"native",disabled:i,onFocus:this.onFocus,onBlur:this.onBlur},J),(0,e.h)("span",{class:"button-inner"},(0,e.h)("slot",{name:"icon-only"}),(0,e.h)("slot",{name:"start"}),(0,e.h)("slot",null),(0,e.h)("slot",{name:"end"})),"md"===o&&(0,e.h)("ion-ripple-effect",{type:this.rippleType})))}get el(){return(0,e.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}};E.style={ios:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:14px;--padding-top:13px;--padding-bottom:13px;--padding-start:1em;--padding-end:1em;--transition:background-color, opacity 100ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:3.1em;font-size:min(1rem, 48px);font-weight:500;letter-spacing:0}:host(.button-solid){--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1}:host(.button-outline){--border-radius:14px;--border-width:1px;--border-style:solid;--background-activated:var(--ion-color-primary, #3880ff);--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;--color-activated:var(--ion-color-primary-contrast, #fff)}:host(.button-clear){--background-activated:transparent;--background-activated-opacity:0;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:transparent;--background-focused-opacity:.1;font-size:min(1.0625rem, 51px);font-weight:normal}:host(.in-buttons){font-size:clamp(17px, 1.0625rem, 21.08px);font-weight:400}:host(.button-large){--border-radius:16px;--padding-top:17px;--padding-start:1em;--padding-end:1em;--padding-bottom:17px;min-height:3.1em;font-size:min(1.25rem, 60px)}:host(.button-small){--border-radius:6px;--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:min(0.8125rem, 39px)}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-strong){font-weight:600}:host(.button-outline.ion-focused.ion-color) .button-native,:host(.button-clear.ion-focused.ion-color) .button-native{color:var(--ion-color-base)}:host(.button-outline.ion-focused.ion-color) .button-native::after,:host(.button-clear.ion-focused.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.button-clear:not(.ion-activated):hover),:host(.button-outline:not(.ion-activated):hover){opacity:0.6}:host(.button-clear.ion-color:hover) .button-native,:host(.button-outline.ion-color:hover) .button-native{color:var(--ion-color-base)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:transparent}:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}:host(:hover.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color):not(.ion-activated)) .button-native::after{background:#fff;opacity:0.1}}:host(.button-clear.ion-activated){opacity:0.4}:host(.button-outline.ion-activated.ion-color) .button-native{color:var(--ion-color-contrast)}:host(.button-outline.ion-activated.ion-color) .button-native::after{background:var(--ion-color-base)}:host(.button-solid.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}',md:':host{--overflow:hidden;--ripple-color:currentColor;--border-width:initial;--border-color:initial;--border-style:initial;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--box-shadow:none;display:inline-block;width:auto;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:top;vertical-align:-webkit-baseline-middle;-webkit-font-kerning:none;font-kerning:none}:host(.button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.button-solid){--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff)}:host(.button-outline){--border-color:var(--ion-color-primary, #3880ff);--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-clear){--border-width:0;--background:transparent;--color:var(--ion-color-primary, #3880ff)}:host(.button-block){display:block}:host(.button-block) .button-native{margin-left:0;margin-right:0;width:100%;clear:both;contain:content}:host(.button-block) .button-native::after{clear:both}:host(.button-full){display:block}:host(.button-full) .button-native{margin-left:0;margin-right:0;width:100%;contain:content}:host(.button-full:not(.button-round)) .button-native{border-radius:0;border-right-width:0;border-left-width:0}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);line-height:1;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:layout style;cursor:pointer;opacity:var(--opacity);overflow:var(--overflow);z-index:0;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-native::-moz-focus-inner{border:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted(ion-icon){font-size:1.35em;pointer-events:none}::slotted(ion-icon[slot=start]){-webkit-margin-start:-0.3em;margin-inline-start:-0.3em;-webkit-margin-end:0.3em;margin-inline-end:0.3em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=end]){-webkit-margin-start:0.3em;margin-inline-start:0.3em;-webkit-margin-end:-0.2em;margin-inline-end:-0.2em;margin-top:0;margin-bottom:0}::slotted(ion-icon[slot=icon-only]){font-size:1.8em}ion-ripple-effect{color:var(--ripple-color)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){:host(:hover){color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-activated){color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.button-solid.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.button-outline.ion-color) .button-native{border-color:var(--ion-color-base);background:transparent;color:var(--ion-color-base)}:host(.button-clear.ion-color) .button-native{background:transparent;color:var(--ion-color-base)}:host(.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{color:var(--ion-toolbar-color, var(--color))}:host(.button-outline.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{border-color:var(--ion-toolbar-color, var(--color, var(--border-color)))}:host(.button-solid.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--background));color:var(--ion-toolbar-background, var(--color))}:host(.button-outline.ion-activated.in-toolbar:not(.ion-color):not(.in-toolbar-color)) .button-native{background:var(--ion-toolbar-color, var(--color));color:var(--ion-toolbar-background, var(--background), var(--ion-color-primary-contrast, #fff))}:host{--border-radius:4px;--padding-top:8px;--padding-bottom:8px;--padding-start:1.1em;--padding-end:1.1em;--transition:box-shadow 280ms cubic-bezier(.4, 0, .2, 1),\n background-color 15ms linear,\n color 15ms linear;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:4px;margin-bottom:4px;min-height:36px;font-size:0.875rem;font-weight:500;letter-spacing:0.06em;text-transform:uppercase}:host(.button-solid){--background-activated:transparent;--background-hover:var(--ion-color-primary-contrast, #fff);--background-focused:var(--ion-color-primary-contrast, #fff);--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}:host(.button-solid.ion-activated){--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12)}:host(.button-outline){--border-width:2px;--border-style:solid;--box-shadow:none;--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-outline.ion-activated.ion-color) .button-native{background:transparent}:host(.button-clear){--background-activated:transparent;--background-focused:var(--ion-color-primary, #3880ff);--background-hover:var(--ion-color-primary, #3880ff);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04}:host(.button-round){--border-radius:64px;--padding-top:0;--padding-start:26px;--padding-end:26px;--padding-bottom:0}:host(.button-large){--padding-top:14px;--padding-start:1em;--padding-end:1em;--padding-bottom:14px;min-height:2.8em;font-size:1.25rem}:host(.button-small){--padding-top:4px;--padding-start:0.9em;--padding-end:0.9em;--padding-bottom:4px;min-height:2.1em;font-size:0.8125rem}:host(.button-has-icon-only){--padding-top:0;--padding-bottom:0}:host(.button-strong){font-weight:bold}::slotted(ion-icon[slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host(.button-solid.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color.ion-focused) .button-native::after,:host(.button-outline.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.button-solid.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}:host(.button-clear.ion-color:hover) .button-native::after,:host(.button-outline.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};const I=o=>{if(1===o.nodeType){if("script"===o.nodeName.toLowerCase())return!1;for(let t=0;t{const n={};return t.forEach(i=>{o.hasAttribute(i)&&(null!==o.getAttribute(i)&&(n[i]=o.getAttribute(i)),o.removeAttribute(i))}),n})(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",()=>{this.isVisible=!0,this.loadIcon()})}componentDidLoad(){this.didLoadIcon||this.loadIcon()}disconnectedCallback(){this.io&&(this.io.disconnect(),this.io=void 0)}waitUntilVisible(o,t,n){if(this.lazy&&typeof window<"u"&&window.IntersectionObserver){const i=this.io=new window.IntersectionObserver(r=>{r[0].isIntersecting&&(i.disconnect(),this.io=void 0,n())},{rootMargin:t});i.observe(o)}else n()}loadIcon(){if(this.isVisible){const o=(o=>{let t=h(o.src);return t||(t=l(o.name,o.icon,o.mode,o.ios,o.md),t?((o,t)=>{const n=(()=>{if(typeof window>"u")return new Map;if(!p){const o=window;o.Ionicons=o.Ionicons||{},p=o.Ionicons.map=o.Ionicons.map||new Map}return p})().get(o);if(n)return n;try{return(0,e.j)(`svg/${o}.svg`)}catch{console.warn(`[Ionicons Warning]: Could not load icon with name "${o}". Ensure that the icon is registered using addIcons or that the icon SVG data is passed directly to the icon component.`,t)}})(t,o):o.icon&&(t=h(o.icon),t||(t=h(o.icon[o.mode]),t))?t:null)})(this);o&&(b.has(o)?this.svgContent=b.get(o):((o,t)=>{let n=L.get(o);if(!n){if(!(typeof fetch<"u"&&typeof document<"u"))return b.set(o,""),Promise.resolve();if((o=>o.startsWith("data:image/svg+xml"))(o)&&(o=>-1!==o.indexOf(";utf8,"))(o)){z||(z=new DOMParser);const r=z.parseFromString(o,"text/html").querySelector("svg");return r&&b.set(o,r.outerHTML),Promise.resolve()}n=fetch(o).then(i=>{if(i.ok)return i.text().then(r=>{r&&!1!==t&&(r=(o=>{const t=document.createElement("div");t.innerHTML=o;for(let i=t.childNodes.length-1;i>=0;i--)"svg"!==t.childNodes[i].nodeName.toLowerCase()&&t.removeChild(t.childNodes[i]);const n=t.firstElementChild;if(n&&"svg"===n.nodeName.toLowerCase()){const i=n.getAttribute("class")||"";if(n.setAttribute("class",(i+" s-ion-icon").trim()),I(n))return t.innerHTML}return""})(r)),b.set(o,r||"")});b.set(o,"")}),L.set(o,n)}return n})(o,this.sanitize).then(()=>this.svgContent=b.get(o)),this.didLoadIcon=!0)}this.iconName=l(this.name,this.icon,this.mode,this.ios,this.md)}render(){const{flipRtl:o,iconName:t,inheritedAttributes:n,el:i}=this,r=this.mode||"md",x=!!t&&(t.includes("arrow")||t.includes("chevron"))&&!1!==o,m=o||x;return(0,e.h)(e.H,Object.assign({role:"img",class:Object.assign(Object.assign({[r]:!0},K(this.color)),{[`icon-${this.size}`]:!!this.size,"flip-rtl":m,"icon-rtl":m&&P(i)})},n),(0,e.h)("div",this.svgContent?{class:"icon-inner",innerHTML:this.svgContent}:{class:"icon-inner"}))}static get assetsDirs(){return["svg"]}get el(){return(0,e.f)(this)}static get watchers(){return{name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"],ios:["loadIcon"],md:["loadIcon"]}}},X=()=>typeof document<"u"&&document.documentElement.getAttribute("mode")||"md",K=o=>o?{"ion-color":!0,[`ion-color-${o}`]:!0}:null;M.style=":host{display:inline-block;width:1em;height:1em;contain:strict;fill:currentColor;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host .ionicon{stroke:currentColor}.ionicon-fill-none{fill:none}.ionicon-stroke-width{stroke-width:32px;stroke-width:var(--ionicon-stroke-width, 32px)}.icon-inner,.ionicon,svg{display:block;height:100%;width:100%}@supports (background: -webkit-named-image(i)){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}@supports not selector(:dir(rtl)) and selector(:host-context([dir='rtl'])){:host(.icon-rtl) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}}:host(.flip-rtl):host-context([dir='rtl']) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}@supports selector(:dir(rtl)){:host(.flip-rtl:dir(rtl)) .icon-inner{-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.flip-rtl:dir(ltr)) .icon-inner{-webkit-transform:scaleX(1);transform:scaleX(1)}}:host(.icon-small){font-size:1.125rem !important}:host(.icon-large){font-size:2rem !important}:host(.ion-color){color:var(--ion-color-base) !important}:host(.ion-color-primary){--ion-color-base:var(--ion-color-primary, #3880ff)}:host(.ion-color-secondary){--ion-color-base:var(--ion-color-secondary, #0cd1e8)}:host(.ion-color-tertiary){--ion-color-base:var(--ion-color-tertiary, #f4a942)}:host(.ion-color-success){--ion-color-base:var(--ion-color-success, #10dc60)}:host(.ion-color-warning){--ion-color-base:var(--ion-color-warning, #ffce00)}:host(.ion-color-danger){--ion-color-base:var(--ion-color-danger, #f14141)}:host(.ion-color-light){--ion-color-base:var(--ion-color-light, #f4f5f8)}:host(.ion-color-medium){--ion-color-base:var(--ion-color-medium, #989aa2)}:host(.ion-color-dark){--ion-color-base:var(--ion-color-dark, #222428)}"},4459:(F,v,d)=>{d.d(v,{c:()=>f,g:()=>w,h:()=>k,o:()=>C});var e=d(5861);const k=(a,s)=>null!==s.closest(a),f=(a,s)=>"string"==typeof a&&a.length>0?Object.assign({"ion-color":!0,[`ion-color-${a}`]:!0},s):s,w=a=>{const s={};return(a=>void 0!==a?(Array.isArray(a)?a:a.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(a).forEach(l=>s[l]=!0),s},p=/^[a-z][a-z0-9+\-.]*:/,C=function(){var a=(0,e.Z)(function*(s,l,h,g){if(null!=s&&"#"!==s[0]&&!p.test(s)){const c=document.querySelector("ion-router");if(c)return l?.preventDefault(),c.push(s,h,g)}return!1});return function(l,h,g,c){return a.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/1745.d1821f88b5b88536.js b/1745.43da8ed3a83550af.js similarity index 96% rename from 1745.d1821f88b5b88536.js rename to 1745.43da8ed3a83550af.js index 690b211d..3b3012ab 100644 --- a/1745.d1821f88b5b88536.js +++ b/1745.43da8ed3a83550af.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1745],{1745:(f,s,e)=>{e.r(s),e.d(s,{ion_img:()=>o});var i=e(5349),n=e(839),r=e(3882);const o=class{constructor(t){(0,i.r)(this,t),this.ionImgWillLoad=(0,i.d)(this,"ionImgWillLoad",7),this.ionImgDidLoad=(0,i.d)(this,"ionImgDidLoad",7),this.ionError=(0,i.d)(this,"ionError",7),this.inheritedAttributes={},this.onLoad=()=>{this.ionImgDidLoad.emit()},this.onError=()=>{this.ionError.emit()},this.loadSrc=void 0,this.loadError=void 0,this.alt=void 0,this.src=void 0}srcChanged(){this.addIO()}componentWillLoad(){this.inheritedAttributes=(0,n.k)(this.el,["draggable"])}componentDidLoad(){this.addIO()}addIO(){void 0!==this.src&&(typeof window<"u"&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype?(this.removeIO(),this.io=new IntersectionObserver(t=>{t[t.length-1].isIntersecting&&(this.load(),this.removeIO())}),this.io.observe(this.el)):setTimeout(()=>this.load(),200))}load(){this.loadError=this.onError,this.loadSrc=this.src,this.ionImgWillLoad.emit()}removeIO(){this.io&&(this.io.disconnect(),this.io=void 0)}render(){const{loadSrc:t,alt:a,onLoad:c,loadError:l,inheritedAttributes:g}=this,{draggable:u}=g;return(0,i.h)(i.H,{class:(0,r.b)(this)},(0,i.h)("img",{decoding:"async",src:t,alt:a,onLoad:c,onError:l,part:"image",draggable:h(u)}))}get el(){return(0,i.f)(this)}static get watchers(){return{src:["srcChanged"]}}},h=t=>{switch(t){case"true":return!0;case"false":return!1;default:return}};o.style=":host{display:block;-o-object-fit:contain;object-fit:contain}img{display:block;width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}"}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[1745],{1745:(f,s,e)=>{e.r(s),e.d(s,{ion_img:()=>o});var i=e(9942),n=e(512),r=e(5551);const o=class{constructor(t){(0,i.r)(this,t),this.ionImgWillLoad=(0,i.d)(this,"ionImgWillLoad",7),this.ionImgDidLoad=(0,i.d)(this,"ionImgDidLoad",7),this.ionError=(0,i.d)(this,"ionError",7),this.inheritedAttributes={},this.onLoad=()=>{this.ionImgDidLoad.emit()},this.onError=()=>{this.ionError.emit()},this.loadSrc=void 0,this.loadError=void 0,this.alt=void 0,this.src=void 0}srcChanged(){this.addIO()}componentWillLoad(){this.inheritedAttributes=(0,n.k)(this.el,["draggable"])}componentDidLoad(){this.addIO()}addIO(){void 0!==this.src&&(typeof window<"u"&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype?(this.removeIO(),this.io=new IntersectionObserver(t=>{t[t.length-1].isIntersecting&&(this.load(),this.removeIO())}),this.io.observe(this.el)):setTimeout(()=>this.load(),200))}load(){this.loadError=this.onError,this.loadSrc=this.src,this.ionImgWillLoad.emit()}removeIO(){this.io&&(this.io.disconnect(),this.io=void 0)}render(){const{loadSrc:t,alt:a,onLoad:c,loadError:l,inheritedAttributes:g}=this,{draggable:u}=g;return(0,i.h)(i.H,{class:(0,r.b)(this)},(0,i.h)("img",{decoding:"async",src:t,alt:a,onLoad:c,onError:l,part:"image",draggable:h(u)}))}get el(){return(0,i.f)(this)}static get watchers(){return{src:["srcChanged"]}}},h=t=>{switch(t){case"true":return!0;case"false":return!1;default:return}};o.style=":host{display:block;-o-object-fit:contain;object-fit:contain}img{display:block;width:100%;height:100%;-o-object-fit:inherit;object-fit:inherit;-o-object-position:inherit;object-position:inherit}"}}]); \ No newline at end of file diff --git a/185.148db3edf3f541cd.js b/185.148db3edf3f541cd.js deleted file mode 100644 index 8cbc1e0f..00000000 --- a/185.148db3edf3f541cd.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[185],{185:(re,Y,u)=>{u.r(Y),u.d(Y,{ion_popover:()=>ee});var S=u(5861),l=u(5349),$=u(6559),P=u(839),V=u(3830),F=u(6710),I=u(7612),f=u(3882),g=u(3567),w=u(448),v=u(6410);u(6225);const Z=(t,e,o)=>{const r=e.getBoundingClientRect(),i=r.height;let n=r.width;return"cover"===t&&o&&(n=o.getBoundingClientRect().width),{contentWidth:n,contentHeight:i}},ie=(t,e,o)=>{let r=[];switch(e){case"hover":let i;r=[{eventName:"mouseenter",callback:(n=(0,S.Z)(function*(s){s.stopPropagation(),i&&clearTimeout(i),i=setTimeout(()=>{(0,P.r)(()=>{o.presentFromTrigger(s),i=void 0})},100)}),function(a){return n.apply(this,arguments)})},{eventName:"mouseleave",callback:n=>{i&&clearTimeout(i);const s=n.relatedTarget;s&&s.closest("ion-popover")!==o&&o.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:n=>n.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:n=>o.presentFromTrigger(n,!0)}];break;case"context-menu":r=[{eventName:"contextmenu",callback:n=>{n.preventDefault(),o.presentFromTrigger(n)}},{eventName:"click",callback:n=>n.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:n=>o.presentFromTrigger(n,!0)}];break;default:r=[{eventName:"click",callback:n=>o.presentFromTrigger(n)},{eventName:"ionPopoverActivateTrigger",callback:n=>o.presentFromTrigger(n,!0)}]}var n;return r.forEach(({eventName:i,callback:n})=>t.addEventListener(i,n)),t.setAttribute("data-ion-popover-trigger","true"),()=>{r.forEach(({eventName:i,callback:n})=>t.removeEventListener(i,n)),t.removeAttribute("data-ion-popover-trigger")}},G=(t,e)=>e&&"ION-ITEM"===e.tagName?t.findIndex(o=>o===e):-1,z=t=>{const o=(0,P.g)(t).querySelector("button");o&&(0,P.r)(()=>o.focus())},ce=t=>{const e=function(){var o=(0,S.Z)(function*(r){var i;const n=document.activeElement;let s=[];const a=null===(i=r.target)||void 0===i?void 0:i.tagName;if("ION-POPOVER"===a||"ION-ITEM"===a){try{s=Array.from(t.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(r.key){case"ArrowLeft":(yield t.getParentPopover())&&t.dismiss(void 0,void 0,!1);break;case"ArrowDown":r.preventDefault();const d=((t,e)=>t[G(t,e)+1])(s,n);void 0!==d&&z(d);break;case"ArrowUp":r.preventDefault();const y=((t,e)=>t[G(t,e)-1])(s,n);void 0!==y&&z(y);break;case"Home":r.preventDefault();const h=s[0];void 0!==h&&z(h);break;case"End":r.preventDefault();const x=s[s.length-1];void 0!==x&&z(x);break;case"ArrowRight":case" ":case"Enter":if(n&&(t=>t.hasAttribute("data-ion-popover-trigger"))(n)){const m=new CustomEvent("ionPopoverActivateTrigger");n.dispatchEvent(m)}}}});return function(i){return o.apply(this,arguments)}}();return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},H=(t,e,o,r,i,n,s,a,p,d,y)=>{var h;let x={top:0,left:0,width:0,height:0};if("event"===n){if(!y)return p;x={top:y.clientY,left:y.clientX,width:1,height:1}}else{const c=y,L=d||(null===(h=c?.detail)||void 0===h?void 0:h.ionShadowTarget)||c?.target;if(!L)return p;const A=L.getBoundingClientRect();x={top:A.top,left:A.left,width:A.width,height:A.height}}const m=fe(s,x,e,o,r,i,t),k=he(a,s,x,e,o),_=m.top+k.top,E=m.left+k.left,{arrowTop:b,arrowLeft:T}=de(s,r,i,_,E,e,o,t),{originX:D,originY:C}=le(s,a,t);return{top:_,left:E,referenceCoordinates:x,arrowTop:b,arrowLeft:T,originX:D,originY:C}},le=(t,e,o)=>{switch(t){case"top":return{originX:J(e),originY:"bottom"};case"bottom":return{originX:J(e),originY:"top"};case"left":return{originX:"right",originY:X(e)};case"right":return{originX:"left",originY:X(e)};case"start":return{originX:o?"left":"right",originY:X(e)};case"end":return{originX:o?"right":"left",originY:X(e)}}},J=t=>{switch(t){case"start":return"left";case"center":return"center";case"end":return"right"}},X=t=>{switch(t){case"start":return"top";case"center":return"center";case"end":return"bottom"}},de=(t,e,o,r,i,n,s,a)=>{const p={arrowTop:r+s/2-e/2,arrowLeft:i+n-e/2},d={arrowTop:r+s/2-e/2,arrowLeft:i-1.5*e};switch(t){case"top":return{arrowTop:r+s,arrowLeft:i+n/2-e/2};case"bottom":return{arrowTop:r-o,arrowLeft:i+n/2-e/2};case"left":return p;case"right":return d;case"start":return a?d:p;case"end":return a?p:d;default:return{arrowTop:0,arrowLeft:0}}},fe=(t,e,o,r,i,n,s)=>{const a={top:e.top,left:e.left-o-i},p={top:e.top,left:e.left+e.width+i};switch(t){case"top":return{top:e.top-r-n,left:e.left};case"right":return p;case"bottom":return{top:e.top+e.height+n,left:e.left};case"left":return a;case"start":return s?p:a;case"end":return s?a:p}},he=(t,e,o,r,i)=>{switch(t){case"center":return ve(e,o,r,i);case"end":return ue(e,o,r,i);default:return{top:0,left:0}}},ue=(t,e,o,r)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(r-e.height),left:0};default:return{top:0,left:-(o-e.width)}}},ve=(t,e,o,r)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(r/2-e.height/2),left:0};default:return{top:0,left:-(o/2-e.width/2)}}},Q=(t,e,o,r,i,n,s,a,p,d,y,h,x=0,m=0,k=0)=>{let _=x;const E=m;let D,b=o,T=e,C=d,O=y,c=!1,L=!1;const A=h?h.top+h.height:n/2-a/2,M=h?h.height:0;let R=!1;return bi&&(L=!0,b=i-s-r,C="right"),A+M+a>n&&("top"===t||"bottom"===t)&&(A-a>0?(T=Math.max(12,A-a-M-(k-1)),_=T+a,O="bottom",R=!0):D=r),{top:T,left:b,bottom:D,originX:C,originY:O,checkSafeAreaLeft:c,checkSafeAreaRight:L,arrowTop:_,arrowLeft:E,addPopoverBottomClass:R}},xe=(t,e)=>{var o;const{event:r,size:i,trigger:n,reference:s,side:a,align:p}=e,d=t.ownerDocument,y="rtl"===d.dir,h=d.defaultView.innerWidth,x=d.defaultView.innerHeight,m=(0,P.g)(t),k=m.querySelector(".popover-content"),_=m.querySelector(".popover-arrow"),E=n||(null===(o=r?.detail)||void 0===o?void 0:o.ionShadowTarget)||r?.target,{contentWidth:b,contentHeight:T}=Z(i,k,E),{arrowWidth:D,arrowHeight:C}=(t=>{if(!t)return{arrowWidth:0,arrowHeight:0};const{width:e,height:o}=t.getBoundingClientRect();return{arrowWidth:e,arrowHeight:o}})(_),c=H(y,b,T,D,C,s,a,p,{top:x/2-T/2,left:h/2-b/2,originX:y?"right":"left",originY:"top"},n,r),L="cover"===i?0:5,A="cover"===i?0:25,{originX:M,originY:R,top:N,left:W,bottom:K,checkSafeAreaLeft:U,checkSafeAreaRight:Ae,arrowTop:Ee,arrowLeft:Te,addPopoverBottomClass:Ie}=Q(a,c.top,c.left,L,h,x,b,T,A,c.originX,c.originY,c.referenceCoordinates,c.arrowTop,c.arrowLeft,C),Ce=(0,v.c)(),te=(0,v.c)(),oe=(0,v.c)();return te.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),oe.addElement(m.querySelector(".popover-arrow")).addElement(m.querySelector(".popover-content")).fromTo("opacity",.01,1),Ce.easing("ease").duration(100).beforeAddWrite(()=>{"cover"===i&&t.style.setProperty("--width",`${b}px`),Ie&&t.classList.add("popover-bottom"),void 0!==K&&k.style.setProperty("bottom",`${K}px`);let B=`${W}px`;U&&(B=`${W}px + var(--ion-safe-area-left, 0)`),Ae&&(B=`${W}px - var(--ion-safe-area-right, 0)`),k.style.setProperty("top",`calc(${N}px + var(--offset-y, 0))`),k.style.setProperty("left",`calc(${B} + var(--offset-x, 0))`),k.style.setProperty("transform-origin",`${R} ${M}`),null!==_&&(((t,e=!1,o,r)=>!(!o&&!r||"top"!==t&&"bottom"!==t&&e))(a,c.top!==N||c.left!==W,r,n)?(_.style.setProperty("top",`calc(${Ee}px + var(--offset-y, 0))`),_.style.setProperty("left",`calc(${Te}px + var(--offset-x, 0))`)):_.style.setProperty("display","none"))}).addAnimation([te,oe])},be=t=>{const e=(0,P.g)(t),o=e.querySelector(".popover-content"),r=e.querySelector(".popover-arrow"),i=(0,v.c)(),n=(0,v.c)(),s=(0,v.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),s.addElement(e.querySelector(".popover-arrow")).addElement(e.querySelector(".popover-content")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("bottom"),o.style.removeProperty("transform-origin"),r&&(r.style.removeProperty("top"),r.style.removeProperty("left"),r.style.removeProperty("display"))}).duration(300).addAnimation([n,s])},ye=(t,e)=>{var o;const{event:r,size:i,trigger:n,reference:s,side:a,align:p}=e,d=t.ownerDocument,y="rtl"===d.dir,h=d.defaultView.innerWidth,x=d.defaultView.innerHeight,m=(0,P.g)(t),k=m.querySelector(".popover-content"),_=n||(null===(o=r?.detail)||void 0===o?void 0:o.ionShadowTarget)||r?.target,{contentWidth:E,contentHeight:b}=Z(i,k,_),D=H(y,E,b,0,0,s,a,p,{top:x/2-b/2,left:h/2-E/2,originX:y?"right":"left",originY:"top"},n,r),C="cover"===i?0:12,{originX:O,originY:c,top:L,left:A,bottom:M}=Q(a,D.top,D.left,C,h,x,E,b,0,D.originX,D.originY,D.referenceCoordinates),R=(0,v.c)(),N=(0,v.c)(),W=(0,v.c)(),K=(0,v.c)(),U=(0,v.c)();return N.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),W.addElement(m.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),K.addElement(k).beforeStyles({top:`calc(${L}px + var(--offset-y, 0px))`,left:`calc(${A}px + var(--offset-x, 0px))`,"transform-origin":`${c} ${O}`}).beforeAddWrite(()=>{void 0!==M&&k.style.setProperty("bottom",`${M}px`)}).fromTo("transform","scale(0.8)","scale(1)"),U.addElement(m.querySelector(".popover-viewport")).fromTo("opacity",.01,1),R.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{"cover"===i&&t.style.setProperty("--width",`${E}px`),"bottom"===c&&t.classList.add("popover-bottom")}).addAnimation([N,W,K,U])},ke=t=>{const e=(0,P.g)(t),o=e.querySelector(".popover-content"),r=(0,v.c)(),i=(0,v.c)(),n=(0,v.c)();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),n.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),r.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("bottom"),o.style.removeProperty("transform-origin")}).duration(150).addAnimation([i,n])},ee=class{constructor(t){(0,l.r)(this,t),this.didPresent=(0,l.d)(this,"ionPopoverDidPresent",7),this.willPresent=(0,l.d)(this,"ionPopoverWillPresent",7),this.willDismiss=(0,l.d)(this,"ionPopoverWillDismiss",7),this.didDismiss=(0,l.d)(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=(0,l.d)(this,"didPresent",7),this.willPresentShorthand=(0,l.d)(this,"willPresent",7),this.willDismissShorthand=(0,l.d)(this,"willDismiss",7),this.didDismissShorthand=(0,l.d)(this,"didDismiss",7),this.ionMount=(0,l.d)(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=(0,$.C)(),this.lockController=(0,V.c)(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,I.B)},this.onLifecycle=e=>{const o=this.usersElement,r=De[e.type];if(o&&r){const i=new CustomEvent(r,{bubbles:!1,cancelable:!1,detail:e.detail});o.dispatchEvent(i)}},this.configureTriggerInteraction=()=>{const{trigger:e,triggerAction:o,el:r,destroyTriggerInteraction:i}=this;if(i&&i(),void 0===e)return;const n=this.triggerEl=void 0!==e?document.getElementById(e):null;n?this.destroyTriggerInteraction=ie(n,o,r):(0,F.p)(`A trigger element with the ID "${e}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:e,el:o}=this;e&&e(),this.destroyKeyboardInteraction=ce(o)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:e,parentPopover:o,triggerAction:r,triggerEl:i,el:n}=this;!o||!i||(e&&e(),this.destroyDismissInteraction=((t,e,o,r)=>{let i=[];const s=(0,P.g)(r).querySelector(".popover-content");return i="hover"===e?[{eventName:"mouseenter",callback:a=>{document.elementFromPoint(a.clientX,a.clientY)!==t&&o.dismiss(void 0,void 0,!1)}}]:[{eventName:"click",callback:a=>{a.target.closest("[data-ion-popover-trigger]")!==t?o.dismiss(void 0,void 0,!1):a.stopPropagation()}}],i.forEach(({eventName:a,callback:p})=>s.addEventListener(a,p)),()=>{i.forEach(({eventName:a,callback:p})=>s.removeEventListener(a,p))}})(i,r,n,o))},this.presented=!1,this.hasController=!1,this.delegate=void 0,this.overlayIndex=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.component=void 0,this.componentProps=void 0,this.keyboardClose=!0,this.cssClass=void 0,this.backdropDismiss=!0,this.event=void 0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.triggerAction="click",this.trigger=void 0,this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.alignment=void 0,this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:t,el:e}=this;(0,I.j)(e),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){const{el:t}=this,e=(0,I.k)(t);this.parentPopover=t.closest(`ion-popover:not(#${e})`),void 0===this.alignment&&(this.alignment="ios"===(0,f.b)(this)?"center":"start")}componentDidLoad(){const{parentPopover:t,isOpen:e}=this;!0===e&&(0,P.r)(()=>this.present()),t&&(0,P.a)(t,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)})}presentFromTrigger(t,e=!1){var o=this;return(0,S.Z)(function*(){o.focusDescendantOnPresent=e,yield o.present(t),o.focusDescendantOnPresent=!1})()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}present(t){var e=this;return(0,S.Z)(function*(){const o=yield e.lockController.lock();if(e.presented)return void o();const{el:r}=e,{inline:i,delegate:n}=e.getDelegate(!0);e.ionMount.emit(),e.usersElement=yield(0,$.a)(n,r,e.component,["popover-viewport"],e.componentProps,i),e.keyboardEvents||e.configureKeyboardInteraction(),e.configureDismissInteraction(),(0,P.m)(r)?yield(0,w.e)(e.usersElement):e.keepContentsMounted||(yield(0,w.w)()),yield(0,I.f)(e,"popoverEnter",xe,ye,{event:t||e.event,size:e.size,trigger:e.triggerEl,reference:e.reference,side:e.side,align:e.alignment}),e.focusDescendantOnPresent&&(0,I.o)(e.el,e.el),o()})()}dismiss(t,e,o=!0){var r=this;return(0,S.Z)(function*(){const i=yield r.lockController.lock(),{destroyKeyboardInteraction:n,destroyDismissInteraction:s}=r;o&&r.parentPopover&&r.parentPopover.dismiss(t,e,o);const a=yield(0,I.g)(r,t,e,"popoverLeave",be,ke,r.event);if(a){n&&(n(),r.destroyKeyboardInteraction=void 0),s&&(s(),r.destroyDismissInteraction=void 0);const{delegate:p}=r.getDelegate();yield(0,$.d)(p,r.usersElement)}return i(),a})()}getParentPopover(){var t=this;return(0,S.Z)(function*(){return t.parentPopover})()}onDidDismiss(){return(0,I.h)(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return(0,I.h)(this.el,"ionPopoverWillDismiss")}render(){const t=(0,f.b)(this),{onLifecycle:e,parentPopover:o,dismissOnSelect:r,side:i,arrow:n,htmlAttributes:s}=this,a=(0,f.a)("desktop"),p=n&&!o;return(0,l.h)(l.H,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},s,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({},(0,g.g)(this.cssClass)),{[t]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":a,[`popover-side-${i}`]:!0,"popover-nested":!!o}),onIonPopoverDidPresent:e,onIonPopoverWillPresent:e,onIonPopoverWillDismiss:e,onIonPopoverDidDismiss:e,onIonBackdropTap:this.onBackdropTap}),!o&&(0,l.h)("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),(0,l.h)("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:r?()=>this.dismiss():void 0},p&&(0,l.h)("div",{class:"popover-arrow",part:"arrow"}),(0,l.h)("div",{class:"popover-content",part:"content"},(0,l.h)("slot",null))))}get el(){return(0,l.f)(this)}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}},De={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};ee.style={ios:':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}@supports (inset-inline-start: 0){.popover-arrow::after{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.popover-arrow::after{left:3px}:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}[dir=rtl] .popover-arrow::after{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.popover-arrow::after:dir(rtl){left:unset;right:unset;right:3px}}}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',md:":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}.popover-viewport{--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}"}},3567:(re,Y,u)=>{u.d(Y,{c:()=>$,g:()=>V,h:()=>l,o:()=>I});var S=u(5861);const l=(f,g)=>null!==g.closest(f),$=(f,g)=>"string"==typeof f&&f.length>0?Object.assign({"ion-color":!0,[`ion-color-${f}`]:!0},g):g,V=f=>{const g={};return(f=>void 0!==f?(Array.isArray(f)?f:f.split(" ")).filter(w=>null!=w).map(w=>w.trim()).filter(w=>""!==w):[])(f).forEach(w=>g[w]=!0),g},F=/^[a-z][a-z0-9+\-.]*:/,I=function(){var f=(0,S.Z)(function*(g,w,v,q){if(null!=g&&"#"!==g[0]&&!F.test(g)){const j=document.querySelector("ion-router");if(j)return w?.preventDefault(),j.push(g,v,q)}return!1});return function(w,v,q,j){return f.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/185.ec7c2780f32d9a4f.js b/185.ec7c2780f32d9a4f.js new file mode 100644 index 00000000..c20ddc0d --- /dev/null +++ b/185.ec7c2780f32d9a4f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[185],{185:(re,Y,u)=>{u.r(Y),u.d(Y,{ion_popover:()=>ee});var S=u(5861),l=u(9942),$=u(3254),P=u(512),V=u(9229),F=u(2400),I=u(2936),f=u(5551),g=u(4459),w=u(4232),v=u(4913);u(1848);const Z=(t,e,o)=>{const r=e.getBoundingClientRect(),i=r.height;let n=r.width;return"cover"===t&&o&&(n=o.getBoundingClientRect().width),{contentWidth:n,contentHeight:i}},ie=(t,e,o)=>{let r=[];switch(e){case"hover":let i;r=[{eventName:"mouseenter",callback:(n=(0,S.Z)(function*(s){s.stopPropagation(),i&&clearTimeout(i),i=setTimeout(()=>{(0,P.r)(()=>{o.presentFromTrigger(s),i=void 0})},100)}),function(a){return n.apply(this,arguments)})},{eventName:"mouseleave",callback:n=>{i&&clearTimeout(i);const s=n.relatedTarget;s&&s.closest("ion-popover")!==o&&o.dismiss(void 0,void 0,!1)}},{eventName:"click",callback:n=>n.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:n=>o.presentFromTrigger(n,!0)}];break;case"context-menu":r=[{eventName:"contextmenu",callback:n=>{n.preventDefault(),o.presentFromTrigger(n)}},{eventName:"click",callback:n=>n.stopPropagation()},{eventName:"ionPopoverActivateTrigger",callback:n=>o.presentFromTrigger(n,!0)}];break;default:r=[{eventName:"click",callback:n=>o.presentFromTrigger(n)},{eventName:"ionPopoverActivateTrigger",callback:n=>o.presentFromTrigger(n,!0)}]}var n;return r.forEach(({eventName:i,callback:n})=>t.addEventListener(i,n)),t.setAttribute("data-ion-popover-trigger","true"),()=>{r.forEach(({eventName:i,callback:n})=>t.removeEventListener(i,n)),t.removeAttribute("data-ion-popover-trigger")}},G=(t,e)=>e&&"ION-ITEM"===e.tagName?t.findIndex(o=>o===e):-1,z=t=>{const o=(0,P.g)(t).querySelector("button");o&&(0,P.r)(()=>o.focus())},ce=t=>{const e=function(){var o=(0,S.Z)(function*(r){var i;const n=document.activeElement;let s=[];const a=null===(i=r.target)||void 0===i?void 0:i.tagName;if("ION-POPOVER"===a||"ION-ITEM"===a){try{s=Array.from(t.querySelectorAll("ion-item:not(ion-popover ion-popover *):not([disabled])"))}catch{}switch(r.key){case"ArrowLeft":(yield t.getParentPopover())&&t.dismiss(void 0,void 0,!1);break;case"ArrowDown":r.preventDefault();const d=((t,e)=>t[G(t,e)+1])(s,n);void 0!==d&&z(d);break;case"ArrowUp":r.preventDefault();const y=((t,e)=>t[G(t,e)-1])(s,n);void 0!==y&&z(y);break;case"Home":r.preventDefault();const h=s[0];void 0!==h&&z(h);break;case"End":r.preventDefault();const x=s[s.length-1];void 0!==x&&z(x);break;case"ArrowRight":case" ":case"Enter":if(n&&(t=>t.hasAttribute("data-ion-popover-trigger"))(n)){const m=new CustomEvent("ionPopoverActivateTrigger");n.dispatchEvent(m)}}}});return function(i){return o.apply(this,arguments)}}();return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)},H=(t,e,o,r,i,n,s,a,p,d,y)=>{var h;let x={top:0,left:0,width:0,height:0};if("event"===n){if(!y)return p;x={top:y.clientY,left:y.clientX,width:1,height:1}}else{const c=y,L=d||(null===(h=c?.detail)||void 0===h?void 0:h.ionShadowTarget)||c?.target;if(!L)return p;const A=L.getBoundingClientRect();x={top:A.top,left:A.left,width:A.width,height:A.height}}const m=fe(s,x,e,o,r,i,t),k=he(a,s,x,e,o),_=m.top+k.top,E=m.left+k.left,{arrowTop:b,arrowLeft:T}=de(s,r,i,_,E,e,o,t),{originX:D,originY:C}=le(s,a,t);return{top:_,left:E,referenceCoordinates:x,arrowTop:b,arrowLeft:T,originX:D,originY:C}},le=(t,e,o)=>{switch(t){case"top":return{originX:J(e),originY:"bottom"};case"bottom":return{originX:J(e),originY:"top"};case"left":return{originX:"right",originY:X(e)};case"right":return{originX:"left",originY:X(e)};case"start":return{originX:o?"left":"right",originY:X(e)};case"end":return{originX:o?"right":"left",originY:X(e)}}},J=t=>{switch(t){case"start":return"left";case"center":return"center";case"end":return"right"}},X=t=>{switch(t){case"start":return"top";case"center":return"center";case"end":return"bottom"}},de=(t,e,o,r,i,n,s,a)=>{const p={arrowTop:r+s/2-e/2,arrowLeft:i+n-e/2},d={arrowTop:r+s/2-e/2,arrowLeft:i-1.5*e};switch(t){case"top":return{arrowTop:r+s,arrowLeft:i+n/2-e/2};case"bottom":return{arrowTop:r-o,arrowLeft:i+n/2-e/2};case"left":return p;case"right":return d;case"start":return a?d:p;case"end":return a?p:d;default:return{arrowTop:0,arrowLeft:0}}},fe=(t,e,o,r,i,n,s)=>{const a={top:e.top,left:e.left-o-i},p={top:e.top,left:e.left+e.width+i};switch(t){case"top":return{top:e.top-r-n,left:e.left};case"right":return p;case"bottom":return{top:e.top+e.height+n,left:e.left};case"left":return a;case"start":return s?p:a;case"end":return s?a:p}},he=(t,e,o,r,i)=>{switch(t){case"center":return ve(e,o,r,i);case"end":return ue(e,o,r,i);default:return{top:0,left:0}}},ue=(t,e,o,r)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(r-e.height),left:0};default:return{top:0,left:-(o-e.width)}}},ve=(t,e,o,r)=>{switch(t){case"start":case"end":case"left":case"right":return{top:-(r/2-e.height/2),left:0};default:return{top:0,left:-(o/2-e.width/2)}}},Q=(t,e,o,r,i,n,s,a,p,d,y,h,x=0,m=0,k=0)=>{let _=x;const E=m;let D,b=o,T=e,C=d,O=y,c=!1,L=!1;const A=h?h.top+h.height:n/2-a/2,M=h?h.height:0;let R=!1;return bi&&(L=!0,b=i-s-r,C="right"),A+M+a>n&&("top"===t||"bottom"===t)&&(A-a>0?(T=Math.max(12,A-a-M-(k-1)),_=T+a,O="bottom",R=!0):D=r),{top:T,left:b,bottom:D,originX:C,originY:O,checkSafeAreaLeft:c,checkSafeAreaRight:L,arrowTop:_,arrowLeft:E,addPopoverBottomClass:R}},xe=(t,e)=>{var o;const{event:r,size:i,trigger:n,reference:s,side:a,align:p}=e,d=t.ownerDocument,y="rtl"===d.dir,h=d.defaultView.innerWidth,x=d.defaultView.innerHeight,m=(0,P.g)(t),k=m.querySelector(".popover-content"),_=m.querySelector(".popover-arrow"),E=n||(null===(o=r?.detail)||void 0===o?void 0:o.ionShadowTarget)||r?.target,{contentWidth:b,contentHeight:T}=Z(i,k,E),{arrowWidth:D,arrowHeight:C}=(t=>{if(!t)return{arrowWidth:0,arrowHeight:0};const{width:e,height:o}=t.getBoundingClientRect();return{arrowWidth:e,arrowHeight:o}})(_),c=H(y,b,T,D,C,s,a,p,{top:x/2-T/2,left:h/2-b/2,originX:y?"right":"left",originY:"top"},n,r),L="cover"===i?0:5,A="cover"===i?0:25,{originX:M,originY:R,top:N,left:W,bottom:K,checkSafeAreaLeft:U,checkSafeAreaRight:Ae,arrowTop:Ee,arrowLeft:Te,addPopoverBottomClass:Ie}=Q(a,c.top,c.left,L,h,x,b,T,A,c.originX,c.originY,c.referenceCoordinates,c.arrowTop,c.arrowLeft,C),Ce=(0,v.c)(),te=(0,v.c)(),oe=(0,v.c)();return te.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),oe.addElement(m.querySelector(".popover-arrow")).addElement(m.querySelector(".popover-content")).fromTo("opacity",.01,1),Ce.easing("ease").duration(100).beforeAddWrite(()=>{"cover"===i&&t.style.setProperty("--width",`${b}px`),Ie&&t.classList.add("popover-bottom"),void 0!==K&&k.style.setProperty("bottom",`${K}px`);let B=`${W}px`;U&&(B=`${W}px + var(--ion-safe-area-left, 0)`),Ae&&(B=`${W}px - var(--ion-safe-area-right, 0)`),k.style.setProperty("top",`calc(${N}px + var(--offset-y, 0))`),k.style.setProperty("left",`calc(${B} + var(--offset-x, 0))`),k.style.setProperty("transform-origin",`${R} ${M}`),null!==_&&(((t,e=!1,o,r)=>!(!o&&!r||"top"!==t&&"bottom"!==t&&e))(a,c.top!==N||c.left!==W,r,n)?(_.style.setProperty("top",`calc(${Ee}px + var(--offset-y, 0))`),_.style.setProperty("left",`calc(${Te}px + var(--offset-x, 0))`)):_.style.setProperty("display","none"))}).addAnimation([te,oe])},be=t=>{const e=(0,P.g)(t),o=e.querySelector(".popover-content"),r=e.querySelector(".popover-arrow"),i=(0,v.c)(),n=(0,v.c)(),s=(0,v.c)();return n.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),s.addElement(e.querySelector(".popover-arrow")).addElement(e.querySelector(".popover-content")).fromTo("opacity",.99,0),i.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("bottom"),o.style.removeProperty("transform-origin"),r&&(r.style.removeProperty("top"),r.style.removeProperty("left"),r.style.removeProperty("display"))}).duration(300).addAnimation([n,s])},ye=(t,e)=>{var o;const{event:r,size:i,trigger:n,reference:s,side:a,align:p}=e,d=t.ownerDocument,y="rtl"===d.dir,h=d.defaultView.innerWidth,x=d.defaultView.innerHeight,m=(0,P.g)(t),k=m.querySelector(".popover-content"),_=n||(null===(o=r?.detail)||void 0===o?void 0:o.ionShadowTarget)||r?.target,{contentWidth:E,contentHeight:b}=Z(i,k,_),D=H(y,E,b,0,0,s,a,p,{top:x/2-b/2,left:h/2-E/2,originX:y?"right":"left",originY:"top"},n,r),C="cover"===i?0:12,{originX:O,originY:c,top:L,left:A,bottom:M}=Q(a,D.top,D.left,C,h,x,E,b,0,D.originX,D.originY,D.referenceCoordinates),R=(0,v.c)(),N=(0,v.c)(),W=(0,v.c)(),K=(0,v.c)(),U=(0,v.c)();return N.addElement(m.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),W.addElement(m.querySelector(".popover-wrapper")).duration(150).fromTo("opacity",.01,1),K.addElement(k).beforeStyles({top:`calc(${L}px + var(--offset-y, 0px))`,left:`calc(${A}px + var(--offset-x, 0px))`,"transform-origin":`${c} ${O}`}).beforeAddWrite(()=>{void 0!==M&&k.style.setProperty("bottom",`${M}px`)}).fromTo("transform","scale(0.8)","scale(1)"),U.addElement(m.querySelector(".popover-viewport")).fromTo("opacity",.01,1),R.easing("cubic-bezier(0.36,0.66,0.04,1)").duration(300).beforeAddWrite(()=>{"cover"===i&&t.style.setProperty("--width",`${E}px`),"bottom"===c&&t.classList.add("popover-bottom")}).addAnimation([N,W,K,U])},ke=t=>{const e=(0,P.g)(t),o=e.querySelector(".popover-content"),r=(0,v.c)(),i=(0,v.c)(),n=(0,v.c)();return i.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),n.addElement(e.querySelector(".popover-wrapper")).fromTo("opacity",.99,0),r.easing("ease").afterAddWrite(()=>{t.style.removeProperty("--width"),t.classList.remove("popover-bottom"),o.style.removeProperty("top"),o.style.removeProperty("left"),o.style.removeProperty("bottom"),o.style.removeProperty("transform-origin")}).duration(150).addAnimation([i,n])},ee=class{constructor(t){(0,l.r)(this,t),this.didPresent=(0,l.d)(this,"ionPopoverDidPresent",7),this.willPresent=(0,l.d)(this,"ionPopoverWillPresent",7),this.willDismiss=(0,l.d)(this,"ionPopoverWillDismiss",7),this.didDismiss=(0,l.d)(this,"ionPopoverDidDismiss",7),this.didPresentShorthand=(0,l.d)(this,"didPresent",7),this.willPresentShorthand=(0,l.d)(this,"willPresent",7),this.willDismissShorthand=(0,l.d)(this,"willDismiss",7),this.didDismissShorthand=(0,l.d)(this,"didDismiss",7),this.ionMount=(0,l.d)(this,"ionMount",7),this.parentPopover=null,this.coreDelegate=(0,$.C)(),this.lockController=(0,V.c)(),this.inline=!1,this.focusDescendantOnPresent=!1,this.onBackdropTap=()=>{this.dismiss(void 0,I.B)},this.onLifecycle=e=>{const o=this.usersElement,r=De[e.type];if(o&&r){const i=new CustomEvent(r,{bubbles:!1,cancelable:!1,detail:e.detail});o.dispatchEvent(i)}},this.configureTriggerInteraction=()=>{const{trigger:e,triggerAction:o,el:r,destroyTriggerInteraction:i}=this;if(i&&i(),void 0===e)return;const n=this.triggerEl=void 0!==e?document.getElementById(e):null;n?this.destroyTriggerInteraction=ie(n,o,r):(0,F.p)(`A trigger element with the ID "${e}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on ion-popover.`,this.el)},this.configureKeyboardInteraction=()=>{const{destroyKeyboardInteraction:e,el:o}=this;e&&e(),this.destroyKeyboardInteraction=ce(o)},this.configureDismissInteraction=()=>{const{destroyDismissInteraction:e,parentPopover:o,triggerAction:r,triggerEl:i,el:n}=this;!o||!i||(e&&e(),this.destroyDismissInteraction=((t,e,o,r)=>{let i=[];const s=(0,P.g)(r).querySelector(".popover-content");return i="hover"===e?[{eventName:"mouseenter",callback:a=>{document.elementFromPoint(a.clientX,a.clientY)!==t&&o.dismiss(void 0,void 0,!1)}}]:[{eventName:"click",callback:a=>{a.target.closest("[data-ion-popover-trigger]")!==t?o.dismiss(void 0,void 0,!1):a.stopPropagation()}}],i.forEach(({eventName:a,callback:p})=>s.addEventListener(a,p)),()=>{i.forEach(({eventName:a,callback:p})=>s.removeEventListener(a,p))}})(i,r,n,o))},this.presented=!1,this.hasController=!1,this.delegate=void 0,this.overlayIndex=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.component=void 0,this.componentProps=void 0,this.keyboardClose=!0,this.cssClass=void 0,this.backdropDismiss=!0,this.event=void 0,this.showBackdrop=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.triggerAction="click",this.trigger=void 0,this.size="auto",this.dismissOnSelect=!1,this.reference="trigger",this.side="bottom",this.alignment=void 0,this.arrow=!0,this.isOpen=!1,this.keyboardEvents=!1,this.keepContentsMounted=!1}onTriggerChange(){this.configureTriggerInteraction()}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}connectedCallback(){const{configureTriggerInteraction:t,el:e}=this;(0,I.j)(e),t()}disconnectedCallback(){const{destroyTriggerInteraction:t}=this;t&&t()}componentWillLoad(){const{el:t}=this,e=(0,I.k)(t);this.parentPopover=t.closest(`ion-popover:not(#${e})`),void 0===this.alignment&&(this.alignment="ios"===(0,f.b)(this)?"center":"start")}componentDidLoad(){const{parentPopover:t,isOpen:e}=this;!0===e&&(0,P.r)(()=>this.present()),t&&(0,P.a)(t,"ionPopoverWillDismiss",()=>{this.dismiss(void 0,void 0,!1)}),this.configureTriggerInteraction()}presentFromTrigger(t,e=!1){var o=this;return(0,S.Z)(function*(){o.focusDescendantOnPresent=e,yield o.present(t),o.focusDescendantOnPresent=!1})()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const o=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:o,delegate:this.workingDelegate=o?this.delegate||this.coreDelegate:this.delegate}}present(t){var e=this;return(0,S.Z)(function*(){const o=yield e.lockController.lock();if(e.presented)return void o();const{el:r}=e,{inline:i,delegate:n}=e.getDelegate(!0);e.ionMount.emit(),e.usersElement=yield(0,$.a)(n,r,e.component,["popover-viewport"],e.componentProps,i),e.keyboardEvents||e.configureKeyboardInteraction(),e.configureDismissInteraction(),(0,P.m)(r)?yield(0,w.e)(e.usersElement):e.keepContentsMounted||(yield(0,w.w)()),yield(0,I.f)(e,"popoverEnter",xe,ye,{event:t||e.event,size:e.size,trigger:e.triggerEl,reference:e.reference,side:e.side,align:e.alignment}),e.focusDescendantOnPresent&&(0,I.o)(e.el,e.el),o()})()}dismiss(t,e,o=!0){var r=this;return(0,S.Z)(function*(){const i=yield r.lockController.lock(),{destroyKeyboardInteraction:n,destroyDismissInteraction:s}=r;o&&r.parentPopover&&r.parentPopover.dismiss(t,e,o);const a=yield(0,I.g)(r,t,e,"popoverLeave",be,ke,r.event);if(a){n&&(n(),r.destroyKeyboardInteraction=void 0),s&&(s(),r.destroyDismissInteraction=void 0);const{delegate:p}=r.getDelegate();yield(0,$.d)(p,r.usersElement)}return i(),a})()}getParentPopover(){var t=this;return(0,S.Z)(function*(){return t.parentPopover})()}onDidDismiss(){return(0,I.h)(this.el,"ionPopoverDidDismiss")}onWillDismiss(){return(0,I.h)(this.el,"ionPopoverWillDismiss")}render(){const t=(0,f.b)(this),{onLifecycle:e,parentPopover:o,dismissOnSelect:r,side:i,arrow:n,htmlAttributes:s}=this,a=(0,f.a)("desktop"),p=n&&!o;return(0,l.h)(l.H,Object.assign({"aria-modal":"true","no-router":!0,tabindex:"-1"},s,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({},(0,g.g)(this.cssClass)),{[t]:!0,"popover-translucent":this.translucent,"overlay-hidden":!0,"popover-desktop":a,[`popover-side-${i}`]:!0,"popover-nested":!!o}),onIonPopoverDidPresent:e,onIonPopoverWillPresent:e,onIonPopoverWillDismiss:e,onIonPopoverDidDismiss:e,onIonBackdropTap:this.onBackdropTap}),!o&&(0,l.h)("ion-backdrop",{tappable:this.backdropDismiss,visible:this.showBackdrop,part:"backdrop"}),(0,l.h)("div",{class:"popover-wrapper ion-overlay-wrapper",onClick:r?()=>this.dismiss():void 0},p&&(0,l.h)("div",{class:"popover-arrow",part:"arrow"}),(0,l.h)("div",{class:"popover-content",part:"content"},(0,l.h)("slot",null))))}get el(){return(0,l.f)(this)}static get watchers(){return{trigger:["onTriggerChange"],triggerAction:["onTriggerChange"],isOpen:["onIsOpenChange"]}}},De={ionPopoverDidPresent:"ionViewDidEnter",ionPopoverWillPresent:"ionViewWillEnter",ionPopoverWillDismiss:"ionViewWillLeave",ionPopoverDidDismiss:"ionViewDidLeave"};ee.style={ios:':host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:200px;--max-height:90%;--box-shadow:none;--backdrop-opacity:var(--ion-backdrop-opacity, 0.08)}:host(.popover-desktop){--box-shadow:0px 4px 16px 0px rgba(0, 0, 0, 0.12)}.popover-content{border-radius:10px}:host(.popover-desktop) .popover-content{border:0.5px solid var(--ion-color-step-100, #e6e6e6)}.popover-arrow{display:block;position:absolute;width:20px;height:10px;overflow:hidden}.popover-arrow::after{top:3px;border-radius:3px;position:absolute;width:14px;height:14px;-webkit-transform:rotate(45deg);transform:rotate(45deg);background:var(--background);content:"";z-index:10}@supports (inset-inline-start: 0){.popover-arrow::after{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.popover-arrow::after{left:3px}:host-context([dir=rtl]) .popover-arrow::after{left:unset;right:unset;right:3px}[dir=rtl] .popover-arrow::after{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.popover-arrow::after:dir(rtl){left:unset;right:unset;right:3px}}}:host(.popover-bottom) .popover-arrow{top:auto;bottom:-10px}:host(.popover-bottom) .popover-arrow::after{top:-6px}:host(.popover-side-left) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host(.popover-side-right) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host(.popover-side-top) .popover-arrow{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.popover-side-start) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}:host-context([dir=rtl]):host(.popover-side-start) .popover-arrow,:host-context([dir=rtl]).popover-side-start .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}@supports selector(:dir(rtl)){:host(.popover-side-start:dir(rtl)) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}}:host(.popover-side-end) .popover-arrow{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}:host-context([dir=rtl]):host(.popover-side-end) .popover-arrow,:host-context([dir=rtl]).popover-side-end .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}@supports selector(:dir(rtl)){:host(.popover-side-end:dir(rtl)) .popover-arrow{-webkit-transform:rotate(90deg);transform:rotate(90deg)}}.popover-arrow,.popover-content{opacity:0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.popover-translucent) .popover-content,:host(.popover-translucent) .popover-arrow::after{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}',md:":host{--background:var(--ion-background-color, #fff);--min-width:0;--min-height:0;--max-width:auto;--height:auto;--offset-x:0px;--offset-y:0px;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);z-index:1001}:host(.popover-nested){pointer-events:none}:host(.popover-nested) .popover-wrapper{pointer-events:auto}:host(.overlay-hidden){display:none}.popover-wrapper{z-index:10}.popover-content{display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:auto;z-index:10}::slotted(.popover-viewport){--ion-safe-area-top:0px;--ion-safe-area-right:0px;--ion-safe-area-bottom:0px;--ion-safe-area-left:0px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}:host(.popover-nested.popover-side-left){--offset-x:5px}:host(.popover-nested.popover-side-right){--offset-x:-5px}:host(.popover-nested.popover-side-start){--offset-x:5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-start),:host-context([dir=rtl]).popover-nested.popover-side-start{--offset-x:-5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-start:dir(rtl)){--offset-x:-5px}}:host(.popover-nested.popover-side-end){--offset-x:-5px}:host-context([dir=rtl]):host(.popover-nested.popover-side-end),:host-context([dir=rtl]).popover-nested.popover-side-end{--offset-x:5px}@supports selector(:dir(rtl)){:host(.popover-nested.popover-side-end:dir(rtl)){--offset-x:5px}}:host{--width:250px;--max-height:90%;--box-shadow:0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}.popover-content{border-radius:4px;-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]) .popover-content{-webkit-transform-origin:right top;transform-origin:right top}[dir=rtl] .popover-content{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.popover-content:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.popover-viewport{-webkit-transition-delay:100ms;transition-delay:100ms}.popover-wrapper{opacity:0}"}},4459:(re,Y,u)=>{u.d(Y,{c:()=>$,g:()=>V,h:()=>l,o:()=>I});var S=u(5861);const l=(f,g)=>null!==g.closest(f),$=(f,g)=>"string"==typeof f&&f.length>0?Object.assign({"ion-color":!0,[`ion-color-${f}`]:!0},g):g,V=f=>{const g={};return(f=>void 0!==f?(Array.isArray(f)?f:f.split(" ")).filter(w=>null!=w).map(w=>w.trim()).filter(w=>""!==w):[])(f).forEach(w=>g[w]=!0),g},F=/^[a-z][a-z0-9+\-.]*:/,I=function(){var f=(0,S.Z)(function*(g,w,v,q){if(null!=g&&"#"!==g[0]&&!F.test(g)){const j=document.querySelector("ion-router");if(j)return w?.preventDefault(),j.push(g,v,q)}return!1});return function(w,v,q,j){return f.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/2841.bb9b54b2ef2ba816.js b/2841.78ee00a2c2e64dfe.js similarity index 93% rename from 2841.bb9b54b2ef2ba816.js rename to 2841.78ee00a2c2e64dfe.js index 4648cee0..22b7cf9e 100644 --- a/2841.bb9b54b2ef2ba816.js +++ b/2841.78ee00a2c2e64dfe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2841],{2841:(v,l,a)=>{a.r(l),a.d(l,{ion_tab:()=>d,ion_tabs:()=>c});var s=a(5861),n=a(5349),u=a(6559);const d=class{constructor(e){(0,n.r)(this,e),this.loaded=!1,this.active=!1,this.delegate=void 0,this.tab=void 0,this.component=void 0}componentWillLoad(){var e=this;return(0,s.Z)(function*(){e.active&&(yield e.setActive())})()}setActive(){var e=this;return(0,s.Z)(function*(){yield e.prepareLazyLoaded(),e.active=!0})()}changeActive(e){e&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return(0,u.a)(this.delegate,this.el,this.component,["ion-page"])}catch(e){console.error(e)}}return Promise.resolve(void 0)}render(){const{tab:e,active:t,component:i}=this;return(0,n.h)(n.H,{role:"tabpanel","aria-hidden":t?null:"true","aria-labelledby":`tab-button-${e}`,class:{"ion-page":void 0===i,"tab-hidden":!t}},(0,n.h)("slot",null))}get el(){return(0,n.f)(this)}static get watchers(){return{active:["changeActive"]}}};d.style=":host(.tab-hidden){display:none !important}";const c=class{constructor(e){(0,n.r)(this,e),this.ionNavWillLoad=(0,n.d)(this,"ionNavWillLoad",7),this.ionTabsWillChange=(0,n.d)(this,"ionTabsWillChange",3),this.ionTabsDidChange=(0,n.d)(this,"ionTabsDidChange",3),this.transitioning=!1,this.onTabClicked=t=>{const{href:i,tab:r}=t.detail;if(this.useRouter&&void 0!==i){const h=document.querySelector("ion-router");h&&h.push(i)}else this.select(r)},this.selectedTab=void 0,this.useRouter=!1}componentWillLoad(){var e=this;return(0,s.Z)(function*(){if(e.useRouter||(e.useRouter=!!document.querySelector("ion-router")&&!e.el.closest("[no-router]")),!e.useRouter){const t=e.tabs;t.length>0&&(yield e.select(t[0]))}e.ionNavWillLoad.emit()})()}componentWillRender(){const e=this.el.querySelector("ion-tab-bar");e&&(e.selectedTab=this.selectedTab?this.selectedTab.tab:void 0)}select(e){var t=this;return(0,s.Z)(function*(){const i=o(t.tabs,e);return!!t.shouldSwitch(i)&&(yield t.setActive(i),yield t.notifyRouter(),t.tabSwitch(),!0)})()}getTab(e){var t=this;return(0,s.Z)(function*(){return o(t.tabs,e)})()}getSelected(){return Promise.resolve(this.selectedTab?this.selectedTab.tab:void 0)}setRouteId(e){var t=this;return(0,s.Z)(function*(){const i=o(t.tabs,e);return t.shouldSwitch(i)?(yield t.setActive(i),{changed:!0,element:t.selectedTab,markVisible:()=>t.tabSwitch()}):{changed:!1,element:t.selectedTab}})()}getRouteId(){var e=this;return(0,s.Z)(function*(){var t;const i=null===(t=e.selectedTab)||void 0===t?void 0:t.tab;return void 0!==i?{id:i,element:e.selectedTab}:void 0})()}setActive(e){return this.transitioning?Promise.reject("transitioning already happening"):(this.transitioning=!0,this.leavingTab=this.selectedTab,this.selectedTab=e,this.ionTabsWillChange.emit({tab:e.tab}),e.active=!0,Promise.resolve())}tabSwitch(){const e=this.selectedTab,t=this.leavingTab;this.leavingTab=void 0,this.transitioning=!1,e&&t!==e&&(t&&(t.active=!1),this.ionTabsDidChange.emit({tab:e.tab}))}notifyRouter(){if(this.useRouter){const e=document.querySelector("ion-router");if(e)return e.navChanged("forward")}return Promise.resolve(!1)}shouldSwitch(e){return void 0!==e&&e!==this.selectedTab&&!this.transitioning}get tabs(){return Array.from(this.el.querySelectorAll("ion-tab"))}render(){return(0,n.h)(n.H,{onIonTabButtonClick:this.onTabClicked},(0,n.h)("slot",{name:"top"}),(0,n.h)("div",{class:"tabs-inner"},(0,n.h)("slot",null)),(0,n.h)("slot",{name:"bottom"}))}get el(){return(0,n.f)(this)}},o=(e,t)=>{const i="string"==typeof t?e.find(r=>r.tab===t):t;return i||console.error(`tab with id: "${i}" does not exist`),i};c.style=":host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;contain:layout size style;z-index:0}.tabs-inner{position:relative;-ms-flex:1;flex:1;contain:layout size style}"}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2841],{2841:(v,l,a)=>{a.r(l),a.d(l,{ion_tab:()=>d,ion_tabs:()=>h});var s=a(5861),n=a(9942),u=a(3254);const d=class{constructor(e){(0,n.r)(this,e),this.loaded=!1,this.active=!1,this.delegate=void 0,this.tab=void 0,this.component=void 0}componentWillLoad(){var e=this;return(0,s.Z)(function*(){e.active&&(yield e.setActive())})()}setActive(){var e=this;return(0,s.Z)(function*(){yield e.prepareLazyLoaded(),e.active=!0})()}changeActive(e){e&&this.prepareLazyLoaded()}prepareLazyLoaded(){if(!this.loaded&&null!=this.component){this.loaded=!0;try{return(0,u.a)(this.delegate,this.el,this.component,["ion-page"])}catch(e){console.error(e)}}return Promise.resolve(void 0)}render(){const{tab:e,active:t,component:i}=this;return(0,n.h)(n.H,{role:"tabpanel","aria-hidden":t?null:"true","aria-labelledby":`tab-button-${e}`,class:{"ion-page":void 0===i,"tab-hidden":!t}},(0,n.h)("slot",null))}get el(){return(0,n.f)(this)}static get watchers(){return{active:["changeActive"]}}};d.style=":host(.tab-hidden){display:none !important}";const h=class{constructor(e){(0,n.r)(this,e),this.ionNavWillLoad=(0,n.d)(this,"ionNavWillLoad",7),this.ionTabsWillChange=(0,n.d)(this,"ionTabsWillChange",3),this.ionTabsDidChange=(0,n.d)(this,"ionTabsDidChange",3),this.transitioning=!1,this.onTabClicked=t=>{const{href:i,tab:r}=t.detail;if(this.useRouter&&void 0!==i){const c=document.querySelector("ion-router");c&&c.push(i)}else this.select(r)},this.selectedTab=void 0,this.useRouter=!1}componentWillLoad(){var e=this;return(0,s.Z)(function*(){if(e.useRouter||(e.useRouter=!!document.querySelector("ion-router")&&!e.el.closest("[no-router]")),!e.useRouter){const t=e.tabs;t.length>0&&(yield e.select(t[0]))}e.ionNavWillLoad.emit()})()}componentWillRender(){const e=this.el.querySelector("ion-tab-bar");e&&(e.selectedTab=this.selectedTab?this.selectedTab.tab:void 0)}select(e){var t=this;return(0,s.Z)(function*(){const i=o(t.tabs,e);return!!t.shouldSwitch(i)&&(yield t.setActive(i),yield t.notifyRouter(),t.tabSwitch(),!0)})()}getTab(e){var t=this;return(0,s.Z)(function*(){return o(t.tabs,e)})()}getSelected(){return Promise.resolve(this.selectedTab?this.selectedTab.tab:void 0)}setRouteId(e){var t=this;return(0,s.Z)(function*(){const i=o(t.tabs,e);return t.shouldSwitch(i)?(yield t.setActive(i),{changed:!0,element:t.selectedTab,markVisible:()=>t.tabSwitch()}):{changed:!1,element:t.selectedTab}})()}getRouteId(){var e=this;return(0,s.Z)(function*(){var t;const i=null===(t=e.selectedTab)||void 0===t?void 0:t.tab;return void 0!==i?{id:i,element:e.selectedTab}:void 0})()}setActive(e){return this.transitioning?Promise.reject("transitioning already happening"):(this.transitioning=!0,this.leavingTab=this.selectedTab,this.selectedTab=e,this.ionTabsWillChange.emit({tab:e.tab}),e.active=!0,Promise.resolve())}tabSwitch(){const e=this.selectedTab,t=this.leavingTab;this.leavingTab=void 0,this.transitioning=!1,e&&t!==e&&(t&&(t.active=!1),this.ionTabsDidChange.emit({tab:e.tab}))}notifyRouter(){if(this.useRouter){const e=document.querySelector("ion-router");if(e)return e.navChanged("forward")}return Promise.resolve(!1)}shouldSwitch(e){return void 0!==e&&e!==this.selectedTab&&!this.transitioning}get tabs(){return Array.from(this.el.querySelectorAll("ion-tab"))}render(){return(0,n.h)(n.H,{onIonTabButtonClick:this.onTabClicked},(0,n.h)("slot",{name:"top"}),(0,n.h)("div",{class:"tabs-inner"},(0,n.h)("slot",null)),(0,n.h)("slot",{name:"bottom"}))}get el(){return(0,n.f)(this)}},o=(e,t)=>{const i="string"==typeof t?e.find(r=>r.tab===t):t;return i||console.error(`tab with id: "${i}" does not exist`),i};h.style=":host{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;contain:layout size style;z-index:0}.tabs-inner{position:relative;-ms-flex:1;flex:1;contain:layout size style}"}}]); \ No newline at end of file diff --git a/2975.18612941c0cbf5ad.js b/2975.18612941c0cbf5ad.js new file mode 100644 index 00000000..667e9fd7 --- /dev/null +++ b/2975.18612941c0cbf5ad.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2975],{2975:(B,f,i)=>{i.r(f),i.d(f,{ion_reorder:()=>g,ion_reorder_group:()=>I});var T=i(5861),l=i(9942),u=i(1076),E=i(5551),p=i(7946),M=i(512),m=i(9951);i(1836),i(1848);const g=class{constructor(t){(0,l.r)(this,t)}onClick(t){const e=this.el.closest("ion-reorder-group");t.preventDefault(),(!e||!e.disabled)&&t.stopImmediatePropagation()}render(){const t=(0,E.b)(this);return(0,l.h)(l.H,{class:t},(0,l.h)("slot",null,(0,l.h)("ion-icon",{icon:"ios"===t?u.j:u.k,lazy:!1,class:"reorder-icon",part:"icon","aria-hidden":"true"})))}get el(){return(0,l.f)(this)}};g.style={ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}"};const I=class{constructor(t){(0,l.r)(this,t),this.ionItemReorder=(0,l.d)(this,"ionItemReorder",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}connectedCallback(){var t=this;return(0,T.Z)(function*(){const e=(0,p.f)(t.el);e&&(t.scrollEl=yield(0,p.g)(e)),t.gesture=(yield Promise.resolve().then(i.bind(i,6535))).createGesture({el:t.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:s=>t.canStart(s),onStart:s=>t.onStart(s),onMove:s=>t.onMove(s),onEnd:()=>t.onEnd()}),t.disabledChanged()})()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(t){return Promise.resolve(this.completeReorder(t))}canStart(t){if(this.selectedItemEl||0!==this.state)return!1;const s=t.event.target.closest("ion-reorder");if(!s)return!1;const r=P(s,this.el);return!!r&&(t.data=r,!0)}onStart(t){t.event.preventDefault();const e=this.selectedItemEl=t.data,s=this.cachedHeights;s.length=0;const r=this.el,o=r.children;if(!o||0===o.length)return;let c=0;for(let a=0;a{o===c||void 0!==t&&!0!==t||this.el.insertBefore(e,ct)return s;return e.length-1}reorderMove(t,e){const s=this.selectedItemHeight,r=this.el.children;for(let o=0;ot&&o<=e?n=`translateY(${-s}px)`:o=e&&(n=`translateY(${s}px)`),r[o].style.transform=n}}autoscroll(t){if(!this.scrollEl)return 0;let e=0;return tthis.scrollElBottom&&(e=b),0!==e&&this.scrollEl.scrollBy(0,e),this.scrollEl.scrollTop-this.scrollElInitial}render(){const t=(0,E.b)(this);return(0,l.h)(l.H,{class:{[t]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":0!==this.state}})}get el(){return(0,l.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},h=t=>t.$ionIndex,P=(t,e)=>{let s;for(;t;){if(s=t.parentElement,s===e)return t;t=s}},_=60,b=10,x="reorder-selected",D=(t,e,s)=>{const r=t[e];return t.splice(e,1),t.splice(s,0,r),t.slice()};I.style=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}"}}]); \ No newline at end of file diff --git a/2975.62ffd62add59be22.js b/2975.62ffd62add59be22.js deleted file mode 100644 index de916dfb..00000000 --- a/2975.62ffd62add59be22.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2975],{2975:(B,f,i)=>{i.r(f),i.d(f,{ion_reorder:()=>g,ion_reorder_group:()=>I});var T=i(5861),l=i(5349),u=i(5307),E=i(3882),p=i(2874),M=i(839),m=i(967);i(4874),i(6225);const g=class{constructor(t){(0,l.r)(this,t)}onClick(t){const e=this.el.closest("ion-reorder-group");t.preventDefault(),(!e||!e.disabled)&&t.stopImmediatePropagation()}render(){const t=(0,E.b)(this);return(0,l.h)(l.H,{class:t},(0,l.h)("slot",null,(0,l.h)("ion-icon",{icon:"ios"===t?u.j:u.k,lazy:!1,class:"reorder-icon",part:"icon","aria-hidden":"true"})))}get el(){return(0,l.f)(this)}};g.style={ios:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:2.125rem;opacity:0.4}",md:":host([slot]){display:none;line-height:0;z-index:100}.reorder-icon{display:block}::slotted(ion-icon){font-size:dynamic-font(16px)}.reorder-icon{font-size:1.9375rem;opacity:0.3}"};const I=class{constructor(t){(0,l.r)(this,t),this.ionItemReorder=(0,l.d)(this,"ionItemReorder",7),this.lastToIndex=-1,this.cachedHeights=[],this.scrollElTop=0,this.scrollElBottom=0,this.scrollElInitial=0,this.containerTop=0,this.containerBottom=0,this.state=0,this.disabled=!0}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}connectedCallback(){var t=this;return(0,T.Z)(function*(){const e=(0,p.f)(t.el);e&&(t.scrollEl=yield(0,p.g)(e)),t.gesture=(yield Promise.resolve().then(i.bind(i,9203))).createGesture({el:t.el,gestureName:"reorder",gesturePriority:110,threshold:0,direction:"y",passive:!1,canStart:s=>t.canStart(s),onStart:s=>t.onStart(s),onMove:s=>t.onMove(s),onEnd:()=>t.onEnd()}),t.disabledChanged()})()}disconnectedCallback(){this.onEnd(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(t){return Promise.resolve(this.completeReorder(t))}canStart(t){if(this.selectedItemEl||0!==this.state)return!1;const s=t.event.target.closest("ion-reorder");if(!s)return!1;const r=P(s,this.el);return!!r&&(t.data=r,!0)}onStart(t){t.event.preventDefault();const e=this.selectedItemEl=t.data,s=this.cachedHeights;s.length=0;const r=this.el,o=r.children;if(!o||0===o.length)return;let c=0;for(let a=0;a{o===c||void 0!==t&&!0!==t||this.el.insertBefore(e,ct)return s;return e.length-1}reorderMove(t,e){const s=this.selectedItemHeight,r=this.el.children;for(let o=0;ot&&o<=e?n=`translateY(${-s}px)`:o=e&&(n=`translateY(${s}px)`),r[o].style.transform=n}}autoscroll(t){if(!this.scrollEl)return 0;let e=0;return tthis.scrollElBottom&&(e=b),0!==e&&this.scrollEl.scrollBy(0,e),this.scrollEl.scrollTop-this.scrollElInitial}render(){const t=(0,E.b)(this);return(0,l.h)(l.H,{class:{[t]:!0,"reorder-enabled":!this.disabled,"reorder-list-active":0!==this.state}})}get el(){return(0,l.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},h=t=>t.$ionIndex,P=(t,e)=>{let s;for(;t;){if(s=t.parentElement,s===e)return t;t=s}},_=60,b=10,x="reorder-selected",D=(t,e,s)=>{const r=t[e];return t.splice(e,1),t.splice(s,0,r),t.slice()};I.style=".reorder-list-active>*{display:block;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;will-change:transform}.reorder-enabled{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.reorder-enabled ion-reorder{display:block;cursor:-webkit-grab;cursor:grab;pointer-events:all;-ms-touch-action:none;touch-action:none}.reorder-selected,.reorder-selected ion-reorder{cursor:-webkit-grabbing;cursor:grabbing}.reorder-selected{position:relative;-webkit-transition:none !important;transition:none !important;-webkit-box-shadow:0 0 10px rgba(0, 0, 0, 0.4);box-shadow:0 0 10px rgba(0, 0, 0, 0.4);opacity:0.8;z-index:100}.reorder-visible ion-reorder .reorder-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}"}}]); \ No newline at end of file diff --git a/3150.58bfc3fd60eb642b.js b/3150.bf0b42d10fb4b78e.js similarity index 98% rename from 3150.58bfc3fd60eb642b.js rename to 3150.bf0b42d10fb4b78e.js index 4619f5c0..65f326db 100644 --- a/3150.58bfc3fd60eb642b.js +++ b/3150.bf0b42d10fb4b78e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3150],{3150:(w,c,e)=>{e.r(c),e.d(c,{ion_card:()=>l,ion_card_content:()=>i,ion_card_header:()=>d,ion_card_subtitle:()=>u,ion_card_title:()=>x});var t=e(5349),g=e(839),a=e(3567),s=e(3882);const l=class{constructor(o){(0,t.r)(this,o),this.inheritedAriaAttributes={},this.color=void 0,this.button=!1,this.type="button",this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}componentWillLoad(){this.inheritedAriaAttributes=(0,g.k)(this.el,["aria-label"])}isClickable(){return void 0!==this.href||this.button}renderCard(o){const f=this.isClickable();if(!f)return[(0,t.h)("slot",null)];const{href:v,routerAnimation:E,routerDirection:M,inheritedAriaAttributes:A}=this,k=f?void 0===v?"button":"a":"div";return(0,t.h)(k,Object.assign({},"button"===k?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target},A,{class:"card-native",part:"native",disabled:this.disabled,onClick:O=>(0,a.o)(v,O,M,E)}),(0,t.h)("slot",null),f&&"md"===o&&(0,t.h)("ion-ripple-effect",null))}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{class:(0,a.c)(this.color,{[o]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(o))}get el(){return(0,t.f)(this)}};l.style={ios:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",md:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}"};const i=class{constructor(o){(0,t.r)(this,o)}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{class:{[o]:!0,[`card-content-${o}`]:!0}})}};i.style={ios:"ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"};const d=class{constructor(o){(0,t.r)(this,o),this.color=void 0,this.translucent=!1}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{class:(0,a.c)(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[o]:!0})},(0,t.h)("slot",null))}};d.style={ios:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;-ms-flex-direction:column-reverse;flex-direction:column-reverse}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",md:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}"};const u=class{constructor(o){(0,t.r)(this,o),this.color=void 0}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{role:"heading","aria-level":"3",class:(0,a.c)(this.color,{"ion-inherit-color":!0,[o]:!0})},(0,t.h)("slot",null))}};u.style={ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.75rem;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, #737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.875rem;font-weight:500}"};const x=class{constructor(o){(0,t.r)(this,o),this.color=void 0}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{role:"heading","aria-level":"2",class:(0,a.c)(this.color,{"ion-inherit-color":!0,[o]:!0})},(0,t.h)("slot",null))}};x.style={ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.75rem;font-weight:700;line-height:1.2}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;line-height:1.2}"}},3567:(w,c,e)=>{e.d(c,{c:()=>a,g:()=>m,h:()=>g,o:()=>l});var t=e(5861);const g=(r,n)=>null!==n.closest(r),a=(r,n)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},n):n,m=r=>{const n={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(i=>null!=i).map(i=>i.trim()).filter(i=>""!==i):[])(r).forEach(i=>n[i]=!0),n},b=/^[a-z][a-z0-9+\-.]*:/,l=function(){var r=(0,t.Z)(function*(n,i,p,h){if(null!=n&&"#"!==n[0]&&!b.test(n)){const d=document.querySelector("ion-router");if(d)return i?.preventDefault(),d.push(n,p,h)}return!1});return function(i,p,h,d){return r.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3150],{3150:(w,c,e)=>{e.r(c),e.d(c,{ion_card:()=>l,ion_card_content:()=>i,ion_card_header:()=>d,ion_card_subtitle:()=>u,ion_card_title:()=>x});var t=e(9942),g=e(512),a=e(4459),s=e(5551);const l=class{constructor(o){(0,t.r)(this,o),this.inheritedAriaAttributes={},this.color=void 0,this.button=!1,this.type="button",this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}componentWillLoad(){this.inheritedAriaAttributes=(0,g.k)(this.el,["aria-label"])}isClickable(){return void 0!==this.href||this.button}renderCard(o){const f=this.isClickable();if(!f)return[(0,t.h)("slot",null)];const{href:v,routerAnimation:E,routerDirection:M,inheritedAriaAttributes:A}=this,k=f?void 0===v?"button":"a":"div";return(0,t.h)(k,Object.assign({},"button"===k?{type:this.type}:{download:this.download,href:this.href,rel:this.rel,target:this.target},A,{class:"card-native",part:"native",disabled:this.disabled,onClick:O=>(0,a.o)(v,O,M,E)}),(0,t.h)("slot",null),f&&"md"===o&&(0,t.h)("ion-ripple-effect",null))}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{class:(0,a.c)(this.color,{[o]:!0,"card-disabled":this.disabled,"ion-activatable":this.isClickable()})},this.renderCard(o))}get el(){return(0,t.f)(this)}};l.style={ios:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-600, #666666)));-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:24px;margin-bottom:24px;border-radius:8px;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:-webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);transition:transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1), -webkit-transform 500ms cubic-bezier(0.12, 0.72, 0.29, 1);font-size:0.875rem;-webkit-box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12)}:host(.ion-activated){-webkit-transform:scale3d(0.97, 0.97, 1);transform:scale3d(0.97, 0.97, 1)}",md:":host{--ion-safe-area-left:0px;--ion-safe-area-right:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.card-disabled){cursor:default;opacity:0.3;pointer-events:none}.card-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:inherit}.card-native::-moz-focus-inner{border:0}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}ion-ripple-effect{color:var(--ripple-color)}:host{--background:var(--ion-card-background, var(--ion-item-background, var(--ion-background-color, #fff)));--color:var(--ion-card-color, var(--ion-item-color, var(--ion-color-step-550, #737373)));-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:10px;margin-bottom:10px;border-radius:4px;font-size:0.875rem;-webkit-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12)}"};const i=class{constructor(o){(0,t.r)(this,o)}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{class:{[o]:!0,[`card-content-${o}`]:!0}})}};i.style={ios:"ion-card-content{display:block;position:relative}.card-content-ios{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;font-size:1rem;line-height:1.4}.card-content-ios h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-ios h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-ios h3,.card-content-ios h4,.card-content-ios h5,.card-content-ios h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-ios p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem}ion-card-header+.card-content-ios{padding-top:0}",md:"ion-card-content{display:block;position:relative}.card-content-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:13px;padding-bottom:13px;font-size:0.875rem;line-height:1.5}.card-content-md h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.card-content-md h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.card-content-md h3,.card-content-md h4,.card-content-md h5,.card-content-md h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal}.card-content-md p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:1.5}ion-card-header+.card-content-md{padding-top:0}"};const d=class{constructor(o){(0,t.r)(this,o),this.color=void 0,this.translucent=!1}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{class:(0,a.c)(this.color,{"card-header-translucent":this.translucent,"ion-inherit-color":!0,[o]:!0})},(0,t.h)("slot",null))}};d.style={ios:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:16px;-ms-flex-direction:column-reverse;flex-direction:column-reverse}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.card-header-translucent){background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px)}}",md:":host{--background:transparent;--color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;background:var(--background);color:var(--color)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px}::slotted(ion-card-title:not(:first-child)),::slotted(ion-card-subtitle:not(:first-child)){margin-top:8px}"};const u=class{constructor(o){(0,t.r)(this,o),this.color=void 0}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{role:"heading","aria-level":"3",class:(0,a.c)(this.color,{"ion-inherit-color":!0,[o]:!0})},(0,t.h)("slot",null))}};u.style={ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);margin-left:0;margin-right:0;margin-top:0;margin-bottom:4px;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.75rem;font-weight:700;letter-spacing:0.4px;text-transform:uppercase}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-550, #737373);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:0.875rem;font-weight:500}"};const x=class{constructor(o){(0,t.r)(this,o),this.color=void 0}render(){const o=(0,s.b)(this);return(0,t.h)(t.H,{role:"heading","aria-level":"2",class:(0,a.c)(this.color,{"ion-inherit-color":!0,[o]:!0})},(0,t.h)("slot",null))}};x.style={ios:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-text-color, #000);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.75rem;font-weight:700;line-height:1.2}",md:":host{display:block;position:relative;color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-850, #262626);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;line-height:1.2}"}},4459:(w,c,e)=>{e.d(c,{c:()=>a,g:()=>m,h:()=>g,o:()=>l});var t=e(5861);const g=(r,n)=>null!==n.closest(r),a=(r,n)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},n):n,m=r=>{const n={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(i=>null!=i).map(i=>i.trim()).filter(i=>""!==i):[])(r).forEach(i=>n[i]=!0),n},b=/^[a-z][a-z0-9+\-.]*:/,l=function(){var r=(0,t.Z)(function*(n,i,p,h){if(null!=n&&"#"!==n[0]&&!b.test(n)){const d=document.querySelector("ion-router");if(d)return i?.preventDefault(),d.push(n,p,h)}return!1});return function(i,p,h,d){return r.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3483.641d1e89bd90f639.js b/3483.641d1e89bd90f639.js new file mode 100644 index 00000000..666ae636 --- /dev/null +++ b/3483.641d1e89bd90f639.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3483],{3483:(k,h,a)=>{a.r(h),a.d(h,{ion_loading:()=>_});var p=a(5861),t=a(9942),m=a(8958),y=a(512),b=a(9229),l=a(2936),x=a(4459),s=a(5551),n=a(4913);a(1848);const g=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},u=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},c=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},w=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},_=class{constructor(i){(0,t.r)(this,i),this.didPresent=(0,t.d)(this,"ionLoadingDidPresent",7),this.willPresent=(0,t.d)(this,"ionLoadingWillPresent",7),this.willDismiss=(0,t.d)(this,"ionLoadingWillDismiss",7),this.didDismiss=(0,t.d)(this,"ionLoadingDidDismiss",7),this.didPresentShorthand=(0,t.d)(this,"didPresent",7),this.willPresentShorthand=(0,t.d)(this,"willPresent",7),this.willDismissShorthand=(0,t.d)(this,"willDismiss",7),this.didDismissShorthand=(0,t.d)(this,"didDismiss",7),this.delegateController=(0,l.d)(this),this.lockController=(0,b.c)(),this.triggerController=(0,l.e)(),this.customHTMLEnabled=s.c.get("innerHTMLTemplatesEnabled",m.E),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,l.B)},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.message=void 0,this.cssClass=void 0,this.duration=0,this.backdropDismiss=!1,this.showBackdrop=!0,this.spinner=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(i,o){!0===i&&!1===o?this.present():!1===i&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:i,el:o,triggerController:e}=this;i&&e.addClickListener(o,i)}connectedCallback(){(0,l.j)(this.el),this.triggerChanged()}componentWillLoad(){if(void 0===this.spinner){const i=(0,s.b)(this);this.spinner=s.c.get("loadingSpinner",s.c.get("spinner","ios"===i?"lines":"crescent"))}(0,l.k)(this.el)}componentDidLoad(){!0===this.isOpen&&(0,y.r)(()=>this.present()),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}present(){var i=this;return(0,p.Z)(function*(){const o=yield i.lockController.lock();yield i.delegateController.attachViewToDom(),yield(0,l.f)(i,"loadingEnter",g,c),i.duration>0&&(i.durationTimeout=setTimeout(()=>i.dismiss(),i.duration+10)),o()})()}dismiss(i,o){var e=this;return(0,p.Z)(function*(){const r=yield e.lockController.lock();e.durationTimeout&&clearTimeout(e.durationTimeout);const f=yield(0,l.g)(e,i,o,"loadingLeave",u,w);return f&&e.delegateController.removeViewFromDom(),r(),f})()}onDidDismiss(){return(0,l.h)(this.el,"ionLoadingDidDismiss")}onWillDismiss(){return(0,l.h)(this.el,"ionLoadingWillDismiss")}renderLoadingMessage(i){const{customHTMLEnabled:o,message:e}=this;return o?(0,t.h)("div",{class:"loading-content",id:i,innerHTML:(0,m.a)(e)}):(0,t.h)("div",{class:"loading-content",id:i},e)}render(){const{message:i,spinner:o,htmlAttributes:e,overlayIndex:r}=this,f=(0,s.b)(this),v=`loading-${r}-msg`;return(0,t.h)(t.H,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==i?v:null,tabindex:"-1"},e,{style:{zIndex:`${4e4+this.overlayIndex}`},onIonBackdropTap:this.onBackdropTap,class:Object.assign(Object.assign({},(0,x.g)(this.cssClass)),{[f]:!0,"overlay-hidden":!0,"loading-translucent":this.translucent})}),(0,t.h)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,t.h)("div",{tabindex:"0"}),(0,t.h)("div",{class:"loading-wrapper ion-overlay-wrapper"},o&&(0,t.h)("div",{class:"loading-spinner"},(0,t.h)("ion-spinner",{name:o,"aria-hidden":"true"})),void 0!==i&&this.renderLoadingMessage(v)),(0,t.h)("div",{tabindex:"0"}))}get el(){return(0,t.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}};_.style={ios:".sc-ion-loading-ios-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-ios-h{display:none}.loading-wrapper.sc-ion-loading-ios{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);opacity:0;z-index:10}ion-spinner.sc-ion-loading-ios{color:var(--spinner-color)}.sc-ion-loading-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--max-height:90%;--spinner-color:var(--ion-color-step-600, #666666);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);color:var(--ion-text-color, #000);font-size:0.875rem}.loading-wrapper.sc-ion-loading-ios{border-radius:8px;-webkit-padding-start:34px;padding-inline-start:34px;-webkit-padding-end:34px;padding-inline-end:34px;padding-top:24px;padding-bottom:24px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.loading-translucent.sc-ion-loading-ios-h .loading-wrapper.sc-ion-loading-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.loading-content.sc-ion-loading-ios{font-weight:bold}.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{-webkit-margin-start:16px;margin-inline-start:16px}",md:".sc-ion-loading-md-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-md-h{display:none}.loading-wrapper.sc-ion-loading-md{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);opacity:0;z-index:10}ion-spinner.sc-ion-loading-md{color:var(--spinner-color)}.sc-ion-loading-md-h{--background:var(--ion-color-step-50, #f2f2f2);--max-width:280px;--max-height:90%;--spinner-color:var(--ion-color-primary, #3880ff);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);color:var(--ion-color-step-850, #262626);font-size:0.875rem}.loading-wrapper.sc-ion-loading-md{border-radius:2px;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:24px;padding-bottom:24px;-webkit-box-shadow:0 16px 20px rgba(0, 0, 0, 0.4);box-shadow:0 16px 20px rgba(0, 0, 0, 0.4)}.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{-webkit-margin-start:16px;margin-inline-start:16px}"}},4459:(k,h,a)=>{a.d(h,{c:()=>m,g:()=>b,h:()=>t,o:()=>x});var p=a(5861);const t=(s,n)=>null!==n.closest(s),m=(s,n)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},n):n,b=s=>{const n={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(s).forEach(d=>n[d]=!0),n},l=/^[a-z][a-z0-9+\-.]*:/,x=function(){var s=(0,p.Z)(function*(n,d,g,u){if(null!=n&&"#"!==n[0]&&!l.test(n)){const c=document.querySelector("ion-router");if(c)return d?.preventDefault(),c.push(n,g,u)}return!1});return function(d,g,u,c){return s.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3483.91811fdb183a3e14.js b/3483.91811fdb183a3e14.js deleted file mode 100644 index c7b1f0aa..00000000 --- a/3483.91811fdb183a3e14.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3483],{3483:(k,h,s)=>{s.r(h),s.d(h,{ion_loading:()=>_});var p=s(5861),t=s(5349),m=s(3365),y=s(839),b=s(3830),l=s(7612),x=s(3567),a=s(3882),n=s(6410);s(6225);const g=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},u=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},c=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.01,transform:"scale(1.1)"},{offset:1,opacity:1,transform:"scale(1)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},w=i=>{const o=(0,n.c)(),e=(0,n.c)(),r=(0,n.c)();return e.addElement(i.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),r.addElement(i.querySelector(".loading-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),o.addElement(i).easing("ease-in-out").duration(200).addAnimation([e,r])},_=class{constructor(i){(0,t.r)(this,i),this.didPresent=(0,t.d)(this,"ionLoadingDidPresent",7),this.willPresent=(0,t.d)(this,"ionLoadingWillPresent",7),this.willDismiss=(0,t.d)(this,"ionLoadingWillDismiss",7),this.didDismiss=(0,t.d)(this,"ionLoadingDidDismiss",7),this.didPresentShorthand=(0,t.d)(this,"didPresent",7),this.willPresentShorthand=(0,t.d)(this,"willPresent",7),this.willDismissShorthand=(0,t.d)(this,"willDismiss",7),this.didDismissShorthand=(0,t.d)(this,"didDismiss",7),this.delegateController=(0,l.d)(this),this.lockController=(0,b.c)(),this.triggerController=(0,l.e)(),this.customHTMLEnabled=a.c.get("innerHTMLTemplatesEnabled",m.E),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,l.B)},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.message=void 0,this.cssClass=void 0,this.duration=0,this.backdropDismiss=!1,this.showBackdrop=!0,this.spinner=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(i,o){!0===i&&!1===o?this.present():!1===i&&!0===o&&this.dismiss()}triggerChanged(){const{trigger:i,el:o,triggerController:e}=this;i&&e.addClickListener(o,i)}connectedCallback(){(0,l.j)(this.el),this.triggerChanged()}componentWillLoad(){if(void 0===this.spinner){const i=(0,a.b)(this);this.spinner=a.c.get("loadingSpinner",a.c.get("spinner","ios"===i?"lines":"crescent"))}(0,l.k)(this.el)}componentDidLoad(){!0===this.isOpen&&(0,y.r)(()=>this.present())}disconnectedCallback(){this.triggerController.removeClickListener()}present(){var i=this;return(0,p.Z)(function*(){const o=yield i.lockController.lock();yield i.delegateController.attachViewToDom(),yield(0,l.f)(i,"loadingEnter",g,c),i.duration>0&&(i.durationTimeout=setTimeout(()=>i.dismiss(),i.duration+10)),o()})()}dismiss(i,o){var e=this;return(0,p.Z)(function*(){const r=yield e.lockController.lock();e.durationTimeout&&clearTimeout(e.durationTimeout);const f=yield(0,l.g)(e,i,o,"loadingLeave",u,w);return f&&e.delegateController.removeViewFromDom(),r(),f})()}onDidDismiss(){return(0,l.h)(this.el,"ionLoadingDidDismiss")}onWillDismiss(){return(0,l.h)(this.el,"ionLoadingWillDismiss")}renderLoadingMessage(i){const{customHTMLEnabled:o,message:e}=this;return o?(0,t.h)("div",{class:"loading-content",id:i,innerHTML:(0,m.a)(e)}):(0,t.h)("div",{class:"loading-content",id:i},e)}render(){const{message:i,spinner:o,htmlAttributes:e,overlayIndex:r}=this,f=(0,a.b)(this),v=`loading-${r}-msg`;return(0,t.h)(t.H,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==i?v:null,tabindex:"-1"},e,{style:{zIndex:`${4e4+this.overlayIndex}`},onIonBackdropTap:this.onBackdropTap,class:Object.assign(Object.assign({},(0,x.g)(this.cssClass)),{[f]:!0,"overlay-hidden":!0,"loading-translucent":this.translucent})}),(0,t.h)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,t.h)("div",{tabindex:"0"}),(0,t.h)("div",{class:"loading-wrapper ion-overlay-wrapper"},o&&(0,t.h)("div",{class:"loading-spinner"},(0,t.h)("ion-spinner",{name:o,"aria-hidden":"true"})),void 0!==i&&this.renderLoadingMessage(v)),(0,t.h)("div",{tabindex:"0"}))}get el(){return(0,t.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}};_.style={ios:".sc-ion-loading-ios-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-ios-h{display:none}.loading-wrapper.sc-ion-loading-ios{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);opacity:0;z-index:10}ion-spinner.sc-ion-loading-ios{color:var(--spinner-color)}.sc-ion-loading-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:270px;--max-height:90%;--spinner-color:var(--ion-color-step-600, #666666);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);color:var(--ion-text-color, #000);font-size:0.875rem}.loading-wrapper.sc-ion-loading-ios{border-radius:8px;-webkit-padding-start:34px;padding-inline-start:34px;-webkit-padding-end:34px;padding-inline-end:34px;padding-top:24px;padding-bottom:24px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.loading-translucent.sc-ion-loading-ios-h .loading-wrapper.sc-ion-loading-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.loading-content.sc-ion-loading-ios{font-weight:bold}.loading-spinner.sc-ion-loading-ios+.loading-content.sc-ion-loading-ios{-webkit-margin-start:16px;margin-inline-start:16px}",md:".sc-ion-loading-md-h{--min-width:auto;--width:auto;--min-height:auto;--height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:fixed;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-loading-md-h{display:none}.loading-wrapper.sc-ion-loading-md{display:-ms-flexbox;display:flex;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);opacity:0;z-index:10}ion-spinner.sc-ion-loading-md{color:var(--spinner-color)}.sc-ion-loading-md-h{--background:var(--ion-color-step-50, #f2f2f2);--max-width:280px;--max-height:90%;--spinner-color:var(--ion-color-primary, #3880ff);--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);color:var(--ion-color-step-850, #262626);font-size:0.875rem}.loading-wrapper.sc-ion-loading-md{border-radius:2px;-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:24px;padding-bottom:24px;-webkit-box-shadow:0 16px 20px rgba(0, 0, 0, 0.4);box-shadow:0 16px 20px rgba(0, 0, 0, 0.4)}.loading-spinner.sc-ion-loading-md+.loading-content.sc-ion-loading-md{-webkit-margin-start:16px;margin-inline-start:16px}"}},3567:(k,h,s)=>{s.d(h,{c:()=>m,g:()=>b,h:()=>t,o:()=>x});var p=s(5861);const t=(a,n)=>null!==n.closest(a),m=(a,n)=>"string"==typeof a&&a.length>0?Object.assign({"ion-color":!0,[`ion-color-${a}`]:!0},n):n,b=a=>{const n={};return(a=>void 0!==a?(Array.isArray(a)?a:a.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(a).forEach(d=>n[d]=!0),n},l=/^[a-z][a-z0-9+\-.]*:/,x=function(){var a=(0,p.Z)(function*(n,d,g,u){if(null!=n&&"#"!==n[0]&&!l.test(n)){const c=document.querySelector("ion-router");if(c)return d?.preventDefault(),c.push(n,g,u)}return!1});return function(d,g,u,c){return a.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3544.852eb714f33ef324.js b/3544.55827b13c2d5e2f0.js similarity index 96% rename from 3544.852eb714f33ef324.js rename to 3544.55827b13c2d5e2f0.js index 84dbbf60..a56364fd 100644 --- a/3544.852eb714f33ef324.js +++ b/3544.55827b13c2d5e2f0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3544],{3544:(b,s,a)=>{a.r(s),a.d(s,{ion_avatar:()=>l,ion_badge:()=>o,ion_thumbnail:()=>e});var r=a(5349),d=a(3882),c=a(3567);const l=class{constructor(i){(0,r.r)(this,i)}render(){return(0,r.h)(r.H,{class:(0,d.b)(this)},(0,r.h)("slot",null))}};l.style={ios:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",md:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}"};const o=class{constructor(i){(0,r.r)(this,i),this.color=void 0}render(){const i=(0,d.b)(this);return(0,r.h)(r.H,{class:(0,c.c)(this.color,{[i]:!0})},(0,r.h)("slot",null))}};o.style={ios:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{border-radius:10px;font-size:max(13px, 0.8125rem)}",md:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{--padding-top:3px;--padding-end:4px;--padding-bottom:4px;--padding-start:4px;border-radius:4px}"};const e=class{constructor(i){(0,r.r)(this,i)}render(){return(0,r.h)(r.H,{class:(0,d.b)(this)},(0,r.h)("slot",null))}};e.style=":host{--size:48px;--border-radius:0;border-radius:var(--border-radius);display:block;width:var(--size);height:var(--size)}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}"},3567:(b,s,a)=>{a.d(s,{c:()=>c,g:()=>g,h:()=>d,o:()=>h});var r=a(5861);const d=(t,o)=>null!==o.closest(t),c=(t,o)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},o):o,g=t=>{const o={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(t).forEach(n=>o[n]=!0),o},l=/^[a-z][a-z0-9+\-.]*:/,h=function(){var t=(0,r.Z)(function*(o,n,e,i){if(null!=o&&"#"!==o[0]&&!l.test(o)){const u=document.querySelector("ion-router");if(u)return n?.preventDefault(),u.push(o,e,i)}return!1});return function(n,e,i,u){return t.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3544],{3544:(b,s,a)=>{a.r(s),a.d(s,{ion_avatar:()=>l,ion_badge:()=>o,ion_thumbnail:()=>e});var r=a(9942),d=a(5551),c=a(4459);const l=class{constructor(i){(0,r.r)(this,i)}render(){return(0,r.h)(r.H,{class:(0,d.b)(this)},(0,r.h)("slot",null))}};l.style={ios:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:48px;height:48px}",md:":host{border-radius:var(--border-radius);display:block}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}:host{--border-radius:50%;width:64px;height:64px}"};const o=class{constructor(i){(0,r.r)(this,i),this.color=void 0}render(){const i=(0,d.b)(this);return(0,r.h)(r.H,{class:(0,c.c)(this.color,{[i]:!0})},(0,r.h)("slot",null))}};o.style={ios:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{border-radius:10px;font-size:max(13px, 0.8125rem)}",md:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);--padding-top:3px;--padding-end:8px;--padding-bottom:3px;--padding-start:8px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:inline-block;min-width:10px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);font-size:0.8125rem;font-weight:bold;line-height:1;text-align:center;white-space:nowrap;contain:content;vertical-align:baseline}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(:empty){display:none}:host{--padding-top:3px;--padding-end:4px;--padding-bottom:4px;--padding-start:4px;border-radius:4px}"};const e=class{constructor(i){(0,r.r)(this,i)}render(){return(0,r.h)(r.H,{class:(0,d.b)(this)},(0,r.h)("slot",null))}};e.style=":host{--size:48px;--border-radius:0;border-radius:var(--border-radius);display:block;width:var(--size);height:var(--size)}::slotted(ion-img),::slotted(img){border-radius:var(--border-radius);width:100%;height:100%;-o-object-fit:cover;object-fit:cover;overflow:hidden}"},4459:(b,s,a)=>{a.d(s,{c:()=>c,g:()=>g,h:()=>d,o:()=>h});var r=a(5861);const d=(t,o)=>null!==o.closest(t),c=(t,o)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},o):o,g=t=>{const o={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(t).forEach(n=>o[n]=!0),o},l=/^[a-z][a-z0-9+\-.]*:/,h=function(){var t=(0,r.Z)(function*(o,n,e,i){if(null!=o&&"#"!==o[0]&&!l.test(o)){const u=document.querySelector("ion-router");if(u)return n?.preventDefault(),u.push(o,e,i)}return!1});return function(n,e,i,u){return t.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3672.06013441ef2f96e2.js b/3672.06013441ef2f96e2.js deleted file mode 100644 index b8827437..00000000 --- a/3672.06013441ef2f96e2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3672],{3672:(z,k,d)=>{d.r(k),d.d(k,{ion_segment:()=>s,ion_segment_button:()=>p});var w=d(5861),r=d(5349),b=d(839),y=d(5085),m=d(3567),C=d(3882);const s=class{constructor(t){(0,r.r)(this,t),this.ionChange=(0,r.d)(this,"ionChange",7),this.ionSelect=(0,r.d)(this,"ionSelect",7),this.ionStyle=(0,r.d)(this,"ionStyle",7),this.onClick=e=>{const n=e.target,o=this.checked;"ION-SEGMENT"!==n.tagName&&(this.value=n.value,n!==o&&this.emitValueChange(),(this.scrollable||!this.swipeGesture)&&(o?this.checkButton(o,n):this.setCheckedClasses()))},this.getSegmentButton=e=>{var n,o;const i=this.getButtons().filter(a=>!a.disabled),l=i.findIndex(a=>a===document.activeElement);switch(e){case"first":return i[0];case"last":return i[i.length-1];case"next":return null!==(n=i[l+1])&&void 0!==n?n:i[0];case"previous":return null!==(o=i[l-1])&&void 0!==o?o:i[i.length-1];default:return null}},this.activated=!1,this.color=void 0,this.disabled=!1,this.scrollable=!1,this.swipeGesture=!0,this.value=void 0,this.selectOnFocus=!1}colorChanged(t,e){(void 0===e&&void 0!==t||void 0!==e&&void 0===t)&&this.emitStyle()}swipeGestureChanged(){this.gestureChanged()}valueChanged(t){this.ionSelect.emit({value:t}),this.scrollActiveButtonIntoView()}disabledChanged(){this.gestureChanged();const t=this.getButtons();for(const e of t)e.disabled=this.disabled}gestureChanged(){this.gesture&&this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}connectedCallback(){this.emitStyle()}componentWillLoad(){this.emitStyle()}componentDidLoad(){var t=this;return(0,w.Z)(function*(){t.setCheckedClasses(),(0,b.r)(()=>{t.scrollActiveButtonIntoView(!1)}),t.gesture=(yield Promise.resolve().then(d.bind(d,9203))).createGesture({el:t.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:!1,onStart:e=>t.onStart(e),onMove:e=>t.onMove(e),onEnd:e=>t.onEnd(e)}),t.gestureChanged(),t.disabled&&t.disabledChanged()})()}onStart(t){this.valueBeforeGesture=this.value,this.activate(t)}onMove(t){this.setNextIndex(t)}onEnd(t){this.setActivated(!1),this.setNextIndex(t,!0),t.event.stopImmediatePropagation();const e=this.value;void 0!==e&&this.valueBeforeGesture!==e&&this.emitValueChange(),this.valueBeforeGesture=void 0}emitValueChange(){const{value:t}=this;this.ionChange.emit({value:t})}getButtons(){return Array.from(this.el.querySelectorAll("ion-segment-button"))}get checked(){return this.getButtons().find(t=>t.value===this.value)}setActivated(t){this.getButtons().forEach(n=>{t?n.classList.add("segment-button-activated"):n.classList.remove("segment-button-activated")}),this.activated=t}activate(t){const e=t.event.target,o=this.getButtons().find(i=>i.value===this.value);"ION-SEGMENT-BUTTON"===e.tagName&&(o||(this.value=e.value,this.setCheckedClasses()),this.value===e.value&&this.setActivated(!0))}getIndicator(t){return(t.shadowRoot||t).querySelector(".segment-button-indicator")}checkButton(t,e){const n=this.getIndicator(t),o=this.getIndicator(e);if(null===n||null===o)return;const i=n.getBoundingClientRect(),l=o.getBoundingClientRect(),g=`translate3d(${i.left-l.left}px, 0, 0) scaleX(${i.width/l.width})`;(0,r.w)(()=>{o.classList.remove("segment-button-indicator-animated"),o.style.setProperty("transform",g),o.getBoundingClientRect(),o.classList.add("segment-button-indicator-animated"),o.style.setProperty("transform","")}),this.value=e.value,this.setCheckedClasses()}setCheckedClasses(){const t=this.getButtons(),n=t.findIndex(o=>o.value===this.value)+1;for(const o of t)o.classList.remove("segment-button-after-checked");na.value===n);if(void 0!==l){const a=o.getBoundingClientRect(),h=l.getBoundingClientRect();o.scrollBy({top:0,left:h.x-a.x-a.width/2+h.width/2,behavior:t?"smooth":"instant"})}}}setNextIndex(t,e=!1){const n=(0,y.i)(this.el),o=this.activated,i=this.getButtons(),l=i.findIndex(f=>f.value===this.value),a=i[l];let h,g;if(-1===l)return;const v=a.getBoundingClientRect(),E=v.left,I=v.width,x=t.currentX,D=v.top+v.height/2,L=this.el.getRootNode().elementFromPoint(x,D);if(o&&!e){if(n?x>E+I:x=0&&(g=f)}else if((n?xE+I)&&o&&!e){const f=l+1;f{(0,r.i)(this)},this.updateState=()=>{const{segmentEl:e}=this;e&&(this.checked=e.value===this.value,e.disabled&&(this.disabled=!0))},this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+B++}valueChanged(){this.updateState()}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),(0,b.a)(t,"ionSelect",this.updateState),(0,b.a)(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&((0,b.b)(t,"ionSelect",this.updateState),(0,b.b)(t,"ionStyle",this.updateStyle),this.segmentEl=null)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,b.k)(this.el,["aria-label"]))}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}setFocus(){var t=this;return(0,w.Z)(function*(){const{nativeEl:e}=t;void 0!==e&&e.focus()})()}render(){const{checked:t,type:e,disabled:n,hasIcon:o,hasLabel:i,layout:l,segmentEl:a}=this,h=(0,C.b)(this);return(0,r.h)(r.H,{class:{[h]:!0,"in-toolbar":(0,m.h)("ion-toolbar",this.el),"in-toolbar-color":(0,m.h)("ion-toolbar[color]",this.el),"in-segment":(0,m.h)("ion-segment",this.el),"in-segment-color":void 0!==a?.color,"segment-button-has-label":i,"segment-button-has-icon":o,"segment-button-has-label-only":i&&!o,"segment-button-has-icon-only":o&&!i,"segment-button-disabled":n,"segment-button-checked":t,[`segment-button-layout-${l}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},(0,r.h)("button",Object.assign({"aria-selected":t?"true":"false",role:"tab",ref:v=>this.nativeEl=v,type:e,class:"button-native",part:"native",disabled:n},this.inheritedAttributes),(0,r.h)("span",{class:"button-inner"},(0,r.h)("slot",null)),"md"===h&&(0,r.h)("ion-ripple-effect",null)),(0,r.h)("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},(0,r.h)("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return(0,r.f)(this)}static get watchers(){return{value:["valueChanged"]}}};p.style={ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'}},3567:(z,k,d)=>{d.d(k,{c:()=>b,g:()=>m,h:()=>r,o:()=>S});var w=d(5861);const r=(c,s)=>null!==s.closest(c),b=(c,s)=>"string"==typeof c&&c.length>0?Object.assign({"ion-color":!0,[`ion-color-${c}`]:!0},s):s,m=c=>{const s={};return(c=>void 0!==c?(Array.isArray(c)?c:c.split(" ")).filter(u=>null!=u).map(u=>u.trim()).filter(u=>""!==u):[])(c).forEach(u=>s[u]=!0),s},C=/^[a-z][a-z0-9+\-.]*:/,S=function(){var c=(0,w.Z)(function*(s,u,_,B){if(null!=s&&"#"!==s[0]&&!C.test(s)){const p=document.querySelector("ion-router");if(p)return u?.preventDefault(),p.push(s,_,B)}return!1});return function(u,_,B,p){return c.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3672.e917aad16f9ba8c0.js b/3672.e917aad16f9ba8c0.js new file mode 100644 index 00000000..5daf653a --- /dev/null +++ b/3672.e917aad16f9ba8c0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3672],{3672:(z,k,d)=>{d.r(k),d.d(k,{ion_segment:()=>s,ion_segment_button:()=>p});var w=d(5861),r=d(9942),b=d(512),y=d(4162),m=d(4459),C=d(5551);const s=class{constructor(t){(0,r.r)(this,t),this.ionChange=(0,r.d)(this,"ionChange",7),this.ionSelect=(0,r.d)(this,"ionSelect",7),this.ionStyle=(0,r.d)(this,"ionStyle",7),this.onClick=e=>{const n=e.target,o=this.checked;"ION-SEGMENT"!==n.tagName&&(this.value=n.value,n!==o&&this.emitValueChange(),(this.scrollable||!this.swipeGesture)&&(o?this.checkButton(o,n):this.setCheckedClasses()))},this.getSegmentButton=e=>{var n,o;const i=this.getButtons().filter(a=>!a.disabled),l=i.findIndex(a=>a===document.activeElement);switch(e){case"first":return i[0];case"last":return i[i.length-1];case"next":return null!==(n=i[l+1])&&void 0!==n?n:i[0];case"previous":return null!==(o=i[l-1])&&void 0!==o?o:i[i.length-1];default:return null}},this.activated=!1,this.color=void 0,this.disabled=!1,this.scrollable=!1,this.swipeGesture=!0,this.value=void 0,this.selectOnFocus=!1}colorChanged(t,e){(void 0===e&&void 0!==t||void 0!==e&&void 0===t)&&this.emitStyle()}swipeGestureChanged(){this.gestureChanged()}valueChanged(t){this.ionSelect.emit({value:t}),this.scrollActiveButtonIntoView()}disabledChanged(){this.gestureChanged();const t=this.getButtons();for(const e of t)e.disabled=this.disabled}gestureChanged(){this.gesture&&this.gesture.enable(!this.scrollable&&!this.disabled&&this.swipeGesture)}connectedCallback(){this.emitStyle()}componentWillLoad(){this.emitStyle()}componentDidLoad(){var t=this;return(0,w.Z)(function*(){t.setCheckedClasses(),t.ionSelect.emit({value:t.value}),(0,b.r)(()=>{t.scrollActiveButtonIntoView(!1)}),t.gesture=(yield Promise.resolve().then(d.bind(d,6535))).createGesture({el:t.el,gestureName:"segment",gesturePriority:100,threshold:0,passive:!1,onStart:e=>t.onStart(e),onMove:e=>t.onMove(e),onEnd:e=>t.onEnd(e)}),t.gestureChanged(),t.disabled&&t.disabledChanged()})()}onStart(t){this.valueBeforeGesture=this.value,this.activate(t)}onMove(t){this.setNextIndex(t)}onEnd(t){this.setActivated(!1),this.setNextIndex(t,!0),t.event.stopImmediatePropagation();const e=this.value;void 0!==e&&this.valueBeforeGesture!==e&&this.emitValueChange(),this.valueBeforeGesture=void 0}emitValueChange(){const{value:t}=this;this.ionChange.emit({value:t})}getButtons(){return Array.from(this.el.querySelectorAll("ion-segment-button"))}get checked(){return this.getButtons().find(t=>t.value===this.value)}setActivated(t){this.getButtons().forEach(n=>{t?n.classList.add("segment-button-activated"):n.classList.remove("segment-button-activated")}),this.activated=t}activate(t){const e=t.event.target,o=this.getButtons().find(i=>i.value===this.value);"ION-SEGMENT-BUTTON"===e.tagName&&(o||(this.value=e.value,this.setCheckedClasses()),this.value===e.value&&this.setActivated(!0))}getIndicator(t){return(t.shadowRoot||t).querySelector(".segment-button-indicator")}checkButton(t,e){const n=this.getIndicator(t),o=this.getIndicator(e);if(null===n||null===o)return;const i=n.getBoundingClientRect(),l=o.getBoundingClientRect(),g=`translate3d(${i.left-l.left}px, 0, 0) scaleX(${i.width/l.width})`;(0,r.w)(()=>{o.classList.remove("segment-button-indicator-animated"),o.style.setProperty("transform",g),o.getBoundingClientRect(),o.classList.add("segment-button-indicator-animated"),o.style.setProperty("transform","")}),this.value=e.value,this.setCheckedClasses()}setCheckedClasses(){const t=this.getButtons(),n=t.findIndex(o=>o.value===this.value)+1;for(const o of t)o.classList.remove("segment-button-after-checked");na.value===n);if(void 0!==l){const a=o.getBoundingClientRect(),h=l.getBoundingClientRect();o.scrollBy({top:0,left:h.x-a.x-a.width/2+h.width/2,behavior:t?"smooth":"instant"})}}}setNextIndex(t,e=!1){const n=(0,y.i)(this.el),o=this.activated,i=this.getButtons(),l=i.findIndex(f=>f.value===this.value),a=i[l];let h,g;if(-1===l)return;const v=a.getBoundingClientRect(),E=v.left,I=v.width,x=t.currentX,D=v.top+v.height/2,L=this.el.getRootNode().elementFromPoint(x,D);if(o&&!e){if(n?x>E+I:x=0&&(g=f)}else if((n?xE+I)&&o&&!e){const f=l+1;f{(0,r.i)(this)},this.updateState=()=>{const{segmentEl:e}=this;e&&(this.checked=e.value===this.value,e.disabled&&(this.disabled=!0))},this.checked=!1,this.disabled=!1,this.layout="icon-top",this.type="button",this.value="ion-sb-"+B++}valueChanged(){this.updateState()}connectedCallback(){const t=this.segmentEl=this.el.closest("ion-segment");t&&(this.updateState(),(0,b.a)(t,"ionSelect",this.updateState),(0,b.a)(t,"ionStyle",this.updateStyle))}disconnectedCallback(){const t=this.segmentEl;t&&((0,b.b)(t,"ionSelect",this.updateState),(0,b.b)(t,"ionStyle",this.updateStyle),this.segmentEl=null)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,b.k)(this.el,["aria-label"]))}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}setFocus(){var t=this;return(0,w.Z)(function*(){const{nativeEl:e}=t;void 0!==e&&e.focus()})()}render(){const{checked:t,type:e,disabled:n,hasIcon:o,hasLabel:i,layout:l,segmentEl:a}=this,h=(0,C.b)(this);return(0,r.h)(r.H,{class:{[h]:!0,"in-toolbar":(0,m.h)("ion-toolbar",this.el),"in-toolbar-color":(0,m.h)("ion-toolbar[color]",this.el),"in-segment":(0,m.h)("ion-segment",this.el),"in-segment-color":void 0!==a?.color,"segment-button-has-label":i,"segment-button-has-icon":o,"segment-button-has-label-only":i&&!o,"segment-button-has-icon-only":o&&!i,"segment-button-disabled":n,"segment-button-checked":t,[`segment-button-layout-${l}`]:!0,"ion-activatable":!0,"ion-activatable-instant":!0,"ion-focusable":!0}},(0,r.h)("button",Object.assign({"aria-selected":t?"true":"false",role:"tab",ref:v=>this.nativeEl=v,type:e,class:"button-native",part:"native",disabled:n},this.inheritedAttributes),(0,r.h)("span",{class:"button-inner"},(0,r.h)("slot",null)),"md"===h&&(0,r.h)("ion-ripple-effect",null)),(0,r.h)("div",{part:"indicator",class:{"segment-button-indicator":!0,"segment-button-indicator-animated":!0}},(0,r.h)("div",{part:"indicator-background",class:"segment-button-indicator-background"})))}get el(){return(0,r.f)(this)}static get watchers(){return{value:["valueChanged"]}}};p.style={ios:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:none;--background-hover-opacity:0;--background-focused:none;--background-focused-opacity:0;--border-radius:7px;--border-width:1px;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--border-style:solid;--indicator-box-shadow:0 0 5px rgba(0, 0, 0, 0.16);--indicator-color:var(--ion-color-step-350, var(--ion-background-color, #fff));--indicator-height:100%;--indicator-transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--transition:100ms all linear;--padding-top:0;--padding-end:13px;--padding-bottom:0;--padding-start:13px;margin-top:2px;margin-bottom:2px;position:relative;-ms-flex-direction:row;flex-direction:row;min-width:70px;min-height:28px;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);font-size:13px;font-weight:450;line-height:37px}:host::before{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;-webkit-transition:160ms opacity ease-in-out;transition:160ms opacity ease-in-out;-webkit-transition-delay:100ms;transition-delay:100ms;border-left:var(--border-width) var(--border-style) var(--border-color);content:"";opacity:1;will-change:opacity}:host(:first-of-type)::before{border-left-color:transparent}:host(.segment-button-disabled){opacity:0.3}::slotted(ion-icon){font-size:24px}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:2px;margin-inline-end:2px}.segment-button-indicator{-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;left:0;right:0;top:0;bottom:0}.segment-button-indicator-background{border-radius:var(--border-radius);background:var(--indicator-color)}.segment-button-indicator-background{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked)::before,:host(.segment-button-after-checked)::before{opacity:0}:host(.segment-button-checked){z-index:-1}:host(.segment-button-activated){--indicator-transform:scale(0.95)}:host(.ion-focused) .button-native{opacity:0.7}@media (any-hover: hover){:host(:hover) .button-native{opacity:0.5}:host(.segment-button-checked:hover) .button-native{opacity:1}}:host(.in-segment-color){background:none;color:var(--ion-text-color, #000)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-step-350, var(--ion-background-color, #fff))}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native,:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-text-color, #000)}}:host(.in-toolbar:not(.in-segment-color)){--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, var(--ion-toolbar-color), initial);--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-toolbar-color), initial);--indicator-color:var(--ion-toolbar-segment-indicator-color, var(--ion-color-step-350, var(--ion-background-color, #fff)))}:host(.in-toolbar-color) .segment-button-indicator-background{background:var(--ion-color-contrast)}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color):hover) .button-native{color:var(--ion-color-contrast)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color):hover) .button-native{color:var(--ion-color-base)}}',md:':host{--color:initial;--color-hover:var(--color);--color-checked:var(--color);--color-disabled:var(--color);--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:column;flex-direction:column;height:auto;background:var(--background);color:var(--color);text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;min-width:inherit;max-width:inherit;height:auto;min-height:inherit;max-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:none;outline:none;background:transparent;contain:content;pointer-events:none;overflow:hidden;z-index:2}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}:host(.segment-button-checked){background:var(--background-checked);color:var(--color-checked)}:host(.segment-button-disabled){cursor:default;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(:focus){outline:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.segment-button-checked:hover) .button-native{color:var(--color-checked)}}::slotted(ion-icon){-ms-flex-negative:0;flex-shrink:0;-ms-flex-order:-1;order:-1;pointer-events:none}::slotted(ion-label){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;line-height:22px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.segment-button-layout-icon-top) .button-native{-ms-flex-direction:column;flex-direction:column}:host(.segment-button-layout-icon-start) .button-native{-ms-flex-direction:row;flex-direction:row}:host(.segment-button-layout-icon-end) .button-native{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.segment-button-layout-icon-bottom) .button-native{-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.segment-button-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.segment-button-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color, var(--color-checked))}.segment-button-indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;will-change:transform, opacity;pointer-events:none}.segment-button-indicator-background{width:100%;height:var(--indicator-height);-webkit-transform:var(--indicator-transform);transform:var(--indicator-transform);-webkit-box-shadow:var(--indicator-box-shadow);box-shadow:var(--indicator-box-shadow);pointer-events:none}.segment-button-indicator-animated{-webkit-transition:var(--indicator-transition);transition:var(--indicator-transition)}:host(.segment-button-checked) .segment-button-indicator{opacity:1}@media (prefers-reduced-motion: reduce){.segment-button-indicator-background{-webkit-transform:none;transform:none}.segment-button-indicator-animated{-webkit-transition:none;transition:none}}:host{--background:none;--background-checked:none;--background-hover:var(--color-checked);--background-focused:var(--color-checked);--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--indicator-box-shadow:none;--indicator-color:var(--color-checked);--indicator-height:2px;--indicator-transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1);--indicator-transform:none;--padding-top:0;--padding-end:16px;--padding-bottom:0;--padding-start:16px;--transition:color 0.15s linear 0s, opacity 0.15s linear 0s;min-width:90px;min-height:48px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);font-size:14px;font-weight:500;letter-spacing:0.06em;line-height:40px;text-transform:uppercase}:host(.segment-button-disabled){opacity:0.3}:host(.in-segment-color){background:none;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color) ion-ripple-effect{color:var(--ion-color-base)}:host(.in-segment-color) .segment-button-indicator-background{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked) .button-native{color:var(--ion-color-base)}:host(.in-segment-color.ion-focused) .button-native::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.in-segment-color:hover) .button-native{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6)}:host(.in-segment-color:hover) .button-native::after{background:var(--ion-color-base)}:host(.in-segment-color.segment-button-checked:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-segment-color)){--background:var(--ion-toolbar-segment-background, none);--background-checked:var(--ion-toolbar-segment-background-checked, none);--color:var(--ion-toolbar-segment-color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.6));--color-checked:var(--ion-toolbar-segment-color-checked, var(--ion-color-primary, #3880ff));--indicator-color:var(--ion-toolbar-segment-color-checked, var(--color-checked))}:host(.in-toolbar-color:not(.in-segment-color)) .button-native{color:rgba(var(--ion-color-contrast-rgb), 0.6)}:host(.in-toolbar-color.segment-button-checked:not(.in-segment-color)) .button-native{color:var(--ion-color-contrast)}@media (any-hover: hover){:host(.in-toolbar-color:not(.in-segment-color)) .button-native::after{background:var(--ion-color-contrast)}}::slotted(ion-icon){margin-top:12px;margin-bottom:12px;font-size:24px}::slotted(ion-label){margin-top:12px;margin-bottom:12px}:host(.segment-button-layout-icon-top) ::slotted(ion-label),:host(.segment-button-layout-icon-bottom) ::slotted(ion-icon){margin-top:0}:host(.segment-button-layout-icon-top) ::slotted(ion-icon),:host(.segment-button-layout-icon-bottom) ::slotted(ion-label){margin-bottom:0}:host(.segment-button-layout-icon-start) ::slotted(ion-label){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:0;margin-inline-end:0}:host(.segment-button-layout-icon-end) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px}:host(.segment-button-has-icon-only) ::slotted(ion-icon){margin-top:12px;margin-bottom:12px}:host(.segment-button-has-label-only) ::slotted(ion-label){margin-top:12px;margin-bottom:12px}.segment-button-indicator{left:0;right:0;bottom:0}.segment-button-indicator-background{background:var(--indicator-color)}:host(.in-toolbar:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-toolbar-segment-indicator-color, var(--indicator-color))}:host(.in-toolbar-color:not(.in-segment-color)) .segment-button-indicator-background{background:var(--ion-color-contrast)}'}},4459:(z,k,d)=>{d.d(k,{c:()=>b,g:()=>m,h:()=>r,o:()=>S});var w=d(5861);const r=(c,s)=>null!==s.closest(c),b=(c,s)=>"string"==typeof c&&c.length>0?Object.assign({"ion-color":!0,[`ion-color-${c}`]:!0},s):s,m=c=>{const s={};return(c=>void 0!==c?(Array.isArray(c)?c:c.split(" ")).filter(u=>null!=u).map(u=>u.trim()).filter(u=>""!==u):[])(c).forEach(u=>s[u]=!0),s},C=/^[a-z][a-z0-9+\-.]*:/,S=function(){var c=(0,w.Z)(function*(s,u,_,B){if(null!=s&&"#"!==s[0]&&!C.test(s)){const p=document.querySelector("ion-router");if(p)return u?.preventDefault(),p.push(s,_,B)}return!1});return function(u,_,B,p){return c.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3734.4e95f8c0a56d424d.js b/3734.4e95f8c0a56d424d.js new file mode 100644 index 00000000..a042ce2c --- /dev/null +++ b/3734.4e95f8c0a56d424d.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3734],{3734:(z,p,n)=>{n.r(p),n.d(p,{ion_textarea:()=>x});var h=n(5861),a=n(9942),u=n(9749),f=n(4793),c=n(512),w=n(2400),m=n(5917),r=n(4459),o=n(5551);n(1848);const x=class{constructor(t){(0,a.r)(this,t),this.ionChange=(0,a.d)(this,"ionChange",7),this.ionInput=(0,a.d)(this,"ionInput",7),this.ionStyle=(0,a.d)(this,"ionStyle",7),this.ionBlur=(0,a.d)(this,"ionBlur",7),this.ionFocus=(0,a.d)(this,"ionFocus",7),this.inputId="ion-textarea-"+E++,this.didTextareaClearOnEdit=!1,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onInput=e=>{const i=e.target;i&&(this.value=i.value||""),this.emitInputChange(e)},this.onChange=e=>{this.emitValueChange(e)},this.onFocus=e=>{this.hasFocus=!0,this.focusedValue=this.value,this.focusChange(),this.ionFocus.emit(e)},this.onBlur=e=>{this.hasFocus=!1,this.focusChange(),this.focusedValue!==this.value&&this.emitValueChange(e),this.didTextareaClearOnEdit=!1,this.ionBlur.emit(e)},this.onKeyDown=e=>{this.checkClearOnEdit(e)},this.hasFocus=!1,this.color=void 0,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=void 0,this.disabled=!1,this.fill=void 0,this.inputmode=void 0,this.enterkeyhint=void 0,this.maxlength=void 0,this.minlength=void 0,this.name=this.inputId,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.cols=void 0,this.rows=void 0,this.wrap=void 0,this.autoGrow=!1,this.value="",this.counter=!1,this.counterFormatter=void 0,this.errorText=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.shape=void 0}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:i}=this;this.ionInput=void 0===e?i??t:(0,c.j)(t,e)}disabledChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,e=this.getValue();t&&t.value!==e&&(t.value=e),this.runAutoGrow(),this.emitStyle()}connectedCallback(){const{el:t}=this;this.legacyFormController=(0,u.c)(t),this.slotMutationController=(0,m.c)(t,["label","start","end"],()=>(0,a.i)(this)),this.notchController=(0,f.c)(t,()=>this.notchSpacerEl,()=>this.labelSlot),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:t}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},(0,c.i)(this.el)),(0,c.k)(this.el,["data-form-type","title","tabindex"]))}componentDidLoad(){this.originalIonInput=this.ionInput,this.runAutoGrow()}componentDidRender(){var t;null===(t=this.notchController)||void 0===t||t.calculateNotchWidth()}setFocus(){var t=this;return(0,h.Z)(function*(){t.nativeInput&&t.nativeInput.focus()})()}getInputElement(){var t=this;return(0,h.Z)(function*(){return t.nativeInput||(yield new Promise(e=>(0,c.c)(t.el,e))),Promise.resolve(t.nativeInput)})()}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,textarea:!0,input:!0,"interactive-disabled":this.disabled,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,legacy:!!this.legacy})}emitValueChange(t){const{value:e}=this,i=null==e?e:e.toString();this.focusedValue=i,this.ionChange.emit({value:i,event:t})}emitInputChange(t){const{value:e}=this;this.ionInput.emit({value:e,event:t})}runAutoGrow(){this.nativeInput&&this.autoGrow&&(0,a.w)(()=>{var t;this.textareaWrapper&&(this.textareaWrapper.dataset.replicatedValue=null!==(t=this.value)&&void 0!==t?t:"")})}checkClearOnEdit(t){if(!this.clearOnEdit)return;const i=["Tab","Shift","Meta","Alt","Control"].includes(t.key);!this.didTextareaClearOnEdit&&this.hasValue()&&!i&&(this.value="",this.emitInputChange(t)),i||(this.didTextareaClearOnEdit=!0)}focusChange(){this.emitStyle()}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}renderLegacyTextarea(){this.hasLoggedDeprecationWarning||((0,w.p)('ion-textarea now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor textareas that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the textarea by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.hasLoggedDeprecationWarning=!0);const t=(0,o.b)(this),e=this.getValue(),i=this.inputId+"-lbl",s=(0,c.h)(this.el);return s&&(s.id=i),(0,a.h)(a.H,{"aria-disabled":this.disabled?"true":null,class:(0,r.c)(this.color,{[t]:!0,"legacy-textarea":!0})},(0,a.h)("div",{class:"textarea-legacy-wrapper",ref:d=>this.textareaWrapper=d},(0,a.h)("textarea",Object.assign({class:"native-textarea","aria-labelledby":s?s.id:null,ref:d=>this.nativeInput=d,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),e)))}renderLabel(){const{label:t}=this;return(0,a.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===t?(0,a.h)("slot",{name:"label"}):(0,a.h)("div",{class:"label-text"},t))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===(0,o.b)(this)&&"outline"===this.fill?[(0,a.h)("div",{class:"textarea-outline-container"},(0,a.h)("div",{class:"textarea-outline-start"}),(0,a.h)("div",{class:{"textarea-outline-notch":!0,"textarea-outline-notch-hidden":!this.hasLabel}},(0,a.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:i=>this.notchSpacerEl=i},this.label)),(0,a.h)("div",{class:"textarea-outline-end"})),this.renderLabel()]:this.renderLabel()}renderHintText(){const{helperText:t,errorText:e}=this;return[(0,a.h)("div",{class:"helper-text"},t),(0,a.h)("div",{class:"error-text"},e)]}renderCounter(){const{counter:t,maxlength:e,counterFormatter:i,value:s}=this;if(!0===t&&void 0!==e)return(0,a.h)("div",{class:"counter"},(0,m.g)(s,e,i))}renderBottomContent(){const{counter:t,helperText:e,errorText:i,maxlength:s}=this;if(e||i||!0===t&&void 0!==s)return(0,a.h)("div",{class:"textarea-bottom"},this.renderHintText(),this.renderCounter())}renderTextarea(){const{inputId:t,disabled:e,fill:i,shape:s,labelPlacement:d,el:y,hasFocus:k}=this,_=(0,o.b)(this),I=this.getValue(),O=(0,r.h)("ion-item",this.el),D="md"===_&&"outline"!==i&&!O,C=this.hasValue(),T=null!==y.querySelector('[slot="start"], [slot="end"]');return(0,a.h)(a.H,{class:(0,r.c)(this.color,{[_]:!0,"has-value":C,"has-focus":k,"label-floating":"stacked"===d||"floating"===d&&(C||k||T),[`textarea-fill-${i}`]:void 0!==i,[`textarea-shape-${s}`]:void 0!==s,[`textarea-label-placement-${d}`]:!0,"textarea-disabled":e})},(0,a.h)("label",{class:"textarea-wrapper",htmlFor:t},this.renderLabelContainer(),(0,a.h)("div",{class:"textarea-wrapper-inner"},(0,a.h)("div",{class:"start-slot-wrapper"},(0,a.h)("slot",{name:"start"})),(0,a.h)("div",{class:"native-wrapper",ref:v=>this.textareaWrapper=v},(0,a.h)("textarea",Object.assign({class:"native-textarea",ref:v=>this.nativeInput=v,id:t,disabled:e,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,minLength:this.minlength,maxLength:this.maxlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),I)),(0,a.h)("div",{class:"end-slot-wrapper"},(0,a.h)("slot",{name:"end"}))),D&&(0,a.h)("div",{class:"textarea-highlight"})),this.renderBottomContent())}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyTextarea():this.renderTextarea()}get el(){return(0,a.f)(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}};let E=0;x.style={ios:'.sc-ion-textarea-ios-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-ios-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-ios-h,.textarea-label-placement-stacked.sc-ion-textarea-ios-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-ios-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-ios-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-ios-h{color:var(--ion-color-base)}.sc-ion-textarea-ios-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-ios-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-ios-h,ion-item .sc-ion-textarea-ios-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-ios-h,ion-item [slot=start].sc-ion-textarea-ios-h,ion-item[slot=end].sc-ion-textarea-ios-h,ion-item [slot=end].sc-ion-textarea-ios-h{width:auto}.native-textarea.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-ios::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{white-space:inherit}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios,.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-ios{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{left:0}[dir=rtl].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-ios .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-ios:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{height:100%}[auto-grow].sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-ios{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-ios,.textarea-legacy-wrapper.sc-ion-textarea-ios{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-ios::after,.textarea-legacy-wrapper.sc-ion-textarea-ios::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-ios::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-ios{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-ios-h,.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:block}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:none}.textarea-bottom.sc-ion-textarea-ios .counter.sc-ion-textarea-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-ios,.sc-ion-textarea-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-ios,.textarea-outline-notch-hidden.sc-ion-textarea-ios{display:none}.textarea-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text.sc-ion-textarea-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-stacked.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-stacked .sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-h.textarea-label-placement-floating.sc-ion-textarea-ios-s>[slot=end],.sc-ion-textarea-ios-h.textarea-label-placement-floating .sc-ion-textarea-ios-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.has-value.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:1}.label-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-ios,.end-slot-wrapper.sc-ion-textarea-ios{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-ios-s>[slot=start],.sc-ion-textarea-ios-s>[slot=end]{margin-top:0}.sc-ion-textarea-ios-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-textarea-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--padding-top:10px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-textarea-ios-h,.item-label-stacked .sc-ion-textarea-ios-h,.item-label-floating.sc-ion-textarea-ios-h,.item-label-floating .sc-ion-textarea-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea[disabled].sc-ion-textarea-ios,.textarea-disabled.sc-ion-textarea-ios-h{opacity:0.3}.sc-ion-textarea-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-ios-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}',md:'.sc-ion-textarea-md-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-md-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-md-h,.textarea-label-placement-stacked.sc-ion-textarea-md-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-md-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-md-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-md-h{color:var(--ion-color-base)}.sc-ion-textarea-md-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-md-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-md-h,ion-item .sc-ion-textarea-md-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-md-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-md-h,ion-item [slot=start].sc-ion-textarea-md-h,ion-item[slot=end].sc-ion-textarea-md-h,ion-item [slot=end].sc-ion-textarea-md-h{width:auto}.native-textarea.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-md::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{white-space:inherit}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md,.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-md{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-md:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{height:100%}[auto-grow].sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-md{position:relative;width:100%;height:100%}.has-focus.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-md,.textarea-legacy-wrapper.sc-ion-textarea-md{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-md::after,.textarea-legacy-wrapper.sc-ion-textarea-md::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-md::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.textarea-wrapper-inner.sc-ion-textarea-md{display:-ms-flexbox;display:flex;width:100%;min-height:inherit}.ion-touched.ion-invalid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-md-h,.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:block}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:none}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-md,.sc-ion-textarea-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-md,.textarea-outline-notch-hidden.sc-ion-textarea-md{display:none}.textarea-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text.sc-ion-textarea-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:8px}.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.has-value.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:1}.label-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.start-slot-wrapper.sc-ion-textarea-md,.end-slot-wrapper.sc-ion-textarea-md{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;-ms-flex-item-align:start;align-self:start}.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-s>[slot=end]{margin-top:0}.sc-ion-textarea-md-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-textarea-md-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.textarea-fill-solid.sc-ion-textarea-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.textarea-fill-solid.ion-valid.sc-ion-textarea-md-h,.textarea-fill-solid.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}@media (any-hover: hover){.textarea-fill-solid.sc-ion-textarea-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-solid.has-focus.sc-ion-textarea-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-solid.sc-ion-textarea-md-h:dir(rtl) .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.label-floating.textarea-fill-solid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{max-width:calc(100% / 0.75)}.textarea-fill-outline.sc-ion-textarea-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-outline.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.textarea-fill-outline.ion-valid.sc-ion-textarea-md-h,.textarea-fill-outline.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.textarea-fill-outline.sc-ion-textarea-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-outline.has-focus.sc-ion-textarea-md-h{--border-width:2px;--border-color:var(--highlight-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:none}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{position:relative}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc(\n (100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75\n )}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-fill-outline.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:12px;margin-bottom:0px}.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-stacked .sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=start],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-s>[slot=end],.sc-ion-textarea-md-h.textarea-fill-outline.textarea-label-placement-floating .sc-ion-textarea-md-s>[slot=end]{margin-top:12px}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-container.sc-ion-textarea-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{pointer-events:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.textarea-fill-outline.sc-ion-textarea-md-h .notch-spacer.sc-ion-textarea-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.label-floating.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{border-top:none}.sc-ion-textarea-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--padding-top:18px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:8px;margin-left:0;margin-right:0;margin-top:8px;margin-bottom:0}.item-label-stacked.sc-ion-textarea-md-h,.item-label-stacked .sc-ion-textarea-md-h,.item-label-floating.sc-ion-textarea-md-h,.item-label-floating .sc-ion-textarea-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{letter-spacing:0.0333333333em}.textarea-label-placement-floating.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.has-focus.textarea-label-placement-floating.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-label-placement-stacked.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea[disabled].sc-ion-textarea-md,.textarea-disabled.sc-ion-textarea-md-h{opacity:0.38}.textarea-highlight.sc-ion-textarea-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.textarea-highlight.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl].in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-textarea-md-h:dir(rtl) .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}}}.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:16px}.sc-ion-textarea-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-textarea-md-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}'}},4459:(z,p,n)=>{n.d(p,{c:()=>u,g:()=>c,h:()=>a,o:()=>m});var h=n(5861);const a=(r,o)=>null!==o.closest(r),u=(r,o)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},o):o,c=r=>{const o={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(r).forEach(l=>o[l]=!0),o},w=/^[a-z][a-z0-9+\-.]*:/,m=function(){var r=(0,h.Z)(function*(o,l,g,b){if(null!=o&&"#"!==o[0]&&!w.test(o)){const x=document.querySelector("ion-router");if(x)return l?.preventDefault(),x.push(o,g,b)}return!1});return function(l,g,b,x){return r.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3734.7a8ff8ec9e82884f.js b/3734.7a8ff8ec9e82884f.js deleted file mode 100644 index 037395a3..00000000 --- a/3734.7a8ff8ec9e82884f.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3734],{3734:(k,h,n)=>{n.r(h),n.d(h,{ion_textarea:()=>c});var p=n(5861),a=n(5349),u=n(9988),f=n(5857),d=n(839),v=n(6710),m=n(2894),r=n(3567),o=n(3882);n(6225);const c=class{constructor(t){(0,a.r)(this,t),this.ionChange=(0,a.d)(this,"ionChange",7),this.ionInput=(0,a.d)(this,"ionInput",7),this.ionStyle=(0,a.d)(this,"ionStyle",7),this.ionBlur=(0,a.d)(this,"ionBlur",7),this.ionFocus=(0,a.d)(this,"ionFocus",7),this.inputId="ion-textarea-"+_++,this.didTextareaClearOnEdit=!1,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onInput=e=>{const i=e.target;i&&(this.value=i.value||""),this.emitInputChange(e)},this.onChange=e=>{this.emitValueChange(e)},this.onFocus=e=>{this.hasFocus=!0,this.focusedValue=this.value,this.focusChange(),this.ionFocus.emit(e)},this.onBlur=e=>{this.hasFocus=!1,this.focusChange(),this.focusedValue!==this.value&&this.emitValueChange(e),this.didTextareaClearOnEdit=!1,this.ionBlur.emit(e)},this.onKeyDown=e=>{this.checkClearOnEdit(e)},this.hasFocus=!1,this.color=void 0,this.autocapitalize="none",this.autofocus=!1,this.clearOnEdit=!1,this.debounce=void 0,this.disabled=!1,this.fill=void 0,this.inputmode=void 0,this.enterkeyhint=void 0,this.maxlength=void 0,this.minlength=void 0,this.name=this.inputId,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.spellcheck=!1,this.cols=void 0,this.rows=void 0,this.wrap=void 0,this.autoGrow=!1,this.value="",this.counter=!1,this.counterFormatter=void 0,this.errorText=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.shape=void 0}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:i}=this;this.ionInput=void 0===e?i??t:(0,d.j)(t,e)}disabledChanged(){this.emitStyle()}valueChanged(){const t=this.nativeInput,e=this.getValue();t&&t.value!==e&&(t.value=e),this.runAutoGrow(),this.emitStyle()}connectedCallback(){const{el:t}=this;this.legacyFormController=(0,u.c)(t),this.slotMutationController=(0,m.c)(t,"label",()=>(0,a.i)(this)),this.notchController=(0,f.c)(t,()=>this.notchSpacerEl,()=>this.labelSlot),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:t}))}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},(0,d.i)(this.el)),(0,d.k)(this.el,["data-form-type","title","tabindex"]))}componentDidLoad(){this.originalIonInput=this.ionInput,this.runAutoGrow()}componentDidRender(){var t;null===(t=this.notchController)||void 0===t||t.calculateNotchWidth()}setFocus(){var t=this;return(0,p.Z)(function*(){t.nativeInput&&t.nativeInput.focus()})()}getInputElement(){var t=this;return(0,p.Z)(function*(){return t.nativeInput||(yield new Promise(e=>(0,d.c)(t.el,e))),Promise.resolve(t.nativeInput)})()}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,textarea:!0,input:!0,"interactive-disabled":this.disabled,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus})}emitValueChange(t){const{value:e}=this,i=null==e?e:e.toString();this.focusedValue=i,this.ionChange.emit({value:i,event:t})}emitInputChange(t){const{value:e}=this;this.ionInput.emit({value:e,event:t})}runAutoGrow(){this.nativeInput&&this.autoGrow&&(0,a.w)(()=>{var t;this.textareaWrapper&&(this.textareaWrapper.dataset.replicatedValue=null!==(t=this.value)&&void 0!==t?t:"")})}checkClearOnEdit(t){this.clearOnEdit&&(!this.didTextareaClearOnEdit&&this.hasValue()&&"Tab"!==t.key&&(this.value="",this.emitInputChange(t)),this.didTextareaClearOnEdit=!0)}focusChange(){this.emitStyle()}hasValue(){return""!==this.getValue()}getValue(){return this.value||""}renderLegacyTextarea(){this.hasLoggedDeprecationWarning||((0,v.p)('ion-textarea now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor textareas that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the textarea by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.hasLoggedDeprecationWarning=!0);const t=(0,o.b)(this),e=this.getValue(),i=this.inputId+"-lbl",s=(0,d.h)(this.el);return s&&(s.id=i),(0,a.h)(a.H,{"aria-disabled":this.disabled?"true":null,class:(0,r.c)(this.color,{[t]:!0,"legacy-textarea":!0})},(0,a.h)("div",{class:"textarea-legacy-wrapper",ref:x=>this.textareaWrapper=x},(0,a.h)("textarea",Object.assign({class:"native-textarea","aria-labelledby":s?s.id:null,ref:x=>this.nativeInput=x,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,disabled:this.disabled,maxLength:this.maxlength,minLength:this.minlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),e)))}renderLabel(){const{label:t}=this;return(0,a.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===t?(0,a.h)("slot",{name:"label"}):(0,a.h)("div",{class:"label-text"},t))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===(0,o.b)(this)&&"outline"===this.fill?[(0,a.h)("div",{class:"textarea-outline-container"},(0,a.h)("div",{class:"textarea-outline-start"}),(0,a.h)("div",{class:{"textarea-outline-notch":!0,"textarea-outline-notch-hidden":!this.hasLabel}},(0,a.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:i=>this.notchSpacerEl=i},this.label)),(0,a.h)("div",{class:"textarea-outline-end"})),this.renderLabel()]:this.renderLabel()}renderHintText(){const{helperText:t,errorText:e}=this;return[(0,a.h)("div",{class:"helper-text"},t),(0,a.h)("div",{class:"error-text"},e)]}renderCounter(){const{counter:t,maxlength:e,counterFormatter:i,value:s}=this;if(!0===t&&void 0!==e)return(0,a.h)("div",{class:"counter"},(0,m.g)(s,e,i))}renderBottomContent(){const{counter:t,helperText:e,errorText:i,maxlength:s}=this;if(e||i||!0===t&&void 0!==s)return(0,a.h)("div",{class:"textarea-bottom"},this.renderHintText(),this.renderCounter())}renderTextarea(){const{inputId:t,disabled:e,fill:i,shape:s,labelPlacement:x}=this,w=(0,o.b)(this),C=this.getValue(),z=(0,r.h)("ion-item",this.el),E="md"===w&&"outline"!==i&&!z;return(0,a.h)(a.H,{class:(0,r.c)(this.color,{[w]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,[`textarea-fill-${i}`]:void 0!==i,[`textarea-shape-${s}`]:void 0!==s,[`textarea-label-placement-${x}`]:!0,"textarea-disabled":e})},(0,a.h)("label",{class:"textarea-wrapper"},this.renderLabelContainer(),(0,a.h)("div",{class:"native-wrapper",ref:y=>this.textareaWrapper=y},(0,a.h)("textarea",Object.assign({class:"native-textarea",ref:y=>this.nativeInput=y,id:t,disabled:e,autoCapitalize:this.autocapitalize,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,minLength:this.minlength,maxLength:this.maxlength,name:this.name,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,cols:this.cols,rows:this.rows,wrap:this.wrap,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeyDown},this.inheritedAttributes),C)),E&&(0,a.h)("div",{class:"textarea-highlight"})),this.renderBottomContent())}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyTextarea():this.renderTextarea()}get el(){return(0,a.f)(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}};let _=0;c.style={ios:'.sc-ion-textarea-ios-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-ios-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-ios-h,.textarea-label-placement-stacked.sc-ion-textarea-ios-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-ios-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-ios-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-ios-h{color:var(--ion-color-base)}.sc-ion-textarea-ios-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-ios-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-ios-h,ion-item .sc-ion-textarea-ios-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-ios-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-ios-h,ion-item [slot=start].sc-ion-textarea-ios-h,ion-item[slot=end].sc-ion-textarea-ios-h,ion-item [slot=end].sc-ion-textarea-ios-h{width:auto}.native-textarea.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-ios::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-ios::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{white-space:inherit}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios,.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-ios{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-ios-h .textarea-legacy-wrapper.sc-ion-textarea-ios::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-ios{left:0}[dir=rtl].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-ios .cloned-input.sc-ion-textarea-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-ios:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-ios-h .cloned-input.sc-ion-textarea-ios{height:100%}[auto-grow].sc-ion-textarea-ios-h .native-textarea.sc-ion-textarea-ios{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;width:100%;height:100%}.has-focus.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-ios,.textarea-legacy-wrapper.sc-ion-textarea-ios{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-ios::after,.textarea-legacy-wrapper.sc-ion-textarea-ios::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-ios::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-ios-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-ios-h,.ion-touched.ion-invalid.sc-ion-textarea-ios-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .error-text.sc-ion-textarea-ios{display:block}.ion-touched.ion-invalid.sc-ion-textarea-ios-h .textarea-bottom.sc-ion-textarea-ios .helper-text.sc-ion-textarea-ios{display:none}.textarea-bottom.sc-ion-textarea-ios .counter.sc-ion-textarea-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-ios,.sc-ion-textarea-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-ios,.textarea-outline-notch-hidden.sc-ion-textarea-ios{display:none}.textarea-wrapper.sc-ion-textarea-ios textarea.sc-ion-textarea-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-ios-h .label-text.sc-ion-textarea-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .textarea-wrapper.sc-ion-textarea-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .sc-ion-textarea-ios-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-ios-h .native-wrapper.sc-ion-textarea-ios::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios,.has-value.textarea-label-placement-floating.sc-ion-textarea-ios-h textarea.sc-ion-textarea-ios{opacity:1}.textarea-label-placement-stacked.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.has-focus.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios,.has-value.textarea-label-placement-floating.sc-ion-textarea-ios-h .label-text-wrapper.sc-ion-textarea-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-textarea-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--padding-top:10px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-textarea-ios-h,.item-label-stacked .sc-ion-textarea-ios-h,.item-label-floating.sc-ion-textarea-ios-h,.item-label-floating .sc-ion-textarea-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.legacy-textarea.sc-ion-textarea-ios-h .native-textarea[disabled].sc-ion-textarea-ios,.textarea-disabled.sc-ion-textarea-ios-h{opacity:0.3}',md:'.sc-ion-textarea-md-h{--background:initial;--color:initial;--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--border-radius:0;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.sc-ion-textarea-md-h:not(.legacy-textarea){min-height:44px}.textarea-label-placement-floating.sc-ion-textarea-md-h,.textarea-label-placement-stacked.sc-ion-textarea-md-h{--padding-top:0px;min-height:56px}[cols].sc-ion-textarea-md-h:not([auto-grow]){width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.legacy-textarea.sc-ion-textarea-md-h{-ms-flex:1;flex:1;background:var(--background);white-space:pre-wrap}.legacy-textarea.ion-color.sc-ion-textarea-md-h{color:var(--ion-color-base)}.sc-ion-textarea-md-h:not(.legacy-textarea){--padding-bottom:8px}.ion-color.sc-ion-textarea-md-h{--highlight-color-focused:var(--ion-color-base);background:initial}ion-item.sc-ion-textarea-md-h,ion-item .sc-ion-textarea-md-h{-ms-flex-item-align:baseline;align-self:baseline}ion-item.sc-ion-textarea-md-h:not(.item-label),ion-item:not(.item-label) .sc-ion-textarea-md-h{--padding-start:0}ion-item[slot=start].sc-ion-textarea-md-h,ion-item [slot=start].sc-ion-textarea-md-h,ion-item[slot=end].sc-ion-textarea-md-h,ion-item [slot=end].sc-ion-textarea-md-h{width:auto}.native-textarea.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;white-space:pre-wrap;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.native-textarea.sc-ion-textarea-md::-webkit-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-moz-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md:-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::-ms-input-placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-textarea.sc-ion-textarea-md::placeholder{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{white-space:inherit}.legacy-textarea.sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md,.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}.native-textarea.sc-ion-textarea-md{color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.legacy-textarea.sc-ion-textarea-md-h .textarea-legacy-wrapper.sc-ion-textarea-md::after{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;grid-area:1/1/2/2;word-break:break-word}.cloned-input.sc-ion-textarea-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .cloned-input.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-textarea-md:disabled{opacity:1}.legacy-textarea[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}[auto-grow].sc-ion-textarea-md-h .cloned-input.sc-ion-textarea-md{height:100%}[auto-grow].sc-ion-textarea-md-h .native-textarea.sc-ion-textarea-md{overflow:hidden}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-textarea-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-textarea-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-textarea-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.textarea-wrapper.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:0px;padding-bottom:0px;border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:start;align-items:flex-start;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-textarea-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;width:100%;height:100%}.has-focus.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{caret-color:var(--highlight-color)}.native-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom)}.native-wrapper.sc-ion-textarea-md,.textarea-legacy-wrapper.sc-ion-textarea-md{display:grid;min-width:inherit;max-width:inherit;min-height:inherit;max-height:inherit;grid-auto-rows:100%}.native-wrapper.sc-ion-textarea-md::after,.textarea-legacy-wrapper.sc-ion-textarea-md::after{white-space:pre-wrap;content:attr(data-replicated-value) " ";visibility:hidden}.native-wrapper.sc-ion-textarea-md::after{padding-left:0;padding-right:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);color:inherit;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-align:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;grid-area:1/1/2/2;word-break:break-word}.ion-touched.ion-invalid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-textarea-md-h{--highlight-color:var(--highlight-color-valid)}.textarea-bottom.sc-ion-textarea-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-textarea-md-h,.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:none;color:var(--highlight-color-invalid)}.textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .error-text.sc-ion-textarea-md{display:block}.ion-touched.ion-invalid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md .helper-text.sc-ion-textarea-md{display:none}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.label-text-wrapper.sc-ion-textarea-md{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-textarea-md,.sc-ion-textarea-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-textarea-md,.textarea-outline-notch-hidden.sc-ion-textarea-md{display:none}.textarea-wrapper.sc-ion-textarea-md textarea.sc-ion-textarea-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.textarea-label-placement-start.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row;flex-direction:row}.textarea-label-placement-start.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-end.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.textarea-label-placement-end.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.textarea-label-placement-fixed.sc-ion-textarea-md-h .label-text.sc-ion-textarea-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.textarea-label-placement-stacked.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;max-width:100%;z-index:2}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:8px;margin-bottom:0px}.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:0}.has-focus.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.has-value.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md{opacity:1}.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-value.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.textarea-fill-solid.sc-ion-textarea-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.textarea-fill-solid.ion-valid.sc-ion-textarea-md-h,.textarea-fill-solid.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}@media (any-hover: hover){.textarea-fill-solid.sc-ion-textarea-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-solid.has-focus.sc-ion-textarea-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-solid.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-solid.sc-ion-textarea-md-h:dir(rtl) .textarea-wrapper.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.textarea-fill-solid.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-fill-solid.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-value.textarea-fill-solid.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{max-width:calc(100% / 0.75)}.textarea-fill-outline.sc-ion-textarea-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.textarea-fill-outline.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.textarea-fill-outline.ion-valid.sc-ion-textarea-md-h,.textarea-fill-outline.ion-touched.ion-invalid.sc-ion-textarea-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.textarea-fill-outline.sc-ion-textarea-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.textarea-fill-outline.has-focus.sc-ion-textarea-md-h{--border-width:2px;--border-color:var(--highlight-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-bottom.sc-ion-textarea-md{border-top:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-wrapper.sc-ion-textarea-md{border-bottom:none}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h:dir(rtl) .label-text-wrapper.sc-ion-textarea-md{-webkit-transform-origin:right top;transform-origin:right top}}.textarea-fill-outline.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{position:relative}.has-focus.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-value.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc(\n (100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75\n )}.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h textarea.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after,.textarea-fill-outline.textarea-label-placement-floating[auto-grow].sc-ion-textarea-md-h .native-wrapper.sc-ion-textarea-md::after{-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:12px;margin-bottom:0px}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-container.sc-ion-textarea-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{pointer-events:none}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.textarea-fill-outline.sc-ion-textarea-md-h .notch-spacer.sc-ion-textarea-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-start.sc-ion-textarea-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl].textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md,[dir=rtl] .textarea-fill-outline.sc-ion-textarea-md-h .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.textarea-fill-outline.sc-ion-textarea-md-h:dir(rtl) .textarea-outline-end.sc-ion-textarea-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.has-focus.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.has-value.textarea-fill-outline.textarea-label-placement-floating.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md,.textarea-fill-outline.textarea-label-placement-stacked.sc-ion-textarea-md-h .textarea-outline-notch.sc-ion-textarea-md{border-top:none}.sc-ion-textarea-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--padding-top:18px;--padding-end:0px;--padding-bottom:8px;--padding-start:0px;font-size:inherit}.legacy-textarea.sc-ion-textarea-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:11px;--padding-start:8px;margin-left:0;margin-right:0;margin-top:8px;margin-bottom:0}.item-label-stacked.sc-ion-textarea-md-h,.item-label-stacked .sc-ion-textarea-md-h,.item-label-floating.sc-ion-textarea-md-h,.item-label-floating .sc-ion-textarea-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.textarea-bottom.sc-ion-textarea-md .counter.sc-ion-textarea-md{letter-spacing:0.0333333333em}.textarea-label-placement-floating.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.has-focus.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.has-focus.textarea-label-placement-floating.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-floating.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.has-focus.textarea-label-placement-stacked.ion-valid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md,.textarea-label-placement-stacked.ion-touched.ion-invalid.sc-ion-textarea-md-h .label-text-wrapper.sc-ion-textarea-md{color:var(--highlight-color)}.legacy-textarea.sc-ion-textarea-md-h .native-textarea[disabled].sc-ion-textarea-md,.textarea-disabled.sc-ion-textarea-md-h{opacity:0.38}.textarea-highlight.sc-ion-textarea-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-textarea-md .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.textarea-highlight.sc-ion-textarea-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:0}[dir=rtl].sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .sc-ion-textarea-md-h -no-combinator.in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl].in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md,[dir=rtl] .in-item.sc-ion-textarea-md-h .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-textarea-md-h:dir(rtl) .textarea-highlight.sc-ion-textarea-md{left:unset;right:unset;right:0}}}.textarea-shape-round.sc-ion-textarea-md-h{--border-radius:16px}'}},3567:(k,h,n)=>{n.d(h,{c:()=>u,g:()=>d,h:()=>a,o:()=>m});var p=n(5861);const a=(r,o)=>null!==o.closest(r),u=(r,o)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},o):o,d=r=>{const o={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(r).forEach(l=>o[l]=!0),o},v=/^[a-z][a-z0-9+\-.]*:/,m=function(){var r=(0,p.Z)(function*(o,l,g,b){if(null!=o&&"#"!==o[0]&&!v.test(o)){const c=document.querySelector("ion-router");if(c)return l?.preventDefault(),c.push(o,g,b)}return!1});return function(l,g,b,c){return r.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/3998.7c6bd11685c135f4.js b/3998.c64f721d045730d5.js similarity index 99% rename from 3998.7c6bd11685c135f4.js rename to 3998.c64f721d045730d5.js index 11afd640..4d8c767a 100644 --- a/3998.7c6bd11685c135f4.js +++ b/3998.c64f721d045730d5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3998],{3998:(w,g,h)=>{h.r(g),h.d(g,{ion_searchbar:()=>s});var d=h(5861),n=h(5349),m=h(839),v=h(5085),y=h(3567),b=h(5307),p=h(3882);const s=class{constructor(r){var e=this;(0,n.r)(this,r),this.ionInput=(0,n.d)(this,"ionInput",7),this.ionChange=(0,n.d)(this,"ionChange",7),this.ionCancel=(0,n.d)(this,"ionCancel",7),this.ionClear=(0,n.d)(this,"ionClear",7),this.ionBlur=(0,n.d)(this,"ionBlur",7),this.ionFocus=(0,n.d)(this,"ionFocus",7),this.ionStyle=(0,n.d)(this,"ionStyle",7),this.isCancelVisible=!1,this.shouldAlignLeft=!0,this.inputId="ion-searchbar-"+x++,this.onClearInput=function(){var a=(0,d.Z)(function*(o){return e.ionClear.emit(),new Promise(c=>{setTimeout(()=>{const l=e.getValue();""!==l&&(e.value="",e.emitInputChange(),o&&!e.focused&&(e.setFocus(),e.focusedValue=l)),c()},64)})});return function(o){return a.apply(this,arguments)}}(),this.onCancelSearchbar=function(){var a=(0,d.Z)(function*(o){o&&(o.preventDefault(),o.stopPropagation()),e.ionCancel.emit();const c=e.getValue(),l=e.focused;yield e.onClearInput(),c&&!l&&e.emitValueChange(o),e.nativeInput&&e.nativeInput.blur()});return function(o){return a.apply(this,arguments)}}(),this.onInput=a=>{const o=a.target;o&&(this.value=o.value),this.emitInputChange(a)},this.onChange=a=>{this.emitValueChange(a)},this.onBlur=a=>{this.focused=!1,this.ionBlur.emit(),this.positionElements(),this.focusedValue!==this.value&&this.emitValueChange(a),this.focusedValue=void 0},this.onFocus=()=>{this.focused=!0,this.focusedValue=this.value,this.ionFocus.emit(),this.positionElements()},this.focused=!1,this.noAnimate=!0,this.color=void 0,this.animated=!1,this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon=p.c.get("backButtonIcon",b.a),this.cancelButtonText="Cancel",this.clearIcon=void 0,this.debounce=void 0,this.disabled=!1,this.inputmode=void 0,this.enterkeyhint=void 0,this.name=this.inputId,this.placeholder="Search",this.searchIcon=void 0,this.showCancelButton="never",this.showClearButton="always",this.spellcheck=!1,this.type="search",this.value=""}debounceChanged(){const{ionInput:r,debounce:e,originalIonInput:a}=this;this.ionInput=void 0===e?a??r:(0,m.j)(r,e)}valueChanged(){const r=this.nativeInput,e=this.getValue();r&&r.value!==e&&(r.value=e)}showCancelButtonChanged(){requestAnimationFrame(()=>{this.positionElements(),(0,n.i)(this)})}connectedCallback(){this.emitStyle()}componentDidLoad(){this.originalIonInput=this.ionInput,this.positionElements(),this.debounceChanged(),setTimeout(()=>{this.noAnimate=!1},300)}emitStyle(){this.ionStyle.emit({searchbar:!0})}setFocus(){var r=this;return(0,d.Z)(function*(){r.nativeInput&&r.nativeInput.focus()})()}getInputElement(){var r=this;return(0,d.Z)(function*(){return r.nativeInput||(yield new Promise(e=>(0,m.c)(r.el,e))),Promise.resolve(r.nativeInput)})()}emitValueChange(r){const{value:e}=this,a=null==e?e:e.toString();this.focusedValue=a,this.ionChange.emit({value:a,event:r})}emitInputChange(r){const{value:e}=this;this.ionInput.emit({value:e,event:r})}positionElements(){const r=this.getValue(),e=this.shouldAlignLeft,a=(0,p.b)(this),o=!this.animated||""!==r.trim()||!!this.focused;this.shouldAlignLeft=o,"ios"===a&&(e!==o&&this.positionPlaceholder(),this.animated&&this.positionCancelButton())}positionPlaceholder(){const r=this.nativeInput;if(!r)return;const e=(0,v.i)(this.el),a=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft)r.removeAttribute("style"),a.removeAttribute("style");else{const o=document,c=o.createElement("span");c.innerText=this.placeholder||"",o.body.appendChild(c),(0,m.r)(()=>{const l=c.offsetWidth;c.remove();const f="calc(50% - "+l/2+"px)",u="calc(50% - "+(l/2+a.clientWidth+8)+"px)";e?(r.style.paddingRight=f,a.style.marginRight=u):(r.style.paddingLeft=f,a.style.marginLeft=u)})}}positionCancelButton(){const r=(0,v.i)(this.el),e=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button"),a=this.shouldShowCancelButton();if(null!==e&&a!==this.isCancelVisible){const o=e.style;if(this.isCancelVisible=a,a)r?o.marginLeft="0":o.marginRight="0";else{const c=e.offsetWidth;c>0&&(r?o.marginLeft=-c+"px":o.marginRight=-c+"px")}}}getValue(){return this.value||""}hasValue(){return""!==this.getValue()}shouldShowCancelButton(){return!("never"===this.showCancelButton||"focus"===this.showCancelButton&&!this.focused)}shouldShowClearButton(){return!("never"===this.showClearButton||"focus"===this.showClearButton&&!this.focused)}render(){const{cancelButtonText:r}=this,e=this.animated&&p.c.getBoolean("animated",!0),a=(0,p.b)(this),o=this.clearIcon||("ios"===a?b.b:b.d),c=this.searchIcon||("ios"===a?b.s:b.e),l=this.shouldShowCancelButton(),f="never"!==this.showCancelButton&&(0,n.h)("button",{"aria-label":r,"aria-hidden":l?void 0:"true",type:"button",tabIndex:"ios"!==a||l?void 0:-1,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},(0,n.h)("div",{"aria-hidden":"true"},"md"===a?(0,n.h)("ion-icon",{"aria-hidden":"true",mode:a,icon:this.cancelButtonIcon,lazy:!1}):r));return(0,n.h)(n.H,{role:"search","aria-disabled":this.disabled?"true":null,class:(0,y.c)(this.color,{[a]:!0,"searchbar-animated":e,"searchbar-disabled":this.disabled,"searchbar-no-animate":e&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},(0,n.h)("div",{class:"searchbar-input-container"},(0,n.h)("input",{"aria-label":"search text",disabled:this.disabled,ref:u=>this.nativeInput=u,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck}),"md"===a&&f,(0,n.h)("ion-icon",{"aria-hidden":"true",mode:a,icon:c,lazy:!1,class:"searchbar-search-icon"}),(0,n.h)("button",{"aria-label":"reset",type:"button","no-blur":!0,class:"searchbar-clear-button",onPointerDown:u=>{u.preventDefault()},onClick:()=>this.onClearInput(!0)},(0,n.h)("ion-icon",{"aria-hidden":"true",mode:a,icon:o,lazy:!1,class:"searchbar-clear-icon"}))),"ios"===a&&f)}get el(){return(0,n.f)(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}};let x=0;s.style={ios:".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{left:5px}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;right:5px}}}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{right:0}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;left:0}}}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:16px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}",md:".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{left:16px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:16px}}}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}@supports (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}}@supports not (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{left:9px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}@supports selector(:dir(rtl)){.searchbar-cancel-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:9px}}}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{right:13px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;left:13px}}}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}"}},3567:(w,g,h)=>{h.d(g,{c:()=>m,g:()=>y,h:()=>n,o:()=>p});var d=h(5861);const n=(t,i)=>null!==i.closest(t),m=(t,i)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},i):i,y=t=>{const i={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(t).forEach(s=>i[s]=!0),i},b=/^[a-z][a-z0-9+\-.]*:/,p=function(){var t=(0,d.Z)(function*(i,s,x,r){if(null!=i&&"#"!==i[0]&&!b.test(i)){const e=document.querySelector("ion-router");if(e)return s?.preventDefault(),e.push(i,x,r)}return!1});return function(s,x,r,e){return t.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3998],{3998:(w,g,h)=>{h.r(g),h.d(g,{ion_searchbar:()=>s});var d=h(5861),n=h(9942),m=h(512),v=h(4162),y=h(4459),b=h(1076),p=h(5551);const s=class{constructor(r){var e=this;(0,n.r)(this,r),this.ionInput=(0,n.d)(this,"ionInput",7),this.ionChange=(0,n.d)(this,"ionChange",7),this.ionCancel=(0,n.d)(this,"ionCancel",7),this.ionClear=(0,n.d)(this,"ionClear",7),this.ionBlur=(0,n.d)(this,"ionBlur",7),this.ionFocus=(0,n.d)(this,"ionFocus",7),this.ionStyle=(0,n.d)(this,"ionStyle",7),this.isCancelVisible=!1,this.shouldAlignLeft=!0,this.inputId="ion-searchbar-"+x++,this.onClearInput=function(){var a=(0,d.Z)(function*(o){return e.ionClear.emit(),new Promise(c=>{setTimeout(()=>{const l=e.getValue();""!==l&&(e.value="",e.emitInputChange(),o&&!e.focused&&(e.setFocus(),e.focusedValue=l)),c()},64)})});return function(o){return a.apply(this,arguments)}}(),this.onCancelSearchbar=function(){var a=(0,d.Z)(function*(o){o&&(o.preventDefault(),o.stopPropagation()),e.ionCancel.emit();const c=e.getValue(),l=e.focused;yield e.onClearInput(),c&&!l&&e.emitValueChange(o),e.nativeInput&&e.nativeInput.blur()});return function(o){return a.apply(this,arguments)}}(),this.onInput=a=>{const o=a.target;o&&(this.value=o.value),this.emitInputChange(a)},this.onChange=a=>{this.emitValueChange(a)},this.onBlur=a=>{this.focused=!1,this.ionBlur.emit(),this.positionElements(),this.focusedValue!==this.value&&this.emitValueChange(a),this.focusedValue=void 0},this.onFocus=()=>{this.focused=!0,this.focusedValue=this.value,this.ionFocus.emit(),this.positionElements()},this.focused=!1,this.noAnimate=!0,this.color=void 0,this.animated=!1,this.autocomplete="off",this.autocorrect="off",this.cancelButtonIcon=p.c.get("backButtonIcon",b.a),this.cancelButtonText="Cancel",this.clearIcon=void 0,this.debounce=void 0,this.disabled=!1,this.inputmode=void 0,this.enterkeyhint=void 0,this.name=this.inputId,this.placeholder="Search",this.searchIcon=void 0,this.showCancelButton="never",this.showClearButton="always",this.spellcheck=!1,this.type="search",this.value=""}debounceChanged(){const{ionInput:r,debounce:e,originalIonInput:a}=this;this.ionInput=void 0===e?a??r:(0,m.j)(r,e)}valueChanged(){const r=this.nativeInput,e=this.getValue();r&&r.value!==e&&(r.value=e)}showCancelButtonChanged(){requestAnimationFrame(()=>{this.positionElements(),(0,n.i)(this)})}connectedCallback(){this.emitStyle()}componentDidLoad(){this.originalIonInput=this.ionInput,this.positionElements(),this.debounceChanged(),setTimeout(()=>{this.noAnimate=!1},300)}emitStyle(){this.ionStyle.emit({searchbar:!0})}setFocus(){var r=this;return(0,d.Z)(function*(){r.nativeInput&&r.nativeInput.focus()})()}getInputElement(){var r=this;return(0,d.Z)(function*(){return r.nativeInput||(yield new Promise(e=>(0,m.c)(r.el,e))),Promise.resolve(r.nativeInput)})()}emitValueChange(r){const{value:e}=this,a=null==e?e:e.toString();this.focusedValue=a,this.ionChange.emit({value:a,event:r})}emitInputChange(r){const{value:e}=this;this.ionInput.emit({value:e,event:r})}positionElements(){const r=this.getValue(),e=this.shouldAlignLeft,a=(0,p.b)(this),o=!this.animated||""!==r.trim()||!!this.focused;this.shouldAlignLeft=o,"ios"===a&&(e!==o&&this.positionPlaceholder(),this.animated&&this.positionCancelButton())}positionPlaceholder(){const r=this.nativeInput;if(!r)return;const e=(0,v.i)(this.el),a=(this.el.shadowRoot||this.el).querySelector(".searchbar-search-icon");if(this.shouldAlignLeft)r.removeAttribute("style"),a.removeAttribute("style");else{const o=document,c=o.createElement("span");c.innerText=this.placeholder||"",o.body.appendChild(c),(0,m.r)(()=>{const l=c.offsetWidth;c.remove();const f="calc(50% - "+l/2+"px)",u="calc(50% - "+(l/2+a.clientWidth+8)+"px)";e?(r.style.paddingRight=f,a.style.marginRight=u):(r.style.paddingLeft=f,a.style.marginLeft=u)})}}positionCancelButton(){const r=(0,v.i)(this.el),e=(this.el.shadowRoot||this.el).querySelector(".searchbar-cancel-button"),a=this.shouldShowCancelButton();if(null!==e&&a!==this.isCancelVisible){const o=e.style;if(this.isCancelVisible=a,a)r?o.marginLeft="0":o.marginRight="0";else{const c=e.offsetWidth;c>0&&(r?o.marginLeft=-c+"px":o.marginRight=-c+"px")}}}getValue(){return this.value||""}hasValue(){return""!==this.getValue()}shouldShowCancelButton(){return!("never"===this.showCancelButton||"focus"===this.showCancelButton&&!this.focused)}shouldShowClearButton(){return!("never"===this.showClearButton||"focus"===this.showClearButton&&!this.focused)}render(){const{cancelButtonText:r}=this,e=this.animated&&p.c.getBoolean("animated",!0),a=(0,p.b)(this),o=this.clearIcon||("ios"===a?b.b:b.d),c=this.searchIcon||("ios"===a?b.s:b.e),l=this.shouldShowCancelButton(),f="never"!==this.showCancelButton&&(0,n.h)("button",{"aria-label":r,"aria-hidden":l?void 0:"true",type:"button",tabIndex:"ios"!==a||l?void 0:-1,onMouseDown:this.onCancelSearchbar,onTouchStart:this.onCancelSearchbar,class:"searchbar-cancel-button"},(0,n.h)("div",{"aria-hidden":"true"},"md"===a?(0,n.h)("ion-icon",{"aria-hidden":"true",mode:a,icon:this.cancelButtonIcon,lazy:!1}):r));return(0,n.h)(n.H,{role:"search","aria-disabled":this.disabled?"true":null,class:(0,y.c)(this.color,{[a]:!0,"searchbar-animated":e,"searchbar-disabled":this.disabled,"searchbar-no-animate":e&&this.noAnimate,"searchbar-has-value":this.hasValue(),"searchbar-left-aligned":this.shouldAlignLeft,"searchbar-has-focus":this.focused,"searchbar-should-show-clear":this.shouldShowClearButton(),"searchbar-should-show-cancel":this.shouldShowCancelButton()})},(0,n.h)("div",{class:"searchbar-input-container"},(0,n.h)("input",{"aria-label":"search text",disabled:this.disabled,ref:u=>this.nativeInput=u,class:"searchbar-input",inputMode:this.inputmode,enterKeyHint:this.enterkeyhint,name:this.name,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,placeholder:this.placeholder,type:this.type,value:this.getValue(),autoComplete:this.autocomplete,autoCorrect:this.autocorrect,spellcheck:this.spellcheck}),"md"===a&&f,(0,n.h)("ion-icon",{"aria-hidden":"true",mode:a,icon:c,lazy:!1,class:"searchbar-search-icon"}),(0,n.h)("button",{"aria-label":"reset",type:"button","no-blur":!0,class:"searchbar-clear-button",onPointerDown:u=>{u.preventDefault()},onClick:()=>this.onClearInput(!0)},(0,n.h)("ion-icon",{"aria-hidden":"true",mode:a,icon:o,lazy:!1,class:"searchbar-clear-icon"}))),"ios"===a&&f)}get el(){return(0,n.f)(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"],showCancelButton:["showCancelButtonChanged"]}}};let x=0;s.style={ios:".sc-ion-searchbar-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-ios-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:inherit}.searchbar-search-icon.sc-ion-searchbar-ios{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-ios{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-ios{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-ios::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-ios::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-ios>div.sc-ion-searchbar-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-ios:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{display:block}.searchbar-disabled.sc-ion-searchbar-ios-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-ios-h{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.07);--border-radius:10px;--box-shadow:none;--cancel-button-color:var(--ion-color-primary, #3880ff);--clear-button-color:var(--ion-color-step-600, #666666);--color:var(--ion-text-color, #000);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;min-height:60px;contain:content}.searchbar-input-container.sc-ion-searchbar-ios{min-height:36px}.searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:calc(50% - 60px);margin-inline-start:calc(50% - 60px);top:0;position:absolute;width:1.375rem;height:100%;contain:strict}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{inset-inline-start:5px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-ios{left:5px}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}[dir=rtl].sc-ion-searchbar-ios .searchbar-search-icon.sc-ion-searchbar-ios{left:unset;right:unset;right:5px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;right:5px}}}.searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:6px;padding-bottom:6px;height:100%;font-size:1.0625rem;font-weight:400;contain:strict}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.75rem;padding-inline-start:1.75rem;-webkit-padding-end:1.75rem;padding-inline-end:1.75rem}.searchbar-clear-button.sc-ion-searchbar-ios{top:0;background-position:center;position:absolute;width:1.875rem;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{inset-inline-end:0}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-ios{right:0}[dir=rtl].sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios,[dir=rtl] .sc-ion-searchbar-ios-h .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}[dir=rtl].sc-ion-searchbar-ios .searchbar-clear-button.sc-ion-searchbar-ios{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-ios:dir(rtl){left:unset;right:unset;left:0}}}.searchbar-clear-icon.sc-ion-searchbar-ios{width:1.125rem;height:100%}.searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0;-ms-flex-negative:0;flex-shrink:0;background-color:transparent;font-size:16px}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{-webkit-margin-start:0;margin-inline-start:0}.searchbar-left-aligned.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-padding-start:1.875rem;padding-inline-start:1.875rem}.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{display:block}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios{-webkit-transition:all 300ms ease;transition:all 300ms ease}.searchbar-animated.searchbar-has-focus.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios,.searchbar-animated.searchbar-should-show-cancel.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{opacity:1;pointer-events:auto}.searchbar-animated.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-margin-end:-100%;margin-inline-end:-100%;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:all 300ms ease;transition:all 300ms ease;opacity:0;pointer-events:none}.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-input.sc-ion-searchbar-ios,.searchbar-no-animate.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{-webkit-transition-duration:0ms;transition-duration:0ms}.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios{color:var(--ion-color-base)}@media (any-hover: hover){.ion-color.sc-ion-searchbar-ios-h .searchbar-cancel-button.sc-ion-searchbar-ios:hover{color:var(--ion-color-tint)}}ion-toolbar.sc-ion-searchbar-ios-h,ion-toolbar .sc-ion-searchbar-ios-h{padding-top:1px;padding-bottom:15px;min-height:52px}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color),ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color){color:inherit}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-cancel-button.sc-ion-searchbar-ios{color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h .searchbar-search-icon.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-input.sc-ion-searchbar-ios{background:rgba(var(--ion-color-contrast-rgb), 0.07);color:currentColor}ion-toolbar.ion-color.sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios,ion-toolbar.ion-color .sc-ion-searchbar-ios-h:not(.ion-color) .searchbar-clear-button.sc-ion-searchbar-ios{color:currentColor;opacity:0.5}",md:".sc-ion-searchbar-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-searchbar-md-h{color:var(--ion-color-contrast)}.ion-color.sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background:var(--ion-color-base)}.ion-color.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.ion-color.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{color:inherit}.searchbar-search-icon.sc-ion-searchbar-md{color:var(--icon-color);pointer-events:none}.searchbar-input-container.sc-ion-searchbar-md{display:block;position:relative;-ms-flex-negative:1;flex-shrink:1;width:100%}.searchbar-input.sc-ion-searchbar-md{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;border-radius:var(--border-radius);display:block;width:100%;min-height:inherit;border:0;outline:none;background:var(--background);font-family:inherit;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-input.sc-ion-searchbar-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.searchbar-input.sc-ion-searchbar-md::-webkit-search-cancel-button,.searchbar-input.sc-ion-searchbar-md::-ms-clear{display:none}.searchbar-cancel-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:none;height:100%;border:0;outline:none;color:var(--cancel-button-color);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-cancel-button.sc-ion-searchbar-md>div.sc-ion-searchbar-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.searchbar-clear-button.sc-ion-searchbar-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:none;min-height:0;outline:none;color:var(--clear-button-color);-webkit-appearance:none;-moz-appearance:none;appearance:none}.searchbar-clear-button.sc-ion-searchbar-md:focus{opacity:0.5}.searchbar-has-value.searchbar-should-show-clear.sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{display:block}.searchbar-disabled.sc-ion-searchbar-md-h{cursor:default;opacity:0.4;pointer-events:none}.sc-ion-searchbar-md-h{--background:var(--ion-background-color, #fff);--border-radius:2px;--box-shadow:0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--cancel-button-color:var(--ion-color-step-900, #1a1a1a);--clear-button-color:initial;--color:var(--ion-color-step-850, #262626);--icon-color:var(--ion-color-step-600, #666666);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;background:inherit}.searchbar-search-icon.sc-ion-searchbar-md{top:11px;width:1.3125rem;height:1.3125rem}@supports (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{inset-inline-start:16px}}@supports not (inset-inline-start: 0){.searchbar-search-icon.sc-ion-searchbar-md{left:16px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}[dir=rtl].sc-ion-searchbar-md .searchbar-search-icon.sc-ion-searchbar-md{left:unset;right:unset;right:16px}@supports selector(:dir(rtl)){.searchbar-search-icon.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:16px}}}.searchbar-cancel-button.sc-ion-searchbar-md{top:0;background-color:transparent;font-size:1.5em}@supports (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{inset-inline-start:9px}}@supports not (inset-inline-start: 0){.searchbar-cancel-button.sc-ion-searchbar-md{left:9px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}[dir=rtl].sc-ion-searchbar-md .searchbar-cancel-button.sc-ion-searchbar-md{left:unset;right:unset;right:9px}@supports selector(:dir(rtl)){.searchbar-cancel-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;right:9px}}}.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-cancel-button.sc-ion-searchbar-md{position:absolute}.searchbar-search-icon.ion-activated.sc-ion-searchbar-md,.searchbar-cancel-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-input.sc-ion-searchbar-md{-webkit-padding-start:3.4375rem;padding-inline-start:3.4375rem;-webkit-padding-end:3.4375rem;padding-inline-end:3.4375rem;padding-top:0.375rem;padding-bottom:0.375rem;background-position:left 8px center;height:auto;font-size:1rem;font-weight:400;line-height:30px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}[dir=rtl].sc-ion-searchbar-md .searchbar-input.sc-ion-searchbar-md{background-position:right 8px center}@supports selector(:dir(rtl)){.searchbar-input.sc-ion-searchbar-md:dir(rtl){background-position:right 8px center}}.searchbar-clear-button.sc-ion-searchbar-md{top:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;position:absolute;height:100%;border:0;background-color:transparent}@supports (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{inset-inline-end:13px}}@supports not (inset-inline-start: 0){.searchbar-clear-button.sc-ion-searchbar-md{right:13px}[dir=rtl].sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md,[dir=rtl] .sc-ion-searchbar-md-h .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}[dir=rtl].sc-ion-searchbar-md .searchbar-clear-button.sc-ion-searchbar-md{left:unset;right:unset;left:13px}@supports selector(:dir(rtl)){.searchbar-clear-button.sc-ion-searchbar-md:dir(rtl){left:unset;right:unset;left:13px}}}.searchbar-clear-button.ion-activated.sc-ion-searchbar-md{background-color:transparent}.searchbar-clear-icon.sc-ion-searchbar-md{width:1.375rem;height:100%}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-search-icon.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md{display:block}.searchbar-has-focus.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md,.searchbar-should-show-cancel.sc-ion-searchbar-md-h .searchbar-cancel-button.sc-ion-searchbar-md+.searchbar-search-icon.sc-ion-searchbar-md{display:none}ion-toolbar.sc-ion-searchbar-md-h,ion-toolbar .sc-ion-searchbar-md-h{-webkit-padding-start:7px;padding-inline-start:7px;-webkit-padding-end:7px;padding-inline-end:7px;padding-top:3px;padding-bottom:3px}"}},4459:(w,g,h)=>{h.d(g,{c:()=>m,g:()=>y,h:()=>n,o:()=>p});var d=h(5861);const n=(t,i)=>null!==i.closest(t),m=(t,i)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},i):i,y=t=>{const i={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(t).forEach(s=>i[s]=!0),i},b=/^[a-z][a-z0-9+\-.]*:/,p=function(){var t=(0,d.Z)(function*(i,s,x,r){if(null!=i&&"#"!==i[0]&&!b.test(i)){const e=document.querySelector("ion-router");if(e)return s?.preventDefault(),e.push(i,x,r)}return!1});return function(s,x,r,e){return t.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/4087.9b029ba21122026d.js b/4087.db66ef8a109ac573.js similarity index 99% rename from 4087.9b029ba21122026d.js rename to 4087.db66ef8a109ac573.js index 3e6cd6b7..4999a510 100644 --- a/4087.9b029ba21122026d.js +++ b/4087.db66ef8a109ac573.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4087],{4087:(C,h,e)=>{e.r(h),e.d(h,{ion_fab:()=>r,ion_fab_button:()=>f,ion_fab_list:()=>l});var p=e(5861),o=e(5349),d=e(3882),g=e(839),b=e(3567),v=e(5307);const r=class{constructor(t){(0,o.r)(this,t),this.horizontal=void 0,this.vertical=void 0,this.edge=!1,this.activated=!1}activatedChanged(){const t=this.activated,a=this.getFab();a&&(a.activated=t),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach(s=>{s.activated=t})}componentDidLoad(){this.activated&&this.activatedChanged()}close(){var t=this;return(0,p.Z)(function*(){t.activated=!1})()}getFab(){return this.el.querySelector("ion-fab-button")}toggle(){var t=this;return(0,p.Z)(function*(){t.el.querySelector("ion-fab-list")&&(t.activated=!t.activated)})()}render(){const{horizontal:t,vertical:a,edge:s}=this,c=(0,d.b)(this);return(0,o.h)(o.H,{class:{[c]:!0,[`fab-horizontal-${t}`]:void 0!==t,[`fab-vertical-${a}`]:void 0!==a,"fab-edge":s}},(0,o.h)("slot",null))}get el(){return(0,o.f)(this)}static get watchers(){return{activated:["activatedChanged"]}}};r.style=":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}";const f=class{constructor(t){(0,o.r)(this,t),this.ionFocus=(0,o.d)(this,"ionFocus",7),this.ionBlur=(0,o.d)(this,"ionBlur",7),this.fab=null,this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=()=>{const{fab:a}=this;a&&a.toggle()},this.color=void 0,this.activated=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0,this.show=!1,this.translucent=!1,this.type="button",this.size=void 0,this.closeIcon=v.t}connectedCallback(){this.fab=this.el.closest("ion-fab")}componentWillLoad(){this.inheritedAttributes=(0,g.i)(this.el)}render(){const{el:t,disabled:a,color:s,href:c,activated:x,show:E,translucent:k,size:w,inheritedAttributes:A}=this,y=(0,b.h)("ion-fab-list",t),_=(0,d.b)(this),z=void 0===c?"button":"a",D="button"===z?{type:this.type}:{download:this.download,href:c,rel:this.rel,target:this.target};return(0,o.h)(o.H,{onClick:this.onClick,"aria-disabled":a?"true":null,class:(0,b.c)(s,{[_]:!0,"fab-button-in-list":y,"fab-button-translucent-in-list":y&&k,"fab-button-close-active":x,"fab-button-show":E,"fab-button-disabled":a,"fab-button-translucent":k,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${w}`]:void 0!==w})},(0,o.h)(z,Object.assign({},D,{class:"button-native",part:"native",disabled:a,onFocus:this.onFocus,onBlur:this.onBlur,onClick:L=>(0,b.o)(c,L,this.routerDirection,this.routerAnimation)},A),(0,o.h)("ion-icon",{"aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),(0,o.h)("span",{class:"button-inner"},(0,o.h)("slot",null)),"md"===_&&(0,o.h)("ion-ripple-effect",null)))}get el(){return(0,o.f)(this)}};f.style={ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'};const l=class{constructor(t){(0,o.r)(this,t),this.activated=!1,this.side="bottom"}activatedChanged(t){const a=Array.from(this.el.querySelectorAll("ion-fab-button")),s=t?30:0;a.forEach((c,x)=>{setTimeout(()=>c.show=t,x*s)})}render(){const t=(0,d.b)(this);return(0,o.h)(o.H,{class:{[t]:!0,"fab-list-active":this.activated,[`fab-list-side-${this.side}`]:!0}},(0,o.h)("slot",null))}get el(){return(0,o.f)(this)}static get watchers(){return{activated:["activatedChanged"]}}};l.style=":host{margin-left:0;margin-right:0;margin-top:calc(100% + 10px);margin-bottom:calc(100% + 10px);display:none;position:absolute;top:0;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:56px;min-height:56px}:host(.fab-list-active){display:-ms-flexbox;display:flex}::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:8px;margin-bottom:8px;width:40px;height:40px;-webkit-transform:scale(0);transform:scale(0);opacity:0;visibility:hidden}:host(.fab-list-side-top) ::slotted(.fab-button-in-list),:host(.fab-list-side-bottom) ::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px}:host(.fab-list-side-start) ::slotted(.fab-button-in-list),:host(.fab-list-side-end) ::slotted(.fab-button-in-list){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted(.fab-button-in-list.fab-button-show){-webkit-transform:scale(1);transform:scale(1);opacity:1;visibility:visible}:host(.fab-list-side-top){top:auto;bottom:0;-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.fab-list-side-start){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row-reverse;flex-direction:row-reverse}@supports (inset-inline-start: 0){:host(.fab-list-side-start){inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.fab-list-side-start){right:0}:host-context([dir=rtl]):host(.fab-list-side-start),:host-context([dir=rtl]).fab-list-side-start{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){:host(.fab-list-side-start:dir(rtl)){left:unset;right:unset;left:0}}}:host(.fab-list-side-end){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row;flex-direction:row}@supports (inset-inline-start: 0){:host(.fab-list-side-end){inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.fab-list-side-end){left:0}:host-context([dir=rtl]):host(.fab-list-side-end),:host-context([dir=rtl]).fab-list-side-end{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.fab-list-side-end:dir(rtl)){left:unset;right:unset;right:0}}}"},3567:(C,h,e)=>{e.d(h,{c:()=>d,g:()=>b,h:()=>o,o:()=>m});var p=e(5861);const o=(r,i)=>null!==i.closest(r),d=(r,i)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},i):i,b=r=>{const i={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(r).forEach(n=>i[n]=!0),i},v=/^[a-z][a-z0-9+\-.]*:/,m=function(){var r=(0,p.Z)(function*(i,n,f,u){if(null!=i&&"#"!==i[0]&&!v.test(i)){const l=document.querySelector("ion-router");if(l)return n?.preventDefault(),l.push(i,f,u)}return!1});return function(n,f,u,l){return r.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4087],{4087:(C,h,e)=>{e.r(h),e.d(h,{ion_fab:()=>r,ion_fab_button:()=>f,ion_fab_list:()=>l});var p=e(5861),o=e(9942),d=e(5551),g=e(512),b=e(4459),v=e(1076);const r=class{constructor(t){(0,o.r)(this,t),this.horizontal=void 0,this.vertical=void 0,this.edge=!1,this.activated=!1}activatedChanged(){const t=this.activated,a=this.getFab();a&&(a.activated=t),Array.from(this.el.querySelectorAll("ion-fab-list")).forEach(s=>{s.activated=t})}componentDidLoad(){this.activated&&this.activatedChanged()}close(){var t=this;return(0,p.Z)(function*(){t.activated=!1})()}getFab(){return this.el.querySelector("ion-fab-button")}toggle(){var t=this;return(0,p.Z)(function*(){t.el.querySelector("ion-fab-list")&&(t.activated=!t.activated)})()}render(){const{horizontal:t,vertical:a,edge:s}=this,c=(0,d.b)(this);return(0,o.h)(o.H,{class:{[c]:!0,[`fab-horizontal-${t}`]:void 0!==t,[`fab-vertical-${a}`]:void 0!==a,"fab-edge":s}},(0,o.h)("slot",null))}get el(){return(0,o.f)(this)}static get watchers(){return{activated:["activatedChanged"]}}};r.style=":host{position:absolute;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;z-index:999}:host(.fab-horizontal-center){left:0px;right:0px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto}:host(.fab-horizontal-start){left:calc(10px + var(--ion-safe-area-left, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-start),:host-context([dir=rtl]).fab-horizontal-start{right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-start:dir(rtl)){right:calc(10px + var(--ion-safe-area-right, 0px));left:unset}}:host(.fab-horizontal-end){right:calc(10px + var(--ion-safe-area-right, 0px));}:host-context([dir=rtl]):host(.fab-horizontal-end),:host-context([dir=rtl]).fab-horizontal-end{left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}@supports selector(:dir(rtl)){:host(.fab-horizontal-end:dir(rtl)){left:calc(10px + var(--ion-safe-area-left, 0px));right:unset}}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:0}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-top:calc((-100% + 16px) / 2)}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-top:-50%}:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-top.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-top:calc(50% + 10px)}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:0}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-button.fab-button-small){margin-bottom:calc((-100% + 16px) / 2)}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-start),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-end){margin-bottom:-50%}:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-top),:host(.fab-vertical-bottom.fab-edge) ::slotted(ion-fab-list.fab-list-side-bottom){margin-bottom:calc(50% + 10px)}:host(.fab-vertical-center){top:0px;bottom:0px;margin-top:auto;margin-bottom:auto}";const f=class{constructor(t){(0,o.r)(this,t),this.ionFocus=(0,o.d)(this,"ionFocus",7),this.ionBlur=(0,o.d)(this,"ionBlur",7),this.fab=null,this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=()=>{const{fab:a}=this;a&&a.toggle()},this.color=void 0,this.activated=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0,this.show=!1,this.translucent=!1,this.type="button",this.size=void 0,this.closeIcon=v.t}connectedCallback(){this.fab=this.el.closest("ion-fab")}componentWillLoad(){this.inheritedAttributes=(0,g.i)(this.el)}render(){const{el:t,disabled:a,color:s,href:c,activated:x,show:E,translucent:k,size:w,inheritedAttributes:A}=this,y=(0,b.h)("ion-fab-list",t),_=(0,d.b)(this),z=void 0===c?"button":"a",D="button"===z?{type:this.type}:{download:this.download,href:c,rel:this.rel,target:this.target};return(0,o.h)(o.H,{onClick:this.onClick,"aria-disabled":a?"true":null,class:(0,b.c)(s,{[_]:!0,"fab-button-in-list":y,"fab-button-translucent-in-list":y&&k,"fab-button-close-active":x,"fab-button-show":E,"fab-button-disabled":a,"fab-button-translucent":k,"ion-activatable":!0,"ion-focusable":!0,[`fab-button-${w}`]:void 0!==w})},(0,o.h)(z,Object.assign({},D,{class:"button-native",part:"native",disabled:a,onFocus:this.onFocus,onBlur:this.onBlur,onClick:L=>(0,b.o)(c,L,this.routerDirection,this.routerAnimation)},A),(0,o.h)("ion-icon",{"aria-hidden":"true",icon:this.closeIcon,part:"close-icon",class:"close-icon",lazy:!1}),(0,o.h)("span",{class:"button-inner"},(0,o.h)("slot",null)),"md"===_&&(0,o.h)("ion-ripple-effect",null)))}get el(){return(0,o.f)(this)}};f.style={ios:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:var(--ion-color-primary-shade, #3171e0);--background-focused:var(--ion-color-primary-shade, #3171e0);--background-hover:var(--ion-color-primary-tint, #4c8dff);--background-activated-opacity:1;--background-focused-opacity:1;--background-hover-opacity:1;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transition:0.2s transform cubic-bezier(0.25, 1.11, 0.78, 1.59);--close-icon-font-size:28px}:host(.ion-activated){--box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);--transform:scale(1.1);--transition:0.2s transform ease-out}::slotted(ion-icon){font-size:28px}:host(.fab-button-in-list){--background:var(--ion-color-light, #f4f5f8);--background-activated:var(--ion-color-light-shade, #d7d8da);--background-focused:var(--background-activated);--background-hover:var(--ion-color-light-tint, #f5f6f9);--color:var(--ion-color-light-contrast, #000);--color-activated:var(--ion-color-light-contrast, #000);--color-focused:var(--color-activated);--transition:transform 200ms ease 10ms, opacity 200ms ease 10ms}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-shade)}:host(.ion-color.ion-focused) .button-native,:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after,:host(.ion-color.ion-activated) .button-native::after{background:var(--ion-color-shade)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-tint)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent){--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.9);--background-hover:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.8);--background-focused:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.82);--backdrop-filter:saturate(180%) blur(20px)}:host(.fab-button-translucent-in-list){--background:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.9);--background-hover:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.8);--background-focused:rgba(var(--ion-color-light-rgb, 244, 245, 248), 0.82)}}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){@media (any-hover: hover){:host(.fab-button-translucent.ion-color:hover) .button-native{background:rgba(var(--ion-color-base-rgb), 0.8)}}:host(.ion-color.fab-button-translucent) .button-native{background:rgba(var(--ion-color-base-rgb), 0.9)}:host(.ion-color.ion-focused.fab-button-translucent) .button-native,:host(.ion-color.ion-activated.fab-button-translucent) .button-native{background:var(--ion-color-base)}}',md:':host{--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--background-hover:var(--ion-color-primary-contrast, #fff);--background-hover-opacity:.08;--transition:background-color, opacity 100ms linear;--ripple-color:currentColor;--border-radius:50%;--border-width:0;--border-style:none;--border-color:initial;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:56px;height:56px;font-size:14px;text-align:center;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;-webkit-transform:var(--transform);transform:var(--transform);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);background-clip:padding-box;color:var(--color);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);contain:strict;cursor:pointer;overflow:hidden;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-icon){line-height:1}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{left:0;right:0;top:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;z-index:1}:host(.fab-button-disabled){cursor:default;opacity:0.5;pointer-events:none}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-activated) .button-native{color:var(--color-activated)}:host(.ion-activated) .button-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}::slotted(ion-icon){line-height:1}:host(.fab-button-small){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px;width:40px;height:40px}.close-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;top:0;position:absolute;height:100%;-webkit-transform:scale(0.4) rotateZ(-45deg);transform:scale(0.4) rotateZ(-45deg);-webkit-transition:all ease-in-out 300ms;transition:all ease-in-out 300ms;-webkit-transition-property:opacity, -webkit-transform;transition-property:opacity, -webkit-transform;transition-property:transform, opacity;transition-property:transform, opacity, -webkit-transform;font-size:var(--close-icon-font-size);opacity:0;z-index:1}:host(.fab-button-close-active) .close-icon{-webkit-transform:scale(1) rotateZ(0deg);transform:scale(1) rotateZ(0deg);opacity:1}:host(.fab-button-close-active) .button-inner{-webkit-transform:scale(0.4) rotateZ(45deg);transform:scale(0.4) rotateZ(45deg);opacity:0}ion-ripple-effect{color:var(--ripple-color)}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.fab-button-translucent) .button-native{-webkit-backdrop-filter:var(--backdrop-filter);backdrop-filter:var(--backdrop-filter)}}:host(.ion-color) .button-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host{--background:var(--ion-color-primary, #3880ff);--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.24;--background-hover-opacity:.08;--color:var(--ion-color-primary-contrast, #fff);--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1), background-color 280ms cubic-bezier(0.4, 0, 0.2, 1), color 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 15ms linear 30ms, transform 270ms cubic-bezier(0, 0, 0.2, 1) 0ms;--close-icon-font-size:24px}:host(.ion-activated){--box-shadow:0 7px 8px -4px rgba(0, 0, 0, 0.2), 0 12px 17px 2px rgba(0, 0, 0, 0.14), 0 5px 22px 4px rgba(0, 0, 0, 0.12)}::slotted(ion-icon){font-size:24px}:host(.fab-button-in-list){--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-activated:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);--color-focused:var(--color-activated);--background:var(--ion-color-light, #f4f5f8);--background-activated:transparent;--background-focused:var(--ion-color-light-shade, #d7d8da);--background-hover:var(--ion-color-light-tint, #f5f6f9)}:host(.fab-button-in-list) ::slotted(ion-icon){font-size:18px}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activated) .button-native::after{background:transparent}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-contrast)}:host(.ion-color:hover) .button-native::after{background:var(--ion-color-contrast)}}'};const l=class{constructor(t){(0,o.r)(this,t),this.activated=!1,this.side="bottom"}activatedChanged(t){const a=Array.from(this.el.querySelectorAll("ion-fab-button")),s=t?30:0;a.forEach((c,x)=>{setTimeout(()=>c.show=t,x*s)})}render(){const t=(0,d.b)(this);return(0,o.h)(o.H,{class:{[t]:!0,"fab-list-active":this.activated,[`fab-list-side-${this.side}`]:!0}},(0,o.h)("slot",null))}get el(){return(0,o.f)(this)}static get watchers(){return{activated:["activatedChanged"]}}};l.style=":host{margin-left:0;margin-right:0;margin-top:calc(100% + 10px);margin-bottom:calc(100% + 10px);display:none;position:absolute;top:0;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;min-width:56px;min-height:56px}:host(.fab-list-active){display:-ms-flexbox;display:flex}::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:8px;margin-bottom:8px;width:40px;height:40px;-webkit-transform:scale(0);transform:scale(0);opacity:0;visibility:hidden}:host(.fab-list-side-top) ::slotted(.fab-button-in-list),:host(.fab-list-side-bottom) ::slotted(.fab-button-in-list){margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px}:host(.fab-list-side-start) ::slotted(.fab-button-in-list),:host(.fab-list-side-end) ::slotted(.fab-button-in-list){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted(.fab-button-in-list.fab-button-show){-webkit-transform:scale(1);transform:scale(1);opacity:1;visibility:visible}:host(.fab-list-side-top){top:auto;bottom:0;-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.fab-list-side-start){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row-reverse;flex-direction:row-reverse}@supports (inset-inline-start: 0){:host(.fab-list-side-start){inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.fab-list-side-start){right:0}:host-context([dir=rtl]):host(.fab-list-side-start),:host-context([dir=rtl]).fab-list-side-start{left:unset;right:unset;left:0}@supports selector(:dir(rtl)){:host(.fab-list-side-start:dir(rtl)){left:unset;right:unset;left:0}}}:host(.fab-list-side-end){-webkit-margin-start:calc(100% + 10px);margin-inline-start:calc(100% + 10px);-webkit-margin-end:calc(100% + 10px);margin-inline-end:calc(100% + 10px);margin-top:0;margin-bottom:0;-ms-flex-direction:row;flex-direction:row}@supports (inset-inline-start: 0){:host(.fab-list-side-end){inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.fab-list-side-end){left:0}:host-context([dir=rtl]):host(.fab-list-side-end),:host-context([dir=rtl]).fab-list-side-end{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.fab-list-side-end:dir(rtl)){left:unset;right:unset;right:0}}}"},4459:(C,h,e)=>{e.d(h,{c:()=>d,g:()=>b,h:()=>o,o:()=>m});var p=e(5861);const o=(r,i)=>null!==i.closest(r),d=(r,i)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},i):i,b=r=>{const i={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(r).forEach(n=>i[n]=!0),i},v=/^[a-z][a-z0-9+\-.]*:/,m=function(){var r=(0,p.Z)(function*(i,n,f,u){if(null!=i&&"#"!==i[0]&&!v.test(i)){const l=document.querySelector("ion-router");if(l)return n?.preventDefault(),l.push(i,f,u)}return!1});return function(n,f,u,l){return r.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/4090.f398639c670f5e5d.js b/4090.13e5e6fc3a42f9bc.js similarity index 99% rename from 4090.f398639c670f5e5d.js rename to 4090.13e5e6fc3a42f9bc.js index 62347881..7bc8dd69 100644 --- a/4090.f398639c670f5e5d.js +++ b/4090.13e5e6fc3a42f9bc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4090],{4090:(C,h,a)=>{a.r(h),a.d(h,{ion_tab_bar:()=>b,ion_tab_button:()=>v});var u=a(5861),t=a(5349),f=a(3459),x=a(3567),d=a(3882),m=a(839);a(6225),a(7484),a(4874);const b=class{constructor(o){(0,t.r)(this,o),this.ionTabBarChanged=(0,t.d)(this,"ionTabBarChanged",7),this.ionTabBarLoaded=(0,t.d)(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.color=void 0,this.selectedTab=void 0,this.translucent=!1}selectedTabChanged(){void 0!==this.selectedTab&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}connectedCallback(){var o=this;return(0,u.Z)(function*(){o.keyboardCtrl=yield(0,f.c)(function(){var e=(0,u.Z)(function*(s,l){!1===s&&void 0!==l&&(yield l),o.keyboardVisible=s});return function(s,l){return e.apply(this,arguments)}}())})()}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}componentDidLoad(){this.ionTabBarLoaded.emit()}render(){const{color:o,translucent:e,keyboardVisible:s}=this,l=(0,d.b)(this),p=s&&"top"!==this.el.getAttribute("slot");return(0,t.h)(t.H,{role:"tablist","aria-hidden":p?"true":null,class:(0,x.c)(o,{[l]:!0,"tab-bar-translucent":e,"tab-bar-hidden":p})},(0,t.h)("slot",null))}get el(){return(0,t.f)(this)}static get watchers(){return{selectedTab:["selectedTabChanged"]}}};b.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-650, #595959));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}"};const v=class{constructor(o){(0,t.r)(this,o),this.ionTabButtonClick=(0,t.d)(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.onKeyUp=e=>{("Enter"===e.key||" "===e.key)&&this.selectTab(e)},this.onClick=e=>{this.selectTab(e)},this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.layout=void 0,this.selected=!1,this.tab=void 0,this.target=void 0}onTabBarChanged(o){const e=o.target,s=this.el.parentElement;(o.composedPath().includes(s)||e?.contains(this.el))&&(this.selected=this.tab===o.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,m.k)(this.el,["aria-label"])),void 0===this.layout&&(this.layout=d.c.get("tabButtonLayout","icon-top"))}selectTab(o){void 0!==this.tab&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),o.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){const{disabled:o,hasIcon:e,hasLabel:s,href:l,rel:p,target:T,layout:E,selected:k,tab:_,inheritedAttributes:B}=this,w=(0,d.b)(this);return(0,t.h)(t.H,{onClick:this.onClick,onKeyup:this.onKeyUp,id:void 0!==_?`tab-button-${_}`:null,class:{[w]:!0,"tab-selected":k,"tab-disabled":o,"tab-has-label":s,"tab-has-icon":e,"tab-has-label-only":s&&!e,"tab-has-icon-only":e&&!s,[`tab-layout-${E}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},(0,t.h)("a",Object.assign({},{download:this.download,href:l,rel:p,target:T},{class:"button-native",part:"native",role:"tab","aria-selected":k?"true":null,"aria-disabled":o?"true":null,tabindex:o?"-1":void 0},B),(0,t.h)("span",{class:"button-inner"},(0,t.h)("slot",null)),"md"===w&&(0,t.h)("ion-ripple-effect",{type:"unbounded"})))}get el(){return(0,t.f)(this)}};v.style={ios:':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:2px;--padding-bottom:0;--padding-start:2px;max-width:240px;font-size:10px}::slotted(ion-badge){-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:1px;padding-bottom:1px;top:4px;height:auto;font-size:12px;line-height:16px}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:30px}::slotted(ion-icon::before){vertical-align:top}::slotted(ion-label){margin-top:0;margin-bottom:1px;min-height:11px;font-weight:500}:host(.tab-has-label-only) ::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:12px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-label),:host(.tab-layout-icon-start) ::slotted(ion-label),:host(.tab-layout-icon-hide) ::slotted(ion-label){margin-top:2px;margin-bottom:2px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-icon),:host(.tab-layout-icon-start) ::slotted(ion-icon){min-width:24px;height:26px;margin-top:2px;margin-bottom:1px;font-size:24px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:calc(50% + 12px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:calc(50% + 12px)}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:1px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:4px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:calc(50% + 35px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:calc(50% + 35px)}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start:dir(rtl)) ::slotted(ion-badge),:host(.tab-layout-icon-end:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}}}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:calc(50% + 30px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:calc(50% + 30px)}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide:dir(rtl)) ::slotted(ion-badge),:host(.tab-has-label-only:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}}}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-label-hide) ::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}',md:':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:12px;--padding-bottom:0;--padding-start:12px;max-width:168px;font-size:12px;font-weight:normal;letter-spacing:0.03em}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;text-transform:none}::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;-webkit-transform-origin:center center;transform-origin:center center;font-size:22px}:host-context([dir=rtl]) ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){::slotted(ion-icon):dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}::slotted(ion-badge){border-radius:8px;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;padding-top:3px;padding-bottom:2px;top:8px;min-width:12px;font-size:8px;font-weight:normal}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-badge:empty){display:block;min-width:8px;height:8px}:host(.tab-layout-icon-top) ::slotted(ion-icon){margin-top:6px;margin-bottom:2px}:host(.tab-layout-icon-top) ::slotted(ion-label){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){top:8px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:6px;margin-bottom:0}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:80%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:80%}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:80%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start:dir(rtl)) ::slotted(ion-badge),:host(.tab-layout-icon-end:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:80%}}}:host(.tab-layout-icon-start) ::slotted(ion-icon){-webkit-margin-end:6px;margin-inline-end:6px}:host(.tab-layout-icon-end) ::slotted(ion-icon){-webkit-margin-start:6px;margin-inline-start:6px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide:dir(rtl)) ::slotted(ion-badge),:host(.tab-has-label-only:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-hide) ::slotted(ion-label),:host(.tab-has-label-only) ::slotted(ion-label){margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){margin-top:0;margin-bottom:0;font-size:24px}'}},3567:(C,h,a)=>{a.d(h,{c:()=>f,g:()=>d,h:()=>t,o:()=>y});var u=a(5861);const t=(n,i)=>null!==i.closest(n),f=(n,i)=>"string"==typeof n&&n.length>0?Object.assign({"ion-color":!0,[`ion-color-${n}`]:!0},i):i,d=n=>{const i={};return(n=>void 0!==n?(Array.isArray(n)?n:n.split(" ")).filter(r=>null!=r).map(r=>r.trim()).filter(r=>""!==r):[])(n).forEach(r=>i[r]=!0),i},m=/^[a-z][a-z0-9+\-.]*:/,y=function(){var n=(0,u.Z)(function*(i,r,g,b){if(null!=i&&"#"!==i[0]&&!m.test(i)){const c=document.querySelector("ion-router");if(c)return r?.preventDefault(),c.push(i,g,b)}return!1});return function(r,g,b,c){return n.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4090],{4090:(C,h,a)=>{a.r(h),a.d(h,{ion_tab_bar:()=>b,ion_tab_button:()=>v});var u=a(5861),t=a(9942),f=a(9252),x=a(4459),d=a(5551),m=a(512);a(1848),a(3920),a(1836);const b=class{constructor(o){(0,t.r)(this,o),this.ionTabBarChanged=(0,t.d)(this,"ionTabBarChanged",7),this.ionTabBarLoaded=(0,t.d)(this,"ionTabBarLoaded",7),this.keyboardCtrl=null,this.keyboardVisible=!1,this.color=void 0,this.selectedTab=void 0,this.translucent=!1}selectedTabChanged(){void 0!==this.selectedTab&&this.ionTabBarChanged.emit({tab:this.selectedTab})}componentWillLoad(){this.selectedTabChanged()}connectedCallback(){var o=this;return(0,u.Z)(function*(){o.keyboardCtrl=yield(0,f.c)(function(){var e=(0,u.Z)(function*(s,l){!1===s&&void 0!==l&&(yield l),o.keyboardVisible=s});return function(s,l){return e.apply(this,arguments)}}())})()}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}componentDidLoad(){this.ionTabBarLoaded.emit()}render(){const{color:o,translucent:e,keyboardVisible:s}=this,l=(0,d.b)(this),p=s&&"top"!==this.el.getAttribute("slot");return(0,t.h)(t.H,{role:"tablist","aria-hidden":p?"true":null,class:(0,x.c)(o,{[l]:!0,"tab-bar-translucent":e,"tab-bar-hidden":p})},(0,t.h)("slot",null))}get el(){return(0,t.f)(this)}static get watchers(){return{selectedTab:["selectedTabChanged"]}}};b.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-color-step-50, #f7f7f7));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:0.55px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--color:var(--ion-tab-bar-color, var(--ion-color-step-600, #666666));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:50px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.tab-bar-translucent){--background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(210%) blur(20px);backdrop-filter:saturate(210%) blur(20px)}:host(.ion-color.tab-bar-translucent){background:rgba(var(--ion-color-base-rgb), 0.8)}:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.6)}}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-right:var(--ion-safe-area-right);padding-bottom:var(--ion-safe-area-bottom, 0);padding-left:var(--ion-safe-area-left);border-top:var(--border);background:var(--background);color:var(--color);text-align:center;contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:10;-webkit-box-sizing:content-box !important;box-sizing:content-box !important}:host(.ion-color) ::slotted(ion-tab-button){--background-focused:var(--ion-color-shade);--color-selected:var(--ion-color-contrast)}:host(.ion-color) ::slotted(.tab-selected){color:var(--ion-color-contrast)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){color:rgba(var(--ion-color-contrast-rgb), 0.7)}:host(.ion-color),:host(.ion-color) ::slotted(ion-tab-button){background:var(--ion-color-base)}:host(.ion-color) ::slotted(ion-tab-button.ion-focused),:host(.tab-bar-translucent) ::slotted(ion-tab-button.ion-focused){background:var(--background-focused)}:host(.tab-bar-translucent) ::slotted(ion-tab-button){background:transparent}:host([slot=top]){padding-top:var(--ion-safe-area-top, 0);padding-bottom:0;border-top:0;border-bottom:var(--border)}:host(.tab-bar-hidden){display:none !important}:host{--background:var(--ion-tab-bar-background, var(--ion-background-color, #fff));--background-focused:var(--ion-tab-bar-background-focused, #e0e0e0);--border:1px solid var(--ion-tab-bar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.07))));--color:var(--ion-tab-bar-color, var(--ion-color-step-650, #595959));--color-selected:var(--ion-tab-bar-color-selected, var(--ion-color-primary, #3880ff));height:56px}"};const v=class{constructor(o){(0,t.r)(this,o),this.ionTabButtonClick=(0,t.d)(this,"ionTabButtonClick",7),this.inheritedAttributes={},this.onKeyUp=e=>{("Enter"===e.key||" "===e.key)&&this.selectTab(e)},this.onClick=e=>{this.selectTab(e)},this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.layout=void 0,this.selected=!1,this.tab=void 0,this.target=void 0}onTabBarChanged(o){const e=o.target,s=this.el.parentElement;(o.composedPath().includes(s)||e?.contains(this.el))&&(this.selected=this.tab===o.detail.tab)}componentWillLoad(){this.inheritedAttributes=Object.assign({},(0,m.k)(this.el,["aria-label"])),void 0===this.layout&&(this.layout=d.c.get("tabButtonLayout","icon-top"))}selectTab(o){void 0!==this.tab&&(this.disabled||this.ionTabButtonClick.emit({tab:this.tab,href:this.href,selected:this.selected}),o.preventDefault())}get hasLabel(){return!!this.el.querySelector("ion-label")}get hasIcon(){return!!this.el.querySelector("ion-icon")}render(){const{disabled:o,hasIcon:e,hasLabel:s,href:l,rel:p,target:T,layout:E,selected:k,tab:_,inheritedAttributes:B}=this,w=(0,d.b)(this);return(0,t.h)(t.H,{onClick:this.onClick,onKeyup:this.onKeyUp,id:void 0!==_?`tab-button-${_}`:null,class:{[w]:!0,"tab-selected":k,"tab-disabled":o,"tab-has-label":s,"tab-has-icon":e,"tab-has-label-only":s&&!e,"tab-has-icon-only":e&&!s,[`tab-layout-${E}`]:!0,"ion-activatable":!0,"ion-selectable":!0,"ion-focusable":!0}},(0,t.h)("a",Object.assign({},{download:this.download,href:l,rel:p,target:T},{class:"button-native",part:"native",role:"tab","aria-selected":k?"true":null,"aria-disabled":o?"true":null,tabindex:o?"-1":void 0},B),(0,t.h)("span",{class:"button-inner"},(0,t.h)("slot",null)),"md"===w&&(0,t.h)("ion-ripple-effect",{type:"unbounded"})))}get el(){return(0,t.f)(this)}};v.style={ios:':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:2px;--padding-bottom:0;--padding-start:2px;max-width:240px;font-size:10px}::slotted(ion-badge){-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:1px;padding-bottom:1px;top:4px;height:auto;font-size:12px;line-height:16px}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-icon){margin-top:2px;margin-bottom:2px;font-size:30px}::slotted(ion-icon::before){vertical-align:top}::slotted(ion-label){margin-top:0;margin-bottom:1px;min-height:11px;font-weight:500}:host(.tab-has-label-only) ::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:12px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-label),:host(.tab-layout-icon-start) ::slotted(ion-label),:host(.tab-layout-icon-hide) ::slotted(ion-label){margin-top:2px;margin-bottom:2px;font-size:14px;line-height:1.1}:host(.tab-layout-icon-end) ::slotted(ion-icon),:host(.tab-layout-icon-start) ::slotted(ion-icon){min-width:24px;height:26px;margin-top:2px;margin-bottom:1px;font-size:24px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:calc(50% + 12px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:calc(50% + 12px)}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 12px)}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:1px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:4px}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:calc(50% + 35px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:calc(50% + 35px)}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start:dir(rtl)) ::slotted(ion-badge),:host(.tab-layout-icon-end:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 35px)}}}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:10px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:calc(50% + 30px)}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:calc(50% + 30px)}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide:dir(rtl)) ::slotted(ion-badge),:host(.tab-has-label-only:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 30px)}}}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:10px}:host(.tab-layout-label-hide) ::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}',md:':host{--ripple-color:var(--color-selected);--background-focused-opacity:1;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100%;outline:none;background:var(--background);color:var(--color)}.button-native{border-radius:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;border:0;outline:none;background:transparent;text-decoration:none;cursor:pointer;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-user-drag:none}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:inherit;flex-flow:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;height:100%;z-index:1}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}@media (any-hover: hover){a:hover{color:var(--color-selected)}}:host(.tab-selected){color:var(--color-selected)}:host(.tab-hidden){display:none !important}:host(.tab-disabled){pointer-events:none;opacity:0.4}::slotted(ion-label),::slotted(ion-icon){display:block;-ms-flex-item-align:center;align-self:center;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex-order:0;order:0}::slotted(ion-icon){-ms-flex-order:-1;order:-1;height:1em}:host(.tab-has-label-only) ::slotted(ion-label){white-space:normal}::slotted(ion-badge){-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1}:host(.tab-layout-icon-start){-ms-flex-direction:row;flex-direction:row}:host(.tab-layout-icon-end){-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.tab-layout-icon-bottom){-ms-flex-direction:column-reverse;flex-direction:column-reverse}:host(.tab-layout-icon-hide) ::slotted(ion-icon){display:none}:host(.tab-layout-label-hide) ::slotted(ion-label){display:none}ion-ripple-effect{color:var(--ripple-color)}:host{--padding-top:0;--padding-end:12px;--padding-bottom:0;--padding-start:12px;max-width:168px;font-size:12px;font-weight:normal;letter-spacing:0.03em}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;text-transform:none}::slotted(ion-icon){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;-webkit-transform-origin:center center;transform-origin:center center;font-size:22px}:host-context([dir=rtl]) ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] ::slotted(ion-icon){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){::slotted(ion-icon):dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}::slotted(ion-badge){border-radius:8px;-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:2px;padding-inline-end:2px;padding-top:3px;padding-bottom:2px;top:8px;min-width:12px;font-size:8px;font-weight:normal}@supports (inset-inline-start: 0){::slotted(ion-badge){inset-inline-start:calc(50% + 6px)}}@supports not (inset-inline-start: 0){::slotted(ion-badge){left:calc(50% + 6px)}:host-context([dir=rtl]) ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}[dir=rtl] ::slotted(ion-badge){left:unset;right:unset;right:calc(50% + 6px)}@supports selector(:dir(rtl)){::slotted(ion-badge):dir(rtl){left:unset;right:unset;right:calc(50% + 6px)}}}::slotted(ion-badge:empty){display:block;min-width:8px;height:8px}:host(.tab-layout-icon-top) ::slotted(ion-icon){margin-top:6px;margin-bottom:2px}:host(.tab-layout-icon-top) ::slotted(ion-label){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-badge){top:8px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-bottom) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-bottom) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-bottom ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-bottom:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-bottom) ::slotted(ion-icon){margin-top:0;margin-bottom:6px}:host(.tab-layout-icon-bottom) ::slotted(ion-label){margin-top:6px;margin-bottom:0}:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){inset-inline-start:80%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-start) ::slotted(ion-badge),:host(.tab-layout-icon-end) ::slotted(ion-badge){left:80%}:host-context([dir=rtl]):host(.tab-layout-icon-start) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-start ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-layout-icon-end) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-end ::slotted(ion-badge){left:unset;right:unset;right:80%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-start:dir(rtl)) ::slotted(ion-badge),:host(.tab-layout-icon-end:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:80%}}}:host(.tab-layout-icon-start) ::slotted(ion-icon){-webkit-margin-end:6px;margin-inline-end:6px}:host(.tab-layout-icon-end) ::slotted(ion-icon){-webkit-margin-start:6px;margin-inline-start:6px}:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){top:16px}@supports (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){inset-inline-start:70%}}@supports not (inset-inline-start: 0){:host(.tab-layout-icon-hide) ::slotted(ion-badge),:host(.tab-has-label-only) ::slotted(ion-badge){left:70%}:host-context([dir=rtl]):host(.tab-layout-icon-hide) ::slotted(ion-badge),:host-context([dir=rtl]).tab-layout-icon-hide ::slotted(ion-badge),:host-context([dir=rtl]):host(.tab-has-label-only) ::slotted(ion-badge),:host-context([dir=rtl]).tab-has-label-only ::slotted(ion-badge){left:unset;right:unset;right:70%}@supports selector(:dir(rtl)){:host(.tab-layout-icon-hide:dir(rtl)) ::slotted(ion-badge),:host(.tab-has-label-only:dir(rtl)) ::slotted(ion-badge){left:unset;right:unset;right:70%}}}:host(.tab-layout-icon-hide) ::slotted(ion-label),:host(.tab-has-label-only) ::slotted(ion-label){margin-top:0;margin-bottom:0}:host(.tab-layout-label-hide) ::slotted(ion-badge),:host(.tab-has-icon-only) ::slotted(ion-badge){top:16px}:host(.tab-layout-label-hide) ::slotted(ion-icon),:host(.tab-has-icon-only) ::slotted(ion-icon){margin-top:0;margin-bottom:0;font-size:24px}'}},4459:(C,h,a)=>{a.d(h,{c:()=>f,g:()=>d,h:()=>t,o:()=>y});var u=a(5861);const t=(n,i)=>null!==i.closest(n),f=(n,i)=>"string"==typeof n&&n.length>0?Object.assign({"ion-color":!0,[`ion-color-${n}`]:!0},i):i,d=n=>{const i={};return(n=>void 0!==n?(Array.isArray(n)?n:n.split(" ")).filter(r=>null!=r).map(r=>r.trim()).filter(r=>""!==r):[])(n).forEach(r=>i[r]=!0),i},m=/^[a-z][a-z0-9+\-.]*:/,y=function(){var n=(0,u.Z)(function*(i,r,g,b){if(null!=i&&"#"!==i[0]&&!m.test(i)){const c=document.querySelector("ion-router");if(c)return r?.preventDefault(),c.push(i,g,b)}return!1});return function(r,g,b,c){return n.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/433.cef341761d760619.js b/433.1ebc9a1caea70989.js similarity index 97% rename from 433.cef341761d760619.js rename to 433.1ebc9a1caea70989.js index a619bfac..fc5d707c 100644 --- a/433.cef341761d760619.js +++ b/433.1ebc9a1caea70989.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[433],{433:(B,b,l)=>{l.r(b),l.d(b,{ion_datetime_button:()=>x});var h=l(5861),r=l(5349),f=l(839),u=l(6710),D=l(3567),k=l(3882),d=l(5504);const x=class{constructor(s){var o=this;(0,r.r)(this,s),this.datetimeEl=null,this.overlayEl=null,this.getParsedDateValues=e=>null==e?[]:Array.isArray(e)?e:[e],this.setDateTimeText=()=>{const{datetimeEl:e,datetimePresentation:i}=this;if(!e)return;const{value:n,locale:t,hourCycle:a,preferWheel:c,multiple:w,titleSelectedDatesFormatter:g}=e,p=this.getParsedDateValues(n),_=(0,d.q)(p.length>0?p:[(0,d.t)()]);if(!_)return;const m=_[0],v=(0,d.J)(t,a);switch(this.dateText=this.timeText=void 0,i){case"date-time":case"time-date":const T=(0,d.T)(t,m),E=(0,d.K)(t,m,v);c?this.dateText=`${T} ${E}`:(this.dateText=T,this.timeText=E);break;case"date":if(w&&1!==p.length){let y=`${p.length} days`;if(void 0!==g)try{y=g(p)}catch(O){(0,u.a)("Exception in provided `titleSelectedDatesFormatter`: ",O)}this.dateText=y}else this.dateText=(0,d.T)(t,m);break;case"time":this.timeText=(0,d.K)(t,m,v);break;case"month-year":this.dateText=(0,d.G)(t,m);break;case"month":this.dateText=(0,d.S)(t,m,{month:"long"});break;case"year":this.dateText=(0,d.S)(t,m,{year:"numeric"})}},this.waitForDatetimeChanges=(0,h.Z)(function*(){const{datetimeEl:e}=o;return e?new Promise(i=>{(0,f.a)(e,"ionRender",i,{once:!0})}):Promise.resolve()}),this.handleDateClick=function(){var e=(0,h.Z)(function*(i){const{datetimeEl:n,datetimePresentation:t}=o;if(!n)return;let a=!1;switch(t){case"date-time":case"time-date":!n.preferWheel&&"date"!==n.presentation&&(n.presentation="date",a=!0)}o.selectedButton="date",o.presentOverlay(i,a,o.dateTargetEl)});return function(i){return e.apply(this,arguments)}}(),this.handleTimeClick=e=>{const{datetimeEl:i,datetimePresentation:n}=this;if(!i)return;let t=!1;switch(n){case"date-time":case"time-date":"time"!==i.presentation&&(i.presentation="time",t=!0)}this.selectedButton="time",this.presentOverlay(e,t,this.timeTargetEl)},this.presentOverlay=function(){var e=(0,h.Z)(function*(i,n,t){const{overlayEl:a}=o;a&&("ION-POPOVER"===a.tagName?(n&&(yield o.waitForDatetimeChanges()),a.present(Object.assign(Object.assign({},i),{detail:{ionShadowTarget:t}}))):a.present())});return function(i,n,t){return e.apply(this,arguments)}}(),this.datetimePresentation="date-time",this.dateText=void 0,this.timeText=void 0,this.datetimeActive=!1,this.selectedButton=void 0,this.color="primary",this.disabled=!1,this.datetime=void 0}componentWillLoad(){var s=this;return(0,h.Z)(function*(){const{datetime:o}=s;if(!o)return void(0,u.a)("An ID associated with an ion-datetime instance is required for ion-datetime-button to function properly.",s.el);const e=s.datetimeEl=document.getElementById(o);if(!e)return void(0,u.a)(`No ion-datetime instance found for ID '${o}'.`,s.el);if("ION-DATETIME"!==e.tagName)return void(0,u.a)(`Expected an ion-datetime instance for ID '${o}' but received '${e.tagName.toLowerCase()}' instead.`,e);new IntersectionObserver(t=>{s.datetimeActive=t[0].isIntersecting},{threshold:.01}).observe(e);const n=s.overlayEl=e.closest("ion-modal, ion-popover");n&&n.classList.add("ion-datetime-button-overlay"),(0,f.c)(e,()=>{const t=s.datetimePresentation=e.presentation||"date-time";switch(s.setDateTimeText(),(0,f.a)(e,"ionValueChange",s.setDateTimeText),t){case"date-time":case"date":case"month-year":case"month":case"year":s.selectedButton="date";break;case"time-date":case"time":s.selectedButton="time"}})})()}render(){const{color:s,dateText:o,timeText:e,selectedButton:i,datetimeActive:n,disabled:t}=this,a=(0,k.b)(this);return(0,r.h)(r.H,{class:(0,D.c)(s,{[a]:!0,[`${i}-active`]:n,"datetime-button-disabled":t})},o&&(0,r.h)("button",{class:"ion-activatable",id:"date-button","aria-expanded":n?"true":"false",onClick:this.handleDateClick,disabled:t,part:"native",ref:c=>this.dateTargetEl=c},(0,r.h)("slot",{name:"date-target"},o),"md"===a&&(0,r.h)("ion-ripple-effect",null)),e&&(0,r.h)("button",{class:"ion-activatable",id:"time-button","aria-expanded":n?"true":"false",onClick:this.handleTimeClick,disabled:t,part:"native",ref:c=>this.timeTargetEl=c},(0,r.h)("slot",{name:"time-target"},e),"md"===a&&(0,r.h)("ion-ripple-effect",null)))}get el(){return(0,r.f)(this)}};x.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[433],{433:(B,b,l)=>{l.r(b),l.d(b,{ion_datetime_button:()=>x});var h=l(5861),r=l(9942),f=l(512),u=l(2400),D=l(4459),k=l(5551),d=l(1111);const x=class{constructor(s){var o=this;(0,r.r)(this,s),this.datetimeEl=null,this.overlayEl=null,this.getParsedDateValues=e=>null==e?[]:Array.isArray(e)?e:[e],this.setDateTimeText=()=>{const{datetimeEl:e,datetimePresentation:i}=this;if(!e)return;const{value:n,locale:t,hourCycle:a,preferWheel:c,multiple:w,titleSelectedDatesFormatter:g}=e,p=this.getParsedDateValues(n),_=(0,d.q)(p.length>0?p:[(0,d.t)()]);if(!_)return;const m=_[0],v=(0,d.J)(t,a);switch(this.dateText=this.timeText=void 0,i){case"date-time":case"time-date":const T=(0,d.T)(t,m),E=(0,d.K)(t,m,v);c?this.dateText=`${T} ${E}`:(this.dateText=T,this.timeText=E);break;case"date":if(w&&1!==p.length){let y=`${p.length} days`;if(void 0!==g)try{y=g(p)}catch(O){(0,u.a)("Exception in provided `titleSelectedDatesFormatter`: ",O)}this.dateText=y}else this.dateText=(0,d.T)(t,m);break;case"time":this.timeText=(0,d.K)(t,m,v);break;case"month-year":this.dateText=(0,d.G)(t,m);break;case"month":this.dateText=(0,d.S)(t,m,{month:"long"});break;case"year":this.dateText=(0,d.S)(t,m,{year:"numeric"})}},this.waitForDatetimeChanges=(0,h.Z)(function*(){const{datetimeEl:e}=o;return e?new Promise(i=>{(0,f.a)(e,"ionRender",i,{once:!0})}):Promise.resolve()}),this.handleDateClick=function(){var e=(0,h.Z)(function*(i){const{datetimeEl:n,datetimePresentation:t}=o;if(!n)return;let a=!1;switch(t){case"date-time":case"time-date":!n.preferWheel&&"date"!==n.presentation&&(n.presentation="date",a=!0)}o.selectedButton="date",o.presentOverlay(i,a,o.dateTargetEl)});return function(i){return e.apply(this,arguments)}}(),this.handleTimeClick=e=>{const{datetimeEl:i,datetimePresentation:n}=this;if(!i)return;let t=!1;switch(n){case"date-time":case"time-date":"time"!==i.presentation&&(i.presentation="time",t=!0)}this.selectedButton="time",this.presentOverlay(e,t,this.timeTargetEl)},this.presentOverlay=function(){var e=(0,h.Z)(function*(i,n,t){const{overlayEl:a}=o;a&&("ION-POPOVER"===a.tagName?(n&&(yield o.waitForDatetimeChanges()),a.present(Object.assign(Object.assign({},i),{detail:{ionShadowTarget:t}}))):a.present())});return function(i,n,t){return e.apply(this,arguments)}}(),this.datetimePresentation="date-time",this.dateText=void 0,this.timeText=void 0,this.datetimeActive=!1,this.selectedButton=void 0,this.color="primary",this.disabled=!1,this.datetime=void 0}componentWillLoad(){var s=this;return(0,h.Z)(function*(){const{datetime:o}=s;if(!o)return void(0,u.a)("An ID associated with an ion-datetime instance is required for ion-datetime-button to function properly.",s.el);const e=s.datetimeEl=document.getElementById(o);if(!e)return void(0,u.a)(`No ion-datetime instance found for ID '${o}'.`,s.el);if("ION-DATETIME"!==e.tagName)return void(0,u.a)(`Expected an ion-datetime instance for ID '${o}' but received '${e.tagName.toLowerCase()}' instead.`,e);new IntersectionObserver(t=>{s.datetimeActive=t[0].isIntersecting},{threshold:.01}).observe(e);const n=s.overlayEl=e.closest("ion-modal, ion-popover");n&&n.classList.add("ion-datetime-button-overlay"),(0,f.c)(e,()=>{const t=s.datetimePresentation=e.presentation||"date-time";switch(s.setDateTimeText(),(0,f.a)(e,"ionValueChange",s.setDateTimeText),t){case"date-time":case"date":case"month-year":case"month":case"year":s.selectedButton="date";break;case"time-date":case"time":s.selectedButton="time"}})})()}render(){const{color:s,dateText:o,timeText:e,selectedButton:i,datetimeActive:n,disabled:t}=this,a=(0,k.b)(this);return(0,r.h)(r.H,{class:(0,D.c)(s,{[a]:!0,[`${i}-active`]:n,"datetime-button-disabled":t})},o&&(0,r.h)("button",{class:"ion-activatable",id:"date-button","aria-expanded":n?"true":"false",onClick:this.handleDateClick,disabled:t,part:"native",ref:c=>this.dateTargetEl=c},(0,r.h)("slot",{name:"date-target"},o),"md"===a&&(0,r.h)("ion-ripple-effect",null)),e&&(0,r.h)("button",{class:"ion-activatable",id:"time-button","aria-expanded":n?"true":"false",onClick:this.handleTimeClick,disabled:t,part:"native",ref:c=>this.timeTargetEl=c},(0,r.h)("slot",{name:"time-target"},e),"md"===a&&(0,r.h)("ion-ripple-effect",null)))}get el(){return(0,r.f)(this)}};x.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host button{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;margin-top:0px;margin-bottom:0px;position:relative;-webkit-transition:150ms color ease-in-out;transition:150ms color ease-in-out;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:1rem;cursor:pointer;overflow:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host(.time-active) #time-button,:host(.date-active) #date-button{color:var(--ion-color-base)}:host(.datetime-button-disabled){pointer-events:none}:host(.datetime-button-disabled) button{opacity:0.4}"}}}]); \ No newline at end of file diff --git a/4458.5fd66ad24f883dd1.js b/4458.5fd66ad24f883dd1.js deleted file mode 100644 index eac75088..00000000 --- a/4458.5fd66ad24f883dd1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4458],{4458:(j,w,p)=>{p.r(w),p.d(w,{ion_radio:()=>s,ion_radio_group:()=>v});var g=p(5861),r=p(5349),_=p(9988),h=p(839),y=p(6710),m=p(3567),b=p(3882);const s=class{constructor(e){(0,r.r)(this,e),this.ionStyle=(0,r.d)(this,"ionStyle",7),this.ionFocus=(0,r.d)(this,"ionFocus",7),this.ionBlur=(0,r.d)(this,"ionBlur",7),this.inputId="ion-rb-"+k++,this.radioGroup=null,this.hasLoggedDeprecationWarning=!1,this.updateState=()=>{this.radioGroup&&(this.checked=this.radioGroup.value===this.value)},this.onClick=()=>{const{radioGroup:t,checked:i,disabled:a}=this;if(!a){if(this.legacyFormController.hasLegacyControl())return void(this.checked=this.nativeInput.checked);this.checked=!i||!t?.allowEmptySelection}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.checked=!1,this.buttonTabindex=-1,this.color=void 0,this.name=this.inputId,this.disabled=!1,this.value=void 0,this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}valueChanged(){this.updateState()}setFocus(e){var t=this;return(0,g.Z)(function*(){e.stopPropagation(),e.preventDefault(),t.el.focus()})()}setButtonTabindex(e){var t=this;return(0,g.Z)(function*(){t.buttonTabindex=e})()}connectedCallback(){this.legacyFormController=(0,_.c)(this.el),void 0===this.value&&(this.value=this.inputId);const e=this.radioGroup=this.el.closest("ion-radio-group");e&&(this.updateState(),(0,h.a)(e,"ionValueChange",this.updateState))}disconnectedCallback(){const e=this.radioGroup;e&&((0,h.b)(e,"ionValueChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}styleChanged(){this.emitStyle()}emitStyle(){const e={"interactive-disabled":this.disabled};this.legacyFormController.hasLegacyControl()&&(e["radio-checked"]=this.checked),this.ionStyle.emit(e)}get hasLabel(){return""!==this.el.textContent}renderRadioControl(){return(0,r.h)("div",{class:"radio-icon",part:"container"},(0,r.h)("div",{class:"radio-inner",part:"mark"}),(0,r.h)("div",{class:"radio-ripple"}))}render(){const{legacyFormController:e}=this;return e.hasLegacyControl()?this.renderLegacyRadio():this.renderRadio()}renderRadio(){const{checked:e,disabled:t,color:i,el:a,justify:d,labelPlacement:c,hasLabel:l,buttonTabindex:f,alignment:C}=this,E=(0,b.b)(this),x=(0,m.h)("ion-item",a);return(0,r.h)(r.H,{onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:(0,m.c)(i,{[E]:!0,"in-item":x,"radio-checked":e,"radio-disabled":t,[`radio-justify-${d}`]:!0,[`radio-alignment-${C}`]:!0,[`radio-label-placement-${c}`]:!0,"ion-activatable":!x,"ion-focusable":!x}),role:"radio","aria-checked":e?"true":"false","aria-disabled":t?"true":null,tabindex:f},(0,r.h)("label",{class:"radio-wrapper"},(0,r.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!l}},(0,r.h)("slot",null)),(0,r.h)("div",{class:"native-wrapper"},this.renderRadioControl())))}renderLegacyRadio(){this.hasLoggedDeprecationWarning||((0,y.p)('ion-radio now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Option Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,y.p)('ion-radio is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new radio syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{inputId:e,disabled:t,checked:i,color:a,el:d,buttonTabindex:c}=this,l=(0,b.b)(this),{label:f,labelId:C,labelText:E}=(0,h.e)(d,e);return(0,r.h)(r.H,{"aria-checked":`${i}`,"aria-hidden":t?"true":null,"aria-labelledby":f?C:null,role:"radio",tabindex:c,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:(0,m.c)(a,{[l]:!0,"in-item":(0,m.h)("ion-item",d),interactive:!0,"radio-checked":i,"radio-disabled":t,"legacy-radio":!0})},this.renderRadioControl(),(0,r.h)("label",{htmlFor:e},E),(0,r.h)("input",{type:"radio",checked:i,disabled:t,tabindex:"-1",id:e,ref:x=>this.nativeInput=x}))}get el(){return(0,r.f)(this)}static get watchers(){return{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}}};let k=0;s.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color-checked:var(--ion-color-primary, #3880ff)}:host(.legacy-radio){width:0.9375rem;height:1.5rem}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{-webkit-margin-start:0;margin-inline-start:0}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.125rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}@supports (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{inset-inline-start:-9px}}@supports not (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{left:-9px}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}@supports selector(:dir(rtl)){:host(.ion-focused:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-9px}}}:host(.in-item.legacy-radio){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:11px;margin-inline-end:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px;margin-top:8px;margin-bottom:8px}.native-wrapper .radio-icon{width:0.9375rem;height:1.5rem}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--border-width:0.125rem;--border-style:solid;--border-radius:50%}:host(.legacy-radio){width:1.25rem;height:1.25rem}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.legacy-radio.radio-disabled),:host(.radio-disabled) .label-text-wrapper{opacity:0.38}:host(.radio-disabled) .native-wrapper{opacity:0.63}:host(.ion-focused.legacy-radio) .radio-icon::after{top:-12px}@supports (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{inset-inline-start:-12px}}@supports not (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{left:-12px}:host-context([dir=rtl]):host(.ion-focused.legacy-radio) .radio-icon::after,:host-context([dir=rtl]).ion-focused.legacy-radio .radio-icon::after{left:unset;right:unset;right:-12px}@supports selector(:dir(rtl)){:host(.ion-focused.legacy-radio:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-12px}}}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host(.in-item.legacy-radio){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:11px;margin-bottom:10px}.native-wrapper .radio-icon{width:1.25rem;height:1.25rem}'};const v=class{constructor(e){(0,r.r)(this,e),this.ionChange=(0,r.d)(this,"ionChange",7),this.ionValueChange=(0,r.d)(this,"ionValueChange",7),this.inputId="ion-rg-"+u++,this.labelId=`${this.inputId}-lbl`,this.setRadioTabindex=t=>{const i=this.getRadios(),a=i.find(l=>!l.disabled),d=i.find(l=>l.value===t&&!l.disabled);if(!a&&!d)return;const c=d||a;for(const l of i)l.setButtonTabindex(l===c?0:-1)},this.onClick=t=>{t.preventDefault();const i=t.target&&t.target.closest("ion-radio");if(i&&!1===i.disabled){const d=i.value;d!==this.value?(this.value=d,this.emitValueChange(t)):this.allowEmptySelection&&(this.value=void 0,this.emitValueChange(t))}},this.allowEmptySelection=!1,this.name=this.inputId,this.value=void 0}valueChanged(e){this.setRadioTabindex(e),this.ionValueChange.emit({value:e})}componentDidLoad(){this.valueChanged(this.value)}connectedCallback(){var e=this;return(0,g.Z)(function*(){const t=e.el.querySelector("ion-list-header")||e.el.querySelector("ion-item-divider");if(t){const i=e.label=t.querySelector("ion-label");i&&(e.labelId=i.id=e.name+"-lbl")}})()}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}emitValueChange(e){const{value:t}=this;this.ionChange.emit({value:t,event:e})}onKeydown(e){const t=!!this.el.closest("ion-select-popover");if(e.target&&!this.el.contains(e.target))return;const i=this.getRadios().filter(a=>!a.disabled);if(e.target&&i.includes(e.target)){const a=i.findIndex(l=>l===e.target),d=i[a];let c;if(["ArrowDown","ArrowRight"].includes(e.key)&&(c=a===i.length-1?i[0]:i[a+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(c=0===a?i[i.length-1]:i[a-1]),c&&i.includes(c)&&(c.setFocus(e),t||(this.value=c.value,this.emitValueChange(e))),[" "].includes(e.key)){const l=this.value;this.value=this.allowEmptySelection&&void 0!==this.value?void 0:d.value,(l!==this.value||this.allowEmptySelection)&&this.emitValueChange(e),e.preventDefault()}}}render(){const{label:e,labelId:t,el:i,name:a,value:d}=this,c=(0,b.b)(this);return(0,h.d)(!0,i,a,d,!1),(0,r.h)(r.H,{role:"radiogroup","aria-labelledby":e?t:null,onClick:this.onClick,class:c})}get el(){return(0,r.f)(this)}static get watchers(){return{value:["valueChanged"]}}};let u=0},3567:(j,w,p)=>{p.d(w,{c:()=>_,g:()=>y,h:()=>r,o:()=>b});var g=p(5861);const r=(o,n)=>null!==n.closest(o),_=(o,n)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},n):n,y=o=>{const n={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(o).forEach(s=>n[s]=!0),n},m=/^[a-z][a-z0-9+\-.]*:/,b=function(){var o=(0,g.Z)(function*(n,s,k,v){if(null!=n&&"#"!==n[0]&&!m.test(n)){const u=document.querySelector("ion-router");if(u)return s?.preventDefault(),u.push(n,k,v)}return!1});return function(s,k,v,u){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/4458.99e9fced430ef937.js b/4458.99e9fced430ef937.js new file mode 100644 index 00000000..b3fb74d4 --- /dev/null +++ b/4458.99e9fced430ef937.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4458],{4458:(j,w,c)=>{c.r(w),c.d(w,{ion_radio:()=>b,ion_radio_group:()=>u});var g=c(5861),r=c(9942),v=c(9749),h=c(512),_=c(983),y=c(2400),m=c(4459),o=c(5551);const b=class{constructor(e){(0,r.r)(this,e),this.ionStyle=(0,r.d)(this,"ionStyle",7),this.ionFocus=(0,r.d)(this,"ionFocus",7),this.ionBlur=(0,r.d)(this,"ionBlur",7),this.inputId="ion-rb-"+k++,this.radioGroup=null,this.hasLoggedDeprecationWarning=!1,this.updateState=()=>{if(this.radioGroup){const{compareWith:t,value:i}=this.radioGroup;this.checked=(0,_.i)(i,this.value,t)}},this.onClick=()=>{const{radioGroup:t,checked:i,disabled:a}=this;if(!a){if(this.legacyFormController.hasLegacyControl())return void(this.checked=this.nativeInput.checked);this.checked=!i||!t?.allowEmptySelection}},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.checked=!1,this.buttonTabindex=-1,this.color=void 0,this.name=this.inputId,this.disabled=!1,this.value=void 0,this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}valueChanged(){this.updateState()}setFocus(e){var t=this;return(0,g.Z)(function*(){e.stopPropagation(),e.preventDefault(),t.el.focus()})()}setButtonTabindex(e){var t=this;return(0,g.Z)(function*(){t.buttonTabindex=e})()}connectedCallback(){this.legacyFormController=(0,v.c)(this.el),void 0===this.value&&(this.value=this.inputId);const e=this.radioGroup=this.el.closest("ion-radio-group");e&&(this.updateState(),(0,h.a)(e,"ionValueChange",this.updateState))}disconnectedCallback(){const e=this.radioGroup;e&&((0,h.b)(e,"ionValueChange",this.updateState),this.radioGroup=null)}componentWillLoad(){this.emitStyle()}styleChanged(){this.emitStyle()}emitStyle(){const e={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(e["radio-checked"]=this.checked),this.ionStyle.emit(e)}get hasLabel(){return""!==this.el.textContent}renderRadioControl(){return(0,r.h)("div",{class:"radio-icon",part:"container"},(0,r.h)("div",{class:"radio-inner",part:"mark"}),(0,r.h)("div",{class:"radio-ripple"}))}render(){const{legacyFormController:e}=this;return e.hasLegacyControl()?this.renderLegacyRadio():this.renderRadio()}renderRadio(){const{checked:e,disabled:t,color:i,el:a,justify:s,labelPlacement:d,hasLabel:l,buttonTabindex:f,alignment:C}=this,E=(0,o.b)(this),x=(0,m.h)("ion-item",a);return(0,r.h)(r.H,{onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:(0,m.c)(i,{[E]:!0,"in-item":x,"radio-checked":e,"radio-disabled":t,[`radio-justify-${s}`]:!0,[`radio-alignment-${C}`]:!0,[`radio-label-placement-${d}`]:!0,"ion-activatable":!x,"ion-focusable":!x}),role:"radio","aria-checked":e?"true":"false","aria-disabled":t?"true":null,tabindex:f},(0,r.h)("label",{class:"radio-wrapper"},(0,r.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!l},part:"label"},(0,r.h)("slot",null)),(0,r.h)("div",{class:"native-wrapper"},this.renderRadioControl())))}renderLegacyRadio(){this.hasLoggedDeprecationWarning||((0,y.p)('ion-radio now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Option Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,y.p)('ion-radio is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new radio syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{inputId:e,disabled:t,checked:i,color:a,el:s,buttonTabindex:d}=this,l=(0,o.b)(this),{label:f,labelId:C,labelText:E}=(0,h.e)(s,e);return(0,r.h)(r.H,{"aria-checked":`${i}`,"aria-hidden":t?"true":null,"aria-labelledby":f?C:null,role:"radio",tabindex:d,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:(0,m.c)(a,{[l]:!0,"in-item":(0,m.h)("ion-item",s),interactive:!0,"radio-checked":i,"radio-disabled":t,"legacy-radio":!0})},this.renderRadioControl(),(0,r.h)("label",{htmlFor:e},E),(0,r.h)("input",{type:"radio",checked:i,disabled:t,tabindex:"-1",id:e,ref:x=>this.nativeInput=x}))}get el(){return(0,r.f)(this)}static get watchers(){return{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}}};let k=0;b.style={ios:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color-checked:var(--ion-color-primary, #3880ff)}:host(.legacy-radio){width:0.9375rem;height:1.5rem}:host(.ion-color.radio-checked) .radio-inner{border-color:var(--ion-color-base)}.item-radio.item-ios ion-label{-webkit-margin-start:0;margin-inline-start:0}.radio-inner{width:33%;height:50%}:host(.radio-checked) .radio-inner{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.125rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--color-checked)}:host(.radio-disabled){opacity:0.3}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);top:-8px;display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}@supports (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{inset-inline-start:-9px}}@supports not (inset-inline-start: 0){:host(.ion-focused) .radio-icon::after{left:-9px}:host-context([dir=rtl]):host(.ion-focused) .radio-icon::after,:host-context([dir=rtl]).ion-focused .radio-icon::after{left:unset;right:unset;right:-9px}@supports selector(:dir(rtl)){:host(.ion-focused:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-9px}}}:host(.in-item.legacy-radio){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:11px;margin-inline-end:11px;margin-top:8px;margin-bottom:8px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:21px;margin-inline-end:21px;margin-top:8px;margin-bottom:8px}.native-wrapper .radio-icon{width:0.9375rem;height:1.5rem}',md:':host{--inner-border-radius:50%;display:inline-block;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;min-height:inherit;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(:not(.legacy-radio)){cursor:pointer}:host(.radio-disabled){pointer-events:none}.radio-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;contain:layout size style}.radio-icon,.radio-inner{-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-radio) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-radio) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-radio) label{left:0}:host-context([dir=rtl]):host(.legacy-radio) label,:host-context([dir=rtl]).legacy-radio label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-radio:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-radio) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host(:focus){outline:none}:host(.in-item:not(.legacy-radio)){width:100%;height:100%}:host([slot=start]:not(.legacy-radio)),:host([slot=end]:not(.legacy-radio)){width:auto}.radio-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-radio)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.radio-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.radio-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.radio-justify-space-between) .radio-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.radio-justify-start) .radio-wrapper{-ms-flex-pack:start;justify-content:start}:host(.radio-justify-end) .radio-wrapper{-ms-flex-pack:end;justify-content:end}:host(.radio-alignment-start) .radio-wrapper{-ms-flex-align:start;align-items:start}:host(.radio-alignment-center) .radio-wrapper{-ms-flex-align:center;align-items:center}:host(.radio-label-placement-start) .radio-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.radio-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-end) .radio-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.radio-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.radio-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.radio-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px}:host(.radio-label-placement-stacked) .radio-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.radio-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.radio-label-placement-stacked.radio-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).radio-label-placement-stacked.radio-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.radio-label-placement-stacked.radio-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host{--color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--color-checked:var(--ion-color-primary, #3880ff);--border-width:0.125rem;--border-style:solid;--border-radius:50%}:host(.legacy-radio){width:1.25rem;height:1.25rem}:host(.ion-color) .radio-inner{background:var(--ion-color-base)}:host(.ion-color.radio-checked) .radio-icon{border-color:var(--ion-color-base)}.radio-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:var(--border-radius);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--color)}.radio-inner{border-radius:var(--inner-border-radius);width:calc(50% + var(--border-width));height:calc(50% + var(--border-width));-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background:var(--color-checked)}:host(.radio-checked) .radio-icon{border-color:var(--color-checked)}:host(.radio-checked) .radio-inner{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}:host(.legacy-radio.radio-disabled),:host(.radio-disabled) .label-text-wrapper{opacity:0.38}:host(.radio-disabled) .native-wrapper{opacity:0.63}:host(.ion-focused.legacy-radio) .radio-icon::after{top:-12px}@supports (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{inset-inline-start:-12px}}@supports not (inset-inline-start: 0){:host(.ion-focused.legacy-radio) .radio-icon::after{left:-12px}:host-context([dir=rtl]):host(.ion-focused.legacy-radio) .radio-icon::after,:host-context([dir=rtl]).ion-focused.legacy-radio .radio-icon::after{left:unset;right:unset;right:-12px}@supports selector(:dir(rtl)){:host(.ion-focused.legacy-radio:dir(rtl)) .radio-icon::after{left:unset;right:unset;right:-12px}}}:host(.ion-focused) .radio-icon::after{border-radius:var(--inner-border-radius);display:block;position:absolute;width:36px;height:36px;background:var(--ion-color-primary-tint, #4c8dff);content:"";opacity:0.2}:host(.in-item.legacy-radio){margin-left:0;margin-right:0;margin-top:9px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-radio[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:11px;margin-bottom:10px}.native-wrapper .radio-icon{width:1.25rem;height:1.25rem}'};const u=class{constructor(e){(0,r.r)(this,e),this.ionChange=(0,r.d)(this,"ionChange",7),this.ionValueChange=(0,r.d)(this,"ionValueChange",7),this.inputId="ion-rg-"+I++,this.labelId=`${this.inputId}-lbl`,this.setRadioTabindex=t=>{const i=this.getRadios(),a=i.find(l=>!l.disabled),s=i.find(l=>l.value===t&&!l.disabled);if(!a&&!s)return;const d=s||a;for(const l of i)l.setButtonTabindex(l===d?0:-1)},this.onClick=t=>{t.preventDefault();const i=t.target&&t.target.closest("ion-radio");if(i&&!i.disabled){const s=i.value;s!==this.value?(this.value=s,this.emitValueChange(t)):this.allowEmptySelection&&(this.value=void 0,this.emitValueChange(t))}},this.allowEmptySelection=!1,this.compareWith=void 0,this.name=this.inputId,this.value=void 0}valueChanged(e){this.setRadioTabindex(e),this.ionValueChange.emit({value:e})}componentDidLoad(){this.valueChanged(this.value)}connectedCallback(){var e=this;return(0,g.Z)(function*(){const t=e.el.querySelector("ion-list-header")||e.el.querySelector("ion-item-divider");if(t){const i=e.label=t.querySelector("ion-label");i&&(e.labelId=i.id=e.name+"-lbl")}})()}getRadios(){return Array.from(this.el.querySelectorAll("ion-radio"))}emitValueChange(e){const{value:t}=this;this.ionChange.emit({value:t,event:e})}onKeydown(e){const t=!!this.el.closest("ion-select-popover");if(e.target&&!this.el.contains(e.target))return;const i=this.getRadios().filter(a=>!a.disabled);if(e.target&&i.includes(e.target)){const a=i.findIndex(l=>l===e.target),s=i[a];let d;if(["ArrowDown","ArrowRight"].includes(e.key)&&(d=a===i.length-1?i[0]:i[a+1]),["ArrowUp","ArrowLeft"].includes(e.key)&&(d=0===a?i[i.length-1]:i[a-1]),d&&i.includes(d)&&(d.setFocus(e),t||(this.value=d.value,this.emitValueChange(e))),[" "].includes(e.key)){const l=this.value;this.value=this.allowEmptySelection&&void 0!==this.value?void 0:s.value,(l!==this.value||this.allowEmptySelection)&&this.emitValueChange(e),e.preventDefault()}}}render(){const{label:e,labelId:t,el:i,name:a,value:s}=this,d=(0,o.b)(this);return(0,h.d)(!0,i,a,s,!1),(0,r.h)(r.H,{role:"radiogroup","aria-labelledby":e?t:null,onClick:this.onClick,class:d})}get el(){return(0,r.f)(this)}static get watchers(){return{value:["valueChanged"]}}};let I=0},4459:(j,w,c)=>{c.d(w,{c:()=>v,g:()=>_,h:()=>r,o:()=>m});var g=c(5861);const r=(o,n)=>null!==n.closest(o),v=(o,n)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},n):n,_=o=>{const n={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(p=>null!=p).map(p=>p.trim()).filter(p=>""!==p):[])(o).forEach(p=>n[p]=!0),n},y=/^[a-z][a-z0-9+\-.]*:/,m=function(){var o=(0,g.Z)(function*(n,p,b,k){if(null!=n&&"#"!==n[0]&&!y.test(n)){const u=document.querySelector("ion-router");if(u)return p?.preventDefault(),u.push(n,b,k)}return!1});return function(p,b,k,u){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/4530.07789d0977a90397.js b/4530.07789d0977a90397.js new file mode 100644 index 00000000..c2da5615 --- /dev/null +++ b/4530.07789d0977a90397.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4530],{4530:(z,c,a)=>{a.r(c),a.d(c,{ion_input:()=>C});var h=a(5861),n=a(9942),v=a(9749),x=a(4793),p=a(512),m=a(2400),b=a(5917),o=a(4459),r=a(1076),l=a(5551);a(1848);const C=class{constructor(i){(0,n.r)(this,i),this.ionInput=(0,n.d)(this,"ionInput",7),this.ionChange=(0,n.d)(this,"ionChange",7),this.ionBlur=(0,n.d)(this,"ionBlur",7),this.ionFocus=(0,n.d)(this,"ionFocus",7),this.ionStyle=(0,n.d)(this,"ionStyle",7),this.inputId="ion-input-"+O++,this.inheritedAttributes={},this.isComposing=!1,this.hasLoggedDeprecationWarning=!1,this.didInputClearOnEdit=!1,this.onInput=t=>{const e=t.target;e&&(this.value=e.value||""),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onBlur=t=>{this.hasFocus=!1,this.emitStyle(),this.focusedValue!==this.value&&this.emitValueChange(t),this.didInputClearOnEdit=!1,this.ionBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusedValue=this.value,this.emitStyle(),this.ionFocus.emit(t)},this.onKeydown=t=>{this.checkClearOnEdit(t)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=t=>{this.clearInput&&!this.readonly&&!this.disabled&&t&&(t.preventDefault(),t.stopPropagation(),this.setFocus()),this.value="",this.emitInputChange(t)},this.hasFocus=!1,this.color=void 0,this.accept=void 0,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.clearOnEdit=void 0,this.counter=!1,this.counterFormatter=void 0,this.debounce=void 0,this.disabled=!1,this.enterkeyhint=void 0,this.errorText=void 0,this.fill=void 0,this.inputmode=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.multiple=void 0,this.name=this.inputId,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.shape=void 0,this.spellcheck=!1,this.step=void 0,this.size=void 0,this.type="text",this.value=""}debounceChanged(){const{ionInput:i,debounce:t,originalIonInput:e}=this;this.ionInput=void 0===t?e??i:(0,p.j)(i,t)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const i=this.nativeInput,t=this.getValue();i&&i.value!==t&&!this.isComposing&&(i.value=t),this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},(0,p.i)(this.el)),(0,p.k)(this.el,["tabindex","title","data-form-type"]))}connectedCallback(){const{el:i}=this;this.legacyFormController=(0,v.c)(i),this.slotMutationController=(0,b.c)(i,["label","start","end"],()=>(0,n.i)(this)),this.notchController=(0,x.c)(i,()=>this.notchSpacerEl,()=>this.labelSlot),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){this.originalIonInput=this.ionInput}componentDidRender(){var i;null===(i=this.notchController)||void 0===i||i.calculateNotchWidth()}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}setFocus(){var i=this;return(0,h.Z)(function*(){i.nativeInput&&i.nativeInput.focus()})()}getInputElement(){var i=this;return(0,h.Z)(function*(){return i.nativeInput||(yield new Promise(t=>(0,p.c)(i.el,t))),Promise.resolve(i.nativeInput)})()}emitValueChange(i){const{value:t}=this,e=null==t?t:t.toString();this.focusedValue=e,this.ionChange.emit({value:e,event:i})}emitInputChange(i){const{value:t}=this,e=null==t?t:t.toString();this.ionInput.emit({value:e,event:i})}shouldClearOnEdit(){const{type:i,clearOnEdit:t}=this;return void 0===t?"password"===i:t}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled,legacy:!!this.legacy})}checkClearOnEdit(i){if(!this.shouldClearOnEdit())return;const e=["Enter","Tab","Shift","Meta","Alt","Control"].includes(i.key);!this.didInputClearOnEdit&&this.hasValue()&&!e&&(this.value="",this.emitInputChange(i)),e||(this.didInputClearOnEdit=!0)}hasValue(){return this.getValue().length>0}renderHintText(){const{helperText:i,errorText:t}=this;return[(0,n.h)("div",{class:"helper-text"},i),(0,n.h)("div",{class:"error-text"},t)]}renderCounter(){const{counter:i,maxlength:t,counterFormatter:e,value:s}=this;if(!0===i&&void 0!==t)return(0,n.h)("div",{class:"counter"},(0,b.g)(s,t,e))}renderBottomContent(){const{counter:i,helperText:t,errorText:e,maxlength:s}=this;if(t||e||!0===i&&void 0!==s)return(0,n.h)("div",{class:"input-bottom"},this.renderHintText(),this.renderCounter())}renderLabel(){const{label:i}=this;return(0,n.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===i?(0,n.h)("slot",{name:"label"}):(0,n.h)("div",{class:"label-text"},i))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===(0,l.b)(this)&&"outline"===this.fill?[(0,n.h)("div",{class:"input-outline-container"},(0,n.h)("div",{class:"input-outline-start"}),(0,n.h)("div",{class:{"input-outline-notch":!0,"input-outline-notch-hidden":!this.hasLabel}},(0,n.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:e=>this.notchSpacerEl=e},this.label)),(0,n.h)("div",{class:"input-outline-end"})),this.renderLabel()]:this.renderLabel()}renderInput(){const{disabled:i,fill:t,readonly:e,shape:s,inputId:d,labelPlacement:f,el:D,hasFocus:_}=this,y=(0,l.b)(this),L=this.getValue(),I=(0,o.h)("ion-item",this.el),M="md"===y&&"outline"!==t&&!I,E=this.hasValue(),T=null!==D.querySelector('[slot="start"], [slot="end"]');return(0,n.h)(n.H,{class:(0,o.c)(this.color,{[y]:!0,"has-value":E,"has-focus":_,"label-floating":"stacked"===f||"floating"===f&&(E||_||T),[`input-fill-${t}`]:void 0!==t,[`input-shape-${s}`]:void 0!==s,[`input-label-placement-${f}`]:!0,"in-item":I,"in-item-color":(0,o.h)("ion-item.ion-color",this.el),"input-disabled":i})},(0,n.h)("label",{class:"input-wrapper",htmlFor:d},this.renderLabelContainer(),(0,n.h)("div",{class:"native-wrapper"},(0,n.h)("slot",{name:"start"}),(0,n.h)("input",Object.assign({class:"native-input",ref:k=>this.nativeInput=k,id:d,disabled:i,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:e,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:L,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.clearInput&&!e&&!i&&(0,n.h)("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:k=>{k.preventDefault()},onClick:this.clearTextInput},(0,n.h)("ion-icon",{"aria-hidden":"true",icon:"ios"===y?r.b:r.d})),(0,n.h)("slot",{name:"end"})),M&&(0,n.h)("div",{class:"input-highlight"})),this.renderBottomContent())}renderLegacyInput(){this.hasLoggedDeprecationWarning||((0,m.p)('ion-input now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor inputs that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the input by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,m.p)('ion-input is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new input syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const i=(0,l.b)(this),t=this.getValue(),e=this.inputId+"-lbl",s=(0,p.h)(this.el);return s&&(s.id=e),(0,n.h)(n.H,{"aria-disabled":this.disabled?"true":null,class:(0,o.c)(this.color,{[i]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"legacy-input":!0,"in-item-color":(0,o.h)("ion-item.ion-color",this.el)})},(0,n.h)("input",Object.assign({class:"native-input",ref:d=>this.nativeInput=d,"aria-labelledby":s?s.id:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:t,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&(0,n.h)("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:d=>{d.preventDefault()},onClick:this.clearTextInput},(0,n.h)("ion-icon",{"aria-hidden":"true",icon:"ios"===i?r.b:r.d})))}render(){const{legacyFormController:i}=this;return i.hasLegacyControl()?this.renderLegacyInput():this.renderInput()}get el(){return(0,n.f)(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}};let O=0;C.style={ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-ios-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-ios-h .native-input.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-ios-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-input-ios-h,ion-item [slot=start].sc-ion-input-ios-h,ion-item[slot=end].sc-ion-input-ios-h,ion-item [slot=end].sc-ion-input-ios-h{width:auto}.legacy-input.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-ios-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-ios-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-ios-h,.input-label-placement-stacked.sc-ion-input-ios-h{min-height:56px}.native-input.sc-ion-input-ios{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.cloned-input.sc-ion-input-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{left:0}[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-ios:disabled{opacity:1}.legacy-input.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{color:inherit}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.legacy-input.sc-ion-input-ios-h{pointer-events:none}.has-focus.legacy-input.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.legacy-input.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.legacy-input.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-ios-h,.ion-touched.ion-invalid.sc-ion-input-ios-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:block}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:none}.input-bottom.sc-ion-input-ios .counter.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-ios,.sc-ion-input-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-ios,.input-outline-notch-hidden.sc-ion-input-ios{display:none}.input-wrapper.sc-ion-input-ios input.sc-ion-input-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text.sc-ion-input-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-ios-h input.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios,.has-value.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:1}.label-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-ios-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-ios-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.sc-ion-input-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));font-size:inherit}.legacy-input.sc-ion-input-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios ion-icon.sc-ion-input-ios{width:18px;height:18px}.legacy-input.sc-ion-input-ios-h .native-input[disabled].sc-ion-input-ios,.input-disabled.sc-ion-input-ios-h{opacity:0.3}.sc-ion-input-ios-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-ios-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-md-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-md-h .native-input.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-md-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-md-h{--padding-start:0}ion-item[slot=start].sc-ion-input-md-h,ion-item [slot=start].sc-ion-input-md-h,ion-item[slot=end].sc-ion-input-md-h,ion-item [slot=end].sc-ion-input-md-h{width:auto}.legacy-input.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-md-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-md-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-md-h,.input-label-placement-stacked.sc-ion-input-md-h{min-height:56px}.native-input.sc-ion-input-md{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.cloned-input.sc-ion-input-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-md:disabled{opacity:1}.legacy-input.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{color:inherit}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.legacy-input.sc-ion-input-md-h{pointer-events:none}.has-focus.legacy-input.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.legacy-input.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.legacy-input.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;width:100%}.ion-touched.ion-invalid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:block}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:none}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-md-h input.sc-ion-input-md{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-md,.sc-ion-input-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-md,.input-outline-notch-hidden.sc-ion-input-md{display:none}.input-wrapper.sc-ion-input-md input.sc-ion-input-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text.sc-ion-input-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md,.has-value.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:1}.label-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-md-s>[slot=start]{-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}.sc-ion-input-md-s>[slot=end]{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}.input-fill-solid.sc-ion-input-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.input-fill-solid.ion-valid.sc-ion-input-md-h,.input-fill-solid.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-fill-solid.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}@media (any-hover: hover){.input-fill-solid.sc-ion-input-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.input-fill-solid.has-focus.sc-ion-input-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl].input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-solid.sc-ion-input-md-h:dir(rtl) .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.label-floating.input-fill-solid.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{max-width:calc(100% / 0.75)}.input-fill-outline.sc-ion-input-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-outline.input-shape-round.sc-ion-input-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.input-fill-outline.ion-valid.sc-ion-input-md-h,.input-fill-outline.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.input-fill-outline.sc-ion-input-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.input-fill-outline.has-focus.sc-ion-input-md-h{--border-width:2px;--border-color:var(--highlight-color)}.input-fill-outline.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}.input-fill-outline.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:none}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{position:relative}.label-floating.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}.input-fill-outline.sc-ion-input-md-h .input-outline-container.sc-ion-input-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{pointer-events:none}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.input-fill-outline.sc-ion-input-md-h .notch-spacer.sc-ion-input-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.label-floating.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{border-top:none}.sc-ion-input-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:inherit}.legacy-input.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md ion-icon.sc-ion-input-md{width:22px;height:22px}.legacy-input.sc-ion-input-md-h .native-input[disabled].sc-ion-input-md,.input-disabled.sc-ion-input-md-h{opacity:0.38}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{letter-spacing:0.0333333333em}.input-label-placement-floating.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.has-focus.input-label-placement-floating.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-label-placement-stacked.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.input-highlight.sc-ion-input-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.input-highlight.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-input-md-h .input-highlight.sc-ion-input-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl].in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-input-md-h:dir(rtl) .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}}}.input-shape-round.sc-ion-input-md-h{--border-radius:16px}.sc-ion-input-md-s>ion-button[slot=start].button-has-icon-only,.sc-ion-input-md-s>ion-button[slot=end].button-has-icon-only{--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}"}},4459:(z,c,a)=>{a.d(c,{c:()=>v,g:()=>p,h:()=>n,o:()=>b});var h=a(5861);const n=(o,r)=>null!==r.closest(o),v=(o,r)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},r):r,p=o=>{const r={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(o).forEach(l=>r[l]=!0),r},m=/^[a-z][a-z0-9+\-.]*:/,b=function(){var o=(0,h.Z)(function*(r,l,w,g){if(null!=r&&"#"!==r[0]&&!m.test(r)){const u=document.querySelector("ion-router");if(u)return l?.preventDefault(),u.push(r,w,g)}return!1});return function(l,w,g,u){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/4530.0d8921ee1a086632.js b/4530.0d8921ee1a086632.js deleted file mode 100644 index f7e07f4a..00000000 --- a/4530.0d8921ee1a086632.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4530],{4530:(I,c,a)=>{a.r(c),a.d(c,{ion_input:()=>k});var h=a(5861),n=a(5349),f=a(9988),v=a(5857),p=a(839),m=a(6710),b=a(2894),o=a(3567),r=a(5307),l=a(3882);a(6225);const k=class{constructor(i){(0,n.r)(this,i),this.ionInput=(0,n.d)(this,"ionInput",7),this.ionChange=(0,n.d)(this,"ionChange",7),this.ionBlur=(0,n.d)(this,"ionBlur",7),this.ionFocus=(0,n.d)(this,"ionFocus",7),this.ionStyle=(0,n.d)(this,"ionStyle",7),this.inputId="ion-input-"+z++,this.inheritedAttributes={},this.isComposing=!1,this.hasLoggedDeprecationWarning=!1,this.didInputClearOnEdit=!1,this.onInput=t=>{const e=t.target;e&&(this.value=e.value||""),this.emitInputChange(t)},this.onChange=t=>{this.emitValueChange(t)},this.onBlur=t=>{this.hasFocus=!1,this.emitStyle(),this.focusedValue!==this.value&&this.emitValueChange(t),this.didInputClearOnEdit=!1,this.ionBlur.emit(t)},this.onFocus=t=>{this.hasFocus=!0,this.focusedValue=this.value,this.emitStyle(),this.ionFocus.emit(t)},this.onKeydown=t=>{this.checkClearOnEdit(t)},this.onCompositionStart=()=>{this.isComposing=!0},this.onCompositionEnd=()=>{this.isComposing=!1},this.clearTextInput=t=>{this.clearInput&&!this.readonly&&!this.disabled&&t&&(t.preventDefault(),t.stopPropagation(),this.setFocus()),this.value="",this.emitInputChange(t)},this.hasFocus=!1,this.color=void 0,this.accept=void 0,this.autocapitalize="off",this.autocomplete="off",this.autocorrect="off",this.autofocus=!1,this.clearInput=!1,this.clearOnEdit=void 0,this.counter=!1,this.counterFormatter=void 0,this.debounce=void 0,this.disabled=!1,this.enterkeyhint=void 0,this.errorText=void 0,this.fill=void 0,this.inputmode=void 0,this.helperText=void 0,this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.max=void 0,this.maxlength=void 0,this.min=void 0,this.minlength=void 0,this.multiple=void 0,this.name=this.inputId,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.shape=void 0,this.spellcheck=!1,this.step=void 0,this.size=void 0,this.type="text",this.value=""}debounceChanged(){const{ionInput:i,debounce:t,originalIonInput:e}=this;this.ionInput=void 0===t?e??i:(0,p.j)(i,t)}disabledChanged(){this.emitStyle()}placeholderChanged(){this.emitStyle()}valueChanged(){const i=this.nativeInput,t=this.getValue();i&&i.value!==t&&!this.isComposing&&(i.value=t),this.emitStyle()}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},(0,p.i)(this.el)),(0,p.k)(this.el,["tabindex","title","data-form-type"]))}connectedCallback(){const{el:i}=this;this.legacyFormController=(0,f.c)(i),this.slotMutationController=(0,b.c)(i,"label",()=>(0,n.i)(this)),this.notchController=(0,v.c)(i,()=>this.notchSpacerEl,()=>this.labelSlot),this.emitStyle(),this.debounceChanged(),document.dispatchEvent(new CustomEvent("ionInputDidLoad",{detail:this.el}))}componentDidLoad(){this.originalIonInput=this.ionInput}componentDidRender(){var i;null===(i=this.notchController)||void 0===i||i.calculateNotchWidth()}disconnectedCallback(){document.dispatchEvent(new CustomEvent("ionInputDidUnload",{detail:this.el})),this.slotMutationController&&(this.slotMutationController.destroy(),this.slotMutationController=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}setFocus(){var i=this;return(0,h.Z)(function*(){i.nativeInput&&i.nativeInput.focus()})()}getInputElement(){var i=this;return(0,h.Z)(function*(){return i.nativeInput||(yield new Promise(t=>(0,p.c)(i.el,t))),Promise.resolve(i.nativeInput)})()}emitValueChange(i){const{value:t}=this,e=null==t?t:t.toString();this.focusedValue=e,this.ionChange.emit({value:e,event:i})}emitInputChange(i){const{value:t}=this,e=null==t?t:t.toString();this.ionInput.emit({value:e,event:i})}shouldClearOnEdit(){const{type:i,clearOnEdit:t}=this;return void 0===t?"password"===i:t}getValue(){return"number"==typeof this.value?this.value.toString():(this.value||"").toString()}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({interactive:!0,input:!0,"has-placeholder":void 0!==this.placeholder,"has-value":this.hasValue(),"has-focus":this.hasFocus,"interactive-disabled":this.disabled})}checkClearOnEdit(i){this.shouldClearOnEdit()&&(!this.didInputClearOnEdit&&this.hasValue()&&"Enter"!==i.key&&"Tab"!==i.key&&(this.value="",this.emitInputChange(i)),this.didInputClearOnEdit=!0)}hasValue(){return this.getValue().length>0}renderHintText(){const{helperText:i,errorText:t}=this;return[(0,n.h)("div",{class:"helper-text"},i),(0,n.h)("div",{class:"error-text"},t)]}renderCounter(){const{counter:i,maxlength:t,counterFormatter:e,value:s}=this;if(!0===i&&void 0!==t)return(0,n.h)("div",{class:"counter"},(0,b.g)(s,t,e))}renderBottomContent(){const{counter:i,helperText:t,errorText:e,maxlength:s}=this;if(t||e||!0===i&&void 0!==s)return(0,n.h)("div",{class:"input-bottom"},this.renderHintText(),this.renderCounter())}renderLabel(){const{label:i}=this;return(0,n.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},void 0===i?(0,n.h)("slot",{name:"label"}):(0,n.h)("div",{class:"label-text"},i))}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===(0,l.b)(this)&&"outline"===this.fill?[(0,n.h)("div",{class:"input-outline-container"},(0,n.h)("div",{class:"input-outline-start"}),(0,n.h)("div",{class:{"input-outline-notch":!0,"input-outline-notch-hidden":!this.hasLabel}},(0,n.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:e=>this.notchSpacerEl=e},this.label)),(0,n.h)("div",{class:"input-outline-end"})),this.renderLabel()]:this.renderLabel()}renderInput(){const{disabled:i,fill:t,readonly:e,shape:s,inputId:d,labelPlacement:C}=this,w=(0,l.b)(this),E=this.getValue(),_=(0,o.h)("ion-item",this.el),O="md"===w&&"outline"!==t&&!_;return(0,n.h)(n.H,{class:(0,o.c)(this.color,{[w]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,[`input-fill-${t}`]:void 0!==t,[`input-shape-${s}`]:void 0!==s,[`input-label-placement-${C}`]:!0,"in-item":_,"in-item-color":(0,o.h)("ion-item.ion-color",this.el),"input-disabled":i})},(0,n.h)("label",{class:"input-wrapper"},this.renderLabelContainer(),(0,n.h)("div",{class:"native-wrapper"},(0,n.h)("input",Object.assign({class:"native-input",ref:y=>this.nativeInput=y,id:d,disabled:i,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:e,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:E,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown,onCompositionstart:this.onCompositionStart,onCompositionend:this.onCompositionEnd},this.inheritedAttributes)),this.clearInput&&!e&&!i&&(0,n.h)("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:y=>{y.preventDefault()},onClick:this.clearTextInput},(0,n.h)("ion-icon",{"aria-hidden":"true",icon:"ios"===w?r.b:r.d}))),O&&(0,n.h)("div",{class:"input-highlight"})),this.renderBottomContent())}renderLegacyInput(){this.hasLoggedDeprecationWarning||((0,m.p)('ion-input now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: \nExample with aria-label: \n\nFor inputs that do not render the label immediately next to the input, developers may continue to use "ion-label" but must manually associate the label with the input by using "aria-labelledby".\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,m.p)('ion-input is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new input syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const i=(0,l.b)(this),t=this.getValue(),e=this.inputId+"-lbl",s=(0,p.h)(this.el);return s&&(s.id=e),(0,n.h)(n.H,{"aria-disabled":this.disabled?"true":null,class:(0,o.c)(this.color,{[i]:!0,"has-value":this.hasValue(),"has-focus":this.hasFocus,"legacy-input":!0,"in-item-color":(0,o.h)("ion-item.ion-color",this.el)})},(0,n.h)("input",Object.assign({class:"native-input",ref:d=>this.nativeInput=d,"aria-labelledby":s?s.id:null,disabled:this.disabled,accept:this.accept,autoCapitalize:this.autocapitalize,autoComplete:this.autocomplete,autoCorrect:this.autocorrect,autoFocus:this.autofocus,enterKeyHint:this.enterkeyhint,inputMode:this.inputmode,min:this.min,max:this.max,minLength:this.minlength,maxLength:this.maxlength,multiple:this.multiple,name:this.name,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readonly,required:this.required,spellcheck:this.spellcheck,step:this.step,size:this.size,type:this.type,value:t,onInput:this.onInput,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,onKeyDown:this.onKeydown},this.inheritedAttributes)),this.clearInput&&!this.readonly&&!this.disabled&&(0,n.h)("button",{"aria-label":"reset",type:"button",class:"input-clear-icon",onPointerDown:d=>{d.preventDefault()},onClick:this.clearTextInput},(0,n.h)("ion-icon",{"aria-hidden":"true",icon:"ios"===i?r.b:r.d})))}render(){const{legacyFormController:i}=this;return i.hasLegacyControl()?this.renderLegacyInput():this.renderInput()}get el(){return(0,n.f)(this)}static get watchers(){return{debounce:["debounceChanged"],disabled:["disabledChanged"],placeholder:["placeholderChanged"],value:["valueChanged"]}}};let z=0;k.style={ios:".sc-ion-input-ios-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-ios-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-ios-h .native-input.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-ios-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-ios-h{--padding-start:0}ion-item[slot=start].sc-ion-input-ios-h,ion-item [slot=start].sc-ion-input-ios-h,ion-item[slot=end].sc-ion-input-ios-h,ion-item [slot=end].sc-ion-input-ios-h{width:auto}.legacy-input.ion-color.sc-ion-input-ios-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-ios-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-ios-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-ios-h,.input-label-placement-stacked.sc-ion-input-ios-h{min-height:56px}.native-input.sc-ion-input-ios{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-ios::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-ios:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-ios:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-ios::-ms-clear{display:none}.cloned-input.sc-ion-input-ios{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-ios{left:0}[dir=rtl].sc-ion-input-ios-h .cloned-input.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-ios .cloned-input.sc-ion-input-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-ios:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-ios:disabled{opacity:1}.legacy-input.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{color:inherit}.input-clear-icon.sc-ion-input-ios:focus{opacity:0.5}.has-value.sc-ion-input-ios-h .input-clear-icon.sc-ion-input-ios{visibility:visible}.has-focus.sc-ion-input-ios-h{pointer-events:none}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h a.sc-ion-input-ios,.has-focus.sc-ion-input-ios-h button.sc-ion-input-ios{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-ios-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-ios-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-ios-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;width:100%}.ion-touched.ion-invalid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-ios-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-ios{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-ios-h,.ion-touched.ion-invalid.sc-ion-input-ios-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .error-text.sc-ion-input-ios{display:block}.ion-touched.ion-invalid.sc-ion-input-ios-h .input-bottom.sc-ion-input-ios .helper-text.sc-ion-input-ios{display:none}.input-bottom.sc-ion-input-ios .counter.sc-ion-input-ios{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-ios-h input.sc-ion-input-ios{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-ios{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-ios,.sc-ion-input-ios-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-ios,.input-outline-notch-hidden.sc-ion-input-ios{display:none}.input-wrapper.sc-ion-input-ios input.sc-ion-input-ios{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-ios-h .label-text.sc-ion-input-ios{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .input-wrapper.sc-ion-input-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .sc-ion-input-ios-h -no-combinator.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl].input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,[dir=rtl] .input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h:dir(rtl) .label-text-wrapper.sc-ion-input-ios{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-ios-h input.sc-ion-input-ios,.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios,.has-value.input-label-placement-floating.sc-ion-input-ios-h input.sc-ion-input-ios{opacity:1}.input-label-placement-stacked.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.has-focus.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios,.has-value.input-label-placement-floating.sc-ion-input-ios-h .label-text-wrapper.sc-ion-input-ios{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.sc-ion-input-ios-h{--border-width:0.55px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));font-size:inherit}.legacy-input.sc-ion-input-ios-h{--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:0}.item-label-stacked.sc-ion-input-ios-h,.item-label-stacked .sc-ion-input-ios-h,.item-label-floating.sc-ion-input-ios-h,.item-label-floating .sc-ion-input-ios-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0px}.input-clear-icon.sc-ion-input-ios ion-icon.sc-ion-input-ios{width:18px;height:18px}.legacy-input.sc-ion-input-ios-h .native-input[disabled].sc-ion-input-ios,.input-disabled.sc-ion-input-ios-h{opacity:0.3}",md:".sc-ion-input-md-h{--placeholder-color:initial;--placeholder-font-style:initial;--placeholder-font-weight:initial;--placeholder-opacity:0.6;--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--background:transparent;--color:initial;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;width:100%;padding:0 !important;color:var(--color);font-family:var(--ion-font-family, inherit);z-index:2}.legacy-input.sc-ion-input-md-h{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;background:var(--background)}.legacy-input.sc-ion-input-md-h .native-input.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius)}ion-item.sc-ion-input-md-h:not(.item-label):not(.item-has-modern-input),ion-item:not(.item-label):not(.item-has-modern-input) .sc-ion-input-md-h{--padding-start:0}ion-item[slot=start].sc-ion-input-md-h,ion-item [slot=start].sc-ion-input-md-h,ion-item[slot=end].sc-ion-input-md-h,ion-item [slot=end].sc-ion-input-md-h{width:auto}.legacy-input.ion-color.sc-ion-input-md-h{color:var(--ion-color-base)}.ion-color.sc-ion-input-md-h{--highlight-color-focused:var(--ion-color-base)}.sc-ion-input-md-h:not(.legacy-input){min-height:44px}.input-label-placement-floating.sc-ion-input-md-h,.input-label-placement-stacked.sc-ion-input-md-h{min-height:56px}.native-input.sc-ion-input-md{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:inline-block;position:relative;-ms-flex:1;flex:1;width:100%;max-width:100%;max-height:100%;border:0;outline:none;background:transparent;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1}.native-input.sc-ion-input-md::-webkit-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-moz-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::-ms-input-placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md::placeholder{color:var(--placeholder-color);font-family:inherit;font-style:var(--placeholder-font-style);font-weight:var(--placeholder-font-weight);opacity:var(--placeholder-opacity)}.native-input.sc-ion-input-md:-webkit-autofill{background-color:transparent}.native-input.sc-ion-input-md:invalid{-webkit-box-shadow:none;box-shadow:none}.native-input.sc-ion-input-md::-ms-clear{display:none}.cloned-input.sc-ion-input-md{top:0;bottom:0;position:absolute;pointer-events:none}@supports (inset-inline-start: 0){.cloned-input.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.cloned-input.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .cloned-input.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .cloned-input.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.cloned-input.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.cloned-input.sc-ion-input-md:disabled{opacity:1}.legacy-input.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.input-clear-icon.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;background-position:center;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:30px;height:30px;border:0;outline:none;background-color:transparent;background-repeat:no-repeat;color:var(--ion-color-step-600, #666666);visibility:hidden;-webkit-appearance:none;-moz-appearance:none;appearance:none}.in-item-color.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{color:inherit}.input-clear-icon.sc-ion-input-md:focus{opacity:0.5}.has-value.sc-ion-input-md-h .input-clear-icon.sc-ion-input-md{visibility:visible}.has-focus.sc-ion-input-md-h{pointer-events:none}.has-focus.sc-ion-input-md-h input.sc-ion-input-md,.has-focus.sc-ion-input-md-h a.sc-ion-input-md,.has-focus.sc-ion-input-md-h button.sc-ion-input-md{pointer-events:auto}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value),.item-label-floating.item-has-placeholder:not(.item-has-value) .sc-ion-input-md-h{opacity:0}.item-label-floating.item-has-placeholder.sc-ion-input-md-h:not(.item-has-value).item-has-focus,.item-label-floating.item-has-placeholder:not(.item-has-value).item-has-focus .sc-ion-input-md-h{-webkit-transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);opacity:1}.input-wrapper.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:stretch;align-items:stretch;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal}.native-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;width:100%}.ion-touched.ion-invalid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-invalid)}.ion-valid.sc-ion-input-md-h{--highlight-color:var(--highlight-color-valid)}.input-bottom.sc-ion-input-md{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:5px;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--border-width) var(--border-style) var(--border-color);font-size:0.75rem}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:none;color:var(--highlight-color-invalid)}.input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:block;color:var(--ion-color-step-550, #737373)}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .error-text.sc-ion-input-md{display:block}.ion-touched.ion-invalid.sc-ion-input-md-h .input-bottom.sc-ion-input-md .helper-text.sc-ion-input-md{display:none}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}.has-focus.sc-ion-input-md-h input.sc-ion-input-md{caret-color:var(--highlight-color)}.label-text-wrapper.sc-ion-input-md{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text.sc-ion-input-md,.sc-ion-input-md-s>[slot=label]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden.sc-ion-input-md,.input-outline-notch-hidden.sc-ion-input-md{display:none}.input-wrapper.sc-ion-input-md input.sc-ion-input-md{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.input-label-placement-start.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row;flex-direction:row}.input-label-placement-start.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-end.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.input-label-placement-end.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}.input-label-placement-fixed.sc-ion-input-md-h .label-text.sc-ion-input-md{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.input-label-placement-stacked.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;max-width:100%;z-index:2}[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0}.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:0}.has-focus.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md,.has-value.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{opacity:1}.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-value.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}.input-fill-solid.sc-ion-input-md-h{--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:var(--border-width) var(--border-style) var(--border-color)}.has-focus.input-fill-solid.ion-valid.sc-ion-input-md-h,.input-fill-solid.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-fill-solid.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}@media (any-hover: hover){.input-fill-solid.sc-ion-input-md-h:hover{--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}.input-fill-solid.has-focus.sc-ion-input-md-h{--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl].input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-solid.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-solid.sc-ion-input-md-h:dir(rtl) .input-wrapper.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}.input-fill-solid.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-fill-solid.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-value.input-fill-solid.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{max-width:calc(100% / 0.75)}.input-fill-outline.sc-ion-input-md-h{--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}.input-fill-outline.input-shape-round.sc-ion-input-md-h{--border-radius:28px;--padding-start:32px;--padding-end:32px}.has-focus.input-fill-outline.ion-valid.sc-ion-input-md-h,.input-fill-outline.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}@media (any-hover: hover){.input-fill-outline.sc-ion-input-md-h:hover{--border-color:var(--ion-color-step-750, #404040)}}.input-fill-outline.has-focus.sc-ion-input-md-h{--border-width:2px;--border-color:var(--highlight-color)}.input-fill-outline.sc-ion-input-md-h .input-bottom.sc-ion-input-md{border-top:none}.input-fill-outline.sc-ion-input-md-h .input-wrapper.sc-ion-input-md{border-bottom:none}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:left top;transform-origin:left top;position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl].input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,[dir=rtl] .input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h:dir(rtl) .label-text-wrapper.sc-ion-input-md{-webkit-transform-origin:right top;transform-origin:right top}}.input-fill-outline.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{position:relative}.has-focus.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-value.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h input.sc-ion-input-md,.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h input.sc-ion-input-md{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}.input-fill-outline.sc-ion-input-md-h .input-outline-container.sc-ion-input-md{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{pointer-events:none}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color)}.input-fill-outline.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{max-width:calc(100% - var(--padding-start) - var(--padding-end))}.input-fill-outline.sc-ion-input-md-h .notch-spacer.sc-ion-input-md{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none;-webkit-box-sizing:content-box;box-sizing:content-box}.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius);-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color);width:calc(var(--padding-start) - 4px)}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-start.sc-ion-input-md{border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px}}.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color);border-top-left-radius:0px;border-top-right-radius:var(--border-radius);border-bottom-right-radius:var(--border-radius);border-bottom-left-radius:0px;-ms-flex-positive:1;flex-grow:1}[dir=rtl].sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl].input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md,[dir=rtl] .input-fill-outline.sc-ion-input-md-h .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}@supports selector(:dir(rtl)){.input-fill-outline.sc-ion-input-md-h:dir(rtl) .input-outline-end.sc-ion-input-md{border-top-left-radius:var(--border-radius);border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:var(--border-radius)}}.has-focus.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.has-value.input-fill-outline.input-label-placement-floating.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md,.input-fill-outline.input-label-placement-stacked.sc-ion-input-md-h .input-outline-notch.sc-ion-input-md{border-top:none}.sc-ion-input-md-h{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:inherit}.legacy-input.sc-ion-input-md-h{--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:8px}.item-label-stacked.sc-ion-input-md-h,.item-label-stacked .sc-ion-input-md-h,.item-label-floating.sc-ion-input-md-h,.item-label-floating .sc-ion-input-md-h{--padding-top:8px;--padding-bottom:8px;--padding-start:0}.input-clear-icon.sc-ion-input-md ion-icon.sc-ion-input-md{width:22px;height:22px}.legacy-input.sc-ion-input-md-h .native-input[disabled].sc-ion-input-md,.input-disabled.sc-ion-input-md-h{opacity:0.38}.has-focus.ion-valid.sc-ion-input-md-h,.ion-touched.ion-invalid.sc-ion-input-md-h{--border-color:var(--highlight-color)}.input-bottom.sc-ion-input-md .counter.sc-ion-input-md{letter-spacing:0.0333333333em}.input-label-placement-floating.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.has-focus.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.has-focus.input-label-placement-floating.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-floating.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.has-focus.input-label-placement-stacked.ion-valid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md,.input-label-placement-stacked.ion-touched.ion-invalid.sc-ion-input-md-h .label-text-wrapper.sc-ion-input-md{color:var(--highlight-color)}.input-highlight.sc-ion-input-md{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-input-md .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.input-highlight.sc-ion-input-md:dir(rtl){left:unset;right:unset;right:0}}}.has-focus.sc-ion-input-md-h .input-highlight.sc-ion-input-md{-webkit-transform:scale(1);transform:scale(1)}.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{bottom:0}@supports (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:0}[dir=rtl].sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .sc-ion-input-md-h -no-combinator.in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl].in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md,[dir=rtl] .in-item.sc-ion-input-md-h .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.in-item.sc-ion-input-md-h:dir(rtl) .input-highlight.sc-ion-input-md{left:unset;right:unset;right:0}}}.input-shape-round.sc-ion-input-md-h{--border-radius:16px}"}},3567:(I,c,a)=>{a.d(c,{c:()=>f,g:()=>p,h:()=>n,o:()=>b});var h=a(5861);const n=(o,r)=>null!==r.closest(o),f=(o,r)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},r):r,p=o=>{const r={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(o).forEach(l=>r[l]=!0),r},m=/^[a-z][a-z0-9+\-.]*:/,b=function(){var o=(0,h.Z)(function*(r,l,x,g){if(null!=r&&"#"!==r[0]&&!m.test(r)){const u=document.querySelector("ion-router");if(u)return l?.preventDefault(),u.push(r,x,g)}return!1});return function(l,x,g,u){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/469.2dad78fe404d096a.js b/469.2dad78fe404d096a.js new file mode 100644 index 00000000..5c98947a --- /dev/null +++ b/469.2dad78fe404d096a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[469],{469:(p,s,t)=>{t.r(s),t.d(s,{ion_backdrop:()=>r});var a=t(9942),n=t(2019),i=t(5551);const r=class{constructor(o){(0,a.r)(this,o),this.ionBackdropTap=(0,a.d)(this,"ionBackdropTap",7),this.blocker=n.G.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(o){this.emitTap(o)}emitTap(o){this.stopPropagation&&(o.preventDefault(),o.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const o=(0,i.b)(this);return(0,a.h)(a.H,{tabindex:"-1","aria-hidden":"true",class:{[o]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}};r.style={ios:":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",md:":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}"}}}]); \ No newline at end of file diff --git a/469.a2803c28c005f4f2.js b/469.a2803c28c005f4f2.js deleted file mode 100644 index 967f96b7..00000000 --- a/469.a2803c28c005f4f2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[469],{469:(p,s,t)=>{t.r(s),t.d(s,{ion_backdrop:()=>r});var a=t(5349),n=t(619),i=t(3882);const r=class{constructor(o){(0,a.r)(this,o),this.ionBackdropTap=(0,a.d)(this,"ionBackdropTap",7),this.blocker=n.G.createBlocker({disableScroll:!0}),this.visible=!0,this.tappable=!0,this.stopPropagation=!0}connectedCallback(){this.stopPropagation&&this.blocker.block()}disconnectedCallback(){this.blocker.unblock()}onMouseDown(o){this.emitTap(o)}emitTap(o){this.stopPropagation&&(o.preventDefault(),o.stopPropagation()),this.tappable&&this.ionBackdropTap.emit()}render(){const o=(0,i.b)(this);return(0,a.h)(a.H,{tabindex:"-1","aria-hidden":"true",class:{[o]:!0,"backdrop-hide":!this.visible,"backdrop-no-tappable":!this.tappable}})}};r.style={ios:":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}",md:":host{left:0;right:0;top:0;bottom:0;display:block;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);contain:strict;cursor:pointer;opacity:0.01;-ms-touch-action:none;touch-action:none;z-index:2}:host(.backdrop-hide){background:transparent}:host(.backdrop-no-tappable){cursor:auto}:host{background-color:var(--ion-backdrop-color, #000)}"}}}]); \ No newline at end of file diff --git a/4764.fc73c49a566dcee1.js b/4764.0635bd3a2a2fcc3a.js similarity index 98% rename from 4764.fc73c49a566dcee1.js rename to 4764.0635bd3a2a2fcc3a.js index 4ea7fdb8..858442d3 100644 --- a/4764.fc73c49a566dcee1.js +++ b/4764.0635bd3a2a2fcc3a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4764],{4764:(A,y,p)=>{p.r(y),p.d(y,{ion_route:()=>D,ion_route_redirect:()=>L,ion_router:()=>tt,ion_router_link:()=>x});var f=p(5861),d=p(5349),R=p(839),C=p(3567),P=p(3882);const D=class{constructor(t){(0,d.r)(this,t),this.ionRouteDataChanged=(0,d.d)(this,"ionRouteDataChanged",7),this.url="",this.component=void 0,this.componentProps=void 0,this.beforeLeave=void 0,this.beforeEnter=void 0}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,e){if(t===e)return;const n=t?Object.keys(t):[],r=e?Object.keys(e):[];if(n.length===r.length){for(const o of n)if(t[o]!==e[o])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},L=class{constructor(t){(0,d.r)(this,t),this.ionRouteRedirectChanged=(0,d.d)(this,"ionRouteRedirectChanged",7),this.from=void 0,this.to=void 0}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},l="root",h="forward",_=t=>"/"+t.filter(n=>n.length>0).join("/"),g=t=>{let n,e=[""];if(null!=t){const r=t.indexOf("?");r>-1&&(n=t.substring(r+1),t=t.substring(0,r)),e=t.split("/").map(o=>o.trim()).filter(o=>o.length>0),0===e.length&&(e=[""])}return{segments:e,queryString:n}},T=function(){var t=(0,f.Z)(function*(e,n,r,o,s=!1,i){try{const a=N(e);if(o>=n.length||!a)return s;yield new Promise(v=>(0,R.c)(a,v));const u=n[o],c=yield a.setRouteId(u.id,u.params,r,i);return c.changed&&(r=l,s=!0),s=yield T(c.element,n,r,o+1,s,i),c.markVisible&&(yield c.markVisible()),s}catch(a){return console.error(a),!1}});return function(n,r,o,s){return t.apply(this,arguments)}}(),K=function(){var t=(0,f.Z)(function*(e){const n=[];let r,o=e;for(;r=N(o);){const s=yield r.getRouteId();if(!s)break;o=s.element,s.element=void 0,n.push(s)}return{ids:n,outlet:r}});return function(n){return t.apply(this,arguments)}}(),U=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",N=t=>{if(t)return t.matches(U)?t:t.querySelector(U)??void 0},j=(t,e)=>e.find(n=>((t,e)=>{const{from:n,to:r}=e;if(void 0===r||n.length>t.length)return!1;for(let o=0;o{const n=Math.min(t.length,e.length);let r=0;for(let o=0;o`:${c}`);for(let c=0;c{const n=new Y(t);let o,r=!1;for(let i=0;i({id:i.id,segments:i.segments,params:I(i.params,o[a]),beforeEnter:i.beforeEnter,beforeLeave:i.beforeLeave})):e},I=(t,e)=>t||e?Object.assign(Object.assign({},t),e):void 0,O=(t,e)=>{let n=null,r=0;for(const o of e){const s=J(t,o);if(null!==s){const i=X(s);i>r&&(r=i,n=s)}}return n},X=t=>{let e=1,n=1;for(const r of t)for(const o of r.segments)":"===o[0]?e+=Math.pow(1,n):""!==o&&(e+=Math.pow(2,n)),n++;return e};class Y{constructor(e){this.segments=e.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const S=(t,e)=>e in t?t[e]:t.hasAttribute(e)?t.getAttribute(e):null,k=t=>Array.from(t.children).filter(e=>"ION-ROUTE-REDIRECT"===e.tagName).map(e=>{const n=S(e,"to");return{from:g(S(e,"from")).segments,to:null==n?void 0:g(n)}}),w=t=>V(W(t)),W=t=>Array.from(t.children).filter(e=>"ION-ROUTE"===e.tagName&&e.component).map(e=>{const n=S(e,"component");return{segments:g(S(e,"url")).segments,id:n.toLowerCase(),params:e.componentProps,beforeLeave:e.beforeLeave,beforeEnter:e.beforeEnter,children:W(e)}}),V=t=>{const e=[];for(const n of t)M([],e,n);return e},M=(t,e,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const r of n.children)M(t,e,r);else e.push(t)},tt=class{constructor(t){(0,d.r)(this,t),this.ionRouteWillChange=(0,d.d)(this,"ionRouteWillChange",7),this.ionRouteDidChange=(0,d.d)(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}componentWillLoad(){var t=this;return(0,f.Z)(function*(){yield N(document.body)?Promise.resolve():new Promise(t=>{window.addEventListener("ionNavWillLoad",()=>t(),{once:!0})});const e=yield t.runGuards(t.getSegments());if(!0!==e){if("object"==typeof e){const{redirect:n}=e,r=g(n);t.setSegments(r.segments,l,r.queryString),yield t.writeNavStateRoot(r.segments,l)}}else yield t.onRoutesChanged()})()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",(0,R.q)(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",(0,R.q)(this.onRoutesChanged.bind(this),100))}onPopState(){var t=this;return(0,f.Z)(function*(){const e=t.historyDirection();let n=t.getSegments();const r=yield t.runGuards(n);if(!0!==r){if("object"!=typeof r)return!1;n=g(r.redirect).segments}return t.writeNavStateRoot(n,e)})()}onBackButton(t){t.detail.register(0,e=>{this.back(),e()})}canTransition(){var t=this;return(0,f.Z)(function*(){const e=yield t.runGuards();return!0===e||"object"==typeof e&&e.redirect})()}push(t,e="forward",n){var r=this;return(0,f.Z)(function*(){var o;if(t.startsWith(".")){const a=null!==(o=r.previousPath)&&void 0!==o?o:"/",u=new URL(t,`https://host/${a}`);t=u.pathname+u.search}let s=g(t);const i=yield r.runGuards(s.segments);if(!0!==i){if("object"!=typeof i)return!1;s=g(i.redirect)}return r.setSegments(s.segments,e,s.queryString),r.writeNavStateRoot(s.segments,e,n)})()}back(){return window.history.back(),Promise.resolve(this.waitPromise)}printDebug(){var t=this;return(0,f.Z)(function*(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const e of t){const n=[];e.forEach(o=>n.push(...o.segments));const r=e.map(o=>o.id);console.debug(`%c ${_(n)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${r.join(", ")})`)}console.groupEnd()})(w(t.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const e of t)e.to&&console.debug("FROM: ",`$c ${_(e.from)}`,"font-weight: bold"," TO: ",`$c ${_(e.to.segments)}`,"font-weight: bold");console.groupEnd()})(k(t.el))})()}navChanged(t){var e=this;return(0,f.Z)(function*(){if(e.busy)return console.warn("[ion-router] router is busy, navChanged was cancelled"),!1;const{ids:n,outlet:r}=yield K(window.document.body),s=((t,e)=>{let n=null,r=0;for(const o of e){const s=q(t,o);s>r&&(n=o,r=s)}return n?n.map((o,s)=>{var i;return{id:o.id,segments:o.segments,params:I(o.params,null===(i=t[s])||void 0===i?void 0:i.params)}}):null})(n,w(e.el));if(!s)return console.warn("[ion-router] no matching URL for ",n.map(a=>a.id)),!1;const i=(t=>{const e=[];for(const n of t)for(const r of n.segments)if(":"===r[0]){const o=n.params&&n.params[r.slice(1)];if(!o)return null;e.push(o)}else""!==r&&e.push(r);return e})(s);return i?(e.setSegments(i,t),yield e.safeWriteNavState(r,s,l,i,null,n.length),!0):(console.warn("[ion-router] router could not match path because some required param is missing"),!1)})()}onRedirectChanged(){const t=this.getSegments();t&&j(t,k(this.el))&&this.writeNavStateRoot(t,l)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),l)}historyDirection(){var t;const e=window;null===e.history.state&&(this.state++,e.history.replaceState(this.state,e.document.title,null===(t=e.document.location)||void 0===t?void 0:t.href));const n=e.history.state,r=this.lastState;return this.lastState=n,n>r||n>=r&&r>0?h:nn=r),void 0!==e&&(yield e),n})()}runGuards(t=this.getSegments(),e){var n=this;return(0,f.Z)(function*(){if(void 0===e&&(e=g(n.previousPath).segments),!t||!e)return!0;const r=w(n.el),o=O(e,r),s=o&&o[o.length-1].beforeLeave,i=!s||(yield s());if(!1===i||"object"==typeof i)return i;const a=O(t,r),u=a&&a[a.length-1].beforeEnter;return!u||u()})()}writeNavState(t,e,n,r,o,s=0,i){var a=this;return(0,f.Z)(function*(){if(a.busy)return console.warn("[ion-router] router is busy, transition was cancelled"),!1;a.busy=!0;const u=a.routeChangeEvent(r,o);u&&a.ionRouteWillChange.emit(u);const c=yield T(t,e,n,s,!1,i);return a.busy=!1,u&&a.ionRouteDidChange.emit(u),c})()}setSegments(t,e,n){this.state++,((t,e,n,r,o,s,i)=>{const a=((t,e,n)=>{let r=_(t);return e&&(r="#"+r),void 0!==n&&(r+="?"+n),r})([...g(e).segments,...r],n,i);o===h?t.pushState(s,"",a):t.replaceState(s,"",a)})(window.history,this.root,this.useHash,t,e,this.state,n)}getSegments(){return((t,e,n)=>{const r=g(this.root).segments,o=n?t.hash.slice(1):t.pathname;return((t,e)=>{if(t.length>e.length)return null;if(t.length<=1&&""===t[0])return e;for(let n=0;n{(0,C.o)(this.href,e,this.routerDirection,this.routerAnimation)},this.color=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}render(){const t=(0,P.b)(this),e={href:this.href,rel:this.rel,target:this.target};return(0,d.h)(d.H,{onClick:this.onClick,class:(0,C.c)(this.color,{[t]:!0,"ion-activatable":!0})},(0,d.h)("a",Object.assign({},e),(0,d.h)("slot",null)))}};x.style=":host{--background:transparent;--color:var(--ion-color-primary, #3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}"},3567:(A,y,p)=>{p.d(y,{c:()=>R,g:()=>P,h:()=>d,o:()=>L});var f=p(5861);const d=(l,h)=>null!==h.closest(l),R=(l,h)=>"string"==typeof l&&l.length>0?Object.assign({"ion-color":!0,[`ion-color-${l}`]:!0},h):h,P=l=>{const h={};return(l=>void 0!==l?(Array.isArray(l)?l:l.split(" ")).filter(m=>null!=m).map(m=>m.trim()).filter(m=>""!==m):[])(l).forEach(m=>h[m]=!0),h},D=/^[a-z][a-z0-9+\-.]*:/,L=function(){var l=(0,f.Z)(function*(h,m,_,E){if(null!=h&&"#"!==h[0]&&!D.test(h)){const b=document.querySelector("ion-router");if(b)return m?.preventDefault(),b.push(h,_,E)}return!1});return function(m,_,E,b){return l.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4764],{4764:(A,y,p)=>{p.r(y),p.d(y,{ion_route:()=>D,ion_route_redirect:()=>L,ion_router:()=>tt,ion_router_link:()=>x});var f=p(5861),d=p(9942),R=p(512),C=p(4459),P=p(5551);const D=class{constructor(t){(0,d.r)(this,t),this.ionRouteDataChanged=(0,d.d)(this,"ionRouteDataChanged",7),this.url="",this.component=void 0,this.componentProps=void 0,this.beforeLeave=void 0,this.beforeEnter=void 0}onUpdate(t){this.ionRouteDataChanged.emit(t)}onComponentProps(t,e){if(t===e)return;const n=t?Object.keys(t):[],r=e?Object.keys(e):[];if(n.length===r.length){for(const o of n)if(t[o]!==e[o])return void this.onUpdate(t)}else this.onUpdate(t)}connectedCallback(){this.ionRouteDataChanged.emit()}static get watchers(){return{url:["onUpdate"],component:["onUpdate"],componentProps:["onComponentProps"]}}},L=class{constructor(t){(0,d.r)(this,t),this.ionRouteRedirectChanged=(0,d.d)(this,"ionRouteRedirectChanged",7),this.from=void 0,this.to=void 0}propDidChange(){this.ionRouteRedirectChanged.emit()}connectedCallback(){this.ionRouteRedirectChanged.emit()}static get watchers(){return{from:["propDidChange"],to:["propDidChange"]}}},l="root",h="forward",_=t=>"/"+t.filter(n=>n.length>0).join("/"),g=t=>{let n,e=[""];if(null!=t){const r=t.indexOf("?");r>-1&&(n=t.substring(r+1),t=t.substring(0,r)),e=t.split("/").map(o=>o.trim()).filter(o=>o.length>0),0===e.length&&(e=[""])}return{segments:e,queryString:n}},T=function(){var t=(0,f.Z)(function*(e,n,r,o,s=!1,i){try{const a=N(e);if(o>=n.length||!a)return s;yield new Promise(v=>(0,R.c)(a,v));const u=n[o],c=yield a.setRouteId(u.id,u.params,r,i);return c.changed&&(r=l,s=!0),s=yield T(c.element,n,r,o+1,s,i),c.markVisible&&(yield c.markVisible()),s}catch(a){return console.error(a),!1}});return function(n,r,o,s){return t.apply(this,arguments)}}(),K=function(){var t=(0,f.Z)(function*(e){const n=[];let r,o=e;for(;r=N(o);){const s=yield r.getRouteId();if(!s)break;o=s.element,s.element=void 0,n.push(s)}return{ids:n,outlet:r}});return function(n){return t.apply(this,arguments)}}(),U=":not([no-router]) ion-nav, :not([no-router]) ion-tabs, :not([no-router]) ion-router-outlet",N=t=>{if(t)return t.matches(U)?t:t.querySelector(U)??void 0},j=(t,e)=>e.find(n=>((t,e)=>{const{from:n,to:r}=e;if(void 0===r||n.length>t.length)return!1;for(let o=0;o{const n=Math.min(t.length,e.length);let r=0;for(let o=0;o`:${c}`);for(let c=0;c{const n=new Y(t);let o,r=!1;for(let i=0;i({id:i.id,segments:i.segments,params:I(i.params,o[a]),beforeEnter:i.beforeEnter,beforeLeave:i.beforeLeave})):e},I=(t,e)=>t||e?Object.assign(Object.assign({},t),e):void 0,O=(t,e)=>{let n=null,r=0;for(const o of e){const s=J(t,o);if(null!==s){const i=X(s);i>r&&(r=i,n=s)}}return n},X=t=>{let e=1,n=1;for(const r of t)for(const o of r.segments)":"===o[0]?e+=Math.pow(1,n):""!==o&&(e+=Math.pow(2,n)),n++;return e};class Y{constructor(e){this.segments=e.slice()}next(){return this.segments.length>0?this.segments.shift():""}}const S=(t,e)=>e in t?t[e]:t.hasAttribute(e)?t.getAttribute(e):null,k=t=>Array.from(t.children).filter(e=>"ION-ROUTE-REDIRECT"===e.tagName).map(e=>{const n=S(e,"to");return{from:g(S(e,"from")).segments,to:null==n?void 0:g(n)}}),w=t=>V(W(t)),W=t=>Array.from(t.children).filter(e=>"ION-ROUTE"===e.tagName&&e.component).map(e=>{const n=S(e,"component");return{segments:g(S(e,"url")).segments,id:n.toLowerCase(),params:e.componentProps,beforeLeave:e.beforeLeave,beforeEnter:e.beforeEnter,children:W(e)}}),V=t=>{const e=[];for(const n of t)M([],e,n);return e},M=(t,e,n)=>{if(t=[...t,{id:n.id,segments:n.segments,params:n.params,beforeLeave:n.beforeLeave,beforeEnter:n.beforeEnter}],0!==n.children.length)for(const r of n.children)M(t,e,r);else e.push(t)},tt=class{constructor(t){(0,d.r)(this,t),this.ionRouteWillChange=(0,d.d)(this,"ionRouteWillChange",7),this.ionRouteDidChange=(0,d.d)(this,"ionRouteDidChange",7),this.previousPath=null,this.busy=!1,this.state=0,this.lastState=0,this.root="/",this.useHash=!0}componentWillLoad(){var t=this;return(0,f.Z)(function*(){yield N(document.body)?Promise.resolve():new Promise(t=>{window.addEventListener("ionNavWillLoad",()=>t(),{once:!0})});const e=yield t.runGuards(t.getSegments());if(!0!==e){if("object"==typeof e){const{redirect:n}=e,r=g(n);t.setSegments(r.segments,l,r.queryString),yield t.writeNavStateRoot(r.segments,l)}}else yield t.onRoutesChanged()})()}componentDidLoad(){window.addEventListener("ionRouteRedirectChanged",(0,R.q)(this.onRedirectChanged.bind(this),10)),window.addEventListener("ionRouteDataChanged",(0,R.q)(this.onRoutesChanged.bind(this),100))}onPopState(){var t=this;return(0,f.Z)(function*(){const e=t.historyDirection();let n=t.getSegments();const r=yield t.runGuards(n);if(!0!==r){if("object"!=typeof r)return!1;n=g(r.redirect).segments}return t.writeNavStateRoot(n,e)})()}onBackButton(t){t.detail.register(0,e=>{this.back(),e()})}canTransition(){var t=this;return(0,f.Z)(function*(){const e=yield t.runGuards();return!0===e||"object"==typeof e&&e.redirect})()}push(t,e="forward",n){var r=this;return(0,f.Z)(function*(){var o;if(t.startsWith(".")){const a=null!==(o=r.previousPath)&&void 0!==o?o:"/",u=new URL(t,`https://host/${a}`);t=u.pathname+u.search}let s=g(t);const i=yield r.runGuards(s.segments);if(!0!==i){if("object"!=typeof i)return!1;s=g(i.redirect)}return r.setSegments(s.segments,e,s.queryString),r.writeNavStateRoot(s.segments,e,n)})()}back(){return window.history.back(),Promise.resolve(this.waitPromise)}printDebug(){var t=this;return(0,f.Z)(function*(){(t=>{console.group(`[ion-core] ROUTES[${t.length}]`);for(const e of t){const n=[];e.forEach(o=>n.push(...o.segments));const r=e.map(o=>o.id);console.debug(`%c ${_(n)}`,"font-weight: bold; padding-left: 20px","=>\t",`(${r.join(", ")})`)}console.groupEnd()})(w(t.el)),(t=>{console.group(`[ion-core] REDIRECTS[${t.length}]`);for(const e of t)e.to&&console.debug("FROM: ",`$c ${_(e.from)}`,"font-weight: bold"," TO: ",`$c ${_(e.to.segments)}`,"font-weight: bold");console.groupEnd()})(k(t.el))})()}navChanged(t){var e=this;return(0,f.Z)(function*(){if(e.busy)return console.warn("[ion-router] router is busy, navChanged was cancelled"),!1;const{ids:n,outlet:r}=yield K(window.document.body),s=((t,e)=>{let n=null,r=0;for(const o of e){const s=q(t,o);s>r&&(n=o,r=s)}return n?n.map((o,s)=>{var i;return{id:o.id,segments:o.segments,params:I(o.params,null===(i=t[s])||void 0===i?void 0:i.params)}}):null})(n,w(e.el));if(!s)return console.warn("[ion-router] no matching URL for ",n.map(a=>a.id)),!1;const i=(t=>{const e=[];for(const n of t)for(const r of n.segments)if(":"===r[0]){const o=n.params&&n.params[r.slice(1)];if(!o)return null;e.push(o)}else""!==r&&e.push(r);return e})(s);return i?(e.setSegments(i,t),yield e.safeWriteNavState(r,s,l,i,null,n.length),!0):(console.warn("[ion-router] router could not match path because some required param is missing"),!1)})()}onRedirectChanged(){const t=this.getSegments();t&&j(t,k(this.el))&&this.writeNavStateRoot(t,l)}onRoutesChanged(){return this.writeNavStateRoot(this.getSegments(),l)}historyDirection(){var t;const e=window;null===e.history.state&&(this.state++,e.history.replaceState(this.state,e.document.title,null===(t=e.document.location)||void 0===t?void 0:t.href));const n=e.history.state,r=this.lastState;return this.lastState=n,n>r||n>=r&&r>0?h:nn=r),void 0!==e&&(yield e),n})()}runGuards(t=this.getSegments(),e){var n=this;return(0,f.Z)(function*(){if(void 0===e&&(e=g(n.previousPath).segments),!t||!e)return!0;const r=w(n.el),o=O(e,r),s=o&&o[o.length-1].beforeLeave,i=!s||(yield s());if(!1===i||"object"==typeof i)return i;const a=O(t,r),u=a&&a[a.length-1].beforeEnter;return!u||u()})()}writeNavState(t,e,n,r,o,s=0,i){var a=this;return(0,f.Z)(function*(){if(a.busy)return console.warn("[ion-router] router is busy, transition was cancelled"),!1;a.busy=!0;const u=a.routeChangeEvent(r,o);u&&a.ionRouteWillChange.emit(u);const c=yield T(t,e,n,s,!1,i);return a.busy=!1,u&&a.ionRouteDidChange.emit(u),c})()}setSegments(t,e,n){this.state++,((t,e,n,r,o,s,i)=>{const a=((t,e,n)=>{let r=_(t);return e&&(r="#"+r),void 0!==n&&(r+="?"+n),r})([...g(e).segments,...r],n,i);o===h?t.pushState(s,"",a):t.replaceState(s,"",a)})(window.history,this.root,this.useHash,t,e,this.state,n)}getSegments(){return((t,e,n)=>{const r=g(this.root).segments,o=n?t.hash.slice(1):t.pathname;return((t,e)=>{if(t.length>e.length)return null;if(t.length<=1&&""===t[0])return e;for(let n=0;n{(0,C.o)(this.href,e,this.routerDirection,this.routerAnimation)},this.color=void 0,this.href=void 0,this.rel=void 0,this.routerDirection="forward",this.routerAnimation=void 0,this.target=void 0}render(){const t=(0,P.b)(this),e={href:this.href,rel:this.rel,target:this.target};return(0,d.h)(d.H,{onClick:this.onClick,class:(0,C.c)(this.color,{[t]:!0,"ion-activatable":!0})},(0,d.h)("a",Object.assign({},e),(0,d.h)("slot",null)))}};x.style=":host{--background:transparent;--color:var(--ion-color-primary, #3880ff);background:var(--background);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}a{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit}"},4459:(A,y,p)=>{p.d(y,{c:()=>R,g:()=>P,h:()=>d,o:()=>L});var f=p(5861);const d=(l,h)=>null!==h.closest(l),R=(l,h)=>"string"==typeof l&&l.length>0?Object.assign({"ion-color":!0,[`ion-color-${l}`]:!0},h):h,P=l=>{const h={};return(l=>void 0!==l?(Array.isArray(l)?l:l.split(" ")).filter(m=>null!=m).map(m=>m.trim()).filter(m=>""!==m):[])(l).forEach(m=>h[m]=!0),h},D=/^[a-z][a-z0-9+\-.]*:/,L=function(){var l=(0,f.Z)(function*(h,m,_,E){if(null!=h&&"#"!==h[0]&&!D.test(h)){const b=document.querySelector("ion-router");if(b)return m?.preventDefault(),b.push(h,_,E)}return!1});return function(m,_,E,b){return l.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/4882.0746da0b521efd7a.js b/4882.0746da0b521efd7a.js new file mode 100644 index 00000000..fc7b1204 --- /dev/null +++ b/4882.0746da0b521efd7a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[4882],{4882:(q,O,y)=>{y.r(O),y.d(O,{startInputShims:()=>X});var g=y(5861),l=y(1848),T=y(7946),m=y(512),R=y(3920);y(1836);const M=new WeakMap,P=(e,t,s,r=0,o=!1)=>{M.has(e)!==s&&(s?H(e,t,r,o):G(e,t))},H=(e,t,s,r=!1)=>{const o=t.parentNode,n=t.cloneNode(!1);n.classList.add("cloned-input"),n.tabIndex=-1,r&&(n.disabled=!0),o.appendChild(n),M.set(e,n);const a="rtl"===e.ownerDocument.dir?9999:-9999;e.style.pointerEvents="none",t.style.transform=`translate3d(${a}px,${s}px,0) scale(0)`},G=(e,t)=>{const s=M.get(e);s&&(M.delete(e),s.remove()),e.style.pointerEvents="",t.style.transform=""},C="input, textarea, [no-blur], [contenteditable]",U="$ionPaddingTimer",B=(e,t,s)=>{const r=e[U];r&&clearTimeout(r),t>0?e.style.setProperty("--keyboard-offset",`${t}px`):e[U]=setTimeout(()=>{e.style.setProperty("--keyboard-offset","0px"),s&&s()},120)},W=(e,t,s)=>{e.addEventListener("focusout",()=>{t&&B(t,0,s)},{once:!0})};let b=0;const p="data-ionic-skip-scroll-assist",Q=(e,t,s,r,o,n,i,a=!1)=>{const _=n&&(void 0===i||i.mode===R.a.None);let L=!1;const u=void 0!==l.w?l.w.innerHeight:0,f=S=>{!1!==L?F(e,t,s,r,S.detail.keyboardHeight,_,a,u,!1):L=!0},c=()=>{L=!1,null==l.w||l.w.removeEventListener("ionKeyboardDidShow",f),e.removeEventListener("focusout",c,!0)},h=function(){var S=(0,g.Z)(function*(){t.hasAttribute(p)?t.removeAttribute(p):(F(e,t,s,r,o,_,a,u),null==l.w||l.w.addEventListener("ionKeyboardDidShow",f),e.addEventListener("focusout",c,!0))});return function(){return S.apply(this,arguments)}}();return e.addEventListener("focusin",h,!0),()=>{e.removeEventListener("focusin",h,!0),null==l.w||l.w.removeEventListener("ionKeyboardDidShow",f),e.removeEventListener("focusout",c,!0)}},x=e=>{document.activeElement!==e&&(e.setAttribute(p,"true"),e.focus())},F=function(){var e=(0,g.Z)(function*(t,s,r,o,n,i,a=!1,_=0,L=!0){if(!r&&!o)return;const u=((e,t,s,r)=>{var o;return((e,t,s,r)=>{const o=e.top,n=e.bottom,i=t.top,_=i+15,u=Math.min(t.bottom,r-s)-50-n,f=_-o,c=Math.round(u<0?-u:f>0?-f:0),h=Math.min(c,o-i),w=Math.abs(h)/.3;return{scrollAmount:h,scrollDuration:Math.min(400,Math.max(150,w)),scrollPadding:s,inputSafeY:4-(o-_)}})((null!==(o=e.closest("ion-item,[ion-item]"))&&void 0!==o?o:e).getBoundingClientRect(),t.getBoundingClientRect(),s,r)})(t,r||o,n,_);if(r&&Math.abs(u.scrollAmount)<4)return x(s),void(i&&null!==r&&(B(r,b),W(s,r,()=>b=0)));if(P(t,s,!0,u.inputSafeY,a),x(s),(0,m.r)(()=>t.click()),i&&r&&(b=u.scrollPadding,B(r,b)),typeof window<"u"){let f;const c=function(){var S=(0,g.Z)(function*(){void 0!==f&&clearTimeout(f),window.removeEventListener("ionKeyboardDidShow",h),window.removeEventListener("ionKeyboardDidShow",c),r&&(yield(0,T.c)(r,0,u.scrollAmount,u.scrollDuration)),P(t,s,!1,u.inputSafeY),x(s),i&&W(s,r,()=>b=0)});return function(){return S.apply(this,arguments)}}(),h=()=>{window.removeEventListener("ionKeyboardDidShow",h),window.addEventListener("ionKeyboardDidShow",c)};if(r){const S=yield(0,T.g)(r);if(L&&u.scrollAmount>S.scrollHeight-S.clientHeight-S.scrollTop)return"password"===s.type?(u.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",h)):window.addEventListener("ionKeyboardDidShow",c),void(f=setTimeout(c,1e3))}c()}});return function(s,r,o,n,i,a){return e.apply(this,arguments)}}(),X=function(){var e=(0,g.Z)(function*(t,s){if(void 0===l.d)return;const r="ios"===s,o="android"===s,n=t.getNumber("keyboardHeight",290),i=t.getBoolean("scrollAssist",!0),a=t.getBoolean("hideCaretOnScroll",r),_=t.getBoolean("inputBlurring",r),L=t.getBoolean("scrollPadding",!0),u=Array.from(l.d.querySelectorAll("ion-input, ion-textarea")),f=new WeakMap,c=new WeakMap,h=yield R.K.getResizeMode(),S=function(){var v=(0,g.Z)(function*(d){yield new Promise(I=>(0,m.c)(d,I));const K=d.shadowRoot||d,D=K.querySelector("input")||K.querySelector("textarea"),A=(0,T.f)(d),j=A?null:d.closest("ion-footer");if(D){if(A&&a&&!f.has(d)){const I=((e,t,s)=>{if(!s||!t)return()=>{};const r=a=>{(e=>e===e.getRootNode().activeElement)(t)&&P(e,t,a)},o=()=>P(e,t,!1),n=()=>r(!0),i=()=>r(!1);return(0,m.a)(s,"ionScrollStart",n),(0,m.a)(s,"ionScrollEnd",i),t.addEventListener("blur",o),()=>{(0,m.b)(s,"ionScrollStart",n),(0,m.b)(s,"ionScrollEnd",i),t.removeEventListener("blur",o)}})(d,D,A);f.set(d,I)}if("date"!==D.type&&"datetime-local"!==D.type&&(A||j)&&i&&!c.has(d)){const I=Q(d,D,A,j,n,L,h,o);c.set(d,I)}}});return function(K){return v.apply(this,arguments)}}();_&&(()=>{let e=!0,t=!1;const s=document;(0,m.a)(s,"ionScrollStart",()=>{t=!0}),s.addEventListener("focusin",()=>{e=!0},!0),s.addEventListener("touchend",i=>{if(t)return void(t=!1);const a=s.activeElement;if(!a||a.matches(C))return;const _=i.target;_!==a&&(_.matches(C)||_.closest(C)||(e=!1,setTimeout(()=>{e||a.blur()},50)))},!1)})();for(const v of u)S(v);l.d.addEventListener("ionInputDidLoad",v=>{S(v.detail)}),l.d.addEventListener("ionInputDidUnload",v=>{(v=>{if(a){const d=f.get(v);d&&d(),f.delete(v)}if(i){const d=c.get(v);d&&d(),c.delete(v)}})(v.detail)})});return function(s,r){return e.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/505.fd27da52b7a1275a.js b/505.243e4adcc3646d7d.js similarity index 98% rename from 505.fd27da52b7a1275a.js rename to 505.243e4adcc3646d7d.js index d4cd1a08..4b6322f1 100644 --- a/505.fd27da52b7a1275a.js +++ b/505.243e4adcc3646d7d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[505],{505:(k,p,i)=>{i.r(p),i.d(p,{ion_back_button:()=>t});var g=i(5861),e=i(5349),h=i(839),c=i(3567),u=i(5307),r=i(3882);const t=class{constructor(n){var a=this;(0,e.r)(this,n),this.inheritedAttributes={},this.onClick=function(){var d=(0,g.Z)(function*(s){const l=a.el.closest("ion-nav");return s.preventDefault(),l&&(yield l.canGoBack())?l.pop({animationBuilder:a.routerAnimation,skipIfBusy:!0}):(0,c.o)(a.defaultHref,s,"back",a.routerAnimation)});return function(s){return d.apply(this,arguments)}}(),this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=(0,h.i)(this.el),void 0===this.defaultHref&&(this.defaultHref=r.c.get("backButtonDefaultHref"))}get backButtonIcon(){return this.icon??("ios"===(0,r.b)(this)?r.c.get("backButtonIcon",u.c):r.c.get("backButtonIcon",u.a))}get backButtonText(){const n="ios"===(0,r.b)(this)?"Back":null;return null!=this.text?this.text:r.c.get("backButtonText",n)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:n,defaultHref:a,disabled:d,type:s,hasIconOnly:l,backButtonIcon:v,backButtonText:m,icon:x,inheritedAttributes:y}=this,w=void 0!==a,f=(0,r.b)(this),_=y["aria-label"]||m||"back";return(0,e.h)(e.H,{onClick:this.onClick,class:(0,c.c)(n,{[f]:!0,button:!0,"back-button-disabled":d,"back-button-has-icon-only":l,"in-toolbar":(0,c.h)("ion-toolbar",this.el),"in-toolbar-color":(0,c.h)("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":w})},(0,e.h)("button",{type:s,disabled:d,class:"button-native",part:"native","aria-label":_},(0,e.h)("span",{class:"button-inner"},v&&(0,e.h)("ion-icon",{part:"icon",icon:v,"aria-hidden":"true",lazy:!1,"flip-rtl":void 0===x}),m&&(0,e.h)("span",{part:"text","aria-hidden":"true",class:"button-text"},m)),"md"===f&&(0,e.h)("ion-ripple-effect",{type:this.rippleType})))}get el(){return(0,e.f)(this)}};t.style={ios:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}'}},3567:(k,p,i)=>{i.d(p,{c:()=>h,g:()=>u,h:()=>e,o:()=>b});var g=i(5861);const e=(o,t)=>null!==t.closest(o),h=(o,t)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},t):t,u=o=>{const t={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(o).forEach(n=>t[n]=!0),t},r=/^[a-z][a-z0-9+\-.]*:/,b=function(){var o=(0,g.Z)(function*(t,n,a,d){if(null!=t&&"#"!==t[0]&&!r.test(t)){const s=document.querySelector("ion-router");if(s)return n?.preventDefault(),s.push(t,a,d)}return!1});return function(n,a,d,s){return o.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[505],{505:(k,p,i)=>{i.r(p),i.d(p,{ion_back_button:()=>t});var g=i(5861),e=i(9942),h=i(512),c=i(4459),u=i(1076),r=i(5551);const t=class{constructor(n){var a=this;(0,e.r)(this,n),this.inheritedAttributes={},this.onClick=function(){var d=(0,g.Z)(function*(s){const l=a.el.closest("ion-nav");return s.preventDefault(),l&&(yield l.canGoBack())?l.pop({animationBuilder:a.routerAnimation,skipIfBusy:!0}):(0,c.o)(a.defaultHref,s,"back",a.routerAnimation)});return function(s){return d.apply(this,arguments)}}(),this.color=void 0,this.defaultHref=void 0,this.disabled=!1,this.icon=void 0,this.text=void 0,this.type="button",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=(0,h.i)(this.el),void 0===this.defaultHref&&(this.defaultHref=r.c.get("backButtonDefaultHref"))}get backButtonIcon(){return this.icon??("ios"===(0,r.b)(this)?r.c.get("backButtonIcon",u.c):r.c.get("backButtonIcon",u.a))}get backButtonText(){const n="ios"===(0,r.b)(this)?"Back":null;return null!=this.text?this.text:r.c.get("backButtonText",n)}get hasIconOnly(){return this.backButtonIcon&&!this.backButtonText}get rippleType(){return this.hasIconOnly?"unbounded":"bounded"}render(){const{color:n,defaultHref:a,disabled:d,type:s,hasIconOnly:l,backButtonIcon:v,backButtonText:m,icon:x,inheritedAttributes:y}=this,w=void 0!==a,f=(0,r.b)(this),_=y["aria-label"]||m||"back";return(0,e.h)(e.H,{onClick:this.onClick,class:(0,c.c)(n,{[f]:!0,button:!0,"back-button-disabled":d,"back-button-has-icon-only":l,"in-toolbar":(0,c.h)("ion-toolbar",this.el),"in-toolbar-color":(0,c.h)("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0,"show-back-button":w})},(0,e.h)("button",{type:s,disabled:d,class:"button-native",part:"native","aria-label":_},(0,e.h)("span",{class:"button-inner"},v&&(0,e.h)("ion-icon",{part:"icon",icon:v,"aria-hidden":"true",lazy:!1,"flip-rtl":void 0===x}),m&&(0,e.h)("span",{part:"text","aria-hidden":"true",class:"button-text"},m)),"md"===f&&(0,e.h)("ion-ripple-effect",{type:this.rippleType})))}get el(){return(0,e.f)(this)}};t.style={ios:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-hover:transparent;--background-hover-opacity:1;--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--icon-margin-end:1px;--icon-margin-start:-4px;--icon-font-size:1.6em;--min-height:32px;font-size:clamp(17px, 1.0625rem, 21.998px)}.button-native{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:visible;z-index:99}:host(.ion-activated) .button-native{opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--color-hover:currentColor;--icon-margin-top:0;--icon-margin-bottom:0;--icon-padding-top:0;--icon-padding-end:0;--icon-padding-bottom:0;--icon-padding-start:0;--margin-top:0;--margin-end:0;--margin-bottom:0;--margin-start:0;--min-width:auto;--min-height:auto;--padding-top:0;--padding-end:0;--padding-bottom:0;--padding-start:0;--opacity:1;--ripple-color:currentColor;--transition:background-color, opacity 100ms linear;display:none;min-width:var(--min-width);min-height:var(--min-height);color:var(--color);font-family:var(--ion-font-family, inherit);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-font-kerning:none;font-kerning:none}ion-ripple-effect{color:var(--ripple-color)}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.show-back-button){display:block}:host(.back-button-disabled){cursor:default;opacity:0.5;pointer-events:none}.button-native{border-radius:var(--border-radius);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:var(--margin-start);margin-inline-start:var(--margin-start);-webkit-margin-end:var(--margin-end);margin-inline-end:var(--margin-end);margin-top:var(--margin-top);margin-bottom:var(--margin-bottom);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;display:block;position:relative;width:100%;height:100%;min-height:inherit;-webkit-transition:var(--transition);transition:var(--transition);border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;opacity:var(--opacity);overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;z-index:1}ion-icon{-webkit-padding-start:var(--icon-padding-start);padding-inline-start:var(--icon-padding-start);-webkit-padding-end:var(--icon-padding-end);padding-inline-end:var(--icon-padding-end);padding-top:var(--icon-padding-top);padding-bottom:var(--icon-padding-bottom);-webkit-margin-start:var(--icon-margin-start);margin-inline-start:var(--icon-margin-start);-webkit-margin-end:var(--icon-margin-end);margin-inline-end:var(--icon-margin-end);margin-top:var(--icon-margin-top);margin-bottom:var(--icon-margin-bottom);display:inherit;font-size:var(--icon-font-size);font-weight:var(--icon-font-weight);pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}}:host(.ion-color.ion-focused) .button-native{color:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native{color:var(--ion-color-base)}}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--border-radius:4px;--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:0.04;--color:currentColor;--icon-margin-end:0;--icon-margin-start:0;--icon-font-size:1.5rem;--icon-font-weight:normal;--min-height:32px;--min-width:44px;--padding-start:12px;--padding-end:12px;font-size:0.875rem;font-weight:500;text-transform:uppercase}:host(.back-button-has-icon-only){--border-radius:50%;min-width:48px;min-height:48px;aspect-ratio:1/1}.button-native{-webkit-box-shadow:none;box-shadow:none}.button-text{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0}ion-icon{line-height:0.67;text-align:start}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}:host(.ion-color.ion-focused) .button-native::after{background:var(--ion-color-base)}'}},4459:(k,p,i)=>{i.d(p,{c:()=>h,g:()=>u,h:()=>e,o:()=>b});var g=i(5861);const e=(o,t)=>null!==t.closest(o),h=(o,t)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},t):t,u=o=>{const t={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(o).forEach(n=>t[n]=!0),t},r=/^[a-z][a-z0-9+\-.]*:/,b=function(){var o=(0,g.Z)(function*(t,n,a,d){if(null!=t&&"#"!==t[0]&&!r.test(t)){const s=document.querySelector("ion-router");if(s)return n?.preventDefault(),s.push(t,a,d)}return!1});return function(n,a,d,s){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5248.b9f582f469842254.js b/5248.b9f582f469842254.js new file mode 100644 index 00000000..848709cc --- /dev/null +++ b/5248.b9f582f469842254.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5248],{1111:(x,S,I)=>{I.d(S,{A:()=>q,B:()=>We,C:()=>v,D:()=>Ge,E:()=>E,F:()=>Ue,G:()=>we,H:()=>Le,I:()=>ze,J:()=>O,K:()=>pe,L:()=>Te,M:()=>be,N:()=>fe,O:()=>se,P:()=>Y,Q:()=>G,R:()=>ye,S:()=>R,T:()=>Me,a:()=>Ie,b:()=>w,c:()=>D,d:()=>z,e:()=>H,f:()=>ee,g:()=>De,h:()=>re,i:()=>T,j:()=>ue,k:()=>de,l:()=>ie,m:()=>ce,n:()=>le,o:()=>ne,p:()=>te,q:()=>F,r:()=>P,s:()=>L,t:()=>Ee,u:()=>me,v:()=>he,w:()=>j,x:()=>y,y:()=>Ye,z:()=>Re});var b=I(2400);const D=(e,n)=>e.month===n.month&&e.day===n.day&&e.year===n.year,T=(e,n)=>e.yeare.year>n.year||e.year===n.year&&e.month>n.month||e.year===n.year&&e.month===n.month&&null!==e.day&&e.day>n.day,j=(e,n,t)=>{const o=Array.isArray(e)?e:[e];for(const r of o)if(void 0!==n&&T(r,n)||void 0!==t&&w(r,t)){(0,b.p)(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(n)}\nMax: ${JSON.stringify(t)}\nValue: ${JSON.stringify(e)}`);break}},O=(e,n)=>{if(void 0!==n)return n;const t=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=t.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const u=t.formatToParts(new Date("5/18/2021 00:00")).find(i=>"hour"===i.type);if(!u)throw new Error("Hour value not found from DateTimeFormat");switch(u.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${n}"`)}},p=e=>"h23"===e||"h24"===e,y=(e,n)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(n)?29:28:31,v=(e,n={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,n).formatToParts(new Date)[0].type,E=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,k=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,_=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,P=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map(o=>parseInt(o,10)).filter(isFinite):[n],t},ee=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function F(e){if(Array.isArray(e)){const t=[];for(const o of e){const r=F(o);if(!r)return;t.push(r)}return t}let n=null;if(null!=e&&""!==e&&(n=_.exec(e),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=k.exec(e)),null!==n){for(let t=1;t<8;t++)n[t]=void 0!==n[t]?parseInt(n[t],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}(0,b.p)(`Unable to parse date string: ${e}. Please provide a valid ISO 8601 datetime string.`)}const Y=(e,n,t)=>n&&T(e,n)?n:t&&w(e,t)?t:e,G=e=>e>=12?"pm":"am",ne=(e,n)=>{const t=F(e);if(void 0===t)return;const{month:o,day:r,year:d,hour:u,minute:i}=t,l=d??n.year,s=o??12;return{month:s,day:r??y(s,l),year:l,hour:u??23,minute:i??59}},te=(e,n)=>{const t=F(e);if(void 0===t)return;const{month:o,day:r,year:d,hour:u,minute:i}=t;return{month:o??1,day:r??1,year:d??n.year,hour:u??0,minute:i??0}},M=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2),oe=e=>("000"+(void 0!==e?Math.abs(e):"0")).slice(-4);function L(e){if(Array.isArray(e))return e.map(t=>L(t));let n="";return void 0!==e.year?(n=oe(e.year),void 0!==e.month&&(n+="-"+M(e.month),void 0!==e.day&&(n+="-"+M(e.day),void 0!==e.hour&&(n+=`T${M(e.hour)}:${M(e.minute)}:00`)))):void 0!==e.hour&&(n=M(e.hour)+":"+M(e.minute)),n}const B=(e,n)=>void 0===n?e:"am"===n?12===e?0:e:12===e?12:e+12,ue=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return N(e,n)},re=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return Z(e,6-n)},ie=e=>Z(e,1),de=e=>N(e,1),ce=e=>N(e,7),le=e=>Z(e,7),N=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const d={month:t,day:o,year:r};if(d.day=o-n,d.day<1&&(d.month-=1),d.month<1&&(d.month=12,d.year-=1),d.day<1){const u=y(d.month,d.year);d.day=u+d.day}return d},Z=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const d={month:t,day:o,year:r},u=y(t,r);return d.day=o+n,d.day>u&&(d.day-=u,d.month+=1),d.month>12&&(d.month=1,d.year+=1),d},z=e=>{const n=1===e.month?12:e.month-1,t=1===e.month?e.year-1:e.year,o=y(n,t);return{month:n,year:t,day:o{const n=12===e.month?1:e.month+1,t=12===e.month?e.year+1:e.year,o=y(n,t);return{month:n,year:t,day:o{const t=e.month,o=e.year+n,r=y(t,o);return{month:t,year:o,day:rJ(e,-1),fe=e=>J(e,1),ae=(e,n,t)=>n?e:B(e,t),ye=(e,n)=>{const{ampm:t,hour:o}=e;let r=o;return"am"===t&&"pm"===n?r=B(r,"pm"):"pm"===t&&"am"===n&&(r=Math.abs(r-12)),r},he=(e,n,t)=>{const{month:o,day:r,year:d}=e,u=Y(Object.assign({},e),n,t),i=y(o,d);return null!==r&&it.hour?(u.hour=t.hour,u.minute=t.minute):u.hour===t.hour&&void 0!==u.minute&&void 0!==t.minute&&u.minute>t.minute&&(u.minute=t.minute)),u},me=({refParts:e,monthValues:n,dayValues:t,yearValues:o,hourValues:r,minuteValues:d,minParts:u,maxParts:i})=>{const{hour:l,minute:s,day:f,month:g,year:h}=e,c=Object.assign(Object.assign({},e),{dayOfWeek:void 0});if(void 0!==o){const a=o.filter(m=>!(void 0!==u&&mi.year));c.year=A(h,a)}if(void 0!==n){const a=n.filter(m=>!(void 0!==u&&c.year===u.year&&mi.month));c.month=A(g,a)}if(null!==f&&void 0!==t){const a=t.filter(m=>!(void 0!==u&&T(Object.assign(Object.assign({},c),{day:m}),u)||void 0!==i&&w(Object.assign(Object.assign({},c),{day:m}),i)));c.day=A(f,a)}if(void 0!==l&&void 0!==r){const a=r.filter(m=>!(void 0!==u?.hour&&D(c,u)&&mi.hour));c.hour=A(l,a),c.ampm=G(c.hour)}if(void 0!==s&&void 0!==d){const a=d.filter(m=>!(void 0!==u?.minute&&D(c,u)&&c.hour===u.hour&&mi.minute));c.minute=A(s,a)}return c},A=(e,n)=>{let t=n[0],o=Math.abs(t-e);for(let r=1;r{const o={hour:n.hour,minute:n.minute};return void 0===o.hour||void 0===o.minute?"Invalid Time":new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:t}).format(new Date(L(Object.assign({year:2023,day:1,month:1},o))+"Z"))},K=e=>{const n=e.toString();return n.length>1?n:`0${n}`},ve=(e,n)=>{if(0===e)switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${n}"`)}return p(n)?K(e):e.toString()},De=(e,n,t)=>{if(null===t.day)return null;const o=$(t),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return n?`Today, ${r}`:r},Te=(e,n)=>{const t=$(n);return new Intl.DateTimeFormat(e,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(t)},we=(e,n)=>{const t=$(n);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(t)},Me=(e,n)=>R(e,n,{month:"short",day:"numeric",year:"numeric"}),Ie=(e,n)=>_e(e,n,{day:"numeric"}).find(t=>"day"===t.type).value,Oe=(e,n)=>R(e,n,{year:"numeric"}),$=e=>{var n,t,o;return new Date(`${null!==(n=e.month)&&void 0!==n?n:1}/${null!==(t=e.day)&&void 0!==t?t:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},R=(e,n,t)=>{const o=$(n);return X(e,t).format(o)},_e=(e,n,t)=>{const o=$(n);return X(e,t).formatToParts(o)},X=(e,n)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},n),{timeZone:"UTC"})),Ae=e=>{if("RelativeTimeFormat"in Intl){const n=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}return"Today"},W=e=>{const n=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-n),e},$e=W(new Date("2022T01:00")),Ce=W(new Date("2022T13:00")),Q=(e,n)=>{const t="am"===n?$e:Ce,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(t).find(r=>"dayPeriod"===r.type);return o?o.value:(e=>void 0===e?"":e.toUpperCase())(n)},be=e=>Array.isArray(e)?e.join(","):e,Ee=()=>W(new Date).toISOString(),ke=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],Fe=[0,1,2,3,4,5,6,7,8,9,10,11],He=[0,1,2,3,4,5,6,7,8,9,10,11],Se=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],je=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],Ue=(e,n,t=0)=>{const r=new Intl.DateTimeFormat(e,{weekday:"ios"===n?"short":"narrow"}),d=new Date("11/01/2020"),u=[];for(let i=t;i{const o=y(e,n),r=new Date(`${e}/1/${n}`).getDay(),d=r>=t?r-(t+1):6-(t-r);let u=[];for(let i=1;i<=o;i++)u.push({day:i,dayOfWeek:(d+i)%7});for(let i=0;i<=d;i++)u=[{day:null,dayOfWeek:null},...u];return u},ze=(e,n)=>{const t={month:e.month,year:e.year,day:e.day};if(void 0!==n&&(e.month!==n.month||e.year!==n.year)){const o={month:n.month,year:n.year,day:n.day};return T(o,t)?[o,t,H(e)]:[z(e),t,o]}return[z(e),t,H(e)]},Re=(e,n,t,o,r,d={month:"long"})=>{const{year:u}=n,i=[];if(void 0!==r){let l=r;void 0!==o?.month&&(l=l.filter(s=>s<=o.month)),void 0!==t?.month&&(l=l.filter(s=>s>=t.month)),l.forEach(s=>{const f=new Date(`${s}/1/${u} GMT+0000`),g=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},d),{timeZone:"UTC"})).format(f);i.push({text:g,value:s})})}else{const l=o&&o.year===u?o.month:12;for(let f=t&&t.year===u?t.month:1;f<=l;f++){const g=new Date(`${f}/1/${u} GMT+0000`),h=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},d),{timeZone:"UTC"})).format(g);i.push({text:h,value:f})}}return i},q=(e,n,t,o,r,d={day:"numeric"})=>{const{month:u,year:i}=n,l=[],s=y(u,i),f=null!=o?.day&&o.year===i&&o.month===u?o.day:s,g=null!=t?.day&&t.year===i&&t.month===u?t.day:1;if(void 0!==r){let h=r;h=h.filter(c=>c>=g&&c<=f),h.forEach(c=>{const a=new Date(`${u}/${c}/${i} GMT+0000`),m=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},d),{timeZone:"UTC"})).format(a);l.push({text:m,value:c})})}else for(let h=g;h<=f;h++){const c=new Date(`${u}/${h}/${i} GMT+0000`),a=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},d),{timeZone:"UTC"})).format(c);l.push({text:a,value:h})}return l},We=(e,n,t,o,r)=>{var d,u;let i=[];if(void 0!==r)i=r,void 0!==o?.year&&(i=i.filter(l=>l<=o.year)),void 0!==t?.year&&(i=i.filter(l=>l>=t.year));else{const{year:l}=n,s=null!==(d=o?.year)&&void 0!==d?d:l;for(let g=null!==(u=t?.year)&&void 0!==u?u:l-100;g<=s;g++)i.push(g)}return i.map(l=>({text:Oe(e,{year:l,month:n.month,day:n.day}),value:l}))},V=(e,n)=>e.month===n.month&&e.year===n.year?[e]:[e,...V(H(e),n)],Ye=(e,n,t,o,r,d)=>{let u=[],i=[],l=V(t,o);return d&&(l=l.filter(({month:s})=>d.includes(s))),l.forEach(s=>{const f={month:s.month,day:null,year:s.year},g=q(e,f,t,o,r,{month:"short",day:"numeric",weekday:"short"}),h=[],c=[];g.forEach(a=>{const m=D(Object.assign(Object.assign({},f),{day:a.value}),n);c.push({text:m?Ae(e):a.text,value:`${f.year}-${f.month}-${a.value}`}),h.push({month:f.month,year:f.year,day:a.value})}),i=[...i,...h],u=[...u,...c]}),{parts:i,items:u}},Ge=(e,n,t,o,r,d,u)=>{const i=O(e,t),l=p(i),{hours:s,minutes:f,am:g,pm:h}=((e,n,t="h12",o,r,d,u)=>{const i=O(e,t),l=p(i);let s=(e=>{switch(e){case"h11":return Fe;case"h12":return He;case"h23":return Se;case"h24":return je;default:throw new Error(`Invalid hour cycle "${e}"`)}})(i),f=ke,g=!0,h=!0;if(d&&(s=s.filter(c=>d.includes(c))),u&&(f=f.filter(c=>u.includes(c))),o)if(D(n,o)){if(void 0!==o.hour&&(s=s.filter(c=>(l?c:"pm"===n.ampm?(c+12)%24:c)>=o.hour),g=o.hour<13),void 0!==o.minute){let c=!1;void 0!==o.hour&&void 0!==n.hour&&n.hour>o.hour&&(c=!0),f=f.filter(a=>!!c||a>=o.minute)}}else T(n,o)&&(s=[],f=[],g=h=!1);return r&&(D(n,r)?(void 0!==r.hour&&(s=s.filter(c=>(l?c:"pm"===n.ampm?(c+12)%24:c)<=r.hour),h=r.hour>=12),void 0!==r.minute&&n.hour===r.hour&&(f=f.filter(c=>c<=r.minute))):w(n,r)&&(s=[],f=[],g=h=!1)),{hours:s,minutes:f,am:g,pm:h}})(e,n,i,o,r,d,u),c=s.map(C=>({text:ve(C,i),value:ae(C,l,n.ampm)})),a=f.map(C=>({text:K(C),value:C})),m=[];return g&&!l&&m.push({text:Q(e,"am"),value:"am"}),h&&!l&&m.push({text:Q(e,"pm"),value:"pm"}),{minutesData:a,hoursData:c,dayPeriodData:m}}},4459:(x,S,I)=>{I.d(S,{c:()=>T,g:()=>j,h:()=>D,o:()=>O});var b=I(5861);const D=(p,y)=>null!==y.closest(p),T=(p,y)=>"string"==typeof p&&p.length>0?Object.assign({"ion-color":!0,[`ion-color-${p}`]:!0},y):y,j=p=>{const y={};return(p=>void 0!==p?(Array.isArray(p)?p:p.split(" ")).filter(v=>null!=v).map(v=>v.trim()).filter(v=>""!==v):[])(p).forEach(v=>y[v]=!0),y},U=/^[a-z][a-z0-9+\-.]*:/,O=function(){var p=(0,b.Z)(function*(y,v,E,k){if(null!=y&&"#"!==y[0]&&!U.test(y)){const _=document.querySelector("ion-router");if(_)return v?.preventDefault(),_.push(y,E,k)}return!1});return function(v,E,k,_){return p.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5454.c21ce327af63c8e5.js b/5454.0eccc433a18a0595.js similarity index 99% rename from 5454.c21ce327af63c8e5.js rename to 5454.0eccc433a18a0595.js index a59cf0ee..755f2508 100644 --- a/5454.c21ce327af63c8e5.js +++ b/5454.0eccc433a18a0595.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5454],{5454:(d,c,a)=>{a.r(c),a.d(c,{ion_progress_bar:()=>f});var r=a(5349),m=a(839),l=a(3567),b=a(3882);const f=class{constructor(i){(0,r.r)(this,i),this.type="determinate",this.reversed=!1,this.value=0,this.buffer=1,this.color=void 0}render(){const{color:i,type:s,reversed:o,value:e,buffer:k}=this,p=b.c.getBoolean("_testing"),w=(0,b.b)(this);return(0,r.h)(r.H,{role:"progressbar","aria-valuenow":"determinate"===s?e:null,"aria-valuemin":"0","aria-valuemax":"1",class:(0,l.c)(i,{[w]:!0,[`progress-bar-${s}`]:!0,"progress-paused":p,"progress-bar-reversed":"rtl"===document.dir?!o:o})},"indeterminate"===s?t():n(e,k))}},t=()=>(0,r.h)("div",{part:"track",class:"progress-buffer-bar"},(0,r.h)("div",{class:"indeterminate-bar-primary"},(0,r.h)("span",{part:"progress",class:"progress-indeterminate"})),(0,r.h)("div",{class:"indeterminate-bar-secondary"},(0,r.h)("span",{part:"progress",class:"progress-indeterminate"}))),n=(i,s)=>{const o=(0,m.l)(0,i,1),e=(0,m.l)(0,s,1);return[(0,r.h)("div",{part:"progress",class:"progress",style:{transform:`scaleX(${o})`}}),(0,r.h)("div",{class:{"buffer-circles-container":!0,"ion-hide":1===e},style:{transform:`translateX(${100*e}%)`}},(0,r.h)("div",{class:"buffer-circles-container",style:{transform:`translateX(-${100*e}%)`}},(0,r.h)("div",{part:"stream",class:"buffer-circles"}))),(0,r.h)("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${e})`}})]};f.style={ios:":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state:paused;animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@-webkit-keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@-webkit-keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@-webkit-keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}@keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}:host{height:3px}",md:":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state:paused;animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@-webkit-keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@-webkit-keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@-webkit-keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}@keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}:host{height:4px}"}},3567:(d,c,a)=>{a.d(c,{c:()=>l,g:()=>u,h:()=>m,o:()=>f});var r=a(5861);const m=(t,n)=>null!==n.closest(t),l=(t,n)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},n):n,u=t=>{const n={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(i=>null!=i).map(i=>i.trim()).filter(i=>""!==i):[])(t).forEach(i=>n[i]=!0),n},g=/^[a-z][a-z0-9+\-.]*:/,f=function(){var t=(0,r.Z)(function*(n,i,s,o){if(null!=n&&"#"!==n[0]&&!g.test(n)){const e=document.querySelector("ion-router");if(e)return i?.preventDefault(),e.push(n,s,o)}return!1});return function(i,s,o,e){return t.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5454],{5454:(d,c,a)=>{a.r(c),a.d(c,{ion_progress_bar:()=>f});var r=a(9942),m=a(512),l=a(4459),b=a(5551);const f=class{constructor(i){(0,r.r)(this,i),this.type="determinate",this.reversed=!1,this.value=0,this.buffer=1,this.color=void 0}render(){const{color:i,type:s,reversed:o,value:e,buffer:k}=this,p=b.c.getBoolean("_testing"),w=(0,b.b)(this);return(0,r.h)(r.H,{role:"progressbar","aria-valuenow":"determinate"===s?e:null,"aria-valuemin":"0","aria-valuemax":"1",class:(0,l.c)(i,{[w]:!0,[`progress-bar-${s}`]:!0,"progress-paused":p,"progress-bar-reversed":"rtl"===document.dir?!o:o})},"indeterminate"===s?t():n(e,k))}},t=()=>(0,r.h)("div",{part:"track",class:"progress-buffer-bar"},(0,r.h)("div",{class:"indeterminate-bar-primary"},(0,r.h)("span",{part:"progress",class:"progress-indeterminate"})),(0,r.h)("div",{class:"indeterminate-bar-secondary"},(0,r.h)("span",{part:"progress",class:"progress-indeterminate"}))),n=(i,s)=>{const o=(0,m.l)(0,i,1),e=(0,m.l)(0,s,1);return[(0,r.h)("div",{part:"progress",class:"progress",style:{transform:`scaleX(${o})`}}),(0,r.h)("div",{class:{"buffer-circles-container":!0,"ion-hide":1===e},style:{transform:`translateX(${100*e}%)`}},(0,r.h)("div",{class:"buffer-circles-container",style:{transform:`translateX(-${100*e}%)`}},(0,r.h)("div",{part:"stream",class:"buffer-circles"}))),(0,r.h)("div",{part:"track",class:"progress-buffer-bar",style:{transform:`scaleX(${e})`}})]};f.style={ios:":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state:paused;animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@-webkit-keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@-webkit-keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@-webkit-keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}@keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}:host{height:3px}",md:":host{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.3);--progress-background:var(--ion-color-primary, #3880ff);--buffer-background:var(--background);display:block;position:relative;width:100%;contain:strict;direction:ltr;overflow:hidden}.progress,.progress-indeterminate,.indeterminate-bar-primary,.indeterminate-bar-secondary,.progress-buffer-bar{left:0;right:0;top:0;bottom:0;position:absolute;width:100%;height:100%}.buffer-circles-container,.buffer-circles{left:0;right:0;top:0;bottom:0;position:absolute}.buffer-circles{right:-10px;left:-10px;}.progress,.progress-buffer-bar,.buffer-circles-container{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms linear;transition:-webkit-transform 150ms linear;transition:transform 150ms linear;transition:transform 150ms linear, -webkit-transform 150ms linear}.progress,.progress-indeterminate{background:var(--progress-background);z-index:2}.progress-buffer-bar{background:var(--buffer-background);z-index:1}.buffer-circles-container{overflow:hidden}.indeterminate-bar-primary{top:0;right:0;bottom:0;left:-145.166611%;-webkit-animation:primary-indeterminate-translate 2s infinite linear;animation:primary-indeterminate-translate 2s infinite linear}.indeterminate-bar-primary .progress-indeterminate{-webkit-animation:primary-indeterminate-scale 2s infinite linear;animation:primary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.indeterminate-bar-secondary{top:0;right:0;bottom:0;left:-54.888891%;-webkit-animation:secondary-indeterminate-translate 2s infinite linear;animation:secondary-indeterminate-translate 2s infinite linear}.indeterminate-bar-secondary .progress-indeterminate{-webkit-animation:secondary-indeterminate-scale 2s infinite linear;animation:secondary-indeterminate-scale 2s infinite linear;-webkit-animation-play-state:inherit;animation-play-state:inherit}.buffer-circles{background-image:radial-gradient(ellipse at center, var(--buffer-background) 0%, var(--buffer-background) 30%, transparent 30%);background-repeat:repeat-x;background-position:5px center;background-size:10px 10px;z-index:0;-webkit-animation:buffering 450ms infinite linear;animation:buffering 450ms infinite linear}:host(.progress-bar-reversed){-webkit-transform:scaleX(-1);transform:scaleX(-1)}:host(.progress-paused) .indeterminate-bar-secondary,:host(.progress-paused) .indeterminate-bar-primary,:host(.progress-paused) .buffer-circles{-webkit-animation-play-state:paused;animation-play-state:paused}:host(.ion-color) .progress-buffer-bar{background:rgba(var(--ion-color-base-rgb), 0.3)}:host(.ion-color) .buffer-circles{background-image:radial-gradient(ellipse at center, rgba(var(--ion-color-base-rgb), 0.3) 0%, rgba(var(--ion-color-base-rgb), 0.3) 30%, transparent 30%)}:host(.ion-color) .progress,:host(.ion-color) .progress-indeterminate{background:var(--ion-color-base)}@-webkit-keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@keyframes primary-indeterminate-translate{0%{-webkit-transform:translateX(0);transform:translateX(0)}20%{-webkit-animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);-webkit-transform:translateX(0);transform:translateX(0)}59.15%{-webkit-animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);-webkit-transform:translateX(83.67142%);transform:translateX(83.67142%)}100%{-webkit-transform:translateX(200.611057%);transform:translateX(200.611057%)}}@-webkit-keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes primary-indeterminate-scale{0%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}36.65%{-webkit-animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}69.15%{-webkit-animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);-webkit-transform:scaleX(0.661479);transform:scaleX(0.661479)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@keyframes secondary-indeterminate-translate{0%{-webkit-animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);-webkit-transform:translateX(0);transform:translateX(0)}25%{-webkit-animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);-webkit-transform:translateX(37.651913%);transform:translateX(37.651913%)}48.35%{-webkit-animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);-webkit-transform:translateX(84.386165%);transform:translateX(84.386165%)}100%{-webkit-transform:translateX(160.277782%);transform:translateX(160.277782%)}}@-webkit-keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@keyframes secondary-indeterminate-scale{0%{-webkit-animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}19.15%{-webkit-animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);-webkit-transform:scaleX(0.457104);transform:scaleX(0.457104)}44.15%{-webkit-animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);-webkit-transform:scaleX(0.72796);transform:scaleX(0.72796)}100%{-webkit-transform:scaleX(0.08);transform:scaleX(0.08)}}@-webkit-keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}@keyframes buffering{to{-webkit-transform:translateX(-10px);transform:translateX(-10px)}}:host{height:4px}"}},4459:(d,c,a)=>{a.d(c,{c:()=>l,g:()=>u,h:()=>m,o:()=>f});var r=a(5861);const m=(t,n)=>null!==n.closest(t),l=(t,n)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},n):n,u=t=>{const n={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(i=>null!=i).map(i=>i.trim()).filter(i=>""!==i):[])(t).forEach(i=>n[i]=!0),n},g=/^[a-z][a-z0-9+\-.]*:/,f=function(){var t=(0,r.Z)(function*(n,i,s,o){if(null!=n&&"#"!==n[0]&&!g.test(n)){const e=document.querySelector("ion-router");if(e)return i?.preventDefault(),e.push(n,s,o)}return!1});return function(i,s,o,e){return t.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5675.4f38009025b018d4.js b/5675.4f38009025b018d4.js deleted file mode 100644 index 7ffc0440..00000000 --- a/5675.4f38009025b018d4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5675],{5675:(D,T,f)=>{f.r(T),f.d(T,{ion_nav:()=>P,ion_nav_link:()=>R});var m=f(5861),g=f(5349),E=f(5149),d=f(839),v=f(448),b=f(3882),B=f(6559);class _{constructor(t,n){this.component=t,this.params=n,this.state=1}init(t){var n=this;return(0,m.Z)(function*(){if(n.state=2,!n.element){const i=n.component;n.element=yield(0,B.a)(n.delegate,t,i,["ion-page","ion-page-invisible"],n.params)}})()}_destroy(){(0,d.o)(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const I=(e,t,n)=>!(!e||e.component!==t)&&(0,d.s)(e.params,n),A=(e,t)=>e?e instanceof _?e:new _(e,t):null,P=class{constructor(e){(0,g.r)(this,e),this.ionNavWillLoad=(0,g.d)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,g.d)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,g.d)(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const e=(0,b.b)(this);this.swipeGesture=b.c.getBoolean("swipeBackEnabled","ios"===e)}this.ionNavWillLoad.emit()}componentDidLoad(){var e=this;return(0,m.Z)(function*(){e.didLoad=!0,e.rootChanged(),e.gesture=(yield f.e(8592).then(f.bind(f,8663))).createSwipeBackGesture(e.el,e.canStart.bind(e),e.onStart.bind(e),e.onMove.bind(e),e.onEnd.bind(e)),e.swipeGestureChanged()})()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const e of this.views)(0,v.l)(e.element,v.d),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,t,n,i){return this.insert(-1,e,t,n,i)}insert(e,t,n,i,s){return this.insertPages(e,[{component:t,componentProps:n}],i,s)}insertPages(e,t,n,i){return this.queueTrns({insertStart:e,insertViews:t,opts:n},i)}pop(e,t){return this.removeIndex(-1,1,e,t)}popTo(e,t,n){const i={removeStart:-1,removeCount:-1,opts:t};return"object"==typeof e&&e.component?(i.removeView=e,i.removeStart=1):"number"==typeof e&&(i.removeStart=e+1),this.queueTrns(i,n)}popToRoot(e,t){return this.removeIndex(1,-1,e,t)}removeIndex(e,t=1,n,i){return this.queueTrns({removeStart:e,removeCount:t,opts:n},i)}setRoot(e,t,n,i){return this.setPages([{component:e,componentProps:t}],n,i)}setPages(e,t,n){return t??(t={}),!0!==t.animated&&(t.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:t},n)}setRouteId(e,t,n,i){const s=this.getActiveSync();if(I(s,e,t))return Promise.resolve({changed:!1,element:s.element});let r;const a=new Promise(l=>r=l);let o;const c={updateURL:!1,viewIsReady:l=>{let h;const p=new Promise(u=>h=u);return r({changed:!0,element:l,markVisible:(u=(0,m.Z)(function*(){h(),yield o}),function(){return u.apply(this,arguments)})}),p;var u}};if("root"===n)o=this.setRoot(e,t,c);else{const l=this.views.find(h=>I(h,e,t));l?o=this.popTo(l,Object.assign(Object.assign({},c),{direction:"back",animationBuilder:i})):"forward"===n?o=this.push(e,t,Object.assign(Object.assign({},c),{animationBuilder:i})):"back"===n&&(o=this.setRoot(e,t,Object.assign(Object.assign({},c),{direction:"back",animated:!0,animationBuilder:i})))}return a}getRouteId(){var e=this;return(0,m.Z)(function*(){const t=e.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}})()}getActive(){var e=this;return(0,m.Z)(function*(){return e.getActiveSync()})()}getByIndex(e){var t=this;return(0,m.Z)(function*(){return t.views[e]})()}canGoBack(e){var t=this;return(0,m.Z)(function*(){return t.canGoBackSync(e)})()}getPrevious(e){var t=this;return(0,m.Z)(function*(){return t.getPreviousSync(e)})()}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(e=this.getActiveSync()){return!(!e||!this.getPreviousSync(e))}getPreviousSync(e=this.getActiveSync()){if(!e)return;const t=this.views,n=t.indexOf(e);return n>0?t[n-1]:void 0}queueTrns(e,t){var n=this;return(0,m.Z)(function*(){var i,s;if(n.isTransitioning&&null!==(i=e.opts)&&void 0!==i&&i.skipIfBusy)return!1;const r=new Promise((a,o)=>{e.resolve=a,e.reject=o});if(e.done=t,e.opts&&!1!==e.opts.updateURL&&n.useRouter){const a=document.querySelector("ion-router");if(a){const o=yield a.canTransition();if(!1===o)return!1;if("string"==typeof o)return a.push(o,e.opts.direction||"back"),!1}}return 0===(null===(s=e.insertViews)||void 0===s?void 0:s.length)&&(e.insertViews=void 0),n.transInstr.push(e),n.nextTrns(),r})()}success(e,t){if(this.destroyed)this.fireError("nav controller was destroyed",t);else if(t.done&&t.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),t.resolve(e.hasCompleted),!1!==t.opts.updateURL&&this.useRouter){const n=document.querySelector("ion-router");n&&n.navChanged("back"===e.direction?"back":"forward")}}failed(e,t){this.destroyed?this.fireError("nav controller was destroyed",t):(this.transInstr.length=0,this.fireError(e,t))}fireError(e,t){t.done&&t.done(!1,!1,e),t.reject&&!this.destroyed?t.reject(e):t.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return!!e&&(this.runTransition(e),!0)}runTransition(e){var t=this;return(0,m.Z)(function*(){try{t.ionNavWillChange.emit(),t.isTransitioning=!0,t.prepareTI(e);const n=t.getActiveSync(),i=t.getEnteringView(e,n);if(!n&&!i)throw new Error("no views in the stack to be removed");i&&1===i.state&&(yield i.init(t.el)),t.postViewInit(i,n,e);const s=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&i!==n;let r;s&&e.opts&&n&&("back"===e.opts.direction&&(e.opts.animationBuilder=e.opts.animationBuilder||i?.animationBuilder),n.animationBuilder=e.opts.animationBuilder),r=s?yield t.transition(i,n,e):{hasCompleted:!0,requiresTransition:!1},t.success(r,e),t.ionNavDidChange.emit()}catch(n){t.failed(n,e)}t.isTransitioning=!1,t.nextTrns()})()}prepareTI(e){var t,n,i;const s=this.views.length;if(null!==(t=e.opts)&&void 0!==t||(e.opts={}),null!==(n=(i=e.opts).delegate)&&void 0!==n||(i.delegate=this.delegate),void 0!==e.removeView){(0,d.o)(void 0!==e.removeStart,"removeView needs removeStart"),(0,d.o)(void 0!==e.removeCount,"removeView needs removeCount");const o=this.views.indexOf(e.removeView);if(o<0)throw new Error("removeView was not found");e.removeStart+=o}void 0!==e.removeStart&&(e.removeStart<0&&(e.removeStart=s-1),e.removeCount<0&&(e.removeCount=s-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===s),e.insertViews&&((e.insertStart<0||e.insertStart>s)&&(e.insertStart=s),e.enteringRequiresTransition=e.insertStart===s);const r=e.insertViews;if(!r)return;(0,d.o)(r.length>0,"length can not be zero");const a=(e=>e.map(t=>t instanceof _?t:"component"in t?A(t.component,null===t.componentProps?void 0:t.componentProps):A(t,void 0)).filter(t=>null!==t))(r);if(0===a.length)throw new Error("invalid views to insert");for(const o of a){o.delegate=e.opts.delegate;const c=o.nav;if(c&&c!==this)throw new Error("inserted view was already inserted");if(3===o.state)throw new Error("inserted view was already destroyed")}e.insertViews=a}getEnteringView(e,t){const n=e.insertViews;if(void 0!==n)return n[n.length-1];const i=e.removeStart;if(void 0!==i){const s=this.views,r=i+e.removeCount;for(let a=s.length-1;a>=0;a--){const o=s[a];if((a=r)&&o!==t)return o}}}postViewInit(e,t,n){var i,s,r;(0,d.o)(t||e,"Both leavingView and enteringView are null"),(0,d.o)(n.resolve,"resolve must be valid"),(0,d.o)(n.reject,"reject must be valid");const a=n.opts,{insertViews:o,removeStart:c,removeCount:l}=n;let h;if(void 0!==c&&void 0!==l){(0,d.o)(c>=0,"removeStart can not be negative"),(0,d.o)(l>=0,"removeCount can not be negative"),h=[];for(let u=c;u=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(o){let u=n.insertStart;for(const w of o)this.insertViewAt(w,u),u++;n.enteringRequiresTransition&&(null!==(r=a.direction)&&void 0!==r||(a.direction="forward"))}if(h&&h.length>0){for(const u of h)(0,v.l)(u.element,v.b),(0,v.l)(u.element,v.c),(0,v.l)(u.element,v.d);for(const u of h)this.destroyView(u)}}transition(e,t,n){var i=this;return(0,m.Z)(function*(){const s=n.opts,r=s.progressAnimation?p=>{void 0===p||i.gestureOrAnimationInProgress?i.sbAni=p:(i.gestureOrAnimationInProgress=!0,p.onFinish(()=>{i.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),p.progressEnd(0,0,0))}:void 0,a=(0,b.b)(i),o=e.element,c=t&&t.element,l=Object.assign(Object.assign({mode:a,showGoBack:i.canGoBackSync(e),baseEl:i.el,progressCallback:r,animated:i.animated&&b.c.getBoolean("animated",!0),enteringEl:o,leavingEl:c},s),{animationBuilder:s.animationBuilder||i.animation||b.c.get("navAnimation")}),{hasCompleted:h}=yield(0,v.t)(l);return i.transitionFinish(h,e,t,s)})()}transitionFinish(e,t,n,i){const s=e?t:n;return s&&this.unmountInactiveViews(s),{hasCompleted:e,requiresTransition:!0,enteringView:t,leavingView:n,direction:i.direction}}insertViewAt(e,t){const n=this.views,i=n.indexOf(e);i>-1?((0,d.o)(e.nav===this,"view is not part of the nav"),n.splice(i,1),n.splice(t,0,e)):((0,d.o)(!e.nav,"nav is used"),e.nav=this,n.splice(t,0,e))}removeView(e){(0,d.o)(2===e.state||3===e.state,"view state should be loaded or destroyed");const t=this.views,n=t.indexOf(e);(0,d.o)(n>-1,"view must be part of the stack"),n>=0&&t.splice(n,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;const t=this.views,n=t.indexOf(e);for(let i=t.length-1;i>=0;i--){const s=t[i],r=s.element;r&&(i>n?((0,v.l)(r,v.d),this.destroyView(s)):i{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let i=e?-.001:.001;e?i+=(0,E.g)([0,0],[.32,.72],[0,1],[1,1],t)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),i+=(0,E.g)([0,0],[1,0],[.68,.28],[1,1],t)[0]),this.sbAni.progressEnd(e?1:0,i,n)}else this.gestureOrAnimationInProgress=!1}render(){return(0,g.h)("slot",null)}get el(){return(0,g.f)(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};P.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const R=class{constructor(e){(0,g.r)(this,e),this.onClick=()=>((e,t,n,i,s)=>{const r=this.el.closest("ion-nav");if(r)if("forward"===t){if(void 0!==n)return r.push(n,i,{skipIfBusy:!0,animationBuilder:s})}else if("root"===t){if(void 0!==n)return r.setRoot(n,i,{skipIfBusy:!0,animationBuilder:s})}else if("back"===t)return r.pop({skipIfBusy:!0,animationBuilder:s});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return(0,g.h)(g.H,{onClick:this.onClick})}get el(){return(0,g.f)(this)}}}}]); \ No newline at end of file diff --git a/5675.5096099c01862d0b.js b/5675.5096099c01862d0b.js new file mode 100644 index 00000000..10f4c924 --- /dev/null +++ b/5675.5096099c01862d0b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5675],{5675:(D,T,f)=>{f.r(T),f.d(T,{ion_nav:()=>P,ion_nav_link:()=>R});var m=f(5861),g=f(9942),E=f(4510),d=f(512),v=f(4232),b=f(5551),B=f(3254);class _{constructor(t,n){this.component=t,this.params=n,this.state=1}init(t){var n=this;return(0,m.Z)(function*(){if(n.state=2,!n.element){const i=n.component;n.element=yield(0,B.a)(n.delegate,t,i,["ion-page","ion-page-invisible"],n.params)}})()}_destroy(){(0,d.o)(3!==this.state,"view state must be ATTACHED");const t=this.element;t&&(this.delegate?this.delegate.removeViewFromDom(t.parentElement,t):t.remove()),this.nav=void 0,this.state=3}}const I=(e,t,n)=>!(!e||e.component!==t)&&(0,d.s)(e.params,n),A=(e,t)=>e?e instanceof _?e:new _(e,t):null,P=class{constructor(e){(0,g.r)(this,e),this.ionNavWillLoad=(0,g.d)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,g.d)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,g.d)(this,"ionNavDidChange",3),this.transInstr=[],this.gestureOrAnimationInProgress=!1,this.useRouter=!1,this.isTransitioning=!1,this.destroyed=!1,this.views=[],this.didLoad=!1,this.delegate=void 0,this.swipeGesture=void 0,this.animated=!0,this.animation=void 0,this.rootParams=void 0,this.root=void 0}swipeGestureChanged(){this.gesture&&this.gesture.enable(!0===this.swipeGesture)}rootChanged(){void 0!==this.root&&!1!==this.didLoad&&(this.useRouter||void 0!==this.root&&this.setRoot(this.root,this.rootParams))}componentWillLoad(){if(this.useRouter=null!==document.querySelector("ion-router")&&null===this.el.closest("[no-router]"),void 0===this.swipeGesture){const e=(0,b.b)(this);this.swipeGesture=b.c.getBoolean("swipeBackEnabled","ios"===e)}this.ionNavWillLoad.emit()}componentDidLoad(){var e=this;return(0,m.Z)(function*(){e.didLoad=!0,e.rootChanged(),e.gesture=(yield f.e(8592).then(f.bind(f,3049))).createSwipeBackGesture(e.el,e.canStart.bind(e),e.onStart.bind(e),e.onMove.bind(e),e.onEnd.bind(e)),e.swipeGestureChanged()})()}connectedCallback(){this.destroyed=!1}disconnectedCallback(){for(const e of this.views)(0,v.l)(e.element,v.d),e._destroy();this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.transInstr.length=0,this.views.length=0,this.destroyed=!0}push(e,t,n,i){return this.insert(-1,e,t,n,i)}insert(e,t,n,i,s){return this.insertPages(e,[{component:t,componentProps:n}],i,s)}insertPages(e,t,n,i){return this.queueTrns({insertStart:e,insertViews:t,opts:n},i)}pop(e,t){return this.removeIndex(-1,1,e,t)}popTo(e,t,n){const i={removeStart:-1,removeCount:-1,opts:t};return"object"==typeof e&&e.component?(i.removeView=e,i.removeStart=1):"number"==typeof e&&(i.removeStart=e+1),this.queueTrns(i,n)}popToRoot(e,t){return this.removeIndex(1,-1,e,t)}removeIndex(e,t=1,n,i){return this.queueTrns({removeStart:e,removeCount:t,opts:n},i)}setRoot(e,t,n,i){return this.setPages([{component:e,componentProps:t}],n,i)}setPages(e,t,n){return t??(t={}),!0!==t.animated&&(t.animated=!1),this.queueTrns({insertStart:0,insertViews:e,removeStart:0,removeCount:-1,opts:t},n)}setRouteId(e,t,n,i){const s=this.getActiveSync();if(I(s,e,t))return Promise.resolve({changed:!1,element:s.element});let r;const a=new Promise(l=>r=l);let o;const c={updateURL:!1,viewIsReady:l=>{let h;const p=new Promise(u=>h=u);return r({changed:!0,element:l,markVisible:(u=(0,m.Z)(function*(){h(),yield o}),function(){return u.apply(this,arguments)})}),p;var u}};if("root"===n)o=this.setRoot(e,t,c);else{const l=this.views.find(h=>I(h,e,t));l?o=this.popTo(l,Object.assign(Object.assign({},c),{direction:"back",animationBuilder:i})):"forward"===n?o=this.push(e,t,Object.assign(Object.assign({},c),{animationBuilder:i})):"back"===n&&(o=this.setRoot(e,t,Object.assign(Object.assign({},c),{direction:"back",animated:!0,animationBuilder:i})))}return a}getRouteId(){var e=this;return(0,m.Z)(function*(){const t=e.getActiveSync();if(t)return{id:t.element.tagName,params:t.params,element:t.element}})()}getActive(){var e=this;return(0,m.Z)(function*(){return e.getActiveSync()})()}getByIndex(e){var t=this;return(0,m.Z)(function*(){return t.views[e]})()}canGoBack(e){var t=this;return(0,m.Z)(function*(){return t.canGoBackSync(e)})()}getPrevious(e){var t=this;return(0,m.Z)(function*(){return t.getPreviousSync(e)})()}getLength(){return this.views.length}getActiveSync(){return this.views[this.views.length-1]}canGoBackSync(e=this.getActiveSync()){return!(!e||!this.getPreviousSync(e))}getPreviousSync(e=this.getActiveSync()){if(!e)return;const t=this.views,n=t.indexOf(e);return n>0?t[n-1]:void 0}queueTrns(e,t){var n=this;return(0,m.Z)(function*(){var i,s;if(n.isTransitioning&&null!==(i=e.opts)&&void 0!==i&&i.skipIfBusy)return!1;const r=new Promise((a,o)=>{e.resolve=a,e.reject=o});if(e.done=t,e.opts&&!1!==e.opts.updateURL&&n.useRouter){const a=document.querySelector("ion-router");if(a){const o=yield a.canTransition();if(!1===o)return!1;if("string"==typeof o)return a.push(o,e.opts.direction||"back"),!1}}return 0===(null===(s=e.insertViews)||void 0===s?void 0:s.length)&&(e.insertViews=void 0),n.transInstr.push(e),n.nextTrns(),r})()}success(e,t){if(this.destroyed)this.fireError("nav controller was destroyed",t);else if(t.done&&t.done(e.hasCompleted,e.requiresTransition,e.enteringView,e.leavingView,e.direction),t.resolve(e.hasCompleted),!1!==t.opts.updateURL&&this.useRouter){const n=document.querySelector("ion-router");n&&n.navChanged("back"===e.direction?"back":"forward")}}failed(e,t){this.destroyed?this.fireError("nav controller was destroyed",t):(this.transInstr.length=0,this.fireError(e,t))}fireError(e,t){t.done&&t.done(!1,!1,e),t.reject&&!this.destroyed?t.reject(e):t.resolve(!1)}nextTrns(){if(this.isTransitioning)return!1;const e=this.transInstr.shift();return!!e&&(this.runTransition(e),!0)}runTransition(e){var t=this;return(0,m.Z)(function*(){try{t.ionNavWillChange.emit(),t.isTransitioning=!0,t.prepareTI(e);const n=t.getActiveSync(),i=t.getEnteringView(e,n);if(!n&&!i)throw new Error("no views in the stack to be removed");i&&1===i.state&&(yield i.init(t.el)),t.postViewInit(i,n,e);const s=(e.enteringRequiresTransition||e.leavingRequiresTransition)&&i!==n;let r;s&&e.opts&&n&&("back"===e.opts.direction&&(e.opts.animationBuilder=e.opts.animationBuilder||i?.animationBuilder),n.animationBuilder=e.opts.animationBuilder),r=s?yield t.transition(i,n,e):{hasCompleted:!0,requiresTransition:!1},t.success(r,e),t.ionNavDidChange.emit()}catch(n){t.failed(n,e)}t.isTransitioning=!1,t.nextTrns()})()}prepareTI(e){var t,n,i;const s=this.views.length;if(null!==(t=e.opts)&&void 0!==t||(e.opts={}),null!==(n=(i=e.opts).delegate)&&void 0!==n||(i.delegate=this.delegate),void 0!==e.removeView){(0,d.o)(void 0!==e.removeStart,"removeView needs removeStart"),(0,d.o)(void 0!==e.removeCount,"removeView needs removeCount");const o=this.views.indexOf(e.removeView);if(o<0)throw new Error("removeView was not found");e.removeStart+=o}void 0!==e.removeStart&&(e.removeStart<0&&(e.removeStart=s-1),e.removeCount<0&&(e.removeCount=s-e.removeStart),e.leavingRequiresTransition=e.removeCount>0&&e.removeStart+e.removeCount===s),e.insertViews&&((e.insertStart<0||e.insertStart>s)&&(e.insertStart=s),e.enteringRequiresTransition=e.insertStart===s);const r=e.insertViews;if(!r)return;(0,d.o)(r.length>0,"length can not be zero");const a=(e=>e.map(t=>t instanceof _?t:"component"in t?A(t.component,null===t.componentProps?void 0:t.componentProps):A(t,void 0)).filter(t=>null!==t))(r);if(0===a.length)throw new Error("invalid views to insert");for(const o of a){o.delegate=e.opts.delegate;const c=o.nav;if(c&&c!==this)throw new Error("inserted view was already inserted");if(3===o.state)throw new Error("inserted view was already destroyed")}e.insertViews=a}getEnteringView(e,t){const n=e.insertViews;if(void 0!==n)return n[n.length-1];const i=e.removeStart;if(void 0!==i){const s=this.views,r=i+e.removeCount;for(let a=s.length-1;a>=0;a--){const o=s[a];if((a=r)&&o!==t)return o}}}postViewInit(e,t,n){var i,s,r;(0,d.o)(t||e,"Both leavingView and enteringView are null"),(0,d.o)(n.resolve,"resolve must be valid"),(0,d.o)(n.reject,"reject must be valid");const a=n.opts,{insertViews:o,removeStart:c,removeCount:l}=n;let h;if(void 0!==c&&void 0!==l){(0,d.o)(c>=0,"removeStart can not be negative"),(0,d.o)(l>=0,"removeCount can not be negative"),h=[];for(let u=c;u=0,"final balance can not be negative"),0===p)throw console.warn("You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times.",this,this.el),new Error("navigation stack needs at least one root page");if(o){let u=n.insertStart;for(const w of o)this.insertViewAt(w,u),u++;n.enteringRequiresTransition&&(null!==(r=a.direction)&&void 0!==r||(a.direction="forward"))}if(h&&h.length>0){for(const u of h)(0,v.l)(u.element,v.b),(0,v.l)(u.element,v.c),(0,v.l)(u.element,v.d);for(const u of h)this.destroyView(u)}}transition(e,t,n){var i=this;return(0,m.Z)(function*(){const s=n.opts,r=s.progressAnimation?p=>{void 0===p||i.gestureOrAnimationInProgress?i.sbAni=p:(i.gestureOrAnimationInProgress=!0,p.onFinish(()=>{i.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0}),p.progressEnd(0,0,0))}:void 0,a=(0,b.b)(i),o=e.element,c=t&&t.element,l=Object.assign(Object.assign({mode:a,showGoBack:i.canGoBackSync(e),baseEl:i.el,progressCallback:r,animated:i.animated&&b.c.getBoolean("animated",!0),enteringEl:o,leavingEl:c},s),{animationBuilder:s.animationBuilder||i.animation||b.c.get("navAnimation")}),{hasCompleted:h}=yield(0,v.t)(l);return i.transitionFinish(h,e,t,s)})()}transitionFinish(e,t,n,i){const s=e?t:n;return s&&this.unmountInactiveViews(s),{hasCompleted:e,requiresTransition:!0,enteringView:t,leavingView:n,direction:i.direction}}insertViewAt(e,t){const n=this.views,i=n.indexOf(e);i>-1?((0,d.o)(e.nav===this,"view is not part of the nav"),n.splice(i,1),n.splice(t,0,e)):((0,d.o)(!e.nav,"nav is used"),e.nav=this,n.splice(t,0,e))}removeView(e){(0,d.o)(2===e.state||3===e.state,"view state should be loaded or destroyed");const t=this.views,n=t.indexOf(e);(0,d.o)(n>-1,"view must be part of the stack"),n>=0&&t.splice(n,1)}destroyView(e){e._destroy(),this.removeView(e)}unmountInactiveViews(e){if(this.destroyed)return;const t=this.views,n=t.indexOf(e);for(let i=t.length-1;i>=0;i--){const s=t[i],r=s.element;r&&(i>n?((0,v.l)(r,v.d),this.destroyView(s)):i{this.gestureOrAnimationInProgress=!1},{oneTimeCallback:!0});let i=e?-.001:.001;e?i+=(0,E.g)([0,0],[.32,.72],[0,1],[1,1],t)[0]:(this.sbAni.easing("cubic-bezier(1, 0, 0.68, 0.28)"),i+=(0,E.g)([0,0],[1,0],[.68,.28],[1,1],t)[0]),this.sbAni.progressEnd(e?1:0,i,n)}else this.gestureOrAnimationInProgress=!1}render(){return(0,g.h)("slot",null)}get el(){return(0,g.f)(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],root:["rootChanged"]}}};P.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const R=class{constructor(e){(0,g.r)(this,e),this.onClick=()=>((e,t,n,i,s)=>{const r=this.el.closest("ion-nav");if(r)if("forward"===t){if(void 0!==n)return r.push(n,i,{skipIfBusy:!0,animationBuilder:s})}else if("root"===t){if(void 0!==n)return r.setRoot(n,i,{skipIfBusy:!0,animationBuilder:s})}else if("back"===t)return r.pop({skipIfBusy:!0,animationBuilder:s});return Promise.resolve(!1)})(0,this.routerDirection,this.component,this.componentProps,this.routerAnimation),this.component=void 0,this.componentProps=void 0,this.routerDirection="forward",this.routerAnimation=void 0}render(){return(0,g.h)(g.H,{onClick:this.onClick})}get el(){return(0,g.f)(this)}}}}]); \ No newline at end of file diff --git a/5860.65c4f663e067f0ac.js b/5860.65c4f663e067f0ac.js new file mode 100644 index 00000000..24d30ba6 --- /dev/null +++ b/5860.65c4f663e067f0ac.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5860],{5860:(U,E,a)=>{a.r(E),a.d(E,{ion_app:()=>L,ion_buttons:()=>B,ion_content:()=>H,ion_footer:()=>A,ion_header:()=>W,ion_router_outlet:()=>j,ion_title:()=>F,ion_toolbar:()=>X});var h=a(5861),i=a(9942),c=a(5551),m=a(512),O=a(4162),x=a(4459),v=a(7946),u=a(9252),p=a(4510),g=a(3254),S=a(9229),T=a(4232);a(1848),a(3920),a(1836);const L=class{constructor(t){(0,i.r)(this,t)}componentDidLoad(){var t=this;$((0,h.Z)(function*(){const o=(0,c.a)(window,"hybrid");if(c.c.getBoolean("_testing")||a.e(6416).then(a.bind(a,6416)).then(n=>n.startTapClick(c.c)),c.c.getBoolean("statusTap",o)&&a.e(8315).then(a.bind(a,8315)).then(n=>n.startStatusTap()),c.c.getBoolean("inputShims",K())){const n=(0,c.a)(window,"ios")?"ios":"android";a.e(4882).then(a.bind(a,4882)).then(r=>r.startInputShims(c.c,n))}const e=yield Promise.resolve().then(a.bind(a,4393));c.c.getBoolean("hardwareBackButton",o)?e.startHardwareBackButton():e.blockHardwareBackButton(),typeof window<"u"&&a.e(8592).then(a.bind(a,6591)).then(n=>n.startKeyboardAssist(window)),a.e(8592).then(a.bind(a,8434)).then(n=>t.focusVisible=n.startFocusVisible())}))}setFocus(t){var o=this;return(0,h.Z)(function*(){o.focusVisible&&o.focusVisible.setFocus(t)})()}render(){const t=(0,c.b)(this);return(0,i.h)(i.H,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":c.c.getBoolean("_forceStatusbarPadding")}})}get el(){return(0,i.f)(this)}},K=()=>!!((0,c.a)(window,"ios")&&(0,c.a)(window,"mobile")||(0,c.a)(window,"android")&&(0,c.a)(window,"mobileweb")),$=t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,32)};L.style="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";const B=class{constructor(t){(0,i.r)(this,t),this.collapse=!1}render(){const t=(0,c.b)(this);return(0,i.h)(i.H,{class:{[t]:!0,"buttons-collapse":this.collapse}})}};B.style={ios:".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.65em;line-height:0.67}",md:".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}"};const H=class{constructor(t){(0,i.r)(this,t),this.ionScrollStart=(0,i.d)(this,"ionScrollStart",7),this.ionScroll=(0,i.d)(this,"ionScroll",7),this.ionScrollEnd=(0,i.d)(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.tabsElement=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.color=void 0,this.fullscreen=!1,this.forceOverscroll=void 0,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){if(this.isMainContent=null===this.el.closest("ion-menu, ion-popover, ion-modal"),(0,m.m)(this.el)){const t=this.tabsElement=this.el.closest("ion-tabs");null!==t&&(this.tabsLoadCallback=()=>this.resize(),t.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}}disconnectedCallback(){if(this.onScrollEnd(),(0,m.m)(this.el)){const{tabsElement:t,tabsLoadCallback:o}=this;null!==t&&void 0!==o&&t.removeEventListener("ionTabBarLoaded",o),this.tabsElement=null,this.tabsLoadCallback=void 0}}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout(()=>{null!==this.el.offsetParent&&this.resize()},100)}shouldForceOverscroll(){const{forceOverscroll:t}=this,o=(0,c.b)(this);return void 0===t?"ios"===o&&(0,c.a)("ios"):t}resize(){this.fullscreen?(0,i.e)(()=>this.readDimensions()):(0!==this.cTop||0!==this.cBottom)&&(this.cTop=this.cBottom=0,(0,i.i)(this))}readDimensions(){const t=Q(this.el),o=Math.max(this.el.offsetTop,0),e=Math.max(t.offsetHeight-o-this.el.offsetHeight,0);(o!==this.cTop||e!==this.cBottom)&&(this.cTop=o,this.cBottom=e,(0,i.i)(this))}onScroll(t){const o=Date.now(),e=!this.isScrolling;this.lastScroll=o,e&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,(0,i.e)(n=>{this.queued=!1,this.detail.event=t,q(this.detail,this.scrollEl,n,e),this.ionScroll.emit(this.detail)}))}getScrollElement(){var t=this;return(0,h.Z)(function*(){return t.scrollEl||(yield new Promise(o=>(0,m.c)(t.el,o))),Promise.resolve(t.scrollEl)})()}getBackgroundElement(){var t=this;return(0,h.Z)(function*(){return t.backgroundContentEl||(yield new Promise(o=>(0,m.c)(t.el,o))),Promise.resolve(t.backgroundContentEl)})()}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}scrollToBottom(t=0){var o=this;return(0,h.Z)(function*(){const e=yield o.getScrollElement();return o.scrollToPoint(void 0,e.scrollHeight-e.clientHeight,t)})()}scrollByPoint(t,o,e){var n=this;return(0,h.Z)(function*(){const r=yield n.getScrollElement();return n.scrollToPoint(t+r.scrollLeft,o+r.scrollTop,e)})()}scrollToPoint(t,o,e=0){var n=this;return(0,h.Z)(function*(){const r=yield n.getScrollElement();if(e<32)return null!=o&&(r.scrollTop=o),void(null!=t&&(r.scrollLeft=t));let s,l=0;const d=new Promise(y=>s=y),b=r.scrollTop,f=r.scrollLeft,k=null!=o?o-b:0,w=null!=t?t-f:0,P=y=>{const ut=Math.min(1,(y-l)/e)-1,D=Math.pow(ut,3)+1;0!==k&&(r.scrollTop=Math.floor(D*k+b)),0!==w&&(r.scrollLeft=Math.floor(D*w+f)),D<1?requestAnimationFrame(P):s()};return requestAnimationFrame(y=>{l=y,P(y)}),d})()}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval(()=>{this.lastScrollthis.backgroundContentEl=f,id:"background-content",part:"background"}),(0,i.h)(b,{class:{"inner-scroll":!0,"scroll-x":o,"scroll-y":e,overscroll:(o||e)&&l},ref:f=>this.scrollEl=f,onScroll:this.scrollEvents?f=>this.onScroll(f):void 0,part:"scroll"},(0,i.h)("slot",null)),d?(0,i.h)("div",{class:"transition-effect"},(0,i.h)("div",{class:"transition-cover"}),(0,i.h)("div",{class:"transition-shadow"})):null,(0,i.h)("slot",{name:"fixed"}))}get el(){return(0,i.f)(this)}},Q=t=>{const o=t.closest("ion-tabs");return o||(t.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content")||(t=>{var o;return t.parentElement?t.parentElement:null!==(o=t.parentNode)&&void 0!==o&&o.host?t.parentNode.host:null})(t))},q=(t,o,e,n)=>{const r=t.currentX,s=t.currentY,d=o.scrollLeft,b=o.scrollTop,f=e-t.currentTime;if(n&&(t.startTime=e,t.startX=d,t.startY=b,t.velocityX=t.velocityY=0),t.currentTime=e,t.currentX=t.scrollLeft=d,t.currentY=t.scrollTop=b,t.deltaX=d-t.startX,t.deltaY=b-t.startY,f>0&&f<100){const w=(b-s)/f;t.velocityX=(d-r)/f*.7+.3*t.velocityX,t.velocityY=.7*w+.3*t.velocityY}};H.style=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}';const I=(t,o)=>{(0,i.e)(()=>{const d=(0,m.l)(0,1-(t.scrollTop-(t.scrollHeight-t.clientHeight-10))/10,1);(0,i.w)(()=>{o.style.setProperty("--opacity-scale",d.toString())})})},A=class{constructor(t){var o=this;(0,i.r)(this,t),this.keyboardCtrl=null,this.checkCollapsibleFooter=()=>{if("ios"!==(0,c.b)(this))return;const{collapse:n}=this,r="fade"===n;if(this.destroyCollapsibleFooter(),r){const s=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),l=s?(0,v.a)(s):null;if(!l)return void(0,v.p)(this.el);this.setupFadeFooter(l)}},this.setupFadeFooter=function(){var e=(0,h.Z)(function*(n){const r=o.scrollEl=yield(0,v.g)(n);o.contentScrollCallback=()=>{I(r,o.el)},r.addEventListener("scroll",o.contentScrollCallback),I(r,o.el)});return function(n){return e.apply(this,arguments)}}(),this.keyboardVisible=!1,this.collapse=void 0,this.translucent=!1}componentDidLoad(){this.checkCollapsibleFooter()}componentDidUpdate(){this.checkCollapsibleFooter()}connectedCallback(){var t=this;return(0,h.Z)(function*(){t.keyboardCtrl=yield(0,u.c)(function(){var o=(0,h.Z)(function*(e,n){!1===e&&void 0!==n&&(yield n),t.keyboardVisible=e});return function(e,n){return o.apply(this,arguments)}}())})()}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}destroyCollapsibleFooter(){this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0)}render(){const{translucent:t,collapse:o}=this,e=(0,c.b)(this),n=this.el.closest("ion-tabs"),r=n?.querySelector(":scope > ion-tab-bar");return(0,i.h)(i.H,{role:"contentinfo",class:{[e]:!0,[`footer-${e}`]:!0,"footer-translucent":t,[`footer-translucent-${e}`]:t,"footer-toolbar-padding":!(this.keyboardVisible||r&&"bottom"===r.slot),[`footer-collapse-${o}`]:void 0!==o}},"ios"===e&&t&&(0,i.h)("div",{class:"footer-background"}),(0,i.h)("slot",null))}get el(){return(0,i.f)(this)}};A.style={ios:"ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}",md:"ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.footer-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}"};const _=t=>{const o=document.querySelector(`${t}.ion-cloned-element`);if(null!==o)return o;const e=document.createElement(t);return e.classList.add("ion-cloned-element"),e.style.setProperty("display","none"),document.body.appendChild(e),e},Z=t=>{if(!t)return;const o=t.querySelectorAll("ion-toolbar");return{el:t,toolbars:Array.from(o).map(e=>{const n=e.querySelector("ion-title");return{el:e,background:e.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:n,innerTitleEl:n?n.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(e.querySelectorAll("ion-buttons"))}})}},M=(t,o)=>{"fade"!==t.collapse&&(void 0===o?t.style.removeProperty("--opacity-scale"):t.style.setProperty("--opacity-scale",o.toString()))},C=(t,o=!0)=>{const e=t.el;o?(e.classList.remove("header-collapse-condense-inactive"),e.removeAttribute("aria-hidden")):(e.classList.add("header-collapse-condense-inactive"),e.setAttribute("aria-hidden","true"))},R=(t,o,e)=>{(0,i.e)(()=>{const n=t.scrollTop,r=o.clientHeight,s=e?e.clientHeight:0;if(null!==e&&n{t.style.removeProperty("clip-path"),o.style.setProperty("--opacity-scale",b.toString())})})},W=class{constructor(t){var o=this;(0,i.r)(this,t),this.inheritedAttributes={},this.setupFadeHeader=function(){var e=(0,h.Z)(function*(n,r){const s=o.scrollEl=yield(0,v.g)(n);o.contentScrollCallback=()=>{R(o.scrollEl,o.el,r)},s.addEventListener("scroll",o.contentScrollCallback),R(o.scrollEl,o.el,r)});return function(n,r){return e.apply(this,arguments)}}(),this.collapse=void 0,this.translucent=!1}componentWillLoad(){this.inheritedAttributes=(0,m.i)(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}checkCollapsibleHeader(){var t=this;return(0,h.Z)(function*(){if("ios"!==(0,c.b)(t))return;const{collapse:e}=t,n="condense"===e,r="fade"===e;if(t.destroyCollapsibleHeader(),n){const s=t.el.closest("ion-app,ion-page,.ion-page,page-inner"),l=s?(0,v.a)(s):null;(0,i.w)(()=>{_("ion-title").size="large",_("ion-back-button")}),yield t.setupCondenseHeader(l,s)}else if(r){const s=t.el.closest("ion-app,ion-page,.ion-page,page-inner"),l=s?(0,v.a)(s):null;if(!l)return void(0,v.p)(t.el);const d=l.querySelector('ion-header[collapse="condense"]');yield t.setupFadeHeader(l,d)}})()}destroyCollapsibleHeader(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0),this.collapsibleMainHeader&&(this.collapsibleMainHeader.classList.remove("header-collapse-main"),this.collapsibleMainHeader=void 0)}setupCondenseHeader(t,o){var e=this;return(0,h.Z)(function*(){if(!t||!o)return void(0,v.p)(e.el);if(typeof IntersectionObserver>"u")return;e.scrollEl=yield(0,v.g)(t);const n=o.querySelectorAll("ion-header");if(e.collapsibleMainHeader=Array.from(n).find(d=>"condense"!==d.collapse),!e.collapsibleMainHeader)return;const r=Z(e.collapsibleMainHeader),s=Z(e.el);r&&s&&(C(r,!1),M(r.el,0),e.intersectionObserver=new IntersectionObserver(d=>{((t,o,e,n)=>{(0,i.w)(()=>{const r=n.scrollTop;((t,o,e)=>{if(!t[0].isIntersecting)return;const n=t[0].intersectionRatio>.9||e<=0?0:100*(1-t[0].intersectionRatio)/75;M(o.el,1===n?void 0:n)})(t,o,r);const s=t[0],l=s.intersectionRect,d=l.width*l.height,f=0===d&&0==s.rootBounds.width*s.rootBounds.height,k=Math.abs(l.left-s.boundingClientRect.left),w=Math.abs(l.right-s.boundingClientRect.right);f||d>0&&(k>=5||w>=5)||(s.isIntersecting?(C(o,!1),C(e)):(0===l.x&&0===l.y||0!==l.width&&0!==l.height)&&r>0&&(C(o),C(e,!1),M(o.el)))})})(d,r,s,e.scrollEl)},{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),e.intersectionObserver.observe(s.toolbars[s.toolbars.length-1].el),e.contentScrollCallback=()=>{((t,o,e)=>{(0,i.e)(()=>{const r=(0,m.l)(1,1+-t.scrollTop/500,1.1);null===e.querySelector("ion-refresher.refresher-native")&&(0,i.w)(()=>{((t=[],o=1,e=!1)=>{t.forEach(n=>{const r=n.ionTitleEl,s=n.innerTitleEl;!r||"large"!==r.size||(s.style.transition=e?"all 0.2s ease-in-out":"",s.style.transform=`scale3d(${o}, ${o}, 1)`)})})(o.toolbars,r)})})})(e.scrollEl,s,t)},e.scrollEl.addEventListener("scroll",e.contentScrollCallback),(0,i.w)(()=>{void 0!==e.collapsibleMainHeader&&e.collapsibleMainHeader.classList.add("header-collapse-main")}))})()}render(){const{translucent:t,inheritedAttributes:o}=this,e=(0,c.b)(this),n=this.collapse||"none",r=(0,x.h)("ion-menu",this.el)?"none":"banner";return(0,i.h)(i.H,Object.assign({role:r,class:{[e]:!0,[`header-${e}`]:!0,"header-translucent":this.translucent,[`header-collapse-${n}`]:!0,[`header-translucent-${e}`]:this.translucent}},o),"ios"===e&&t&&(0,i.h)("div",{class:"header-background"}),(0,i.h)("slot",null))}get el(){return(0,i.f)(this)}};W.style={ios:"ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:0px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}ion-header:not(.header-collapse-main):has(~ion-content ion-header[collapse=condense],~ion-content ion-header.header-collapse-condense){opacity:0}",md:"ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}"};const j=class{constructor(t){(0,i.r)(this,t),this.ionNavWillLoad=(0,i.d)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,i.d)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,i.d)(this,"ionNavDidChange",3),this.lockController=(0,S.c)(),this.gestureOrAnimationInProgress=!1,this.mode=(0,c.b)(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(void 0!==this.swipeHandler)}connectedCallback(){var t=this;return(0,h.Z)(function*(){t.gesture=(yield a.e(8592).then(a.bind(a,3049))).createSwipeBackGesture(t.el,()=>!t.gestureOrAnimationInProgress&&!!t.swipeHandler&&t.swipeHandler.canStart(),()=>(t.gestureOrAnimationInProgress=!0,void(t.swipeHandler&&t.swipeHandler.onStart())),e=>{var n;return null===(n=t.ani)||void 0===n?void 0:n.progressStep(e)},(e,n,r)=>{if(t.ani){t.ani.onFinish(()=>{t.gestureOrAnimationInProgress=!1,t.swipeHandler&&t.swipeHandler.onEnd(e)},{oneTimeCallback:!0});let s=e?-.001:.001;e?s+=(0,p.g)([0,0],[.32,.72],[0,1],[1,1],n)[0]:(t.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),s+=(0,p.g)([0,0],[1,0],[.68,.28],[1,1],n)[0]),t.ani.progressEnd(e?1:0,s,r)}else t.gestureOrAnimationInProgress=!1}),t.swipeHandlerChanged()})()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}commit(t,o,e){var n=this;return(0,h.Z)(function*(){const r=yield n.lockController.lock();let s=!1;try{s=yield n.transition(t,o,e)}catch(l){console.error(l)}return r(),s})()}setRouteId(t,o,e,n){var r=this;return(0,h.Z)(function*(){return{changed:yield r.setRoot(t,o,{duration:"root"===e?0:void 0,direction:"back"===e?"back":"forward",animationBuilder:n}),element:r.activeEl}})()}getRouteId(){var t=this;return(0,h.Z)(function*(){const o=t.activeEl;return o?{id:o.tagName,element:o,params:t.activeParams}:void 0})()}setRoot(t,o,e){var n=this;return(0,h.Z)(function*(){if(n.activeComponent===t&&(0,m.s)(o,n.activeParams))return!1;const r=n.activeEl,s=yield(0,g.a)(n.delegate,n.el,t,["ion-page","ion-page-invisible"],o);return n.activeComponent=t,n.activeEl=s,n.activeParams=o,yield n.commit(s,r,e),yield(0,g.d)(n.delegate,r),!0})()}transition(t,o,e={}){var n=this;return(0,h.Z)(function*(){if(o===t)return!1;n.ionNavWillChange.emit();const{el:r,mode:s}=n,l=n.animated&&c.c.getBoolean("animated",!0),d=e.animationBuilder||n.animation||c.c.get("navAnimation");return yield(0,T.t)(Object.assign(Object.assign({mode:s,animated:l,enteringEl:t,leavingEl:o,baseEl:r,deepWait:(0,m.m)(r),progressCallback:e.progressAnimation?b=>{void 0===b||n.gestureOrAnimationInProgress?n.ani=b:(n.gestureOrAnimationInProgress=!0,b.onFinish(()=>{n.gestureOrAnimationInProgress=!1,n.swipeHandler&&n.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),b.progressEnd(0,0,0))}:void 0},e),{animationBuilder:d})),n.ionNavDidChange.emit(),!0})()}render(){return(0,i.h)("slot",null)}get el(){return(0,i.f)(this)}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}};j.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const F=class{constructor(t){(0,i.r)(this,t),this.ionStyle=(0,i.d)(this,"ionStyle",7),this.color=void 0,this.size=void 0}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const t=this.getSize();this.ionStyle.emit({[`title-${t}`]:!0})}getSize(){return void 0!==this.size?this.size:"default"}render(){const t=(0,c.b)(this),o=this.getSize();return(0,i.h)(i.H,{class:(0,x.c)(this.color,{[t]:!0,[`title-${o}`]:!0,"title-rtl":"rtl"===document.dir})},(0,i.h)("div",{class:"toolbar-title"},(0,i.h)("slot",null)))}get el(){return(0,i.f)(this)}static get watchers(){return{size:["sizeChanged"]}}};F.style={ios:":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:min(1.0625rem, 20.4px);font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:min(0.8125rem, 23.4px);font-weight:normal}:host(.title-large){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:2px;padding-bottom:4px;-webkit-transform-origin:left center;transform-origin:left center;position:static;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:min(2.125rem, 61.2px);font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000);font-family:var(--ion-font-family)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit;width:auto}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large:dir(rtl)) .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}",md:":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:0.9375rem;font-weight:normal}"};const X=class{constructor(t){(0,i.r)(this,t),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),o=t.find(r=>"start"===r.slot);o&&o.classList.add("buttons-first-slot");const e=t.reverse(),n=e.find(r=>"end"===r.slot)||e.find(r=>"primary"===r.slot)||e.find(r=>"secondary"===r.slot);n&&n.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const o=t.target.tagName,e=t.detail,n={},r=this.childrenStyles.get(o)||{};let s=!1;Object.keys(e).forEach(l=>{const d=`toolbar-${l}`,b=e[l];b!==r[d]&&(s=!0),b&&(n[d]=!0)}),s&&(this.childrenStyles.set(o,n),(0,i.i)(this))}render(){const t=(0,c.b)(this),o={};return this.childrenStyles.forEach(e=>{Object.assign(o,e)}),(0,i.h)(i.H,{class:Object.assign(Object.assign({},o),(0,x.c)(this.color,{[t]:!0,"in-toolbar":(0,x.h)("ion-toolbar",this.el)}))},(0,i.h)("div",{class:"toolbar-background"}),(0,i.h)("div",{class:"toolbar-container"},(0,i.h)("slot",{name:"start"}),(0,i.h)("slot",{name:"secondary"}),(0,i.h)("div",{class:"toolbar-content"},(0,i.h)("slot",null)),(0,i.h)("slot",{name:"primary"}),(0,i.h)("slot",{name:"end"})))}get el(){return(0,i.f)(this)}};X.style={ios:":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",md:":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}"}},4459:(U,E,a)=>{a.d(E,{c:()=>c,g:()=>O,h:()=>i,o:()=>v});var h=a(5861);const i=(u,p)=>null!==p.closest(u),c=(u,p)=>"string"==typeof u&&u.length>0?Object.assign({"ion-color":!0,[`ion-color-${u}`]:!0},p):p,O=u=>{const p={};return(u=>void 0!==u?(Array.isArray(u)?u:u.split(" ")).filter(g=>null!=g).map(g=>g.trim()).filter(g=>""!==g):[])(u).forEach(g=>p[g]=!0),p},x=/^[a-z][a-z0-9+\-.]*:/,v=function(){var u=(0,h.Z)(function*(p,g,S,T){if(null!=p&&"#"!==p[0]&&!x.test(p)){const z=document.querySelector("ion-router");if(z)return g?.preventDefault(),z.push(p,S,T)}return!1});return function(g,S,T,z){return u.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5860.a2c78dc150394f51.js b/5860.a2c78dc150394f51.js deleted file mode 100644 index 3757c433..00000000 --- a/5860.a2c78dc150394f51.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5860],{5860:(U,E,a)=>{a.r(E),a.d(E,{ion_app:()=>L,ion_buttons:()=>B,ion_content:()=>H,ion_footer:()=>A,ion_header:()=>W,ion_router_outlet:()=>j,ion_title:()=>F,ion_toolbar:()=>X});var h=a(5861),i=a(5349),c=a(3882),m=a(839),O=a(5085),x=a(3567),v=a(2874),u=a(3459),p=a(5149),g=a(6559),S=a(3830),T=a(448);a(6225),a(7484),a(4874);const L=class{constructor(t){(0,i.r)(this,t)}componentDidLoad(){var t=this;$((0,h.Z)(function*(){const o=(0,c.a)(window,"hybrid");if(c.c.getBoolean("_testing")||a.e(8058).then(a.bind(a,8058)).then(n=>n.startTapClick(c.c)),c.c.getBoolean("statusTap",o)&&a.e(5951).then(a.bind(a,5951)).then(n=>n.startStatusTap()),c.c.getBoolean("inputShims",K())){const n=(0,c.a)(window,"ios")?"ios":"android";a.e(8895).then(a.bind(a,8895)).then(r=>r.startInputShims(c.c,n))}const e=yield Promise.resolve().then(a.bind(a,2124));c.c.getBoolean("hardwareBackButton",o)?e.startHardwareBackButton():e.blockHardwareBackButton(),typeof window<"u"&&a.e(8592).then(a.bind(a,1612)).then(n=>n.startKeyboardAssist(window)),a.e(8592).then(a.bind(a,2779)).then(n=>t.focusVisible=n.startFocusVisible())}))}setFocus(t){var o=this;return(0,h.Z)(function*(){o.focusVisible&&o.focusVisible.setFocus(t)})()}render(){const t=(0,c.b)(this);return(0,i.h)(i.H,{class:{[t]:!0,"ion-page":!0,"force-statusbar-padding":c.c.getBoolean("_forceStatusbarPadding")}})}get el(){return(0,i.f)(this)}},K=()=>!!((0,c.a)(window,"ios")&&(0,c.a)(window,"mobile")||(0,c.a)(window,"android")&&(0,c.a)(window,"mobileweb")),$=t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,32)};L.style="html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}html.plt-mobile ion-app [contenteditable]{-webkit-user-select:text;-moz-user-select:text;-ms-user-select:text;user-select:text}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";const B=class{constructor(t){(0,i.r)(this,t),this.collapse=!1}render(){const t=(0,c.b)(this);return(0,i.h)(i.H,{class:{[t]:!0,"buttons-collapse":this.collapse}})}};B.style={ios:".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:5px;--padding-end:5px;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-ios-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast);--background-activated:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.41em;line-height:0.67}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.65em;line-height:0.67}",md:".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:3px;--padding-bottom:3px;--padding-start:8px;--padding-end:8px;--box-shadow:none;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px;min-height:32px}.sc-ion-buttons-md-s .button-has-icon-only{--padding-top:0;--padding-bottom:0}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:3rem;height:3rem}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-margin-start:0.4em;margin-inline-start:0.4em;font-size:1.4em}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}"};const H=class{constructor(t){(0,i.r)(this,t),this.ionScrollStart=(0,i.d)(this,"ionScrollStart",7),this.ionScroll=(0,i.d)(this,"ionScroll",7),this.ionScrollEnd=(0,i.d)(this,"ionScrollEnd",7),this.watchDog=null,this.isScrolling=!1,this.lastScroll=0,this.queued=!1,this.cTop=-1,this.cBottom=-1,this.isMainContent=!0,this.resizeTimeout=null,this.tabsElement=null,this.detail={scrollTop:0,scrollLeft:0,type:"scroll",event:void 0,startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,data:void 0,isScrolling:!0},this.color=void 0,this.fullscreen=!1,this.forceOverscroll=void 0,this.scrollX=!1,this.scrollY=!0,this.scrollEvents=!1}connectedCallback(){if(this.isMainContent=null===this.el.closest("ion-menu, ion-popover, ion-modal"),(0,m.m)(this.el)){const t=this.tabsElement=this.el.closest("ion-tabs");null!==t&&(this.tabsLoadCallback=()=>this.resize(),t.addEventListener("ionTabBarLoaded",this.tabsLoadCallback))}}disconnectedCallback(){if(this.onScrollEnd(),(0,m.m)(this.el)){const{tabsElement:t,tabsLoadCallback:o}=this;null!==t&&void 0!==o&&t.removeEventListener("ionTabBarLoaded",o),this.tabsElement=null,this.tabsLoadCallback=void 0}}onResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),this.resizeTimeout=null),this.resizeTimeout=setTimeout(()=>{null!==this.el.offsetParent&&this.resize()},100)}shouldForceOverscroll(){const{forceOverscroll:t}=this,o=(0,c.b)(this);return void 0===t?"ios"===o&&(0,c.a)("ios"):t}resize(){this.fullscreen?(0,i.e)(()=>this.readDimensions()):(0!==this.cTop||0!==this.cBottom)&&(this.cTop=this.cBottom=0,(0,i.i)(this))}readDimensions(){const t=Q(this.el),o=Math.max(this.el.offsetTop,0),e=Math.max(t.offsetHeight-o-this.el.offsetHeight,0);(o!==this.cTop||e!==this.cBottom)&&(this.cTop=o,this.cBottom=e,(0,i.i)(this))}onScroll(t){const o=Date.now(),e=!this.isScrolling;this.lastScroll=o,e&&this.onScrollStart(),!this.queued&&this.scrollEvents&&(this.queued=!0,(0,i.e)(n=>{this.queued=!1,this.detail.event=t,q(this.detail,this.scrollEl,n,e),this.ionScroll.emit(this.detail)}))}getScrollElement(){var t=this;return(0,h.Z)(function*(){return t.scrollEl||(yield new Promise(o=>(0,m.c)(t.el,o))),Promise.resolve(t.scrollEl)})()}getBackgroundElement(){var t=this;return(0,h.Z)(function*(){return t.backgroundContentEl||(yield new Promise(o=>(0,m.c)(t.el,o))),Promise.resolve(t.backgroundContentEl)})()}scrollToTop(t=0){return this.scrollToPoint(void 0,0,t)}scrollToBottom(t=0){var o=this;return(0,h.Z)(function*(){const e=yield o.getScrollElement();return o.scrollToPoint(void 0,e.scrollHeight-e.clientHeight,t)})()}scrollByPoint(t,o,e){var n=this;return(0,h.Z)(function*(){const r=yield n.getScrollElement();return n.scrollToPoint(t+r.scrollLeft,o+r.scrollTop,e)})()}scrollToPoint(t,o,e=0){var n=this;return(0,h.Z)(function*(){const r=yield n.getScrollElement();if(e<32)return null!=o&&(r.scrollTop=o),void(null!=t&&(r.scrollLeft=t));let s,l=0;const d=new Promise(y=>s=y),b=r.scrollTop,f=r.scrollLeft,k=null!=o?o-b:0,w=null!=t?t-f:0,P=y=>{const ut=Math.min(1,(y-l)/e)-1,D=Math.pow(ut,3)+1;0!==k&&(r.scrollTop=Math.floor(D*k+b)),0!==w&&(r.scrollLeft=Math.floor(D*w+f)),D<1?requestAnimationFrame(P):s()};return requestAnimationFrame(y=>{l=y,P(y)}),d})()}onScrollStart(){this.isScrolling=!0,this.ionScrollStart.emit({isScrolling:!0}),this.watchDog&&clearInterval(this.watchDog),this.watchDog=setInterval(()=>{this.lastScrollthis.backgroundContentEl=f,id:"background-content",part:"background"}),(0,i.h)(b,{class:{"inner-scroll":!0,"scroll-x":o,"scroll-y":e,overscroll:(o||e)&&l},ref:f=>this.scrollEl=f,onScroll:this.scrollEvents?f=>this.onScroll(f):void 0,part:"scroll"},(0,i.h)("slot",null)),d?(0,i.h)("div",{class:"transition-effect"},(0,i.h)("div",{class:"transition-cover"}),(0,i.h)("div",{class:"transition-shadow"})):null,(0,i.h)("slot",{name:"fixed"}))}get el(){return(0,i.f)(this)}},Q=t=>{const o=t.closest("ion-tabs");return o||(t.closest("ion-app, ion-page, .ion-page, page-inner, .popover-content")||(t=>{var o;return t.parentElement?t.parentElement:null!==(o=t.parentNode)&&void 0!==o&&o.host?t.parentNode.host:null})(t))},q=(t,o,e,n)=>{const r=t.currentX,s=t.currentY,d=o.scrollLeft,b=o.scrollTop,f=e-t.currentTime;if(n&&(t.startTime=e,t.startX=d,t.startY=b,t.velocityX=t.velocityY=0),t.currentTime=e,t.currentX=t.scrollLeft=d,t.currentY=t.scrollTop=b,t.deltaX=d-t.startX,t.deltaY=b-t.startY,f>0&&f<100){const w=(b-s)/f;t.velocityX=(d-r)/f*.7+.3*t.velocityX,t.velocityY=.7*w+.3*t.velocityY}};H.style=':host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;-ms-touch-action:pan-x pan-y pinch-zoom;touch-action:pan-x pan-y pinch-zoom}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;z-index:0;will-change:scroll-position}.scroll-y{overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{overflow-x:var(--overflow);overscroll-behavior-x:contain}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:""}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;min-height:0;contain:none}:host(.content-sizing) .inner-scroll{position:relative;top:0;bottom:0;margin-top:calc(var(--offset-top) * -1);margin-bottom:calc(var(--offset-bottom) * -1)}.transition-effect{display:none;position:absolute;width:100%;height:100vh;opacity:0;pointer-events:none}:host(.content-ltr) .transition-effect{left:-100%;}:host(.content-rtl) .transition-effect{right:-100%;}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;width:100%;height:100%;-webkit-box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03);box-shadow:inset -9px 0 9px 0 rgba(0, 0, 100, 0.03)}:host(.content-ltr) .transition-shadow{right:0;}:host(.content-rtl) .transition-shadow{left:0;-webkit-transform:scaleX(-1);transform:scaleX(-1)}::slotted([slot=fixed]){position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0)}';const I=(t,o)=>{(0,i.e)(()=>{const d=(0,m.l)(0,1-(t.scrollTop-(t.scrollHeight-t.clientHeight-10))/10,1);(0,i.w)(()=>{o.style.setProperty("--opacity-scale",d.toString())})})},A=class{constructor(t){var o=this;(0,i.r)(this,t),this.keyboardCtrl=null,this.checkCollapsibleFooter=()=>{if("ios"!==(0,c.b)(this))return;const{collapse:n}=this,r="fade"===n;if(this.destroyCollapsibleFooter(),r){const s=this.el.closest("ion-app,ion-page,.ion-page,page-inner"),l=s?(0,v.a)(s):null;if(!l)return void(0,v.p)(this.el);this.setupFadeFooter(l)}},this.setupFadeFooter=function(){var e=(0,h.Z)(function*(n){const r=o.scrollEl=yield(0,v.g)(n);o.contentScrollCallback=()=>{I(r,o.el)},r.addEventListener("scroll",o.contentScrollCallback),I(r,o.el)});return function(n){return e.apply(this,arguments)}}(),this.keyboardVisible=!1,this.collapse=void 0,this.translucent=!1}componentDidLoad(){this.checkCollapsibleFooter()}componentDidUpdate(){this.checkCollapsibleFooter()}connectedCallback(){var t=this;return(0,h.Z)(function*(){t.keyboardCtrl=yield(0,u.c)(function(){var o=(0,h.Z)(function*(e,n){!1===e&&void 0!==n&&(yield n),t.keyboardVisible=e});return function(e,n){return o.apply(this,arguments)}}())})()}disconnectedCallback(){this.keyboardCtrl&&this.keyboardCtrl.destroy()}destroyCollapsibleFooter(){this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0)}render(){const{translucent:t,collapse:o}=this,e=(0,c.b)(this),n=this.el.closest("ion-tabs"),r=n?.querySelector(":scope > ion-tab-bar");return(0,i.h)(i.H,{role:"contentinfo",class:{[e]:!0,[`footer-${e}`]:!0,"footer-translucent":t,[`footer-translucent-${e}`]:t,"footer-toolbar-padding":!(this.keyboardVisible||r&&"bottom"===r.slot),[`footer-collapse-${o}`]:void 0!==o}},"ios"===e&&t&&(0,i.h)("div",{class:"footer-background"}),(0,i.h)("slot",null))}get el(){return(0,i.f)(this)}};A.style={ios:"ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}.footer-collapse-fade ion-toolbar{--opacity-scale:inherit}",md:"ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer.footer-toolbar-padding ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.footer-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}"};const _=t=>{const o=document.querySelector(`${t}.ion-cloned-element`);if(null!==o)return o;const e=document.createElement(t);return e.classList.add("ion-cloned-element"),e.style.setProperty("display","none"),document.body.appendChild(e),e},Z=t=>{if(!t)return;const o=t.querySelectorAll("ion-toolbar");return{el:t,toolbars:Array.from(o).map(e=>{const n=e.querySelector("ion-title");return{el:e,background:e.shadowRoot.querySelector(".toolbar-background"),ionTitleEl:n,innerTitleEl:n?n.shadowRoot.querySelector(".toolbar-title"):null,ionButtonsEl:Array.from(e.querySelectorAll("ion-buttons"))}})}},M=(t,o)=>{"fade"!==t.collapse&&(void 0===o?t.style.removeProperty("--opacity-scale"):t.style.setProperty("--opacity-scale",o.toString()))},C=(t,o=!0)=>{const e=t.el;o?(e.classList.remove("header-collapse-condense-inactive"),e.removeAttribute("aria-hidden")):(e.classList.add("header-collapse-condense-inactive"),e.setAttribute("aria-hidden","true"))},R=(t,o,e)=>{(0,i.e)(()=>{const n=t.scrollTop,r=o.clientHeight,s=e?e.clientHeight:0;if(null!==e&&n{t.style.removeProperty("clip-path"),o.style.setProperty("--opacity-scale",b.toString())})})},W=class{constructor(t){var o=this;(0,i.r)(this,t),this.inheritedAttributes={},this.setupFadeHeader=function(){var e=(0,h.Z)(function*(n,r){const s=o.scrollEl=yield(0,v.g)(n);o.contentScrollCallback=()=>{R(o.scrollEl,o.el,r)},s.addEventListener("scroll",o.contentScrollCallback),R(o.scrollEl,o.el,r)});return function(n,r){return e.apply(this,arguments)}}(),this.collapse=void 0,this.translucent=!1}componentWillLoad(){this.inheritedAttributes=(0,m.i)(this.el)}componentDidLoad(){this.checkCollapsibleHeader()}componentDidUpdate(){this.checkCollapsibleHeader()}disconnectedCallback(){this.destroyCollapsibleHeader()}checkCollapsibleHeader(){var t=this;return(0,h.Z)(function*(){if("ios"!==(0,c.b)(t))return;const{collapse:e}=t,n="condense"===e,r="fade"===e;if(t.destroyCollapsibleHeader(),n){const s=t.el.closest("ion-app,ion-page,.ion-page,page-inner"),l=s?(0,v.a)(s):null;(0,i.w)(()=>{_("ion-title").size="large",_("ion-back-button")}),yield t.setupCondenseHeader(l,s)}else if(r){const s=t.el.closest("ion-app,ion-page,.ion-page,page-inner"),l=s?(0,v.a)(s):null;if(!l)return void(0,v.p)(t.el);const d=l.querySelector('ion-header[collapse="condense"]');yield t.setupFadeHeader(l,d)}})()}destroyCollapsibleHeader(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0),this.scrollEl&&this.contentScrollCallback&&(this.scrollEl.removeEventListener("scroll",this.contentScrollCallback),this.contentScrollCallback=void 0),this.collapsibleMainHeader&&(this.collapsibleMainHeader.classList.remove("header-collapse-main"),this.collapsibleMainHeader=void 0)}setupCondenseHeader(t,o){var e=this;return(0,h.Z)(function*(){if(!t||!o)return void(0,v.p)(e.el);if(typeof IntersectionObserver>"u")return;e.scrollEl=yield(0,v.g)(t);const n=o.querySelectorAll("ion-header");if(e.collapsibleMainHeader=Array.from(n).find(d=>"condense"!==d.collapse),!e.collapsibleMainHeader)return;const r=Z(e.collapsibleMainHeader),s=Z(e.el);r&&s&&(C(r,!1),M(r.el,0),e.intersectionObserver=new IntersectionObserver(d=>{((t,o,e,n)=>{(0,i.w)(()=>{const r=n.scrollTop;((t,o,e)=>{if(!t[0].isIntersecting)return;const n=t[0].intersectionRatio>.9||e<=0?0:100*(1-t[0].intersectionRatio)/75;M(o.el,1===n?void 0:n)})(t,o,r);const s=t[0],l=s.intersectionRect,d=l.width*l.height,f=0===d&&0==s.rootBounds.width*s.rootBounds.height,k=Math.abs(l.left-s.boundingClientRect.left),w=Math.abs(l.right-s.boundingClientRect.right);f||d>0&&(k>=5||w>=5)||(s.isIntersecting?(C(o,!1),C(e)):(0===l.x&&0===l.y||0!==l.width&&0!==l.height)&&r>0&&(C(o),C(e,!1),M(o.el)))})})(d,r,s,e.scrollEl)},{root:t,threshold:[.25,.3,.4,.5,.6,.7,.8,.9,1]}),e.intersectionObserver.observe(s.toolbars[s.toolbars.length-1].el),e.contentScrollCallback=()=>{((t,o,e)=>{(0,i.e)(()=>{const r=(0,m.l)(1,1+-t.scrollTop/500,1.1);null===e.querySelector("ion-refresher.refresher-native")&&(0,i.w)(()=>{((t=[],o=1,e=!1)=>{t.forEach(n=>{const r=n.ionTitleEl,s=n.innerTitleEl;!r||"large"!==r.size||(s.style.transition=e?"all 0.2s ease-in-out":"",s.style.transform=`scale3d(${o}, ${o}, 1)`)})})(o.toolbars,r)})})})(e.scrollEl,s,t)},e.scrollEl.addEventListener("scroll",e.contentScrollCallback),(0,i.w)(()=>{void 0!==e.collapsibleMainHeader&&e.collapsibleMainHeader.classList.add("header-collapse-main")}))})()}render(){const{translucent:t,inheritedAttributes:o}=this,e=(0,c.b)(this),n=this.collapse||"none",r=(0,x.h)("ion-menu",this.el)?"none":"banner";return(0,i.h)(i.H,Object.assign({role:r,class:{[e]:!0,[`header-${e}`]:!0,"header-translucent":this.translucent,[`header-collapse-${n}`]:!0,[`header-translucent-${e}`]:this.translucent}},o),"ios"===e&&t&&(0,i.h)("div",{class:"header-background"}),(0,i.h)("slot",null))}get el(){return(0,i.f)(this)}};W.style={ios:"ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-fade ion-toolbar{--opacity-scale:inherit}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:0px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar:last-of-type{--border-width:0px}.header-collapse-condense ion-toolbar ion-searchbar{padding-top:0px;padding-bottom:13px}.header-collapse-main{--opacity-scale:1}.header-collapse-main ion-toolbar{--opacity-scale:inherit}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}ion-header:not(.header-collapse-main):has(~ion-content ion-header[collapse=condense],~ion-content ion-header.header-collapse-condense){opacity:0}",md:"ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md{-webkit-box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);box-shadow:0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12)}.header-collapse-condense{display:none}.header-md.ion-no-border{-webkit-box-shadow:none;box-shadow:none}"};const j=class{constructor(t){(0,i.r)(this,t),this.ionNavWillLoad=(0,i.d)(this,"ionNavWillLoad",7),this.ionNavWillChange=(0,i.d)(this,"ionNavWillChange",3),this.ionNavDidChange=(0,i.d)(this,"ionNavDidChange",3),this.lockController=(0,S.c)(),this.gestureOrAnimationInProgress=!1,this.mode=(0,c.b)(this),this.delegate=void 0,this.animated=!0,this.animation=void 0,this.swipeHandler=void 0}swipeHandlerChanged(){this.gesture&&this.gesture.enable(void 0!==this.swipeHandler)}connectedCallback(){var t=this;return(0,h.Z)(function*(){t.gesture=(yield a.e(8592).then(a.bind(a,8663))).createSwipeBackGesture(t.el,()=>!t.gestureOrAnimationInProgress&&!!t.swipeHandler&&t.swipeHandler.canStart(),()=>(t.gestureOrAnimationInProgress=!0,void(t.swipeHandler&&t.swipeHandler.onStart())),e=>{var n;return null===(n=t.ani)||void 0===n?void 0:n.progressStep(e)},(e,n,r)=>{if(t.ani){t.ani.onFinish(()=>{t.gestureOrAnimationInProgress=!1,t.swipeHandler&&t.swipeHandler.onEnd(e)},{oneTimeCallback:!0});let s=e?-.001:.001;e?s+=(0,p.g)([0,0],[.32,.72],[0,1],[1,1],n)[0]:(t.ani.easing("cubic-bezier(1, 0, 0.68, 0.28)"),s+=(0,p.g)([0,0],[1,0],[.68,.28],[1,1],n)[0]),t.ani.progressEnd(e?1:0,s,r)}else t.gestureOrAnimationInProgress=!1}),t.swipeHandlerChanged()})()}componentWillLoad(){this.ionNavWillLoad.emit()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}commit(t,o,e){var n=this;return(0,h.Z)(function*(){const r=yield n.lockController.lock();let s=!1;try{s=yield n.transition(t,o,e)}catch(l){console.error(l)}return r(),s})()}setRouteId(t,o,e,n){var r=this;return(0,h.Z)(function*(){return{changed:yield r.setRoot(t,o,{duration:"root"===e?0:void 0,direction:"back"===e?"back":"forward",animationBuilder:n}),element:r.activeEl}})()}getRouteId(){var t=this;return(0,h.Z)(function*(){const o=t.activeEl;return o?{id:o.tagName,element:o,params:t.activeParams}:void 0})()}setRoot(t,o,e){var n=this;return(0,h.Z)(function*(){if(n.activeComponent===t&&(0,m.s)(o,n.activeParams))return!1;const r=n.activeEl,s=yield(0,g.a)(n.delegate,n.el,t,["ion-page","ion-page-invisible"],o);return n.activeComponent=t,n.activeEl=s,n.activeParams=o,yield n.commit(s,r,e),yield(0,g.d)(n.delegate,r),!0})()}transition(t,o,e={}){var n=this;return(0,h.Z)(function*(){if(o===t)return!1;n.ionNavWillChange.emit();const{el:r,mode:s}=n,l=n.animated&&c.c.getBoolean("animated",!0),d=e.animationBuilder||n.animation||c.c.get("navAnimation");return yield(0,T.t)(Object.assign(Object.assign({mode:s,animated:l,enteringEl:t,leavingEl:o,baseEl:r,deepWait:(0,m.m)(r),progressCallback:e.progressAnimation?b=>{void 0===b||n.gestureOrAnimationInProgress?n.ani=b:(n.gestureOrAnimationInProgress=!0,b.onFinish(()=>{n.gestureOrAnimationInProgress=!1,n.swipeHandler&&n.swipeHandler.onEnd(!1)},{oneTimeCallback:!0}),b.progressEnd(0,0,0))}:void 0},e),{animationBuilder:d})),n.ionNavDidChange.emit(),!0})()}render(){return(0,i.h)("slot",null)}get el(){return(0,i.f)(this)}static get watchers(){return{swipeHandler:["swipeHandlerChanged"]}}};j.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;z-index:0}";const F=class{constructor(t){(0,i.r)(this,t),this.ionStyle=(0,i.d)(this,"ionStyle",7),this.color=void 0,this.size=void 0}sizeChanged(){this.emitStyle()}connectedCallback(){this.emitStyle()}emitStyle(){const t=this.getSize();this.ionStyle.emit({[`title-${t}`]:!0})}getSize(){return void 0!==this.size?this.size:"default"}render(){const t=(0,c.b)(this),o=this.getSize();return(0,i.h)(i.H,{class:(0,x.c)(this.color,{[t]:!0,[`title-${o}`]:!0,"title-rtl":"rtl"===document.dir})},(0,i.h)("div",{class:"toolbar-title"},(0,i.h)("slot",null)))}get el(){return(0,i.f)(this)}static get watchers(){return{size:["sizeChanged"]}}};F.style={ios:":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{top:0;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:min(1.0625rem, 20.4px);font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.title-small){-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:min(0.8125rem, 23.4px);font-weight:normal}:host(.title-large){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:2px;padding-bottom:4px;-webkit-transform-origin:left center;transform-origin:left center;position:static;-ms-flex-align:end;align-items:flex-end;min-width:100%;font-size:min(2.125rem, 61.2px);font-weight:700;text-align:start}:host(.title-large.title-rtl){-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000);font-family:var(--ion-font-family)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit;width:auto}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}@supports selector(:dir(rtl)){:host(.title-large:dir(rtl)) .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}}",md:":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;font-size:1.25rem;font-weight:500;letter-spacing:0.0125em}:host(.title-small){width:100%;height:100%;font-size:0.9375rem;font-weight:normal}"};const X=class{constructor(t){(0,i.r)(this,t),this.childrenStyles=new Map,this.color=void 0}componentWillLoad(){const t=Array.from(this.el.querySelectorAll("ion-buttons")),o=t.find(r=>"start"===r.slot);o&&o.classList.add("buttons-first-slot");const e=t.reverse(),n=e.find(r=>"end"===r.slot)||e.find(r=>"primary"===r.slot)||e.find(r=>"secondary"===r.slot);n&&n.classList.add("buttons-last-slot")}childrenStyle(t){t.stopPropagation();const o=t.target.tagName,e=t.detail,n={},r=this.childrenStyles.get(o)||{};let s=!1;Object.keys(e).forEach(l=>{const d=`toolbar-${l}`,b=e[l];b!==r[d]&&(s=!0),b&&(n[d]=!0)}),s&&(this.childrenStyles.set(o,n),(0,i.i)(this))}render(){const t=(0,c.b)(this),o={};return this.childrenStyles.forEach(e=>{Object.assign(o,e)}),(0,i.h)(i.H,{class:Object.assign(Object.assign({},o),(0,x.c)(this.color,{[t]:!0,"in-toolbar":(0,x.h)("ion-toolbar",this.el)}))},(0,i.h)("div",{class:"toolbar-background"}),(0,i.h)("div",{class:"toolbar-container"},(0,i.h)("slot",{name:"start"}),(0,i.h)("slot",{name:"secondary"}),(0,i.h)("div",{class:"toolbar-content"},(0,i.h)("slot",null)),(0,i.h)("slot",{name:"primary"}),(0,i.h)("slot",{name:"end"})))}get el(){return(0,i.f)(this)}};X.style={ios:":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #f7f7f7));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}",md:":host{--border-width:0;--border-style:solid;--opacity:1;--opacity-scale:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;width:100%;padding-right:var(--ion-safe-area-right);padding-left:var(--ion-safe-area-left);color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:calc(var(--opacity) * var(--opacity-scale));z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(.buttons-first-slot){-webkit-margin-start:4px;margin-inline-start:4px}::slotted(.buttons-last-slot){-webkit-margin-end:4px;margin-inline-end:4px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}"}},3567:(U,E,a)=>{a.d(E,{c:()=>c,g:()=>O,h:()=>i,o:()=>v});var h=a(5861);const i=(u,p)=>null!==p.closest(u),c=(u,p)=>"string"==typeof u&&u.length>0?Object.assign({"ion-color":!0,[`ion-color-${u}`]:!0},p):p,O=u=>{const p={};return(u=>void 0!==u?(Array.isArray(u)?u:u.split(" ")).filter(g=>null!=g).map(g=>g.trim()).filter(g=>""!==g):[])(u).forEach(g=>p[g]=!0),p},x=/^[a-z][a-z0-9+\-.]*:/,v=function(){var u=(0,h.Z)(function*(p,g,S,T){if(null!=p&&"#"!==p[0]&&!x.test(p)){const z=document.querySelector("ion-router");if(z)return g?.preventDefault(),z.push(p,S,T)}return!1});return function(g,S,T,z){return u.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5962.77be1af1d96a643b.js b/5962.77be1af1d96a643b.js deleted file mode 100644 index 7b932512..00000000 --- a/5962.77be1af1d96a643b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5962],{5962:(H,v,s)=>{s.r(v),s.d(v,{ion_item:()=>r,ion_item_divider:()=>b,ion_item_group:()=>A,ion_label:()=>O,ion_list:()=>E,ion_list_header:()=>M,ion_note:()=>D,ion_skeleton_text:()=>T});var C=s(5861),i=s(5349),x=s(839),m=s(6710),a=s(3567),w=s(5307),d=s(3882);const r=class{constructor(t){(0,i.r)(this,t),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.color=void 0,this.button=!1,this.detail=void 0,this.detailIcon=w.o,this.disabled=!1,this.download=void 0,this.fill=void 0,this.shape=void 0,this.href=void 0,this.rel=void 0,this.lines=void 0,this.counter=!1,this.routerAnimation=void 0,this.routerDirection="forward",this.target=void 0,this.type="button",this.counterFormatter=void 0,this.counterString=void 0}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonInput(t){this.counter&&t.target===this.getFirstInput()&&this.updateCounterOutput(t.target)}labelColorChanged(t){const{color:e}=this;void 0===e&&(this.labelColorStyles=t.detail)}itemStyle(t){t.stopPropagation();const e=t.target.tagName,o=t.detail,g={},f=this.itemStyles.get(e)||{};let c=!1;Object.keys(o).forEach(h=>{if(o[h]){const p=`item-${h}`;f[p]||(c=!0),g[p]=!0}}),!c&&Object.keys(g).length!==Object.keys(f).length&&(c=!0),c&&(this.itemStyles.set(e,g),(0,i.i)(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentWillLoad(){this.inheritedAriaAttributes=(0,x.k)(this.el,["aria-label"])}componentDidLoad(){const{el:t,counter:e,counterFormatter:o,fill:g,shape:f}=this;null!==t.querySelector('[slot="helper"]')&&(0,m.p)('The "helper" slot has been deprecated in favor of using the "helperText" property on ion-input or ion-textarea.',t),null!==t.querySelector('[slot="error"]')&&(0,m.p)('The "error" slot has been deprecated in favor of using the "errorText" property on ion-input or ion-textarea.',t),!0===e&&(0,m.p)('The "counter" property has been deprecated in favor of using the "counter" property on ion-input or ion-textarea.',t),void 0!==o&&(0,m.p)('The "counterFormatter" property has been deprecated in favor of using the "counterFormatter" property on ion-input or ion-textarea.',t),void 0!==g&&(0,m.p)('The "fill" property has been deprecated in favor of using the "fill" property on ion-input or ion-textarea.',t),void 0!==f&&(0,m.p)('The "shape" property has been deprecated in favor of using the "shape" property on ion-input or ion-textarea.',t),(0,x.r)(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const t=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),e=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),o=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=t.length+e.length>1||t.length+o.length>1||t.length>0&&this.isClickable()}hasCover(){return 1===this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length&&!this.multipleInputs}isClickable(){return void 0!==this.href||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const t=this.el.querySelector(".ion-focusable");return this.canActivate()||null!==t}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}updateCounterOutput(t){var e,o;const{counter:g,counterFormatter:f,defaultCounterFormatter:c}=this;if(g&&!this.multipleInputs&&void 0!==t?.maxlength){const h=null!==(o=null===(e=t?.value)||void 0===e?void 0:e.toString().length)&&void 0!==o?o:0;if(void 0===f)this.counterString=c(h,t.maxlength);else try{this.counterString=f(h,t.maxlength)}catch(p){(0,m.a)("Exception in provided `counterFormatter`.",p),this.counterString=c(h,t.maxlength)}}}defaultCounterFormatter(t,e){return`${t} / ${e}`}hasStartEl(){null!==this.el.querySelector('[slot="start"]')&&this.el.classList.add("item-has-start-slot")}getFirstInteractive(){return this.el.querySelectorAll("ion-toggle:not([disabled]), ion-checkbox:not([disabled]), ion-radio:not([disabled]), ion-select:not([disabled])")[0]}render(){const{counterString:t,detail:e,detailIcon:o,download:g,fill:f,labelColorStyles:c,lines:h,disabled:p,href:S,rel:Q,shape:F,target:tt,routerAnimation:it,routerDirection:et,inheritedAriaAttributes:ot,multipleInputs:L}=this,I={},j=(0,d.b)(this),z=this.isClickable(),P=this.canActivate(),X=z?void 0===S?"button":"a":"div",nt="button"===X?{type:this.type}:{download:g,href:S,rel:Q,target:tt};let R={};const _=this.getFirstInteractive();(z||void 0!==_&&!L)&&(R={onClick:u=>{if(z&&(0,a.o)(S,u,et,it),void 0!==_&&!L){const st=u.composedPath()[0];u.isTrusted&&this.el.shadowRoot.contains(st)&&_.click()}}});const lt=void 0!==e?e:"ios"===j&&z;this.itemStyles.forEach(u=>{Object.assign(I,u)});const rt=p||I["item-interactive-disabled"]?"true":null,at=f||"none",$=(0,a.h)("ion-list",this.el)&&!(0,a.h)("ion-radio-group",this.el);return(0,i.h)(i.H,{"aria-disabled":rt,class:Object.assign(Object.assign(Object.assign({},I),c),(0,a.c)(this.color,{item:!0,[j]:!0,"item-lines-default":void 0===h,[`item-lines-${h}`]:void 0!==h,[`item-fill-${at}`]:!0,[`item-shape-${F}`]:void 0!==F,"item-has-interactive-control":void 0!==_,"item-disabled":p,"in-list":$,"item-multiple-inputs":this.multipleInputs,"ion-activatable":P,"ion-focusable":this.focusable,"item-rtl":"rtl"===document.dir})),role:$?"listitem":null},(0,i.h)(X,Object.assign({},nt,ot,{class:"item-native",part:"native",disabled:p},R),(0,i.h)("slot",{name:"start"}),(0,i.h)("div",{class:"item-inner"},(0,i.h)("div",{class:"input-wrapper"},(0,i.h)("slot",null)),(0,i.h)("slot",{name:"end"}),lt&&(0,i.h)("ion-icon",{icon:o,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":o===w.o}),(0,i.h)("div",{class:"item-inner-highlight"})),P&&"md"===j&&(0,i.h)("ion-ripple-effect",null),(0,i.h)("div",{class:"item-highlight"})),(0,i.h)("div",{class:"item-bottom"},(0,i.h)("slot",{name:"error"}),(0,i.h)("slot",{name:"helper"}),t&&(0,i.h)("ion-note",{class:"item-counter"},t)))}static get delegatesFocus(){return!0}get el(){return(0,i.f)(this)}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}};r.style={ios:':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:var(--ion-text-color, #000);--background-focused:var(--ion-text-color, #000);--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:1rem}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:1px;--padding-bottom:1px;--padding-start:.5em;--padding-end:.5em;min-height:24px;font-size:0.8125rem}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){-webkit-margin-start:0px;margin-inline-start:0px}::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',md:':host{--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:1}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:1rem;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}@supports (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{inset-inline-start:var(--position-offset)}}@supports not (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{left:var(--position-offset)}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}@supports selector(:dir(rtl)){:host(.item-fill-outline:dir(rtl)) .item-highlight{left:unset;right:unset;right:var(--position-offset)}}}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.5em}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0}::slotted(.button-small){--padding-top:2px;--padding-bottom:2px;--padding-start:.6em;--padding-end:.6em;min-height:25px;font-size:0.75rem}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid:dir(rtl)){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid.item-shape-round:dir(rtl)){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{-webkit-padding-start:32px;padding-inline-start:32px}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}'};const b=class{constructor(t){(0,i.r)(this,t),this.color=void 0,this.sticky=!1}render(){const t=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[t]:!0,"item-divider-sticky":this.sticky,item:!0})},(0,i.h)("slot",{name:"start"}),(0,i.h)("div",{class:"item-divider-inner"},(0,i.h)("div",{class:"item-divider-wrapper"},(0,i.h)("slot",null)),(0,i.h)("slot",{name:"end"})))}get el(){return(0,i.f)(this)}};b.style={ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-color-step-100, #e6e6e6);--color:var(--ion-color-step-850, #262626);--padding-start:16px;--inner-padding-end:8px;border-radius:0;position:relative;min-height:28px;font-size:1.0625rem;font-weight:600}:host([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}::slotted(h2:last-child) ::slotted(h3:last-child),::slotted(h4:last-child),::slotted(h5:last-child),::slotted(h6:last-child),::slotted(p:last-child){margin-bottom:0}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-color-step-400, #999999);--padding-start:16px;--inner-padding-end:16px;min-height:30px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:0.875rem}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:13px;margin-bottom:10px}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.7142857143em}:host(.ion-color) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(h3,h4,h5,h6){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:var(--ion-color-step-600, #666666);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}"};const A=class{constructor(t){(0,i.r)(this,t)}render(){const t=(0,d.b)(this);return(0,i.h)(i.H,{role:"group",class:{[t]:!0,[`item-group-${t}`]:!0,item:!0}})}};A.style={ios:"ion-item-group{display:block}",md:"ion-item-group{display:block}"};const O=class{constructor(t){(0,i.r)(this,t),this.ionColor=(0,i.d)(this,"ionColor",7),this.ionStyle=(0,i.d)(this,"ionStyle",7),this.inRange=!1,this.color=void 0,this.position=void 0,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate="floating"===this.position,this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:t}=this;this.ionColor.emit({"item-label-color":void 0!==t,[`ion-color-${t}`]:void 0!==t})}emitStyle(){const{inRange:t,position:e}=this;t||this.ionStyle.emit({label:!0,[`label-${e}`]:void 0!==e})}render(){const t=this.position,e=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[e]:!0,"in-item-color":(0,a.h)("ion-item.ion-color",this.el),[`label-${t}`]:void 0!==t,"label-no-animate":this.noAnimate,"label-rtl":"rtl"===document.dir})})}get el(){return(0,i.f)(this)}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}};O.style={ios:".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-ios-h{white-space:normal}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",md:'.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-wrap.sc-ion-label-md-h{white-space:normal}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:1.25rem;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}'};const E=class{constructor(t){(0,i.r)(this,t),this.lines=void 0,this.inset=!1}closeSlidingItems(){var t=this;return(0,C.Z)(function*(){const e=t.el.querySelector("ion-item-sliding");return!!e?.closeOpened&&e.closeOpened()})()}render(){const t=(0,d.b)(this),{lines:e,inset:o}=this;return(0,i.h)(i.H,{role:"list",class:{[t]:!0,[`list-${t}`]:!0,"list-inset":o,[`list-lines-${e}`]:void 0!==e,[`list-${t}-lines-${e}`]:void 0!==e}})}get el(){return(0,i.f)(this)}};E.style={ios:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):first-of-type,.list-md.list-inset ion-item-sliding:first-of-type ion-item{--border-radius:2px 2px 0 0}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-radius:0 0 2px 2px;--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-radius:2px;--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"};const M=class{constructor(t){(0,i.r)(this,t),this.color=void 0,this.lines=void 0}render(){const{lines:t}=this,e=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[e]:!0,[`list-header-lines-${t}`]:void 0!==t})},(0,i.h)("div",{class:"list-header-inner"},(0,i.h)("slot",null)))}};M.style={ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:min(1.375rem, 56.1px);font-weight:700;letter-spacing:0}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){--padding-top:0;--padding-bottom:0;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px;min-height:1.4em}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);min-height:45px;font-size:0.875rem}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"};const D=class{constructor(t){(0,i.r)(this,t),this.color=void 0}render(){const t=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[t]:!0})},(0,i.h)("slot",null))}};D.style={ios:":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6);font-size:max(14px, 1rem)}",md:":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:0.875rem}"};const T=class{constructor(t){(0,i.r)(this,t),this.animated=!1}render(){const t=this.animated&&d.c.getBoolean("animated",!0),e=(0,a.h)("ion-avatar",this.el)||(0,a.h)("ion-thumbnail",this.el),o=(0,d.b)(this);return(0,i.h)(i.H,{class:{[o]:!0,"skeleton-text-animated":t,"in-media":e}},(0,i.h)("span",null,"\xa0"))}get el(){return(0,i.f)(this)}};T.style=":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear, left top, right top, color-stop(8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)), color-stop(18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135)), color-stop(33%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)));background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}"},3567:(H,v,s)=>{s.d(v,{c:()=>x,g:()=>a,h:()=>i,o:()=>d});var C=s(5861);const i=(n,l)=>null!==l.closest(n),x=(n,l)=>"string"==typeof n&&n.length>0?Object.assign({"ion-color":!0,[`ion-color-${n}`]:!0},l):l,a=n=>{const l={};return(n=>void 0!==n?(Array.isArray(n)?n:n.split(" ")).filter(r=>null!=r).map(r=>r.trim()).filter(r=>""!==r):[])(n).forEach(r=>l[r]=!0),l},w=/^[a-z][a-z0-9+\-.]*:/,d=function(){var n=(0,C.Z)(function*(l,r,k,y){if(null!=l&&"#"!==l[0]&&!w.test(l)){const b=document.querySelector("ion-router");if(b)return r?.preventDefault(),b.push(l,k,y)}return!1});return function(r,k,y,b){return n.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5962.9043fc63a5d0595e.js b/5962.9043fc63a5d0595e.js new file mode 100644 index 00000000..297845b5 --- /dev/null +++ b/5962.9043fc63a5d0595e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5962],{5962:(W,x,s)=>{s.r(x),s.d(x,{ion_item:()=>r,ion_item_divider:()=>b,ion_item_group:()=>A,ion_label:()=>O,ion_list:()=>E,ion_list_header:()=>M,ion_note:()=>D,ion_skeleton_text:()=>T});var C=s(5861),i=s(9942),v=s(512),c=s(2400),a=s(4459),w=s(1076),d=s(5551);const r=class{constructor(t){(0,i.r)(this,t),this.labelColorStyles={},this.itemStyles=new Map,this.inheritedAriaAttributes={},this.multipleInputs=!1,this.focusable=!0,this.color=void 0,this.button=!1,this.detail=void 0,this.detailIcon=w.o,this.disabled=!1,this.download=void 0,this.fill=void 0,this.shape=void 0,this.href=void 0,this.rel=void 0,this.lines=void 0,this.counter=!1,this.routerAnimation=void 0,this.routerDirection="forward",this.target=void 0,this.type="button",this.counterFormatter=void 0,this.counterString=void 0}counterFormatterChanged(){this.updateCounterOutput(this.getFirstInput())}handleIonInput(t){this.counter&&t.target===this.getFirstInput()&&this.updateCounterOutput(t.target)}labelColorChanged(t){const{color:e}=this;void 0===e&&(this.labelColorStyles=t.detail)}itemStyle(t){t.stopPropagation();const e=t.target.tagName,o=t.detail,g={},f=this.itemStyles.get(e)||{};let m=!1;Object.keys(o).forEach(h=>{if(o[h]){const p=`item-${h}`;f[p]||(m=!0),g[p]=!0}}),!m&&Object.keys(g).length!==Object.keys(f).length&&(m=!0),m&&(this.itemStyles.set(e,g),(0,i.i)(this))}connectedCallback(){this.counter&&this.updateCounterOutput(this.getFirstInput()),this.hasStartEl()}componentWillLoad(){this.inheritedAriaAttributes=(0,v.k)(this.el,["aria-label"])}componentDidLoad(){const{el:t,counter:e,counterFormatter:o,fill:g,shape:f}=this;null!==t.querySelector('[slot="helper"]')&&(0,c.p)('The "helper" slot has been deprecated in favor of using the "helperText" property on ion-input or ion-textarea.',t),null!==t.querySelector('[slot="error"]')&&(0,c.p)('The "error" slot has been deprecated in favor of using the "errorText" property on ion-input or ion-textarea.',t),!0===e&&(0,c.p)('The "counter" property has been deprecated in favor of using the "counter" property on ion-input or ion-textarea.',t),void 0!==o&&(0,c.p)('The "counterFormatter" property has been deprecated in favor of using the "counterFormatter" property on ion-input or ion-textarea.',t),void 0!==g&&(0,c.p)('The "fill" property has been deprecated in favor of using the "fill" property on ion-input or ion-textarea.',t),void 0!==f&&(0,c.p)('The "shape" property has been deprecated in favor of using the "shape" property on ion-input or ion-textarea.',t),(0,v.r)(()=>{this.setMultipleInputs(),this.focusable=this.isFocusable()})}setMultipleInputs(){const t=this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio"),e=this.el.querySelectorAll("ion-input, ion-range, ion-searchbar, ion-segment, ion-textarea, ion-toggle"),o=this.el.querySelectorAll("ion-anchor, ion-button, a, button");this.multipleInputs=t.length+e.length>1||t.length+o.length>1||t.length>0&&this.isClickable()}hasCover(){return 1===this.el.querySelectorAll("ion-checkbox, ion-datetime, ion-select, ion-radio").length&&!this.multipleInputs}isClickable(){return void 0!==this.href||this.button}canActivate(){return this.isClickable()||this.hasCover()}isFocusable(){const t=this.el.querySelector(".ion-focusable");return this.canActivate()||null!==t}getFirstInput(){return this.el.querySelectorAll("ion-input, ion-textarea")[0]}updateCounterOutput(t){var e,o;const{counter:g,counterFormatter:f,defaultCounterFormatter:m}=this;if(g&&!this.multipleInputs&&void 0!==t?.maxlength){const h=null!==(o=null===(e=t?.value)||void 0===e?void 0:e.toString().length)&&void 0!==o?o:0;if(void 0===f)this.counterString=m(h,t.maxlength);else try{this.counterString=f(h,t.maxlength)}catch(p){(0,c.a)("Exception in provided `counterFormatter`.",p),this.counterString=m(h,t.maxlength)}}}defaultCounterFormatter(t,e){return`${t} / ${e}`}hasStartEl(){null!==this.el.querySelector('[slot="start"]')&&this.el.classList.add("item-has-start-slot")}getFirstInteractive(){return this.el.querySelectorAll("ion-toggle:not([disabled]), ion-checkbox:not([disabled]), ion-radio:not([disabled]), ion-select:not([disabled])")[0]}render(){const{counterString:t,detail:e,detailIcon:o,download:g,fill:f,labelColorStyles:m,lines:h,disabled:p,href:S,rel:Q,shape:F,target:tt,routerAnimation:it,routerDirection:et,inheritedAriaAttributes:ot,multipleInputs:L}=this,I={},j=(0,d.b)(this),z=this.isClickable(),P=this.canActivate(),X=z?void 0===S?"button":"a":"div",nt="button"===X?{type:this.type}:{download:g,href:S,rel:Q,target:tt};let R={};const _=this.getFirstInteractive();(z||void 0!==_&&!L)&&(R={onClick:u=>{if(z&&(0,a.o)(S,u,et,it),void 0!==_&&!L){const st=u.composedPath()[0];u.isTrusted&&this.el.shadowRoot.contains(st)&&_.click()}}});const lt=void 0!==e?e:"ios"===j&&z;this.itemStyles.forEach(u=>{Object.assign(I,u)});const rt=p||I["item-interactive-disabled"]?"true":null,at=f||"none",$=(0,a.h)("ion-list",this.el)&&!(0,a.h)("ion-radio-group",this.el);return(0,i.h)(i.H,{"aria-disabled":rt,class:Object.assign(Object.assign(Object.assign({},I),m),(0,a.c)(this.color,{item:!0,[j]:!0,"item-lines-default":void 0===h,[`item-lines-${h}`]:void 0!==h,[`item-fill-${at}`]:!0,[`item-shape-${F}`]:void 0!==F,"item-has-interactive-control":void 0!==_,"item-disabled":p,"in-list":$,"item-multiple-inputs":this.multipleInputs,"ion-activatable":P,"ion-focusable":this.focusable,"item-rtl":"rtl"===document.dir})),role:$?"listitem":null},(0,i.h)(X,Object.assign({},nt,ot,{class:"item-native",part:"native",disabled:p},R),(0,i.h)("slot",{name:"start"}),(0,i.h)("div",{class:"item-inner"},(0,i.h)("div",{class:"input-wrapper"},(0,i.h)("slot",null)),(0,i.h)("slot",{name:"end"}),lt&&(0,i.h)("ion-icon",{icon:o,lazy:!1,class:"item-detail-icon",part:"detail-icon","aria-hidden":"true","flip-rtl":o===w.o}),(0,i.h)("div",{class:"item-inner-highlight"})),P&&"md"===j&&(0,i.h)("ion-ripple-effect",null),(0,i.h)("div",{class:"item-highlight"})),(0,i.h)("div",{class:"item-bottom"},(0,i.h)("slot",{name:"error"}),(0,i.h)("slot",{name:"helper"}),t&&(0,i.h)("ion-note",{class:"item-counter"},t)))}static get delegatesFocus(){return!0}get el(){return(0,i.f)(this)}static get watchers(){return{counterFormatter:["counterFormatterChanged"]}}};r.style={ios:':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:44px;--transition:background-color 200ms linear, opacity 200ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0px 0px 0.55px 0px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:var(--ion-text-color, #000);--background-focused:var(--ion-text-color, #000);--background-hover:currentColor;--background-activated-opacity:.12;--background-focused-opacity:.15;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--color:var(--ion-item-color, var(--ion-text-color, #000));--highlight-height:0px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--bottom-padding-start:0px;font-size:1rem}:host(.ion-activated){--transition:none}:host(.ion-color.ion-focused) .item-native::after{background:#000;opacity:0.15}:host(.ion-color.ion-activated) .item-native::after{background:#000;opacity:0.12}:host(.item-interactive){--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-full){--border-width:0px 0px 0.55px 0px;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0px 0px 0.55px 0px;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0px;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0px;--show-inset-highlight:0}.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus) .item-highlight{border-top:none;border-right:none;border-left:none}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}::slotted(.button-small){--padding-top:1px;--padding-bottom:1px;--padding-start:.5em;--padding-end:.5em;min-height:24px;font-size:0.8125rem}::slotted(ion-avatar){width:36px;height:36px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px;margin-bottom:8px}:host(.item-radio) ::slotted(ion-label),:host(.item-toggle) ::slotted(ion-label){-webkit-margin-start:0px;margin-inline-start:0px}::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:10px}:host(.item-label-floating),:host(.item-label-stacked){--min-height:68px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:0}',md:':host{--inner-min-width:4rem;--border-radius:0px;--border-width:0px;--border-style:solid;--padding-top:0px;--padding-bottom:0px;--padding-end:0px;--padding-start:0px;--inner-border-width:0px;--inner-padding-top:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;--inner-padding-end:0px;--inner-box-shadow:none;--show-full-highlight:0;--show-inset-highlight:0;--detail-icon-color:initial;--detail-icon-font-size:1.25em;--detail-icon-opacity:0.25;--color-activated:var(--color);--color-focused:var(--color);--color-hover:var(--color);--ripple-color:currentColor;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:block;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);text-align:initial;text-decoration:none;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-native,:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) .item-inner{border-color:var(--ion-color-shade)}:host(.ion-activated) .item-native{color:var(--color-activated)}:host(.ion-activated) .item-native::after{background:var(--background-activated);opacity:var(--background-activated-opacity)}:host(.ion-color.ion-activated) .item-native{color:var(--ion-color-contrast)}:host(.ion-focused) .item-native{color:var(--color-focused)}:host(.ion-focused) .item-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}:host(.ion-color.ion-focused) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-focused) .item-native::after{background:var(--ion-color-contrast)}@media (any-hover: hover){:host(.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--color-hover)}:host(.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native{color:var(--ion-color-contrast)}:host(.ion-color.ion-activatable:not(.ion-focused):hover) .item-native::after{background:var(--ion-color-contrast)}}:host(.item-has-interactive-control){cursor:pointer}:host(.item-interactive-disabled:not(.item-multiple-inputs)){cursor:default;pointer-events:none}:host(.item-disabled){cursor:default;opacity:0.3;pointer-events:none}.item-native{border-radius:var(--border-radius);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;position:relative;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-pack:inherit;justify-content:inherit;width:100%;min-height:var(--min-height);-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);outline:none;background:var(--background);overflow:inherit;z-index:1;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}[dir=rtl] .item-native{padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){.item-native:dir(rtl){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.item-legacy) .item-native{-ms-flex-wrap:unset;flex-wrap:unset}.item-native::-moz-focus-inner{border:0}.item-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0;-webkit-transition:var(--transition);transition:var(--transition);z-index:-1}button,a{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.item-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;position:relative;-ms-flex:1 0 0px;flex:1 0 0;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-width:var(--inner-min-width);max-width:100%;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);-webkit-box-shadow:var(--inner-box-shadow);box-shadow:var(--inner-box-shadow);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]) .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}:host(.item-legacy) .item-inner{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}.item-bottom{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--inner-padding-end) + var(--ion-safe-area-right, 0px));display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host-context([dir=rtl]) .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}[dir=rtl] .item-bottom{padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}@supports selector(:dir(rtl)){.item-bottom:dir(rtl){padding-left:calc(var(--inner-padding-end) + var(--ion-safe-area-left, 0px));padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px))}}.item-detail-icon{-webkit-margin-start:calc(var(--inner-padding-end) / 2);margin-inline-start:calc(var(--inner-padding-end) / 2);-webkit-margin-end:-6px;margin-inline-end:-6px;color:var(--detail-icon-color);font-size:var(--detail-icon-font-size);opacity:var(--detail-icon-opacity)}::slotted(ion-icon){font-size:1.6em}::slotted(ion-button){--margin-top:0;--margin-bottom:0;--margin-start:0;--margin-end:0;z-index:1}::slotted(ion-label:not([slot=end])){-ms-flex:1;flex:1;width:-webkit-min-content;width:-moz-min-content;width:min-content;max-width:100%}:host(.item-input){-ms-flex-align:center;align-items:center}.input-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1 0 auto;flex:1 0 auto;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;max-width:100%;text-overflow:ellipsis;overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.item-legacy) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-wrap:unset;flex-wrap:unset;max-width:unset}:host(.item-label-stacked),:host(.item-label-floating){-ms-flex-align:start;align-items:start}:host(.item-label-stacked) .input-wrapper,:host(.item-label-floating) .input-wrapper{-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column}.item-highlight,.item-inner-highlight{left:0;right:0;top:0;bottom:0;border-radius:inherit;position:absolute;width:100%;height:100%;-webkit-transform:scaleX(0);transform:scaleX(0);-webkit-transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:border-bottom-width 200ms, -webkit-transform 200ms;transition:transform 200ms, border-bottom-width 200ms;transition:transform 200ms, border-bottom-width 200ms, -webkit-transform 200ms;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus),:host(.item-interactive.ion-touched.ion-invalid){--full-highlight-height:calc(var(--highlight-height) * var(--show-full-highlight));--inset-highlight-height:calc(var(--highlight-height) * var(--show-inset-highlight))}:host(.ion-focused) .item-highlight,:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-highlight,:host(.item-has-focus) .item-inner-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.ion-focused) .item-highlight,:host(.item-has-focus) .item-highlight{border-width:var(--full-highlight-height);opacity:var(--show-full-highlight)}:host(.ion-focused) .item-inner-highlight,:host(.item-has-focus) .item-inner-highlight{border-bottom-width:var(--inset-highlight-height);opacity:var(--show-inset-highlight)}:host(.ion-focused.item-fill-solid) .item-highlight,:host(.item-has-focus.item-fill-solid) .item-highlight{border-width:calc(var(--full-highlight-height) - 1px)}:host(.ion-focused) .item-inner-highlight,:host(.ion-focused:not(.item-fill-outline)) .item-highlight,:host(.item-has-focus) .item-inner-highlight,:host(.item-has-focus:not(.item-fill-outline)) .item-highlight{border-top:none;border-right:none;border-left:none}:host(.item-interactive.ion-focused),:host(.item-interactive.item-has-focus){--highlight-background:var(--highlight-color-focused)}:host(.item-interactive.ion-valid){--highlight-background:var(--highlight-color-valid)}:host(.item-interactive.ion-invalid){--highlight-background:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=helper]){display:none}::slotted([slot=error]){display:none;color:var(--highlight-color-invalid)}:host(.item-interactive.ion-invalid) ::slotted([slot=error]){display:block}:host(:not(.item-label)) ::slotted(ion-select.legacy-select){--padding-start:0;max-width:none}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0;-ms-flex-item-align:stretch;align-self:stretch;width:100%;max-width:100%}:host(:not(.item-label)) ::slotted(ion-datetime){--padding-start:0}:host(.item-label-stacked) ::slotted(ion-datetime),:host(.item-label-floating) ::slotted(ion-datetime){--padding-start:0;width:100%}:host(.item-multiple-inputs) ::slotted(ion-checkbox),:host(.item-multiple-inputs) ::slotted(ion-datetime),:host(.item-multiple-inputs) ::slotted(ion-radio),:host(.item-multiple-inputs) ::slotted(ion-select.legacy-select){position:relative}:host(.item-textarea){-ms-flex-align:stretch;align-items:stretch}::slotted(ion-reorder[slot]){margin-top:0;margin-bottom:0}ion-ripple-effect{color:var(--ripple-color)}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted([slot=helper]),::slotted([slot=error]),.item-counter{padding-top:5px;font-size:0.75rem;z-index:1}.item-counter{-webkit-margin-start:auto;margin-inline-start:auto;color:var(--ion-color-step-550, #737373);white-space:nowrap;-webkit-padding-start:16px;padding-inline-start:16px}@media (prefers-reduced-motion: reduce){.item-highlight,.item-inner-highlight{-webkit-transition:none;transition:none}}:host{--min-height:48px;--background:var(--ion-item-background, var(--ion-background-color, #fff));--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--background-activated-opacity:0;--background-focused-opacity:.12;--background-hover-opacity:.04;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--color:var(--ion-item-color, var(--ion-text-color, #000));--transition:opacity 15ms linear, background-color 15ms linear;--padding-start:16px;--inner-padding-end:16px;--inner-border-width:0 0 1px 0;--highlight-height:1px;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);font-size:1rem;font-weight:normal;text-transform:none}:host(.item-fill-outline){--highlight-height:2px}:host(.item-fill-none.item-interactive.ion-focus) .item-highlight,:host(.item-fill-none.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-none.item-interactive.ion-focus) .item-native,:host(.item-fill-none.item-interactive.item-has-focus) .item-native,:host(.item-fill-none.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1)}:host(.item-fill-outline.item-interactive.ion-focus) .item-highlight,:host(.item-fill-outline.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-highlight{border-width:var(--full-highlight-height);border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-outline.item-interactive.ion-touched.ion-invalid) .item-native{border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-highlight,:host(.item-fill-solid.item-interactive.item-has-focus) .item-highlight,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-highlight{-webkit-transform:scaleX(1);transform:scaleX(1);border-width:0 0 var(--full-highlight-height) 0;border-style:var(--border-style);border-color:var(--highlight-background)}:host(.item-fill-solid.item-interactive.ion-focus) .item-native,:host(.item-fill-solid.item-interactive.item-has-focus) .item-native,:host(.item-fill-solid.item-interactive.ion-touched.ion-invalid) .item-native{border-bottom-color:var(--highlight-background)}:host(.ion-color.ion-activated) .item-native::after{background:transparent}:host(.item-has-focus) .item-native{caret-color:var(--highlight-background)}:host(.item-interactive){--border-width:0 0 1px 0;--inner-border-width:0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-full){--border-width:0 0 1px 0;--show-full-highlight:1;--show-inset-highlight:0}:host(.item-lines-inset){--inner-border-width:0 0 1px 0;--show-full-highlight:0;--show-inset-highlight:1}:host(.item-lines-inset),:host(.item-lines-none){--border-width:0;--show-full-highlight:0}:host(.item-lines-full),:host(.item-lines-none){--inner-border-width:0;--show-inset-highlight:0}:host(.item-fill-outline) .item-highlight{--position-offset:calc(-1 * var(--border-width));top:var(--position-offset);width:calc(100% + 2 * var(--border-width));height:calc(100% + 2 * var(--border-width));-webkit-transition:none;transition:none}@supports (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{inset-inline-start:var(--position-offset)}}@supports not (inset-inline-start: 0){:host(.item-fill-outline) .item-highlight{left:var(--position-offset)}:host-context([dir=rtl]):host(.item-fill-outline) .item-highlight,:host-context([dir=rtl]).item-fill-outline .item-highlight{left:unset;right:unset;right:var(--position-offset)}@supports selector(:dir(rtl)){:host(.item-fill-outline:dir(rtl)) .item-highlight{left:unset;right:unset;right:var(--position-offset)}}}:host(.item-fill-outline.ion-focused) .item-native,:host(.item-fill-outline.item-has-focus) .item-native{border-color:transparent}:host(.item-multi-line) ::slotted([slot=start]),:host(.item-multi-line) ::slotted([slot=end]){margin-top:16px;margin-bottom:16px;-ms-flex-item-align:start;align-self:flex-start}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}:host(.item-fill-solid) ::slotted([slot=start]),:host(.item-fill-solid) ::slotted([slot=end]),:host(.item-fill-outline) ::slotted([slot=start]),:host(.item-fill-outline) ::slotted([slot=end]){-ms-flex-item-align:center;align-self:center}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.5em}:host(.ion-color:not(.item-fill-solid):not(.item-fill-outline)) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}:host(.item-fill-solid) ::slotted(ion-icon[slot=start]),:host(.item-fill-outline) ::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-toggle[slot=start]),::slotted(ion-toggle[slot=end]){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]:not([slot=helper]):not([slot=error])){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:10px;margin-bottom:10px}:host(.item-label-stacked) ::slotted([slot=end]),:host(.item-label-floating) ::slotted([slot=end]){margin-top:7px;margin-bottom:7px}:host(.item-label-fixed) ::slotted(ion-select.legacy-select),:host(.item-label-fixed) ::slotted(ion-datetime){--padding-start:8px}:host(.item-toggle) ::slotted(ion-label),:host(.item-radio) ::slotted(ion-label){-webkit-margin-start:0;margin-inline-start:0}::slotted(.button-small){--padding-top:2px;--padding-bottom:2px;--padding-start:.6em;--padding-end:.6em;min-height:25px;font-size:0.75rem}:host(.item-label-floating),:host(.item-label-stacked){--min-height:55px}:host(.item-label-stacked) ::slotted(ion-select.legacy-select),:host(.item-label-floating) ::slotted(ion-select.legacy-select){--padding-top:8px;--padding-bottom:8px;--padding-start:0}:host(.ion-focused:not(.ion-color)) ::slotted(.label-stacked),:host(.ion-focused:not(.ion-color)) ::slotted(.label-floating),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-stacked),:host(.item-has-focus:not(.ion-color)) ::slotted(.label-floating){color:var(--ion-color-primary, #3880ff)}:host(.ion-color){--highlight-color-focused:var(--ion-color-contrast)}:host(.item-label-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid.ion-color),:host(.item-fill-outline.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.item-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--background-hover:var(--ion-color-step-100, #e6e6e6);--background-focused:var(--ion-color-step-150, #d9d9d9);--border-width:0 0 1px 0;--inner-border-width:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid),:host-context([dir=rtl]).item-fill-solid{border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid:dir(rtl)){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.item-fill-solid) .item-native{--border-color:var(--ion-color-step-500, gray)}:host(.item-fill-solid.ion-focused) .item-native,:host(.item-fill-solid.item-has-focus) .item-native{--background:var(--background-focused)}:host(.item-fill-solid.item-shape-round){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.item-fill-solid.item-shape-round),:host-context([dir=rtl]).item-fill-solid.item-shape-round{border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.item-fill-solid.item-shape-round:dir(rtl)){border-top-left-radius:16px;border-top-right-radius:16px;border-bottom-right-radius:0;border-bottom-left-radius:0}}@media (any-hover: hover){:host(.item-fill-solid:hover) .item-native{--background:var(--background-hover);--border-color:var(--ion-color-step-750, #404040)}}:host(.item-fill-outline){--ripple-color:transparent;--background-focused:transparent;--background-hover:transparent;--border-color:var(--ion-color-step-500, gray);--border-width:1px;border:none;overflow:visible}:host(.item-fill-outline) .item-native{--native-padding-left:16px;border-radius:4px}:host(.item-fill-outline.item-shape-round) .item-native{--inner-padding-start:16px;border-radius:28px}:host(.item-fill-outline.item-shape-round) .item-bottom{-webkit-padding-start:32px;padding-inline-start:32px}:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.ion-focused) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-focus) .item-native ::slotted(ion-textarea:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-input:not(:first-child)),:host(.item-fill-outline.item-label-floating.item-has-value) .item-native ::slotted(ion-textarea:not(:first-child)){-webkit-transform:translateY(-14px);transform:translateY(-14px)}@media (any-hover: hover){:host(.item-fill-outline:hover) .item-native{--border-color:var(--ion-color-step-750, #404040)}}.item-counter{letter-spacing:0.0333333333em}'};const b=class{constructor(t){(0,i.r)(this,t),this.color=void 0,this.sticky=!1}render(){const t=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[t]:!0,"item-divider-sticky":this.sticky,item:!0})},(0,i.h)("slot",{name:"start"}),(0,i.h)("div",{class:"item-divider-inner"},(0,i.h)("div",{class:"item-divider-wrapper"},(0,i.h)("slot",null)),(0,i.h)("slot",{name:"end"})))}get el(){return(0,i.f)(this)}};b.style={ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-color-step-100, #e6e6e6);--color:var(--ion-color-step-850, #262626);--padding-start:16px;--inner-padding-end:8px;border-radius:0;position:relative;min-height:28px;font-size:1.0625rem;font-weight:600}:host([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:2px;margin-bottom:2px}::slotted(ion-icon[slot=start]),::slotted(ion-icon[slot=end]){margin-top:7px;margin-bottom:7px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h3),::slotted(h4),::slotted(h5),::slotted(h6){margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}::slotted(h2:last-child) ::slotted(h3:last-child),::slotted(h4:last-child),::slotted(h5:last-child),::slotted(h6:last-child),::slotted(p:last-child){margin-bottom:0}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--inner-padding-top:0px;--inner-padding-end:0px;--inner-padding-bottom:0px;--inner-padding-start:0px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);padding-right:var(--padding-end);padding-left:calc(var(--padding-start) + var(--ion-safe-area-left, 0px));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);overflow:hidden;z-index:100;-webkit-box-sizing:border-box;box-sizing:border-box}:host-context([dir=rtl]){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--padding-start) + var(--ion-safe-area-right, 0px));padding-left:var(--padding-end)}}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.item-divider-sticky){position:-webkit-sticky;position:sticky;top:0}.item-divider-inner{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-top:var(--inner-padding-top);padding-bottom:var(--inner-padding-bottom);padding-right:calc(var(--ion-safe-area-right, 0px) + var(--inner-padding-end));padding-left:var(--inner-padding-start);display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border:0;overflow:hidden}:host-context([dir=rtl]) .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}[dir=rtl] .item-divider-inner{padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}@supports selector(:dir(rtl)){.item-divider-inner:dir(rtl){padding-right:var(--inner-padding-start);padding-left:calc(var(--ion-safe-area-left, 0px) + var(--inner-padding-end))}}.item-divider-wrapper{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;text-overflow:ellipsis;overflow:hidden}:host{--background:var(--ion-background-color, #fff);--color:var(--ion-color-step-400, #999999);--padding-start:16px;--inner-padding-end:16px;min-height:30px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));font-size:0.875rem}::slotted([slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted([slot=end]){-webkit-margin-start:32px;margin-inline-start:32px}::slotted(ion-label){margin-left:0;margin-right:0;margin-top:13px;margin-bottom:10px}::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54);font-size:1.7142857143em}:host(.ion-color) ::slotted(ion-icon){color:var(--ion-color-contrast)}::slotted(ion-icon[slot]){margin-top:12px;margin-bottom:12px}::slotted(ion-icon[slot=start]){-webkit-margin-end:32px;margin-inline-end:32px}::slotted(ion-icon[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(ion-note){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-ms-flex-item-align:start;align-self:flex-start;font-size:0.6875rem}::slotted(ion-note[slot]){padding-left:0;padding-right:0;padding-top:18px;padding-bottom:10px}::slotted(ion-note[slot=start]){-webkit-padding-end:16px;padding-inline-end:16px}::slotted(ion-note[slot=end]){-webkit-padding-start:16px;padding-inline-start:16px}::slotted(ion-avatar){width:40px;height:40px}::slotted(ion-thumbnail){--size:56px}::slotted(ion-avatar),::slotted(ion-thumbnail){margin-top:8px;margin-bottom:8px}::slotted(ion-avatar[slot=start]),::slotted(ion-thumbnail[slot=start]){-webkit-margin-end:16px;margin-inline-end:16px}::slotted(ion-avatar[slot=end]),::slotted(ion-thumbnail[slot=end]){-webkit-margin-start:16px;margin-inline-start:16px}::slotted(h1){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px}::slotted(h2){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(h3,h4,h5,h6){margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px}::slotted(p){margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;color:var(--ion-color-step-600, #666666);font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}"};const A=class{constructor(t){(0,i.r)(this,t)}render(){const t=(0,d.b)(this);return(0,i.h)(i.H,{role:"group",class:{[t]:!0,[`item-group-${t}`]:!0,item:!0}})}};A.style={ios:"ion-item-group{display:block}",md:"ion-item-group{display:block}"};const O=class{constructor(t){(0,i.r)(this,t),this.ionColor=(0,i.d)(this,"ionColor",7),this.ionStyle=(0,i.d)(this,"ionStyle",7),this.inRange=!1,this.color=void 0,this.position=void 0,this.noAnimate=!1}componentWillLoad(){this.inRange=!!this.el.closest("ion-range"),this.noAnimate="floating"===this.position,this.emitStyle(),this.emitColor()}componentDidLoad(){this.noAnimate&&setTimeout(()=>{this.noAnimate=!1},1e3)}colorChanged(){this.emitColor()}positionChanged(){this.emitStyle()}emitColor(){const{color:t}=this;this.ionColor.emit({"item-label-color":void 0!==t,[`ion-color-${t}`]:void 0!==t})}emitStyle(){const{inRange:t,position:e}=this;t||this.ionStyle.emit({label:!0,[`label-${e}`]:void 0!==e})}render(){const t=this.position,e=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[e]:!0,"in-item-color":(0,a.h)("ion-item.ion-color",this.el),[`label-${t}`]:void 0!==t,"label-no-animate":this.noAnimate,"label-rtl":"rtl"===document.dir})})}get el(){return(0,i.f)(this)}static get watchers(){return{color:["colorChanged"],position:["positionChanged"]}}};O.style={ios:".item.sc-ion-label-ios-h,.item .sc-ion-label-ios-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-ios-h,.item-legacy .sc-ion-label-ios-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-ios-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-ios-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-ios-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-ios-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-ios-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-ios-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-ios-h,.item-input .sc-ion-label-ios-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-ios-h,.item-textarea .sc-ion-label-ios-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-ios-h,.item-skeleton-text .sc-ion-label-ios-h{overflow:hidden}.label-fixed.sc-ion-label-ios-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-ios-h,.label-floating.sc-ion-label-ios-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-ios-h{-webkit-transition:none;transition:none}.sc-ion-label-ios-s h1,.sc-ion-label-ios-s h2,.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-ios-h{font-size:0.875rem;line-height:1.5}.label-stacked.sc-ion-label-ios-h{margin-bottom:4px;font-size:0.875rem}.label-floating.sc-ion-label-ios-h{margin-bottom:0;-webkit-transform:translate(0, 29px);transform:translate(0, 29px);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:-webkit-transform 150ms ease-in-out;transition:-webkit-transform 150ms ease-in-out;transition:transform 150ms ease-in-out;transition:transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out}[dir=rtl].sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl] .sc-ion-label-ios-h -no-combinator.label-floating.sc-ion-label-ios-h,[dir=rtl].label-floating.sc-ion-label-ios-h,[dir=rtl] .label-floating.sc-ion-label-ios-h{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){.label-floating.sc-ion-label-ios-h:dir(rtl){-webkit-transform-origin:right top;transform-origin:right top}}.item-textarea.label-floating.sc-ion-label-ios-h,.item-textarea .label-floating.sc-ion-label-ios-h{-webkit-transform:translate(0, 28px);transform:translate(0, 28px)}.item-has-focus.label-floating.sc-ion-label-ios-h,.item-has-focus .label-floating.sc-ion-label-ios-h,.item-has-placeholder.sc-ion-label-ios-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-ios-h,.item-has-value.label-floating.sc-ion-label-ios-h,.item-has-value .label-floating.sc-ion-label-ios-h{-webkit-transform:scale(0.82);transform:scale(0.82)}.sc-ion-label-ios-s h1{margin-left:0;margin-right:0;margin-top:3px;margin-bottom:2px;font-size:1.375rem;font-weight:normal}.sc-ion-label-ios-s h2{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.0625rem;font-weight:normal}.sc-ion-label-ios-s h3,.sc-ion-label-ios-s h4,.sc-ion-label-ios-s h5,.sc-ion-label-ios-s h6{margin-left:0;margin-right:0;margin-top:0;margin-bottom:3px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-ios-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:normal;text-overflow:inherit;overflow:inherit}.sc-ion-label-ios-s>p{color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4)}.sc-ion-label-ios-h.in-item-color.sc-ion-label-ios-s>p{color:inherit}.sc-ion-label-ios-s h2:last-child,.sc-ion-label-ios-s h3:last-child,.sc-ion-label-ios-s h4:last-child,.sc-ion-label-ios-s h5:last-child,.sc-ion-label-ios-s h6:last-child,.sc-ion-label-ios-s p:last-child{margin-bottom:0}",md:'.item.sc-ion-label-md-h,.item .sc-ion-label-md-h{--color:initial;display:block;color:var(--color);font-family:var(--ion-font-family, inherit);font-size:inherit;text-overflow:ellipsis;-webkit-box-sizing:border-box;box-sizing:border-box}.item-legacy.sc-ion-label-md-h,.item-legacy .sc-ion-label-md-h{white-space:nowrap;overflow:hidden}.item.sc-ion-label-md-h:not(.item-input):not(.item-legacy),.item:not(.item-input):not(.item-legacy) .sc-ion-label-md-h{-ms-flex-positive:1;flex-grow:1}.ion-color.sc-ion-label-md-h{color:var(--ion-color-base)}.ion-text-nowrap.sc-ion-label-md-h{overflow:hidden}.item-interactive-disabled.sc-ion-label-md-h:not(.item-multiple-inputs),.item-interactive-disabled:not(.item-multiple-inputs) .sc-ion-label-md-h{cursor:default;opacity:0.3;pointer-events:none}.item-input.sc-ion-label-md-h,.item-input .sc-ion-label-md-h{-ms-flex:initial;flex:initial;max-width:200px;pointer-events:none}.item-textarea.sc-ion-label-md-h,.item-textarea .sc-ion-label-md-h{-ms-flex-item-align:baseline;align-self:baseline}.item-skeleton-text.sc-ion-label-md-h,.item-skeleton-text .sc-ion-label-md-h{overflow:hidden}.label-fixed.sc-ion-label-md-h{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-bottom:0;-ms-flex-item-align:stretch;align-self:stretch;width:auto;max-width:100%}.label-no-animate.label-floating.sc-ion-label-md-h{-webkit-transition:none;transition:none}.sc-ion-label-md-s h1,.sc-ion-label-md-s h2,.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{text-overflow:inherit;overflow:inherit}.ion-text-wrap.sc-ion-label-md-h{line-height:1.5}.label-stacked.sc-ion-label-md-h,.label-floating.sc-ion-label-md-h{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:top left;transform-origin:top left}.label-stacked.label-rtl.sc-ion-label-md-h,.label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform-origin:top right;transform-origin:top right}.label-stacked.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.label-floating.sc-ion-label-md-h{-webkit-transform:translateY(96%);transform:translateY(96%);-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1)}.ion-focused.label-floating.sc-ion-label-md-h,.ion-focused .label-floating.sc-ion-label-md-h,.item-has-focus.label-floating.sc-ion-label-md-h,.item-has-focus .label-floating.sc-ion-label-md-h,.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-has-value.label-floating.sc-ion-label-md-h,.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h{-webkit-transform:translateY(-6px) scale(0.75);transform:translateY(-6px) scale(0.75);position:relative;max-width:-webkit-min-content;max-width:-moz-min-content;max-width:min-content;background-color:var(--ion-item-background, var(--ion-background-color, #fff));overflow:visible;z-index:3}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{position:absolute;width:4px;height:100%;background-color:var(--ion-item-background, var(--ion-background-color, #fff));content:""}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::before,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::before,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::before,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::before{left:calc(-1 * 4px)}.item-fill-outline.ion-focused.label-floating.sc-ion-label-md-h::after,.item-fill-outline.ion-focused .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-focus .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).label-floating::after,.item-fill-outline.item-has-placeholder:not(.item-input) .label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value.label-floating.sc-ion-label-md-h::after,.item-fill-outline.item-has-value .label-floating.sc-ion-label-md-h::after{right:calc(-1 * 4px)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.sc-ion-label-md-h{-webkit-transform:translateX(-32px) translateY(-6px) scale(0.75);transform:translateX(-32px) translateY(-6px) scale(0.75)}.item-fill-outline.ion-focused.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.ion-focused.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-focus.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-placeholder.sc-ion-label-md-h:not(.item-input).item-has-start-slot.label-floating.label-rtl,.item-fill-outline.item-has-placeholder:not(.item-input).item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot.label-floating.label-rtl.sc-ion-label-md-h,.item-fill-outline.item-has-value.item-has-start-slot .label-floating.label-rtl.sc-ion-label-md-h{-webkit-transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75);transform:translateX(calc(-1 * -32px)) translateY(-6px) scale(0.75)}.ion-focused.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-primary, #3880ff)}.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-contrast)}.item-fill-solid.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.ion-focused.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-solid.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-stacked.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color.label-floating.sc-ion-label-md-h:not(.ion-color),.item-fill-outline.item-has-focus.ion-color .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--ion-color-base)}.ion-invalid.ion-touched.label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-stacked.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched.label-floating.sc-ion-label-md-h:not(.ion-color),.ion-invalid.ion-touched .label-floating.sc-ion-label-md-h:not(.ion-color){color:var(--highlight-color-invalid)}.sc-ion-label-md-s h1{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:1.5rem;font-weight:normal}.sc-ion-label-md-s h2{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:1rem;font-weight:normal}.sc-ion-label-md-s h3,.sc-ion-label-md-s h4,.sc-ion-label-md-s h5,.sc-ion-label-md-s h6{margin-left:0;margin-right:0;margin-top:2px;margin-bottom:2px;font-size:0.875rem;font-weight:normal;line-height:normal}.sc-ion-label-md-s p{margin-left:0;margin-right:0;margin-top:0;margin-bottom:2px;font-size:0.875rem;line-height:1.25rem;text-overflow:inherit;overflow:inherit}.sc-ion-label-md-s>p{color:var(--ion-color-step-600, #666666)}.sc-ion-label-md-h.in-item-color.sc-ion-label-md-s>p{color:inherit}'};const E=class{constructor(t){(0,i.r)(this,t),this.lines=void 0,this.inset=!1}closeSlidingItems(){var t=this;return(0,C.Z)(function*(){const e=t.el.querySelector("ion-item-sliding");return!!e?.closeOpened&&e.closeOpened()})()}render(){const t=(0,d.b)(this),{lines:e,inset:o}=this;return(0,i.h)(i.H,{role:"list",class:{[t]:!0,[`list-${t}`]:!0,"list-inset":o,[`list-lines-${e}`]:void 0!==e,[`list-${t}-lines-${e}`]:void 0!==e}})}get el(){return(0,i.f)(this)}};E.style={ios:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-ios{background:var(--ion-item-background, var(--ion-background-color, #fff))}.list-ios.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:10px}.list-ios.list-inset ion-item:only-child,.list-ios.list-inset ion-item:not(:only-of-type):last-of-type,.list-ios.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-ios.list-inset+ion-list.list-inset{margin-top:0}.list-ios-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-ios-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 0.55px 0}.list-ios-lines-inset .item-lines-default{--inner-border-width:0 0 0.55px 0;--border-width:0px}ion-card .list-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:"ion-list{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:block;contain:content;list-style-type:none}ion-list.list-inset{-webkit-transform:translateZ(0);transform:translateZ(0);overflow:hidden}.list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;background:var(--ion-item-background, var(--ion-background-color, #fff))}@supports (inset-inline-start: 0){.list-md>.input:last-child::after{inset-inline-start:0}}@supports not (inset-inline-start: 0){.list-md>.input:last-child::after{left:0}:host-context([dir=rtl]) .list-md>.input:last-child::after{left:unset;right:unset;right:0}[dir=rtl] .list-md>.input:last-child::after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.list-md>.input:last-child::after:dir(rtl){left:unset;right:unset;right:0}}}.list-md.list-inset{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px;border-radius:2px}.list-md.list-inset ion-item:not(:only-of-type):last-of-type,.list-md.list-inset ion-item-sliding:last-of-type ion-item{--border-width:0;--inner-border-width:0}.list-md.list-inset ion-item:only-child{--border-width:0;--inner-border-width:0}.list-md.list-inset+ion-list.list-inset{margin-top:0}.list-md-lines-none .item-lines-default{--inner-border-width:0px;--border-width:0px}.list-md-lines-full .item-lines-default{--inner-border-width:0px;--border-width:0 0 1px 0}.list-md-lines-inset .item-lines-default{--inner-border-width:0 0 1px 0;--border-width:0px}ion-card .list-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"};const M=class{constructor(t){(0,i.r)(this,t),this.color=void 0,this.lines=void 0}render(){const{lines:t}=this,e=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[e]:!0,[`list-header-lines-${t}`]:void 0!==t})},(0,i.h)("div",{class:"list-header-inner"},(0,i.h)("slot",null)))}};M.style={ios:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-color-step-850, #262626);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);position:relative;-ms-flex-align:end;align-items:flex-end;font-size:min(1.375rem, 56.1px);font-weight:700;letter-spacing:0}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}::slotted(ion-button),::slotted(ion-label){margin-top:29px;margin-bottom:6px}::slotted(ion-button){--padding-top:0;--padding-bottom:0;-webkit-margin-start:3px;margin-inline-start:3px;-webkit-margin-end:3px;margin-inline-end:3px;min-height:1.4em}:host(.list-header-lines-full){--border-width:0 0 0.55px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 0.55px 0}",md:":host{--border-style:solid;--border-width:0;--inner-border-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:40px;border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);color:var(--color);overflow:hidden}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.list-header-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-direction:inherit;flex-direction:inherit;-ms-flex-align:inherit;align-items:inherit;-ms-flex-item-align:stretch;align-self:stretch;min-height:inherit;border-width:var(--inner-border-width);border-style:var(--border-style);border-color:var(--border-color);overflow:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}::slotted(ion-label){-ms-flex:1 1 auto;flex:1 1 auto}:host(.list-header-lines-inset),:host(.list-header-lines-none){--border-width:0}:host(.list-header-lines-full),:host(.list-header-lines-none){--inner-border-width:0}:host{--background:transparent;--color:var(--ion-text-color, #000);--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));padding-right:var(--ion-safe-area-right);padding-left:calc(var(--ion-safe-area-left, 0px) + 16px);min-height:45px;font-size:0.875rem}:host-context([dir=rtl]){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}@supports selector(:dir(rtl)){:host(:dir(rtl)){padding-right:calc(var(--ion-safe-area-right, 0px) + 16px);padding-left:var(--ion-safe-area-left)}}:host(.list-header-lines-full){--border-width:0 0 1px 0}:host(.list-header-lines-inset){--inner-border-width:0 0 1px 0}"};const D=class{constructor(t){(0,i.r)(this,t),this.color=void 0}render(){const t=(0,d.b)(this);return(0,i.h)(i.H,{class:(0,a.c)(this.color,{[t]:!0})},(0,i.h)("slot",null))}};D.style={ios:":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-350, #a6a6a6);font-size:max(14px, 1rem)}",md:":host{color:var(--color);font-family:var(--ion-font-family, inherit);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.ion-color){color:var(--ion-color-base)}:host{--color:var(--ion-color-step-600, #666666);font-size:0.875rem}"};const T=class{constructor(t){(0,i.r)(this,t),this.ionStyle=(0,i.d)(this,"ionStyle",7),this.animated=!1}componentWillLoad(){this.emitStyle()}emitStyle(){this.ionStyle.emit({"skeleton-text":!0})}render(){const t=this.animated&&d.c.getBoolean("animated",!0),e=(0,a.h)("ion-avatar",this.el)||(0,a.h)("ion-thumbnail",this.el),o=(0,d.b)(this);return(0,i.h)(i.H,{class:{[o]:!0,"skeleton-text-animated":t,"in-media":e}},(0,i.h)("span",null,"\xa0"))}get el(){return(0,i.f)(this)}};T.style=":host{--background:rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065);border-radius:var(--border-radius, inherit);display:block;width:100%;height:inherit;margin-top:4px;margin-bottom:4px;background:var(--background);line-height:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none}span{display:inline-block}:host(.in-media){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;height:100%}:host(.skeleton-text-animated){position:relative;background:-webkit-gradient(linear, left top, right top, color-stop(8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)), color-stop(18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135)), color-stop(33%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065)));background:linear-gradient(to right, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 8%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.135) 18%, rgba(var(--background-rgb, var(--ion-text-color-rgb, 0, 0, 0)), 0.065) 33%);background-size:800px 104px;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:shimmer;animation-name:shimmer;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}@keyframes shimmer{0%{background-position:-400px 0}100%{background-position:400px 0}}"},4459:(W,x,s)=>{s.d(x,{c:()=>v,g:()=>a,h:()=>i,o:()=>d});var C=s(5861);const i=(n,l)=>null!==l.closest(n),v=(n,l)=>"string"==typeof n&&n.length>0?Object.assign({"ion-color":!0,[`ion-color-${n}`]:!0},l):l,a=n=>{const l={};return(n=>void 0!==n?(Array.isArray(n)?n:n.split(" ")).filter(r=>null!=r).map(r=>r.trim()).filter(r=>""!==r):[])(n).forEach(r=>l[r]=!0),l},w=/^[a-z][a-z0-9+\-.]*:/,d=function(){var n=(0,C.Z)(function*(l,r,k,y){if(null!=l&&"#"!==l[0]&&!w.test(l)){const b=document.querySelector("ion-router");if(b)return r?.preventDefault(),b.push(l,k,y)}return!1});return function(r,k,y,b){return n.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/6304.0e514baccb2a35a6.js b/6304.0e514baccb2a35a6.js deleted file mode 100644 index 2eba13f2..00000000 --- a/6304.0e514baccb2a35a6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6304],{6304:(A,b,d)=>{d.r(b),d.d(b,{ion_alert:()=>_});var u=d(5861),i=d(5349),g=d(3365),f=d(9629),k=d(839),v=d(3830),h=d(7612),l=d(3567),c=d(3882),a=d(6410);d(967),d(4874),d(6225),d(9203),d(619);const D=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([r,o])},z=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([r,o])},I=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([r,o])},O=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([r,o])},_=class{constructor(t){(0,i.r)(this,t),this.didPresent=(0,i.d)(this,"ionAlertDidPresent",7),this.willPresent=(0,i.d)(this,"ionAlertWillPresent",7),this.willDismiss=(0,i.d)(this,"ionAlertWillDismiss",7),this.didDismiss=(0,i.d)(this,"ionAlertDidDismiss",7),this.didPresentShorthand=(0,i.d)(this,"didPresent",7),this.willPresentShorthand=(0,i.d)(this,"willPresent",7),this.willDismissShorthand=(0,i.d)(this,"willDismiss",7),this.didDismissShorthand=(0,i.d)(this,"didDismiss",7),this.delegateController=(0,h.d)(this),this.lockController=(0,v.c)(),this.triggerController=(0,h.e)(),this.customHTMLEnabled=c.c.get("innerHTMLTemplatesEnabled",g.E),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,h.B)},this.dispatchCancelHandler=e=>{if((0,h.i)(e.detail.role)){const o=this.processedButtons.find(s=>"cancel"===s.role);this.callButtonHandler(o)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.header=void 0,this.subHeader=void 0,this.message=void 0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:r}=this;t&&r.addClickListener(e,t)}onKeydown(t){const e=new Set(this.processedInputs.map(p=>p.type));if(e.has("checkbox")&&"Enter"===t.key)return void t.preventDefault();if(!e.has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button"))return;const r=this.el.querySelectorAll(".alert-radio"),o=Array.from(r).filter(p=>!p.disabled),s=o.findIndex(p=>p.id===t.target.id);let n;if(["ArrowDown","ArrowRight"].includes(t.key)&&(n=s===o.length-1?o[0]:o[s+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(n=0===s?o[o.length-1]:o[s-1]),n&&o.includes(n)){const p=this.processedInputs.find(m=>m.id===n?.id);p&&(this.rbClick(p),n.focus())}}buttonsChanged(){this.processedButtons=this.buttons.map(e=>"string"==typeof e?{text:e,role:"cancel"===e.toLowerCase()?"cancel":void 0}:e)}inputsChanged(){const t=this.inputs,e=t.find(n=>!n.disabled),o=t.find(n=>n.checked&&!n.disabled)||e,s=new Set(t.map(n=>n.type));s.has("checkbox")&&s.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(s.values()).join("/")}. Please see alert docs for more info.`),this.inputType=s.values().next().value,this.processedInputs=t.map((n,p)=>{var m;return{type:n.type||"text",name:n.name||`${p}`,placeholder:n.placeholder||"",value:n.value,label:n.label,checked:!!n.checked,disabled:!!n.disabled,id:n.id||`alert-input-${this.overlayIndex}-${p}`,handler:n.handler,min:n.min,max:n.max,cssClass:null!==(m=n.cssClass)&&void 0!==m?m:"",attributes:n.attributes||{},tabindex:"radio"===n.type&&n!==o?-1:0}})}connectedCallback(){(0,h.j)(this.el),this.triggerChanged()}componentWillLoad(){(0,h.k)(this.el),this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){!this.gesture&&"ios"===(0,c.b)(this)&&this.wrapperEl&&(this.gesture=(0,f.c)(this.wrapperEl,t=>t.classList.contains("alert-button")),this.gesture.enable(!0)),!0===this.isOpen&&(0,k.r)(()=>this.present())}present(){var t=this;return(0,u.Z)(function*(){const e=yield t.lockController.lock();yield t.delegateController.attachViewToDom(),yield(0,h.f)(t,"alertEnter",D,I),e()})()}dismiss(t,e){var r=this;return(0,u.Z)(function*(){const o=yield r.lockController.lock(),s=yield(0,h.g)(r,t,e,"alertLeave",z,O);return s&&r.delegateController.removeViewFromDom(),o(),s})()}onDidDismiss(){return(0,h.h)(this.el,"ionAlertDidDismiss")}onWillDismiss(){return(0,h.h)(this.el,"ionAlertWillDismiss")}rbClick(t){for(const e of this.processedInputs)e.checked=e===t,e.tabindex=e===t?0:-1;this.activeId=t.id,(0,h.s)(t.handler,t),(0,i.i)(this)}cbClick(t){t.checked=!t.checked,(0,h.s)(t.handler,t),(0,i.i)(this)}buttonClick(t){var e=this;return(0,u.Z)(function*(){const r=t.role,o=e.getValues();if((0,h.i)(r))return e.dismiss({values:o},r);const s=yield e.callButtonHandler(t,o);return!1!==s&&e.dismiss(Object.assign({values:o},s),t.role)})()}callButtonHandler(t,e){return(0,u.Z)(function*(){if(t?.handler){const r=yield(0,h.s)(t.handler,e);if(!1===r)return!1;if("object"==typeof r)return r}return{}})()}getValues(){if(0===this.processedInputs.length)return;if("radio"===this.inputType){const e=this.processedInputs.find(r=>!!r.checked);return e?e.value:void 0}if("checkbox"===this.inputType)return this.processedInputs.filter(e=>e.checked).map(e=>e.value);const t={};return this.processedInputs.forEach(e=>{t[e.name]=e.value||""}),t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs,e=(0,c.b)(this);return 0===t.length?null:(0,i.h)("div",{class:"alert-checkbox-group"},t.map(r=>(0,i.h)("button",{type:"button",onClick:()=>this.cbClick(r),"aria-checked":`${r.checked}`,id:r.id,disabled:r.disabled,tabIndex:r.tabindex,role:"checkbox",class:Object.assign(Object.assign({},(0,l.g)(r.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":r.disabled||!1})},(0,i.h)("div",{class:"alert-button-inner"},(0,i.h)("div",{class:"alert-checkbox-icon"},(0,i.h)("div",{class:"alert-checkbox-inner"})),(0,i.h)("div",{class:"alert-checkbox-label"},r.label)),"md"===e&&(0,i.h)("ion-ripple-effect",null))))}renderRadio(){const t=this.processedInputs;return 0===t.length?null:(0,i.h)("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map(e=>(0,i.h)("button",{type:"button",onClick:()=>this.rbClick(e),"aria-checked":`${e.checked}`,disabled:e.disabled,id:e.id,tabIndex:e.tabindex,class:Object.assign(Object.assign({},(0,l.g)(e.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":e.disabled||!1}),role:"radio"},(0,i.h)("div",{class:"alert-button-inner"},(0,i.h)("div",{class:"alert-radio-icon"},(0,i.h)("div",{class:"alert-radio-inner"})),(0,i.h)("div",{class:"alert-radio-label"},e.label)))))}renderInput(){const t=this.processedInputs;return 0===t.length?null:(0,i.h)("div",{class:"alert-input-group"},t.map(e=>{var r,o,s,n;return(0,i.h)("div",{class:"alert-input-wrapper"},"textarea"===e.type?(0,i.h)("textarea",Object.assign({placeholder:e.placeholder,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:null!==(o=null===(r=e.attributes)||void 0===r?void 0:r.disabled)&&void 0!==o?o:e.disabled,class:C(e),onInput:p=>{var m;e.value=p.target.value,null!==(m=e.attributes)&&void 0!==m&&m.onInput&&e.attributes.onInput(p)}})):(0,i.h)("input",Object.assign({placeholder:e.placeholder,type:e.type,min:e.min,max:e.max,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:null!==(n=null===(s=e.attributes)||void 0===s?void 0:s.disabled)&&void 0!==n?n:e.disabled,class:C(e),onInput:p=>{var m;e.value=p.target.value,null!==(m=e.attributes)&&void 0!==m&&m.onInput&&e.attributes.onInput(p)}})))}))}renderAlertButtons(){const t=this.processedButtons,e=(0,c.b)(this);return(0,i.h)("div",{class:{"alert-button-group":!0,"alert-button-group-vertical":t.length>2}},t.map(o=>(0,i.h)("button",Object.assign({},o.htmlAttributes,{type:"button",id:o.id,class:M(o),tabIndex:0,onClick:()=>this.buttonClick(o)}),(0,i.h)("span",{class:"alert-button-inner"},o.text),"md"===e&&(0,i.h)("ion-ripple-effect",null))))}renderAlertMessage(t){const{customHTMLEnabled:e,message:r}=this;return e?(0,i.h)("div",{id:t,class:"alert-message",innerHTML:(0,g.a)(r)}):(0,i.h)("div",{id:t,class:"alert-message"},r)}render(){const{overlayIndex:t,header:e,subHeader:r,message:o,htmlAttributes:s}=this,n=(0,c.b)(this),p=`alert-${t}-hdr`,m=`alert-${t}-sub-hdr`,E=`alert-${t}-msg`;return(0,i.h)(i.H,Object.assign({role:this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert","aria-modal":"true","aria-labelledby":e?p:r?m:null,"aria-describedby":void 0!==o?E:null,tabindex:"-1"},s,{style:{zIndex:`${2e4+t}`},class:Object.assign(Object.assign({},(0,l.g)(this.cssClass)),{[n]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),(0,i.h)("ion-backdrop",{tappable:this.backdropDismiss}),(0,i.h)("div",{tabindex:"0"}),(0,i.h)("div",{class:"alert-wrapper ion-overlay-wrapper",ref:B=>this.wrapperEl=B},(0,i.h)("div",{class:"alert-head"},e&&(0,i.h)("h2",{id:p,class:"alert-title"},e),r&&(0,i.h)("h2",{id:m,class:"alert-sub-title"},r)),this.renderAlertMessage(E),this.renderAlertInputs(),this.renderAlertButtons()),(0,i.h)("div",{tabindex:"0"}))}get el(){return(0,i.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}}},C=t=>{var e,r,o;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":(null!==(r=null===(e=t.attributes)||void 0===e?void 0:e.disabled)&&void 0!==r?r:t.disabled)||!1},(0,l.g)(t.cssClass)),(0,l.g)(t.attributes?null===(o=t.attributes.class)||void 0===o?void 0:o.toString():""))},M=t=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${t.role}`]:void 0!==t.role},(0,l.g)(t.cssClass));_.style={ios:".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-ios,.alert-radio-label.sc-ion-alert-ios{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:clamp(270px, 16.875rem, 324px);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:max(14px, 0.875rem)}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:7px;text-align:center}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:max(17px, 1.0625rem);font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:max(14px, 0.875rem)}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:max(13px, 0.8125rem);text-align:center}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{min-height:44px}.alert-radio-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000)}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start:7px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:7px}}}.alert-checkbox-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000)}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px;margin-top:10px;margin-bottom:10px;position:relative;width:min(1.5rem, 66px);height:min(1.5rem, 66px);border-width:0.0625rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.5rem, 66px) / 6);position:absolute;width:calc(min(1.5rem, 66px) / 6 + 1px);height:calc(min(1.5rem, 66px) * 0.5);-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.0625rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.5rem, 66px) / 3 + 1px)}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}}}.alert-button-group.sc-ion-alert-ios{-webkit-margin-end:-0.55px;margin-inline-end:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}.alert-button.sc-ion-alert-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:max(44px, 2.75rem);border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:max(17px, 1.0625rem);overflow:hidden}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child{border-right:0}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:first-child:dir(rtl){border-right:0}}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",md:".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-md{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:0.875rem}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px;padding-top:20px;padding-bottom:15px;text-align:start}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1.25rem;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1rem}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}.alert-message.sc-ion-alert-md{font-size:1rem}@media screen and (max-width: 767px){.alert-message.sc-ion-alert-md{max-height:266px}}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}@media screen and (max-width: 767px){.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{max-height:266px}}.alert-tappable.sc-ion-alert-md{position:relative;min-height:48px}.alert-radio-label.sc-ion-alert-md{-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-radio-icon.sc-ion-alert-md{top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}@supports (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-radio-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}.alert-radio-inner.sc-ion-alert-md{top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.alert-radio-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;width:calc(100% - 53px);color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-checkbox-icon.sc-ion-alert-md{top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}@supports (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-checkbox-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}.alert-button-group.sc-ion-alert-md{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.alert-button.sc-ion-alert-md{border-radius:2px;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:0;margin-bottom:0;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}@media screen and (min-width: 768px){.sc-ion-alert-md-h{--max-width:min(100vw - 96px, 560px);--max-height:min(100vh - 96px, 560px)}}"}},3567:(A,b,d)=>{d.d(b,{c:()=>g,g:()=>k,h:()=>i,o:()=>h});var u=d(5861);const i=(l,c)=>null!==c.closest(l),g=(l,c)=>"string"==typeof l&&l.length>0?Object.assign({"ion-color":!0,[`ion-color-${l}`]:!0},c):c,k=l=>{const c={};return(l=>void 0!==l?(Array.isArray(l)?l:l.split(" ")).filter(a=>null!=a).map(a=>a.trim()).filter(a=>""!==a):[])(l).forEach(a=>c[a]=!0),c},v=/^[a-z][a-z0-9+\-.]*:/,h=function(){var l=(0,u.Z)(function*(c,a,w,y){if(null!=c&&"#"!==c[0]&&!v.test(c)){const x=document.querySelector("ion-router");if(x)return a?.preventDefault(),x.push(c,w,y)}return!1});return function(a,w,y,x){return l.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/6304.ce5975176f2e3528.js b/6304.ce5975176f2e3528.js new file mode 100644 index 00000000..71c4aa1b --- /dev/null +++ b/6304.ce5975176f2e3528.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6304],{6304:(A,b,d)=>{d.r(b),d.d(b,{ion_alert:()=>_});var m=d(5861),i=d(9942),g=d(8958),f=d(7817),k=d(512),v=d(9229),h=d(2936),l=d(4459),c=d(5551),a=d(4913);d(9951),d(1836),d(1848),d(6535),d(2019);const D=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(1.1)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([r,o])},z=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:.99,transform:"scale(1)"},{offset:1,opacity:0,transform:"scale(0.9)"}]),e.addElement(t).easing("ease-in-out").duration(200).addAnimation([r,o])},I=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),o.addElement(t.querySelector(".alert-wrapper")).keyframes([{offset:0,opacity:"0.01",transform:"scale(0.9)"},{offset:1,opacity:"1",transform:"scale(1)"}]),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([r,o])},O=t=>{const e=(0,a.c)(),r=(0,a.c)(),o=(0,a.c)();return r.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),o.addElement(t.querySelector(".alert-wrapper")).fromTo("opacity",.99,0),e.addElement(t).easing("ease-in-out").duration(150).addAnimation([r,o])},_=class{constructor(t){(0,i.r)(this,t),this.didPresent=(0,i.d)(this,"ionAlertDidPresent",7),this.willPresent=(0,i.d)(this,"ionAlertWillPresent",7),this.willDismiss=(0,i.d)(this,"ionAlertWillDismiss",7),this.didDismiss=(0,i.d)(this,"ionAlertDidDismiss",7),this.didPresentShorthand=(0,i.d)(this,"didPresent",7),this.willPresentShorthand=(0,i.d)(this,"willPresent",7),this.willDismissShorthand=(0,i.d)(this,"willDismiss",7),this.didDismissShorthand=(0,i.d)(this,"didDismiss",7),this.delegateController=(0,h.d)(this),this.lockController=(0,v.c)(),this.triggerController=(0,h.e)(),this.customHTMLEnabled=c.c.get("innerHTMLTemplatesEnabled",g.E),this.processedInputs=[],this.processedButtons=[],this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,h.B)},this.dispatchCancelHandler=e=>{if((0,h.i)(e.detail.role)){const o=this.processedButtons.find(s=>"cancel"===s.role);this.callButtonHandler(o)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.header=void 0,this.subHeader=void 0,this.message=void 0,this.buttons=[],this.inputs=[],this.backdropDismiss=!0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:r}=this;t&&r.addClickListener(e,t)}onKeydown(t){const e=new Set(this.processedInputs.map(p=>p.type));if(e.has("checkbox")&&"Enter"===t.key)return void t.preventDefault();if(!e.has("radio")||t.target&&!this.el.contains(t.target)||t.target.classList.contains("alert-button"))return;const r=this.el.querySelectorAll(".alert-radio"),o=Array.from(r).filter(p=>!p.disabled),s=o.findIndex(p=>p.id===t.target.id);let n;if(["ArrowDown","ArrowRight"].includes(t.key)&&(n=s===o.length-1?o[0]:o[s+1]),["ArrowUp","ArrowLeft"].includes(t.key)&&(n=0===s?o[o.length-1]:o[s-1]),n&&o.includes(n)){const p=this.processedInputs.find(u=>u.id===n?.id);p&&(this.rbClick(p),n.focus())}}buttonsChanged(){this.processedButtons=this.buttons.map(e=>"string"==typeof e?{text:e,role:"cancel"===e.toLowerCase()?"cancel":void 0}:e)}inputsChanged(){const t=this.inputs,e=t.find(n=>!n.disabled),o=t.find(n=>n.checked&&!n.disabled)||e,s=new Set(t.map(n=>n.type));s.has("checkbox")&&s.has("radio")&&console.warn(`Alert cannot mix input types: ${Array.from(s.values()).join("/")}. Please see alert docs for more info.`),this.inputType=s.values().next().value,this.processedInputs=t.map((n,p)=>{var u;return{type:n.type||"text",name:n.name||`${p}`,placeholder:n.placeholder||"",value:n.value,label:n.label,checked:!!n.checked,disabled:!!n.disabled,id:n.id||`alert-input-${this.overlayIndex}-${p}`,handler:n.handler,min:n.min,max:n.max,cssClass:null!==(u=n.cssClass)&&void 0!==u?u:"",attributes:n.attributes||{},tabindex:"radio"===n.type&&n!==o?-1:0}})}connectedCallback(){(0,h.j)(this.el),this.triggerChanged()}componentWillLoad(){(0,h.k)(this.el),this.inputsChanged(),this.buttonsChanged()}disconnectedCallback(){this.triggerController.removeClickListener(),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentDidLoad(){!this.gesture&&"ios"===(0,c.b)(this)&&this.wrapperEl&&(this.gesture=(0,f.c)(this.wrapperEl,t=>t.classList.contains("alert-button")),this.gesture.enable(!0)),!0===this.isOpen&&(0,k.r)(()=>this.present()),this.triggerChanged()}present(){var t=this;return(0,m.Z)(function*(){const e=yield t.lockController.lock();yield t.delegateController.attachViewToDom(),yield(0,h.f)(t,"alertEnter",D,I),e()})()}dismiss(t,e){var r=this;return(0,m.Z)(function*(){const o=yield r.lockController.lock(),s=yield(0,h.g)(r,t,e,"alertLeave",z,O);return s&&r.delegateController.removeViewFromDom(),o(),s})()}onDidDismiss(){return(0,h.h)(this.el,"ionAlertDidDismiss")}onWillDismiss(){return(0,h.h)(this.el,"ionAlertWillDismiss")}rbClick(t){for(const e of this.processedInputs)e.checked=e===t,e.tabindex=e===t?0:-1;this.activeId=t.id,(0,h.s)(t.handler,t),(0,i.i)(this)}cbClick(t){t.checked=!t.checked,(0,h.s)(t.handler,t),(0,i.i)(this)}buttonClick(t){var e=this;return(0,m.Z)(function*(){const r=t.role,o=e.getValues();if((0,h.i)(r))return e.dismiss({values:o},r);const s=yield e.callButtonHandler(t,o);return!1!==s&&e.dismiss(Object.assign({values:o},s),t.role)})()}callButtonHandler(t,e){return(0,m.Z)(function*(){if(t?.handler){const r=yield(0,h.s)(t.handler,e);if(!1===r)return!1;if("object"==typeof r)return r}return{}})()}getValues(){if(0===this.processedInputs.length)return;if("radio"===this.inputType){const e=this.processedInputs.find(r=>!!r.checked);return e?e.value:void 0}if("checkbox"===this.inputType)return this.processedInputs.filter(e=>e.checked).map(e=>e.value);const t={};return this.processedInputs.forEach(e=>{t[e.name]=e.value||""}),t}renderAlertInputs(){switch(this.inputType){case"checkbox":return this.renderCheckbox();case"radio":return this.renderRadio();default:return this.renderInput()}}renderCheckbox(){const t=this.processedInputs,e=(0,c.b)(this);return 0===t.length?null:(0,i.h)("div",{class:"alert-checkbox-group"},t.map(r=>(0,i.h)("button",{type:"button",onClick:()=>this.cbClick(r),"aria-checked":`${r.checked}`,id:r.id,disabled:r.disabled,tabIndex:r.tabindex,role:"checkbox",class:Object.assign(Object.assign({},(0,l.g)(r.cssClass)),{"alert-tappable":!0,"alert-checkbox":!0,"alert-checkbox-button":!0,"ion-focusable":!0,"alert-checkbox-button-disabled":r.disabled||!1})},(0,i.h)("div",{class:"alert-button-inner"},(0,i.h)("div",{class:"alert-checkbox-icon"},(0,i.h)("div",{class:"alert-checkbox-inner"})),(0,i.h)("div",{class:"alert-checkbox-label"},r.label)),"md"===e&&(0,i.h)("ion-ripple-effect",null))))}renderRadio(){const t=this.processedInputs;return 0===t.length?null:(0,i.h)("div",{class:"alert-radio-group",role:"radiogroup","aria-activedescendant":this.activeId},t.map(e=>(0,i.h)("button",{type:"button",onClick:()=>this.rbClick(e),"aria-checked":`${e.checked}`,disabled:e.disabled,id:e.id,tabIndex:e.tabindex,class:Object.assign(Object.assign({},(0,l.g)(e.cssClass)),{"alert-radio-button":!0,"alert-tappable":!0,"alert-radio":!0,"ion-focusable":!0,"alert-radio-button-disabled":e.disabled||!1}),role:"radio"},(0,i.h)("div",{class:"alert-button-inner"},(0,i.h)("div",{class:"alert-radio-icon"},(0,i.h)("div",{class:"alert-radio-inner"})),(0,i.h)("div",{class:"alert-radio-label"},e.label)))))}renderInput(){const t=this.processedInputs;return 0===t.length?null:(0,i.h)("div",{class:"alert-input-group"},t.map(e=>{var r,o,s,n;return(0,i.h)("div",{class:"alert-input-wrapper"},"textarea"===e.type?(0,i.h)("textarea",Object.assign({placeholder:e.placeholder,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:null!==(o=null===(r=e.attributes)||void 0===r?void 0:r.disabled)&&void 0!==o?o:e.disabled,class:C(e),onInput:p=>{var u;e.value=p.target.value,null!==(u=e.attributes)&&void 0!==u&&u.onInput&&e.attributes.onInput(p)}})):(0,i.h)("input",Object.assign({placeholder:e.placeholder,type:e.type,min:e.min,max:e.max,value:e.value,id:e.id,tabIndex:e.tabindex},e.attributes,{disabled:null!==(n=null===(s=e.attributes)||void 0===s?void 0:s.disabled)&&void 0!==n?n:e.disabled,class:C(e),onInput:p=>{var u;e.value=p.target.value,null!==(u=e.attributes)&&void 0!==u&&u.onInput&&e.attributes.onInput(p)}})))}))}renderAlertButtons(){const t=this.processedButtons,e=(0,c.b)(this);return(0,i.h)("div",{class:{"alert-button-group":!0,"alert-button-group-vertical":t.length>2}},t.map(o=>(0,i.h)("button",Object.assign({},o.htmlAttributes,{type:"button",id:o.id,class:M(o),tabIndex:0,onClick:()=>this.buttonClick(o)}),(0,i.h)("span",{class:"alert-button-inner"},o.text),"md"===e&&(0,i.h)("ion-ripple-effect",null))))}renderAlertMessage(t){const{customHTMLEnabled:e,message:r}=this;return e?(0,i.h)("div",{id:t,class:"alert-message",innerHTML:(0,g.a)(r)}):(0,i.h)("div",{id:t,class:"alert-message"},r)}render(){const{overlayIndex:t,header:e,subHeader:r,message:o,htmlAttributes:s}=this,n=(0,c.b)(this),p=`alert-${t}-hdr`,u=`alert-${t}-sub-hdr`,E=`alert-${t}-msg`;return(0,i.h)(i.H,Object.assign({role:this.inputs.length>0||this.buttons.length>0?"alertdialog":"alert","aria-modal":"true","aria-labelledby":e?p:r?u:null,"aria-describedby":void 0!==o?E:null,tabindex:"-1"},s,{style:{zIndex:`${2e4+t}`},class:Object.assign(Object.assign({},(0,l.g)(this.cssClass)),{[n]:!0,"overlay-hidden":!0,"alert-translucent":this.translucent}),onIonAlertWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),(0,i.h)("ion-backdrop",{tappable:this.backdropDismiss}),(0,i.h)("div",{tabindex:"0"}),(0,i.h)("div",{class:"alert-wrapper ion-overlay-wrapper",ref:B=>this.wrapperEl=B},(0,i.h)("div",{class:"alert-head"},e&&(0,i.h)("h2",{id:p,class:"alert-title"},e),r&&(0,i.h)("h2",{id:u,class:"alert-sub-title"},r)),this.renderAlertMessage(E),this.renderAlertInputs(),this.renderAlertButtons()),(0,i.h)("div",{tabindex:"0"}))}get el(){return(0,i.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"],buttons:["buttonsChanged"],inputs:["inputsChanged"]}}},C=t=>{var e,r,o;return Object.assign(Object.assign({"alert-input":!0,"alert-input-disabled":(null!==(r=null===(e=t.attributes)||void 0===e?void 0:e.disabled)&&void 0!==r?r:t.disabled)||!1},(0,l.g)(t.cssClass)),(0,l.g)(t.attributes?null===(o=t.attributes.class)||void 0===o?void 0:o.toString():""))},M=t=>Object.assign({"alert-button":!0,"ion-focusable":!0,"ion-activatable":!0,[`alert-button-role-${t.role}`]:void 0!==t.role},(0,l.g)(t.cssClass));_.style={ios:".sc-ion-alert-ios-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-ios-h{display:none}.alert-top.sc-ion-alert-ios-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-ios,.alert-radio-label.sc-ion-alert-ios{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-ios::-webkit-scrollbar,.alert-message.sc-ion-alert-ios::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-ios{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-ios{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-ios,.alert-tappable.ion-focused.sc-ion-alert-ios{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-ios,.alert-checkbox-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios,.alert-radio-button-disabled.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-ios,.alert-checkbox.sc-ion-alert-ios,.alert-input.sc-ion-alert-ios,.alert-radio.sc-ion-alert-ios{outline:none}.alert-radio-icon.sc-ion-alert-ios,.alert-checkbox-icon.sc-ion-alert-ios,.alert-checkbox-inner.sc-ion-alert-ios{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-ios{min-height:37px;resize:none}.sc-ion-alert-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--max-width:clamp(270px, 16.875rem, 324px);--backdrop-opacity:var(--ion-backdrop-opacity, 0.3);font-size:max(14px, 0.875rem)}.alert-wrapper.sc-ion-alert-ios{border-radius:13px;-webkit-box-shadow:none;box-shadow:none;overflow:hidden}.alert-button.sc-ion-alert-ios .alert-button-inner.sc-ion-alert-ios{pointer-events:none}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.alert-translucent.sc-ion-alert-ios-h .alert-wrapper.sc-ion-alert-ios{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.9);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}}.alert-head.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:7px;text-align:center}.alert-title.sc-ion-alert-ios{margin-top:8px;color:var(--ion-text-color, #000);font-size:max(17px, 1.0625rem);font-weight:600}.alert-sub-title.sc-ion-alert-ios{color:var(--ion-color-step-600, #666666);font-size:max(14px, 0.875rem)}.alert-message.sc-ion-alert-ios,.alert-input-group.sc-ion-alert-ios{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0;padding-bottom:21px;color:var(--ion-text-color, #000);font-size:max(13px, 0.8125rem);text-align:center}.alert-message.sc-ion-alert-ios{max-height:240px}.alert-message.sc-ion-alert-ios:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:12px}.alert-input.sc-ion-alert-ios{border-radius:4px;margin-top:10px;-webkit-padding-start:6px;padding-inline-start:6px;-webkit-padding-end:6px;padding-inline-end:6px;padding-top:6px;padding-bottom:6px;border:0.55px solid var(--ion-color-step-250, #bfbfbf);background-color:var(--ion-background-color, #fff);-webkit-appearance:none;-moz-appearance:none;appearance:none}.alert-input.sc-ion-alert-ios::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-ios::-ms-clear{display:none}.alert-input.sc-ion-alert-ios::-webkit-date-and-time-value{height:18px}.alert-radio-group.sc-ion-alert-ios,.alert-checkbox-group.sc-ion-alert-ios{-ms-scroll-chaining:none;overscroll-behavior:contain;max-height:240px;border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);overflow-y:auto;-webkit-overflow-scrolling:touch}.alert-tappable.sc-ion-alert-ios{min-height:44px}.alert-radio-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;-ms-flex-order:0;order:0;color:var(--ion-text-color, #000)}[aria-checked=true].sc-ion-alert-ios .alert-radio-label.sc-ion-alert-ios{color:var(--ion-color-primary, #3880ff)}.alert-radio-icon.sc-ion-alert-ios{position:relative;-ms-flex-order:1;order:1;min-width:30px}[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{top:-7px;position:absolute;width:6px;height:12px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{inset-inline-start:7px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:7px}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios{left:unset;right:unset;right:7px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-radio-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:7px}}}.alert-checkbox-label.sc-ion-alert-ios{-webkit-padding-start:13px;padding-inline-start:13px;-webkit-padding-end:13px;padding-inline-end:13px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-text-color, #000)}.alert-checkbox-icon.sc-ion-alert-ios{border-radius:50%;-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:6px;margin-inline-end:6px;margin-top:10px;margin-bottom:10px;position:relative;width:min(1.5rem, 66px);height:min(1.5rem, 66px);border-width:0.0625rem;border-style:solid;border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));background-color:var(--ion-item-background, var(--ion-background-color, #fff));contain:strict}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-icon.sc-ion-alert-ios{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{top:calc(min(1.5rem, 66px) / 6);position:absolute;width:calc(min(1.5rem, 66px) / 6 + 1px);height:calc(min(1.5rem, 66px) * 0.5);-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:0.0625rem;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-background-color, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{inset-inline-start:calc(min(1.5rem, 66px) / 3 + 1px)}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios,[dir=rtl] .sc-ion-alert-ios-h [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}[dir=rtl].sc-ion-alert-ios [aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios{left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-ios .alert-checkbox-inner.sc-ion-alert-ios:dir(rtl){left:unset;right:unset;right:calc(min(1.5rem, 66px) / 3 + 1px)}}}.alert-button-group.sc-ion-alert-ios{-webkit-margin-end:-0.55px;margin-inline-end:-0.55px;-ms-flex-wrap:wrap;flex-wrap:wrap}.alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios{border-right:none}[dir=rtl].sc-ion-alert-ios-h .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:none}[dir=rtl].sc-ion-alert-ios .alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:none}@supports selector(:dir(rtl)){.alert-button-group-vertical.sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:none}}.alert-button.sc-ion-alert-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;border-radius:0;-ms-flex:1 1 auto;flex:1 1 auto;min-width:50%;height:max(44px, 2.75rem);border-top:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2);background-color:transparent;color:var(--ion-color-primary, #3880ff);font-size:max(17px, 1.0625rem);overflow:hidden}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:first-child{border-right:0}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:first-child{border-right:0}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:first-child:dir(rtl){border-right:0}}.alert-button.sc-ion-alert-ios:last-child{border-right:0;font-weight:bold}[dir=rtl].sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child,[dir=rtl] .sc-ion-alert-ios-h .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}[dir=rtl].sc-ion-alert-ios .alert-button.sc-ion-alert-ios:last-child{border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@supports selector(:dir(rtl)){.alert-button.sc-ion-alert-ios:last-child:dir(rtl){border-right:0.55px solid rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}}.alert-button.ion-activated.sc-ion-alert-ios{background-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.1)}.alert-button-role-destructive.sc-ion-alert-ios,.alert-button-role-destructive.ion-activated.sc-ion-alert-ios,.alert-button-role-destructive.ion-focused.sc-ion-alert-ios{color:var(--ion-color-danger, #eb445a)}",md:".sc-ion-alert-md-h{--min-width:250px;--width:auto;--min-height:auto;--height:auto;--max-height:90%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-alert-md-h{display:none}.alert-top.sc-ion-alert-md-h{padding-top:50px;-ms-flex-align:start;align-items:flex-start}.alert-wrapper.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:content;opacity:0;z-index:10}.alert-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-sub-title.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;font-weight:normal}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-overflow-scrolling:touch;overflow-y:auto;overscroll-behavior-y:contain}.alert-checkbox-label.sc-ion-alert-md,.alert-radio-label.sc-ion-alert-md{overflow-wrap:anywhere}@media (any-pointer: coarse){.alert-checkbox-group.sc-ion-alert-md::-webkit-scrollbar,.alert-radio-group.sc-ion-alert-md::-webkit-scrollbar,.alert-message.sc-ion-alert-md::-webkit-scrollbar{display:none}}.alert-input.sc-ion-alert-md{padding-left:0;padding-right:0;padding-top:10px;padding-bottom:10px;width:100%;border:0;background:inherit;font:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.alert-button-group.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}.alert-button-group-vertical.sc-ion-alert-md{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap}.alert-button.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;border:0;font-size:0.875rem;line-height:1.25rem;z-index:0}.alert-button.ion-focused.sc-ion-alert-md,.alert-tappable.ion-focused.sc-ion-alert-md{background:var(--ion-color-step-100, #e6e6e6)}.alert-button-inner.sc-ion-alert-md{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit}.alert-input-disabled.sc-ion-alert-md,.alert-checkbox-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md,.alert-radio-button-disabled.sc-ion-alert-md .alert-button-inner.sc-ion-alert-md{cursor:default;opacity:0.5;pointer-events:none}.alert-tappable.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;display:-ms-flexbox;display:flex;width:100%;border:0;background:transparent;font-size:inherit;line-height:initial;text-align:start;-webkit-appearance:none;-moz-appearance:none;appearance:none;contain:content}.alert-button.sc-ion-alert-md,.alert-checkbox.sc-ion-alert-md,.alert-input.sc-ion-alert-md,.alert-radio.sc-ion-alert-md{outline:none}.alert-radio-icon.sc-ion-alert-md,.alert-checkbox-icon.sc-ion-alert-md,.alert-checkbox-inner.sc-ion-alert-md{-webkit-box-sizing:border-box;box-sizing:border-box}textarea.alert-input.sc-ion-alert-md{min-height:37px;resize:none}.sc-ion-alert-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--max-width:280px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);font-size:0.875rem}.alert-wrapper.sc-ion-alert-md{border-radius:4px;-webkit-box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12);box-shadow:0 11px 15px -7px rgba(0, 0, 0, 0.2), 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12)}.alert-head.sc-ion-alert-md{-webkit-padding-start:23px;padding-inline-start:23px;-webkit-padding-end:23px;padding-inline-end:23px;padding-top:20px;padding-bottom:15px;text-align:start}.alert-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1.25rem;font-weight:500}.alert-sub-title.sc-ion-alert-md{color:var(--ion-text-color, #000);font-size:1rem}.alert-message.sc-ion-alert-md,.alert-input-group.sc-ion-alert-md{-webkit-padding-start:24px;padding-inline-start:24px;-webkit-padding-end:24px;padding-inline-end:24px;padding-top:20px;padding-bottom:20px;color:var(--ion-color-step-550, #737373)}.alert-message.sc-ion-alert-md{font-size:1rem}@media screen and (max-width: 767px){.alert-message.sc-ion-alert-md{max-height:266px}}.alert-message.sc-ion-alert-md:empty{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}.alert-head.sc-ion-alert-md+.alert-message.sc-ion-alert-md{padding-top:0}.alert-input.sc-ion-alert-md{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:5px;border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);color:var(--ion-text-color, #000)}.alert-input.sc-ion-alert-md::-webkit-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-moz-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md:-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-input-placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::placeholder{color:var(--ion-placeholder-color, var(--ion-color-step-400, #999999));font-family:inherit;font-weight:inherit}.alert-input.sc-ion-alert-md::-ms-clear{display:none}.alert-input.sc-ion-alert-md:focus{margin-bottom:4px;border-bottom:2px solid var(--ion-color-primary, #3880ff)}.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{position:relative;border-top:1px solid var(--ion-color-step-150, #d9d9d9);border-bottom:1px solid var(--ion-color-step-150, #d9d9d9);overflow:auto}@media screen and (max-width: 767px){.alert-radio-group.sc-ion-alert-md,.alert-checkbox-group.sc-ion-alert-md{max-height:266px}}.alert-tappable.sc-ion-alert-md{position:relative;min-height:48px}.alert-radio-label.sc-ion-alert-md{-webkit-padding-start:52px;padding-inline-start:52px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-radio-icon.sc-ion-alert-md{top:0;border-radius:50%;display:block;position:relative;width:20px;height:20px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373)}@supports (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-radio-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-radio-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}.alert-radio-inner.sc-ion-alert-md{top:3px;border-radius:50%;position:absolute;width:10px;height:10px;-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0);-webkit-transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 280ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--ion-color-primary, #3880ff)}@supports (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){.alert-radio-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){.alert-radio-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}[aria-checked=true].sc-ion-alert-md .alert-radio-label.sc-ion-alert-md{color:var(--ion-color-step-850, #262626)}[aria-checked=true].sc-ion-alert-md .alert-radio-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-radio-inner.sc-ion-alert-md{-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}.alert-checkbox-label.sc-ion-alert-md{-webkit-padding-start:53px;padding-inline-start:53px;-webkit-padding-end:26px;padding-inline-end:26px;padding-top:13px;padding-bottom:13px;-ms-flex:1;flex:1;width:calc(100% - 53px);color:var(--ion-color-step-850, #262626);font-size:1rem}.alert-checkbox-icon.sc-ion-alert-md{top:0;border-radius:2px;position:relative;width:16px;height:16px;border-width:2px;border-style:solid;border-color:var(--ion-color-step-550, #737373);contain:strict}@supports (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{inset-inline-start:26px}}@supports not (inset-inline-start: 0){.alert-checkbox-icon.sc-ion-alert-md{left:26px}[dir=rtl].sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}[dir=rtl].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{left:unset;right:unset;right:26px}@supports selector(:dir(rtl)){.alert-checkbox-icon.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:26px}}}[aria-checked=true].sc-ion-alert-md .alert-checkbox-icon.sc-ion-alert-md{border-color:var(--ion-color-primary, #3880ff);background-color:var(--ion-color-primary, #3880ff)}[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{top:0;position:absolute;width:6px;height:10px;-webkit-transform:rotate(45deg);transform:rotate(45deg);border-width:2px;border-top-width:0;border-left-width:0;border-style:solid;border-color:var(--ion-color-primary-contrast, #fff)}@supports (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{inset-inline-start:3px}}@supports not (inset-inline-start: 0){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:3px}[dir=rtl].sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md,[dir=rtl] .sc-ion-alert-md-h [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}[dir=rtl].sc-ion-alert-md [aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md{left:unset;right:unset;right:3px}@supports selector(:dir(rtl)){[aria-checked=true].sc-ion-alert-md .alert-checkbox-inner.sc-ion-alert-md:dir(rtl){left:unset;right:unset;right:3px}}}.alert-button-group.sc-ion-alert-md{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:end;justify-content:flex-end}.alert-button.sc-ion-alert-md{border-radius:2px;-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:0;margin-bottom:0;-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;color:var(--ion-color-primary, #3880ff);font-weight:500;text-align:end;text-transform:uppercase;overflow:hidden}.alert-button-inner.sc-ion-alert-md{-ms-flex-pack:end;justify-content:flex-end}@media screen and (min-width: 768px){.sc-ion-alert-md-h{--max-width:min(100vw - 96px, 560px);--max-height:min(100vh - 96px, 560px)}}"}},4459:(A,b,d)=>{d.d(b,{c:()=>g,g:()=>k,h:()=>i,o:()=>h});var m=d(5861);const i=(l,c)=>null!==c.closest(l),g=(l,c)=>"string"==typeof l&&l.length>0?Object.assign({"ion-color":!0,[`ion-color-${l}`]:!0},c):c,k=l=>{const c={};return(l=>void 0!==l?(Array.isArray(l)?l:l.split(" ")).filter(a=>null!=a).map(a=>a.trim()).filter(a=>""!==a):[])(l).forEach(a=>c[a]=!0),c},v=/^[a-z][a-z0-9+\-.]*:/,h=function(){var l=(0,m.Z)(function*(c,a,w,y){if(null!=c&&"#"!==c[0]&&!v.test(c)){const x=document.querySelector("ion-router");if(x)return a?.preventDefault(),x.push(c,w,y)}return!1});return function(a,w,y,x){return l.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8058.92bc3c5df214f8f0.js b/6416.d2723744cffdb9ec.js similarity index 59% rename from 8058.92bc3c5df214f8f0.js rename to 6416.d2723744cffdb9ec.js index 1d3387fe..d8c399c3 100644 --- a/8058.92bc3c5df214f8f0.js +++ b/6416.d2723744cffdb9ec.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8058],{8058:(y,h,p)=>{p.r(h),p.d(h,{startTapClick:()=>b});var i=p(6225),u=p(839);const b=s=>{if(void 0===i.d)return;let e,E,c,o=10*-v,r=0;const O=s.getBoolean("animated",!0)&&s.getBoolean("rippleEffect",!0),l=new WeakMap,L=t=>{o=(0,u.u)(t),R(t)},A=()=>{c&&clearTimeout(c),c=void 0,e&&(I(!1),e=void 0)},D=t=>{e||w(g(t),t)},R=t=>{w(void 0,t)},w=(t,n)=>{if(t&&t===e)return;c&&clearTimeout(c),c=void 0;const{x:d,y:a}=(0,u.v)(n);if(e){if(l.has(e))throw new Error("internal error");e.classList.contains(f)||C(e,d,a),I(!0)}if(t){const M=l.get(t);M&&(clearTimeout(M),l.delete(t)),t.classList.remove(f);const S=()=>{C(t,d,a),c=void 0};T(t)?S():c=setTimeout(S,k)}e=t},C=(t,n,d)=>{if(r=Date.now(),t.classList.add(f),!O)return;const a=P(t);null!==a&&(_(),E=a.addRipple(n,d))},_=()=>{void 0!==E&&(E.then(t=>t()),E=void 0)},I=t=>{_();const n=e;if(!n)return;const d=m-Date.now()+r;if(t&&d>0&&!T(n)){const a=setTimeout(()=>{n.classList.remove(f),l.delete(n)},m);l.set(n,a)}else n.classList.remove(f)};i.d.addEventListener("ionGestureCaptured",A),i.d.addEventListener("touchstart",t=>{o=(0,u.u)(t),D(t)},!0),i.d.addEventListener("touchcancel",L,!0),i.d.addEventListener("touchend",L,!0),i.d.addEventListener("pointercancel",A,!0),i.d.addEventListener("mousedown",t=>{if(2===t.button)return;const n=(0,u.u)(t)-v;o{const n=(0,u.u)(t)-v;o{if(void 0===s.composedPath)return s.target.closest(".ion-activatable");{const o=s.composedPath();for(let r=0;rs.classList.contains("ion-activatable-instant"),P=s=>{if(s.shadowRoot){const o=s.shadowRoot.querySelector("ion-ripple-effect");if(o)return o}return s.querySelector("ion-ripple-effect")},f="ion-activated",k=100,m=150,v=2500}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6416],{6416:(y,h,p)=>{p.r(h),p.d(h,{startTapClick:()=>g});var i=p(1848),u=p(512);const g=s=>{if(void 0===i.d)return;let e,E,a,o=10*-v,r=0;const O=s.getBoolean("animated",!0)&&s.getBoolean("rippleEffect",!0),l=new WeakMap,L=t=>{o=(0,u.u)(t),R(t)},A=()=>{a&&clearTimeout(a),a=void 0,e&&(I(!1),e=void 0)},D=t=>{e||w(b(t),t)},R=t=>{w(void 0,t)},w=(t,n)=>{if(t&&t===e)return;a&&clearTimeout(a),a=void 0;const{x:d,y:c}=(0,u.v)(n);if(e){if(l.has(e))throw new Error("internal error");e.classList.contains(f)||C(e,d,c),I(!0)}if(t){const M=l.get(t);M&&(clearTimeout(M),l.delete(t)),t.classList.remove(f);const S=()=>{C(t,d,c),a=void 0};T(t)?S():a=setTimeout(S,k)}e=t},C=(t,n,d)=>{if(r=Date.now(),t.classList.add(f),!O)return;const c=P(t);null!==c&&(_(),E=c.addRipple(n,d))},_=()=>{void 0!==E&&(E.then(t=>t()),E=void 0)},I=t=>{_();const n=e;if(!n)return;const d=m-Date.now()+r;if(t&&d>0&&!T(n)){const c=setTimeout(()=>{n.classList.remove(f),l.delete(n)},m);l.set(n,c)}else n.classList.remove(f)};i.d.addEventListener("ionGestureCaptured",A),i.d.addEventListener("touchstart",t=>{o=(0,u.u)(t),D(t)},!0),i.d.addEventListener("touchcancel",L,!0),i.d.addEventListener("touchend",L,!0),i.d.addEventListener("pointercancel",A,!0),i.d.addEventListener("mousedown",t=>{if(2===t.button)return;const n=(0,u.u)(t)-v;o{const n=(0,u.u)(t)-v;o{if(void 0===s.composedPath)return s.target.closest(".ion-activatable");{const o=s.composedPath();for(let r=0;rs.classList.contains("ion-activatable-instant"),P=s=>{if(s.shadowRoot){const o=s.shadowRoot.querySelector("ion-ripple-effect");if(o)return o}return s.querySelector("ion-ripple-effect")},f="ion-activated",k=100,m=150,v=2500}}]); \ No newline at end of file diff --git a/6642.6f1f0b0fc284bedc.js b/6642.6f1f0b0fc284bedc.js deleted file mode 100644 index 82c16e5b..00000000 --- a/6642.6f1f0b0fc284bedc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6642],{6642:(D,y,p)=>{p.r(y),p.d(y,{ion_toast:()=>T});var x=p(5861),r=p(5349),_=p(3365),g=p(839),C=p(3830),f=p(6710),h=p(7612),d=p(3567),a=p(3882),s=p(6410),v=p(6225);const k=(t,e)=>{const o=(0,s.c)(),n=(0,s.c)(),{position:i,top:c,bottom:u}=e,l=(0,g.g)(t).querySelector(".toast-wrapper");switch(n.addElement(l),i){case"top":n.fromTo("transform","translateY(-100%)",`translateY(${c})`);break;case"middle":const m=Math.floor(t.clientHeight/2-l.clientHeight/2);l.style.top=`${m}px`,n.fromTo("opacity",.01,1);break;default:n.fromTo("transform","translateY(100%)",`translateY(${u})`)}return o.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(n)},w=(t,e)=>{const o=(0,s.c)(),n=(0,s.c)(),{position:i,top:c,bottom:u}=e,l=(0,g.g)(t).querySelector(".toast-wrapper");switch(n.addElement(l),i){case"top":n.fromTo("transform",`translateY(${c})`,"translateY(-100%)");break;case"middle":n.fromTo("opacity",.99,0);break;default:n.fromTo("transform",`translateY(${u})`,"translateY(100%)")}return o.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)},P=(t,e)=>{const o=(0,s.c)(),n=(0,s.c)(),{position:i,top:c,bottom:u}=e,l=(0,g.g)(t).querySelector(".toast-wrapper");switch(n.addElement(l),i){case"top":l.style.top=c,n.fromTo("opacity",.01,1);break;case"middle":const m=Math.floor(t.clientHeight/2-l.clientHeight/2);l.style.top=`${m}px`,n.fromTo("opacity",.01,1);break;default:l.style.bottom=u,n.fromTo("opacity",.01,1)}return o.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(n)},A=t=>{const e=(0,s.c)(),o=(0,s.c)(),i=(0,g.g)(t).querySelector(".toast-wrapper");return o.addElement(i).fromTo("opacity",.99,0),e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(o)};const T=class{constructor(t){(0,r.r)(this,t),this.didPresent=(0,r.d)(this,"ionToastDidPresent",7),this.willPresent=(0,r.d)(this,"ionToastWillPresent",7),this.willDismiss=(0,r.d)(this,"ionToastWillDismiss",7),this.didDismiss=(0,r.d)(this,"ionToastDidDismiss",7),this.didPresentShorthand=(0,r.d)(this,"didPresent",7),this.willPresentShorthand=(0,r.d)(this,"willPresent",7),this.willDismissShorthand=(0,r.d)(this,"willDismiss",7),this.didDismissShorthand=(0,r.d)(this,"didDismiss",7),this.delegateController=(0,h.d)(this),this.lockController=(0,C.c)(),this.triggerController=(0,h.e)(),this.customHTMLEnabled=a.c.get("innerHTMLTemplatesEnabled",_.E),this.presented=!1,this.dispatchCancelHandler=e=>{if((0,h.i)(e.detail.role)){const n=this.getButtons().find(i=>"cancel"===i.role);this.callButtonHandler(n)}},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=a.c.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:o}=this;t&&o.addClickListener(e,t)}connectedCallback(){(0,h.j)(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){(0,h.k)(this.el)}componentDidLoad(){!0===this.isOpen&&(0,g.r)(()=>this.present())}present(){var t=this;return(0,x.Z)(function*(){const e=yield t.lockController.lock();yield t.delegateController.attachViewToDom();const{el:o,position:n}=t,c=function M(t,e,o,n){let i;if(i="md"===o?8:"top"===t?10:-10,e&&v.w){!function O(t,e){null===t.offsetParent&&(0,f.p)("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",e)}(e,n);const c=e.getBoundingClientRect();return"top"===t?i+=c.bottom:"bottom"===t&&("md"===o?i+=v.w.innerHeight-c.top:i-=v.w.innerHeight-c.top),{top:`${i}px`,bottom:`${i}px`}}return{top:`calc(${i}px + var(--ion-safe-area-top, 0px))`,bottom:"md"===o?`calc(${i}px + var(--ion-safe-area-bottom, 0px))`:`calc(${i}px - var(--ion-safe-area-bottom, 0px))`}}(n,t.getAnchorElement(),(0,a.b)(t),o);t.lastPresentedPosition=c,yield(0,h.f)(t,"toastEnter",k,P,{position:n,top:c.top,bottom:c.bottom}),t.revealContentToScreenReader=!0,t.duration>0&&(t.durationTimeout=setTimeout(()=>t.dismiss(void 0,"timeout"),t.duration)),e()})()}dismiss(t,e){var o=this;return(0,x.Z)(function*(){var n,i;const c=yield o.lockController.lock(),{durationTimeout:u,position:b,lastPresentedPosition:l}=o;u&&clearTimeout(u);const m=yield(0,h.g)(o,t,e,"toastLeave",w,A,{position:b,top:null!==(n=l?.top)&&void 0!==n?n:"",bottom:null!==(i=l?.bottom)&&void 0!==i?i:""});return m&&(o.delegateController.removeViewFromDom(),o.revealContentToScreenReader=!1),o.lastPresentedPosition=void 0,c(),m})()}onDidDismiss(){return(0,h.h)(this.el,"ionToastDidDismiss")}onWillDismiss(){return(0,h.h)(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map(e=>"string"==typeof e?{text:e}:e):[]}getAnchorElement(){const{position:t,positionAnchor:e,el:o}=this;if(void 0!==e){if("middle"===t&&void 0!==e)return void(0,f.p)('The positionAnchor property is ignored when using position="middle".',this.el);if("string"==typeof e){const n=document.getElementById(e);return null===n?void(0,f.p)(`An anchor element with an ID of "${e}" was not found in the DOM.`,o):n}if(e instanceof HTMLElement)return e;(0,f.p)("Invalid positionAnchor value:",e,o)}}buttonClick(t){var e=this;return(0,x.Z)(function*(){const o=t.role;return(0,h.i)(o)||(yield e.callButtonHandler(t))?e.dismiss(void 0,o):Promise.resolve()})()}callButtonHandler(t){return(0,x.Z)(function*(){if(t?.handler)try{if(!1===(yield(0,h.s)(t.handler)))return!1}catch(e){console.error(e)}return!0})()}renderButtons(t,e){if(0===t.length)return;const o=(0,a.b)(this);return(0,r.h)("div",{class:{"toast-button-group":!0,[`toast-button-group-${e}`]:!0}},t.map(i=>(0,r.h)("button",Object.assign({},i.htmlAttributes,{type:"button",class:L(i),tabIndex:0,onClick:()=>this.buttonClick(i),part:j(i)}),(0,r.h)("div",{class:"toast-button-inner"},i.icon&&(0,r.h)("ion-icon",{"aria-hidden":"true",icon:i.icon,slot:void 0===i.text?"icon-only":void 0,class:"toast-button-icon"}),i.text),"md"===o&&(0,r.h)("ion-ripple-effect",{type:void 0!==i.icon&&void 0===i.text?"unbounded":"bounded"}))))}renderToastMessage(t,e=null){const{customHTMLEnabled:o,message:n}=this;return o?(0,r.h)("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message",innerHTML:(0,_.a)(n)}):(0,r.h)("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message"},n)}renderHeader(t,e=null){return(0,r.h)("div",{key:t,class:"toast-header","aria-hidden":e,part:"header"},this.header)}render(){const{layout:t,el:e,revealContentToScreenReader:o,header:n,message:i}=this,c=this.getButtons(),u=c.filter(E=>"start"===E.side),b=c.filter(E=>"start"!==E.side),l=(0,a.b)(this),m={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${t}`]:!0};return"stacked"===t&&u.length>0&&b.length>0&&(0,f.p)("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",e),(0,r.h)(r.H,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:(0,d.c)(this.color,Object.assign(Object.assign({[l]:!0},(0,d.g)(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),(0,r.h)("div",{class:m},(0,r.h)("div",{class:"toast-container",part:"container"},this.renderButtons(u,"start"),void 0!==this.icon&&(0,r.h)("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),(0,r.h)("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!o&&void 0!==n&&this.renderHeader("oldHeader","true"),!o&&void 0!==i&&this.renderToastMessage("oldMessage","true"),o&&void 0!==n&&this.renderHeader("header"),o&&void 0!==i&&this.renderToastMessage("header")),this.renderButtons(b,"end"))))}get el(){return(0,r.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},L=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":void 0!==t.icon&&void 0===t.text,[`toast-button-${t.role}`]:void 0!==t.role,"ion-focusable":!0,"ion-activatable":!0},(0,d.g)(t.cssClass)),j=t=>(0,h.i)(t.role)?"button cancel":"button";T.style={ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-middle{opacity:0.01}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"}},3567:(D,y,p)=>{p.d(y,{c:()=>_,g:()=>C,h:()=>r,o:()=>h});var x=p(5861);const r=(d,a)=>null!==a.closest(d),_=(d,a)=>"string"==typeof d&&d.length>0?Object.assign({"ion-color":!0,[`ion-color-${d}`]:!0},a):a,C=d=>{const a={};return(d=>void 0!==d?(Array.isArray(d)?d:d.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(d).forEach(s=>a[s]=!0),a},f=/^[a-z][a-z0-9+\-.]*:/,h=function(){var d=(0,x.Z)(function*(a,s,v,k){if(null!=a&&"#"!==a[0]&&!f.test(a)){const w=document.querySelector("ion-router");if(w)return s?.preventDefault(),w.push(a,v,k)}return!1});return function(s,v,k,w){return d.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/6642.7076da7f58e06be4.js b/6642.7076da7f58e06be4.js new file mode 100644 index 00000000..6b589e24 --- /dev/null +++ b/6642.7076da7f58e06be4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6642],{6642:(G,C,c)=>{c.r(C),c.d(C,{ion_toast:()=>$});var y=c(5861),i=c(9942),T=c(8958),b=c(512),M=c(9229),v=c(2400),h=c(2936),p=c(4459),l=c(5551),d=c(4913),k=c(1848),D=c(6535);c(2019);const O=(t,e)=>Math.floor(t/2-e/2),K=(t,e)=>{const n=(0,d.c)(),o=(0,d.c)(),{position:r,top:s,bottom:u}=e,a=(0,b.g)(t).querySelector(".toast-wrapper");switch(o.addElement(a),r){case"top":o.fromTo("transform","translateY(-100%)",`translateY(${s})`);break;case"middle":const g=O(t.clientHeight,a.clientHeight);a.style.top=`${g}px`,o.fromTo("opacity",.01,1);break;default:o.fromTo("transform","translateY(100%)",`translateY(${u})`)}return n.easing("cubic-bezier(.155,1.105,.295,1.12)").duration(400).addAnimation(o)},F=(t,e)=>{const n=(0,d.c)(),o=(0,d.c)(),{position:r,top:s,bottom:u}=e,a=(0,b.g)(t).querySelector(".toast-wrapper");switch(o.addElement(a),r){case"top":o.fromTo("transform",`translateY(${s})`,"translateY(-100%)");break;case"middle":o.fromTo("opacity",.99,0);break;default:o.fromTo("transform",`translateY(${u})`,"translateY(100%)")}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(o)},N=(t,e)=>{const n=(0,d.c)(),o=(0,d.c)(),{position:r,top:s,bottom:u}=e,a=(0,b.g)(t).querySelector(".toast-wrapper");switch(o.addElement(a),r){case"top":a.style.setProperty("transform",`translateY(${s})`),o.fromTo("opacity",.01,1);break;case"middle":const g=O(t.clientHeight,a.clientHeight);a.style.top=`${g}px`,o.fromTo("opacity",.01,1);break;default:a.style.setProperty("transform",`translateY(${u})`),o.fromTo("opacity",.01,1)}return n.easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation(o)},Z=t=>{const e=(0,d.c)(),n=(0,d.c)(),r=(0,b.g)(t).querySelector(".toast-wrapper");return n.addElement(r).fromTo("opacity",.99,0),e.easing("cubic-bezier(.36,.66,.04,1)").duration(300).addAnimation(n)},$=class{constructor(t){(0,i.r)(this,t),this.didPresent=(0,i.d)(this,"ionToastDidPresent",7),this.willPresent=(0,i.d)(this,"ionToastWillPresent",7),this.willDismiss=(0,i.d)(this,"ionToastWillDismiss",7),this.didDismiss=(0,i.d)(this,"ionToastDidDismiss",7),this.didPresentShorthand=(0,i.d)(this,"didPresent",7),this.willPresentShorthand=(0,i.d)(this,"willPresent",7),this.willDismissShorthand=(0,i.d)(this,"willDismiss",7),this.didDismissShorthand=(0,i.d)(this,"didDismiss",7),this.delegateController=(0,h.d)(this),this.lockController=(0,M.c)(),this.triggerController=(0,h.e)(),this.customHTMLEnabled=l.c.get("innerHTMLTemplatesEnabled",T.E),this.presented=!1,this.dispatchCancelHandler=e=>{if((0,h.i)(e.detail.role)){const o=this.getButtons().find(r=>"cancel"===r.role);this.callButtonHandler(o)}},this.createSwipeGesture=e=>{(this.gesture=((t,e,n)=>{const o=(0,b.g)(t).querySelector(".toast-wrapper"),r=t.clientHeight,s=o.getBoundingClientRect();let u=0;const a="middle"===t.position?.5:0,g="top"===t.position?-1:1,x=O(r,s.height),W=[{offset:0,transform:`translateY(-${x+s.height}px)`},{offset:.5,transform:"translateY(0px)"},{offset:1,transform:`translateY(${x+s.height}px)`}],m=(0,d.c)("toast-swipe-to-dismiss-animation").addElement(o).duration(100);switch(t.position){case"middle":u=r+s.height,m.keyframes(W),m.progressStart(!0,.5);break;case"top":u=s.bottom,m.keyframes([{offset:0,transform:`translateY(${e.top})`},{offset:1,transform:"translateY(-100%)"}]),m.progressStart(!0,0);break;default:u=r-s.top,m.keyframes([{offset:0,transform:`translateY(${e.bottom})`},{offset:1,transform:"translateY(100%)"}]),m.progressStart(!0,0)}const Y=w=>w*g/u,S=(0,D.createGesture)({el:o,gestureName:"toast-swipe-to-dismiss",gesturePriority:h.O,direction:"y",onMove:w=>{const A=a+Y(w.deltaY);m.progressStep(A)},onEnd:w=>{const A=w.velocityY,I=(w.deltaY+1e3*A)/u*g;S.enable(!1);let _=!0,B=1,E=0,L=0;if("middle"===t.position){_=I>=.25||I<=-.25,B=1,E=0;const R=o.getBoundingClientRect(),j=R.top-x,H=(x+R.height)*(w.deltaY<=0?-1:1);m.keyframes([{offset:0,transform:`translateY(${j}px)`},{offset:1,transform:`translateY(${_?`${H}px`:"0px"})`}]),L=H-j}else _=I>=.5,B=_?1:0,E=Y(w.deltaY),L=(_?1-E:E)*u;const ot=Math.min(Math.abs(L)/Math.abs(A),200);m.onFinish(()=>{_?(n(),m.destroy()):("middle"===t.position?m.keyframes(W).progressStart(!0,.5):m.progressStart(!0,0),S.enable(!0))},{oneTimeCallback:!0}).progressEnd(B,E,ot)}});return S})(this.el,e,()=>{this.dismiss(void 0,h.G)})).enable(!0)},this.destroySwipeGesture=()=>{const{gesture:e}=this;void 0!==e&&(e.destroy(),this.gesture=void 0)},this.prefersSwipeGesture=()=>{const{swipeGesture:e}=this;return"vertical"===e},this.revealContentToScreenReader=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.color=void 0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.cssClass=void 0,this.duration=l.c.getNumber("toastDuration",0),this.header=void 0,this.layout="baseline",this.message=void 0,this.keyboardClose=!1,this.position="bottom",this.positionAnchor=void 0,this.buttons=void 0,this.translucent=!1,this.animated=!0,this.icon=void 0,this.htmlAttributes=void 0,this.swipeGesture=void 0,this.isOpen=!1,this.trigger=void 0}swipeGestureChanged(){this.destroySwipeGesture(),this.presented&&this.prefersSwipeGesture()&&this.createSwipeGesture(this.lastPresentedPosition)}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:n}=this;t&&n.addClickListener(e,t)}connectedCallback(){(0,h.j)(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){(0,h.k)(this.el)}componentDidLoad(){!0===this.isOpen&&(0,b.r)(()=>this.present()),this.triggerChanged()}present(){var t=this;return(0,y.Z)(function*(){const e=yield t.lockController.lock();yield t.delegateController.attachViewToDom();const{el:n,position:o}=t,s=function z(t,e,n,o){let r;if(r="md"===n?"top"===t?8:-8:"top"===t?10:-10,e&&k.w){!function U(t,e){null===t.offsetParent&&(0,v.p)("The positionAnchor element for ion-toast was found in the DOM, but appears to be hidden. This may lead to unexpected positioning of the toast.",e)}(e,o);const s=e.getBoundingClientRect();return"top"===t?r+=s.bottom:"bottom"===t&&(r-=k.w.innerHeight-s.top),{top:`${r}px`,bottom:`${r}px`}}return{top:`calc(${r}px + var(--ion-safe-area-top, 0px))`,bottom:`calc(${r}px - var(--ion-safe-area-bottom, 0px))`}}(o,t.getAnchorElement(),(0,l.b)(t),n);t.lastPresentedPosition=s,yield(0,h.f)(t,"toastEnter",K,N,{position:o,top:s.top,bottom:s.bottom}),t.revealContentToScreenReader=!0,t.duration>0&&(t.durationTimeout=setTimeout(()=>t.dismiss(void 0,"timeout"),t.duration)),t.prefersSwipeGesture()&&t.createSwipeGesture(s),e()})()}dismiss(t,e){var n=this;return(0,y.Z)(function*(){var o,r;const s=yield n.lockController.lock(),{durationTimeout:u,position:f,lastPresentedPosition:a}=n;u&&clearTimeout(u);const g=yield(0,h.g)(n,t,e,"toastLeave",F,Z,{position:f,top:null!==(o=a?.top)&&void 0!==o?o:"",bottom:null!==(r=a?.bottom)&&void 0!==r?r:""});return g&&(n.delegateController.removeViewFromDom(),n.revealContentToScreenReader=!1),n.lastPresentedPosition=void 0,n.destroySwipeGesture(),s(),g})()}onDidDismiss(){return(0,h.h)(this.el,"ionToastDidDismiss")}onWillDismiss(){return(0,h.h)(this.el,"ionToastWillDismiss")}getButtons(){return this.buttons?this.buttons.map(e=>"string"==typeof e?{text:e}:e):[]}getAnchorElement(){const{position:t,positionAnchor:e,el:n}=this;if(void 0!==e){if("middle"===t&&void 0!==e)return void(0,v.p)('The positionAnchor property is ignored when using position="middle".',this.el);if("string"==typeof e){const o=document.getElementById(e);return null===o?void(0,v.p)(`An anchor element with an ID of "${e}" was not found in the DOM.`,n):o}if(e instanceof HTMLElement)return e;(0,v.p)("Invalid positionAnchor value:",e,n)}}buttonClick(t){var e=this;return(0,y.Z)(function*(){const n=t.role;return(0,h.i)(n)||(yield e.callButtonHandler(t))?e.dismiss(void 0,n):Promise.resolve()})()}callButtonHandler(t){return(0,y.Z)(function*(){if(t?.handler)try{if(!1===(yield(0,h.s)(t.handler)))return!1}catch(e){console.error(e)}return!0})()}renderButtons(t,e){if(0===t.length)return;const n=(0,l.b)(this);return(0,i.h)("div",{class:{"toast-button-group":!0,[`toast-button-group-${e}`]:!0}},t.map(r=>(0,i.h)("button",Object.assign({},r.htmlAttributes,{type:"button",class:Q(r),tabIndex:0,onClick:()=>this.buttonClick(r),part:q(r)}),(0,i.h)("div",{class:"toast-button-inner"},r.icon&&(0,i.h)("ion-icon",{"aria-hidden":"true",icon:r.icon,slot:void 0===r.text?"icon-only":void 0,class:"toast-button-icon"}),r.text),"md"===n&&(0,i.h)("ion-ripple-effect",{type:void 0!==r.icon&&void 0===r.text?"unbounded":"bounded"}))))}renderToastMessage(t,e=null){const{customHTMLEnabled:n,message:o}=this;return n?(0,i.h)("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message",innerHTML:(0,T.a)(o)}):(0,i.h)("div",{key:t,"aria-hidden":e,class:"toast-message",part:"message"},o)}renderHeader(t,e=null){return(0,i.h)("div",{key:t,class:"toast-header","aria-hidden":e,part:"header"},this.header)}render(){const{layout:t,el:e,revealContentToScreenReader:n,header:o,message:r}=this,s=this.getButtons(),u=s.filter(x=>"start"===x.side),f=s.filter(x=>"start"!==x.side),a=(0,l.b)(this),g={"toast-wrapper":!0,[`toast-${this.position}`]:!0,[`toast-layout-${t}`]:!0};return"stacked"===t&&u.length>0&&f.length>0&&(0,v.p)("This toast is using start and end buttons with the stacked toast layout. We recommend following the best practice of using either start or end buttons with the stacked toast layout.",e),(0,i.h)(i.H,Object.assign({tabindex:"-1"},this.htmlAttributes,{style:{zIndex:`${6e4+this.overlayIndex}`},class:(0,p.c)(this.color,Object.assign(Object.assign({[a]:!0},(0,p.g)(this.cssClass)),{"overlay-hidden":!0,"toast-translucent":this.translucent})),onIonToastWillDismiss:this.dispatchCancelHandler}),(0,i.h)("div",{class:g},(0,i.h)("div",{class:"toast-container",part:"container"},this.renderButtons(u,"start"),void 0!==this.icon&&(0,i.h)("ion-icon",{class:"toast-icon",part:"icon",icon:this.icon,lazy:!1,"aria-hidden":"true"}),(0,i.h)("div",{class:"toast-content",role:"status","aria-atomic":"true","aria-live":"polite"},!n&&void 0!==o&&this.renderHeader("oldHeader","true"),!n&&void 0!==r&&this.renderToastMessage("oldMessage","true"),n&&void 0!==o&&this.renderHeader("header"),n&&void 0!==r&&this.renderToastMessage("header")),this.renderButtons(f,"end"))))}get el(){return(0,i.f)(this)}static get watchers(){return{swipeGesture:["swipeGestureChanged"],isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},Q=t=>Object.assign({"toast-button":!0,"toast-button-icon-only":void 0!==t.icon&&void 0===t.text,[`toast-button-${t.role}`]:void 0!==t.role,"ion-focusable":!0,"ion-activatable":!0},(0,p.g)(t.cssClass)),q=t=>(0,h.i)(t.role)?"button cancel":"button";$.style={ios:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-50, #f2f2f2);--border-radius:14px;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-850, #262626);--max-width:700px;--max-height:478px;--start:10px;--end:10px;font-size:clamp(14px, 0.875rem, 43.4px)}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;z-index:10}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){:host(.toast-translucent) .toast-wrapper{background:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}:host(.ion-color.toast-translucent) .toast-wrapper{background:rgba(var(--ion-color-base-rgb), 0.8)}}.toast-wrapper.toast-middle{opacity:0.01}.toast-content{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:15px;padding-bottom:15px}.toast-header{margin-bottom:2px;font-weight:500}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;min-height:44px;-webkit-transition:background-color, opacity 100ms linear;transition:background-color, opacity 100ms linear;border:0;background-color:transparent;font-family:var(--ion-font-family);font-size:clamp(17px, 1.0625rem, 21.998px);font-weight:500;overflow:hidden}.toast-button.ion-activated{opacity:0.4}@media (any-hover: hover){.toast-button:hover{opacity:0.6}}",md:":host{--border-width:0;--border-style:none;--border-color:initial;--box-shadow:none;--min-width:auto;--width:auto;--min-height:auto;--height:auto;--max-height:auto;--white-space:normal;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;color:var(--color);font-family:var(--ion-font-family, inherit);contain:strict;z-index:1001;pointer-events:none}@supports (inset-inline-start: 0){:host{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host{left:0}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)){left:unset;right:unset;right:0}}}:host(.overlay-hidden){display:none}:host(.ion-color){--button-color:inherit;color:var(--ion-color-contrast)}:host(.ion-color) .toast-button-cancel{color:inherit}:host(.ion-color) .toast-wrapper{background:var(--ion-color-base)}.toast-wrapper{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}@supports (inset-inline-start: 0){.toast-wrapper{inset-inline-start:var(--start);inset-inline-end:var(--end)}}@supports not (inset-inline-start: 0){.toast-wrapper{left:var(--start);right:var(--end)}:host-context([dir=rtl]) .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}[dir=rtl] .toast-wrapper{left:unset;right:unset;left:var(--end);right:var(--start)}@supports selector(:dir(rtl)){.toast-wrapper:dir(rtl){left:unset;right:unset;left:var(--end);right:var(--start)}}}.toast-wrapper.toast-top{-webkit-transform:translate3d(0, -100%, 0);transform:translate3d(0, -100%, 0);top:0}.toast-wrapper.toast-bottom{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);bottom:0}.toast-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;pointer-events:auto;height:inherit;min-height:inherit;max-height:inherit;contain:content}.toast-layout-stacked .toast-container{-ms-flex-wrap:wrap;flex-wrap:wrap}.toast-layout-baseline .toast-content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center}.toast-icon{-webkit-margin-start:16px;margin-inline-start:16px}.toast-content{min-width:0}.toast-message{-ms-flex:1;flex:1;white-space:var(--white-space)}.toast-button-group{display:-ms-flexbox;display:flex}.toast-layout-stacked .toast-button-group{-ms-flex-pack:end;justify-content:end;width:100%}.toast-button{border:0;outline:none;color:var(--button-color);z-index:0}.toast-icon,.toast-button-icon{font-size:1.4em}.toast-button-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}@media (any-hover: hover){.toast-button:hover{cursor:pointer}}:host{--background:var(--ion-color-step-800, #333333);--border-radius:4px;--box-shadow:0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12);--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-50, #f2f2f2);--max-width:700px;--start:8px;--end:8px;font-size:0.875rem}.toast-wrapper{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;display:block;position:absolute;opacity:0.01;z-index:10}.toast-content{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:14px;padding-bottom:14px}.toast-header{margin-bottom:2px;font-weight:500;line-height:1.25rem}.toast-message{line-height:1.25rem}.toast-layout-baseline .toast-button-group-start{-webkit-margin-start:8px;margin-inline-start:8px}.toast-layout-stacked .toast-button-group-start{-webkit-margin-end:8px;margin-inline-end:8px;margin-top:8px}.toast-layout-baseline .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px}.toast-layout-stacked .toast-button-group-end{-webkit-margin-end:8px;margin-inline-end:8px;margin-bottom:8px}.toast-button{-webkit-padding-start:15px;padding-inline-start:15px;-webkit-padding-end:15px;padding-inline-end:15px;padding-top:10px;padding-bottom:10px;position:relative;background-color:transparent;font-family:var(--ion-font-family);font-size:0.875rem;font-weight:500;letter-spacing:0.84px;text-transform:uppercase;overflow:hidden}.toast-button-cancel{color:var(--ion-color-step-100, #e6e6e6)}.toast-button-icon-only{border-radius:50%;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px;padding-top:9px;padding-bottom:9px;width:36px;height:36px}@media (any-hover: hover){.toast-button:hover{background-color:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08)}.toast-button-cancel:hover{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.08)}}"}},4459:(G,C,c)=>{c.d(C,{c:()=>T,g:()=>M,h:()=>i,o:()=>h});var y=c(5861);const i=(p,l)=>null!==l.closest(p),T=(p,l)=>"string"==typeof p&&p.length>0?Object.assign({"ion-color":!0,[`ion-color-${p}`]:!0},l):l,M=p=>{const l={};return(p=>void 0!==p?(Array.isArray(p)?p:p.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(p).forEach(d=>l[d]=!0),l},v=/^[a-z][a-z0-9+\-.]*:/,h=function(){var p=(0,y.Z)(function*(l,d,k,D){if(null!=l&&"#"!==l[0]&&!v.test(l)){const P=document.querySelector("ion-router");if(P)return d?.preventDefault(),P.push(l,k,D)}return!1});return function(d,k,D,P){return p.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/6673.5c0d9275b99698ef.js b/6673.6801f9b2a82684aa.js similarity index 98% rename from 6673.5c0d9275b99698ef.js rename to 6673.6801f9b2a82684aa.js index 785dea0f..4928375a 100644 --- a/6673.5c0d9275b99698ef.js +++ b/6673.6801f9b2a82684aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6673],{6673:(h,e,i)=>{i.r(e),i.d(e,{ion_chip:()=>l});var t=i(5349),s=i(3567),g=i(3882);const l=class{constructor(a){(0,t.r)(this,a),this.color=void 0,this.outline=!1,this.disabled=!1}render(){const a=(0,g.b)(this);return(0,t.h)(t.H,{"aria-disabled":this.disabled?"true":null,class:(0,s.c)(this.color,{[a]:!0,"chip-outline":this.outline,"chip-disabled":this.disabled,"ion-activatable":!0})},(0,t.h)("slot",null),"md"===a&&(0,t.h)("ion-ripple-effect",null))}};l.style={ios:":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px;margin-top:4px;margin-bottom:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;min-height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:1.4285714286em}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-icon:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar){-ms-flex-negative:0;flex-shrink:0;width:1.7142857143em;height:1.7142857143em}::slotted(ion-avatar:first-child){-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px;margin-top:-4px;margin-bottom:-4px}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}:host{font-size:clamp(13px, 0.875rem, 22px)}",md:":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px;margin-top:4px;margin-bottom:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;min-height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:1.4285714286em}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-icon:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar){-ms-flex-negative:0;flex-shrink:0;width:1.7142857143em;height:1.7142857143em}::slotted(ion-avatar:first-child){-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px;margin-top:-4px;margin-bottom:-4px}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}:host{font-size:0.875rem}"}},3567:(h,e,i)=>{i.d(e,{c:()=>g,g:()=>d,h:()=>s,o:()=>a});var t=i(5861);const s=(o,n)=>null!==n.closest(o),g=(o,n)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},n):n,d=o=>{const n={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(r=>null!=r).map(r=>r.trim()).filter(r=>""!==r):[])(o).forEach(r=>n[r]=!0),n},l=/^[a-z][a-z0-9+\-.]*:/,a=function(){var o=(0,t.Z)(function*(n,r,p,x){if(null!=n&&"#"!==n[0]&&!l.test(n)){const b=document.querySelector("ion-router");if(b)return r?.preventDefault(),b.push(n,p,x)}return!1});return function(r,p,x,b){return o.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6673],{6673:(h,e,i)=>{i.r(e),i.d(e,{ion_chip:()=>l});var t=i(9942),s=i(4459),g=i(5551);const l=class{constructor(a){(0,t.r)(this,a),this.color=void 0,this.outline=!1,this.disabled=!1}render(){const a=(0,g.b)(this);return(0,t.h)(t.H,{"aria-disabled":this.disabled?"true":null,class:(0,s.c)(this.color,{[a]:!0,"chip-outline":this.outline,"chip-disabled":this.disabled,"ion-activatable":!0})},(0,t.h)("slot",null),"md"===a&&(0,t.h)("ion-ripple-effect",null))}};l.style={ios:":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px;margin-top:4px;margin-bottom:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;min-height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:1.4285714286em}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-icon:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar){-ms-flex-negative:0;flex-shrink:0;width:1.7142857143em;height:1.7142857143em}::slotted(ion-avatar:first-child){-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px;margin-top:-4px;margin-bottom:-4px}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}:host{font-size:clamp(13px, 0.875rem, 22px)}",md:":host{--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.12);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.87);border-radius:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:4px;margin-inline-end:4px;margin-top:4px;margin-bottom:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-inline-flexbox;display:inline-flex;position:relative;-ms-flex-align:center;align-items:center;min-height:32px;background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit);cursor:pointer;overflow:hidden;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box}:host(.chip-disabled){cursor:default;opacity:0.4;pointer-events:none}:host(.ion-color){background:rgba(var(--ion-color-base-rgb), 0.08);color:var(--ion-color-shade)}:host(.ion-color:focus){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.ion-color.ion-activated){background:rgba(var(--ion-color-base-rgb), 0.16)}:host(.chip-outline){border-width:1px;border-style:solid}:host(.chip-outline){border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.32);background:transparent}:host(.chip-outline.ion-color){border-color:rgba(var(--ion-color-base-rgb), 0.32)}:host(.chip-outline:not(.ion-color):focus){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}:host(.chip-outline.ion-activated:not(.ion-color)){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)}::slotted(ion-icon){font-size:1.4285714286em}:host(:not(.ion-color)) ::slotted(ion-icon){color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}::slotted(ion-icon:first-child){-webkit-margin-start:-4px;margin-inline-start:-4px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-icon:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-4px;margin-inline-end:-4px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar){-ms-flex-negative:0;flex-shrink:0;width:1.7142857143em;height:1.7142857143em}::slotted(ion-avatar:first-child){-webkit-margin-start:-8px;margin-inline-start:-8px;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:-4px;margin-bottom:-4px}::slotted(ion-avatar:last-child){-webkit-margin-start:8px;margin-inline-start:8px;-webkit-margin-end:-8px;margin-inline-end:-8px;margin-top:-4px;margin-bottom:-4px}:host(:focus){outline:none}:host(:focus){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-activated){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.2)}@media (any-hover: hover){:host(:hover){--background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.16)}:host(.ion-color:hover){background:rgba(var(--ion-color-base-rgb), 0.12)}:host(.chip-outline:not(.ion-color):hover){background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.04)}}:host{font-size:0.875rem}"}},4459:(h,e,i)=>{i.d(e,{c:()=>g,g:()=>d,h:()=>s,o:()=>a});var t=i(5861);const s=(o,n)=>null!==n.closest(o),g=(o,n)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},n):n,d=o=>{const n={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(r=>null!=r).map(r=>r.trim()).filter(r=>""!==r):[])(o).forEach(r=>n[r]=!0),n},l=/^[a-z][a-z0-9+\-.]*:/,a=function(){var o=(0,t.Z)(function*(n,r,p,x){if(null!=n&&"#"!==n[0]&&!l.test(n)){const b=document.querySelector("ion-router");if(b)return r?.preventDefault(),b.push(n,p,x)}return!1});return function(r,p,x,b){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/6754.19a35a2430ba9096.js b/6754.19a35a2430ba9096.js new file mode 100644 index 00000000..003e32e5 --- /dev/null +++ b/6754.19a35a2430ba9096.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6754],{6754:(F,_,r)=>{r.r(_),r.d(_,{ion_select:()=>P,ion_select_option:()=>D,ion_select_popover:()=>A});var x=r(5861),s=r(9942),L=r(9749),j=r(4793),w=r(983),f=r(512),O=r(2400),a=r(2936),p=r(4162),c=r(4459),C=r(6806),y=r(1076),g=r(5551);r(1848);const P=class{constructor(e){(0,s.r)(this,e),this.ionChange=(0,s.d)(this,"ionChange",7),this.ionCancel=(0,s.d)(this,"ionCancel",7),this.ionDismiss=(0,s.d)(this,"ionDismiss",7),this.ionFocus=(0,s.d)(this,"ionFocus",7),this.ionBlur=(0,s.d)(this,"ionBlur",7),this.ionStyle=(0,s.d)(this,"ionStyle",7),this.inputId="ion-sel-"+U++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onClick=t=>{const l=t.target,i=l.closest('[slot="start"], [slot="end"]');l===this.el||null===i?(this.setFocus(),this.open(t)):t.preventDefault()},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.isExpanded=!1,this.cancelText="Cancel",this.color=void 0,this.compareWith=void 0,this.disabled=!1,this.fill=void 0,this.interface="alert",this.interfaceOptions={},this.justify="space-between",this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.multiple=!1,this.name=this.inputId,this.okText="OK",this.placeholder=void 0,this.selectedText=void 0,this.toggleIcon=void 0,this.expandedIcon=void 0,this.shape=void 0,this.value=void 0}styleChanged(){this.emitStyle()}setValue(e){this.value=e,this.ionChange.emit({value:e})}componentWillLoad(){this.inheritedAttributes=(0,f.k)(this.el,["aria-label"])}connectedCallback(){var e=this;return(0,x.Z)(function*(){const{el:t}=e;e.legacyFormController=(0,L.c)(t),e.notchController=(0,j.c)(t,()=>e.notchSpacerEl,()=>e.labelSlot),e.updateOverlayOptions(),e.emitStyle(),e.mutationO=(0,C.w)(e.el,"ion-select-option",(0,x.Z)(function*(){e.updateOverlayOptions(),(0,s.i)(e)}))})()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}open(e){var t=this;return(0,x.Z)(function*(){if(t.disabled||t.isExpanded)return;t.isExpanded=!0;const l=t.overlay=yield t.createOverlay(e);if(l.onDidDismiss().then(()=>{t.overlay=void 0,t.isExpanded=!1,t.ionDismiss.emit(),t.setFocus()}),yield l.present(),"popover"===t.interface){const i=t.childOpts.map(o=>o.value).indexOf(t.value);if(i>-1){const o=l.querySelector(`.select-interface-option:nth-child(${i+1})`);if(o){(0,f.f)(o);const n=o.querySelector("ion-radio, ion-checkbox");n&&n.focus()}}else{const o=l.querySelector("ion-radio:not(.radio-disabled), ion-checkbox:not(.checkbox-disabled)");o&&((0,f.f)(o.closest("ion-item")),o.focus())}}return l})()}createOverlay(e){let t=this.interface;return"action-sheet"===t&&this.multiple&&(console.warn(`Select interface cannot be "${t}" with a multi-value select. Using the "alert" interface instead.`),t="alert"),"popover"===t&&!e&&(console.warn(`Select interface cannot be a "${t}" without passing an event. Using the "alert" interface instead.`),t="alert"),"action-sheet"===t?this.openActionSheet():"popover"===t?this.openPopover(e):this.openAlert()}updateOverlayOptions(){const e=this.overlay;if(!e)return;const t=this.childOpts,l=this.value;switch(this.interface){case"action-sheet":e.buttons=this.createActionSheetButtons(t,l);break;case"popover":const i=e.querySelector("ion-select-popover");i&&(i.options=this.createPopoverOptions(t,l));break;case"alert":e.inputs=this.createAlertInputs(t,this.multiple?"checkbox":"radio",l)}}createActionSheetButtons(e,t){const l=e.map(i=>{const o=E(i),n=Array.from(i.classList).filter(d=>"hydrated"!==d).join(" "),h=`${I} ${n}`;return{role:(0,w.i)(t,o,this.compareWith)?"selected":"",text:i.textContent,cssClass:h,handler:()=>{this.setValue(o)}}});return l.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),l}createAlertInputs(e,t,l){return e.map(o=>{const n=E(o),h=Array.from(o.classList).filter(u=>"hydrated"!==u).join(" ");return{type:t,cssClass:`${I} ${h}`,label:o.textContent||"",value:n,checked:(0,w.i)(l,n,this.compareWith),disabled:o.disabled}})}createPopoverOptions(e,t){return e.map(i=>{const o=E(i),n=Array.from(i.classList).filter(d=>"hydrated"!==d).join(" ");return{text:i.textContent||"",cssClass:`${I} ${n}`,value:o,checked:(0,w.i)(t,o,this.compareWith),disabled:i.disabled,handler:d=>{this.setValue(d),this.multiple||this.close()}}})}openPopover(e){var t=this;return(0,x.Z)(function*(){const{fill:l,labelPlacement:i}=t,o=t.interfaceOptions,n=(0,g.b)(t),h="md"!==n,d=t.multiple,u=t.value;let b=e,v="auto";if(t.legacyFormController.hasLegacyControl()){const m=t.el.closest("ion-item");m&&(m.classList.contains("item-label-floating")||m.classList.contains("item-label-stacked"))&&(b=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:m}}),v="cover")}else"floating"===i||"stacked"===i||"md"===n&&void 0!==l?v="cover":b=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:t.nativeWrapperEl}});const k=Object.assign(Object.assign({mode:n,event:b,alignment:"center",size:v,showBackdrop:h},o),{component:"ion-select-popover",cssClass:["select-popover",o.cssClass],componentProps:{header:o.header,subHeader:o.subHeader,message:o.message,multiple:d,value:u,options:t.createPopoverOptions(t.childOpts,u)}});return a.c.create(k)})()}openActionSheet(){var e=this;return(0,x.Z)(function*(){const t=(0,g.b)(e),l=e.interfaceOptions,i=Object.assign(Object.assign({mode:t},l),{buttons:e.createActionSheetButtons(e.childOpts,e.value),cssClass:["select-action-sheet",l.cssClass]});return a.b.create(i)})()}openAlert(){var e=this;return(0,x.Z)(function*(){let t,l;e.legacyFormController.hasLegacyControl()?(t=e.getLabel(),l=t?t.textContent:null):l=e.labelText;const i=e.interfaceOptions,o=e.multiple?"checkbox":"radio",n=(0,g.b)(e),h=Object.assign(Object.assign({mode:n},i),{header:i.header?i.header:l,inputs:e.createAlertInputs(e.childOpts,o,e.value),buttons:[{text:e.cancelText,role:"cancel",handler:()=>{e.ionCancel.emit()}},{text:e.okText,handler:d=>{e.setValue(d)}}],cssClass:["select-alert",i.cssClass,e.multiple?"multiple-select-alert":"single-select-alert"]});return a.a.create(h)})()}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return(0,f.h)(this.el)}hasValue(){return""!==this.getText()}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}get labelText(){const{label:e}=this;if(void 0!==e)return e;const{labelSlot:t}=this;return null!==t?t.textContent:void 0}getText(){const e=this.selectedText;return null!=e&&""!==e?e:R(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){const{disabled:e}=this,t={"interactive-disabled":e};this.legacyFormController.hasLegacyControl()&&(t.interactive=!0,t.select=!0,t["select-disabled"]=e,t["has-placeholder"]=void 0!==this.placeholder,t["has-value"]=this.hasValue(),t["has-focus"]=this.isExpanded,t.legacy=!!this.legacy),this.ionStyle.emit(t)}renderLabel(){const{label:e}=this;return(0,s.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},void 0===e?(0,s.h)("slot",{name:"label"}):(0,s.h)("div",{class:"label-text"},e))}componentDidRender(){var e;null===(e=this.notchController)||void 0===e||e.calculateNotchWidth()}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===(0,g.b)(this)&&"outline"===this.fill?[(0,s.h)("div",{class:"select-outline-container"},(0,s.h)("div",{class:"select-outline-start"}),(0,s.h)("div",{class:{"select-outline-notch":!0,"select-outline-notch-hidden":!this.hasLabel}},(0,s.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:l=>this.notchSpacerEl=l},this.label)),(0,s.h)("div",{class:"select-outline-end"})),this.renderLabel()]:this.renderLabel()}renderSelect(){const{disabled:e,el:t,isExpanded:l,expandedIcon:i,labelPlacement:o,justify:n,placeholder:h,fill:d,shape:u,name:b,value:v}=this,k=(0,g.b)(this),m="floating"===o||"stacked"===o,S=!m,Z=(0,p.i)(t)?"rtl":"ltr",M=(0,c.h)("ion-item",this.el),G="md"===k&&"outline"!==d&&!M,W=this.hasValue(),N=null!==t.querySelector('[slot="start"], [slot="end"]');(0,f.d)(!0,t,b,T(v),e);const J="stacked"===o||"floating"===o&&(W||l||N);return(0,s.h)(s.H,{onClick:this.onClick,class:(0,c.c)(this.color,{[k]:!0,"in-item":M,"in-item-color":(0,c.h)("ion-item.ion-color",t),"select-disabled":e,"select-expanded":l,"has-expanded-icon":void 0!==i,"has-value":W,"label-floating":J,"has-placeholder":void 0!==h,"ion-focusable":!0,[`select-${Z}`]:!0,[`select-fill-${d}`]:void 0!==d,[`select-justify-${n}`]:S,[`select-shape-${u}`]:void 0!==u,[`select-label-placement-${o}`]:!0})},(0,s.h)("label",{class:"select-wrapper",id:"select-label"},this.renderLabelContainer(),(0,s.h)("div",{class:"select-wrapper-inner"},(0,s.h)("slot",{name:"start"}),(0,s.h)("div",{class:"native-wrapper",ref:Q=>this.nativeWrapperEl=Q,part:"container"},this.renderSelectText(),this.renderListbox()),(0,s.h)("slot",{name:"end"}),!m&&this.renderSelectIcon()),m&&this.renderSelectIcon(),G&&(0,s.h)("div",{class:"select-highlight"})))}renderLegacySelect(){this.hasLoggedDeprecationWarning||((0,O.p)('ion-select now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: ...\nExample with aria-label: ...\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,O.p)('ion-select is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n Developers can dismiss this warning by removing their usage of the "legacy" property and using the new select syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{disabled:e,el:t,inputId:l,isExpanded:i,expandedIcon:o,name:n,placeholder:h,value:d}=this,u=(0,g.b)(this),{labelText:b,labelId:v}=(0,f.e)(t,l);(0,f.d)(!0,t,n,T(d),e);let m=this.getText();""===m&&void 0!==h&&(m=h);const S=void 0!==b?""!==m?`${m}, ${b}`:b:m;return(0,s.h)(s.H,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":e?"true":null,"aria-label":S,class:{[u]:!0,"in-item":(0,c.h)("ion-item",t),"in-item-color":(0,c.h)("ion-item.ion-color",t),"select-disabled":e,"select-expanded":i,"has-expanded-icon":void 0!==o,"legacy-select":!0}},this.renderSelectText(),this.renderSelectIcon(),(0,s.h)("label",{id:v},S),this.renderListbox())}renderSelectText(){const{placeholder:e}=this;let l=!1,i=this.getText();return""===i&&void 0!==e&&(i=e,l=!0),(0,s.h)("div",{"aria-hidden":"true",class:{"select-text":!0,"select-placeholder":l},part:l?"placeholder":"text"},i)}renderSelectIcon(){const e=(0,g.b)(this),{isExpanded:t,toggleIcon:l,expandedIcon:i}=this;let o;return o=t&&void 0!==i?i:l??("ios"===e?y.w:y.q),(0,s.h)("ion-icon",{class:"select-icon",part:"icon","aria-hidden":"true",icon:o})}get ariaLabel(){var e,t;const{placeholder:l,el:i,inputId:o,inheritedAttributes:n}=this,h=this.getText(),{labelText:d}=(0,f.e)(i,o),u=null!==(t=null!==(e=this.labelText)&&void 0!==e?e:n["aria-label"])&&void 0!==t?t:d;let b=h;return""===b&&void 0!==l&&(b=l),void 0!==u&&(b=""===b?u:`${u}, ${b}`),b}renderListbox(){const{disabled:e,inputId:t,isExpanded:l}=this;return(0,s.h)("button",{disabled:e,id:t,"aria-label":this.ariaLabel,"aria-haspopup":"dialog","aria-expanded":`${l}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:i=>this.focusEl=i})}render(){const{legacyFormController:e}=this;return e.hasLegacyControl()?this.renderLegacySelect():this.renderSelect()}get el(){return(0,s.f)(this)}static get watchers(){return{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}}},E=e=>{const t=e.value;return void 0===t?e.textContent||"":t},T=e=>{if(null!=e)return Array.isArray(e)?e.join(","):e.toString()},R=(e,t,l)=>void 0===t?"":Array.isArray(t)?t.map(i=>z(e,i,l)).filter(i=>null!==i).join(", "):z(e,t,l)||"",z=(e,t,l)=>{const i=e.find(o=>(0,w.c)(t,E(o),l));return i?i.textContent:null};let U=0;const I="select-interface-option";P.style={ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.legacy-select){--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:16px}.select-icon{width:1.125rem;height:1.125rem;color:var(--ion-color-step-650, #595959)}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 1.125rem - 4px)}:host(.select-disabled){opacity:0.3}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;aspect-ratio:1}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item:not(.legacy-select)){-ms-flex:1 1 0px;flex:1 1 0}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative;-ms-flex-negative:0;flex-shrink:0}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.select-wrapper-inner{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{-ms-flex-positive:1;flex-grow:1}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating:not(.label-floating)) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.label-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}::slotted([slot=start]),::slotted([slot=end]){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-end:16px;margin-inline-end:16px;-webkit-margin-start:0;margin-inline-start:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.select-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-solid) .select-wrapper{border-bottom:var(--border-width) var(--border-style) var(--border-color)}:host(.has-focus.select-fill-solid.ion-valid),:host(.select-fill-solid.ion-touched.ion-invalid){--border-color:var(--highlight-color)}:host(.select-fill-solid) .select-bottom{border-top:none}@media (any-hover: hover){:host(.select-fill-solid:hover){--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-solid.select-expanded),:host(.select-fill-solid.ion-focused){--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}:host(.select-fill-solid) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}:host-context([dir=rtl]):host(.select-fill-solid) .select-wrapper,:host-context([dir=rtl]).select-fill-solid .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){:host(.select-fill-solid:dir(rtl)) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}:host(.label-floating.select-fill-solid) .label-text-wrapper{max-width:calc(100% / 0.75)}:host(.select-fill-outline){--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-outline.select-shape-round){--border-radius:28px;--padding-start:32px;--padding-end:32px}:host(.has-focus.select-fill-outline.ion-valid),:host(.select-fill-outline.ion-touched.ion-invalid){--border-color:var(--highlight-color)}@media (any-hover: hover){:host(.select-fill-outline:hover){--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-outline.select-expanded),:host(.select-fill-outline.ion-focused){--border-width:2px;--border-color:var(--highlight-color)}:host(.select-fill-outline) .select-bottom{border-top:none}:host(.select-fill-outline) .select-wrapper{border-bottom:none}:host(.select-ltr.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-fill-outline.select-label-placement-floating) .label-text-wrapper{position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .label-text-wrapper{position:relative;z-index:1}:host(.label-floating.select-fill-outline) .label-text-wrapper{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}:host(.select-fill-outline.select-label-placement-stacked) select,:host(.select-fill-outline.select-label-placement-floating) select{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}:host(.select-fill-outline) .select-outline-container{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-end{pointer-events:none}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-notch,:host(.select-fill-outline) .select-outline-end{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.select-fill-outline) .select-outline-notch{max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .notch-spacer{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none}:host(.select-fill-outline) .select-outline-start{-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-start{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-rtl.select-fill-outline) .select-outline-start{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-fill-outline) .select-outline-start{width:calc(var(--padding-start) - 4px)}:host(.select-fill-outline) .select-outline-end{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-end{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-rtl.select-fill-outline) .select-outline-end{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-fill-outline) .select-outline-end{-ms-flex-positive:1;flex-grow:1}:host(.label-floating.select-fill-outline) .select-outline-notch{border-top:none}:host{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}:host(.legacy-select){--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:0.8125rem;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);color:var(--ion-color-step-500, gray)}:host(.select-label-placement-floating.select-expanded) .label-text-wrapper,:host(.select-label-placement-floating.ion-focused) .label-text-wrapper,:host(.select-label-placement-stacked.select-expanded) .label-text-wrapper,:host(.select-label-placement-stacked.ion-focused) .label-text-wrapper{color:var(--highlight-color)}:host(.has-focus.select-label-placement-floating.ion-valid) .label-text-wrapper,:host(.select-label-placement-floating.ion-touched.ion-invalid) .label-text-wrapper,:host(.has-focus.select-label-placement-stacked.ion-valid) .label-text-wrapper,:host(.select-label-placement-stacked.ion-touched.ion-invalid) .label-text-wrapper{color:var(--highlight-color)}.select-highlight{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){.select-highlight{left:0}:host-context([dir=rtl]) .select-highlight{left:unset;right:unset;right:0}[dir=rtl] .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.select-highlight:dir(rtl){left:unset;right:unset;right:0}}}:host(.select-expanded) .select-highlight,:host(.ion-focused) .select-highlight{-webkit-transform:scale(1);transform:scale(1)}:host(.in-item) .select-highlight{bottom:0}@supports (inset-inline-start: 0){:host(.in-item) .select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.in-item) .select-highlight{left:0}:host-context([dir=rtl]):host(.in-item) .select-highlight,:host-context([dir=rtl]).in-item .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.in-item:dir(rtl)) .select-highlight{left:unset;right:unset;right:0}}}:host(.select-expanded:not(.legacy-select):not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.select-expanded) .select-wrapper .select-icon,:host(.has-focus.ion-valid) .select-wrapper .select-icon,:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,:host(.ion-focused) .select-wrapper .select-icon{color:var(--highlight-color)}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked):host(:not(.has-expanded-icon)) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host(.select-shape-round){--border-radius:16px}:host(.select-label-placement-stacked) .select-wrapper-inner,:host(.select-label-placement-floating) .select-wrapper-inner{width:calc(100% - 0.8125rem - 4px)}:host(.select-disabled){opacity:0.38}::slotted(ion-button[slot=start].button-has-icon-only),::slotted(ion-button[slot=end].button-has-icon-only){--border-radius:50%;--padding-start:8px;--padding-end:8px;--padding-top:8px;--padding-bottom:8px;aspect-ratio:1;min-height:40px}"};const D=class{constructor(e){(0,s.r)(this,e),this.inputId="ion-selopt-"+V++,this.disabled=!1,this.value=void 0}render(){return(0,s.h)(s.H,{role:"option",id:this.inputId,class:(0,g.b)(this)})}get el(){return(0,s.f)(this)}};let V=0;D.style=":host{display:none}";const A=class{constructor(e){(0,s.r)(this,e),this.header=void 0,this.subHeader=void 0,this.message=void 0,this.multiple=void 0,this.options=[]}findOptionFromEvent(e){const{options:t}=this;return t.find(l=>l.value===e.target.value)}callOptionHandler(e){const t=this.findOptionFromEvent(e),l=this.getValues(e);t?.handler&&(0,a.s)(t.handler,l)}dismissParentPopover(){const e=this.el.closest("ion-popover");e&&e.dismiss()}setChecked(e){const{multiple:t}=this,l=this.findOptionFromEvent(e);t&&l&&(l.checked=e.detail.checked)}getValues(e){const{multiple:t,options:l}=this;if(t)return l.filter(o=>o.checked).map(o=>o.value);const i=this.findOptionFromEvent(e);return i?i.value:void 0}renderOptions(e){const{multiple:t}=this;return!0===t?this.renderCheckboxOptions(e):this.renderRadioOptions(e)}renderCheckboxOptions(e){return e.map(t=>(0,s.h)("ion-item",{class:Object.assign({"item-checkbox-checked":t.checked},(0,c.g)(t.cssClass))},(0,s.h)("ion-checkbox",{value:t.value,disabled:t.disabled,checked:t.checked,justify:"start",labelPlacement:"end",onIonChange:l=>{this.setChecked(l),this.callOptionHandler(l),(0,s.i)(this)}},t.text)))}renderRadioOptions(e){const t=e.filter(l=>l.checked).map(l=>l.value)[0];return(0,s.h)("ion-radio-group",{value:t,onIonChange:l=>this.callOptionHandler(l)},e.map(l=>(0,s.h)("ion-item",{class:Object.assign({"item-radio-checked":l.value===t},(0,c.g)(l.cssClass))},(0,s.h)("ion-radio",{value:l.value,disabled:l.disabled,onClick:()=>this.dismissParentPopover(),onKeyUp:i=>{" "===i.key&&this.dismissParentPopover()}},l.text))))}render(){const{header:e,message:t,options:l,subHeader:i}=this,o=void 0!==i||void 0!==t;return(0,s.h)(s.H,{class:(0,g.b)(this)},(0,s.h)("ion-list",null,void 0!==e&&(0,s.h)("ion-list-header",null,e),o&&(0,s.h)("ion-item",null,(0,s.h)("ion-label",{class:"ion-text-wrap"},void 0!==i&&(0,s.h)("h3",null,i),void 0!==t&&(0,s.h)("p",null,t))),this.renderOptions(l)))}get el(){return(0,s.f)(this)}};A.style={ios:".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}"}},4459:(F,_,r)=>{r.d(_,{c:()=>L,g:()=>w,h:()=>s,o:()=>O});var x=r(5861);const s=(a,p)=>null!==p.closest(a),L=(a,p)=>"string"==typeof a&&a.length>0?Object.assign({"ion-color":!0,[`ion-color-${a}`]:!0},p):p,w=a=>{const p={};return(a=>void 0!==a?(Array.isArray(a)?a:a.split(" ")).filter(c=>null!=c).map(c=>c.trim()).filter(c=>""!==c):[])(a).forEach(c=>p[c]=!0),p},f=/^[a-z][a-z0-9+\-.]*:/,O=function(){var a=(0,x.Z)(function*(p,c,C,y){if(null!=p&&"#"!==p[0]&&!f.test(p)){const g=document.querySelector("ion-router");if(g)return c?.preventDefault(),g.push(p,C,y)}return!1});return function(c,C,y,g){return a.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/6754.c47a7b77328193c0.js b/6754.c47a7b77328193c0.js deleted file mode 100644 index 300c0e1e..00000000 --- a/6754.c47a7b77328193c0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6754],{6754:(W,_,c)=>{c.r(_),c.d(_,{ion_select:()=>P,ion_select_option:()=>M,ion_select_popover:()=>F});var x=c(5861),s=c(5349),S=c(9988),j=c(5857),f=c(839),O=c(6710),w=c(7612),d=c(5085),r=c(3567),u=c(5564),y=c(5307),g=c(3882);c(6225);const P=class{constructor(e){(0,s.r)(this,e),this.ionChange=(0,s.d)(this,"ionChange",7),this.ionCancel=(0,s.d)(this,"ionCancel",7),this.ionDismiss=(0,s.d)(this,"ionDismiss",7),this.ionFocus=(0,s.d)(this,"ionFocus",7),this.ionBlur=(0,s.d)(this,"ionBlur",7),this.ionStyle=(0,s.d)(this,"ionStyle",7),this.inputId="ion-sel-"+K++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.onClick=t=>{this.setFocus(),this.open(t)},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.isExpanded=!1,this.cancelText="Cancel",this.color=void 0,this.compareWith=void 0,this.disabled=!1,this.fill=void 0,this.interface="alert",this.interfaceOptions={},this.justify="space-between",this.label=void 0,this.labelPlacement="start",this.legacy=void 0,this.multiple=!1,this.name=this.inputId,this.okText="OK",this.placeholder=void 0,this.selectedText=void 0,this.toggleIcon=void 0,this.expandedIcon=void 0,this.shape=void 0,this.value=void 0}styleChanged(){this.emitStyle()}setValue(e){this.value=e,this.ionChange.emit({value:e})}componentWillLoad(){this.inheritedAttributes=(0,f.k)(this.el,["aria-label"])}connectedCallback(){var e=this;return(0,x.Z)(function*(){const{el:t}=e;e.legacyFormController=(0,S.c)(t),e.notchController=(0,j.c)(t,()=>e.notchSpacerEl,()=>e.labelSlot),e.updateOverlayOptions(),e.emitStyle(),e.mutationO=(0,u.w)(e.el,"ion-select-option",(0,x.Z)(function*(){e.updateOverlayOptions(),(0,s.i)(e)}))})()}disconnectedCallback(){this.mutationO&&(this.mutationO.disconnect(),this.mutationO=void 0),this.notchController&&(this.notchController.destroy(),this.notchController=void 0)}open(e){var t=this;return(0,x.Z)(function*(){if(t.disabled||t.isExpanded)return;t.isExpanded=!0;const l=t.overlay=yield t.createOverlay(e);if(l.onDidDismiss().then(()=>{t.overlay=void 0,t.isExpanded=!1,t.ionDismiss.emit(),t.setFocus()}),yield l.present(),"popover"===t.interface){const i=t.childOpts.map(o=>o.value).indexOf(t.value);if(i>-1){const o=l.querySelector(`.select-interface-option:nth-child(${i+1})`);if(o){(0,f.f)(o);const n=o.querySelector("ion-radio, ion-checkbox");n&&n.focus()}}else{const o=l.querySelector("ion-radio:not(.radio-disabled), ion-checkbox:not(.checkbox-disabled)");o&&((0,f.f)(o.closest("ion-item")),o.focus())}}return l})()}createOverlay(e){let t=this.interface;return"action-sheet"===t&&this.multiple&&(console.warn(`Select interface cannot be "${t}" with a multi-value select. Using the "alert" interface instead.`),t="alert"),"popover"===t&&!e&&(console.warn(`Select interface cannot be a "${t}" without passing an event. Using the "alert" interface instead.`),t="alert"),"action-sheet"===t?this.openActionSheet():"popover"===t?this.openPopover(e):this.openAlert()}updateOverlayOptions(){const e=this.overlay;if(!e)return;const t=this.childOpts,l=this.value;switch(this.interface){case"action-sheet":e.buttons=this.createActionSheetButtons(t,l);break;case"popover":const i=e.querySelector("ion-select-popover");i&&(i.options=this.createPopoverOptions(t,l));break;case"alert":e.inputs=this.createAlertInputs(t,this.multiple?"checkbox":"radio",l)}}createActionSheetButtons(e,t){const l=e.map(i=>{const o=E(i),n=Array.from(i.classList).filter(a=>"hydrated"!==a).join(" "),p=`${T} ${n}`;return{role:z(t,o,this.compareWith)?"selected":"",text:i.textContent,cssClass:p,handler:()=>{this.setValue(o)}}});return l.push({text:this.cancelText,role:"cancel",handler:()=>{this.ionCancel.emit()}}),l}createAlertInputs(e,t,l){return e.map(o=>{const n=E(o),p=Array.from(o.classList).filter(m=>"hydrated"!==m).join(" ");return{type:t,cssClass:`${T} ${p}`,label:o.textContent||"",value:n,checked:z(l,n,this.compareWith),disabled:o.disabled}})}createPopoverOptions(e,t){return e.map(i=>{const o=E(i),n=Array.from(i.classList).filter(a=>"hydrated"!==a).join(" ");return{text:i.textContent||"",cssClass:`${T} ${n}`,value:o,checked:z(t,o,this.compareWith),disabled:i.disabled,handler:a=>{this.setValue(a),this.multiple||this.close()}}})}openPopover(e){var t=this;return(0,x.Z)(function*(){const{fill:l,labelPlacement:i}=t,o=t.interfaceOptions,n=(0,g.b)(t),p="md"!==n,a=t.multiple,m=t.value;let h=e,v="auto";if(t.legacyFormController.hasLegacyControl()){const b=t.el.closest("ion-item");b&&(b.classList.contains("item-label-floating")||b.classList.contains("item-label-stacked"))&&(h=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:b}}),v="cover")}else"floating"===i||"stacked"===i||"md"===n&&void 0!==l?v="cover":h=Object.assign(Object.assign({},e),{detail:{ionShadowTarget:t.nativeWrapperEl}});const k=Object.assign(Object.assign({mode:n,event:h,alignment:"center",size:v,showBackdrop:p},o),{component:"ion-select-popover",cssClass:["select-popover",o.cssClass],componentProps:{header:o.header,subHeader:o.subHeader,message:o.message,multiple:a,value:m,options:t.createPopoverOptions(t.childOpts,m)}});return w.c.create(k)})()}openActionSheet(){var e=this;return(0,x.Z)(function*(){const t=(0,g.b)(e),l=e.interfaceOptions,i=Object.assign(Object.assign({mode:t},l),{buttons:e.createActionSheetButtons(e.childOpts,e.value),cssClass:["select-action-sheet",l.cssClass]});return w.b.create(i)})()}openAlert(){var e=this;return(0,x.Z)(function*(){let t,l;e.legacyFormController.hasLegacyControl()?(t=e.getLabel(),l=t?t.textContent:null):l=e.labelText;const i=e.interfaceOptions,o=e.multiple?"checkbox":"radio",n=(0,g.b)(e),p=Object.assign(Object.assign({mode:n},i),{header:i.header?i.header:l,inputs:e.createAlertInputs(e.childOpts,o,e.value),buttons:[{text:e.cancelText,role:"cancel",handler:()=>{e.ionCancel.emit()}},{text:e.okText,handler:a=>{e.setValue(a)}}],cssClass:["select-alert",i.cssClass,e.multiple?"multiple-select-alert":"single-select-alert"]});return w.a.create(p)})()}close(){return this.overlay?this.overlay.dismiss():Promise.resolve(!1)}getLabel(){return(0,f.h)(this.el)}hasValue(){return""!==this.getText()}get childOpts(){return Array.from(this.el.querySelectorAll("ion-select-option"))}get labelText(){const{label:e}=this;if(void 0!==e)return e;const{labelSlot:t}=this;return null!==t?t.textContent:void 0}getText(){const e=this.selectedText;return null!=e&&""!==e?e:U(this.childOpts,this.value,this.compareWith)}setFocus(){this.focusEl&&this.focusEl.focus()}emitStyle(){const{disabled:e}=this,t={"interactive-disabled":e};this.legacyFormController.hasLegacyControl()&&(t.interactive=!0,t.select=!0,t["select-disabled"]=e,t["has-placeholder"]=void 0!==this.placeholder,t["has-value"]=this.hasValue(),t["has-focus"]=this.isExpanded),this.ionStyle.emit(t)}renderLabel(){const{label:e}=this;return(0,s.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},void 0===e?(0,s.h)("slot",{name:"label"}):(0,s.h)("div",{class:"label-text"},e))}componentDidRender(){var e;null===(e=this.notchController)||void 0===e||e.calculateNotchWidth()}get labelSlot(){return this.el.querySelector('[slot="label"]')}get hasLabel(){return void 0!==this.label||null!==this.labelSlot}renderLabelContainer(){return"md"===(0,g.b)(this)&&"outline"===this.fill?[(0,s.h)("div",{class:"select-outline-container"},(0,s.h)("div",{class:"select-outline-start"}),(0,s.h)("div",{class:{"select-outline-notch":!0,"select-outline-notch-hidden":!this.hasLabel}},(0,s.h)("div",{class:"notch-spacer","aria-hidden":"true",ref:l=>this.notchSpacerEl=l},this.label)),(0,s.h)("div",{class:"select-outline-end"})),this.renderLabel()]:this.renderLabel()}renderSelect(){const{disabled:e,el:t,isExpanded:l,expandedIcon:i,labelPlacement:o,justify:n,placeholder:p,fill:a,shape:m,name:h,value:v}=this,k=(0,g.b)(this),b="floating"===o||"stacked"===o,L=!b,G=(0,d.i)(t)?"rtl":"ltr",B=(0,r.h)("ion-item",this.el),N="md"===k&&"outline"!==a&&!B;return(0,f.d)(!0,t,h,A(v),e),(0,s.h)(s.H,{onClick:this.onClick,class:(0,r.c)(this.color,{[k]:!0,"in-item":B,"in-item-color":(0,r.h)("ion-item.ion-color",t),"select-disabled":e,"select-expanded":l,"has-expanded-icon":void 0!==i,"has-value":this.hasValue(),"has-placeholder":void 0!==p,"ion-focusable":!0,[`select-${G}`]:!0,[`select-fill-${a}`]:void 0!==a,[`select-justify-${n}`]:L,[`select-shape-${m}`]:void 0!==m,[`select-label-placement-${o}`]:!0})},(0,s.h)("label",{class:"select-wrapper",id:"select-label"},this.renderLabelContainer(),(0,s.h)("div",{class:"native-wrapper",ref:J=>this.nativeWrapperEl=J,part:"container"},this.renderSelectText(),!b&&this.renderSelectIcon(),this.renderListbox()),b&&this.renderSelectIcon(),N&&(0,s.h)("div",{class:"select-highlight"})))}renderLegacySelect(){this.hasLoggedDeprecationWarning||((0,O.p)('ion-select now requires providing a label with either the "label" property or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the "label" property or the "aria-label" attribute.\n\nExample: ...\nExample with aria-label: ...\n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,O.p)('ion-select is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n Developers can dismiss this warning by removing their usage of the "legacy" property and using the new select syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{disabled:e,el:t,inputId:l,isExpanded:i,expandedIcon:o,name:n,placeholder:p,value:a}=this,m=(0,g.b)(this),{labelText:h,labelId:v}=(0,f.e)(t,l);(0,f.d)(!0,t,n,A(a),e);let b=this.getText();""===b&&void 0!==p&&(b=p);const L=void 0!==h?""!==b?`${b}, ${h}`:h:b;return(0,s.h)(s.H,{onClick:this.onClick,role:"button","aria-haspopup":"listbox","aria-disabled":e?"true":null,"aria-label":L,class:{[m]:!0,"in-item":(0,r.h)("ion-item",t),"in-item-color":(0,r.h)("ion-item.ion-color",t),"select-disabled":e,"select-expanded":i,"has-expanded-icon":void 0!==o,"legacy-select":!0}},this.renderSelectText(),this.renderSelectIcon(),(0,s.h)("label",{id:v},L),this.renderListbox())}renderSelectText(){const{placeholder:e}=this;let l=!1,i=this.getText();return""===i&&void 0!==e&&(i=e,l=!0),(0,s.h)("div",{"aria-hidden":"true",class:{"select-text":!0,"select-placeholder":l},part:l?"placeholder":"text"},i)}renderSelectIcon(){const e=(0,g.b)(this),{isExpanded:t,toggleIcon:l,expandedIcon:i}=this;let o;return o=t&&void 0!==i?i:l??("ios"===e?y.w:y.q),(0,s.h)("ion-icon",{class:"select-icon",part:"icon","aria-hidden":"true",icon:o})}get ariaLabel(){var e,t;const{placeholder:l,el:i,inputId:o,inheritedAttributes:n}=this,p=this.getText(),{labelText:a}=(0,f.e)(i,o),m=null!==(t=null!==(e=this.labelText)&&void 0!==e?e:n["aria-label"])&&void 0!==t?t:a;let h=p;return""===h&&void 0!==l&&(h=l),void 0!==m&&(h=""===h?m:`${m}, ${h}`),h}renderListbox(){const{disabled:e,inputId:t,isExpanded:l}=this;return(0,s.h)("button",{disabled:e,id:t,"aria-label":this.ariaLabel,"aria-haspopup":"dialog","aria-expanded":`${l}`,onFocus:this.onFocus,onBlur:this.onBlur,ref:i=>this.focusEl=i})}render(){const{legacyFormController:e}=this;return e.hasLegacyControl()?this.renderLegacySelect():this.renderSelect()}get el(){return(0,s.f)(this)}static get watchers(){return{disabled:["styleChanged"],isExpanded:["styleChanged"],placeholder:["styleChanged"],value:["styleChanged"]}}},z=(e,t,l)=>void 0!==e&&(Array.isArray(e)?e.some(i=>I(i,t,l)):I(e,t,l)),E=e=>{const t=e.value;return void 0===t?e.textContent||"":t},A=e=>{if(null!=e)return Array.isArray(e)?e.join(","):e.toString()},I=(e,t,l)=>"function"==typeof l?l(e,t):"string"==typeof l?e[l]===t[l]:Array.isArray(t)?t.includes(e):e===t,U=(e,t,l)=>void 0===t?"":Array.isArray(t)?t.map(i=>D(e,i,l)).filter(i=>null!==i).join(", "):D(e,t,l)||"",D=(e,t,l)=>{const i=e.find(o=>I(t,E(o),l));return i?i.textContent:null};let K=0;const T="select-interface-option";P.style={ios:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-expanded.select-label-placement-floating) .label-text-wrapper,:host(.ion-focused.select-label-placement-floating) .label-text-wrapper,:host(.has-value.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}:host(.legacy-select){--padding-top:10px;--padding-end:8px;--padding-bottom:10px;--padding-start:16px}.select-icon{width:1.125rem;height:1.125rem;color:var(--ion-color-step-650, #595959)}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{width:calc(100% - 1.125rem - 4px)}:host(.select-disabled){opacity:0.3}",md:":host{--padding-top:0px;--padding-end:0px;--padding-bottom:0px;--padding-start:0px;--placeholder-color:currentColor;--placeholder-opacity:0.6;--background:transparent;--border-style:solid;--highlight-color-focused:var(--ion-color-primary, #3880ff);--highlight-color-valid:var(--ion-color-success, #2dd36f);--highlight-color-invalid:var(--ion-color-danger, #eb445a);--highlight-color:var(--highlight-color-focused);display:block;position:relative;font-family:var(--ion-font-family, inherit);white-space:nowrap;cursor:pointer;z-index:2}:host(:not(.legacy-select)){width:100%;min-height:44px}:host(.select-label-placement-floating),:host(.select-label-placement-stacked){min-height:56px}:host(.ion-color){--highlight-color-focused:var(--ion-color-base)}:host(.legacy-select){-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;overflow:hidden}:host(.in-item.legacy-select){position:static;max-width:45%}:host(.select-disabled){pointer-events:none}:host(.ion-focused) button{border:2px solid #5e9ed6}:host([slot=start]:not(.legacy-select)),:host([slot=end]:not(.legacy-select)){width:auto}.select-placeholder{color:var(--placeholder-color);opacity:var(--placeholder-opacity)}:host(.legacy-select) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-select) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-select) label{left:0}:host-context([dir=rtl]):host(.legacy-select) label,:host-context([dir=rtl]).legacy-select label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-select:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-select) label::-moz-focus-inner{border:0}button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.select-icon{-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0;position:relative}:host(.in-item-color) .select-icon{color:inherit}:host(.select-label-placement-stacked) .select-icon,:host(.select-label-placement-floating) .select-icon{position:absolute;height:100%}:host(.select-ltr.select-label-placement-stacked) .select-icon,:host(.select-ltr.select-label-placement-floating) .select-icon{right:var(--padding-end, 0)}:host(.select-rtl.select-label-placement-stacked) .select-icon,:host(.select-rtl.select-label-placement-floating) .select-icon{left:var(--padding-start, 0)}.select-text{-ms-flex:1;flex:1;min-width:16px;font-size:inherit;text-overflow:ellipsis;white-space:inherit;overflow:hidden}.select-wrapper{-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;min-height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;background:var(--background);line-height:normal;cursor:inherit;-webkit-box-sizing:border-box;box-sizing:border-box}.select-wrapper .select-placeholder{-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}:host(.ion-touched.ion-invalid){--highlight-color:var(--highlight-color-invalid)}:host(.ion-valid){--highlight-color:var(--highlight-color-valid)}.label-text-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;max-width:200px;-webkit-transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 150ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1);pointer-events:none}.label-text,::slotted([slot=label]){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden,.select-outline-notch-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);overflow:hidden}:host(.select-justify-space-between) .select-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.select-justify-start) .select-wrapper{-ms-flex-pack:start;justify-content:start}:host(.select-justify-end) .select-wrapper{-ms-flex-pack:end;justify-content:end}:host(.select-label-placement-start) .select-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.select-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-end) .select-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.select-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.select-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.select-label-placement-stacked) .select-wrapper,:host(.select-label-placement-floating) .select-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:start;align-items:start}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-label-placement-floating) .label-text-wrapper{max-width:100%}:host(.select-ltr.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{margin-left:0;margin-right:0;margin-top:1px;margin-bottom:0;-ms-flex-positive:1;flex-grow:1;width:100%}:host(.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(100%) scale(1);transform:translateY(100%) scale(1)}:host(.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:0}:host(.select-expanded.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.ion-focused.select-label-placement-floating) .native-wrapper .select-placeholder,:host(.has-value.select-label-placement-floating) .native-wrapper .select-placeholder{opacity:1}:host(.select-label-placement-stacked) .label-text-wrapper,:host(.select-expanded.select-label-placement-floating) .label-text-wrapper,:host(.ion-focused.select-label-placement-floating) .label-text-wrapper,:host(.has-value.select-label-placement-floating) .label-text-wrapper{-webkit-transform:translateY(50%) scale(0.75);transform:translateY(50%) scale(0.75);max-width:calc(100% / 0.75)}:host(.select-fill-solid){--background:var(--ion-color-step-50, #f2f2f2);--border-color:var(--ion-color-step-500, gray);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-solid) .select-wrapper{border-bottom:var(--border-width) var(--border-style) var(--border-color)}:host(.has-focus.select-fill-solid.ion-valid),:host(.select-fill-solid.ion-touched.ion-invalid){--border-color:var(--highlight-color)}:host(.select-fill-solid) .select-bottom{border-top:none}@media (any-hover: hover){:host(.select-fill-solid:hover){--background:var(--ion-color-step-100, #e6e6e6);--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-solid.select-expanded),:host(.select-fill-solid.ion-focused){--background:var(--ion-color-step-150, #d9d9d9);--border-color:var(--ion-color-step-750, #404040)}:host(.select-fill-solid) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}:host-context([dir=rtl]):host(.select-fill-solid) .select-wrapper,:host-context([dir=rtl]).select-fill-solid .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}@supports selector(:dir(rtl)){:host(.select-fill-solid:dir(rtl)) .select-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0px;border-bottom-left-radius:0px}}:host(.select-fill-solid.select-label-placement-stacked) .label-text-wrapper,:host(.select-expanded.select-fill-solid.select-label-placement-floating) .label-text-wrapper,:host(.ion-focused.select-fill-solid.select-label-placement-floating) .label-text-wrapper,:host(.has-value.select-fill-solid.select-label-placement-floating) .label-text-wrapper{max-width:calc(100% / 0.75)}:host(.select-fill-outline){--border-color:var(--ion-color-step-300, #b3b3b3);--border-radius:4px;--padding-start:16px;--padding-end:16px;min-height:56px}:host(.select-fill-outline.select-shape-round){--border-radius:28px;--padding-start:32px;--padding-end:32px}:host(.has-focus.select-fill-outline.ion-valid),:host(.select-fill-outline.ion-touched.ion-invalid){--border-color:var(--highlight-color)}@media (any-hover: hover){:host(.select-fill-outline:hover){--border-color:var(--ion-color-step-750, #404040)}}:host(.select-fill-outline.select-expanded),:host(.select-fill-outline.ion-focused){--border-width:2px;--border-color:var(--highlight-color)}:host(.select-fill-outline) .select-bottom{border-top:none}:host(.select-fill-outline) .select-wrapper{border-bottom:none}:host(.select-ltr.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-ltr.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host(.select-rtl.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-rtl.select-fill-outline.select-label-placement-floating) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}:host(.select-fill-outline.select-label-placement-stacked) .label-text-wrapper,:host(.select-fill-outline.select-label-placement-floating) .label-text-wrapper{position:absolute;max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .label-text-wrapper{position:relative;z-index:1}:host(.select-expanded.select-fill-outline.select-label-placement-floating) .label-text-wrapper,:host(.ion-focused.select-fill-outline.select-label-placement-floating) .label-text-wrapper,:host(.has-value.select-fill-outline.select-label-placement-floating) .label-text-wrapper,:host(.select-fill-outline.select-label-placement-stacked) .label-text-wrapper{-webkit-transform:translateY(-32%) scale(0.75);transform:translateY(-32%) scale(0.75);margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;max-width:calc((100% - var(--padding-start) - var(--padding-end) - 8px) / 0.75)}:host(.select-fill-outline.select-label-placement-stacked) select,:host(.select-fill-outline.select-label-placement-floating) select{margin-left:0;margin-right:0;margin-top:6px;margin-bottom:6px}:host(.select-fill-outline) .select-outline-container{left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;width:100%;height:100%}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-end{pointer-events:none}:host(.select-fill-outline) .select-outline-start,:host(.select-fill-outline) .select-outline-notch,:host(.select-fill-outline) .select-outline-end{border-top:var(--border-width) var(--border-style) var(--border-color);border-bottom:var(--border-width) var(--border-style) var(--border-color);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.select-fill-outline) .select-outline-notch{max-width:calc(100% - var(--padding-start) - var(--padding-end))}:host(.select-fill-outline) .notch-spacer{-webkit-padding-end:8px;padding-inline-end:8px;font-size:calc(1em * 0.75);opacity:0;pointer-events:none}:host(.select-fill-outline) .select-outline-start{-webkit-border-start:var(--border-width) var(--border-style) var(--border-color);border-inline-start:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-start{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-rtl.select-fill-outline) .select-outline-start{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-fill-outline) .select-outline-start{width:calc(var(--padding-start) - 4px)}:host(.select-fill-outline) .select-outline-end{-webkit-border-end:var(--border-width) var(--border-style) var(--border-color);border-inline-end:var(--border-width) var(--border-style) var(--border-color)}:host(.select-ltr.select-fill-outline) .select-outline-end{border-radius:0px var(--border-radius) var(--border-radius) 0px}:host(.select-rtl.select-fill-outline) .select-outline-end{border-radius:var(--border-radius) 0px 0px var(--border-radius)}:host(.select-fill-outline) .select-outline-end{-ms-flex-positive:1;flex-grow:1}:host(.select-expanded.select-fill-outline.select-label-placement-floating) .select-outline-notch,:host(.ion-focused.select-fill-outline.select-label-placement-floating) .select-outline-notch,:host(.has-value.select-fill-outline.select-label-placement-floating) .select-outline-notch,:host(.select-fill-outline.select-label-placement-stacked) .select-outline-notch{border-top:none}:host{--border-width:1px;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}:host(.legacy-select){--padding-top:10px;--padding-end:0;--padding-bottom:10px;--padding-start:16px}.select-icon{width:0.8125rem;-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:-webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);transition:transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);color:var(--ion-color-step-500, gray)}:host(.select-label-placement-floating.select-expanded) .label-text-wrapper,:host(.select-label-placement-floating.ion-focused) .label-text-wrapper,:host(.select-label-placement-stacked.select-expanded) .label-text-wrapper,:host(.select-label-placement-stacked.ion-focused) .label-text-wrapper{color:var(--highlight-color)}:host(.has-focus.select-label-placement-floating.ion-valid) .label-text-wrapper,:host(.select-label-placement-floating.ion-touched.ion-invalid) .label-text-wrapper,:host(.has-focus.select-label-placement-stacked.ion-valid) .label-text-wrapper,:host(.select-label-placement-stacked.ion-touched.ion-invalid) .label-text-wrapper{color:var(--highlight-color)}.select-highlight{bottom:-1px;position:absolute;width:100%;height:2px;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:-webkit-transform 200ms;transition:-webkit-transform 200ms;transition:transform 200ms;transition:transform 200ms, -webkit-transform 200ms;background:var(--highlight-color)}@supports (inset-inline-start: 0){.select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){.select-highlight{left:0}:host-context([dir=rtl]) .select-highlight{left:unset;right:unset;right:0}[dir=rtl] .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.select-highlight:dir(rtl){left:unset;right:unset;right:0}}}:host(.select-expanded) .select-highlight,:host(.ion-focused) .select-highlight{-webkit-transform:scale(1);transform:scale(1)}:host(.in-item) .select-highlight{bottom:0}@supports (inset-inline-start: 0){:host(.in-item) .select-highlight{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.in-item) .select-highlight{left:0}:host-context([dir=rtl]):host(.in-item) .select-highlight,:host-context([dir=rtl]).in-item .select-highlight{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.in-item:dir(rtl)) .select-highlight{left:unset;right:unset;right:0}}}:host(.select-expanded:not(.legacy-select):not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host(.select-expanded) .select-wrapper .select-icon,:host(.has-focus.ion-valid) .select-wrapper .select-icon,:host(.ion-touched.ion-invalid) .select-wrapper .select-icon,:host(.ion-focused) .select-wrapper .select-icon{color:var(--highlight-color)}:host-context(.item-label-stacked) .select-icon,:host-context(.item-label-floating:not(.item-fill-outline)) .select-icon,:host-context(.item-label-floating.item-fill-outline){-webkit-transform:translate3d(0, -9px, 0);transform:translate3d(0, -9px, 0)}:host-context(.item-has-focus):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host-context(.item-has-focus.item-label-stacked):host(:not(.has-expanded-icon)) .select-icon,:host-context(.item-has-focus.item-label-floating:not(.item-fill-outline)):host(:not(.has-expanded-icon)) .select-icon{-webkit-transform:translate3d(0, -9px, 0) rotate(180deg);transform:translate3d(0, -9px, 0) rotate(180deg)}:host(.select-shape-round){--border-radius:16px}:host(.select-label-placement-stacked) .native-wrapper,:host(.select-label-placement-floating) .native-wrapper{width:calc(100% - 0.8125rem - 4px)}:host(.select-disabled){opacity:0.38}"};const M=class{constructor(e){(0,s.r)(this,e),this.inputId="ion-selopt-"+Y++,this.disabled=!1,this.value=void 0}render(){return(0,s.h)(s.H,{role:"option",id:this.inputId,class:(0,g.b)(this)})}get el(){return(0,s.f)(this)}};let Y=0;M.style=":host{display:none}";const F=class{constructor(e){(0,s.r)(this,e),this.header=void 0,this.subHeader=void 0,this.message=void 0,this.multiple=void 0,this.options=[]}findOptionFromEvent(e){const{options:t}=this;return t.find(l=>l.value===e.target.value)}callOptionHandler(e){const t=this.findOptionFromEvent(e),l=this.getValues(e);t?.handler&&(0,w.s)(t.handler,l)}dismissParentPopover(){const e=this.el.closest("ion-popover");e&&e.dismiss()}setChecked(e){const{multiple:t}=this,l=this.findOptionFromEvent(e);t&&l&&(l.checked=e.detail.checked)}getValues(e){const{multiple:t,options:l}=this;if(t)return l.filter(o=>o.checked).map(o=>o.value);const i=this.findOptionFromEvent(e);return i?i.value:void 0}renderOptions(e){const{multiple:t}=this;return!0===t?this.renderCheckboxOptions(e):this.renderRadioOptions(e)}renderCheckboxOptions(e){return e.map(t=>(0,s.h)("ion-item",{class:Object.assign({"item-checkbox-checked":t.checked},(0,r.g)(t.cssClass))},(0,s.h)("ion-checkbox",{value:t.value,disabled:t.disabled,checked:t.checked,justify:"start",labelPlacement:"end",onIonChange:l=>{this.setChecked(l),this.callOptionHandler(l),(0,s.i)(this)}},t.text)))}renderRadioOptions(e){const t=e.filter(l=>l.checked).map(l=>l.value)[0];return(0,s.h)("ion-radio-group",{value:t,onIonChange:l=>this.callOptionHandler(l)},e.map(l=>(0,s.h)("ion-item",{class:Object.assign({"item-radio-checked":l.value===t},(0,r.g)(l.cssClass))},(0,s.h)("ion-radio",{value:l.value,disabled:l.disabled,onClick:()=>this.dismissParentPopover(),onKeyUp:i=>{" "===i.key&&this.dismissParentPopover()}},l.text))))}render(){const{header:e,message:t,options:l,subHeader:i}=this,o=void 0!==i||void 0!==t;return(0,s.h)(s.H,{class:(0,g.b)(this)},(0,s.h)("ion-list",null,void 0!==e&&(0,s.h)("ion-list-header",null,e),o&&(0,s.h)("ion-item",null,(0,s.h)("ion-label",{class:"ion-text-wrap"},void 0!==i&&(0,s.h)("h3",null,i),void 0!==t&&(0,s.h)("p",null,t))),this.renderOptions(l)))}get el(){return(0,s.f)(this)}};F.style={ios:".sc-ion-select-popover-ios-h ion-list.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-ios,ion-label.sc-ion-select-popover-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}",md:".sc-ion-select-popover-md-h ion-list.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list-header.sc-ion-select-popover-md,ion-label.sc-ion-select-popover-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(container){opacity:0}ion-item.sc-ion-select-popover-md{--inner-border-width:0}.item-radio-checked.sc-ion-select-popover-md{--background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.08);--background-focused:var(--ion-color-primary, #3880ff);--background-focused-opacity:0.2;--background-hover:var(--ion-color-primary, #3880ff);--background-hover-opacity:0.12}.item-checkbox-checked.sc-ion-select-popover-md{--background-activated:var(--ion-item-color, var(--ion-text-color, #000));--background-focused:var(--ion-item-color, var(--ion-text-color, #000));--background-hover:var(--ion-item-color, var(--ion-text-color, #000));--color:var(--ion-color-primary, #3880ff)}"}},3567:(W,_,c)=>{c.d(_,{c:()=>S,g:()=>f,h:()=>s,o:()=>w});var x=c(5861);const s=(d,r)=>null!==r.closest(d),S=(d,r)=>"string"==typeof d&&d.length>0?Object.assign({"ion-color":!0,[`ion-color-${d}`]:!0},r):r,f=d=>{const r={};return(d=>void 0!==d?(Array.isArray(d)?d:d.split(" ")).filter(u=>null!=u).map(u=>u.trim()).filter(u=>""!==u):[])(d).forEach(u=>r[u]=!0),r},O=/^[a-z][a-z0-9+\-.]*:/,w=function(){var d=(0,x.Z)(function*(r,u,y,g){if(null!=r&&"#"!==r[0]&&!O.test(r)){const C=document.querySelector("ion-router");if(C)return u?.preventDefault(),C.push(r,y,g)}return!1});return function(u,y,g,C){return d.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/7059.34617710b1a82707.js b/7059.34617710b1a82707.js new file mode 100644 index 00000000..0b3616e2 --- /dev/null +++ b/7059.34617710b1a82707.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7059],{7059:(ve,R,y)=>{y.r(R),y.d(R,{ion_datetime:()=>H,ion_picker:()=>U,ion_picker_column:()=>Z});var P=y(5861),a=y(9942),Q=y(8434),O=y(512),M=y(2400),S=y(4162),L=y(4459),_=y(1076),E=y(5551),r=y(1111),ee=y(9229),w=y(2936),j=y(4913),F=y(9951);y(1848),y(1836);const Y=(e,i,t,n)=>!!(null===e.day||void 0!==n&&!n.includes(e.day)||i&&(0,r.i)(e,i)||t&&(0,r.b)(e,t)),z=(e,{minParts:i,maxParts:t})=>!!(((e,i,t)=>!!(i&&i.year>e||t&&t.year{const{multiple:t,value:n}=this;!t&&Array.isArray(n)&&(0,M.p)(`ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${n.map(o=>`'${o}'`).join(", ")}]\n`,this.el)},this.setValue=t=>{this.value=t,this.ionChange.emit({value:t})},this.getActivePartsWithFallback=()=>{var t;const{defaultParts:n}=this;return null!==(t=this.getActivePart())&&void 0!==t?t:n},this.getActivePart=()=>{const{activeParts:t}=this;return Array.isArray(t)?t[0]:t},this.closeParentOverlay=()=>{const t=this.el.closest("ion-modal, ion-popover");t&&t.dismiss()},this.setWorkingParts=t=>{this.workingParts=Object.assign({},t)},this.setActiveParts=(t,n=!1)=>{if(this.readonly)return;const{multiple:o,minParts:s,maxParts:l,activeParts:d}=this,c=(0,r.v)(t,s,l);if(this.setWorkingParts(c),o){const p=Array.isArray(d)?d:[d];this.activeParts=n?p.filter(g=>!(0,r.c)(g,c)):[...p,c]}else this.activeParts=Object.assign({},c);null!==this.el.querySelector('[slot="buttons"]')||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{const t=this.calendarBodyRef;if(!t)return;const n=this.el.shadowRoot,o=t.querySelector(".calendar-month:nth-of-type(2)"),l=new MutationObserver(d=>{var c;null!==(c=d[0].oldValue)&&void 0!==c&&c.includes("ion-focused")||!t.classList.contains("ion-focused")||this.focusWorkingDay(o)});l.observe(t,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{l?.disconnect()},t.addEventListener("keydown",d=>{const c=n.activeElement;if(!c||!c.classList.contains("calendar-day"))return;const h=(0,r.f)(c);let p;switch(d.key){case"ArrowDown":d.preventDefault(),p=(0,r.n)(h);break;case"ArrowUp":d.preventDefault(),p=(0,r.m)(h);break;case"ArrowRight":d.preventDefault(),p=(0,r.l)(h);break;case"ArrowLeft":d.preventDefault(),p=(0,r.k)(h);break;case"Home":d.preventDefault(),p=(0,r.j)(h);break;case"End":d.preventDefault(),p=(0,r.h)(h);break;case"PageUp":d.preventDefault(),p=d.shiftKey?(0,r.O)(h):(0,r.d)(h);break;case"PageDown":d.preventDefault(),p=d.shiftKey?(0,r.N)(h):(0,r.e)(h);break;default:return}Y(p,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),p)),requestAnimationFrame(()=>this.focusWorkingDay(o)))})},this.focusWorkingDay=t=>{const n=t.querySelectorAll(".calendar-day-padding"),{day:o}=this.workingParts;if(null===o)return;const s=t.querySelector(`.calendar-day-wrapper:nth-of-type(${n.length+o}) .calendar-day`);s&&s.focus()},this.processMinParts=()=>{const{min:t,defaultParts:n}=this;this.minParts=void 0!==t?(0,r.p)(t,n):void 0},this.processMaxParts=()=>{const{max:t,defaultParts:n}=this;this.maxParts=void 0!==t?(0,r.o)(t,n):void 0},this.initializeCalendarListener=()=>{const t=this.calendarBodyRef;if(!t)return;const n=t.querySelectorAll(".calendar-month"),o=n[0],s=n[1],l=n[2],c="ios"===(0,E.b)(this)&&typeof navigator<"u"&&navigator.maxTouchPoints>1;(0,a.w)(()=>{t.scrollLeft=o.clientWidth*((0,S.i)(this.el)?-1:1);const h=u=>{const x=t.getBoundingClientRect(),b=t.scrollLeft<=2?o:l,k=b.getBoundingClientRect();if(Math.abs(k.x-x.x)>2)return;const{forceRenderDate:v}=this;return void 0!==v?{month:v.month,year:v.year,day:v.day}:b===o?(0,r.d)(u):b===l?(0,r.e)(u):void 0},p=()=>{c&&(t.style.removeProperty("pointer-events"),f=!1);const u=h(this.workingParts);if(!u)return;const{month:x,day:b,year:k}=u;z({month:x,year:k,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(t.style.setProperty("overflow","hidden"),(0,a.w)(()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:x,day:b,year:k})),t.scrollLeft=s.clientWidth*((0,S.i)(this.el)?-1:1),t.style.removeProperty("overflow"),this.resolveForceDateScrolling&&this.resolveForceDateScrolling()}))};let g,f=!1;const m=()=>{g&&clearTimeout(g),!f&&c&&(t.style.setProperty("pointer-events","none"),f=!0),g=setTimeout(p,50)};t.addEventListener("scroll",m),this.destroyCalendarListener=()=>{t.removeEventListener("scroll",m)}})},this.destroyInteractionListeners=()=>{const{destroyCalendarListener:t,destroyKeyboardMO:n}=this;void 0!==t&&t(),void 0!==n&&n()},this.processValue=t=>{const n=null!=t&&(!Array.isArray(t)||t.length>0),o=n?(0,r.q)(t):this.defaultParts,{minParts:s,maxParts:l,workingParts:d,el:c}=this;if(this.warnIfIncorrectValueUsage(),!o)return;n&&(0,r.w)(o,s,l);const h=Array.isArray(o)?o[0]:o,p=(0,r.P)(h,s,l),{month:g,day:f,year:m,hour:u,minute:x}=p,b=(0,r.Q)(u);this.activeParts=n?Array.isArray(o)?[...o]:{month:g,day:f,year:m,hour:u,minute:x,ampm:b}:[];const k=void 0!==g&&g!==d.month||void 0!==m&&m!==d.year,v=c.classList.contains("datetime-ready"),{isGridStyle:A,showMonthAndYear:C}=this;let D=!0;if(Array.isArray(o)){const I=o[0].month;for(const B of o)if(B.month!==I){D=!1;break}}D&&(A&&k&&v&&!C?this.animateToDate(p):this.setWorkingParts({month:g,day:f,year:m,hour:u,minute:x,ampm:b}))},this.animateToDate=function(){var t=(0,P.Z)(function*(n){const{workingParts:o}=i;i.forceRenderDate=n;const s=new Promise(d=>{i.resolveForceDateScrolling=d});(0,r.i)(n,o)?i.prevMonth():i.nextMonth(),yield s,i.resolveForceDateScrolling=void 0,i.forceRenderDate=void 0});return function(n){return t.apply(this,arguments)}}(),this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>null!=this.value,this.nextMonth=()=>{const t=this.calendarBodyRef;if(!t)return;const n=t.querySelector(".calendar-month:last-of-type");n&&t.scrollTo({top:0,left:2*n.offsetWidth*((0,S.i)(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{const t=this.calendarBodyRef;!t||!t.querySelector(".calendar-month:first-of-type")||t.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear},this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"},this.isTimePopoverOpen=!1,this.forceRenderDate=void 0,this.color="primary",this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.isDateEnabled=void 0,this.min=void 0,this.max=void 0,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.yearValues=void 0,this.monthValues=void 0,this.dayValues=void 0,this.hourValues=void 0,this.minuteValues=void 0,this.locale="default",this.firstDayOfWeek=0,this.titleSelectedDatesFormatter=void 0,this.multiple=!1,this.highlightedDates=void 0,this.value=void 0,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.hourCycle=void 0,this.size="fixed",this.preferWheel=!1}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}get isGridStyle(){const{presentation:e,preferWheel:i}=this;return("date"===e||"date-time"===e||"time-date"===e)&&!i}yearValuesChanged(){this.parsedYearValues=(0,r.r)(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=(0,r.r)(this.monthValues)}dayValuesChanged(){this.parsedDayValues=(0,r.r)(this.dayValues)}hourValuesChanged(){this.parsedHourValues=(0,r.r)(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=(0,r.r)(this.minuteValues)}valueChanged(){var e=this;return(0,P.Z)(function*(){const{value:i}=e;e.hasValue()&&e.processValue(i),e.emitStyle(),e.ionValueChange.emit({value:i})})()}confirm(e=!1){var i=this;return(0,P.Z)(function*(){const{isCalendarPicker:t,activeParts:n,preferWheel:o,workingParts:s}=i;(void 0!==n||!t)&&(Array.isArray(n)&&0===n.length?i.setValue(o?(0,r.s)(s):void 0):i.setValue((0,r.s)(n))),e&&i.closeParentOverlay()})()}reset(e){var i=this;return(0,P.Z)(function*(){i.processValue(e)})()}cancel(e=!1){var i=this;return(0,P.Z)(function*(){i.ionCancel.emit(),e&&i.closeParentOverlay()})()}get isCalendarPicker(){const{presentation:e}=this;return"date"===e||"date-time"===e||"time-date"===e}connectedCallback(){this.clearFocusVisible=(0,Q.startFocusVisible)(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){const i=new IntersectionObserver(s=>{s[0].isIntersecting&&(this.initializeListeners(),(0,a.w)(()=>{this.el.classList.add("datetime-ready")}))},{threshold:.01});(0,O.r)(()=>i?.observe(this.el));const n=new IntersectionObserver(s=>{s[0].isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,(0,a.w)(()=>{this.el.classList.remove("datetime-ready")}))},{threshold:0});(0,O.r)(()=>n?.observe(this.el));const o=(0,O.g)(this.el);o.addEventListener("ionFocus",s=>s.stopPropagation()),o.addEventListener("ionBlur",s=>s.stopPropagation())}componentDidRender(){const{presentation:e,prevPresentation:i,calendarBodyRef:t,minParts:n,preferWheel:o,forceRenderDate:s}=this,l=!o&&["date-time","time-date","date"].includes(e);if(void 0!==n&&l&&t){const d=t.querySelector(".calendar-month:nth-of-type(1)");d&&void 0===s&&(t.scrollLeft=d.clientWidth*((0,S.i)(this.el)?-1:1))}null!==i?e!==i&&(this.prevPresentation=e,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,(0,O.r)(()=>{this.ionRender.emit()})):this.prevPresentation=e}componentWillLoad(){const{el:e,highlightedDates:i,multiple:t,presentation:n,preferWheel:o}=this;t&&("date"!==n&&(0,M.p)('Multiple date selection is only supported for presentation="date".',e),o&&(0,M.p)('Multiple date selection is not supported with preferWheel="true".',e)),void 0!==i&&("date"!==n&&"date-time"!==n&&"time-date"!==n&&(0,M.p)("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",e),o&&(0,M.p)('The highlightedDates property is not supported with preferWheel="true".',e));const s=this.parsedHourValues=(0,r.r)(this.hourValues),l=this.parsedMinuteValues=(0,r.r)(this.minuteValues),d=this.parsedMonthValues=(0,r.r)(this.monthValues),c=this.parsedYearValues=(0,r.r)(this.yearValues),h=this.parsedDayValues=(0,r.r)(this.dayValues),p=this.todayParts=(0,r.q)((0,r.t)());this.processMinParts(),this.processMaxParts(),this.defaultParts=(0,r.u)({refParts:p,monthValues:d,dayValues:h,yearValues:c,hourValues:s,minuteValues:l,minParts:this.minParts,maxParts:this.maxParts}),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){const{disabled:e,readonly:i,showDefaultButtons:t,showClearButton:n}=this,o=e||i;if(null===this.el.querySelector('[slot="buttons"]')&&!t&&!n)return;const l=()=>{this.reset(),this.setValue(void 0)};return(0,a.h)("div",{class:"datetime-footer"},(0,a.h)("div",{class:"datetime-buttons"},(0,a.h)("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},(0,a.h)("slot",{name:"buttons"},(0,a.h)("ion-buttons",null,t&&(0,a.h)("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0),disabled:o},this.cancelText),(0,a.h)("div",{class:"datetime-action-buttons-container"},n&&(0,a.h)("ion-button",{id:"clear-button",color:this.color,onClick:()=>l(),disabled:o},this.clearText),t&&(0,a.h)("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0),disabled:o},this.doneText)))))))}renderWheelPicker(e=this.presentation){const i="time-date"===e?[this.renderTimePickerColumns(e),this.renderDatePickerColumns(e)]:[this.renderDatePickerColumns(e),this.renderTimePickerColumns(e)];return(0,a.h)("ion-picker-internal",null,i)}renderDatePickerColumns(e){return"date-time"===e||"time-date"===e?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(e)}renderCombinedDatePickerColumn(){const{defaultParts:e,disabled:i,workingParts:t,locale:n,minParts:o,maxParts:s,todayParts:l,isDateEnabled:d}=this,c=this.getActivePartsWithFallback(),h=(0,r.I)(t),p=h[h.length-1];h[0].day=1,p.day=(0,r.x)(p.month,p.year);const g=void 0!==o&&(0,r.b)(o,h[0])?o:h[0],f=void 0!==s&&(0,r.i)(s,p)?s:p,m=(0,r.y)(n,l,g,f,this.parsedDayValues,this.parsedMonthValues);let u=m.items;const x=m.parts;return d&&(u=u.map((k,v)=>{const A=x[v];let C;try{C=!d((0,r.s)(A))}catch(D){(0,M.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",D)}return Object.assign(Object.assign({},k),{disabled:C})})),(0,a.h)("ion-picker-column-internal",{class:"date-column",color:this.color,disabled:i,items:u,value:null!==t.day?`${t.year}-${t.month}-${t.day}`:`${e.year}-${e.month}-${e.day}`,onIonChange:k=>{this.destroyCalendarListener&&this.destroyCalendarListener();const{value:v}=k.detail,A=x.find(({month:C,day:D,year:I})=>v===`${I}-${C}-${D}`);this.setWorkingParts(Object.assign(Object.assign({},t),A)),this.setActiveParts(Object.assign(Object.assign({},c),A)),this.initializeCalendarListener(),k.stopPropagation()}})}renderIndividualDatePickerColumns(e){const{workingParts:i,isDateEnabled:t}=this,o="year"!==e&&"time"!==e?(0,r.z)(this.locale,i,this.minParts,this.maxParts,this.parsedMonthValues):[];let l="date"===e?(0,r.A)(this.locale,i,this.minParts,this.maxParts,this.parsedDayValues):[];t&&(l=l.map(g=>{const{value:f}=g,m="string"==typeof f?parseInt(f):f,u={month:i.month,day:m,year:i.year};let x;try{x=!t((0,r.s)(u))}catch(b){(0,M.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",b)}return Object.assign(Object.assign({},g),{disabled:x})}));const c="month"!==e&&"time"!==e?(0,r.B)(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[];let p=[];return p=(0,r.C)(this.locale,{month:"numeric",day:"numeric"})?[this.renderMonthPickerColumn(o),this.renderDayPickerColumn(l),this.renderYearPickerColumn(c)]:[this.renderDayPickerColumn(l),this.renderMonthPickerColumn(o),this.renderYearPickerColumn(c)],p}renderDayPickerColumn(e){var i;if(0===e.length)return[];const{disabled:t,workingParts:n}=this,o=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{class:"day-column",color:this.color,disabled:t,items:e,value:null!==(i=null!==n.day?n.day:this.defaultParts.day)&&void 0!==i?i:void 0,onIonChange:s=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},n),{day:s.detail.value})),this.setActiveParts(Object.assign(Object.assign({},o),{day:s.detail.value})),this.initializeCalendarListener(),s.stopPropagation()}})}renderMonthPickerColumn(e){if(0===e.length)return[];const{disabled:i,workingParts:t}=this,n=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{class:"month-column",color:this.color,disabled:i,items:e,value:t.month,onIonChange:o=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},t),{month:o.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{month:o.detail.value})),this.initializeCalendarListener(),o.stopPropagation()}})}renderYearPickerColumn(e){if(0===e.length)return[];const{disabled:i,workingParts:t}=this,n=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{class:"year-column",color:this.color,disabled:i,items:e,value:t.year,onIonChange:o=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},t),{year:o.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{year:o.detail.value})),this.initializeCalendarListener(),o.stopPropagation()}})}renderTimePickerColumns(e){if(["date","month","month-year","year"].includes(e))return[];const t=void 0!==this.getActivePart(),{hoursData:n,minutesData:o,dayPeriodData:s}=(0,r.D)(this.locale,this.workingParts,this.hourCycle,t?this.minParts:void 0,t?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn(n),this.renderMinutePickerColumn(o),this.renderDayPeriodPickerColumn(s)]}renderHourPickerColumn(e){const{disabled:i,workingParts:t}=this;if(0===e.length)return[];const n=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{color:this.color,disabled:i,value:n.hour,items:e,numericInput:!0,onIonChange:o=>{this.setWorkingParts(Object.assign(Object.assign({},t),{hour:o.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{hour:o.detail.value})),o.stopPropagation()}})}renderMinutePickerColumn(e){const{disabled:i,workingParts:t}=this;if(0===e.length)return[];const n=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{color:this.color,disabled:i,value:n.minute,items:e,numericInput:!0,onIonChange:o=>{this.setWorkingParts(Object.assign(Object.assign({},t),{minute:o.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{minute:o.detail.value})),o.stopPropagation()}})}renderDayPeriodPickerColumn(e){const{disabled:i,workingParts:t}=this;if(0===e.length)return[];const n=this.getActivePartsWithFallback(),o=(0,r.E)(this.locale);return(0,a.h)("ion-picker-column-internal",{style:o?{order:"-1"}:{},color:this.color,disabled:i,value:n.ampm,items:e,onIonChange:s=>{const l=(0,r.R)(t,s.detail.value);this.setWorkingParts(Object.assign(Object.assign({},t),{ampm:s.detail.value,hour:l})),this.setActiveParts(Object.assign(Object.assign({},n),{ampm:s.detail.value,hour:l})),s.stopPropagation()}})}renderWheelView(e){const{locale:i}=this,n=(0,r.C)(i)?"month-first":"year-first";return(0,a.h)("div",{class:{[`wheel-order-${n}`]:!0}},this.renderWheelPicker(e))}renderCalendarHeader(e){const{disabled:i}=this,t="ios"===e?_.l:_.p,n="ios"===e?_.o:_.q,o=i||((e,i,t)=>{const n=Object.assign(Object.assign({},(0,r.d)(this.workingParts)),{day:null});return z(n,{minParts:i,maxParts:t})})(0,this.minParts,this.maxParts),s=i||((e,i)=>{const t=Object.assign(Object.assign({},(0,r.e)(this.workingParts)),{day:null});return z(t,{maxParts:i})})(0,this.maxParts),l=this.el.getAttribute("dir")||void 0;return(0,a.h)("div",{class:"calendar-header"},(0,a.h)("div",{class:"calendar-action-buttons"},(0,a.h)("div",{class:"calendar-month-year"},(0,a.h)("ion-item",{part:"month-year-button",ref:d=>this.monthYearToggleItemRef=d,button:!0,"aria-label":"Show year picker",detail:!1,lines:"none",disabled:i,onClick:()=>{var d;this.toggleMonthAndYearView();const{monthYearToggleItemRef:c}=this;if(c){const h=null===(d=c.shadowRoot)||void 0===d?void 0:d.querySelector(".item-native");h&&h.setAttribute("aria-label",this.showMonthAndYear?"Hide year picker":"Show year picker")}}},(0,a.h)("ion-label",null,(0,r.G)(this.locale,this.workingParts),(0,a.h)("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?t:n,lazy:!1,flipRtl:!0})))),(0,a.h)("div",{class:"calendar-next-prev"},(0,a.h)("ion-buttons",null,(0,a.h)("ion-button",{"aria-label":"Previous month",disabled:o,onClick:()=>this.prevMonth()},(0,a.h)("ion-icon",{dir:l,"aria-hidden":"true",slot:"icon-only",icon:_.c,lazy:!1,flipRtl:!0})),(0,a.h)("ion-button",{"aria-label":"Next month",disabled:s,onClick:()=>this.nextMonth()},(0,a.h)("ion-icon",{dir:l,"aria-hidden":"true",slot:"icon-only",icon:_.o,lazy:!1,flipRtl:!0}))))),(0,a.h)("div",{class:"calendar-days-of-week","aria-hidden":"true"},(0,r.F)(this.locale,e,this.firstDayOfWeek%7).map(d=>(0,a.h)("div",{class:"day-of-week"},d))))}renderMonth(e,i){const{disabled:t,readonly:n}=this,o=void 0===this.parsedYearValues||this.parsedYearValues.includes(i),s=void 0===this.parsedMonthValues||this.parsedMonthValues.includes(e),l=!o||!s,d=t||n,c=t||z({month:e,year:i,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),h=this.workingParts.month===e&&this.workingParts.year===i,p=this.getActivePartsWithFallback();return(0,a.h)("div",{"aria-hidden":h?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!h&&c}},(0,a.h)("div",{class:"calendar-month-grid"},(0,r.H)(e,i,this.firstDayOfWeek%7).map((g,f)=>{const{day:m,dayOfWeek:u}=g,{el:x,highlightedDates:b,isDateEnabled:k,multiple:v}=this,A={month:e,day:m,year:i},C=null===m,{isActive:D,isToday:I,ariaLabel:B,ariaSelected:fe,disabled:be,text:ye}=((e,i,t,n,o,s,l)=>{const c=void 0!==(Array.isArray(t)?t:[t]).find(g=>(0,r.c)(i,g)),h=(0,r.c)(i,n);return{disabled:Y(i,o,s,l),isActive:c,isToday:h,ariaSelected:c?"true":null,ariaLabel:(0,r.g)(e,h,i),text:null!=i.day?(0,r.a)(e,i):null}})(this.locale,A,this.activeParts,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),X=(0,r.s)(A);let T=l||be;if(!T&&void 0!==k)try{T=!k(X)}catch(W){(0,M.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",x,W)}const xe=T&&d,ke=T||d;let V,J;return void 0!==b&&!D&&null!==m&&(V=((e,i,t)=>{if(Array.isArray(e)){const n=i.split("T")[0],o=e.find(s=>s.date===n);if(o)return{textColor:o.textColor,backgroundColor:o.backgroundColor}}else try{return e(i)}catch(n){(0,M.a)("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",t,n)}})(b,X,x)),C||(J=`calendar-day${D?" active":""}${I?" today":""}${T?" disabled":""}`),(0,a.h)("div",{class:"calendar-day-wrapper"},(0,a.h)("button",{ref:W=>{W&&(W.style.setProperty("color",`${V?V.textColor:""}`,"important"),W.style.setProperty("background-color",`${V?V.backgroundColor:""}`,"important"))},tabindex:"-1","data-day":m,"data-month":e,"data-year":i,"data-index":f,"data-day-of-week":u,disabled:ke,class:{"calendar-day-padding":C,"calendar-day":!0,"calendar-day-active":D,"calendar-day-constrained":xe,"calendar-day-today":I},part:J,"aria-hidden":C?"true":null,"aria-selected":fe,"aria-label":B,onClick:()=>{C||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:e,day:m,year:i})),v?this.setActiveParts({month:e,day:m,year:i},D):this.setActiveParts(Object.assign(Object.assign({},p),{month:e,day:m,year:i})))}},ye))})))}renderCalendarBody(){return(0,a.h)("div",{class:"calendar-body ion-focusable",ref:e=>this.calendarBodyRef=e,tabindex:"0"},(0,r.I)(this.workingParts,this.forceRenderDate).map(({month:e,year:i})=>this.renderMonth(e,i)))}renderCalendar(e){return(0,a.h)("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(e),this.renderCalendarBody())}renderTimeLabel(){if(null!==this.el.querySelector('[slot="time-label"]')||this.showDefaultTimeLabel)return(0,a.h)("slot",{name:"time-label"},"Time")}renderTimeOverlay(){var e=this;const{disabled:i,hourCycle:t,isTimePopoverOpen:n,locale:o}=this,s=(0,r.J)(o,t),l=this.getActivePartsWithFallback();return[(0,a.h)("div",{class:"time-header"},this.renderTimeLabel()),(0,a.h)("button",{class:{"time-body":!0,"time-body-active":n},part:"time-button"+(n?" active":""),"aria-expanded":"false","aria-haspopup":"true",disabled:i,onClick:(d=(0,P.Z)(function*(c){const{popoverRef:h}=e;h&&(e.isTimePopoverOpen=!0,h.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:c.target}})),yield h.onWillDismiss(),e.isTimePopoverOpen=!1)}),function(h){return d.apply(this,arguments)})},(0,r.K)(o,l,s)),(0,a.h)("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:d=>{d.target.querySelectorAll("ion-picker-column-internal").forEach(h=>h.scrollActiveItemIntoView())},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:d=>this.popoverRef=d},this.renderWheelPicker("time"))];var d}getHeaderSelectedDateText(){const{activeParts:e,multiple:i,titleSelectedDatesFormatter:t}=this,n=Array.isArray(e);let o;if(i&&n&&1!==e.length){if(o=`${e.length} days`,void 0!==t)try{o=t((0,r.s)(e))}catch(s){(0,M.a)("Exception in provided `titleSelectedDatesFormatter`: ",s)}}else o=(0,r.L)(this.locale,this.getActivePartsWithFallback());return o}renderHeader(e=!0){if(null!==this.el.querySelector('[slot="title"]')||this.showDefaultTitle)return(0,a.h)("div",{class:"datetime-header"},(0,a.h)("div",{class:"datetime-title"},(0,a.h)("slot",{name:"title"},"Select Date")),e&&(0,a.h)("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){const{presentation:e}=this;return(0,a.h)("div",{class:"datetime-time"},"time"===e?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return(0,a.h)("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(e){const{presentation:i,preferWheel:t}=this;if(t&&("date"===i||"date-time"===i||"time-date"===i))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(i){case"date-time":return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){const{name:e,value:i,disabled:t,el:n,color:o,readonly:s,showMonthAndYear:l,preferWheel:d,presentation:c,size:h,isGridStyle:p}=this,g=(0,E.b)(this),f="year"===c||"month"===c||"month-year"===c,m=l||f,u=l&&!f,b=("date"===c||"date-time"===c||"time-date"===c)&&d;return(0,O.d)(!0,n,e,(0,r.M)(i),t),(0,a.h)(a.H,{"aria-disabled":t?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},(0,L.c)(o,{[g]:!0,"datetime-readonly":s,"datetime-disabled":t,"show-month-and-year":m,"month-year-picker-open":u,[`datetime-presentation-${c}`]:!0,[`datetime-size-${h}`]:!0,"datetime-prefer-wheel":b,"datetime-grid":p}))},this.renderDatetime(g))}get el(){return(0,a.f)(this)}static get watchers(){return{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}}};let de=0;H.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:min(1rem, 25.6px);font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:auto}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}"};const $=e=>{const i=(0,j.c)(),t=(0,j.c)(),n=(0,j.c)();return t.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),i.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([t,n])},K=e=>{const i=(0,j.c)(),t=(0,j.c)(),n=(0,j.c)();return t.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01),n.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),i.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([t,n])},U=class{constructor(e){(0,a.r)(this,e),this.didPresent=(0,a.d)(this,"ionPickerDidPresent",7),this.willPresent=(0,a.d)(this,"ionPickerWillPresent",7),this.willDismiss=(0,a.d)(this,"ionPickerWillDismiss",7),this.didDismiss=(0,a.d)(this,"ionPickerDidDismiss",7),this.didPresentShorthand=(0,a.d)(this,"didPresent",7),this.willPresentShorthand=(0,a.d)(this,"willPresent",7),this.willDismissShorthand=(0,a.d)(this,"willDismiss",7),this.didDismissShorthand=(0,a.d)(this,"didDismiss",7),this.delegateController=(0,w.d)(this),this.lockController=(0,ee.c)(),this.triggerController=(0,w.e)(),this.onBackdropTap=()=>{this.dismiss(void 0,w.B)},this.dispatchCancelHandler=i=>{if((0,w.i)(i.detail.role)){const n=this.buttons.find(o=>"cancel"===o.role);this.callButtonHandler(n)}},this.presented=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.columns=[],this.cssClass=void 0,this.duration=0,this.showBackdrop=!0,this.backdropDismiss=!0,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(e,i){!0===e&&!1===i?this.present():!1===e&&!0===i&&this.dismiss()}triggerChanged(){const{trigger:e,el:i,triggerController:t}=this;e&&t.addClickListener(i,e)}connectedCallback(){(0,w.j)(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){(0,w.k)(this.el)}componentDidLoad(){!0===this.isOpen&&(0,O.r)(()=>this.present()),this.triggerChanged()}present(){var e=this;return(0,P.Z)(function*(){const i=yield e.lockController.lock();yield e.delegateController.attachViewToDom(),yield(0,w.f)(e,"pickerEnter",$,$,void 0),e.duration>0&&(e.durationTimeout=setTimeout(()=>e.dismiss(),e.duration)),i()})()}dismiss(e,i){var t=this;return(0,P.Z)(function*(){const n=yield t.lockController.lock();t.durationTimeout&&clearTimeout(t.durationTimeout);const o=yield(0,w.g)(t,e,i,"pickerLeave",K,K);return o&&t.delegateController.removeViewFromDom(),n(),o})()}onDidDismiss(){return(0,w.h)(this.el,"ionPickerDidDismiss")}onWillDismiss(){return(0,w.h)(this.el,"ionPickerWillDismiss")}getColumn(e){return Promise.resolve(this.columns.find(i=>i.name===e))}buttonClick(e){var i=this;return(0,P.Z)(function*(){const t=e.role;return(0,w.i)(t)?i.dismiss(void 0,t):(yield i.callButtonHandler(e))?i.dismiss(i.getSelected(),e.role):Promise.resolve()})()}callButtonHandler(e){var i=this;return(0,P.Z)(function*(){return!(e&&!1===(yield(0,w.s)(e.handler,i.getSelected())))})()}getSelected(){const e={};return this.columns.forEach((i,t)=>{const n=void 0!==i.selectedIndex?i.options[i.selectedIndex]:void 0;e[i.name]={text:n?n.text:void 0,value:n?n.value:void 0,columnIndex:t}}),e}render(){const{htmlAttributes:e}=this,i=(0,E.b)(this);return(0,a.h)(a.H,Object.assign({"aria-modal":"true",tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[i]:!0,[`picker-${i}`]:!0,"overlay-hidden":!0},(0,L.g)(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler}),(0,a.h)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,a.h)("div",{tabindex:"0"}),(0,a.h)("div",{class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},(0,a.h)("div",{class:"picker-toolbar"},this.buttons.map(t=>(0,a.h)("div",{class:he(t)},(0,a.h)("button",{type:"button",onClick:()=>this.buttonClick(t),class:pe(t)},t.text)))),(0,a.h)("div",{class:"picker-columns"},(0,a.h)("div",{class:"picker-above-highlight"}),this.presented&&this.columns.map(t=>(0,a.h)("ion-picker-column",{col:t})),(0,a.h)("div",{class:"picker-below-highlight"}))),(0,a.h)("div",{tabindex:"0"}))}get el(){return(0,a.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},he=e=>({[`picker-toolbar-${e.role}`]:void 0!==e.role,"picker-toolbar-button":!0}),pe=e=>Object.assign({"picker-button":!0,"ion-activatable":!0},(0,L.g)(e.cssClass));U.style={ios:".sc-ion-picker-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-ios-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-ios-h{left:0}[dir=rtl].sc-ion-picker-ios-h,[dir=rtl] .sc-ion-picker-ios-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-ios-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-ios-h{display:none}.picker-wrapper.sc-ion-picker-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-ios:active,.picker-button.sc-ion-picker-ios:focus{outline:none}.picker-columns.sc-ion-picker-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-ios,.picker-below-highlight.sc-ion-picker-ios{display:none;pointer-events:none}.sc-ion-picker-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-ios:last-child .picker-button.sc-ion-picker-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:16px}.picker-columns.sc-ion-picker-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}",md:".sc-ion-picker-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-md-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-md-h{left:0}[dir=rtl].sc-ion-picker-md-h,[dir=rtl] .sc-ion-picker-md-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-md-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-md-h{display:none}.picker-wrapper.sc-ion-picker-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-md:active,.picker-button.sc-ion-picker-md:focus{outline:none}.picker-columns.sc-ion-picker-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-md,.picker-below-highlight.sc-ion-picker-md{display:none;pointer-events:none}.sc-ion-picker-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}"};const Z=class{constructor(e){(0,a.r)(this,e),this.ionPickerColChange=(0,a.d)(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0,this.colDidChange=!1,this.col=void 0}colChanged(){this.colDidChange=!0}connectedCallback(){var e=this;return(0,P.Z)(function*(){let i=0,t=.81;"ios"===(0,E.b)(e)&&(i=-.46,t=1),e.rotateFactor=i,e.scaleFactor=t,e.gesture=(yield Promise.resolve().then(y.bind(y,6535))).createGesture({el:e.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:o=>e.onStart(o),onMove:o=>e.onMove(o),onEnd:o=>e.onEnd(o)}),e.gesture.enable(),e.tmrId=setTimeout(()=>{e.noAnimate=!1,e.refresh(!0)},250)})()}componentDidLoad(){this.onDomChange()}componentDidUpdate(){this.colDidChange&&(this.onDomChange(!0,!1),this.colDidChange=!1)}disconnectedCallback(){void 0!==this.rafId&&cancelAnimationFrame(this.rafId),this.tmrId&&clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}emitColChange(){this.ionPickerColChange.emit(this.col)}setSelected(e,i){const t=e>-1?-e*this.optHeight:0;this.velocity=0,void 0!==this.rafId&&cancelAnimationFrame(this.rafId),this.update(t,i,!0),this.emitColChange()}update(e,i,t){if(!this.optsEl)return;let n=0,o=0;const{col:s,rotateFactor:l}=this,d=s.selectedIndex,c=s.selectedIndex=this.indexForY(-e),h=0===i?"":i+"ms",p=`scale(${this.scaleFactor})`,g=this.optsEl.children;for(let f=0;f0?Math.max(this.velocity,1):Math.min(this.velocity,-1);let e=this.y+this.velocity;e>this.minY?(e=this.minY,this.velocity=0):e1?this.rafId=requestAnimationFrame(()=>this.decelerate()):(this.velocity=0,this.emitColChange(),(0,F.h)())}else if(this.y%this.optHeight!=0){const e=Math.abs(this.y%this.optHeight);this.velocity=e>this.optHeight/2?1:-1,this.decelerate()}}indexForY(e){return Math.min(Math.max(Math.abs(Math.round(e/this.optHeight)),0),this.col.options.length-1)}onStart(e){e.event.cancelable&&e.event.preventDefault(),e.event.stopPropagation(),(0,F.a)(),void 0!==this.rafId&&cancelAnimationFrame(this.rafId);const i=this.col.options;let t=i.length-1,n=0;for(let o=0;othis.minY?(i=Math.pow(i,.8),this.bounceFrom=i):i0)return this.update(this.minY,100,!0),void this.emitColChange();if(this.bounceFrom<0)return this.update(this.maxY,100,!0),void this.emitColChange();if(this.velocity=(0,O.l)(-G,23*e.velocityY,G),0===this.velocity&&0===e.deltaY){const i=e.event.target.closest(".picker-opt");i?.hasAttribute("opt-index")&&this.setSelected(parseInt(i.getAttribute("opt-index"),10),q)}else{if(this.y+=e.deltaY,Math.abs(e.velocityY)<.05){const i=e.deltaY>0,t=Math.abs(this.y)%this.optHeight/this.optHeight;i&&t>.5?this.velocity=-1*Math.abs(this.velocity):!i&&t<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}refresh(e,i){var t;let n=this.col.options.length-1,o=0;const s=this.col.options;for(let d=0;dthis.optsEl=t},e.options.map((t,n)=>(0,a.h)("button",{"aria-label":t.ariaLabel,class:{"picker-opt":!0,"picker-opt-disabled":!!t.disabled},"opt-index":n},t.text))),e.suffix&&(0,a.h)("div",{class:"picker-suffix",style:{width:e.suffixWidth}},e.suffix))}get el(){return(0,a.f)(this)}static get watchers(){return{col:["colChanged"]}}},N="picker-opt-selected",ge=.97,G=90,q=150;Z.style={ios:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}",md:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}"}}}]); \ No newline at end of file diff --git a/7059.5f539cff3f4c3aaa.js b/7059.5f539cff3f4c3aaa.js deleted file mode 100644 index 5012fa72..00000000 --- a/7059.5f539cff3f4c3aaa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7059],{7059:(ve,F,y)=>{y.r(F),y.d(F,{ion_datetime:()=>R,ion_picker:()=>$,ion_picker_column:()=>K});var P=y(5861),a=y(5349),J=y(2779),O=y(839),C=y(6710),W=y(5085),S=y(3567),A=y(5307),I=y(3882),r=y(5504),Q=y(3830),w=y(7612),_=y(6410),z=y(967);y(6225),y(4874);const B=(e,i,t,n)=>!!(null===e.day||void 0!==n&&!n.includes(e.day)||i&&(0,r.i)(e,i)||t&&(0,r.b)(e,t)),L=(e,{minParts:i,maxParts:t})=>!!(((e,i,t)=>!!(i&&i.year>e||t&&t.year{const{multiple:t,value:n}=this;!t&&Array.isArray(n)&&(0,C.p)(`ion-datetime was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${n.map(o=>`'${o}'`).join(", ")}]\n`,this.el)},this.setValue=t=>{this.value=t,this.ionChange.emit({value:t})},this.getActivePartsWithFallback=()=>{var t;const{defaultParts:n}=this;return null!==(t=this.getActivePart())&&void 0!==t?t:n},this.getActivePart=()=>{const{activeParts:t}=this;return Array.isArray(t)?t[0]:t},this.closeParentOverlay=()=>{const t=this.el.closest("ion-modal, ion-popover");t&&t.dismiss()},this.setWorkingParts=t=>{this.workingParts=Object.assign({},t)},this.setActiveParts=(t,n=!1)=>{if(this.readonly)return;const{multiple:o,minParts:d,maxParts:c,activeParts:s}=this,l=(0,r.v)(t,d,c);if(this.setWorkingParts(l),o){const p=Array.isArray(s)?s:[s];this.activeParts=n?p.filter(g=>!(0,r.c)(g,l)):[...p,l]}else this.activeParts=Object.assign({},l);null!==this.el.querySelector('[slot="buttons"]')||this.showDefaultButtons||this.confirm()},this.initializeKeyboardListeners=()=>{const t=this.calendarBodyRef;if(!t)return;const n=this.el.shadowRoot,o=t.querySelector(".calendar-month:nth-of-type(2)"),c=new MutationObserver(s=>{var l;null!==(l=s[0].oldValue)&&void 0!==l&&l.includes("ion-focused")||!t.classList.contains("ion-focused")||this.focusWorkingDay(o)});c.observe(t,{attributeFilter:["class"],attributeOldValue:!0}),this.destroyKeyboardMO=()=>{c?.disconnect()},t.addEventListener("keydown",s=>{const l=n.activeElement;if(!l||!l.classList.contains("calendar-day"))return;const h=(0,r.f)(l);let p;switch(s.key){case"ArrowDown":s.preventDefault(),p=(0,r.n)(h);break;case"ArrowUp":s.preventDefault(),p=(0,r.m)(h);break;case"ArrowRight":s.preventDefault(),p=(0,r.l)(h);break;case"ArrowLeft":s.preventDefault(),p=(0,r.k)(h);break;case"Home":s.preventDefault(),p=(0,r.j)(h);break;case"End":s.preventDefault(),p=(0,r.h)(h);break;case"PageUp":s.preventDefault(),p=s.shiftKey?(0,r.O)(h):(0,r.d)(h);break;case"PageDown":s.preventDefault(),p=s.shiftKey?(0,r.N)(h):(0,r.e)(h);break;default:return}B(p,this.minParts,this.maxParts)||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),p)),requestAnimationFrame(()=>this.focusWorkingDay(o)))})},this.focusWorkingDay=t=>{const n=t.querySelectorAll(".calendar-day-padding"),{day:o}=this.workingParts;if(null===o)return;const d=t.querySelector(`.calendar-day-wrapper:nth-of-type(${n.length+o}) .calendar-day`);d&&d.focus()},this.processMinParts=()=>{const{min:t,defaultParts:n}=this;this.minParts=void 0!==t?(0,r.p)(t,n):void 0},this.processMaxParts=()=>{const{max:t,defaultParts:n}=this;this.maxParts=void 0!==t?(0,r.o)(t,n):void 0},this.initializeCalendarListener=()=>{const t=this.calendarBodyRef;if(!t)return;const n=t.querySelectorAll(".calendar-month"),o=n[0],d=n[1],c=n[2],l="ios"===(0,I.b)(this)&&typeof navigator<"u"&&navigator.maxTouchPoints>1;(0,a.w)(()=>{t.scrollLeft=o.clientWidth*((0,W.i)(this.el)?-1:1);const h=b=>{const x=t.getBoundingClientRect(),u=t.scrollLeft<=2?o:c,k=u.getBoundingClientRect();if(Math.abs(k.x-x.x)>2)return;const{forceRenderDate:v}=this;return void 0!==v?{month:v.month,year:v.year,day:v.day}:u===o?(0,r.d)(b):u===c?(0,r.e)(b):void 0},p=()=>{l&&(t.style.removeProperty("pointer-events"),f=!1);const b=h(this.workingParts);if(!b)return;const{month:x,day:u,year:k}=b;L({month:x,year:k,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})})||(t.style.setProperty("overflow","hidden"),(0,a.w)(()=>{this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:x,day:u,year:k})),t.scrollLeft=d.clientWidth*((0,W.i)(this.el)?-1:1),t.style.removeProperty("overflow"),this.resolveForceDateScrolling&&this.resolveForceDateScrolling()}))};let g,f=!1;const m=()=>{g&&clearTimeout(g),!f&&l&&(t.style.setProperty("pointer-events","none"),f=!0),g=setTimeout(p,50)};t.addEventListener("scroll",m),this.destroyCalendarListener=()=>{t.removeEventListener("scroll",m)}})},this.destroyInteractionListeners=()=>{const{destroyCalendarListener:t,destroyKeyboardMO:n}=this;void 0!==t&&t(),void 0!==n&&n()},this.processValue=t=>{const n=null!=t&&(!Array.isArray(t)||t.length>0),o=n?(0,r.q)(t):this.defaultParts,{minParts:d,maxParts:c,workingParts:s,el:l}=this;if(this.warnIfIncorrectValueUsage(),!o)return;n&&(0,r.w)(o,d,c);const h=Array.isArray(o)?o[0]:o,p=(0,r.P)(h,d,c),{month:g,day:f,year:m,hour:b,minute:x}=p,u=(0,r.Q)(b);this.activeParts=n?Array.isArray(o)?[...o]:{month:g,day:f,year:m,hour:b,minute:x,ampm:u}:[];const k=void 0!==g&&g!==s.month||void 0!==m&&m!==s.year,v=l.classList.contains("datetime-ready"),{isGridStyle:M,showMonthAndYear:D}=this;M&&k&&v&&!D?this.animateToDate(p):this.setWorkingParts({month:g,day:f,year:m,hour:b,minute:x,ampm:u})},this.animateToDate=function(){var t=(0,P.Z)(function*(n){const{workingParts:o}=i;i.forceRenderDate=n;const d=new Promise(s=>{i.resolveForceDateScrolling=s});(0,r.i)(n,o)?i.prevMonth():i.nextMonth(),yield d,i.resolveForceDateScrolling=void 0,i.forceRenderDate=void 0});return function(n){return t.apply(this,arguments)}}(),this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.hasValue=()=>null!=this.value,this.nextMonth=()=>{const t=this.calendarBodyRef;if(!t)return;const n=t.querySelector(".calendar-month:last-of-type");n&&t.scrollTo({top:0,left:2*n.offsetWidth*((0,W.i)(this.el)?-1:1),behavior:"smooth"})},this.prevMonth=()=>{const t=this.calendarBodyRef;!t||!t.querySelector(".calendar-month:first-of-type")||t.scrollTo({top:0,left:0,behavior:"smooth"})},this.toggleMonthAndYearView=()=>{this.showMonthAndYear=!this.showMonthAndYear},this.showMonthAndYear=!1,this.activeParts=[],this.workingParts={month:5,day:28,year:2021,hour:13,minute:52,ampm:"pm"},this.isTimePopoverOpen=!1,this.forceRenderDate=void 0,this.color="primary",this.name=this.inputId,this.disabled=!1,this.readonly=!1,this.isDateEnabled=void 0,this.min=void 0,this.max=void 0,this.presentation="date-time",this.cancelText="Cancel",this.doneText="Done",this.clearText="Clear",this.yearValues=void 0,this.monthValues=void 0,this.dayValues=void 0,this.hourValues=void 0,this.minuteValues=void 0,this.locale="default",this.firstDayOfWeek=0,this.titleSelectedDatesFormatter=void 0,this.multiple=!1,this.highlightedDates=void 0,this.value=void 0,this.showDefaultTitle=!1,this.showDefaultButtons=!1,this.showClearButton=!1,this.showDefaultTimeLabel=!0,this.hourCycle=void 0,this.size="fixed",this.preferWheel=!1}disabledChanged(){this.emitStyle()}minChanged(){this.processMinParts()}maxChanged(){this.processMaxParts()}get isGridStyle(){const{presentation:e,preferWheel:i}=this;return("date"===e||"date-time"===e||"time-date"===e)&&!i}yearValuesChanged(){this.parsedYearValues=(0,r.r)(this.yearValues)}monthValuesChanged(){this.parsedMonthValues=(0,r.r)(this.monthValues)}dayValuesChanged(){this.parsedDayValues=(0,r.r)(this.dayValues)}hourValuesChanged(){this.parsedHourValues=(0,r.r)(this.hourValues)}minuteValuesChanged(){this.parsedMinuteValues=(0,r.r)(this.minuteValues)}valueChanged(){var e=this;return(0,P.Z)(function*(){const{value:i}=e;e.hasValue()&&e.processValue(i),e.emitStyle(),e.ionValueChange.emit({value:i})})()}confirm(e=!1){var i=this;return(0,P.Z)(function*(){const{isCalendarPicker:t,activeParts:n}=i;(void 0!==n||!t)&&(Array.isArray(n)&&0===n.length?i.setValue(void 0):i.setValue((0,r.s)(n))),e&&i.closeParentOverlay()})()}reset(e){var i=this;return(0,P.Z)(function*(){i.processValue(e)})()}cancel(e=!1){var i=this;return(0,P.Z)(function*(){i.ionCancel.emit(),e&&i.closeParentOverlay()})()}get isCalendarPicker(){const{presentation:e}=this;return"date"===e||"date-time"===e||"time-date"===e}connectedCallback(){this.clearFocusVisible=(0,J.startFocusVisible)(this.el).destroy}disconnectedCallback(){this.clearFocusVisible&&(this.clearFocusVisible(),this.clearFocusVisible=void 0)}initializeListeners(){this.initializeCalendarListener(),this.initializeKeyboardListeners()}componentDidLoad(){const i=new IntersectionObserver(d=>{d[0].isIntersecting&&(this.initializeListeners(),(0,a.w)(()=>{this.el.classList.add("datetime-ready")}))},{threshold:.01});(0,O.r)(()=>i?.observe(this.el));const n=new IntersectionObserver(d=>{d[0].isIntersecting||(this.destroyInteractionListeners(),this.showMonthAndYear=!1,(0,a.w)(()=>{this.el.classList.remove("datetime-ready")}))},{threshold:0});(0,O.r)(()=>n?.observe(this.el));const o=(0,O.g)(this.el);o.addEventListener("ionFocus",d=>d.stopPropagation()),o.addEventListener("ionBlur",d=>d.stopPropagation())}componentDidRender(){const{presentation:e,prevPresentation:i,calendarBodyRef:t,minParts:n,preferWheel:o,forceRenderDate:d}=this,c=!o&&["date-time","time-date","date"].includes(e);if(void 0!==n&&c&&t){const s=t.querySelector(".calendar-month:nth-of-type(1)");s&&void 0===d&&(t.scrollLeft=s.clientWidth*((0,W.i)(this.el)?-1:1))}null!==i?e!==i&&(this.prevPresentation=e,this.destroyInteractionListeners(),this.initializeListeners(),this.showMonthAndYear=!1,(0,O.r)(()=>{this.ionRender.emit()})):this.prevPresentation=e}componentWillLoad(){const{el:e,highlightedDates:i,multiple:t,presentation:n,preferWheel:o}=this;t&&("date"!==n&&(0,C.p)('Multiple date selection is only supported for presentation="date".',e),o&&(0,C.p)('Multiple date selection is not supported with preferWheel="true".',e)),void 0!==i&&("date"!==n&&"date-time"!==n&&"time-date"!==n&&(0,C.p)("The highlightedDates property is only supported with the date, date-time, and time-date presentations.",e),o&&(0,C.p)('The highlightedDates property is not supported with preferWheel="true".',e));const d=this.parsedHourValues=(0,r.r)(this.hourValues),c=this.parsedMinuteValues=(0,r.r)(this.minuteValues),s=this.parsedMonthValues=(0,r.r)(this.monthValues),l=this.parsedYearValues=(0,r.r)(this.yearValues),h=this.parsedDayValues=(0,r.r)(this.dayValues),p=this.todayParts=(0,r.q)((0,r.t)());this.defaultParts=(0,r.u)(p,s,h,l,d,c),this.processMinParts(),this.processMaxParts(),this.processValue(this.value),this.emitStyle()}emitStyle(){this.ionStyle.emit({interactive:!0,datetime:!0,"interactive-disabled":this.disabled})}renderFooter(){const{disabled:e,readonly:i,showDefaultButtons:t,showClearButton:n}=this,o=e||i;if(null===this.el.querySelector('[slot="buttons"]')&&!t&&!n)return;const c=()=>{this.reset(),this.setValue(void 0)};return(0,a.h)("div",{class:"datetime-footer"},(0,a.h)("div",{class:"datetime-buttons"},(0,a.h)("div",{class:{"datetime-action-buttons":!0,"has-clear-button":this.showClearButton}},(0,a.h)("slot",{name:"buttons"},(0,a.h)("ion-buttons",null,t&&(0,a.h)("ion-button",{id:"cancel-button",color:this.color,onClick:()=>this.cancel(!0),disabled:o},this.cancelText),(0,a.h)("div",{class:"datetime-action-buttons-container"},n&&(0,a.h)("ion-button",{id:"clear-button",color:this.color,onClick:()=>c(),disabled:o},this.clearText),t&&(0,a.h)("ion-button",{id:"confirm-button",color:this.color,onClick:()=>this.confirm(!0),disabled:o},this.doneText)))))))}renderWheelPicker(e=this.presentation){const i="time-date"===e?[this.renderTimePickerColumns(e),this.renderDatePickerColumns(e)]:[this.renderDatePickerColumns(e),this.renderTimePickerColumns(e)];return(0,a.h)("ion-picker-internal",null,i)}renderDatePickerColumns(e){return"date-time"===e||"time-date"===e?this.renderCombinedDatePickerColumn():this.renderIndividualDatePickerColumns(e)}renderCombinedDatePickerColumn(){const{defaultParts:e,workingParts:i,locale:t,minParts:n,maxParts:o,todayParts:d,isDateEnabled:c}=this,s=this.getActivePartsWithFallback(),l=(0,r.I)(i),h=l[l.length-1];l[0].day=1,h.day=(0,r.x)(h.month,h.year);const p=void 0!==n&&(0,r.b)(n,l[0])?n:l[0],g=void 0!==o&&(0,r.i)(o,h)?o:h,f=(0,r.y)(t,d,p,g,this.parsedDayValues,this.parsedMonthValues);let m=f.items;const b=f.parts;return c&&(m=m.map((u,k)=>{const v=b[k];let M;try{M=!c((0,r.s)(v))}catch(D){(0,C.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",D)}return Object.assign(Object.assign({},u),{disabled:M})})),(0,a.h)("ion-picker-column-internal",{class:"date-column",color:this.color,items:m,value:null!==i.day?`${i.year}-${i.month}-${i.day}`:`${e.year}-${e.month}-${e.day}`,onIonChange:u=>{this.destroyCalendarListener&&this.destroyCalendarListener();const{value:k}=u.detail,v=b.find(({month:M,day:D,year:j})=>k===`${j}-${M}-${D}`);this.setWorkingParts(Object.assign(Object.assign({},i),v)),this.setActiveParts(Object.assign(Object.assign({},s),v)),this.initializeCalendarListener(),u.stopPropagation()}})}renderIndividualDatePickerColumns(e){const{workingParts:i,isDateEnabled:t}=this,o="year"!==e&&"time"!==e?(0,r.z)(this.locale,i,this.minParts,this.maxParts,this.parsedMonthValues):[];let c="date"===e?(0,r.A)(this.locale,i,this.minParts,this.maxParts,this.parsedDayValues):[];t&&(c=c.map(g=>{const{value:f}=g,m="string"==typeof f?parseInt(f):f,b={month:i.month,day:m,year:i.year};let x;try{x=!t((0,r.s)(b))}catch(u){(0,C.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",u)}return Object.assign(Object.assign({},g),{disabled:x})}));const l="month"!==e&&"time"!==e?(0,r.B)(this.locale,this.defaultParts,this.minParts,this.maxParts,this.parsedYearValues):[];let p=[];return p=(0,r.C)(this.locale,{month:"numeric",day:"numeric"})?[this.renderMonthPickerColumn(o),this.renderDayPickerColumn(c),this.renderYearPickerColumn(l)]:[this.renderDayPickerColumn(c),this.renderMonthPickerColumn(o),this.renderYearPickerColumn(l)],p}renderDayPickerColumn(e){var i;if(0===e.length)return[];const{workingParts:t}=this,n=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{class:"day-column",color:this.color,items:e,value:null!==(i=null!==t.day?t.day:this.defaultParts.day)&&void 0!==i?i:void 0,onIonChange:o=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},t),{day:o.detail.value})),this.setActiveParts(Object.assign(Object.assign({},n),{day:o.detail.value})),this.initializeCalendarListener(),o.stopPropagation()}})}renderMonthPickerColumn(e){if(0===e.length)return[];const{workingParts:i}=this,t=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{class:"month-column",color:this.color,items:e,value:i.month,onIonChange:n=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},i),{month:n.detail.value})),this.setActiveParts(Object.assign(Object.assign({},t),{month:n.detail.value})),this.initializeCalendarListener(),n.stopPropagation()}})}renderYearPickerColumn(e){if(0===e.length)return[];const{workingParts:i}=this,t=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{class:"year-column",color:this.color,items:e,value:i.year,onIonChange:n=>{this.destroyCalendarListener&&this.destroyCalendarListener(),this.setWorkingParts(Object.assign(Object.assign({},i),{year:n.detail.value})),this.setActiveParts(Object.assign(Object.assign({},t),{year:n.detail.value})),this.initializeCalendarListener(),n.stopPropagation()}})}renderTimePickerColumns(e){if(["date","month","month-year","year"].includes(e))return[];const t=void 0!==this.getActivePart(),{hoursData:n,minutesData:o,dayPeriodData:d}=(0,r.D)(this.locale,this.workingParts,this.hourCycle,t?this.minParts:void 0,t?this.maxParts:void 0,this.parsedHourValues,this.parsedMinuteValues);return[this.renderHourPickerColumn(n),this.renderMinutePickerColumn(o),this.renderDayPeriodPickerColumn(d)]}renderHourPickerColumn(e){const{workingParts:i}=this;if(0===e.length)return[];const t=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{color:this.color,value:t.hour,items:e,numericInput:!0,onIonChange:n=>{this.setWorkingParts(Object.assign(Object.assign({},i),{hour:n.detail.value})),this.setActiveParts(Object.assign(Object.assign({},t),{hour:n.detail.value})),n.stopPropagation()}})}renderMinutePickerColumn(e){const{workingParts:i}=this;if(0===e.length)return[];const t=this.getActivePartsWithFallback();return(0,a.h)("ion-picker-column-internal",{color:this.color,value:t.minute,items:e,numericInput:!0,onIonChange:n=>{this.setWorkingParts(Object.assign(Object.assign({},i),{minute:n.detail.value})),this.setActiveParts(Object.assign(Object.assign({},t),{minute:n.detail.value})),n.stopPropagation()}})}renderDayPeriodPickerColumn(e){const{workingParts:i}=this;if(0===e.length)return[];const t=this.getActivePartsWithFallback(),n=(0,r.E)(this.locale);return(0,a.h)("ion-picker-column-internal",{style:n?{order:"-1"}:{},color:this.color,value:t.ampm,items:e,onIonChange:o=>{const d=(0,r.R)(i,o.detail.value);this.setWorkingParts(Object.assign(Object.assign({},i),{ampm:o.detail.value,hour:d})),this.setActiveParts(Object.assign(Object.assign({},t),{ampm:o.detail.value,hour:d})),o.stopPropagation()}})}renderWheelView(e){const{locale:i}=this,n=(0,r.C)(i)?"month-first":"year-first";return(0,a.h)("div",{class:{[`wheel-order-${n}`]:!0}},this.renderWheelPicker(e))}renderCalendarHeader(e){const{disabled:i}=this,t="ios"===e?A.l:A.p,n="ios"===e?A.o:A.q,o=i||((e,i,t)=>{const n=Object.assign(Object.assign({},(0,r.d)(this.workingParts)),{day:null});return L(n,{minParts:i,maxParts:t})})(0,this.minParts,this.maxParts),d=i||((e,i)=>{const t=Object.assign(Object.assign({},(0,r.e)(this.workingParts)),{day:null});return L(t,{maxParts:i})})(0,this.maxParts),c=this.el.getAttribute("dir")||void 0;return(0,a.h)("div",{class:"calendar-header"},(0,a.h)("div",{class:"calendar-action-buttons"},(0,a.h)("div",{class:"calendar-month-year"},(0,a.h)("ion-item",{part:"month-year-button",ref:s=>this.monthYearToggleItemRef=s,button:!0,"aria-label":"Show year picker",detail:!1,lines:"none",disabled:i,onClick:()=>{var s;this.toggleMonthAndYearView();const{monthYearToggleItemRef:l}=this;if(l){const h=null===(s=l.shadowRoot)||void 0===s?void 0:s.querySelector(".item-native");h&&h.setAttribute("aria-label",this.showMonthAndYear?"Hide year picker":"Show year picker")}}},(0,a.h)("ion-label",null,(0,r.G)(this.locale,this.workingParts),(0,a.h)("ion-icon",{"aria-hidden":"true",icon:this.showMonthAndYear?t:n,lazy:!1,flipRtl:!0})))),(0,a.h)("div",{class:"calendar-next-prev"},(0,a.h)("ion-buttons",null,(0,a.h)("ion-button",{"aria-label":"Previous month",disabled:o,onClick:()=>this.prevMonth()},(0,a.h)("ion-icon",{dir:c,"aria-hidden":"true",slot:"icon-only",icon:A.c,lazy:!1,flipRtl:!0})),(0,a.h)("ion-button",{"aria-label":"Next month",disabled:d,onClick:()=>this.nextMonth()},(0,a.h)("ion-icon",{dir:c,"aria-hidden":"true",slot:"icon-only",icon:A.o,lazy:!1,flipRtl:!0}))))),(0,a.h)("div",{class:"calendar-days-of-week","aria-hidden":"true"},(0,r.F)(this.locale,e,this.firstDayOfWeek%7).map(s=>(0,a.h)("div",{class:"day-of-week"},s))))}renderMonth(e,i){const{disabled:t,readonly:n}=this,o=void 0===this.parsedYearValues||this.parsedYearValues.includes(i),d=void 0===this.parsedMonthValues||this.parsedMonthValues.includes(e),c=!o||!d,s=t||n,l=t||L({month:e,year:i,day:null},{minParts:Object.assign(Object.assign({},this.minParts),{day:null}),maxParts:Object.assign(Object.assign({},this.maxParts),{day:null})}),h=this.workingParts.month===e&&this.workingParts.year===i,p=this.getActivePartsWithFallback();return(0,a.h)("div",{"aria-hidden":h?null:"true",class:{"calendar-month":!0,"calendar-month-disabled":!h&&l}},(0,a.h)("div",{class:"calendar-month-grid"},(0,r.H)(e,i,this.firstDayOfWeek%7).map((g,f)=>{const{day:m,dayOfWeek:b}=g,{el:x,highlightedDates:u,isDateEnabled:k,multiple:v}=this,M={month:e,day:m,year:i},D=null===m,{isActive:j,isToday:G,ariaLabel:ge,ariaSelected:fe,disabled:be,text:ye}=((e,i,t,n,o,d,c)=>{const l=void 0!==(Array.isArray(t)?t:[t]).find(g=>(0,r.c)(i,g)),h=(0,r.c)(i,n);return{disabled:B(i,o,d,c),isActive:l,isToday:h,ariaSelected:l?"true":null,ariaLabel:(0,r.g)(e,h,i),text:null!=i.day?(0,r.a)(e,i):null}})(this.locale,M,this.activeParts,this.todayParts,this.minParts,this.maxParts,this.parsedDayValues),q=(0,r.s)(M);let E=c||be;if(!E&&void 0!==k)try{E=!k(q)}catch(V){(0,C.a)("Exception thrown from provided `isDateEnabled` function. Please check your function and try again.",x,V)}const xe=E&&s,ke=E||s;let T,X;return void 0!==u&&!j&&null!==m&&(T=((e,i,t)=>{if(Array.isArray(e)){const n=i.split("T")[0],o=e.find(d=>d.date===n);if(o)return{textColor:o.textColor,backgroundColor:o.backgroundColor}}else try{return e(i)}catch(n){(0,C.a)("Exception thrown from provided `highlightedDates` callback. Please check your function and try again.",t,n)}})(u,q,x)),D||(X=`calendar-day${j?" active":""}${G?" today":""}${E?" disabled":""}`),(0,a.h)("div",{class:"calendar-day-wrapper"},(0,a.h)("button",{ref:V=>{V&&(V.style.setProperty("color",`${T?T.textColor:""}`,"important"),V.style.setProperty("background-color",`${T?T.backgroundColor:""}`,"important"))},tabindex:"-1","data-day":m,"data-month":e,"data-year":i,"data-index":f,"data-day-of-week":b,disabled:ke,class:{"calendar-day-padding":D,"calendar-day":!0,"calendar-day-active":j,"calendar-day-constrained":xe,"calendar-day-today":G},part:X,"aria-hidden":D?"true":null,"aria-selected":fe,"aria-label":ge,onClick:()=>{D||(this.setWorkingParts(Object.assign(Object.assign({},this.workingParts),{month:e,day:m,year:i})),v?this.setActiveParts({month:e,day:m,year:i},j):this.setActiveParts(Object.assign(Object.assign({},p),{month:e,day:m,year:i})))}},ye))})))}renderCalendarBody(){return(0,a.h)("div",{class:"calendar-body ion-focusable",ref:e=>this.calendarBodyRef=e,tabindex:"0"},(0,r.I)(this.workingParts,this.forceRenderDate).map(({month:e,year:i})=>this.renderMonth(e,i)))}renderCalendar(e){return(0,a.h)("div",{class:"datetime-calendar",key:"datetime-calendar"},this.renderCalendarHeader(e),this.renderCalendarBody())}renderTimeLabel(){if(null!==this.el.querySelector('[slot="time-label"]')||this.showDefaultTimeLabel)return(0,a.h)("slot",{name:"time-label"},"Time")}renderTimeOverlay(){var e=this;const{disabled:i,hourCycle:t,isTimePopoverOpen:n,locale:o}=this,d=(0,r.J)(o,t),c=this.getActivePartsWithFallback();return[(0,a.h)("div",{class:"time-header"},this.renderTimeLabel()),(0,a.h)("button",{class:{"time-body":!0,"time-body-active":n},part:"time-button"+(n?" active":""),"aria-expanded":"false","aria-haspopup":"true",disabled:i,onClick:(s=(0,P.Z)(function*(l){const{popoverRef:h}=e;h&&(e.isTimePopoverOpen=!0,h.present(new CustomEvent("ionShadowTarget",{detail:{ionShadowTarget:l.target}})),yield h.onWillDismiss(),e.isTimePopoverOpen=!1)}),function(h){return s.apply(this,arguments)})},(0,r.K)(o,c,d)),(0,a.h)("ion-popover",{alignment:"center",translucent:!0,overlayIndex:1,arrow:!1,onWillPresent:s=>{s.target.querySelectorAll("ion-picker-column-internal").forEach(h=>h.scrollActiveItemIntoView())},style:{"--offset-y":"-10px","--min-width":"fit-content"},keyboardEvents:!0,ref:s=>this.popoverRef=s},this.renderWheelPicker("time"))];var s}getHeaderSelectedDateText(){const{activeParts:e,multiple:i,titleSelectedDatesFormatter:t}=this,n=Array.isArray(e);let o;if(i&&n&&1!==e.length){if(o=`${e.length} days`,void 0!==t)try{o=t((0,r.s)(e))}catch(d){(0,C.a)("Exception in provided `titleSelectedDatesFormatter`: ",d)}}else o=(0,r.L)(this.locale,this.getActivePartsWithFallback());return o}renderHeader(e=!0){if(null!==this.el.querySelector('[slot="title"]')||this.showDefaultTitle)return(0,a.h)("div",{class:"datetime-header"},(0,a.h)("div",{class:"datetime-title"},(0,a.h)("slot",{name:"title"},"Select Date")),e&&(0,a.h)("div",{class:"datetime-selected-date"},this.getHeaderSelectedDateText()))}renderTime(){const{presentation:e}=this;return(0,a.h)("div",{class:"datetime-time"},"time"===e?this.renderWheelPicker():this.renderTimeOverlay())}renderCalendarViewMonthYearPicker(){return(0,a.h)("div",{class:"datetime-year"},this.renderWheelView("month-year"))}renderDatetime(e){const{presentation:i,preferWheel:t}=this;if(t&&("date"===i||"date-time"===i||"time-date"===i))return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];switch(i){case"date-time":return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderTime(),this.renderFooter()];case"time-date":return[this.renderHeader(),this.renderTime(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()];case"time":return[this.renderHeader(!1),this.renderTime(),this.renderFooter()];case"month":case"month-year":case"year":return[this.renderHeader(!1),this.renderWheelView(),this.renderFooter()];default:return[this.renderHeader(),this.renderCalendar(e),this.renderCalendarViewMonthYearPicker(),this.renderFooter()]}}render(){const{name:e,value:i,disabled:t,el:n,color:o,readonly:d,showMonthAndYear:c,preferWheel:s,presentation:l,size:h,isGridStyle:p}=this,g=(0,I.b)(this),f="year"===l||"month"===l||"month-year"===l,m=c||f,b=c&&!f,u=("date"===l||"date-time"===l||"time-date"===l)&&s;return(0,O.d)(!0,n,e,(0,r.M)(i),t),(0,a.h)(a.H,{"aria-disabled":t?"true":null,onFocus:this.onFocus,onBlur:this.onBlur,class:Object.assign({},(0,S.c)(o,{[g]:!0,"datetime-readonly":d,"datetime-disabled":t,"show-month-and-year":m,"month-year-picker-open":b,[`datetime-presentation-${l}`]:!0,[`datetime-size-${h}`]:!0,"datetime-prefer-wheel":u,"datetime-grid":p}))},this.renderDatetime(g))}get el(){return(0,a.f)(this)}static get watchers(){return{disabled:["disabledChanged"],min:["minChanged"],max:["maxChanged"],yearValues:["yearValuesChanged"],monthValues:["monthValuesChanged"],dayValues:["dayValuesChanged"],hourValues:["hourValuesChanged"],minuteValues:["minuteValuesChanged"],value:["valueChanged"]}}};let se=0;R.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-light, #ffffff);--background-rgb:var(--ion-color-light-rgb);--title-color:var(--ion-color-step-600, #666666)}:host(.datetime-presentation-date-time:not(.datetime-prefer-wheel)),:host(.datetime-presentation-time-date:not(.datetime-prefer-wheel)),:host(.datetime-presentation-date:not(.datetime-prefer-wheel)){min-height:350px}:host .datetime-header{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:16px;padding-bottom:16px;border-bottom:0.55px solid var(--ion-color-step-200, #cccccc);font-size:min(0.875rem, 22.4px)}:host .datetime-header .datetime-title{color:var(--title-color)}:host .datetime-header .datetime-selected-date{margin-top:10px}:host .calendar-action-buttons ion-item{--padding-start:16px;--background-hover:transparent;--background-activated:transparent;font-size:min(1rem, 25.6px);font-weight:600}:host .calendar-action-buttons ion-item ion-icon,:host .calendar-action-buttons ion-buttons ion-button{color:var(--ion-color-base)}:host .calendar-action-buttons ion-buttons{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:0}:host .calendar-action-buttons ion-buttons ion-button{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}:host .calendar-days-of-week{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;color:var(--ion-color-step-300, #b3b3b3);font-size:min(0.75rem, 19.2px);font-weight:600;line-height:24px;text-transform:uppercase}@supports (border-radius: mod(1px, 1px)){.calendar-days-of-week .day-of-week{width:clamp(20px, calc(mod(min(1rem, 24px), 24px) * 10), 100%);height:24px;overflow:hidden}.calendar-day{border-radius:max(8px, mod(min(1rem, 24px), 24px) * 10)}}@supports ((border-radius: mod(1px, 1px)) and (background: -webkit-named-image(apple-pay-logo-black)) and (not (contain-intrinsic-size: none))) or (not (border-radius: mod(1px, 1px))){.calendar-days-of-week .day-of-week{width:auto;height:auto;overflow:initial}.calendar-day{border-radius:32px}}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;-ms-flex-align:center;align-items:center;height:calc(100% - 16px)}:host .calendar-day-wrapper{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;height:0;min-height:1rem}:host .calendar-day{width:40px;min-width:40px;height:40px;font-size:min(1.25rem, 32px)}.calendar-day.calendar-day-active{background:rgba(var(--ion-color-base-rgb), 0.2)}:host .calendar-day.calendar-day-today{color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-base);font-weight:600}:host .calendar-day.calendar-day-today.calendar-day-active{color:var(--ion-color-contrast)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:16px;font-size:min(1rem, 25.6px)}:host .datetime-time .time-header{font-weight:600}:host .datetime-buttons{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;border-top:0.55px solid var(--ion-color-step-200, #cccccc)}:host .datetime-buttons ::slotted(ion-buttons),:host .datetime-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between}:host .datetime-action-buttons{width:100%}",md:":host{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;background:var(--background);overflow:hidden}ion-picker-column-internal{min-width:26px}:host(.datetime-size-fixed){width:auto;height:auto}:host(.datetime-size-fixed:not(.datetime-prefer-wheel)){max-width:350px}:host(.datetime-size-fixed.datetime-prefer-wheel){min-width:350px;max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}:host(.datetime-size-cover){width:100%}:host .calendar-body,:host .datetime-year{opacity:0}:host(:not(.datetime-ready)) .datetime-year{position:absolute;pointer-events:none}:host(.datetime-ready) .calendar-body{opacity:1}:host(.datetime-ready) .datetime-year{display:none;opacity:1}:host .wheel-order-year-first .day-column{-ms-flex-order:3;order:3;text-align:end}:host .wheel-order-year-first .month-column{-ms-flex-order:2;order:2;text-align:end}:host .wheel-order-year-first .year-column{-ms-flex-order:1;order:1;text-align:start}:host .datetime-calendar,:host .datetime-year{display:-ms-flexbox;display:flex;-ms-flex:1 1 auto;flex:1 1 auto;-ms-flex-flow:column;flex-flow:column}:host(.show-month-and-year) .datetime-year{display:-ms-flexbox;display:flex}@supports (background: -webkit-named-image(apple-pay-logo-black)) and (not (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{position:absolute;visibility:hidden;pointer-events:none}@supports (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{inset-inline-start:-99999px}}@supports not (inset-inline-start: 0){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{left:-99999px}:host-context([dir=rtl]):host(.show-month-and-year) .calendar-next-prev,:host-context([dir=rtl]).show-month-and-year .calendar-next-prev,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-days-of-week,:host-context([dir=rtl]).show-month-and-year .calendar-days-of-week,:host-context([dir=rtl]):host(.show-month-and-year) .calendar-body,:host-context([dir=rtl]).show-month-and-year .calendar-body,:host-context([dir=rtl]):host(.show-month-and-year) .datetime-time,:host-context([dir=rtl]).show-month-and-year .datetime-time{left:unset;right:unset;right:-99999px}@supports selector(:dir(rtl)){:host(.show-month-and-year:dir(rtl)) .calendar-next-prev,:host(.show-month-and-year:dir(rtl)) .calendar-days-of-week,:host(.show-month-and-year:dir(rtl)) .calendar-body,:host(.show-month-and-year:dir(rtl)) .datetime-time{left:unset;right:unset;right:-99999px}}}}@supports (not (background: -webkit-named-image(apple-pay-logo-black))) or ((background: -webkit-named-image(apple-pay-logo-black)) and (aspect-ratio: 1/1)){:host(.show-month-and-year) .calendar-next-prev,:host(.show-month-and-year) .calendar-days-of-week,:host(.show-month-and-year) .calendar-body,:host(.show-month-and-year) .datetime-time{display:none}}:host(.month-year-picker-open) .datetime-footer{display:none}:host(.datetime-disabled){pointer-events:none}:host(.datetime-disabled) .calendar-days-of-week,:host(.datetime-disabled) .datetime-time{opacity:0.4}:host(.datetime-readonly){pointer-events:none;}:host(.datetime-readonly) .calendar-action-buttons,:host(.datetime-readonly) .calendar-body,:host(.datetime-readonly) .datetime-year{pointer-events:initial}:host(.datetime-readonly) .calendar-day[disabled]:not(.calendar-day-constrained),:host(.datetime-readonly) .datetime-action-buttons ion-button[disabled]{opacity:1}:host .datetime-header .datetime-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host .datetime-action-buttons.has-clear-button{width:100%}:host .datetime-action-buttons ion-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.datetime-action-buttons .datetime-action-buttons-container{display:-ms-flexbox;display:flex}:host .calendar-action-buttons{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--background:translucent}:host .calendar-action-buttons ion-item ion-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .calendar-action-buttons ion-item ion-icon{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:0;padding-inline-end:0;padding-top:0;padding-bottom:0}:host .calendar-days-of-week{display:grid;grid-template-columns:repeat(7, 1fr);text-align:center}.calendar-days-of-week .day-of-week{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}:host .calendar-body{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-webkit-scroll-snap-type:x mandatory;-ms-scroll-snap-type:x mandatory;scroll-snap-type:x mandatory;overflow-x:scroll;overflow-y:hidden;scrollbar-width:none;outline:none}:host .calendar-body .calendar-month{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;scroll-snap-align:start;scroll-snap-stop:always;-ms-flex-negative:0;flex-shrink:0;width:100%}:host .calendar-body .calendar-month-disabled{scroll-snap-align:none}:host .calendar-body::-webkit-scrollbar{display:none}:host .calendar-body .calendar-month-grid{display:grid;grid-template-columns:repeat(7, 1fr)}:host .calendar-day-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:0;min-height:0;overflow:visible}.calendar-day{border-radius:50%;-webkit-padding-start:0px;padding-inline-start:0px;-webkit-padding-end:0px;padding-inline-end:0px;padding-top:0px;padding-bottom:0px;-webkit-margin-start:0px;margin-inline-start:0px;-webkit-margin-end:0px;margin-inline-end:0px;margin-top:0px;margin-bottom:0px;display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;border:none;outline:none;background:none;color:currentColor;font-family:var(--ion-font-family, inherit);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:0}:host .calendar-day[disabled]{pointer-events:none;opacity:0.4}.calendar-day:focus{background:rgba(var(--ion-color-base-rgb), 0.2);-webkit-box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2);box-shadow:0px 0px 0px 4px rgba(var(--ion-color-base-rgb), 0.2)}:host .datetime-time{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}:host(.datetime-presentation-time) .datetime-time{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0}:host ion-popover{--height:200px}:host .time-header{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .time-body{border-radius:8px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px;display:-ms-flexbox;display:flex;border:none;background:var(--ion-color-step-300, #edeef0);color:var(--ion-text-color, #000);font-family:inherit;font-size:inherit;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}:host .time-body-active{color:var(--ion-color-base)}:host(.in-item){position:static}:host(.show-month-and-year) .calendar-action-buttons ion-item{--color:var(--ion-color-base)}:host{--background:var(--ion-color-step-100, #ffffff);--title-color:var(--ion-color-contrast)}:host .datetime-header{-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:20px;padding-bottom:20px;background:var(--ion-color-base);color:var(--title-color)}:host .datetime-header .datetime-title{font-size:0.75rem;text-transform:uppercase}:host .datetime-header .datetime-selected-date{margin-top:30px;font-size:2.125rem}:host .datetime-calendar .calendar-action-buttons ion-item{--padding-start:20px}:host .calendar-action-buttons ion-item,:host .calendar-action-buttons ion-button{--color:var(--ion-color-step-650, #595959)}:host .calendar-days-of-week{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:0px;padding-bottom:0px;color:var(--ion-color-step-500, gray);font-size:0.875rem;line-height:36px}:host .calendar-body .calendar-month .calendar-month-grid{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:4px;padding-bottom:4px;grid-template-rows:repeat(6, 1fr)}:host .calendar-day{width:42px;min-width:42px;height:42px;font-size:0.875rem}:host .calendar-day.calendar-day-today{border:1px solid var(--ion-color-base);color:var(--ion-color-base)}:host .calendar-day.calendar-day-active{color:var(--ion-color-contrast)}.calendar-day.calendar-day-active{border:1px solid var(--ion-color-base);background:var(--ion-color-base)}:host .datetime-time{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host .time-header{color:var(--ion-color-step-650, #595959)}:host(.datetime-presentation-month) .datetime-year,:host(.datetime-presentation-year) .datetime-year,:host(.datetime-presentation-month-year) .datetime-year{margin-top:20px;margin-bottom:20px}:host .datetime-buttons{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:10px;padding-bottom:10px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:end;justify-content:flex-end}"};const Y=e=>{const i=(0,_.c)(),t=(0,_.c)(),n=(0,_.c)();return t.addElement(e.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),n.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),i.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([t,n])},H=e=>{const i=(0,_.c)(),t=(0,_.c)(),n=(0,_.c)();return t.addElement(e.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",.01),n.addElement(e.querySelector(".picker-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),i.addElement(e).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([t,n])},$=class{constructor(e){(0,a.r)(this,e),this.didPresent=(0,a.d)(this,"ionPickerDidPresent",7),this.willPresent=(0,a.d)(this,"ionPickerWillPresent",7),this.willDismiss=(0,a.d)(this,"ionPickerWillDismiss",7),this.didDismiss=(0,a.d)(this,"ionPickerDidDismiss",7),this.didPresentShorthand=(0,a.d)(this,"didPresent",7),this.willPresentShorthand=(0,a.d)(this,"willPresent",7),this.willDismissShorthand=(0,a.d)(this,"willDismiss",7),this.didDismissShorthand=(0,a.d)(this,"didDismiss",7),this.delegateController=(0,w.d)(this),this.lockController=(0,Q.c)(),this.triggerController=(0,w.e)(),this.onBackdropTap=()=>{this.dismiss(void 0,w.B)},this.dispatchCancelHandler=i=>{if((0,w.i)(i.detail.role)){const n=this.buttons.find(o=>"cancel"===o.role);this.callButtonHandler(n)}},this.presented=!1,this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.columns=[],this.cssClass=void 0,this.duration=0,this.showBackdrop=!0,this.backdropDismiss=!0,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(e,i){!0===e&&!1===i?this.present():!1===e&&!0===i&&this.dismiss()}triggerChanged(){const{trigger:e,el:i,triggerController:t}=this;e&&t.addClickListener(i,e)}connectedCallback(){(0,w.j)(this.el),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){(0,w.k)(this.el)}componentDidLoad(){!0===this.isOpen&&(0,O.r)(()=>this.present())}present(){var e=this;return(0,P.Z)(function*(){const i=yield e.lockController.lock();yield e.delegateController.attachViewToDom(),yield(0,w.f)(e,"pickerEnter",Y,Y,void 0),e.duration>0&&(e.durationTimeout=setTimeout(()=>e.dismiss(),e.duration)),i()})()}dismiss(e,i){var t=this;return(0,P.Z)(function*(){const n=yield t.lockController.lock();t.durationTimeout&&clearTimeout(t.durationTimeout);const o=yield(0,w.g)(t,e,i,"pickerLeave",H,H);return o&&t.delegateController.removeViewFromDom(),n(),o})()}onDidDismiss(){return(0,w.h)(this.el,"ionPickerDidDismiss")}onWillDismiss(){return(0,w.h)(this.el,"ionPickerWillDismiss")}getColumn(e){return Promise.resolve(this.columns.find(i=>i.name===e))}buttonClick(e){var i=this;return(0,P.Z)(function*(){const t=e.role;return(0,w.i)(t)?i.dismiss(void 0,t):(yield i.callButtonHandler(e))?i.dismiss(i.getSelected(),e.role):Promise.resolve()})()}callButtonHandler(e){var i=this;return(0,P.Z)(function*(){return!(e&&!1===(yield(0,w.s)(e.handler,i.getSelected())))})()}getSelected(){const e={};return this.columns.forEach((i,t)=>{const n=void 0!==i.selectedIndex?i.options[i.selectedIndex]:void 0;e[i.name]={text:n?n.text:void 0,value:n?n.value:void 0,columnIndex:t}}),e}render(){const{htmlAttributes:e}=this,i=(0,I.b)(this);return(0,a.h)(a.H,Object.assign({"aria-modal":"true",tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[i]:!0,[`picker-${i}`]:!0,"overlay-hidden":!0},(0,S.g)(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonPickerWillDismiss:this.dispatchCancelHandler}),(0,a.h)("ion-backdrop",{visible:this.showBackdrop,tappable:this.backdropDismiss}),(0,a.h)("div",{tabindex:"0"}),(0,a.h)("div",{class:"picker-wrapper ion-overlay-wrapper",role:"dialog"},(0,a.h)("div",{class:"picker-toolbar"},this.buttons.map(t=>(0,a.h)("div",{class:ce(t)},(0,a.h)("button",{type:"button",onClick:()=>this.buttonClick(t),class:he(t)},t.text)))),(0,a.h)("div",{class:"picker-columns"},(0,a.h)("div",{class:"picker-above-highlight"}),this.presented&&this.columns.map(t=>(0,a.h)("ion-picker-column",{col:t})),(0,a.h)("div",{class:"picker-below-highlight"}))),(0,a.h)("div",{tabindex:"0"}))}get el(){return(0,a.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},ce=e=>({[`picker-toolbar-${e.role}`]:void 0!==e.role,"picker-toolbar-button":!0}),he=e=>Object.assign({"picker-button":!0,"ion-activatable":!0},(0,S.g)(e.cssClass));$.style={ios:".sc-ion-picker-ios-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-ios-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-ios-h{left:0}[dir=rtl].sc-ion-picker-ios-h,[dir=rtl] .sc-ion-picker-ios-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-ios-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-ios-h{display:none}.picker-wrapper.sc-ion-picker-ios{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-ios{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-ios{border:0;font-family:inherit}.picker-button.sc-ion-picker-ios:active,.picker-button.sc-ion-picker-ios:focus{outline:none}.picker-columns.sc-ion-picker-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-ios,.picker-below-highlight.sc-ion-picker-ios{display:none;pointer-events:none}.sc-ion-picker-ios-h{--background:var(--ion-background-color, #fff);--border-width:1px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-ios{display:-ms-flexbox;display:flex;height:44px;border-bottom:0.55px solid var(--border-color)}.picker-toolbar-button.sc-ion-picker-ios{-ms-flex:1;flex:1;text-align:end}.picker-toolbar-button.sc-ion-picker-ios:last-child .picker-button.sc-ion-picker-ios{font-weight:600}.picker-toolbar-button.sc-ion-picker-ios:first-child{font-weight:normal;text-align:start}.picker-button.sc-ion-picker-ios,.picker-button.ion-activated.sc-ion-picker-ios{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1em;padding-inline-start:1em;-webkit-padding-end:1em;padding-inline-end:1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:16px}.picker-columns.sc-ion-picker-ios{height:215px;-webkit-perspective:1000px;perspective:1000px}.picker-above-highlight.sc-ion-picker-ios{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:81px;border-bottom:1px solid var(--border-color);background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to bottom, var(--background, var(--ion-background-color, #fff)) 20%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-above-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-ios{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);display:block;position:absolute;width:100%;height:119px;border-top:1px solid var(--border-color);background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--background, var(--ion-background-color, #fff))), to(rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8)));background:linear-gradient(to top, var(--background, var(--ion-background-color, #fff)) 30%, rgba(var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255)), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-ios{left:0}[dir=rtl].sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios,[dir=rtl] .sc-ion-picker-ios-h .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-ios .picker-below-highlight.sc-ion-picker-ios{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-ios:dir(rtl){left:unset;right:unset;right:0}}}",md:".sc-ion-picker-md-h{--border-radius:0;--border-style:solid;--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--max-height:auto;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;top:0;display:block;position:absolute;width:100%;height:100%;outline:none;font-family:var(--ion-font-family, inherit);contain:strict;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}@supports (inset-inline-start: 0){.sc-ion-picker-md-h{inset-inline-start:0}}@supports not (inset-inline-start: 0){.sc-ion-picker-md-h{left:0}[dir=rtl].sc-ion-picker-md-h,[dir=rtl] .sc-ion-picker-md-h{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.sc-ion-picker-md-h:dir(rtl){left:unset;right:unset;right:0}}}.overlay-hidden.sc-ion-picker-md-h{display:none}.picker-wrapper.sc-ion-picker-md{border-radius:var(--border-radius);left:0;right:0;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:auto;margin-bottom:auto;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;overflow:hidden;z-index:10}.picker-toolbar.sc-ion-picker-md{width:100%;background:transparent;contain:strict;z-index:1}.picker-button.sc-ion-picker-md{border:0;font-family:inherit}.picker-button.sc-ion-picker-md:active,.picker-button.sc-ion-picker-md:focus{outline:none}.picker-columns.sc-ion-picker-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-pack:center;justify-content:center;margin-bottom:var(--ion-safe-area-bottom, 0);contain:strict;overflow:hidden}.picker-above-highlight.sc-ion-picker-md,.picker-below-highlight.sc-ion-picker-md{display:none;pointer-events:none}.sc-ion-picker-md-h{--background:var(--ion-background-color, #fff);--border-width:0.55px 0 0;--border-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--height:260px;--backdrop-opacity:var(--ion-backdrop-opacity, 0.26);color:var(--ion-item-color, var(--ion-text-color, #000))}.picker-toolbar.sc-ion-picker-md{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end;height:44px}.picker-button.sc-ion-picker-md,.picker-button.ion-activated.sc-ion-picker-md{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:1.1em;padding-inline-start:1.1em;-webkit-padding-end:1.1em;padding-inline-end:1.1em;padding-top:0;padding-bottom:0;height:44px;background:transparent;color:var(--ion-color-primary, #3880ff);font-size:14px;font-weight:500;text-transform:uppercase;-webkit-box-shadow:none;box-shadow:none}.picker-columns.sc-ion-picker-md{height:216px;-webkit-perspective:1800px;perspective:1800px}.picker-above-highlight.sc-ion-picker-md{top:0;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:81px;border-bottom:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to bottom, var(--ion-background-color, #fff) 20%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:10}@supports (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-above-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-above-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-above-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}.picker-below-highlight.sc-ion-picker-md{top:115px;-webkit-transform:translate3d(0, 0, 90px);transform:translate3d(0, 0, 90px);position:absolute;width:100%;height:119px;border-top:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, var(--ion-background-color, #fff)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background:linear-gradient(to top, var(--ion-background-color, #fff) 30%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%);z-index:11}@supports (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-below-highlight.sc-ion-picker-md{left:0}[dir=rtl].sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md,[dir=rtl] .sc-ion-picker-md-h .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}[dir=rtl].sc-ion-picker-md .picker-below-highlight.sc-ion-picker-md{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-below-highlight.sc-ion-picker-md:dir(rtl){left:unset;right:unset;right:0}}}"};const K=class{constructor(e){(0,a.r)(this,e),this.ionPickerColChange=(0,a.d)(this,"ionPickerColChange",7),this.optHeight=0,this.rotateFactor=0,this.scaleFactor=1,this.velocity=0,this.y=0,this.noAnimate=!0,this.colDidChange=!1,this.col=void 0}colChanged(){this.colDidChange=!0}connectedCallback(){var e=this;return(0,P.Z)(function*(){let i=0,t=.81;"ios"===(0,I.b)(e)&&(i=-.46,t=1),e.rotateFactor=i,e.scaleFactor=t,e.gesture=(yield Promise.resolve().then(y.bind(y,9203))).createGesture({el:e.el,gestureName:"picker-swipe",gesturePriority:100,threshold:0,passive:!1,onStart:o=>e.onStart(o),onMove:o=>e.onMove(o),onEnd:o=>e.onEnd(o)}),e.gesture.enable(),e.tmrId=setTimeout(()=>{e.noAnimate=!1,e.refresh(!0)},250)})()}componentDidLoad(){this.onDomChange()}componentDidUpdate(){this.colDidChange&&(this.onDomChange(!0,!1),this.colDidChange=!1)}disconnectedCallback(){void 0!==this.rafId&&cancelAnimationFrame(this.rafId),this.tmrId&&clearTimeout(this.tmrId),this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}emitColChange(){this.ionPickerColChange.emit(this.col)}setSelected(e,i){const t=e>-1?-e*this.optHeight:0;this.velocity=0,void 0!==this.rafId&&cancelAnimationFrame(this.rafId),this.update(t,i,!0),this.emitColChange()}update(e,i,t){if(!this.optsEl)return;let n=0,o=0;const{col:d,rotateFactor:c}=this,s=d.selectedIndex,l=d.selectedIndex=this.indexForY(-e),h=0===i?"":i+"ms",p=`scale(${this.scaleFactor})`,g=this.optsEl.children;for(let f=0;f0?Math.max(this.velocity,1):Math.min(this.velocity,-1);let e=this.y+this.velocity;e>this.minY?(e=this.minY,this.velocity=0):e1?this.rafId=requestAnimationFrame(()=>this.decelerate()):(this.velocity=0,this.emitColChange(),(0,z.h)())}else if(this.y%this.optHeight!=0){const e=Math.abs(this.y%this.optHeight);this.velocity=e>this.optHeight/2?1:-1,this.decelerate()}}indexForY(e){return Math.min(Math.max(Math.abs(Math.round(e/this.optHeight)),0),this.col.options.length-1)}onStart(e){e.event.cancelable&&e.event.preventDefault(),e.event.stopPropagation(),(0,z.a)(),void 0!==this.rafId&&cancelAnimationFrame(this.rafId);const i=this.col.options;let t=i.length-1,n=0;for(let o=0;othis.minY?(i=Math.pow(i,.8),this.bounceFrom=i):i0)return this.update(this.minY,100,!0),void this.emitColChange();if(this.bounceFrom<0)return this.update(this.maxY,100,!0),void this.emitColChange();if(this.velocity=(0,O.l)(-Z,23*e.velocityY,Z),0===this.velocity&&0===e.deltaY){const i=e.event.target.closest(".picker-opt");i?.hasAttribute("opt-index")&&this.setSelected(parseInt(i.getAttribute("opt-index"),10),N)}else{if(this.y+=e.deltaY,Math.abs(e.velocityY)<.05){const i=e.deltaY>0,t=Math.abs(this.y)%this.optHeight/this.optHeight;i&&t>.5?this.velocity=-1*Math.abs(this.velocity):!i&&t<=.5&&(this.velocity=Math.abs(this.velocity))}this.decelerate()}}refresh(e,i){var t;let n=this.col.options.length-1,o=0;const d=this.col.options;for(let s=0;sthis.optsEl=t},e.options.map((t,n)=>(0,a.h)("button",{"aria-label":t.ariaLabel,class:{"picker-opt":!0,"picker-opt-disabled":!!t.disabled},"opt-index":n},t.text))),e.suffix&&(0,a.h)("div",{class:"picker-suffix",style:{width:e.suffixWidth}},e.suffix))}get el(){return(0,a.f)(this)}static get watchers(){return{col:["colChanged"]}}},U="picker-opt-selected",ue=.97,Z=90,N=150;K.style={ios:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:20px;line-height:42px;pointer-events:none}.picker-opt{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-transform-origin:center center;transform-origin:center center;height:46px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:20px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}:host-context([dir=rtl]) .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}[dir=rtl] .picker-opt{-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){-webkit-transform-origin:calc(100% - center) center;transform-origin:calc(100% - center) center}}",md:".picker-col{display:-ms-flexbox;display:flex;position:relative;-ms-flex:1;flex:1;-ms-flex-pack:center;justify-content:center;height:100%;-webkit-box-sizing:content-box;box-sizing:content-box;contain:content}.picker-opts{position:relative;-ms-flex:1;flex:1;max-width:100%}.picker-opt{top:0;display:block;position:absolute;width:100%;border:0;text-align:center;text-overflow:ellipsis;white-space:nowrap;contain:strict;overflow:hidden;will-change:transform}@supports (inset-inline-start: 0){.picker-opt{inset-inline-start:0}}@supports not (inset-inline-start: 0){.picker-opt{left:0}:host-context([dir=rtl]) .picker-opt{left:unset;right:unset;right:0}[dir=rtl] .picker-opt{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.picker-opt:dir(rtl){left:unset;right:unset;right:0}}}.picker-opt.picker-opt-disabled{pointer-events:none}.picker-opt-disabled{opacity:0}.picker-opts-left{-ms-flex-pack:start;justify-content:flex-start}.picker-opts-right{-ms-flex-pack:end;justify-content:flex-end}.picker-opt:active,.picker-opt:focus{outline:none}.picker-prefix{position:relative;-ms-flex:1;flex:1;text-align:end;white-space:nowrap}.picker-suffix{position:relative;-ms-flex:1;flex:1;text-align:start;white-space:nowrap}.picker-col{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0;-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.picker-prefix,.picker-suffix,.picker-opts{top:77px;-webkit-transform-style:preserve-3d;transform-style:preserve-3d;color:inherit;font-size:22px;line-height:42px;pointer-events:none}.picker-opt{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;height:43px;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;background:transparent;color:inherit;font-size:22px;line-height:42px;-webkit-backface-visibility:hidden;backface-visibility:hidden;pointer-events:auto}.picker-prefix,.picker-suffix,.picker-opt.picker-opt-selected{color:var(--ion-color-primary, #3880ff)}"}}}]); \ No newline at end of file diff --git a/7219.815cd4f854766a3e.js b/7219.815cd4f854766a3e.js deleted file mode 100644 index 18646064..00000000 --- a/7219.815cd4f854766a3e.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7219],{7219:(W,w,l)=>{l.r(w),l.d(w,{ion_refresher:()=>P,ion_refresher_content:()=>U});var d=l(5861),n=l(5349),T=l(5149),y=l(2874),c=l(839),E=l(967),h=l(3882),m=l(6410),x=l(3365),k=l(5307),_=l(3781);l(4874),l(6225);const S=e=>{const t=e.querySelector("ion-spinner"),r=t.shadowRoot.querySelector("circle"),s=e.querySelector(".spinner-arrow-container"),a=e.querySelector(".arrow-container"),f=a?a.querySelector("ion-icon"):null,o=(0,m.c)().duration(1e3).easing("ease-out"),i=(0,m.c)().addElement(s).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),p=(0,m.c)().addElement(r).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),g=(0,m.c)().addElement(t).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(a&&f){const v=(0,m.c)().addElement(a).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),u=(0,m.c)().addElement(f).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([v,u])}return o.addAnimation([i,p,g])},b=(e,t,r=200)=>{if(!e)return Promise.resolve();const s=(0,c.t)(e,r);return(0,n.w)(()=>{e.style.setProperty("transition",`${r}ms all ease-out`),void 0===t?e.style.removeProperty("transform"):e.style.setProperty("transform",`translate3d(0px, ${t}, 0px)`)}),s},R=function(){var e=(0,d.Z)(function*(t,r){const s=t.querySelector("ion-refresher-content");if(!s)return Promise.resolve(!1);yield new Promise(o=>(0,c.c)(s,o));const a=t.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),f=t.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return null!==a&&null!==f&&("ios"===r&&(0,h.a)("mobile")&&void 0!==t.style.webkitOverflowScrolling||"md"===r)});return function(r,s){return e.apply(this,arguments)}}(),P=class{constructor(e){(0,n.r)(this,e),this.ionRefresh=(0,n.d)(this,"ionRefresh",7),this.ionPull=(0,n.d)(this,"ionPull",7),this.ionStart=(0,n.d)(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}checkNativeRefresher(){var e=this;return(0,d.Z)(function*(){const t=yield R(e.el,(0,h.b)(e));if(t&&!e.nativeRefresher){const r=e.el.closest("ion-content");e.setupNativeRefresher(r)}else t||e.destroyNativeRefresher()})()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}resetNativeRefresher(e,t){var r=this;return(0,d.Z)(function*(){r.state=t,"ios"===(0,h.b)(r)?yield b(e,void 0,300):yield(0,c.t)(r.el.querySelector(".refresher-refreshing-icon"),200),r.didRefresh=!1,r.needsCompletion=!1,r.pointerDown=!1,r.animations.forEach(s=>s.destroy()),r.animations=[],r.progress=0,r.state=1})()}setupiOSNativeRefresher(e,t){var r=this;return(0,d.Z)(function*(){r.elementToTransform=r.scrollEl;const s=e.shadowRoot.querySelectorAll("svg");let a=.16*r.scrollEl.clientHeight;const f=s.length;(0,n.w)(()=>s.forEach(o=>o.style.setProperty("animation","none"))),r.scrollListenerCallback=()=>{!r.pointerDown&&1===r.state||(0,n.e)(()=>{const o=r.scrollEl.scrollTop,i=r.el.clientHeight;if(o>0){if(8===r.state){const u=(0,c.l)(0,o/(.5*i),1);return void(0,n.w)(()=>((e,t)=>{e.style.setProperty("opacity",t.toString())})(t,1-u))}return}r.pointerDown&&(r.didStart||(r.didStart=!0,r.ionStart.emit()),r.pointerDown&&r.ionPull.emit());const p=r.didStart?30:0,g=r.progress=(0,c.l)(0,(Math.abs(o)-p)/a,1);8===r.state||1===g?(r.pointerDown&&((e,t)=>{(0,n.w)(()=>{e.style.setProperty("--refreshing-rotation-duration",t>=1?"0.5s":"2s"),e.style.setProperty("opacity","1")})})(t,r.lastVelocityY),r.didRefresh||(r.beginRefresh(),r.didRefresh=!0,(0,E.d)({style:E.I.Light}),r.pointerDown||b(r.elementToTransform,`${i}px`))):(r.state=2,((e,t,r)=>{(0,n.w)(()=>{e.forEach((a,f)=>{const o=f*(1/t),g=(0,c.l)(0,(r-o)/(1-o),1);a.style.setProperty("opacity",g.toString())})})})(s,f,g))})},r.scrollEl.addEventListener("scroll",r.scrollListenerCallback),r.gesture=(yield Promise.resolve().then(l.bind(l,9203))).createGesture({el:r.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{r.pointerDown=!0,r.didRefresh||b(r.elementToTransform,"0px"),0===a&&(a=.16*r.scrollEl.clientHeight)},onMove:o=>{r.lastVelocityY=o.velocityY},onEnd:()=>{r.pointerDown=!1,r.didStart=!1,r.needsCompletion?(r.resetNativeRefresher(r.elementToTransform,32),r.needsCompletion=!1):r.didRefresh&&(0,n.e)(()=>b(r.elementToTransform,`${r.el.clientHeight}px`))}}),r.disabledChanged()})()}setupMDNativeRefresher(e,t,r){var s=this;return(0,d.Z)(function*(){const a=(0,c.g)(t).querySelector("circle"),f=s.el.querySelector("ion-refresher-content .refresher-pulling-icon"),o=(0,c.g)(r).querySelector("circle");null!==a&&null!==o&&(0,n.w)(()=>{a.style.setProperty("animation","none"),r.style.setProperty("animation-delay","-655ms"),o.style.setProperty("animation-delay","-655ms")}),s.gesture=(yield Promise.resolve().then(l.bind(l,9203))).createGesture({el:s.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>8!==s.state&&32!==s.state&&0===s.scrollEl.scrollTop,onStart:i=>{s.progress=0,i.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:i=>{if(i.velocityY<0&&0===s.progress&&!i.data.didStart||i.data.cancelled)i.data.cancelled=!0;else{if(!i.data.didStart){i.data.didStart=!0,s.state=2;const{scrollEl:p}=s,g=p.matches(y.I)?"overflow":"--overflow";(0,n.w)(()=>p.style.setProperty(g,"hidden"));const v=(e=>{const t=e.previousElementSibling;return null!==t&&"ION-HEADER"===t.tagName?"translate":"scale"})(e),u=((e,t,r)=>"scale"===e?((e,t)=>{const r=t.clientHeight,s=(0,m.c)().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${r}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return S(e).addAnimation([s])})(t,r):((e,t)=>{const r=t.clientHeight,s=(0,m.c)().addElement(e).keyframes([{offset:0,transform:`translateY(-${r}px)`},{offset:1,transform:"translateY(100px)"}]);return S(e).addAnimation([s])})(t,r))(v,f,s.el);return i.data.animation=u,u.progressStart(!1,0),s.ionStart.emit(),void s.animations.push(u)}s.progress=(0,c.l)(0,i.deltaY/180*.5,1),i.data.animation.progressStep(s.progress),s.ionPull.emit()}},onEnd:i=>{if(!i.data.didStart)return;s.gesture.enable(!1);const{scrollEl:p}=s,g=p.matches(y.I)?"overflow":"--overflow";if((0,n.w)(()=>p.style.removeProperty(g)),s.progress<=.4)return void i.data.animation.progressEnd(0,s.progress,500).onFinish(()=>{s.animations.forEach(B=>B.destroy()),s.animations=[],s.gesture.enable(!0),s.state=1});const v=(0,T.g)([0,0],[0,0],[1,1],[1,1],s.progress)[0],u=(e=>(0,m.c)().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"))(f);s.animations.push(u),(0,n.w)((0,d.Z)(function*(){f.style.setProperty("--ion-pulling-refresher-translate",100*v+"px"),i.data.animation.progressEnd(),yield u.play(),s.beginRefresh(),i.data.animation.destroy(),s.gesture.enable(!0)}))}}),s.disabledChanged()})()}setupNativeRefresher(e){var t=this;return(0,d.Z)(function*(){if(t.scrollListenerCallback||!e||t.nativeRefresher||!t.scrollEl)return;t.setCss(0,"",!1,""),t.nativeRefresher=!0;const r=t.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),s=t.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");"ios"===(0,h.b)(t)?t.setupiOSNativeRefresher(r,s):t.setupMDNativeRefresher(e,r,s)})()}componentDidUpdate(){this.checkNativeRefresher()}connectedCallback(){var e=this;return(0,d.Z)(function*(){if("fixed"!==e.el.getAttribute("slot"))return void console.error('Make sure you use: ');const t=e.el.closest(y.b);t?(0,c.c)(t,(0,d.Z)(function*(){const r=t.querySelector(y.I);e.scrollEl=yield(0,y.g)(r??t),e.backgroundContentEl=yield t.getBackgroundElement(),(yield R(e.el,(0,h.b)(e)))?e.setupNativeRefresher(t):(e.gesture=(yield Promise.resolve().then(l.bind(l,9203))).createGesture({el:t,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>e.canStart(),onStart:()=>e.onStart(),onMove:s=>e.onMove(s),onEnd:()=>e.onEnd()}),e.disabledChanged())})):(0,y.p)(e.el)})()}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(){var e=this;return(0,d.Z)(function*(){e.nativeRefresher?(e.needsCompletion=!0,e.pointerDown||(0,c.r)(()=>(0,c.r)(()=>e.resetNativeRefresher(e.elementToTransform,32)))):e.close(32,"120ms")})()}cancel(){var e=this;return(0,d.Z)(function*(){e.nativeRefresher?e.pointerDown||(0,c.r)(()=>(0,c.r)(()=>e.resetNativeRefresher(e.elementToTransform,16))):e.close(16,"")})()}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||1!==this.state||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle()}onMove(e){if(!this.scrollEl)return;const t=e.event;if(void 0!==t.touches&&t.touches.length>1||56&this.state)return;const r=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,s=e.deltaY*r;if(s<=0)return this.progress=0,this.state=1,this.appliedStyles?void this.setCss(0,"",!1,""):void 0;if(1===this.state){if(this.scrollEl.scrollTop>0)return void(this.progress=0);this.state=2}if(t.cancelable&&t.preventDefault(),this.setCss(s,"0ms",!0,""),0===s)return void(this.progress=0);const a=this.pullMin;this.progress=s/a,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),sthis.pullMax?this.beginRefresh():this.state=4}onEnd(){4===this.state?this.beginRefresh():2===this.state?this.cancel():1===this.state&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,t){setTimeout(()=>{this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0)},600),this.state=e,this.setCss(0,this.closeDuration,!0,t)}setCss(e,t,r,s,a=!1){this.nativeRefresher||(this.appliedStyles=e>0,(0,n.w)(()=>{if(this.scrollEl&&this.backgroundContentEl){const f=this.scrollEl.style,o=this.backgroundContentEl.style;f.transform=o.transform=e>0?`translateY(${e}px) translateZ(0px)`:"",f.transitionDuration=o.transitionDuration=t,f.transitionDelay=o.transitionDelay=s,f.overflow=r?"hidden":""}a&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){const{overflow:e,overflowX:t,overflowY:r}=this.scrollEl.style;this.overflowStyles={overflow:e??"",overflowX:t??"",overflowY:r??""}}}restoreOverflowStyle(){if(void 0!==this.overflowStyles&&void 0!==this.scrollEl){const{overflow:e,overflowX:t,overflowY:r}=this.overflowStyles;this.scrollEl.style.overflow=e,this.scrollEl.style.overflowX=t,this.scrollEl.style.overflowY=r,this.overflowStyles=void 0}}render(){const e=(0,h.b)(this);return(0,n.h)(n.H,{slot:"fixed",class:{[e]:!0,[`refresher-${e}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":1!==this.state,"refresher-pulling":2===this.state,"refresher-ready":4===this.state,"refresher-refreshing":8===this.state,"refresher-cancelling":16===this.state,"refresher-completing":32===this.state}})}get el(){return(0,n.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}};P.style={ios:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}@supports (inset-inline-start: 0){ion-refresher{inset-inline-start:0}}@supports not (inset-inline-start: 0){ion-refresher{left:0}:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}[dir=rtl] ion-refresher{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){ion-refresher:dir(rtl){left:unset;right:unset;right:0}}}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, #747577)}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",md:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}@supports (inset-inline-start: 0){ion-refresher{inset-inline-start:0}}@supports not (inset-inline-start: 0){ion-refresher{left:0}:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}[dir=rtl] ion-refresher{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){ion-refresher:dir(rtl){left:unset;right:unset;right:0}}}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #3880ff)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #3880ff);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, #ececec);background:var(--ion-color-step-250, #ffffff);-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}"};const U=class{constructor(e){(0,n.r)(this,e),this.customHTMLEnabled=h.c.get("innerHTMLTemplatesEnabled",x.E),this.pullingIcon=void 0,this.pullingText=void 0,this.refreshingSpinner=void 0,this.refreshingText=void 0}componentWillLoad(){if(void 0===this.pullingIcon){const e=(0,h.b)(this),t=void 0!==this.el.style.webkitOverflowScrolling?"lines":k.i;this.pullingIcon=h.c.get("refreshingIcon","ios"===e&&(0,h.a)("mobile")?h.c.get("spinner",t):"circular")}if(void 0===this.refreshingSpinner){const e=(0,h.b)(this);this.refreshingSpinner=h.c.get("refreshingSpinner",h.c.get("spinner","ios"===e?"lines":"circular"))}}renderPullingText(){const{customHTMLEnabled:e,pullingText:t}=this;return e?(0,n.h)("div",{class:"refresher-pulling-text",innerHTML:(0,x.a)(t)}):(0,n.h)("div",{class:"refresher-pulling-text"},t)}renderRefreshingText(){const{customHTMLEnabled:e,refreshingText:t}=this;return e?(0,n.h)("div",{class:"refresher-refreshing-text",innerHTML:(0,x.a)(t)}):(0,n.h)("div",{class:"refresher-refreshing-text"},t)}render(){const e=this.pullingIcon,t=null!=e&&void 0!==_.S[e],r=(0,h.b)(this);return(0,n.h)(n.H,{class:r},(0,n.h)("div",{class:"refresher-pulling"},this.pullingIcon&&t&&(0,n.h)("div",{class:"refresher-pulling-icon"},(0,n.h)("div",{class:"spinner-arrow-container"},(0,n.h)("ion-spinner",{name:this.pullingIcon,paused:!0}),"md"===r&&"circular"===this.pullingIcon&&(0,n.h)("div",{class:"arrow-container"},(0,n.h)("ion-icon",{icon:k.h,"aria-hidden":"true"})))),this.pullingIcon&&!t&&(0,n.h)("div",{class:"refresher-pulling-icon"},(0,n.h)("ion-icon",{icon:this.pullingIcon,lazy:!1,"aria-hidden":"true"})),void 0!==this.pullingText&&this.renderPullingText()),(0,n.h)("div",{class:"refresher-refreshing"},this.refreshingSpinner&&(0,n.h)("div",{class:"refresher-refreshing-icon"},(0,n.h)("ion-spinner",{name:this.refreshingSpinner})),void 0!==this.refreshingText&&this.renderRefreshingText()))}get el(){return(0,n.f)(this)}}}}]); \ No newline at end of file diff --git a/7219.f63835907e853f3f.js b/7219.f63835907e853f3f.js new file mode 100644 index 00000000..5c00cf29 --- /dev/null +++ b/7219.f63835907e853f3f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7219],{7219:(j,w,l)=>{l.r(w),l.d(w,{ion_refresher:()=>T,ion_refresher_content:()=>U});var d=l(5861),n=l(9942),_=l(4510),y=l(7946),h=l(512),E=l(9951),c=l(5551),m=l(4913),x=l(8958),k=l(1076),C=l(2217);l(1836),l(1848);const S=e=>{const t=e.querySelector("ion-spinner"),r=t.shadowRoot.querySelector("circle"),s=e.querySelector(".spinner-arrow-container"),a=e.querySelector(".arrow-container"),f=a?a.querySelector("ion-icon"):null,o=(0,m.c)().duration(1e3).easing("ease-out"),i=(0,m.c)().addElement(s).keyframes([{offset:0,opacity:"0.3"},{offset:.45,opacity:"0.3"},{offset:.55,opacity:"1"},{offset:1,opacity:"1"}]),p=(0,m.c)().addElement(r).keyframes([{offset:0,strokeDasharray:"1px, 200px"},{offset:.2,strokeDasharray:"1px, 200px"},{offset:.55,strokeDasharray:"100px, 200px"},{offset:1,strokeDasharray:"100px, 200px"}]),g=(0,m.c)().addElement(t).keyframes([{offset:0,transform:"rotate(-90deg)"},{offset:1,transform:"rotate(210deg)"}]);if(a&&f){const v=(0,m.c)().addElement(a).keyframes([{offset:0,transform:"rotate(0deg)"},{offset:.3,transform:"rotate(0deg)"},{offset:.55,transform:"rotate(280deg)"},{offset:1,transform:"rotate(400deg)"}]),u=(0,m.c)().addElement(f).keyframes([{offset:0,transform:"translateX(2px) scale(0)"},{offset:.3,transform:"translateX(2px) scale(0)"},{offset:.55,transform:"translateX(-1.5px) scale(1)"},{offset:1,transform:"translateX(-1.5px) scale(1)"}]);o.addAnimation([v,u])}return o.addAnimation([i,p,g])},b=(e,t,r=200)=>{if(!e)return Promise.resolve();const s=(0,h.t)(e,r);return(0,n.w)(()=>{e.style.setProperty("transition",`${r}ms all ease-out`),void 0===t?e.style.removeProperty("transform"):e.style.setProperty("transform",`translate3d(0px, ${t}, 0px)`)}),s},R=()=>navigator.maxTouchPoints>0&&CSS.supports("background: -webkit-named-image(apple-pay-logo-black)"),P=function(){var e=(0,d.Z)(function*(t,r){const s=t.querySelector("ion-refresher-content");if(!s)return Promise.resolve(!1);yield new Promise(o=>(0,h.c)(s,o));const a=t.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),f=t.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");return null!==a&&null!==f&&("ios"===r&&R()||"md"===r)});return function(r,s){return e.apply(this,arguments)}}(),T=class{constructor(e){(0,n.r)(this,e),this.ionRefresh=(0,n.d)(this,"ionRefresh",7),this.ionPull=(0,n.d)(this,"ionPull",7),this.ionStart=(0,n.d)(this,"ionStart",7),this.appliedStyles=!1,this.didStart=!1,this.progress=0,this.pointerDown=!1,this.needsCompletion=!1,this.didRefresh=!1,this.lastVelocityY=0,this.animations=[],this.nativeRefresher=!1,this.state=1,this.pullMin=60,this.pullMax=this.pullMin+60,this.closeDuration="280ms",this.snapbackDuration="280ms",this.pullFactor=1,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}checkNativeRefresher(){var e=this;return(0,d.Z)(function*(){const t=yield P(e.el,(0,c.b)(e));if(t&&!e.nativeRefresher){const r=e.el.closest("ion-content");e.setupNativeRefresher(r)}else t||e.destroyNativeRefresher()})()}destroyNativeRefresher(){this.scrollEl&&this.scrollListenerCallback&&(this.scrollEl.removeEventListener("scroll",this.scrollListenerCallback),this.scrollListenerCallback=void 0),this.nativeRefresher=!1}resetNativeRefresher(e,t){var r=this;return(0,d.Z)(function*(){r.state=t,"ios"===(0,c.b)(r)?yield b(e,void 0,300):yield(0,h.t)(r.el.querySelector(".refresher-refreshing-icon"),200),r.didRefresh=!1,r.needsCompletion=!1,r.pointerDown=!1,r.animations.forEach(s=>s.destroy()),r.animations=[],r.progress=0,r.state=1})()}setupiOSNativeRefresher(e,t){var r=this;return(0,d.Z)(function*(){r.elementToTransform=r.scrollEl;const s=e.shadowRoot.querySelectorAll("svg");let a=.16*r.scrollEl.clientHeight;const f=s.length;(0,n.w)(()=>s.forEach(o=>o.style.setProperty("animation","none"))),r.scrollListenerCallback=()=>{!r.pointerDown&&1===r.state||(0,n.e)(()=>{const o=r.scrollEl.scrollTop,i=r.el.clientHeight;if(o>0){if(8===r.state){const u=(0,h.l)(0,o/(.5*i),1);return void(0,n.w)(()=>((e,t)=>{e.style.setProperty("opacity",t.toString())})(t,1-u))}return}r.pointerDown&&(r.didStart||(r.didStart=!0,r.ionStart.emit()),r.pointerDown&&r.ionPull.emit());const p=r.didStart?30:0,g=r.progress=(0,h.l)(0,(Math.abs(o)-p)/a,1);8===r.state||1===g?(r.pointerDown&&((e,t)=>{(0,n.w)(()=>{e.style.setProperty("--refreshing-rotation-duration",t>=1?"0.5s":"2s"),e.style.setProperty("opacity","1")})})(t,r.lastVelocityY),r.didRefresh||(r.beginRefresh(),r.didRefresh=!0,(0,E.d)({style:E.I.Light}),r.pointerDown||b(r.elementToTransform,`${i}px`))):(r.state=2,((e,t,r)=>{(0,n.w)(()=>{e.forEach((a,f)=>{const o=f*(1/t),g=(0,h.l)(0,(r-o)/(1-o),1);a.style.setProperty("opacity",g.toString())})})})(s,f,g))})},r.scrollEl.addEventListener("scroll",r.scrollListenerCallback),r.gesture=(yield Promise.resolve().then(l.bind(l,6535))).createGesture({el:r.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,onStart:()=>{r.pointerDown=!0,r.didRefresh||b(r.elementToTransform,"0px"),0===a&&(a=.16*r.scrollEl.clientHeight)},onMove:o=>{r.lastVelocityY=o.velocityY},onEnd:()=>{r.pointerDown=!1,r.didStart=!1,r.needsCompletion?(r.resetNativeRefresher(r.elementToTransform,32),r.needsCompletion=!1):r.didRefresh&&(0,n.e)(()=>b(r.elementToTransform,`${r.el.clientHeight}px`))}}),r.disabledChanged()})()}setupMDNativeRefresher(e,t,r){var s=this;return(0,d.Z)(function*(){const a=(0,h.g)(t).querySelector("circle"),f=s.el.querySelector("ion-refresher-content .refresher-pulling-icon"),o=(0,h.g)(r).querySelector("circle");null!==a&&null!==o&&(0,n.w)(()=>{a.style.setProperty("animation","none"),r.style.setProperty("animation-delay","-655ms"),o.style.setProperty("animation-delay","-655ms")}),s.gesture=(yield Promise.resolve().then(l.bind(l,6535))).createGesture({el:s.scrollEl,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:5,canStart:()=>8!==s.state&&32!==s.state&&0===s.scrollEl.scrollTop,onStart:i=>{s.progress=0,i.data={animation:void 0,didStart:!1,cancelled:!1}},onMove:i=>{if(i.velocityY<0&&0===s.progress&&!i.data.didStart||i.data.cancelled)i.data.cancelled=!0;else{if(!i.data.didStart){i.data.didStart=!0,s.state=2;const{scrollEl:p}=s,g=p.matches(y.I)?"overflow":"--overflow";(0,n.w)(()=>p.style.setProperty(g,"hidden"));const v=(e=>{const t=e.previousElementSibling;return null!==t&&"ION-HEADER"===t.tagName?"translate":"scale"})(e),u=((e,t,r)=>"scale"===e?((e,t)=>{const r=t.clientHeight,s=(0,m.c)().addElement(e).keyframes([{offset:0,transform:`scale(0) translateY(-${r}px)`},{offset:1,transform:"scale(1) translateY(100px)"}]);return S(e).addAnimation([s])})(t,r):((e,t)=>{const r=t.clientHeight,s=(0,m.c)().addElement(e).keyframes([{offset:0,transform:`translateY(-${r}px)`},{offset:1,transform:"translateY(100px)"}]);return S(e).addAnimation([s])})(t,r))(v,f,s.el);return i.data.animation=u,u.progressStart(!1,0),s.ionStart.emit(),void s.animations.push(u)}s.progress=(0,h.l)(0,i.deltaY/180*.5,1),i.data.animation.progressStep(s.progress),s.ionPull.emit()}},onEnd:i=>{if(!i.data.didStart)return;s.gesture.enable(!1);const{scrollEl:p}=s,g=p.matches(y.I)?"overflow":"--overflow";if((0,n.w)(()=>p.style.removeProperty(g)),s.progress<=.4)return void i.data.animation.progressEnd(0,s.progress,500).onFinish(()=>{s.animations.forEach(W=>W.destroy()),s.animations=[],s.gesture.enable(!0),s.state=1});const v=(0,_.g)([0,0],[0,0],[1,1],[1,1],s.progress)[0],u=(e=>(0,m.c)().duration(125).addElement(e).fromTo("transform","translateY(var(--ion-pulling-refresher-translate, 100px))","translateY(0px)"))(f);s.animations.push(u),(0,n.w)((0,d.Z)(function*(){f.style.setProperty("--ion-pulling-refresher-translate",100*v+"px"),i.data.animation.progressEnd(),yield u.play(),s.beginRefresh(),i.data.animation.destroy(),s.gesture.enable(!0)}))}}),s.disabledChanged()})()}setupNativeRefresher(e){var t=this;return(0,d.Z)(function*(){if(t.scrollListenerCallback||!e||t.nativeRefresher||!t.scrollEl)return;t.setCss(0,"",!1,""),t.nativeRefresher=!0;const r=t.el.querySelector("ion-refresher-content .refresher-pulling ion-spinner"),s=t.el.querySelector("ion-refresher-content .refresher-refreshing ion-spinner");"ios"===(0,c.b)(t)?t.setupiOSNativeRefresher(r,s):t.setupMDNativeRefresher(e,r,s)})()}componentDidUpdate(){this.checkNativeRefresher()}connectedCallback(){var e=this;return(0,d.Z)(function*(){if("fixed"!==e.el.getAttribute("slot"))return void console.error('Make sure you use: ');const t=e.el.closest(y.b);t?(0,h.c)(t,(0,d.Z)(function*(){const r=t.querySelector(y.I);e.scrollEl=yield(0,y.g)(r??t),e.backgroundContentEl=yield t.getBackgroundElement(),(yield P(e.el,(0,c.b)(e)))?e.setupNativeRefresher(t):(e.gesture=(yield Promise.resolve().then(l.bind(l,6535))).createGesture({el:t,gestureName:"refresher",gesturePriority:31,direction:"y",threshold:20,passive:!1,canStart:()=>e.canStart(),onStart:()=>e.onStart(),onMove:s=>e.onMove(s),onEnd:()=>e.onEnd()}),e.disabledChanged())})):(0,y.p)(e.el)})()}disconnectedCallback(){this.destroyNativeRefresher(),this.scrollEl=void 0,this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}complete(){var e=this;return(0,d.Z)(function*(){e.nativeRefresher?(e.needsCompletion=!0,e.pointerDown||(0,h.r)(()=>(0,h.r)(()=>e.resetNativeRefresher(e.elementToTransform,32)))):e.close(32,"120ms")})()}cancel(){var e=this;return(0,d.Z)(function*(){e.nativeRefresher?e.pointerDown||(0,h.r)(()=>(0,h.r)(()=>e.resetNativeRefresher(e.elementToTransform,16))):e.close(16,"")})()}getProgress(){return Promise.resolve(this.progress)}canStart(){return!(!this.scrollEl||1!==this.state||this.scrollEl.scrollTop>0)}onStart(){this.progress=0,this.state=1,this.memoizeOverflowStyle()}onMove(e){if(!this.scrollEl)return;const t=e.event;if(void 0!==t.touches&&t.touches.length>1||56&this.state)return;const r=Number.isNaN(this.pullFactor)||this.pullFactor<0?1:this.pullFactor,s=e.deltaY*r;if(s<=0)return this.progress=0,this.state=1,this.appliedStyles?void this.setCss(0,"",!1,""):void 0;if(1===this.state){if(this.scrollEl.scrollTop>0)return void(this.progress=0);this.state=2}if(t.cancelable&&t.preventDefault(),this.setCss(s,"0ms",!0,""),0===s)return void(this.progress=0);const a=this.pullMin;this.progress=s/a,this.didStart||(this.didStart=!0,this.ionStart.emit()),this.ionPull.emit(),sthis.pullMax?this.beginRefresh():this.state=4}onEnd(){4===this.state?this.beginRefresh():2===this.state?this.cancel():1===this.state&&this.restoreOverflowStyle()}beginRefresh(){this.state=8,this.setCss(this.pullMin,this.snapbackDuration,!0,""),this.ionRefresh.emit({complete:this.complete.bind(this)})}close(e,t){setTimeout(()=>{this.state=1,this.progress=0,this.didStart=!1,this.setCss(0,"0ms",!1,"",!0)},600),this.state=e,this.setCss(0,this.closeDuration,!0,t)}setCss(e,t,r,s,a=!1){this.nativeRefresher||(this.appliedStyles=e>0,(0,n.w)(()=>{if(this.scrollEl&&this.backgroundContentEl){const f=this.scrollEl.style,o=this.backgroundContentEl.style;f.transform=o.transform=e>0?`translateY(${e}px) translateZ(0px)`:"",f.transitionDuration=o.transitionDuration=t,f.transitionDelay=o.transitionDelay=s,f.overflow=r?"hidden":""}a&&this.restoreOverflowStyle()}))}memoizeOverflowStyle(){if(this.scrollEl){const{overflow:e,overflowX:t,overflowY:r}=this.scrollEl.style;this.overflowStyles={overflow:e??"",overflowX:t??"",overflowY:r??""}}}restoreOverflowStyle(){if(void 0!==this.overflowStyles&&void 0!==this.scrollEl){const{overflow:e,overflowX:t,overflowY:r}=this.overflowStyles;this.scrollEl.style.overflow=e,this.scrollEl.style.overflowX=t,this.scrollEl.style.overflowY=r,this.overflowStyles=void 0}}render(){const e=(0,c.b)(this);return(0,n.h)(n.H,{slot:"fixed",class:{[e]:!0,[`refresher-${e}`]:!0,"refresher-native":this.nativeRefresher,"refresher-active":1!==this.state,"refresher-pulling":2===this.state,"refresher-ready":4===this.state,"refresher-refreshing":8===this.state,"refresher-cancelling":16===this.state,"refresher-completing":32===this.state}})}get el(){return(0,n.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}};T.style={ios:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}@supports (inset-inline-start: 0){ion-refresher{inset-inline-start:0}}@supports not (inset-inline-start: 0){ion-refresher{left:0}:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}[dir=rtl] ion-refresher{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){ion-refresher:dir(rtl){left:unset;right:unset;right:0}}}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-ios .refresher-pulling-icon,.refresher-ios .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-ios .refresher-pulling-text,.refresher-ios .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-lines-ios line,.refresher-ios .refresher-refreshing .spinner-lines-small-ios line,.refresher-ios .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-ios .refresher-refreshing .spinner-bubbles circle,.refresher-ios .refresher-refreshing .spinner-circles circle,.refresher-ios .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0}.refresher-native .refresher-refreshing ion-spinner{--refreshing-rotation-duration:2s;display:none;-webkit-animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards;animation:var(--refreshing-rotation-duration) ease-out refresher-rotate forwards}.refresher-native .refresher-refreshing{display:none;-webkit-animation:250ms linear refresher-pop forwards;animation:250ms linear refresher-pop forwards}.refresher-native ion-spinner{width:32px;height:32px;color:var(--ion-color-step-450, #747577)}.refresher-native.refresher-refreshing .refresher-pulling ion-spinner,.refresher-native.refresher-completing .refresher-pulling ion-spinner{display:none}.refresher-native.refresher-refreshing .refresher-refreshing ion-spinner,.refresher-native.refresher-completing .refresher-refreshing ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-pulling ion-spinner{display:block}.refresher-native.refresher-pulling .refresher-refreshing ion-spinner{display:none}.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0) rotate(180deg);transform:scale(0) rotate(180deg);-webkit-transition:300ms;transition:300ms}@-webkit-keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes refresher-pop{0%{-webkit-transform:scale(1);transform:scale(1);-webkit-animation-timing-function:ease-in;animation-timing-function:ease-in}50%{-webkit-transform:scale(1.2);transform:scale(1.2);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes refresher-rotate{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}",md:"ion-refresher{top:0;display:none;position:absolute;width:100%;height:60px;pointer-events:none;z-index:-1}@supports (inset-inline-start: 0){ion-refresher{inset-inline-start:0}}@supports not (inset-inline-start: 0){ion-refresher{left:0}:host-context([dir=rtl]) ion-refresher{left:unset;right:unset;right:0}[dir=rtl] ion-refresher{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){ion-refresher:dir(rtl){left:unset;right:unset;right:0}}}ion-refresher.refresher-active{display:block}ion-refresher-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;height:100%}.refresher-pulling,.refresher-refreshing{display:none;width:100%}.refresher-pulling-icon,.refresher-refreshing-icon{-webkit-transform-origin:center;transform-origin:center;-webkit-transition:200ms;transition:200ms;font-size:30px;text-align:center}:host-context([dir=rtl]) .refresher-pulling-icon,:host-context([dir=rtl]) .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] .refresher-pulling-icon,[dir=rtl] .refresher-refreshing-icon{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){.refresher-pulling-icon:dir(rtl),.refresher-refreshing-icon:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}.refresher-pulling-text,.refresher-refreshing-text{font-size:16px;text-align:center}ion-refresher-content .arrow-container{display:none}.refresher-pulling ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling{display:block}.refresher-ready ion-refresher-content .refresher-pulling-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.refresher-refreshing ion-refresher-content .refresher-refreshing{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling{display:block}.refresher-cancelling ion-refresher-content .refresher-pulling-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-completing ion-refresher-content .refresher-refreshing{display:block}.refresher-completing ion-refresher-content .refresher-refreshing-icon{-webkit-transform:scale(0);transform:scale(0)}.refresher-native .refresher-pulling-text,.refresher-native .refresher-refreshing-text{display:none}.refresher-md .refresher-pulling-icon,.refresher-md .refresher-refreshing-icon{color:var(--ion-text-color, #000)}.refresher-md .refresher-pulling-text,.refresher-md .refresher-refreshing-text{color:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-lines-md line,.refresher-md .refresher-refreshing .spinner-lines-small-md line,.refresher-md .refresher-refreshing .spinner-crescent circle{stroke:var(--ion-text-color, #000)}.refresher-md .refresher-refreshing .spinner-bubbles circle,.refresher-md .refresher-refreshing .spinner-circles circle,.refresher-md .refresher-refreshing .spinner-dots circle{fill:var(--ion-text-color, #000)}ion-refresher.refresher-native{display:block;z-index:1}ion-refresher.refresher-native ion-spinner{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;width:24px;height:24px;color:var(--ion-color-primary, #3880ff)}ion-refresher.refresher-native .spinner-arrow-container{display:inherit}ion-refresher.refresher-native .arrow-container{display:block;position:absolute;width:24px;height:24px}ion-refresher.refresher-native .arrow-container ion-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;left:0;right:0;bottom:-4px;position:absolute;color:var(--ion-color-primary, #3880ff);font-size:12px}ion-refresher.refresher-native.refresher-pulling ion-refresher-content .refresher-pulling,ion-refresher.refresher-native.refresher-ready ion-refresher-content .refresher-pulling{display:-ms-flexbox;display:flex}ion-refresher.refresher-native.refresher-refreshing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-completing ion-refresher-content .refresher-refreshing,ion-refresher.refresher-native.refresher-cancelling ion-refresher-content .refresher-refreshing{display:-ms-flexbox;display:flex}ion-refresher.refresher-native .refresher-pulling-icon{-webkit-transform:translateY(calc(-100% - 10px));transform:translateY(calc(-100% - 10px))}ion-refresher.refresher-native .refresher-pulling-icon,ion-refresher.refresher-native .refresher-refreshing-icon{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;border-radius:100%;-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;display:-ms-flexbox;display:flex;border:1px solid var(--ion-color-step-200, #ececec);background:var(--ion-color-step-250, #ffffff);-webkit-box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1);box-shadow:0px 1px 6px rgba(0, 0, 0, 0.1)}"};const U=class{constructor(e){(0,n.r)(this,e),this.customHTMLEnabled=c.c.get("innerHTMLTemplatesEnabled",x.E),this.pullingIcon=void 0,this.pullingText=void 0,this.refreshingSpinner=void 0,this.refreshingText=void 0}componentWillLoad(){if(void 0===this.pullingIcon){const e=R(),t=(0,c.b)(this);this.pullingIcon=c.c.get("refreshingIcon","ios"===t&&e?c.c.get("spinner",e?"lines":k.i):"circular")}if(void 0===this.refreshingSpinner){const e=(0,c.b)(this);this.refreshingSpinner=c.c.get("refreshingSpinner",c.c.get("spinner","ios"===e?"lines":"circular"))}}renderPullingText(){const{customHTMLEnabled:e,pullingText:t}=this;return e?(0,n.h)("div",{class:"refresher-pulling-text",innerHTML:(0,x.a)(t)}):(0,n.h)("div",{class:"refresher-pulling-text"},t)}renderRefreshingText(){const{customHTMLEnabled:e,refreshingText:t}=this;return e?(0,n.h)("div",{class:"refresher-refreshing-text",innerHTML:(0,x.a)(t)}):(0,n.h)("div",{class:"refresher-refreshing-text"},t)}render(){const e=this.pullingIcon,t=null!=e&&void 0!==C.S[e],r=(0,c.b)(this);return(0,n.h)(n.H,{class:r},(0,n.h)("div",{class:"refresher-pulling"},this.pullingIcon&&t&&(0,n.h)("div",{class:"refresher-pulling-icon"},(0,n.h)("div",{class:"spinner-arrow-container"},(0,n.h)("ion-spinner",{name:this.pullingIcon,paused:!0}),"md"===r&&"circular"===this.pullingIcon&&(0,n.h)("div",{class:"arrow-container"},(0,n.h)("ion-icon",{icon:k.h,"aria-hidden":"true"})))),this.pullingIcon&&!t&&(0,n.h)("div",{class:"refresher-pulling-icon"},(0,n.h)("ion-icon",{icon:this.pullingIcon,lazy:!1,"aria-hidden":"true"})),void 0!==this.pullingText&&this.renderPullingText()),(0,n.h)("div",{class:"refresher-refreshing"},this.refreshingSpinner&&(0,n.h)("div",{class:"refresher-refreshing-icon"},(0,n.h)("ion-spinner",{name:this.refreshingSpinner})),void 0!==this.refreshingText&&this.renderRefreshingText()))}get el(){return(0,n.f)(this)}}}}]); \ No newline at end of file diff --git a/7465.83b0bb785617426f.js b/7465.5523aea818076ba2.js similarity index 97% rename from 7465.83b0bb785617426f.js rename to 7465.5523aea818076ba2.js index 0871a117..19f42a49 100644 --- a/7465.83b0bb785617426f.js +++ b/7465.5523aea818076ba2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7465],{7465:(D,d,e)=>{e.r(d),e.d(d,{ion_ripple_effect:()=>u});var b=e(5861),n=e(5349),h=e(3882);const u=class{constructor(t){(0,n.r)(this,t),this.type="bounded"}addRipple(t,_){var a=this;return(0,b.Z)(function*(){return new Promise(g=>{(0,n.e)(()=>{const r=a.el.getBoundingClientRect(),o=r.width,s=r.height,A=Math.sqrt(o*o+s*s),p=Math.max(s,o),I=a.unbounded?p:A+k,c=Math.floor(p*v),E=I/c;let m=t-r.left,f=_-r.top;a.unbounded&&(m=.5*o,f=.5*s);const C=m-.5*c,O=f-.5*c,P=.5*o-m,R=.5*s-f;(0,n.w)(()=>{const l=document.createElement("div");l.classList.add("ripple-effect");const i=l.style;i.top=O+"px",i.left=C+"px",i.width=i.height=c+"px",i.setProperty("--final-scale",`${E}`),i.setProperty("--translate-end",`${P}px, ${R}px`),(a.el.shadowRoot||a.el).appendChild(l),setTimeout(()=>{g(()=>{w(l)})},325)})})})})()}get unbounded(){return"unbounded"===this.type}render(){const t=(0,h.b)(this);return(0,n.h)(n.H,{role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return(0,n.f)(this)}},w=t=>{t.classList.add("fade-out"),setTimeout(()=>{t.remove()},200)},k=10,v=.5;u.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}"}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7465],{7465:(D,d,e)=>{e.r(d),e.d(d,{ion_ripple_effect:()=>u});var b=e(5861),n=e(9942),h=e(5551);const u=class{constructor(t){(0,n.r)(this,t),this.type="bounded"}addRipple(t,_){var a=this;return(0,b.Z)(function*(){return new Promise(g=>{(0,n.e)(()=>{const r=a.el.getBoundingClientRect(),o=r.width,s=r.height,A=Math.sqrt(o*o+s*s),p=Math.max(s,o),I=a.unbounded?p:A+k,c=Math.floor(p*v),E=I/c;let m=t-r.left,f=_-r.top;a.unbounded&&(m=.5*o,f=.5*s);const C=m-.5*c,O=f-.5*c,P=.5*o-m,R=.5*s-f;(0,n.w)(()=>{const l=document.createElement("div");l.classList.add("ripple-effect");const i=l.style;i.top=O+"px",i.left=C+"px",i.width=i.height=c+"px",i.setProperty("--final-scale",`${E}`),i.setProperty("--translate-end",`${P}px, ${R}px`),(a.el.shadowRoot||a.el).appendChild(l),setTimeout(()=>{g(()=>{w(l)})},325)})})})})()}get unbounded(){return"unbounded"===this.type}render(){const t=(0,h.b)(this);return(0,n.h)(n.H,{role:"presentation",class:{[t]:!0,unbounded:this.unbounded}})}get el(){return(0,n.f)(this)}},w=t=>{t.classList.add("fade-out"),setTimeout(()=>{t.remove()},200)},k=10,v=.5;u.style=":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:strict;pointer-events:none}:host(.unbounded){contain:layout size style}.ripple-effect{border-radius:50%;position:absolute;background-color:currentColor;color:inherit;contain:strict;opacity:0;-webkit-animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;animation:225ms rippleAnimation forwards, 75ms fadeInAnimation forwards;will-change:transform, opacity;pointer-events:none}.fade-out{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1));-webkit-animation:150ms fadeOutAnimation forwards;animation:150ms fadeOutAnimation forwards}@-webkit-keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@keyframes rippleAnimation{from{-webkit-animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transform:scale(1);transform:scale(1)}to{-webkit-transform:translate(var(--translate-end)) scale(var(--final-scale, 1));transform:translate(var(--translate-end)) scale(var(--final-scale, 1))}}@-webkit-keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@keyframes fadeInAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0}to{opacity:0.16}}@-webkit-keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}@keyframes fadeOutAnimation{from{-webkit-animation-timing-function:linear;animation-timing-function:linear;opacity:0.16}to{opacity:0}}"}}]); \ No newline at end of file diff --git a/7635.31c6e8c9a782e3fa.js b/7635.31c6e8c9a782e3fa.js deleted file mode 100644 index 1c8bf516..00000000 --- a/7635.31c6e8c9a782e3fa.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7635],{7635:(z,d,n)=>{n.r(d),n.d(d,{ion_checkbox:()=>o});var e=n(5349),f=n(9988),s=n(839),x=n(6710),h=n(3567),k=n(3882);const o=class{constructor(c){(0,e.r)(this,c),this.ionChange=(0,e.d)(this,"ionChange",7),this.ionFocus=(0,e.d)(this,"ionFocus",7),this.ionBlur=(0,e.d)(this,"ionBlur",7),this.ionStyle=(0,e.d)(this,"ionStyle",7),this.inputId="ion-cb-"+a++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.setChecked=t=>{const r=this.checked=t;this.ionChange.emit({checked:r,value:this.value})},this.toggleChecked=t=>{t.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=t=>{this.disabled||this.toggleChecked(t)},this.color=void 0,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.labelPlacement="start",this.justify="space-between",this.alignment="center",this.legacy=void 0}connectedCallback(){this.legacyFormController=(0,f.c)(this.el)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},(0,s.i)(this.el)))}styleChanged(){this.emitStyle()}emitStyle(){const c={"interactive-disabled":this.disabled};this.legacyFormController.hasLegacyControl()&&(c["checkbox-checked"]=this.checked),this.ionStyle.emit(c)}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{legacyFormController:c}=this;return c.hasLegacyControl()?this.renderLegacyCheckbox():this.renderCheckbox()}renderCheckbox(){const{color:c,checked:t,disabled:r,el:l,getSVGPath:w,indeterminate:b,inheritedAttributes:p,inputId:y,justify:v,labelPlacement:m,name:C,value:_,alignment:E}=this,g=(0,k.b)(this),j=w(g,b);return(0,s.d)(!0,l,C,t?_:"",r),(0,e.h)(e.H,{class:(0,h.c)(c,{[g]:!0,"in-item":(0,h.h)("ion-item",l),"checkbox-checked":t,"checkbox-disabled":r,"checkbox-indeterminate":b,interactive:!0,[`checkbox-justify-${v}`]:!0,[`checkbox-alignment-${E}`]:!0,[`checkbox-label-placement-${m}`]:!0}),onClick:this.onClick},(0,e.h)("label",{class:"checkbox-wrapper"},(0,e.h)("input",Object.assign({type:"checkbox",checked:!!t||void 0,disabled:r,id:y,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:L=>this.focusEl=L},p)),(0,e.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":""===l.textContent}},(0,e.h)("slot",null)),(0,e.h)("div",{class:"native-wrapper"},(0,e.h)("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},j))))}renderLegacyCheckbox(){this.hasLoggedDeprecationWarning||((0,x.p)('ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,x.p)('ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{color:c,checked:t,disabled:r,el:l,getSVGPath:w,indeterminate:b,inputId:p,name:y,value:v}=this,m=(0,k.b)(this),{label:C,labelId:_,labelText:E}=(0,s.e)(l,p),g=w(m,b);return(0,s.d)(!0,l,y,t?v:"",r),(0,e.h)(e.H,{"aria-labelledby":C?_:null,"aria-checked":`${t}`,"aria-hidden":r?"true":null,role:"checkbox",class:(0,h.c)(c,{[m]:!0,"in-item":(0,h.h)("ion-item",l),"checkbox-checked":t,"checkbox-disabled":r,"checkbox-indeterminate":b,"legacy-checkbox":!0,interactive:!0}),onClick:this.onClick},(0,e.h)("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},g),(0,e.h)("label",{htmlFor:p},E),(0,e.h)("input",{type:"checkbox","aria-checked":`${t}`,disabled:r,id:p,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:j=>this.focusEl=j}))}getSVGPath(c,t){let r=(0,e.h)("path",t?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===c&&(r=(0,e.h)("path",t?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),r}get el(){return(0,e.f)(this)}static get watchers(){return{checked:["styleChanged"],disabled:["styleChanged"]}}};let a=0;o.style={ios:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.0625rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.625rem, 65.988px)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item.legacy-checkbox){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}",md:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.legacy-checkbox.checkbox-disabled),:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}:host(.in-item.legacy-checkbox){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}"}},3567:(z,d,n)=>{n.d(d,{c:()=>s,g:()=>h,h:()=>f,o:()=>u});var e=n(5861);const f=(i,o)=>null!==o.closest(i),s=(i,o)=>"string"==typeof i&&i.length>0?Object.assign({"ion-color":!0,[`ion-color-${i}`]:!0},o):o,h=i=>{const o={};return(i=>void 0!==i?(Array.isArray(i)?i:i.split(" ")).filter(a=>null!=a).map(a=>a.trim()).filter(a=>""!==a):[])(i).forEach(a=>o[a]=!0),o},k=/^[a-z][a-z0-9+\-.]*:/,u=function(){var i=(0,e.Z)(function*(o,a,c,t){if(null!=o&&"#"!==o[0]&&!k.test(o)){const r=document.querySelector("ion-router");if(r)return a?.preventDefault(),r.push(o,c,t)}return!1});return function(a,c,t,r){return i.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/7635.d0b9d1f4c6c6de67.js b/7635.d0b9d1f4c6c6de67.js new file mode 100644 index 00000000..214fbda2 --- /dev/null +++ b/7635.d0b9d1f4c6c6de67.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7635],{7635:(z,d,n)=>{n.r(d),n.d(d,{ion_checkbox:()=>o});var e=n(9942),f=n(9749),s=n(512),x=n(2400),h=n(4459),k=n(5551);const o=class{constructor(c){(0,e.r)(this,c),this.ionChange=(0,e.d)(this,"ionChange",7),this.ionFocus=(0,e.d)(this,"ionFocus",7),this.ionBlur=(0,e.d)(this,"ionBlur",7),this.ionStyle=(0,e.d)(this,"ionStyle",7),this.inputId="ion-cb-"+a++,this.inheritedAttributes={},this.hasLoggedDeprecationWarning=!1,this.setChecked=t=>{const r=this.checked=t;this.ionChange.emit({checked:r,value:this.value})},this.toggleChecked=t=>{t.preventDefault(),this.setFocus(),this.setChecked(!this.checked),this.indeterminate=!1},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.onClick=t=>{this.disabled||this.toggleChecked(t)},this.color=void 0,this.name=this.inputId,this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.value="on",this.labelPlacement="start",this.justify="space-between",this.alignment="center",this.legacy=void 0}connectedCallback(){this.legacyFormController=(0,f.c)(this.el)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},(0,s.i)(this.el)))}styleChanged(){this.emitStyle()}emitStyle(){const c={"interactive-disabled":this.disabled,legacy:!!this.legacy};this.legacyFormController.hasLegacyControl()&&(c["checkbox-checked"]=this.checked),this.ionStyle.emit(c)}setFocus(){this.focusEl&&this.focusEl.focus()}render(){const{legacyFormController:c}=this;return c.hasLegacyControl()?this.renderLegacyCheckbox():this.renderCheckbox()}renderCheckbox(){const{color:c,checked:t,disabled:r,el:l,getSVGPath:w,indeterminate:b,inheritedAttributes:p,inputId:y,justify:v,labelPlacement:m,name:C,value:_,alignment:E}=this,g=(0,k.b)(this),j=w(g,b);return(0,s.d)(!0,l,C,t?_:"",r),(0,e.h)(e.H,{class:(0,h.c)(c,{[g]:!0,"in-item":(0,h.h)("ion-item",l),"checkbox-checked":t,"checkbox-disabled":r,"checkbox-indeterminate":b,interactive:!0,[`checkbox-justify-${v}`]:!0,[`checkbox-alignment-${E}`]:!0,[`checkbox-label-placement-${m}`]:!0}),onClick:this.onClick},(0,e.h)("label",{class:"checkbox-wrapper"},(0,e.h)("input",Object.assign({type:"checkbox",checked:!!t||void 0,disabled:r,id:y,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:L=>this.focusEl=L},p)),(0,e.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":""===l.textContent},part:"label"},(0,e.h)("slot",null)),(0,e.h)("div",{class:"native-wrapper"},(0,e.h)("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},j))))}renderLegacyCheckbox(){this.hasLoggedDeprecationWarning||((0,x.p)('ion-checkbox now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,x.p)('ion-checkbox is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new checkbox syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{color:c,checked:t,disabled:r,el:l,getSVGPath:w,indeterminate:b,inputId:p,name:y,value:v}=this,m=(0,k.b)(this),{label:C,labelId:_,labelText:E}=(0,s.e)(l,p),g=w(m,b);return(0,s.d)(!0,l,y,t?v:"",r),(0,e.h)(e.H,{"aria-labelledby":C?_:null,"aria-checked":`${t}`,"aria-hidden":r?"true":null,role:"checkbox",class:(0,h.c)(c,{[m]:!0,"in-item":(0,h.h)("ion-item",l),"checkbox-checked":t,"checkbox-disabled":r,"checkbox-indeterminate":b,"legacy-checkbox":!0,interactive:!0}),onClick:this.onClick},(0,e.h)("svg",{class:"checkbox-icon",viewBox:"0 0 24 24",part:"container"},g),(0,e.h)("label",{htmlFor:p},E),(0,e.h)("input",{type:"checkbox","aria-checked":`${t}`,disabled:r,id:p,onChange:this.toggleChecked,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:j=>this.focusEl=j}))}getSVGPath(c,t){let r=(0,e.h)("path",t?{d:"M6 12L18 12",part:"mark"}:{d:"M5.9,12.5l3.8,3.8l8.8-8.8",part:"mark"});return"md"===c&&(r=(0,e.h)("path",t?{d:"M2 12H22",part:"mark"}:{d:"M1.73,12.91 8.1,19.28 22.79,4.59",part:"mark"})),r}get el(){return(0,e.f)(this)}static get watchers(){return{checked:["styleChanged"],disabled:["styleChanged"]}}};let a=0;o.style={ios:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:50%;--border-width:0.0625rem;--border-style:solid;--border-color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.23);--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--size:min(1.625rem, 65.988px)}:host(.checkbox-disabled){opacity:0.3}:host(.in-item.legacy-checkbox){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:8px;margin-inline-end:8px;margin-top:10px;margin-bottom:9px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:8px;margin-bottom:8px}",md:":host{--checkbox-background-checked:var(--ion-color-primary, #3880ff);--border-color-checked:var(--ion-color-primary, #3880ff);--checkmark-color:var(--ion-color-primary-contrast, #fff);--checkmark-width:1;--transition:none;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item){width:100%;height:100%}:host([slot=start]:not(.legacy-checkbox)),:host([slot=end]:not(.legacy-checkbox)){width:auto}:host(.legacy-checkbox){width:var(--size);height:var(--size)}:host(.ion-color){--checkbox-background-checked:var(--ion-color-base);--border-color-checked:var(--ion-color-base);--checkmark-color:var(--ion-color-contrast)}:host(.legacy-checkbox) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0}@supports (inset-inline-start: 0){:host(.legacy-checkbox) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-checkbox) label{left:0}:host-context([dir=rtl]):host(.legacy-checkbox) label,:host-context([dir=rtl]).legacy-checkbox label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-checkbox:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-checkbox) label::-moz-focus-inner{border:0}.checkbox-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-checkbox)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.checkbox-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.checkbox-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.checkbox-icon{border-radius:var(--border-radius);position:relative;-webkit-transition:var(--transition);transition:var(--transition);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--checkbox-background);-webkit-box-sizing:border-box;box-sizing:border-box}:host(.legacy-checkbox) .checkbox-icon{display:block;width:100%;height:100%}:host(:not(.legacy-checkbox)) .checkbox-icon{width:var(--size);height:var(--size)}.checkbox-icon path{fill:none;stroke:var(--checkmark-color);stroke-width:var(--checkmark-width);opacity:0}:host(.checkbox-justify-space-between) .checkbox-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.checkbox-justify-start) .checkbox-wrapper{-ms-flex-pack:start;justify-content:start}:host(.checkbox-justify-end) .checkbox-wrapper{-ms-flex-pack:end;justify-content:end}:host(.checkbox-alignment-start) .checkbox-wrapper{-ms-flex-align:start;align-items:start}:host(.checkbox-alignment-center) .checkbox-wrapper{-ms-flex-align:center;align-items:center}:host(.checkbox-label-placement-start) .checkbox-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.checkbox-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-end) .checkbox-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.checkbox-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.checkbox-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.checkbox-label-placement-stacked) .checkbox-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.checkbox-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.checkbox-label-placement-stacked.checkbox-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).checkbox-label-placement-stacked.checkbox-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.checkbox-label-placement-stacked.checkbox-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}:host(.checkbox-checked) .checkbox-icon,:host(.checkbox-indeterminate) .checkbox-icon{border-color:var(--border-color-checked);background:var(--checkbox-background-checked)}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{opacity:1}:host(.checkbox-disabled){pointer-events:none}:host{--border-radius:calc(var(--size) * .125);--border-width:2px;--border-style:solid;--border-color:rgb(var(--ion-text-color-rgb, 0, 0, 0), 0.6);--checkmark-width:3;--checkbox-background:var(--ion-item-background, var(--ion-background-color, #fff));--transition:background 180ms cubic-bezier(0.4, 0, 0.2, 1);--size:18px}.checkbox-icon path{stroke-dasharray:30;stroke-dashoffset:30}:host(.checkbox-checked) .checkbox-icon path,:host(.checkbox-indeterminate) .checkbox-icon path{stroke-dashoffset:0;-webkit-transition:stroke-dashoffset 90ms linear 90ms;transition:stroke-dashoffset 90ms linear 90ms}:host(.legacy-checkbox.checkbox-disabled),:host(.checkbox-disabled) .label-text-wrapper{opacity:0.38}:host(.checkbox-disabled) .native-wrapper{opacity:0.63}:host(.in-item.legacy-checkbox){margin-left:0;margin-right:0;margin-top:18px;margin-bottom:18px;display:block;position:static}:host(.in-item.legacy-checkbox[slot=start]){-webkit-margin-start:4px;margin-inline-start:4px;-webkit-margin-end:36px;margin-inline-end:36px;margin-top:18px;margin-bottom:18px}"}},4459:(z,d,n)=>{n.d(d,{c:()=>s,g:()=>h,h:()=>f,o:()=>u});var e=n(5861);const f=(i,o)=>null!==o.closest(i),s=(i,o)=>"string"==typeof i&&i.length>0?Object.assign({"ion-color":!0,[`ion-color-${i}`]:!0},o):o,h=i=>{const o={};return(i=>void 0!==i?(Array.isArray(i)?i:i.split(" ")).filter(a=>null!=a).map(a=>a.trim()).filter(a=>""!==a):[])(i).forEach(a=>o[a]=!0),o},k=/^[a-z][a-z0-9+\-.]*:/,u=function(){var i=(0,e.Z)(function*(o,a,c,t){if(null!=o&&"#"!==o[0]&&!k.test(o)){const r=document.querySelector("ion-router");if(r)return a?.preventDefault(),r.push(o,c,t)}return!1});return function(a,c,t,r){return i.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/7666.24537b2ea8d6bb4c.js b/7666.24537b2ea8d6bb4c.js new file mode 100644 index 00000000..277b7ca0 --- /dev/null +++ b/7666.24537b2ea8d6bb4c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7666],{7666:(W,M,d)=>{d.r(M),d.d(M,{ion_range:()=>T});var L=d(5861),r=d(9942),z=d(7946),P=d(9749),h=d(512),y=d(2400),S=d(4162),s=d(4459),l=d(5551);const T=class{constructor(t){var e=this;(0,r.r)(this,t),this.ionChange=(0,r.d)(this,"ionChange",7),this.ionInput=(0,r.d)(this,"ionInput",7),this.ionStyle=(0,r.d)(this,"ionStyle",7),this.ionFocus=(0,r.d)(this,"ionFocus",7),this.ionBlur=(0,r.d)(this,"ionBlur",7),this.ionKnobMoveStart=(0,r.d)(this,"ionKnobMoveStart",7),this.ionKnobMoveEnd=(0,r.d)(this,"ionKnobMoveEnd",7),this.rangeId="ion-r-"+$++,this.didLoad=!1,this.noUpdate=!1,this.hasFocus=!1,this.inheritedAttributes={},this.contentEl=null,this.initialContentScrollY=!0,this.hasLoggedDeprecationWarning=!1,this.clampBounds=n=>(0,h.l)(this.min,n,this.max),this.ensureValueInBounds=n=>this.dualKnobs?{lower:this.clampBounds(n.lower),upper:this.clampBounds(n.upper)}:this.clampBounds(n),this.setupGesture=(0,L.Z)(function*(){const n=e.rangeSlider;n&&(e.gesture=(yield Promise.resolve().then(d.bind(d,6535))).createGesture({el:n,gestureName:"range",gesturePriority:100,threshold:0,onStart:a=>e.onStart(a),onMove:a=>e.onMove(a),onEnd:a=>e.onEnd(a)}),e.gesture.enable(!e.disabled))}),this.handleKeyboard=(n,a)=>{const{ensureValueInBounds:i}=this;let o=this.step;o=o>0?o:1,o/=this.max-this.min,a||(o*=-1),"A"===n?this.ratioA=(0,h.l)(0,this.ratioA+o,1):this.ratioB=(0,h.l)(0,this.ratioB+o,1),this.ionKnobMoveStart.emit({value:i(this.value)}),this.updateValue(),this.emitValueChange(),this.ionKnobMoveEnd.emit({value:i(this.value)})},this.onBlur=()=>{this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit(),this.emitStyle())},this.onFocus=()=>{this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit(),this.emitStyle())},this.ratioA=0,this.ratioB=0,this.pressedKnob=void 0,this.color=void 0,this.debounce=void 0,this.name=this.rangeId,this.label=void 0,this.dualKnobs=!1,this.min=0,this.max=100,this.pin=!1,this.pinFormatter=n=>Math.round(n),this.snaps=!1,this.step=1,this.ticks=!0,this.activeBarStart=void 0,this.disabled=!1,this.value=0,this.labelPlacement="start",this.legacy=void 0}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:n}=this;this.ionInput=void 0===e?n??t:(0,h.j)(t,e)}minChanged(){this.noUpdate||this.updateRatio()}maxChanged(){this.noUpdate||this.updateRatio()}activeBarStartChanged(){const{activeBarStart:t}=this;void 0!==t&&(t>this.max?((0,y.p)(`Range: The value of activeBarStart (${t}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.max):t
Volume
\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,y.p)('ion-range is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new range syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{el:t,pressedKnob:e,disabled:n,pin:a,rangeId:i}=this,o=(0,l.b)(this);return(0,h.d)(!0,t,this.name,JSON.stringify(this.getValue()),n),(0,r.h)(r.H,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:i,class:(0,s.c)(this.color,{[o]:!0,"in-item":(0,s.h)("ion-item",t),"range-disabled":n,"range-pressed":void 0!==e,"range-has-pin":a,"legacy-range":!0})},(0,r.h)("slot",{name:"start"}),this.renderRangeSlider(),(0,r.h)("slot",{name:"end"}))}get hasStartSlotContent(){return null!==this.el.querySelector('[slot="start"]')}get hasEndSlotContent(){return null!==this.el.querySelector('[slot="end"]')}renderRange(){const{disabled:t,el:e,hasLabel:n,rangeId:a,pin:i,pressedKnob:o,labelPlacement:p,label:k}=this,f=(0,s.h)("ion-item",e),m=f&&!(n&&("start"===p||"fixed"===p)||this.hasStartSlotContent),E=f&&!(n&&"end"===p||this.hasEndSlotContent),C=(0,l.b)(this);return(0,h.d)(!0,e,this.name,JSON.stringify(this.getValue()),t),(0,r.h)(r.H,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:a,class:(0,s.c)(this.color,{[C]:!0,"in-item":f,"range-disabled":t,"range-pressed":void 0!==o,"range-has-pin":i,[`range-label-placement-${p}`]:!0,"range-item-start-adjustment":m,"range-item-end-adjustment":E})},(0,r.h)("label",{class:"range-wrapper",id:"range-label"},(0,r.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!n},part:"label"},void 0!==k?(0,r.h)("div",{class:"label-text"},k):(0,r.h)("slot",{name:"label"})),(0,r.h)("div",{class:"native-wrapper"},(0,r.h)("slot",{name:"start"}),this.renderRangeSlider(),(0,r.h)("slot",{name:"end"}))))}get hasLabel(){return void 0!==this.label||null!==this.el.querySelector('[slot="label"]')}renderRangeSlider(){var t;const{min:e,max:n,step:a,el:i,handleKeyboard:o,pressedKnob:p,disabled:k,pin:f,ratioLower:u,ratioUpper:m,inheritedAttributes:v,rangeId:E,pinFormatter:C}=this;let{labelText:w}=(0,h.e)(i,E);null==w&&(w=v["aria-label"]);let b=100*u+"%",x=100-100*m+"%";const I=(0,S.i)(this.el),D=I?"right":"left",N=c=>({[D]:c[D]});!1===this.dualKnobs&&(this.valA<(null!==(t=this.activeBarStart)&&void 0!==t?t:this.min)?(b=100*m+"%",x=100-100*u+"%"):(b=100*u+"%",x=100-100*m+"%"));const X={[D]:b,[I?"left":"right"]:x},F=[];if(this.snaps&&this.ticks)for(let c=e;c<=n;c+=a){const R=_(c,e,n),H=Math.min(u,m),Y=Math.max(u,m),V={ratio:R,active:R>=H&&R<=Y};V[D]=100*R+"%",F.push(V)}let O;return!this.legacyFormController.hasLegacyControl()&&this.hasLabel&&(O="range-label"),(0,r.h)("div",{class:"range-slider",ref:c=>this.rangeSlider=c},F.map(c=>(0,r.h)("div",{style:N(c),role:"presentation",class:{"range-tick":!0,"range-tick-active":c.active},part:c.active?"tick-active":"tick"})),(0,r.h)("div",{class:"range-bar-container"},(0,r.h)("div",{class:"range-bar",role:"presentation",part:"bar"}),(0,r.h)("div",{class:{"range-bar":!0,"range-bar-active":!0,"has-ticks":F.length>0},role:"presentation",style:X,part:"bar-active"})),U(I,{knob:"A",pressed:"A"===p,value:this.valA,ratio:this.ratioA,pin:f,pinFormatter:C,disabled:k,handleKeyboard:o,min:e,max:n,labelText:w,labelledBy:O}),this.dualKnobs&&U(I,{knob:"B",pressed:"B"===p,value:this.valB,ratio:this.ratioB,pin:f,pinFormatter:C,disabled:k,handleKeyboard:o,min:e,max:n,labelText:w,labelledBy:O}))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyRange():this.renderRange()}get el(){return(0,r.f)(this)}static get watchers(){return{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}},U=(t,{knob:e,value:n,ratio:a,min:i,max:o,disabled:p,pressed:k,pin:f,handleKeyboard:u,labelText:m,labelledBy:v,pinFormatter:E})=>{const C=t?"right":"left";return(0,r.h)("div",{onKeyDown:b=>{const x=b.key;"ArrowLeft"===x||"ArrowDown"===x?(u(e,!1),b.preventDefault(),b.stopPropagation()):("ArrowRight"===x||"ArrowUp"===x)&&(u(e,!0),b.preventDefault(),b.stopPropagation())},class:{"range-knob-handle":!0,"range-knob-a":"A"===e,"range-knob-b":"B"===e,"range-knob-pressed":k,"range-knob-min":n===i,"range-knob-max":n===o,"ion-activatable":!0,"ion-focusable":!0},style:(()=>{const b={};return b[C]=100*a+"%",b})(),role:"slider",tabindex:p?-1:0,"aria-label":void 0===v?m:null,"aria-labelledby":void 0!==v?v:null,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":p?"true":null,"aria-valuenow":n},f&&(0,r.h)("div",{class:"range-pin",role:"presentation",part:"pin"},E(n)),(0,r.h)("div",{class:"range-knob",role:"presentation",part:"knob"}))},j=(t,e,n,a)=>{let i=(n-e)*t;return a>0&&(i=Math.round(i/a)*a+e),function A(t,...e){const n=Math.max(...e.map(a=>function g(t){return t%1==0?0:t.toString().split(".")[1].length}(a)));return Number(t.toFixed(n))}((0,h.l)(e,i,n),e,n,a)},_=(t,e,n)=>(0,h.l)(0,(t-e)/(n-e),1);let $=0;T.style={ios:":host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}@supports (inset-inline-start: 0){.range-knob-handle{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob-handle{left:0}:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}[dir=rtl] .range-knob-handle{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-knob-handle{left:unset}[dir=rtl] .range-knob-handle{left:unset}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset}}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar-container{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}@supports (inset-inline-start: 0){.range-bar-container{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-bar-container{left:0}:host-context([dir=rtl]) .range-bar-container{left:unset;right:unset;right:0}[dir=rtl] .range-bar-container{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-bar-container{left:unset}[dir=rtl] .range-bar-container{left:unset}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset}}.range-bar{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}.range-knob{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}@supports (inset-inline-start: 0){.range-knob{inset-inline-start:calc(50% - var(--knob-size) / 2)}}@supports not (inset-inline-start: 0){.range-knob{left:calc(50% - var(--knob-size) / 2)}:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}}}:host-context([dir=rtl]) .range-knob{left:unset}[dir=rtl] .range-knob{left:unset}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset}}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}.range-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}::slotted([slot=label]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}:host(.range-label-placement-start) .range-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.range-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-end) .range-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.range-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.range-label-placement-stacked) .range-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}:host(.range-label-placement-stacked) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper,:host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.in-item.range-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.range-label-placement-stacked) .native-wrapper{margin-bottom:0px}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0px 0.5px 4px rgba(0, 0, 0, 0.12), 0px 6px 13px rgba(0, 0, 0, 0.12);--knob-size:26px;--bar-height:4px;--bar-background:var(--ion-color-step-900, #e6e6e6);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:2px;--height:42px}:host(.legacy-range){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host(.range-item-start-adjustment){-webkit-padding-start:24px;padding-inline-start:24px}:host(.range-item-end-adjustment){-webkit-padding-end:24px;padding-inline-end:24px}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-has-pin:not(.range-label-placement-stacked)){padding-top:calc(8px + 0.75rem)}:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper{margin-bottom:calc(8px + 0.75rem)}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-bar-active.has-ticks{border-radius:0;-webkit-margin-start:-2px;margin-inline-start:-2px;-webkit-margin-end:-2px;margin-inline-end:-2px}.range-tick{-webkit-margin-start:-2px;margin-inline-start:-2px;border-radius:0;position:absolute;top:17px;width:4px;height:8px;background:var(--ion-color-step-900, #e6e6e6);pointer-events:none}.range-tick-active{background:var(--bar-background-active)}.range-pin{-webkit-transform:translate3d(0, 100%, 0) scale(0.01);transform:translate3d(0, 100%, 0) scale(0.01);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:0.75rem;text-align:center}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0, calc(-100% + 11px), 0) scale(1);transform:translate3d(0, calc(-100% + 11px), 0) scale(1)}:host(.range-disabled){opacity:0.3}",md:':host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}@supports (inset-inline-start: 0){.range-knob-handle{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob-handle{left:0}:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}[dir=rtl] .range-knob-handle{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-knob-handle{left:unset}[dir=rtl] .range-knob-handle{left:unset}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset}}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar-container{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}@supports (inset-inline-start: 0){.range-bar-container{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-bar-container{left:0}:host-context([dir=rtl]) .range-bar-container{left:unset;right:unset;right:0}[dir=rtl] .range-bar-container{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-bar-container{left:unset}[dir=rtl] .range-bar-container{left:unset}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset}}.range-bar{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}.range-knob{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}@supports (inset-inline-start: 0){.range-knob{inset-inline-start:calc(50% - var(--knob-size) / 2)}}@supports not (inset-inline-start: 0){.range-knob{left:calc(50% - var(--knob-size) / 2)}:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}}}:host-context([dir=rtl]) .range-knob{left:unset}[dir=rtl] .range-knob{left:unset}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset}}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}.range-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}::slotted([slot=label]){max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}:host(.range-label-placement-start) .range-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.range-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-end) .range-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.range-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.range-label-placement-stacked) .range-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}:host(.range-label-placement-stacked) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper,:host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.in-item.range-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.range-label-placement-stacked) .native-wrapper{margin-bottom:0px}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff)}:host(.legacy-range) ::slotted([slot=label]){font-size:initial}:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=start]),:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=end]),:host(:not(.legacy-range)) .native-wrapper{font-size:0.75rem}:host(.legacy-range){-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:8px;padding-bottom:8px;font-size:0.75rem}:host(.range-item-start-adjustment){-webkit-padding-start:18px;padding-inline-start:18px}:host(.range-item-end-adjustment){-webkit-padding-end:18px;padding-inline-end:18px}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-knob::before,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-has-pin:not(.range-label-placement-stacked)){padding-top:1.75rem}:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper{margin-bottom:1.75rem}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}.range-knob::before{border-radius:50%;position:absolute;width:var(--knob-size);height:var(--knob-size);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:0.267s cubic-bezier(0, 0, 0.58, 1);transition:0.267s cubic-bezier(0, 0, 0.58, 1);background:var(--knob-background);content:"";opacity:0.13;pointer-events:none}@supports (inset-inline-start: 0){.range-knob::before{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob::before{left:0}:host-context([dir=rtl]) .range-knob::before{left:unset;right:unset;right:0}[dir=rtl] .range-knob::before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob::before:dir(rtl){left:unset;right:unset;right:0}}}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0, 0, 0) scale(0.01);transform:translate3d(0, 0, 0) scale(0.01);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:1.75rem;height:1.75rem;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color)}.range-pin::before{bottom:-1px;-webkit-margin-start:-13px;margin-inline-start:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:"";z-index:-1}@supports (inset-inline-start: 0){.range-pin::before{inset-inline-start:50%}}@supports not (inset-inline-start: 0){.range-pin::before{left:50%}:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}[dir=rtl] .range-pin::before{left:unset;right:unset;right:50%}@supports selector(:dir(rtl)){.range-pin::before:dir(rtl){left:unset;right:unset;right:50%}}}:host-context([dir=rtl]) .range-pin::before{left:unset}[dir=rtl] .range-pin::before{left:unset}@supports selector(:dir(rtl)){.range-pin::before:dir(rtl){left:unset}}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0, calc(-100% + 4px), 0) scale(1);transform:translate3d(0, calc(-100% + 4px), 0) scale(1)}@media (any-hover: hover){.range-knob-handle:hover .range-knob:before{-webkit-transform:scale(2);transform:scale(2);opacity:0.13}}.range-knob-handle.ion-activated .range-knob:before,.range-knob-handle.ion-focused .range-knob:before,.range-knob-handle.range-knob-pressed .range-knob:before{-webkit-transform:scale(2);transform:scale(2)}.range-knob-handle.ion-focused .range-knob::before{opacity:0.13}.range-knob-handle.ion-activated .range-knob::before,.range-knob-handle.range-knob-pressed .range-knob::before{opacity:0.25}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob,:host(:not(.range-has-pin)) .range-knob-handle.ion-focused .range-knob{-webkit-transform:scale(1);transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .label-text-wrapper,:host(.range-disabled) ::slotted([slot=start]),:host(.range-disabled) ::slotted([slot=end]){opacity:0.38}'}},4459:(W,M,d)=>{d.d(M,{c:()=>z,g:()=>h,h:()=>r,o:()=>S});var L=d(5861);const r=(s,l)=>null!==l.closest(s),z=(s,l)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},l):l,h=s=>{const l={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(g=>null!=g).map(g=>g.trim()).filter(g=>""!==g):[])(s).forEach(g=>l[g]=!0),l},y=/^[a-z][a-z0-9+\-.]*:/,S=function(){var s=(0,L.Z)(function*(l,g,A,K){if(null!=l&&"#"!==l[0]&&!y.test(l)){const B=document.querySelector("ion-router");if(B)return g?.preventDefault(),B.push(l,A,K)}return!1});return function(g,A,K,B){return s.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/7666.29d433eae6578207.js b/7666.29d433eae6578207.js deleted file mode 100644 index b1bb1f6f..00000000 --- a/7666.29d433eae6578207.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7666],{7666:(W,M,d)=>{d.r(M),d.d(M,{ion_range:()=>T});var L=d(5861),r=d(5349),z=d(2874),P=d(9988),h=d(839),y=d(6710),S=d(5085),s=d(3567),l=d(3882);const T=class{constructor(t){var e=this;(0,r.r)(this,t),this.ionChange=(0,r.d)(this,"ionChange",7),this.ionInput=(0,r.d)(this,"ionInput",7),this.ionStyle=(0,r.d)(this,"ionStyle",7),this.ionFocus=(0,r.d)(this,"ionFocus",7),this.ionBlur=(0,r.d)(this,"ionBlur",7),this.ionKnobMoveStart=(0,r.d)(this,"ionKnobMoveStart",7),this.ionKnobMoveEnd=(0,r.d)(this,"ionKnobMoveEnd",7),this.rangeId="ion-r-"+$++,this.didLoad=!1,this.noUpdate=!1,this.hasFocus=!1,this.inheritedAttributes={},this.contentEl=null,this.initialContentScrollY=!0,this.hasLoggedDeprecationWarning=!1,this.clampBounds=n=>(0,h.l)(this.min,n,this.max),this.ensureValueInBounds=n=>this.dualKnobs?{lower:this.clampBounds(n.lower),upper:this.clampBounds(n.upper)}:this.clampBounds(n),this.setupGesture=(0,L.Z)(function*(){const n=e.rangeSlider;n&&(e.gesture=(yield Promise.resolve().then(d.bind(d,9203))).createGesture({el:n,gestureName:"range",gesturePriority:100,threshold:0,onStart:a=>e.onStart(a),onMove:a=>e.onMove(a),onEnd:a=>e.onEnd(a)}),e.gesture.enable(!e.disabled))}),this.handleKeyboard=(n,a)=>{const{ensureValueInBounds:i}=this;let o=this.step;o=o>0?o:1,o/=this.max-this.min,a||(o*=-1),"A"===n?this.ratioA=(0,h.l)(0,this.ratioA+o,1):this.ratioB=(0,h.l)(0,this.ratioB+o,1),this.ionKnobMoveStart.emit({value:i(this.value)}),this.updateValue(),this.emitValueChange(),this.ionKnobMoveEnd.emit({value:i(this.value)})},this.onBlur=()=>{this.hasFocus&&(this.hasFocus=!1,this.ionBlur.emit(),this.emitStyle())},this.onFocus=()=>{this.hasFocus||(this.hasFocus=!0,this.ionFocus.emit(),this.emitStyle())},this.ratioA=0,this.ratioB=0,this.pressedKnob=void 0,this.color=void 0,this.debounce=void 0,this.name=this.rangeId,this.label=void 0,this.dualKnobs=!1,this.min=0,this.max=100,this.pin=!1,this.pinFormatter=n=>Math.round(n),this.snaps=!1,this.step=1,this.ticks=!0,this.activeBarStart=void 0,this.disabled=!1,this.value=0,this.labelPlacement="start",this.legacy=void 0}debounceChanged(){const{ionInput:t,debounce:e,originalIonInput:n}=this;this.ionInput=void 0===e?n??t:(0,h.j)(t,e)}minChanged(){this.noUpdate||this.updateRatio()}maxChanged(){this.noUpdate||this.updateRatio()}activeBarStartChanged(){const{activeBarStart:t}=this;void 0!==t&&(t>this.max?((0,y.p)(`Range: The value of activeBarStart (${t}) is greater than the max (${this.max}). Valid values are greater than or equal to the min value and less than or equal to the max value.`,this.el),this.activeBarStart=this.max):t
Volume
\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,y.p)('ion-range is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new range syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{el:t,pressedKnob:e,disabled:n,pin:a,rangeId:i}=this,o=(0,l.b)(this);return(0,h.d)(!0,t,this.name,JSON.stringify(this.getValue()),n),(0,r.h)(r.H,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:i,class:(0,s.c)(this.color,{[o]:!0,"in-item":(0,s.h)("ion-item",t),"range-disabled":n,"range-pressed":void 0!==e,"range-has-pin":a,"legacy-range":!0})},(0,r.h)("slot",{name:"start"}),this.renderRangeSlider(),(0,r.h)("slot",{name:"end"}))}get hasStartSlotContent(){return null!==this.el.querySelector('[slot="start"]')}get hasEndSlotContent(){return null!==this.el.querySelector('[slot="end"]')}renderRange(){const{disabled:t,el:e,hasLabel:n,rangeId:a,pin:i,pressedKnob:o,labelPlacement:p,label:k}=this,f=(0,s.h)("ion-item",e),m=f&&!(n&&("start"===p||"fixed"===p)||this.hasStartSlotContent),E=f&&!(n&&"end"===p||this.hasEndSlotContent),C=(0,l.b)(this);return(0,h.d)(!0,e,this.name,JSON.stringify(this.getValue()),t),(0,r.h)(r.H,{onFocusin:this.onFocus,onFocusout:this.onBlur,id:a,class:(0,s.c)(this.color,{[C]:!0,"in-item":f,"range-disabled":t,"range-pressed":void 0!==o,"range-has-pin":i,[`range-label-placement-${p}`]:!0,"range-item-start-adjustment":m,"range-item-end-adjustment":E})},(0,r.h)("label",{class:"range-wrapper",id:"range-label"},(0,r.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!n}},void 0!==k?(0,r.h)("div",{class:"label-text"},k):(0,r.h)("slot",{name:"label"})),(0,r.h)("div",{class:"native-wrapper"},(0,r.h)("slot",{name:"start"}),this.renderRangeSlider(),(0,r.h)("slot",{name:"end"}))))}get hasLabel(){return void 0!==this.label||null!==this.el.querySelector('[slot="label"]')}renderRangeSlider(){var t;const{min:e,max:n,step:a,el:i,handleKeyboard:o,pressedKnob:p,disabled:k,pin:f,ratioLower:u,ratioUpper:m,inheritedAttributes:v,rangeId:E,pinFormatter:C}=this;let{labelText:w}=(0,h.e)(i,E);null==w&&(w=v["aria-label"]);let b=100*u+"%",x=100-100*m+"%";const I=(0,S.i)(this.el),D=I?"right":"left",N=c=>({[D]:c[D]});!1===this.dualKnobs&&(this.valA<(null!==(t=this.activeBarStart)&&void 0!==t?t:this.min)?(b=100*m+"%",x=100-100*u+"%"):(b=100*u+"%",x=100-100*m+"%"));const X={[D]:b,[I?"left":"right"]:x},F=[];if(this.snaps&&this.ticks)for(let c=e;c<=n;c+=a){const R=_(c,e,n),H=Math.min(u,m),Y=Math.max(u,m),V={ratio:R,active:R>=H&&R<=Y};V[D]=100*R+"%",F.push(V)}let O;return!this.legacyFormController.hasLegacyControl()&&this.hasLabel&&(O="range-label"),(0,r.h)("div",{class:"range-slider",ref:c=>this.rangeSlider=c},F.map(c=>(0,r.h)("div",{style:N(c),role:"presentation",class:{"range-tick":!0,"range-tick-active":c.active},part:c.active?"tick-active":"tick"})),(0,r.h)("div",{class:"range-bar-container"},(0,r.h)("div",{class:"range-bar",role:"presentation",part:"bar"}),(0,r.h)("div",{class:{"range-bar":!0,"range-bar-active":!0,"has-ticks":F.length>0},role:"presentation",style:X,part:"bar-active"})),U(I,{knob:"A",pressed:"A"===p,value:this.valA,ratio:this.ratioA,pin:f,pinFormatter:C,disabled:k,handleKeyboard:o,min:e,max:n,labelText:w,labelledBy:O}),this.dualKnobs&&U(I,{knob:"B",pressed:"B"===p,value:this.valB,ratio:this.ratioB,pin:f,pinFormatter:C,disabled:k,handleKeyboard:o,min:e,max:n,labelText:w,labelledBy:O}))}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyRange():this.renderRange()}get el(){return(0,r.f)(this)}static get watchers(){return{debounce:["debounceChanged"],min:["minChanged"],max:["maxChanged"],activeBarStart:["activeBarStartChanged"],disabled:["disabledChanged"],value:["valueChanged"]}}},U=(t,{knob:e,value:n,ratio:a,min:i,max:o,disabled:p,pressed:k,pin:f,handleKeyboard:u,labelText:m,labelledBy:v,pinFormatter:E})=>{const C=t?"right":"left";return(0,r.h)("div",{onKeyDown:b=>{const x=b.key;"ArrowLeft"===x||"ArrowDown"===x?(u(e,!1),b.preventDefault(),b.stopPropagation()):("ArrowRight"===x||"ArrowUp"===x)&&(u(e,!0),b.preventDefault(),b.stopPropagation())},class:{"range-knob-handle":!0,"range-knob-a":"A"===e,"range-knob-b":"B"===e,"range-knob-pressed":k,"range-knob-min":n===i,"range-knob-max":n===o,"ion-activatable":!0,"ion-focusable":!0},style:(()=>{const b={};return b[C]=100*a+"%",b})(),role:"slider",tabindex:p?-1:0,"aria-label":void 0===v?m:null,"aria-labelledby":void 0!==v?v:null,"aria-valuemin":i,"aria-valuemax":o,"aria-disabled":p?"true":null,"aria-valuenow":n},f&&(0,r.h)("div",{class:"range-pin",role:"presentation",part:"pin"},E(n)),(0,r.h)("div",{class:"range-knob",role:"presentation",part:"knob"}))},j=(t,e,n,a)=>{let i=(n-e)*t;return a>0&&(i=Math.round(i/a)*a+e),function A(t,...e){const n=Math.max(...e.map(a=>function g(t){return t%1==0?0:t.toString().split(".")[1].length}(a)));return Number(t.toFixed(n))}((0,h.l)(e,i,n),e,n,a)},_=(t,e,n)=>(0,h.l)(0,(t-e)/(n-e),1);let $=0;T.style={ios:":host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}@supports (inset-inline-start: 0){.range-knob-handle{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob-handle{left:0}:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}[dir=rtl] .range-knob-handle{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-knob-handle{left:unset}[dir=rtl] .range-knob-handle{left:unset}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset}}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar-container{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}@supports (inset-inline-start: 0){.range-bar-container{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-bar-container{left:0}:host-context([dir=rtl]) .range-bar-container{left:unset;right:unset;right:0}[dir=rtl] .range-bar-container{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-bar-container{left:unset}[dir=rtl] .range-bar-container{left:unset}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset}}.range-bar{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}.range-knob{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}@supports (inset-inline-start: 0){.range-knob{inset-inline-start:calc(50% - var(--knob-size) / 2)}}@supports not (inset-inline-start: 0){.range-knob{left:calc(50% - var(--knob-size) / 2)}:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}}}:host-context([dir=rtl]) .range-knob{left:unset}[dir=rtl] .range-knob{left:unset}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset}}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}.range-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}::slotted([slot=label]){max-width:200px;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}:host(.range-label-placement-start) .range-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.range-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-end) .range-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.range-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.range-label-placement-stacked) .range-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}:host(.range-label-placement-stacked) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper,:host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.in-item.range-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.range-label-placement-stacked) .native-wrapper{margin-bottom:0px}:host{--knob-border-radius:50%;--knob-background:#ffffff;--knob-box-shadow:0px 0.5px 4px rgba(0, 0, 0, 0.12), 0px 6px 13px rgba(0, 0, 0, 0.12);--knob-size:26px;--bar-height:4px;--bar-background:var(--ion-color-step-900, #e6e6e6);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:2px;--height:42px}:host(.legacy-range){-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:8px;padding-bottom:8px}:host(.range-item-start-adjustment){-webkit-padding-start:24px;padding-inline-start:24px}:host(.range-item-end-adjustment){-webkit-padding-end:24px;padding-inline-end:24px}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-tick-active{background:var(--ion-color-base)}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-has-pin:not(.range-label-placement-stacked)){padding-top:calc(8px + 0.75rem)}:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper{margin-bottom:calc(8px + 0.75rem)}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-bar-active.has-ticks{border-radius:0;-webkit-margin-start:-2px;margin-inline-start:-2px;-webkit-margin-end:-2px;margin-inline-end:-2px}.range-tick{-webkit-margin-start:-2px;margin-inline-start:-2px;border-radius:0;position:absolute;top:17px;width:4px;height:8px;background:var(--ion-color-step-900, #e6e6e6);pointer-events:none}.range-tick-active{background:var(--bar-background-active)}.range-pin{-webkit-transform:translate3d(0, 100%, 0) scale(0.01);transform:translate3d(0, 100%, 0) scale(0.01);-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:8px;padding-bottom:8px;min-width:28px;-webkit-transition:-webkit-transform 120ms ease;transition:-webkit-transform 120ms ease;transition:transform 120ms ease;transition:transform 120ms ease, -webkit-transform 120ms ease;background:transparent;color:var(--ion-text-color, #000);font-size:0.75rem;text-align:center}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0, calc(-100% + 11px), 0) scale(1);transform:translate3d(0, calc(-100% + 11px), 0) scale(1)}:host(.range-disabled){opacity:0.3}",md:':host{--knob-handle-size:calc(var(--knob-size) * 2);display:-ms-flexbox;display:flex;position:relative;-ms-flex:3;flex:3;-ms-flex-align:center;align-items:center;font-family:var(--ion-font-family, inherit);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.range-disabled){pointer-events:none}::slotted(ion-label){-ms-flex:initial;flex:initial}::slotted(ion-icon[slot]){font-size:24px}.range-slider{position:relative;-ms-flex:1;flex:1;width:100%;height:var(--height);contain:size layout style;cursor:-webkit-grab;cursor:grab;-ms-touch-action:pan-y;touch-action:pan-y}:host(.range-pressed) .range-slider{cursor:-webkit-grabbing;cursor:grabbing}.range-pin{position:absolute;background:var(--ion-color-base);color:var(--ion-color-contrast);text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.range-knob-handle{top:calc((var(--height) - var(--knob-handle-size)) / 2);-webkit-margin-start:calc(0px - var(--knob-handle-size) / 2);margin-inline-start:calc(0px - var(--knob-handle-size) / 2);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-pack:center;justify-content:center;width:var(--knob-handle-size);height:var(--knob-handle-size);text-align:center}@supports (inset-inline-start: 0){.range-knob-handle{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob-handle{left:0}:host-context([dir=rtl]) .range-knob-handle{left:unset;right:unset;right:0}[dir=rtl] .range-knob-handle{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-knob-handle{left:unset}[dir=rtl] .range-knob-handle{left:unset}@supports selector(:dir(rtl)){.range-knob-handle:dir(rtl){left:unset}}.range-knob-handle:active,.range-knob-handle:focus{outline:none}.range-bar-container{border-radius:var(--bar-border-radius);top:calc((var(--height) - var(--bar-height)) / 2);position:absolute;width:100%;height:var(--bar-height)}@supports (inset-inline-start: 0){.range-bar-container{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-bar-container{left:0}:host-context([dir=rtl]) .range-bar-container{left:unset;right:unset;right:0}[dir=rtl] .range-bar-container{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset;right:unset;right:0}}}:host-context([dir=rtl]) .range-bar-container{left:unset}[dir=rtl] .range-bar-container{left:unset}@supports selector(:dir(rtl)){.range-bar-container:dir(rtl){left:unset}}.range-bar{border-radius:var(--bar-border-radius);position:absolute;width:100%;height:var(--bar-height);background:var(--bar-background);pointer-events:none}.range-knob{border-radius:var(--knob-border-radius);top:calc(50% - var(--knob-size) / 2);position:absolute;width:var(--knob-size);height:var(--knob-size);background:var(--knob-background);-webkit-box-shadow:var(--knob-box-shadow);box-shadow:var(--knob-box-shadow);z-index:2;pointer-events:none}@supports (inset-inline-start: 0){.range-knob{inset-inline-start:calc(50% - var(--knob-size) / 2)}}@supports not (inset-inline-start: 0){.range-knob{left:calc(50% - var(--knob-size) / 2)}:host-context([dir=rtl]) .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}[dir=rtl] .range-knob{left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset;right:unset;right:calc(50% - var(--knob-size) / 2)}}}:host-context([dir=rtl]) .range-knob{left:unset}[dir=rtl] .range-knob{left:unset}@supports selector(:dir(rtl)){.range-knob:dir(rtl){left:unset}}:host(.range-pressed) .range-bar-active{will-change:left, right}:host(.in-item){width:100%}:host([slot=start]),:host([slot=end]){width:auto}:host(.in-item) ::slotted(ion-label){-ms-flex-item-align:center;align-self:center}.range-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center;height:inherit}::slotted([slot=label]){max-width:200px;pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-align:center;align-items:center}:host(.range-label-placement-start) .range-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.range-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-end) .range-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.range-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:0;margin-bottom:0}:host(.range-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.range-label-placement-stacked) .range-wrapper{-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch}:host(.range-label-placement-stacked) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top;-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host-context([dir=rtl]):host(.range-label-placement-stacked) .label-text-wrapper,:host-context([dir=rtl]).range-label-placement-stacked .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.range-label-placement-stacked:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.in-item.range-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.range-label-placement-stacked) .native-wrapper{margin-bottom:0px}:host{--knob-border-radius:50%;--knob-background:var(--bar-background-active);--knob-box-shadow:none;--knob-size:18px;--bar-height:2px;--bar-background:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.26);--bar-background-active:var(--ion-color-primary, #3880ff);--bar-border-radius:0;--height:42px;--pin-background:var(--ion-color-primary, #3880ff);--pin-color:var(--ion-color-primary-contrast, #fff)}:host(.legacy-range) ::slotted([slot=label]){font-size:initial}:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=start]),:host(:not(.legacy-range)) ::slotted(:not(ion-icon)[slot=end]),:host(:not(.legacy-range)) .native-wrapper{font-size:0.75rem}:host(.legacy-range){-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:8px;padding-bottom:8px;font-size:0.75rem}:host(.range-item-start-adjustment){-webkit-padding-start:18px;padding-inline-start:18px}:host(.range-item-end-adjustment){-webkit-padding-end:18px;padding-inline-end:18px}:host(.ion-color) .range-bar{background:rgba(var(--ion-color-base-rgb), 0.26)}:host(.ion-color) .range-bar-active,:host(.ion-color) .range-knob,:host(.ion-color) .range-knob::before,:host(.ion-color) .range-pin,:host(.ion-color) .range-pin::before,:host(.ion-color) .range-tick{background:var(--ion-color-base);color:var(--ion-color-contrast)}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}:host(.range-has-pin:not(.range-label-placement-stacked)){padding-top:1.75rem}:host(.range-has-pin.range-label-placement-stacked) .label-text-wrapper{margin-bottom:1.75rem}.range-bar-active{bottom:0;width:auto;background:var(--bar-background-active)}.range-knob{-webkit-transform:scale(0.67);transform:scale(0.67);-webkit-transition-duration:120ms;transition-duration:120ms;-webkit-transition-property:background-color, border, -webkit-transform;transition-property:background-color, border, -webkit-transform;transition-property:transform, background-color, border;transition-property:transform, background-color, border, -webkit-transform;-webkit-transition-timing-function:ease;transition-timing-function:ease;z-index:2}.range-knob::before{border-radius:50%;position:absolute;width:var(--knob-size);height:var(--knob-size);-webkit-transform:scale(1);transform:scale(1);-webkit-transition:0.267s cubic-bezier(0, 0, 0.58, 1);transition:0.267s cubic-bezier(0, 0, 0.58, 1);background:var(--knob-background);content:"";opacity:0.13;pointer-events:none}@supports (inset-inline-start: 0){.range-knob::before{inset-inline-start:0}}@supports not (inset-inline-start: 0){.range-knob::before{left:0}:host-context([dir=rtl]) .range-knob::before{left:unset;right:unset;right:0}[dir=rtl] .range-knob::before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){.range-knob::before:dir(rtl){left:unset;right:unset;right:0}}}.range-tick{position:absolute;top:calc((var(--height) - var(--bar-height)) / 2);width:var(--bar-height);height:var(--bar-height);background:var(--bar-background-active);z-index:1;pointer-events:none}.range-tick-active{background:transparent}.range-pin{padding-left:0;padding-right:0;padding-top:8px;padding-bottom:8px;border-radius:50%;-webkit-transform:translate3d(0, 0, 0) scale(0.01);transform:translate3d(0, 0, 0) scale(0.01);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:1.75rem;height:1.75rem;-webkit-transition:background 120ms ease, -webkit-transform 120ms ease;transition:background 120ms ease, -webkit-transform 120ms ease;transition:transform 120ms ease, background 120ms ease;transition:transform 120ms ease, background 120ms ease, -webkit-transform 120ms ease;background:var(--pin-background);color:var(--pin-color)}.range-pin::before{bottom:-1px;-webkit-margin-start:-13px;margin-inline-start:-13px;border-radius:50% 50% 50% 0;position:absolute;width:26px;height:26px;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transition:background 120ms ease;transition:background 120ms ease;background:var(--pin-background);content:"";z-index:-1}@supports (inset-inline-start: 0){.range-pin::before{inset-inline-start:50%}}@supports not (inset-inline-start: 0){.range-pin::before{left:50%}:host-context([dir=rtl]) .range-pin::before{left:unset;right:unset;right:50%}[dir=rtl] .range-pin::before{left:unset;right:unset;right:50%}@supports selector(:dir(rtl)){.range-pin::before:dir(rtl){left:unset;right:unset;right:50%}}}:host-context([dir=rtl]) .range-pin::before{left:unset}[dir=rtl] .range-pin::before{left:unset}@supports selector(:dir(rtl)){.range-pin::before:dir(rtl){left:unset}}.range-knob-pressed .range-pin,.range-knob-handle.ion-focused .range-pin{-webkit-transform:translate3d(0, calc(-100% + 4px), 0) scale(1);transform:translate3d(0, calc(-100% + 4px), 0) scale(1)}@media (any-hover: hover){.range-knob-handle:hover .range-knob:before{-webkit-transform:scale(2);transform:scale(2);opacity:0.13}}.range-knob-handle.ion-activated .range-knob:before,.range-knob-handle.ion-focused .range-knob:before,.range-knob-handle.range-knob-pressed .range-knob:before{-webkit-transform:scale(2);transform:scale(2)}.range-knob-handle.ion-focused .range-knob::before{opacity:0.13}.range-knob-handle.ion-activated .range-knob::before,.range-knob-handle.range-knob-pressed .range-knob::before{opacity:0.25}:host(:not(.range-has-pin)) .range-knob-pressed .range-knob,:host(:not(.range-has-pin)) .range-knob-handle.ion-focused .range-knob{-webkit-transform:scale(1);transform:scale(1)}:host(.range-disabled) .range-bar-active,:host(.range-disabled) .range-bar,:host(.range-disabled) .range-tick{background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .range-knob{-webkit-transform:scale(0.55);transform:scale(0.55);outline:5px solid #fff;background-color:var(--ion-color-step-250, #bfbfbf)}:host(.range-disabled) .label-text-wrapper,:host(.range-disabled) ::slotted([slot=start]),:host(.range-disabled) ::slotted([slot=end]){opacity:0.38}'}},3567:(W,M,d)=>{d.d(M,{c:()=>z,g:()=>h,h:()=>r,o:()=>S});var L=d(5861);const r=(s,l)=>null!==l.closest(s),z=(s,l)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},l):l,h=s=>{const l={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(g=>null!=g).map(g=>g.trim()).filter(g=>""!==g):[])(s).forEach(g=>l[g]=!0),l},y=/^[a-z][a-z0-9+\-.]*:/,S=function(){var s=(0,L.Z)(function*(l,g,A,K){if(null!=l&&"#"!==l[0]&&!y.test(l)){const B=document.querySelector("ion-router");if(B)return g?.preventDefault(),B.push(l,A,K)}return!1});return function(g,A,K,B){return s.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/5951.5a427d3c573c8c1c.js b/8315.bf1570894ba06876.js similarity index 51% rename from 5951.5a427d3c573c8c1c.js rename to 8315.bf1570894ba06876.js index a46ac495..971afb01 100644 --- a/5951.5a427d3c573c8c1c.js +++ b/8315.bf1570894ba06876.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5951],{5951:(h,s,t)=>{t.r(s),t.d(s,{startStatusTap:()=>i});var r=t(5861),o=t(5349),_=t(2874),d=t(839);const i=()=>{const n=window;n.addEventListener("statusTap",()=>{(0,o.e)(()=>{const a=document.elementFromPoint(n.innerWidth/2,n.innerHeight/2);if(!a)return;const e=(0,_.f)(a);e&&new Promise(c=>(0,d.c)(e,c)).then(()=>{(0,o.w)((0,r.Z)(function*(){e.style.setProperty("--overflow","hidden"),yield(0,_.s)(e,300),e.style.removeProperty("--overflow")}))})})})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8315],{8315:(P,s,t)=>{t.r(s),t.d(s,{startStatusTap:()=>i});var d=t(5861),o=t(9942),_=t(7946),r=t(512);const i=()=>{const n=window;n.addEventListener("statusTap",()=>{(0,o.e)(()=>{const a=document.elementFromPoint(n.innerWidth/2,n.innerHeight/2);if(!a)return;const e=(0,_.f)(a);e&&new Promise(h=>(0,r.c)(e,h)).then(()=>{(0,o.w)((0,d.Z)(function*(){e.style.setProperty("--overflow","hidden"),yield(0,_.s)(e,300),e.style.removeProperty("--overflow")}))})})})}}}]); \ No newline at end of file diff --git a/8382.1741ce35366784e1.js b/8382.1741ce35366784e1.js deleted file mode 100644 index 8b6a9385..00000000 --- a/8382.1741ce35366784e1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8382],{2939:(T,v,s)=>{s.r(v),s.d(v,{ion_menu:()=>O,ion_menu_button:()=>L,ion_menu_toggle:()=>I});var l=s(5861),i=s(5349),x=s(5149),y=s(619),h=s(839),c=s(1783),_=s(7612),o=s(3882),r=s(3567),d=s(5307);s(6410),s(6225);const C='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',O=class{constructor(t){(0,i.r)(this,t),this.ionWillOpen=(0,i.d)(this,"ionWillOpen",7),this.ionWillClose=(0,i.d)(this,"ionWillClose",7),this.ionDidOpen=(0,i.d)(this,"ionDidOpen",7),this.ionDidClose=(0,i.d)(this,"ionDidClose",7),this.ionMenuChange=(0,i.d)(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=y.G.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=e=>{const n=(0,_.q)(document);n&&!n.contains(this.el)||this.trapKeyboardFocus(e,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.contentId=void 0,this.menuId=void 0,this.type=void 0,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,e){const n=this.contentEl;n&&(void 0!==e&&n.classList.remove(`menu-content-${e}`),n.classList.add(`menu-content-${t}`),n.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=(0,h.p)(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}connectedCallback(){var t=this;return(0,l.Z)(function*(){typeof customElements<"u"&&null!=customElements&&(yield customElements.whenDefined("ion-menu")),void 0===t.type&&(t.type=o.c.get("menuType","overlay"));const e=void 0!==t.contentId?document.getElementById(t.contentId):null;null!==e?(t.el.contains(e)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),t.contentEl=e,e.classList.add("menu-content"),t.typeChanged(t.type,void 0),t.sideChanged(),c.m._register(t),t.menuChanged(),t.gesture=(yield Promise.resolve().then(s.bind(s,9203))).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:n=>t.canStart(n),onWillStart:()=>t.onWillStart(),onStart:()=>t.onStart(),onMove:n=>t.onMove(n),onEnd:n=>t.onEnd(n)}),t.updateState()):console.error('Menu: must have a "content" element to listen for drag events on.')})()}componentWillLoad(){this.inheritedAttributes=(0,h.i)(this.el)}componentDidLoad(){var t=this;return(0,l.Z)(function*(){t.didLoad=!0,t.menuChanged(),t.updateState()})()}menuChanged(){this.didLoad&&this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}disconnectedCallback(){var t=this;return(0,l.Z)(function*(){yield t.close(!1),t.blocker.destroy(),c.m._unregister(t),t.animation&&t.animation.destroy(),t.gesture&&(t.gesture.destroy(),t.gesture=void 0),t.animation=void 0,t.contentEl=void 0})()}onSplitPaneChanged(t){const{target:e}=t;e===this.el.closest("ion-split-pane")&&(this.isPaneVisible=t.detail.isPane(this.el),this.updateState())}onBackdropClick(t){this._isOpen&&this.lastOnEnd0?e[e.length-1]:null;n?n.focus():t.focus()}trapKeyboardFocus(t,e){const n=t.target;n&&(this.el.contains(n)?this.lastFocus=n:(this.focusFirstDescendant(),this.lastFocus===e.activeElement&&this.focusLastDescendant()))}_setOpen(t,e=!0){var n=this;return(0,l.Z)(function*(){return!(!n._isActive()||n.isAnimating||t===n._isOpen||(n.beforeAnimation(t),yield n.loadAnimation(),yield n.startAnimation(t,e),n.operationCancelled?(n.operationCancelled=!1,1):(n.afterAnimation(t),0)))})()}loadAnimation(){var t=this;return(0,l.Z)(function*(){const e=t.menuInnerEl.offsetWidth,n=(0,h.p)(t.side);if(e===t.width&&void 0!==t.animation&&n===t.isEndSide)return;t.width=e,t.isEndSide=n,t.animation&&(t.animation.destroy(),t.animation=void 0);const a=t.animation=yield c.m._createAnimation(t.type,t);o.c.getBoolean("animated",!0)||a.duration(0),a.fill("both")})()}startAnimation(t,e){var n=this;return(0,l.Z)(function*(){const a=!t,m=(0,o.b)(n),p="ios"===m?"cubic-bezier(0.32,0.72,0,1)":"cubic-bezier(0.0,0.0,0.2,1)",u="ios"===m?"cubic-bezier(1, 0, 0.68, 0.28)":"cubic-bezier(0.4, 0, 0.6, 1)",f=n.animation.direction(a?"reverse":"normal").easing(a?u:p);e?yield f.play():f.play({sync:!0}),"reverse"===f.getDirection()&&f.direction("normal")})()}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!(document.querySelector("ion-modal.show-modal")||!this.canSwipe())&&(!!this._isOpen||!c.m._getOpenSync()&&Z(window,t.currentX,this.isEndSide,this.maxEdgeStart))}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){this.isAnimating&&this.animation?this.animation.progressStart(!0,this._isOpen?1:0):(0,h.o)(!1,"isAnimating has to be true")}onMove(t){if(!this.isAnimating||!this.animation)return void(0,h.o)(!1,"isAnimating has to be true");const n=A(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-n:n)}onEnd(t){if(!this.isAnimating||!this.animation)return void(0,h.o)(!1,"isAnimating has to be true");const e=this._isOpen,n=this.isEndSide,a=A(t.deltaX,e,n),m=this.width,p=a/m,u=t.velocityX,f=m/2,z=u>=0&&(u>.2||t.deltaX>f),W=u<=0&&(u<-.2||t.deltaX<-f),b=e?n?z:W:n?W:z;let j=!e&&b;e&&!b&&(j=!0),this.lastOnEnd=t.currentTime;let E=b?.001:-.001;E+=(0,x.g)([0,0],[.4,0],[.6,1],[1,1],(0,h.l)(0,p<0?.01:p,.9999))[0]||0;const N=this._isOpen?!b:b;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish(()=>this.afterAnimation(j),{oneTimeCallback:!0}).progressEnd(N?1:0,this._isOpen?1-E:E,300)}beforeAnimation(t){(0,h.o)(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(M),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(S),this.contentEl&&(this.contentEl.classList.add(P),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(t){var e;this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.ionDidOpen.emit(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(M),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(P),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(S),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),t||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1))}render(){const{type:t,disabled:e,isPaneVisible:n,inheritedAttributes:a,side:m}=this,p=(0,o.b)(this);return(0,i.h)(i.H,{role:"navigation","aria-label":a["aria-label"]||"menu",class:{[p]:!0,[`menu-type-${t}`]:!0,"menu-enabled":!e,[`menu-side-${m}`]:!0,"menu-pane-visible":n}},(0,i.h)("div",{class:"menu-inner",part:"container",ref:u=>this.menuInnerEl=u},(0,i.h)("slot",null)),(0,i.h)("ion-backdrop",{ref:u=>this.backdropEl=u,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return(0,i.f)(this)}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}},A=(t,e,n)=>Math.max(0,e!==n?-t:t),Z=(t,e,n,a)=>n?e>=t.innerWidth-a:e<=a,M="show-menu",S="show-backdrop",P="menu-content-open";O.style={ios:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none !important;transform:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",md:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none !important;transform:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}:host(.menu-pane-visible) ion-backdrop{display:hidden !important;}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}"};const D=function(){var t=(0,l.Z)(function*(e){const n=yield c.m.get(e);return!(!n||!(yield n.isActive()))});return function(n){return t.apply(this,arguments)}}(),L=class{constructor(t){var e=this;(0,i.r)(this,t),this.inheritedAttributes={},this.onClick=(0,l.Z)(function*(){return c.m.toggle(e.menu)}),this.visible=!1,this.color=void 0,this.disabled=!1,this.menu=void 0,this.autoHide=!0,this.type="button"}componentWillLoad(){this.inheritedAttributes=(0,h.i)(this.el)}componentDidLoad(){this.visibilityChanged()}visibilityChanged(){var t=this;return(0,l.Z)(function*(){t.visible=yield D(t.menu)})()}render(){const{color:t,disabled:e,inheritedAttributes:n}=this,a=(0,o.b)(this),m=o.c.get("menuIcon","ios"===a?d.u:d.v),p=this.autoHide&&!this.visible,u={type:this.type},f=n["aria-label"]||"menu";return(0,i.h)(i.H,{onClick:this.onClick,"aria-disabled":e?"true":null,"aria-hidden":p?"true":null,class:(0,r.c)(t,{[a]:!0,button:!0,"menu-button-hidden":p,"menu-button-disabled":e,"in-toolbar":(0,r.h)("ion-toolbar",this.el),"in-toolbar-color":(0,r.h)("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},(0,i.h)("button",Object.assign({},u,{disabled:e,class:"button-native",part:"native","aria-label":f}),(0,i.h)("span",{class:"button-inner"},(0,i.h)("slot",null,(0,i.h)("ion-icon",{part:"icon",icon:m,mode:a,lazy:!1,"aria-hidden":"true"}))),"md"===a&&(0,i.h)("ion-ripple-effect",{type:"unbounded"})))}get el(){return(0,i.f)(this)}};L.style={ios:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};const I=class{constructor(t){(0,i.r)(this,t),this.onClick=()=>c.m.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}visibilityChanged(){var t=this;return(0,l.Z)(function*(){t.visible=yield D(t.menu)})()}render(){const t=(0,o.b)(this),e=this.autoHide&&!this.visible;return(0,i.h)(i.H,{onClick:this.onClick,"aria-hidden":e?"true":null,class:{[t]:!0,"menu-toggle-hidden":e}},(0,i.h)("slot",null))}};I.style=":host(.menu-toggle-hidden){display:none}"},3567:(T,v,s)=>{s.d(v,{c:()=>x,g:()=>h,h:()=>i,o:()=>_});var l=s(5861);const i=(o,r)=>null!==r.closest(o),x=(o,r)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},r):r,h=o=>{const r={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(o).forEach(d=>r[d]=!0),r},c=/^[a-z][a-z0-9+\-.]*:/,_=function(){var o=(0,l.Z)(function*(r,d,w,k){if(null!=r&&"#"!==r[0]&&!c.test(r)){const g=document.querySelector("ion-router");if(g)return d?.preventDefault(),g.push(r,w,k)}return!1});return function(d,w,k,g){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8382.2b409b3cb06ad54b.js b/8382.2b409b3cb06ad54b.js new file mode 100644 index 00000000..c2936672 --- /dev/null +++ b/8382.2b409b3cb06ad54b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8382],{2939:(T,v,s)=>{s.r(v),s.d(v,{ion_menu:()=>O,ion_menu_button:()=>L,ion_menu_toggle:()=>I});var l=s(5861),i=s(9942),x=s(4510),y=s(2019),h=s(512),c=s(2413),_=s(2936),o=s(5551),r=s(4459),d=s(1076);s(1848),s(4913);const C='[tabindex]:not([tabindex^="-"]), input:not([type=hidden]):not([tabindex^="-"]), textarea:not([tabindex^="-"]), button:not([tabindex^="-"]), select:not([tabindex^="-"]), .ion-focusable:not([tabindex^="-"])',O=class{constructor(t){(0,i.r)(this,t),this.ionWillOpen=(0,i.d)(this,"ionWillOpen",7),this.ionWillClose=(0,i.d)(this,"ionWillClose",7),this.ionDidOpen=(0,i.d)(this,"ionDidOpen",7),this.ionDidClose=(0,i.d)(this,"ionDidClose",7),this.ionMenuChange=(0,i.d)(this,"ionMenuChange",7),this.lastOnEnd=0,this.blocker=y.G.createBlocker({disableScroll:!0}),this.didLoad=!1,this.operationCancelled=!1,this.isAnimating=!1,this._isOpen=!1,this.inheritedAttributes={},this.handleFocus=e=>{const n=(0,_.q)(document);n&&!n.contains(this.el)||this.trapKeyboardFocus(e,document)},this.isPaneVisible=!1,this.isEndSide=!1,this.contentId=void 0,this.menuId=void 0,this.type=void 0,this.disabled=!1,this.side="start",this.swipeGesture=!0,this.maxEdgeStart=50}typeChanged(t,e){const n=this.contentEl;n&&(void 0!==e&&n.classList.remove(`menu-content-${e}`),n.classList.add(`menu-content-${t}`),n.removeAttribute("style")),this.menuInnerEl&&this.menuInnerEl.removeAttribute("style"),this.animation=void 0}disabledChanged(){this.updateState(),this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}sideChanged(){this.isEndSide=(0,h.p)(this.side),this.animation=void 0}swipeGestureChanged(){this.updateState()}connectedCallback(){var t=this;return(0,l.Z)(function*(){typeof customElements<"u"&&null!=customElements&&(yield customElements.whenDefined("ion-menu")),void 0===t.type&&(t.type=o.c.get("menuType","overlay"));const e=void 0!==t.contentId?document.getElementById(t.contentId):null;null!==e?(t.el.contains(e)&&console.error('Menu: "contentId" should refer to the main view\'s ion-content, not the ion-content inside of the ion-menu.'),t.contentEl=e,e.classList.add("menu-content"),t.typeChanged(t.type,void 0),t.sideChanged(),c.m._register(t),t.menuChanged(),t.gesture=(yield Promise.resolve().then(s.bind(s,6535))).createGesture({el:document,gestureName:"menu-swipe",gesturePriority:30,threshold:10,blurOnStart:!0,canStart:n=>t.canStart(n),onWillStart:()=>t.onWillStart(),onStart:()=>t.onStart(),onMove:n=>t.onMove(n),onEnd:n=>t.onEnd(n)}),t.updateState()):console.error('Menu: must have a "content" element to listen for drag events on.')})()}componentWillLoad(){this.inheritedAttributes=(0,h.i)(this.el)}componentDidLoad(){var t=this;return(0,l.Z)(function*(){t.didLoad=!0,t.menuChanged(),t.updateState()})()}menuChanged(){this.didLoad&&this.ionMenuChange.emit({disabled:this.disabled,open:this._isOpen})}disconnectedCallback(){var t=this;return(0,l.Z)(function*(){yield t.close(!1),t.blocker.destroy(),c.m._unregister(t),t.animation&&t.animation.destroy(),t.gesture&&(t.gesture.destroy(),t.gesture=void 0),t.animation=void 0,t.contentEl=void 0})()}onSplitPaneChanged(t){const{target:e}=t;e===this.el.closest("ion-split-pane")&&(this.isPaneVisible=t.detail.isPane(this.el),this.updateState())}onBackdropClick(t){this._isOpen&&this.lastOnEnd0?e[e.length-1]:null;n?n.focus():t.focus()}trapKeyboardFocus(t,e){const n=t.target;n&&(this.el.contains(n)?this.lastFocus=n:(this.focusFirstDescendant(),this.lastFocus===e.activeElement&&this.focusLastDescendant()))}_setOpen(t,e=!0){var n=this;return(0,l.Z)(function*(){return!(!n._isActive()||n.isAnimating||t===n._isOpen||(n.beforeAnimation(t),yield n.loadAnimation(),yield n.startAnimation(t,e),n.operationCancelled?(n.operationCancelled=!1,1):(n.afterAnimation(t),0)))})()}loadAnimation(){var t=this;return(0,l.Z)(function*(){const e=t.menuInnerEl.offsetWidth,n=(0,h.p)(t.side);if(e===t.width&&void 0!==t.animation&&n===t.isEndSide)return;t.width=e,t.isEndSide=n,t.animation&&(t.animation.destroy(),t.animation=void 0);const a=t.animation=yield c.m._createAnimation(t.type,t);o.c.getBoolean("animated",!0)||a.duration(0),a.fill("both")})()}startAnimation(t,e){var n=this;return(0,l.Z)(function*(){const a=!t,m=(0,o.b)(n),p="ios"===m?"cubic-bezier(0.32,0.72,0,1)":"cubic-bezier(0.0,0.0,0.2,1)",u="ios"===m?"cubic-bezier(1, 0, 0.68, 0.28)":"cubic-bezier(0.4, 0, 0.6, 1)",f=n.animation.direction(a?"reverse":"normal").easing(a?u:p);e?yield f.play():f.play({sync:!0}),"reverse"===f.getDirection()&&f.direction("normal")})()}_isActive(){return!this.disabled&&!this.isPaneVisible}canSwipe(){return this.swipeGesture&&!this.isAnimating&&this._isActive()}canStart(t){return!(document.querySelector("ion-modal.show-modal")||!this.canSwipe())&&(!!this._isOpen||!c.m._getOpenSync()&&Z(window,t.currentX,this.isEndSide,this.maxEdgeStart))}onWillStart(){return this.beforeAnimation(!this._isOpen),this.loadAnimation()}onStart(){this.isAnimating&&this.animation?this.animation.progressStart(!0,this._isOpen?1:0):(0,h.o)(!1,"isAnimating has to be true")}onMove(t){if(!this.isAnimating||!this.animation)return void(0,h.o)(!1,"isAnimating has to be true");const n=A(t.deltaX,this._isOpen,this.isEndSide)/this.width;this.animation.progressStep(this._isOpen?1-n:n)}onEnd(t){if(!this.isAnimating||!this.animation)return void(0,h.o)(!1,"isAnimating has to be true");const e=this._isOpen,n=this.isEndSide,a=A(t.deltaX,e,n),m=this.width,p=a/m,u=t.velocityX,f=m/2,z=u>=0&&(u>.2||t.deltaX>f),W=u<=0&&(u<-.2||t.deltaX<-f),b=e?n?z:W:n?W:z;let j=!e&&b;e&&!b&&(j=!0),this.lastOnEnd=t.currentTime;let E=b?.001:-.001;E+=(0,x.g)([0,0],[.4,0],[.6,1],[1,1],(0,h.l)(0,p<0?.01:p,.9999))[0]||0;const N=this._isOpen?!b:b;this.animation.easing("cubic-bezier(0.4, 0.0, 0.6, 1)").onFinish(()=>this.afterAnimation(j),{oneTimeCallback:!0}).progressEnd(N?1:0,this._isOpen?1-E:E,300)}beforeAnimation(t){(0,h.o)(!this.isAnimating,"_before() should not be called while animating"),this.el.classList.add(M),this.el.setAttribute("tabindex","0"),this.backdropEl&&this.backdropEl.classList.add(S),this.contentEl&&(this.contentEl.classList.add(P),this.contentEl.setAttribute("aria-hidden","true")),this.blocker.block(),this.isAnimating=!0,t?this.ionWillOpen.emit():this.ionWillClose.emit()}afterAnimation(t){var e;this._isOpen=t,this.isAnimating=!1,this._isOpen||this.blocker.unblock(),t?(this.ionDidOpen.emit(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest("ion-menu"))!==this.el&&this.el.focus(),document.addEventListener("focus",this.handleFocus,!0)):(this.el.classList.remove(M),this.el.removeAttribute("tabindex"),this.contentEl&&(this.contentEl.classList.remove(P),this.contentEl.removeAttribute("aria-hidden")),this.backdropEl&&this.backdropEl.classList.remove(S),this.animation&&this.animation.stop(),this.ionDidClose.emit(),document.removeEventListener("focus",this.handleFocus,!0))}updateState(){const t=this._isActive();this.gesture&&this.gesture.enable(t&&this.swipeGesture),t||(this.isAnimating&&(this.operationCancelled=!0),this.afterAnimation(!1))}render(){const{type:t,disabled:e,isPaneVisible:n,inheritedAttributes:a,side:m}=this,p=(0,o.b)(this);return(0,i.h)(i.H,{role:"navigation","aria-label":a["aria-label"]||"menu",class:{[p]:!0,[`menu-type-${t}`]:!0,"menu-enabled":!e,[`menu-side-${m}`]:!0,"menu-pane-visible":n}},(0,i.h)("div",{class:"menu-inner",part:"container",ref:u=>this.menuInnerEl=u},(0,i.h)("slot",null)),(0,i.h)("ion-backdrop",{ref:u=>this.backdropEl=u,class:"menu-backdrop",tappable:!1,stopPropagation:!1,part:"backdrop"}))}get el(){return(0,i.f)(this)}static get watchers(){return{type:["typeChanged"],disabled:["disabledChanged"],side:["sideChanged"],swipeGesture:["swipeGestureChanged"]}}},A=(t,e,n)=>Math.max(0,e!==n?-t:t),Z=(t,e,n,a)=>n?e>=t.innerWidth-a:e<=a,M="show-menu",S="show-backdrop",P="menu-content-open";O.style={ios:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-push){z-index:1000}:host(.menu-type-push) .show-backdrop{display:block}",md:":host{--width:304px;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--background:var(--ion-background-color, #fff);left:0;right:0;top:0;bottom:0;display:none;position:absolute;contain:strict}:host(.show-menu){display:block}.menu-inner{-webkit-transform:translateX(-9999px);transform:translateX(-9999px);display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);background:var(--background);contain:strict}:host(.menu-side-start) .menu-inner{--ion-safe-area-right:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{inset-inline-start:0;inset-inline-end:auto}}@supports not (inset-inline-start: 0){:host(.menu-side-start) .menu-inner{left:0;right:auto}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{left:unset;right:unset;left:auto;right:0}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{left:unset;right:unset;left:auto;right:0}}}:host-context([dir=rtl]):host(.menu-side-start) .menu-inner,:host-context([dir=rtl]).menu-side-start .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}@supports selector(:dir(rtl)){:host(.menu-side-start:dir(rtl)) .menu-inner{--ion-safe-area-right:unset;--ion-safe-area-left:0px}}:host(.menu-side-end) .menu-inner{--ion-safe-area-left:0px;top:0;bottom:0}@supports (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{inset-inline-start:auto;inset-inline-end:0}}@supports not (inset-inline-start: 0){:host(.menu-side-end) .menu-inner{left:auto;right:0}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{left:unset;right:unset;left:0;right:auto}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{left:unset;right:unset;left:0;right:auto}}}:host-context([dir=rtl]):host(.menu-side-end) .menu-inner,:host-context([dir=rtl]).menu-side-end .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}@supports selector(:dir(rtl)){:host(.menu-side-end:dir(rtl)) .menu-inner{--ion-safe-area-left:unset;--ion-safe-area-right:0px}}ion-backdrop{display:none;opacity:0.01;z-index:-1}@media (max-width: 340px){.menu-inner{--width:264px}}:host(.menu-type-reveal){z-index:0}:host(.menu-type-reveal.show-menu) .menu-inner{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}:host(.menu-type-overlay){z-index:1000}:host(.menu-type-overlay) .show-backdrop{display:block;cursor:pointer}:host(.menu-pane-visible){width:var(--width);min-width:var(--min-width);max-width:var(--max-width)}:host(.menu-pane-visible) .menu-inner{left:0;right:0;width:auto;-webkit-transform:none;transform:none;-webkit-box-shadow:none;box-shadow:none}:host(.menu-pane-visible) ion-backdrop{display:hidden !important}:host(.menu-type-overlay) .menu-inner{-webkit-box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18);box-shadow:4px 0px 16px rgba(0, 0, 0, 0.18)}"};const D=function(){var t=(0,l.Z)(function*(e){const n=yield c.m.get(e);return!(!n||!(yield n.isActive()))});return function(n){return t.apply(this,arguments)}}(),L=class{constructor(t){var e=this;(0,i.r)(this,t),this.inheritedAttributes={},this.onClick=(0,l.Z)(function*(){return c.m.toggle(e.menu)}),this.visible=!1,this.color=void 0,this.disabled=!1,this.menu=void 0,this.autoHide=!0,this.type="button"}componentWillLoad(){this.inheritedAttributes=(0,h.i)(this.el)}componentDidLoad(){this.visibilityChanged()}visibilityChanged(){var t=this;return(0,l.Z)(function*(){t.visible=yield D(t.menu)})()}render(){const{color:t,disabled:e,inheritedAttributes:n}=this,a=(0,o.b)(this),m=o.c.get("menuIcon","ios"===a?d.u:d.v),p=this.autoHide&&!this.visible,u={type:this.type},f=n["aria-label"]||"menu";return(0,i.h)(i.H,{onClick:this.onClick,"aria-disabled":e?"true":null,"aria-hidden":p?"true":null,class:(0,r.c)(t,{[a]:!0,button:!0,"menu-button-hidden":p,"menu-button-disabled":e,"in-toolbar":(0,r.h)("ion-toolbar",this.el),"in-toolbar-color":(0,r.h)("ion-toolbar[color]",this.el),"ion-activatable":!0,"ion-focusable":!0})},(0,i.h)("button",Object.assign({},u,{disabled:e,class:"button-native",part:"native","aria-label":f}),(0,i.h)("span",{class:"button-inner"},(0,i.h)("slot",null,(0,i.h)("ion-icon",{part:"icon",icon:m,mode:a,lazy:!1,"aria-hidden":"true"}))),"md"===a&&(0,i.h)("ion-ripple-effect",{type:"unbounded"})))}get el(){return(0,i.f)(this)}};L.style={ios:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.1;--border-radius:4px;--color:var(--ion-color-primary, #3880ff);--padding-start:5px;--padding-end:5px;min-height:32px;font-size:clamp(31px, 1.9375rem, 38.13px)}:host(.ion-activated){opacity:0.4}@media (any-hover: hover){:host(:hover){opacity:0.6}}',md:':host{--background:transparent;--color-focused:currentColor;--border-radius:initial;--padding-top:0;--padding-bottom:0;color:var(--color);text-align:center;text-decoration:none;text-overflow:ellipsis;text-transform:none;white-space:nowrap;-webkit-font-kerning:none;font-kerning:none}.button-native{border-radius:var(--border-radius);font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;border:0;outline:none;background:var(--background);line-height:1;cursor:pointer;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.button-inner{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%;min-height:inherit;z-index:1}ion-icon{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;pointer-events:none}:host(.menu-button-hidden){display:none}:host(.menu-button-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.ion-focused) .button-native{color:var(--color-focused)}:host(.ion-focused) .button-native::after{background:var(--background-focused);opacity:var(--background-focused-opacity)}.button-native::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}@media (any-hover: hover){:host(:hover) .button-native{color:var(--color-hover)}:host(:hover) .button-native::after{background:var(--background-hover);opacity:var(--background-hover-opacity, 0)}}:host(.ion-color) .button-native{color:var(--ion-color-base)}:host(.in-toolbar:not(.in-toolbar-color)){color:var(--ion-toolbar-color, var(--color))}:host{--background-focused:currentColor;--background-focused-opacity:.12;--background-hover:currentColor;--background-hover-opacity:.04;--border-radius:50%;--color:initial;--padding-start:8px;--padding-end:8px;width:3rem;height:3rem;font-size:1.5rem}:host(.ion-color.ion-focused)::after{background:var(--ion-color-base)}@media (any-hover: hover){:host(.ion-color:hover) .button-native::after{background:var(--ion-color-base)}}'};const I=class{constructor(t){(0,i.r)(this,t),this.onClick=()=>c.m.toggle(this.menu),this.visible=!1,this.menu=void 0,this.autoHide=!0}connectedCallback(){this.visibilityChanged()}visibilityChanged(){var t=this;return(0,l.Z)(function*(){t.visible=yield D(t.menu)})()}render(){const t=(0,o.b)(this),e=this.autoHide&&!this.visible;return(0,i.h)(i.H,{onClick:this.onClick,"aria-hidden":e?"true":null,class:{[t]:!0,"menu-toggle-hidden":e}},(0,i.h)("slot",null))}};I.style=":host(.menu-toggle-hidden){display:none}"},4459:(T,v,s)=>{s.d(v,{c:()=>x,g:()=>h,h:()=>i,o:()=>_});var l=s(5861);const i=(o,r)=>null!==r.closest(o),x=(o,r)=>"string"==typeof o&&o.length>0?Object.assign({"ion-color":!0,[`ion-color-${o}`]:!0},r):r,h=o=>{const r={};return(o=>void 0!==o?(Array.isArray(o)?o:o.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(o).forEach(d=>r[d]=!0),r},c=/^[a-z][a-z0-9+\-.]*:/,_=function(){var o=(0,l.Z)(function*(r,d,w,k){if(null!=r&&"#"!==r[0]&&!c.test(r)){const g=document.querySelector("ion-router");if(g)return d?.preventDefault(),g.push(r,w,k)}return!1});return function(d,w,k,g){return o.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8484.0beab6348706abe3.js b/8484.aa4304650bb0a820.js similarity index 98% rename from 8484.0beab6348706abe3.js rename to 8484.aa4304650bb0a820.js index 3789ec46..c4a83c7a 100644 --- a/8484.0beab6348706abe3.js +++ b/8484.aa4304650bb0a820.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8484],{8484:(w,x,u)=>{u.r(x),u.d(x,{ion_accordion:()=>m,ion_accordion_group:()=>b});var l=u(5861),a=u(5349),h=u(839),v=u(5307),f=u(3882),y=u(6710);const m=class{constructor(e){var o=this;(0,a.r)(this,e),this.updateListener=()=>this.updateState(!1),this.setItemDefaults=()=>{const t=this.getSlottedHeaderIonItem();t&&(t.button=!0,t.detail=!1,void 0===t.lines&&(t.lines="full"))},this.getSlottedHeaderIonItem=()=>{const{headerEl:t}=this;if(!t)return;const n=t.querySelector("slot");return n&&void 0!==n.assignedElements?n.assignedElements().find(i=>"ION-ITEM"===i.tagName):void 0},this.setAria=(t=!1)=>{const n=this.getSlottedHeaderIonItem();if(!n)return;const s=(0,h.g)(n).querySelector("button");s&&s.setAttribute("aria-expanded",`${t}`)},this.slotToggleIcon=()=>{const t=this.getSlottedHeaderIonItem();if(!t)return;const{toggleIconSlot:n,toggleIcon:i}=this;if(t.querySelector(".ion-accordion-toggle-icon"))return;const r=document.createElement("ion-icon");r.slot=n,r.lazy=!1,r.classList.add("ion-accordion-toggle-icon"),r.icon=i,r.setAttribute("aria-hidden","true"),t.appendChild(r)},this.expandAccordion=(t=!1)=>{const{contentEl:n,contentElWrapper:i}=this;t||void 0===n||void 0===i?this.state=4:4!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?(0,h.r)(()=>{this.state=8,this.currentRaf=(0,h.r)((0,l.Z)(function*(){const s=i.offsetHeight,r=(0,h.t)(n,2e3);n.style.setProperty("max-height",`${s}px`),yield r,o.state=4,n.style.removeProperty("max-height")}))}):this.state=4)},this.collapseAccordion=(t=!1)=>{const{contentEl:n}=this;t||void 0===n?this.state=1:1!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=(0,h.r)((0,l.Z)(function*(){n.style.setProperty("max-height",`${n.offsetHeight}px`),(0,h.r)((0,l.Z)(function*(){const s=(0,h.t)(n,2e3);o.state=2,yield s,o.state=1,n.style.removeProperty("max-height")}))})):this.state=1)},this.shouldAnimate=()=>!(typeof window>"u"||matchMedia("(prefers-reduced-motion: reduce)").matches||!f.c.get("animated",!0)||this.accordionGroupEl&&!this.accordionGroupEl.animated),this.updateState=(0,l.Z)(function*(t=!1){const n=o.accordionGroupEl,i=o.value;if(!n)return;const s=n.value;if(Array.isArray(s)?s.includes(i):s===i)o.expandAccordion(t),o.isNext=o.isPrevious=!1;else{o.collapseAccordion(t);const c=o.getNextSibling(),d=c?.value;void 0!==d&&(o.isPrevious=Array.isArray(s)?s.includes(d):s===d);const p=o.getPreviousSibling(),g=p?.value;void 0!==g&&(o.isNext=Array.isArray(s)?s.includes(g):s===g)}}),this.getNextSibling=()=>{if(!this.el)return;const t=this.el.nextElementSibling;return"ION-ACCORDION"===t?.tagName?t:void 0},this.getPreviousSibling=()=>{if(!this.el)return;const t=this.el.previousElementSibling;return"ION-ACCORDION"===t?.tagName?t:void 0},this.state=1,this.isNext=!1,this.isPrevious=!1,this.value="ion-accordion-"+_++,this.disabled=!1,this.readonly=!1,this.toggleIcon=v.l,this.toggleIconSlot="end"}valueChanged(){this.updateState()}connectedCallback(){var e;const o=this.accordionGroupEl=null===(e=this.el)||void 0===e?void 0:e.closest("ion-accordion-group");o&&(this.updateState(!0),(0,h.a)(o,"ionValueChange",this.updateListener))}disconnectedCallback(){const e=this.accordionGroupEl;e&&(0,h.b)(e,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),(0,h.r)(()=>{this.setAria(4===this.state||8===this.state)})}toggleExpanded(){const{accordionGroupEl:e,value:o,state:t}=this;e&&e.requestAccordionToggle(o,1===t||2===t)}render(){const{disabled:e,readonly:o}=this,t=(0,f.b)(this),n=4===this.state||8===this.state,i=n?"header expanded":"header",s=n?"content expanded":"content";return this.setAria(n),(0,a.h)(a.H,{class:{[t]:!0,"accordion-expanding":8===this.state,"accordion-expanded":4===this.state,"accordion-collapsing":2===this.state,"accordion-collapsed":1===this.state,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":e,"accordion-readonly":o,"accordion-animated":this.shouldAnimate()}},(0,a.h)("div",{onClick:()=>this.toggleExpanded(),id:"header",part:i,"aria-controls":"content",ref:r=>this.headerEl=r},(0,a.h)("slot",{name:"header"})),(0,a.h)("div",{id:"content",part:s,role:"region","aria-labelledby":"header",ref:r=>this.contentEl=r},(0,a.h)("div",{id:"content-wrapper",ref:r=>this.contentElWrapper=r},(0,a.h)("slot",{name:"content"}))))}static get delegatesFocus(){return!0}get el(){return(0,a.f)(this)}static get watchers(){return{value:["valueChanged"]}}};let _=0;m.style={ios:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",md:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}"};const b=class{constructor(e){(0,a.r)(this,e),this.ionChange=(0,a.d)(this,"ionChange",7),this.ionValueChange=(0,a.d)(this,"ionValueChange",7),this.animated=!0,this.multiple=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.expand="compact"}valueChanged(){const{value:e,multiple:o}=this;!o&&Array.isArray(e)&&(0,y.p)(`ion-accordion-group was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${e.map(t=>`'${t}'`).join(", ")}]\n`,this.el),this.ionValueChange.emit({value:this.value})}disabledChanged(){var e=this;return(0,l.Z)(function*(){const{disabled:o}=e,t=yield e.getAccordions();for(const n of t)n.disabled=o})()}readonlyChanged(){var e=this;return(0,l.Z)(function*(){const{readonly:o}=e,t=yield e.getAccordions();for(const n of t)n.readonly=o})()}onKeydown(e){var o=this;return(0,l.Z)(function*(){const t=document.activeElement;if(!t||!t.closest('ion-accordion [slot="header"]'))return;const i="ION-ACCORDION"===t.tagName?t:t.closest("ion-accordion");if(!i||i.closest("ion-accordion-group")!==o.el)return;const r=yield o.getAccordions(),c=r.findIndex(p=>p===i);if(-1===c)return;let d;"ArrowDown"===e.key?d=o.findNextAccordion(r,c):"ArrowUp"===e.key?d=o.findPreviousAccordion(r,c):"Home"===e.key?d=r[0]:"End"===e.key&&(d=r[r.length-1]),void 0!==d&&d!==t&&d.focus()})()}componentDidLoad(){var e=this;return(0,l.Z)(function*(){e.disabled&&e.disabledChanged(),e.readonly&&e.readonlyChanged(),e.valueChanged()})()}setValue(e){const o=this.value=e;this.ionChange.emit({value:o})}requestAccordionToggle(e,o){var t=this;return(0,l.Z)(function*(){const{multiple:n,value:i,readonly:s,disabled:r}=t;if(!s&&!r)if(o)if(n){const c=i??[],d=Array.isArray(c)?c:[c];void 0===d.find(g=>g===e)&&void 0!==e&&t.setValue([...d,e])}else t.setValue(e);else if(n){const c=i??[],d=Array.isArray(c)?c:[c];t.setValue(d.filter(p=>p!==e))}else t.setValue(void 0)})()}findNextAccordion(e,o){const t=e[o+1];return void 0===t?e[0]:t}findPreviousAccordion(e,o){const t=e[o-1];return void 0===t?e[e.length-1]:t}getAccordions(){var e=this;return(0,l.Z)(function*(){return Array.from(e.el.querySelectorAll(":scope > ion-accordion"))})()}render(){const{disabled:e,readonly:o,expand:t}=this,n=(0,f.b)(this);return(0,a.h)(a.H,{class:{[n]:!0,"accordion-group-disabled":e,"accordion-group-readonly":o,[`accordion-group-expand-${t}`]:!0},role:"presentation"},(0,a.h)("slot",null))}get el(){return(0,a.f)(this)}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}};b.style={ios:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",md:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8484],{8484:(w,x,u)=>{u.r(x),u.d(x,{ion_accordion:()=>m,ion_accordion_group:()=>b});var l=u(5861),a=u(9942),h=u(512),v=u(1076),f=u(5551),y=u(2400);const m=class{constructor(e){var o=this;(0,a.r)(this,e),this.updateListener=()=>this.updateState(!1),this.setItemDefaults=()=>{const t=this.getSlottedHeaderIonItem();t&&(t.button=!0,t.detail=!1,void 0===t.lines&&(t.lines="full"))},this.getSlottedHeaderIonItem=()=>{const{headerEl:t}=this;if(!t)return;const n=t.querySelector("slot");return n&&void 0!==n.assignedElements?n.assignedElements().find(i=>"ION-ITEM"===i.tagName):void 0},this.setAria=(t=!1)=>{const n=this.getSlottedHeaderIonItem();if(!n)return;const s=(0,h.g)(n).querySelector("button");s&&s.setAttribute("aria-expanded",`${t}`)},this.slotToggleIcon=()=>{const t=this.getSlottedHeaderIonItem();if(!t)return;const{toggleIconSlot:n,toggleIcon:i}=this;if(t.querySelector(".ion-accordion-toggle-icon"))return;const r=document.createElement("ion-icon");r.slot=n,r.lazy=!1,r.classList.add("ion-accordion-toggle-icon"),r.icon=i,r.setAttribute("aria-hidden","true"),t.appendChild(r)},this.expandAccordion=(t=!1)=>{const{contentEl:n,contentElWrapper:i}=this;t||void 0===n||void 0===i?this.state=4:4!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?(0,h.r)(()=>{this.state=8,this.currentRaf=(0,h.r)((0,l.Z)(function*(){const s=i.offsetHeight,r=(0,h.t)(n,2e3);n.style.setProperty("max-height",`${s}px`),yield r,o.state=4,n.style.removeProperty("max-height")}))}):this.state=4)},this.collapseAccordion=(t=!1)=>{const{contentEl:n}=this;t||void 0===n?this.state=1:1!==this.state&&(void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.shouldAnimate()?this.currentRaf=(0,h.r)((0,l.Z)(function*(){n.style.setProperty("max-height",`${n.offsetHeight}px`),(0,h.r)((0,l.Z)(function*(){const s=(0,h.t)(n,2e3);o.state=2,yield s,o.state=1,n.style.removeProperty("max-height")}))})):this.state=1)},this.shouldAnimate=()=>!(typeof window>"u"||matchMedia("(prefers-reduced-motion: reduce)").matches||!f.c.get("animated",!0)||this.accordionGroupEl&&!this.accordionGroupEl.animated),this.updateState=(0,l.Z)(function*(t=!1){const n=o.accordionGroupEl,i=o.value;if(!n)return;const s=n.value;if(Array.isArray(s)?s.includes(i):s===i)o.expandAccordion(t),o.isNext=o.isPrevious=!1;else{o.collapseAccordion(t);const c=o.getNextSibling(),d=c?.value;void 0!==d&&(o.isPrevious=Array.isArray(s)?s.includes(d):s===d);const p=o.getPreviousSibling(),g=p?.value;void 0!==g&&(o.isNext=Array.isArray(s)?s.includes(g):s===g)}}),this.getNextSibling=()=>{if(!this.el)return;const t=this.el.nextElementSibling;return"ION-ACCORDION"===t?.tagName?t:void 0},this.getPreviousSibling=()=>{if(!this.el)return;const t=this.el.previousElementSibling;return"ION-ACCORDION"===t?.tagName?t:void 0},this.state=1,this.isNext=!1,this.isPrevious=!1,this.value="ion-accordion-"+_++,this.disabled=!1,this.readonly=!1,this.toggleIcon=v.l,this.toggleIconSlot="end"}valueChanged(){this.updateState()}connectedCallback(){var e;const o=this.accordionGroupEl=null===(e=this.el)||void 0===e?void 0:e.closest("ion-accordion-group");o&&(this.updateState(!0),(0,h.a)(o,"ionValueChange",this.updateListener))}disconnectedCallback(){const e=this.accordionGroupEl;e&&(0,h.b)(e,"ionValueChange",this.updateListener)}componentDidLoad(){this.setItemDefaults(),this.slotToggleIcon(),(0,h.r)(()=>{this.setAria(4===this.state||8===this.state)})}toggleExpanded(){const{accordionGroupEl:e,value:o,state:t}=this;e&&e.requestAccordionToggle(o,1===t||2===t)}render(){const{disabled:e,readonly:o}=this,t=(0,f.b)(this),n=4===this.state||8===this.state,i=n?"header expanded":"header",s=n?"content expanded":"content";return this.setAria(n),(0,a.h)(a.H,{class:{[t]:!0,"accordion-expanding":8===this.state,"accordion-expanded":4===this.state,"accordion-collapsing":2===this.state,"accordion-collapsed":1===this.state,"accordion-next":this.isNext,"accordion-previous":this.isPrevious,"accordion-disabled":e,"accordion-readonly":o,"accordion-animated":this.shouldAnimate()}},(0,a.h)("div",{onClick:()=>this.toggleExpanded(),id:"header",part:i,"aria-controls":"content",ref:r=>this.headerEl=r},(0,a.h)("slot",{name:"header"})),(0,a.h)("div",{id:"content",part:s,role:"region","aria-labelledby":"header",ref:r=>this.contentEl=r},(0,a.h)("div",{id:"content-wrapper",ref:r=>this.contentElWrapper=r},(0,a.h)("slot",{name:"content"}))))}static get delegatesFocus(){return!0}get el(){return(0,a.f)(this)}static get watchers(){return{value:["valueChanged"]}}};let _=0;m.style={ios:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}:host(.accordion-next) ::slotted(ion-item[slot=header]){--border-width:0.55px 0px 0.55px 0px}",md:":host{display:block;position:relative;width:100%;background-color:var(--ion-background-color, #ffffff);overflow:hidden;z-index:0}:host(.accordion-expanding) ::slotted(ion-item[slot=header]),:host(.accordion-expanded) ::slotted(ion-item[slot=header]){--border-width:0px}:host(.accordion-animated){-webkit-transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:all 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}:host(.accordion-animated) #content{-webkit-transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1);transition:max-height 300ms cubic-bezier(0.25, 0.8, 0.5, 1)}#content{overflow:hidden;will-change:max-height}:host(.accordion-collapsing) #content{max-height:0 !important}:host(.accordion-collapsed) #content{display:none}:host(.accordion-expanding) #content{max-height:0}:host(.accordion-expanding) #content-wrapper{overflow:auto}:host(.accordion-disabled) #header,:host(.accordion-readonly) #header,:host(.accordion-disabled) #content,:host(.accordion-readonly) #content{pointer-events:none}:host(.accordion-disabled) #header,:host(.accordion-disabled) #content{opacity:0.4}@media (prefers-reduced-motion: reduce){:host,#content{-webkit-transition:none !important;transition:none !important}}"};const b=class{constructor(e){(0,a.r)(this,e),this.ionChange=(0,a.d)(this,"ionChange",7),this.ionValueChange=(0,a.d)(this,"ionValueChange",7),this.animated=!0,this.multiple=void 0,this.value=void 0,this.disabled=!1,this.readonly=!1,this.expand="compact"}valueChanged(){const{value:e,multiple:o}=this;!o&&Array.isArray(e)&&(0,y.p)(`ion-accordion-group was passed an array of values, but multiple="false". This is incorrect usage and may result in unexpected behaviors. To dismiss this warning, pass a string to the "value" property when multiple="false".\n\n Value Passed: [${e.map(t=>`'${t}'`).join(", ")}]\n`,this.el),this.ionValueChange.emit({value:this.value})}disabledChanged(){var e=this;return(0,l.Z)(function*(){const{disabled:o}=e,t=yield e.getAccordions();for(const n of t)n.disabled=o})()}readonlyChanged(){var e=this;return(0,l.Z)(function*(){const{readonly:o}=e,t=yield e.getAccordions();for(const n of t)n.readonly=o})()}onKeydown(e){var o=this;return(0,l.Z)(function*(){const t=document.activeElement;if(!t||!t.closest('ion-accordion [slot="header"]'))return;const i="ION-ACCORDION"===t.tagName?t:t.closest("ion-accordion");if(!i||i.closest("ion-accordion-group")!==o.el)return;const r=yield o.getAccordions(),c=r.findIndex(p=>p===i);if(-1===c)return;let d;"ArrowDown"===e.key?d=o.findNextAccordion(r,c):"ArrowUp"===e.key?d=o.findPreviousAccordion(r,c):"Home"===e.key?d=r[0]:"End"===e.key&&(d=r[r.length-1]),void 0!==d&&d!==t&&d.focus()})()}componentDidLoad(){var e=this;return(0,l.Z)(function*(){e.disabled&&e.disabledChanged(),e.readonly&&e.readonlyChanged(),e.valueChanged()})()}setValue(e){const o=this.value=e;this.ionChange.emit({value:o})}requestAccordionToggle(e,o){var t=this;return(0,l.Z)(function*(){const{multiple:n,value:i,readonly:s,disabled:r}=t;if(!s&&!r)if(o)if(n){const c=i??[],d=Array.isArray(c)?c:[c];void 0===d.find(g=>g===e)&&void 0!==e&&t.setValue([...d,e])}else t.setValue(e);else if(n){const c=i??[],d=Array.isArray(c)?c:[c];t.setValue(d.filter(p=>p!==e))}else t.setValue(void 0)})()}findNextAccordion(e,o){const t=e[o+1];return void 0===t?e[0]:t}findPreviousAccordion(e,o){const t=e[o-1];return void 0===t?e[e.length-1]:t}getAccordions(){var e=this;return(0,l.Z)(function*(){return Array.from(e.el.querySelectorAll(":scope > ion-accordion"))})()}render(){const{disabled:e,readonly:o,expand:t}=this,n=(0,f.b)(this);return(0,a.h)(a.H,{class:{[n]:!0,"accordion-group-disabled":e,"accordion-group-readonly":o,[`accordion-group-expand-${t}`]:!0},role:"presentation"},(0,a.h)("slot",null))}get el(){return(0,a.f)(this)}static get watchers(){return{value:["valueChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"]}}};b.style={ios:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){border-bottom:none}",md:":host{display:block}:host(.accordion-group-expand-inset){-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:16px;margin-inline-end:16px;margin-top:16px;margin-bottom:16px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion){-webkit-box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanding),:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-expanded){margin-left:0;margin-right:0;margin-top:16px;margin-bottom:16px;border-radius:6px}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-previous),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-previous){border-bottom-right-radius:6px;border-bottom-left-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}:host-context([dir=rtl]):host(.accordion-group-expand-inset) ::slotted(ion-accordion.accordion-next),:host-context([dir=rtl]).accordion-group-expand-inset ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}@supports selector(:dir(rtl)){:host(.accordion-group-expand-inset:dir(rtl)) ::slotted(ion-accordion.accordion-next){border-top-left-radius:6px;border-top-right-radius:6px}}:host(.accordion-group-expand-inset) ::slotted(ion-accordion):first-of-type{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}"}}}]); \ No newline at end of file diff --git a/8577.4404aff3d1e23511.js b/8577.4404aff3d1e23511.js deleted file mode 100644 index 7b813e2d..00000000 --- a/8577.4404aff3d1e23511.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8577],{8577:(kt,Q,p)=>{p.r(Q),p.d(Q,{ion_modal:()=>bt});var D=p(5861),h=p(5349),M=p(2874),H=p(6559),u=p(839),nt=p(3830),$=p(6710),g=p(4874),l=p(7612),E=p(3567),z=p(448),L=p(3882),N=p(1612),f=p(6410),dt=p(5149),lt=p(9203),X=p(6225),F=(p(7484),p(619),function(t){return t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT",t}(F||{}));const Z={getEngine(){const t=(0,g.g)();if(t?.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const t=(0,g.g)();return!!t?.PluginHeaders},setStyle(t){const e=this.getEngine();e&&e.setStyle(t)},getStyle:(t=(0,D.Z)(function*(){const e=this.getEngine();if(!e)return F.Default;const{style:n}=yield e.getInfo();return n}),function(){return t.apply(this,arguments)})},ot=(t,e)=>{if(1===e)return 0;const n=1/(1-e);return t*n+-e*n},ct=()=>{!X.w||X.w.innerWidth>=768||!Z.supportsDefaultStatusBarStyle()||Z.setStyle({style:F.Dark})},rt=(t=F.Default)=>{!X.w||X.w.innerWidth>=768||!Z.supportsDefaultStatusBarStyle()||Z.setStyle({style:t})},pt=function(){var t=(0,D.Z)(function*(e,n){"function"!=typeof e.canDismiss||!(yield e.canDismiss(void 0,l.G))||(n.isRunning()?n.onFinish(()=>{e.dismiss(void 0,"handler")},{oneTimeCallback:!0}):e.dismiss(void 0,"handler"))});return function(n,o){return t.apply(this,arguments)}}(),it=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,ht=(t,e)=>(0,u.l)(400,t/Math.abs(1.1*e),500),ft=t=>{const{currentBreakpoint:e,backdropBreakpoint:n}=t,o=void 0===n||n{const{currentBreakpoint:e,backdropBreakpoint:n}=t,o=`calc(var(--backdrop-opacity) * ${ot(e,n)})`,i=[{offset:0,opacity:o},{offset:1,opacity:0}],r=[{offset:0,opacity:o},{offset:n,opacity:0},{offset:1,opacity:0}],s=(0,f.c)("backdropAnimation").keyframes(0!==n?r:i);return{wrapperAnimation:(0,f.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*e}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},mt=(t,e)=>{const{presentingEl:n,currentBreakpoint:o}=e,i=(0,u.g)(t),{wrapperAnimation:r,backdropAnimation:s}=void 0!==o?ft(e):{backdropAnimation:(0,f.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,f.c)().fromTo("transform","translateY(100vh)","translateY(0vh)")};s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const a=(0,f.c)("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(n){const d=window.innerWidth<768,k="ION-MODAL"===n.tagName&&void 0!==n.presentingElement,b=(0,u.g)(n),A=(0,f.c)().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),v=document.body;if(d){const w=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",_=`translateY(${k?"-10px":w}) scale(0.93)`;A.afterStyles({transform:_}).beforeAddWrite(()=>v.style.setProperty("background-color","black")).addElement(n).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:_,borderRadius:"10px 10px 0 0"}]),a.addAnimation(A)}else if(a.addAnimation(s),k){const x=`translateY(-10px) scale(${k?.93:1})`;A.afterStyles({transform:x}).addElement(b.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:x}]);const c=(0,f.c)().afterStyles({transform:x}).addElement(b.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:x}]);a.addAnimation([A,c])}else r.fromTo("opacity","0","1")}else a.addAnimation(s);return a},gt=(t,e,n=500)=>{const{presentingEl:o,currentBreakpoint:i}=e,r=(0,u.g)(t),{wrapperAnimation:s,backdropAnimation:a}=void 0!==i?ut(e):{backdropAnimation:(0,f.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,f.c)().fromTo("transform","translateY(0vh)","translateY(100vh)")};a.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=(0,f.c)("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(s);if(o){const k=window.innerWidth<768,b="ION-MODAL"===o.tagName&&void 0!==o.presentingElement,A=(0,u.g)(o),v=(0,f.c)().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(x=>{1===x&&(o.style.setProperty("overflow",""),Array.from(w.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(_=>void 0!==_.presentingElement).length<=1&&w.style.setProperty("background-color",""))}),w=document.body;if(k){const x=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",j=`translateY(${b?"-10px":x}) scale(0.93)`;v.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:j,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(v)}else if(d.addAnimation(a),b){const c=`translateY(-10px) scale(${b?.93:1})`;v.addElement(A.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:c},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const _=(0,f.c)().addElement(A.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:c},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([v,_])}else s.fromTo("opacity","1","0")}else d.addAnimation(a);return d},Et=(t,e)=>{const{currentBreakpoint:n}=e,o=(0,u.g)(t),{wrapperAnimation:i,backdropAnimation:r}=void 0!==n?ft(e):{backdropAnimation:(0,f.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,f.c)().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return r.addElement(o.querySelector("ion-backdrop")),i.addElement(o.querySelector(".modal-wrapper")),(0,f.c)().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,i])},Dt=(t,e)=>{const{currentBreakpoint:n}=e,o=(0,u.g)(t),{wrapperAnimation:i,backdropAnimation:r}=void 0!==n?ut(e):{backdropAnimation:(0,f.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,f.c)().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(o.querySelector("ion-backdrop")),i.addElement(o.querySelector(".modal-wrapper")),(0,f.c)().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,i])},bt=class{constructor(t){(0,h.r)(this,t),this.didPresent=(0,h.d)(this,"ionModalDidPresent",7),this.willPresent=(0,h.d)(this,"ionModalWillPresent",7),this.willDismiss=(0,h.d)(this,"ionModalWillDismiss",7),this.didDismiss=(0,h.d)(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=(0,h.d)(this,"ionBreakpointDidChange",7),this.didPresentShorthand=(0,h.d)(this,"didPresent",7),this.willPresentShorthand=(0,h.d)(this,"willPresent",7),this.willDismissShorthand=(0,h.d)(this,"willDismiss",7),this.didDismissShorthand=(0,h.d)(this,"didDismiss",7),this.ionMount=(0,h.d)(this,"ionMount",7),this.lockController=(0,nt.c)(),this.triggerController=(0,l.e)(),this.coreDelegate=(0,H.C)(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:e,handleBehavior:n}=this;"cycle"!==n||void 0!==e||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:e}=this;void 0===e&&this.dismiss(void 0,l.B)},this.onLifecycle=e=>{const n=this.usersElement,o=Mt[e.type];if(n&&o){const i=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e.detail});n.dispatchEvent(i)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:n}=this;t&&n.addClickListener(e,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort((e,n)=>e-n))}connectedCallback(){const{el:t}=this;(0,l.j)(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:e,el:n}=this,o=this.isSheetModal=void 0!==t&&void 0!==e;this.inheritedAttributes=(0,u.k)(n,["aria-label","role"]),o&&(this.currentBreakpoint=this.initialBreakpoint),void 0!==t&&void 0!==e&&!t.includes(e)&&(0,$.p)("Your breakpoints array must include the initialBreakpoint value."),(0,l.k)(n)}componentDidLoad(){!0===this.isOpen&&(0,u.r)(()=>this.present()),this.breakpointsChanged(this.breakpoints)}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const n=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:n,delegate:this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate}}checkCanDismiss(t,e){var n=this;return(0,D.Z)(function*(){const{canDismiss:o}=n;return"function"==typeof o?o(t,e):o})()}present(){var t=this;return(0,D.Z)(function*(){const e=yield t.lockController.lock();if(t.presented)return void e();const{presentingElement:n,el:o}=t;t.currentBreakpoint=t.initialBreakpoint;const{inline:i,delegate:r}=t.getDelegate(!0);t.ionMount.emit(),t.usersElement=yield(0,H.a)(r,o,t.component,["ion-page"],t.componentProps,i),(0,u.m)(o)?yield(0,z.e)(t.usersElement):t.keepContentsMounted||(yield(0,z.w)()),(0,h.w)(()=>t.el.classList.add("show-modal"));const s=void 0!==n;s&&"ios"===(0,L.b)(t)&&(t.statusBarStyle=yield Z.getStyle(),ct()),yield(0,l.f)(t,"modalEnter",mt,Et,{presentingEl:n,currentBreakpoint:t.initialBreakpoint,backdropBreakpoint:t.backdropBreakpoint}),typeof window<"u"&&(t.keyboardOpenCallback=()=>{t.gesture&&(t.gesture.enable(!1),(0,u.r)(()=>{t.gesture&&t.gesture.enable(!0)}))},window.addEventListener(N.KEYBOARD_DID_OPEN,t.keyboardOpenCallback)),t.isSheetModal?t.initSheetGesture():s&&t.initSwipeToClose(),e()})()}initSwipeToClose(){var e,t=this;if("ios"!==(0,L.b)(this))return;const{el:n}=this,o=this.leaveAnimation||L.c.get("modalLeave",gt),i=this.animation=o(n,{presentingEl:this.presentingElement});if(!(0,M.a)(n))return void(0,M.p)(n);const s=null!==(e=this.statusBarStyle)&&void 0!==e?e:F.Default;this.gesture=((t,e,n,o)=>{const r=t.offsetHeight;let s=!1,a=!1,d=null,k=null,A=!0,v=0;const V=(0,lt.createGesture)({el:t,gestureName:"modalSwipeToClose",gesturePriority:39,direction:"y",threshold:10,canStart:y=>{const m=y.event.target;return null===m||!m.closest||(d=(0,M.f)(m),d?(k=(0,M.i)(d)?(0,u.g)(d).querySelector(".inner-scroll"):d,!d.querySelector("ion-refresher")&&0===k.scrollTop):null===m.closest("ion-footer"))},onStart:y=>{const{deltaY:m}=y;A=!d||!(0,M.i)(d)||d.scrollY,a=void 0!==t.canDismiss&&!0!==t.canDismiss,m>0&&d&&(0,M.d)(d),e.progressStart(!0,s?1:0)},onMove:y=>{const{deltaY:m}=y;m>0&&d&&(0,M.d)(d);const B=y.deltaY/r,P=B>=0&&a,O=P?.2:.9999,U=P?it(B/O):B,C=(0,u.l)(1e-4,U,O);e.progressStep(C),C>=.5&&v<.5?rt(n):C<.5&&v>=.5&&ct(),v=C},onEnd:y=>{const m=y.velocityY,B=y.deltaY/r,P=B>=0&&a,O=P?.2:.9999,U=P?it(B/O):B,C=(0,u.l)(1e-4,U,O),R=!P&&(y.deltaY+1e3*m)/r>=.5;let J=R?-.001:.001;R?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),J+=(0,dt.g)([0,0],[.32,.72],[0,1],[1,1],C)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),J+=(0,dt.g)([0,0],[1,0],[.68,.28],[1,1],C)[0]);const tt=ht(R?B*r:(1-C)*r,m);s=R,V.enable(!1),d&&(0,M.r)(d,A),e.onFinish(()=>{R||V.enable(!0)}).progressEnd(R?1:0,J,tt),P&&C>O/4?pt(t,e):R&&o()}});return V})(n,i,s,()=>{this.gestureAnimationDismissing=!0,rt(this.statusBarStyle),this.animation.onFinish((0,D.Z)(function*(){yield t.dismiss(void 0,l.G),t.gestureAnimationDismissing=!1}))}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:e,backdropBreakpoint:n}=this;if(!t||void 0===e)return;const o=this.enterAnimation||L.c.get("modalEnter",mt),i=this.animation=o(this.el,{presentingEl:this.presentingElement,currentBreakpoint:e,backdropBreakpoint:n});i.progressStart(!0,1);const{gesture:r,moveSheetToBreakpoint:s}=((t,e,n,o,i,r,s=[],a,d,k)=>{const v={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==i?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},w=t.querySelector("ion-content"),x=n.clientHeight;let c=o,_=0,j=!1;const y=r.childAnimations.find(S=>"wrapperAnimation"===S.id),m=r.childAnimations.find(S=>"backdropAnimation"===S.id),B=s[s.length-1],P=s[0],O=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},U=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};y&&m&&(y.keyframes([...v.WRAPPER_KEYFRAMES]),m.keyframes([...v.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-c),c>i?O():U()),w&&c!==B&&(w.scrollY=!1);const tt=S=>{const{breakpoint:W,canDismiss:T,breakpointOffset:Y,animated:G}=S,K=T&&0===W,I=K?c:W,yt=0!==I;return c=0,y&&m&&(y.keyframes([{offset:0,transform:`translateY(${100*Y}%)`},{offset:1,transform:`translateY(${100*(1-I)}%)`}]),m.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${ot(1-Y,i)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${ot(I,i)})`}]),r.progressStep(0)),et.enable(!1),K?pt(t,r):yt||d(),new Promise(at=>{r.onFinish(()=>{yt?y&&m?(0,u.r)(()=>{y.keyframes([...v.WRAPPER_KEYFRAMES]),m.keyframes([...v.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-I),c=I,k(c),w&&c===s[s.length-1]&&(w.scrollY=!0),c>i?O():U(),et.enable(!0),at()}):(et.enable(!0),at()):at()},{oneTimeCallback:!0}).progressEnd(1,0,G?500:0)})},et=(0,lt.createGesture)({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:S=>{const W=S.event.target.closest("ion-content");return c=a(),!(1===c&&W)},onStart:()=>{j=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===P,w&&(w.scrollY=!1),(0,u.r)(()=>{t.focus()}),r.progressStart(!0,1-c)},onMove:S=>{const T=s.length>1?1-s[1]:void 0,Y=1-c+S.deltaY/x,G=void 0!==T&&Y>=T&&j,K=G?.95:.9999,I=G&&void 0!==T?T+it((Y-T)/(K-T)):Y;_=(0,u.l)(1e-4,I,K),r.progressStep(_)},onEnd:S=>{const Y=c-(S.deltaY+350*S.velocityY)/x,G=s.reduce((K,I)=>Math.abs(I-Y){var a;return null!==(a=this.currentBreakpoint)&&void 0!==a?a:0},()=>this.sheetOnDismiss(),a=>{this.currentBreakpoint!==a&&(this.currentBreakpoint=a,this.ionBreakpointDidChange.emit({breakpoint:a}))});this.gesture=r,this.moveSheetToBreakpoint=s,this.gesture.enable(!0)}sheetOnDismiss(){var t=this;this.gestureAnimationDismissing=!0,this.animation.onFinish((0,D.Z)(function*(){t.currentBreakpoint=0,t.ionBreakpointDidChange.emit({breakpoint:t.currentBreakpoint}),yield t.dismiss(void 0,l.G),t.gestureAnimationDismissing=!1}))}dismiss(t,e){var n=this;return(0,D.Z)(function*(){var o;if(n.gestureAnimationDismissing&&e!==l.G)return!1;const i=yield n.lockController.lock();if("handler"!==e&&!(yield n.checkCanDismiss(t,e)))return i(),!1;const{presentingElement:r}=n;void 0!==r&&"ios"===(0,L.b)(n)&&rt(n.statusBarStyle),typeof window<"u"&&n.keyboardOpenCallback&&(window.removeEventListener(N.KEYBOARD_DID_OPEN,n.keyboardOpenCallback),n.keyboardOpenCallback=void 0);const a=l.n.get(n)||[],d=yield(0,l.g)(n,t,e,"modalLeave",gt,Dt,{presentingEl:r,currentBreakpoint:null!==(o=n.currentBreakpoint)&&void 0!==o?o:n.initialBreakpoint,backdropBreakpoint:n.backdropBreakpoint});if(d){const{delegate:k}=n.getDelegate();yield(0,H.d)(k,n.usersElement),(0,h.w)(()=>n.el.classList.remove("show-modal")),n.animation&&n.animation.destroy(),n.gesture&&n.gesture.destroy(),a.forEach(b=>b.destroy())}return n.currentBreakpoint=void 0,n.animation=void 0,i(),d})()}onDidDismiss(){return(0,l.h)(this.el,"ionModalDidDismiss")}onWillDismiss(){return(0,l.h)(this.el,"ionModalWillDismiss")}setCurrentBreakpoint(t){var e=this;return(0,D.Z)(function*(){if(!e.isSheetModal)return void(0,$.p)("setCurrentBreakpoint is only supported on sheet modals.");if(!e.breakpoints.includes(t))return void(0,$.p)(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:n,moveSheetToBreakpoint:o,canDismiss:i,breakpoints:r,animated:s}=e;n!==t&&o&&(e.sheetTransition=o({breakpoint:t,breakpointOffset:1-n,canDismiss:void 0!==i&&!0!==i&&0===r[0],animated:s}),yield e.sheetTransition,e.sheetTransition=void 0)})()}getCurrentBreakpoint(){var t=this;return(0,D.Z)(function*(){return t.currentBreakpoint})()}moveToNextBreakpoint(){var t=this;return(0,D.Z)(function*(){const{breakpoints:e,currentBreakpoint:n}=t;if(!e||null==n)return!1;const o=e.filter(a=>0!==a),r=(o.indexOf(n)+1)%o.length,s=o[r];return yield t.setCurrentBreakpoint(s),!0})()}render(){const{handle:t,isSheetModal:e,presentingElement:n,htmlAttributes:o,handleBehavior:i,inheritedAttributes:r}=this,s=!1!==t&&e,a=(0,L.b)(this),d=void 0!==n&&"ios"===a,k="cycle"===i;return(0,h.h)(h.H,Object.assign({"no-router":!0,tabindex:"-1"},o,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[a]:!0,"modal-default":!d&&!e,"modal-card":d,"modal-sheet":e,"overlay-hidden":!0},(0,E.g)(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),(0,h.h)("ion-backdrop",{ref:b=>this.backdropEl=b,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===a&&(0,h.h)("div",{class:"modal-shadow"}),(0,h.h)("div",Object.assign({role:"dialog"},r,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:b=>this.wrapperEl=b}),s&&(0,h.h)("button",{class:"modal-handle",tabIndex:k?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:k?this.onHandleClick:void 0,part:"handle"}),(0,h.h)("slot",null)))}get el(){return(0,h.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},Mt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};var t;bt.style={ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'}},3567:(kt,Q,p)=>{p.d(Q,{c:()=>M,g:()=>u,h:()=>h,o:()=>$});var D=p(5861);const h=(g,l)=>null!==l.closest(g),M=(g,l)=>"string"==typeof g&&g.length>0?Object.assign({"ion-color":!0,[`ion-color-${g}`]:!0},l):l,u=g=>{const l={};return(g=>void 0!==g?(Array.isArray(g)?g:g.split(" ")).filter(E=>null!=E).map(E=>E.trim()).filter(E=>""!==E):[])(g).forEach(E=>l[E]=!0),l},nt=/^[a-z][a-z0-9+\-.]*:/,$=function(){var g=(0,D.Z)(function*(l,E,z,L){if(null!=l&&"#"!==l[0]&&!nt.test(l)){const N=document.querySelector("ion-router");if(N)return E?.preventDefault(),N.push(l,z,L)}return!1});return function(E,z,L,N){return g.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8577.52ce6a56c6140f30.js b/8577.52ce6a56c6140f30.js new file mode 100644 index 00000000..0720d94a --- /dev/null +++ b/8577.52ce6a56c6140f30.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8577],{8577:(kt,Q,p)=>{p.r(Q),p.d(Q,{ion_modal:()=>bt});var D=p(5861),h=p(9942),M=p(7946),H=p(3254),u=p(512),nt=p(9229),$=p(2400),g=p(1836),l=p(2936),E=p(4459),z=p(4232),L=p(5551),N=p(6591),f=p(4913),dt=p(4510),lt=p(6535),X=p(1848),F=(p(3920),p(2019),function(t){return t.Dark="DARK",t.Light="LIGHT",t.Default="DEFAULT",t}(F||{}));const Z={getEngine(){const t=(0,g.g)();if(t?.isPluginAvailable("StatusBar"))return t.Plugins.StatusBar},supportsDefaultStatusBarStyle(){const t=(0,g.g)();return!!t?.PluginHeaders},setStyle(t){const e=this.getEngine();e&&e.setStyle(t)},getStyle:(t=(0,D.Z)(function*(){const e=this.getEngine();if(!e)return F.Default;const{style:n}=yield e.getInfo();return n}),function(){return t.apply(this,arguments)})},ot=(t,e)=>{if(1===e)return 0;const n=1/(1-e);return t*n+-e*n},ct=()=>{!X.w||X.w.innerWidth>=768||!Z.supportsDefaultStatusBarStyle()||Z.setStyle({style:F.Dark})},rt=(t=F.Default)=>{!X.w||X.w.innerWidth>=768||!Z.supportsDefaultStatusBarStyle()||Z.setStyle({style:t})},pt=function(){var t=(0,D.Z)(function*(e,n){"function"!=typeof e.canDismiss||!(yield e.canDismiss(void 0,l.G))||(n.isRunning()?n.onFinish(()=>{e.dismiss(void 0,"handler")},{oneTimeCallback:!0}):e.dismiss(void 0,"handler"))});return function(n,o){return t.apply(this,arguments)}}(),it=t=>.00255275*2.71828**(-14.9619*t)-1.00255*2.71828**(-.0380968*t)+1,ht=(t,e)=>(0,u.l)(400,t/Math.abs(1.1*e),500),ft=t=>{const{currentBreakpoint:e,backdropBreakpoint:n}=t,o=void 0===n||n{const{currentBreakpoint:e,backdropBreakpoint:n}=t,o=`calc(var(--backdrop-opacity) * ${ot(e,n)})`,i=[{offset:0,opacity:o},{offset:1,opacity:0}],r=[{offset:0,opacity:o},{offset:n,opacity:0},{offset:1,opacity:0}],s=(0,f.c)("backdropAnimation").keyframes(0!==n?r:i);return{wrapperAnimation:(0,f.c)("wrapperAnimation").keyframes([{offset:0,opacity:1,transform:`translateY(${100-100*e}%)`},{offset:1,opacity:1,transform:"translateY(100%)"}]),backdropAnimation:s}},mt=(t,e)=>{const{presentingEl:n,currentBreakpoint:o}=e,i=(0,u.g)(t),{wrapperAnimation:r,backdropAnimation:s}=void 0!==o?ft(e):{backdropAnimation:(0,f.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,f.c)().fromTo("transform","translateY(100vh)","translateY(0vh)")};s.addElement(i.querySelector("ion-backdrop")),r.addElement(i.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const a=(0,f.c)("entering-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(500).addAnimation(r);if(n){const d=window.innerWidth<768,k="ION-MODAL"===n.tagName&&void 0!==n.presentingElement,b=(0,u.g)(n),A=(0,f.c)().beforeStyles({transform:"translateY(0)","transform-origin":"top center",overflow:"hidden"}),v=document.body;if(d){const w=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",_=`translateY(${k?"-10px":w}) scale(0.93)`;A.afterStyles({transform:_}).beforeAddWrite(()=>v.style.setProperty("background-color","black")).addElement(n).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"},{offset:1,filter:"contrast(0.85)",transform:_,borderRadius:"10px 10px 0 0"}]),a.addAnimation(A)}else if(a.addAnimation(s),k){const x=`translateY(-10px) scale(${k?.93:1})`;A.afterStyles({transform:x}).addElement(b.querySelector(".modal-wrapper")).keyframes([{offset:0,filter:"contrast(1)",transform:"translateY(0) scale(1)"},{offset:1,filter:"contrast(0.85)",transform:x}]);const c=(0,f.c)().afterStyles({transform:x}).addElement(b.querySelector(".modal-shadow")).keyframes([{offset:0,opacity:"1",transform:"translateY(0) scale(1)"},{offset:1,opacity:"0",transform:x}]);a.addAnimation([A,c])}else r.fromTo("opacity","0","1")}else a.addAnimation(s);return a},gt=(t,e,n=500)=>{const{presentingEl:o,currentBreakpoint:i}=e,r=(0,u.g)(t),{wrapperAnimation:s,backdropAnimation:a}=void 0!==i?ut(e):{backdropAnimation:(0,f.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,f.c)().fromTo("transform","translateY(0vh)","translateY(100vh)")};a.addElement(r.querySelector("ion-backdrop")),s.addElement(r.querySelectorAll(".modal-wrapper, .modal-shadow")).beforeStyles({opacity:1});const d=(0,f.c)("leaving-base").addElement(t).easing("cubic-bezier(0.32,0.72,0,1)").duration(n).addAnimation(s);if(o){const k=window.innerWidth<768,b="ION-MODAL"===o.tagName&&void 0!==o.presentingElement,A=(0,u.g)(o),v=(0,f.c)().beforeClearStyles(["transform"]).afterClearStyles(["transform"]).onFinish(x=>{1===x&&(o.style.setProperty("overflow",""),Array.from(w.querySelectorAll("ion-modal:not(.overlay-hidden)")).filter(_=>void 0!==_.presentingElement).length<=1&&w.style.setProperty("background-color",""))}),w=document.body;if(k){const x=CSS.supports("width","max(0px, 1px)")?"max(30px, var(--ion-safe-area-top))":"30px",j=`translateY(${b?"-10px":x}) scale(0.93)`;v.addElement(o).keyframes([{offset:0,filter:"contrast(0.85)",transform:j,borderRadius:"10px 10px 0 0"},{offset:1,filter:"contrast(1)",transform:"translateY(0px) scale(1)",borderRadius:"0px"}]),d.addAnimation(v)}else if(d.addAnimation(a),b){const c=`translateY(-10px) scale(${b?.93:1})`;v.addElement(A.querySelector(".modal-wrapper")).afterStyles({transform:"translate3d(0, 0, 0)"}).keyframes([{offset:0,filter:"contrast(0.85)",transform:c},{offset:1,filter:"contrast(1)",transform:"translateY(0) scale(1)"}]);const _=(0,f.c)().addElement(A.querySelector(".modal-shadow")).afterStyles({transform:"translateY(0) scale(1)"}).keyframes([{offset:0,opacity:"0",transform:c},{offset:1,opacity:"1",transform:"translateY(0) scale(1)"}]);d.addAnimation([v,_])}else s.fromTo("opacity","1","0")}else d.addAnimation(a);return d},Et=(t,e)=>{const{currentBreakpoint:n}=e,o=(0,u.g)(t),{wrapperAnimation:i,backdropAnimation:r}=void 0!==n?ft(e):{backdropAnimation:(0,f.c)().fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),wrapperAnimation:(0,f.c)().keyframes([{offset:0,opacity:.01,transform:"translateY(40px)"},{offset:1,opacity:1,transform:"translateY(0px)"}])};return r.addElement(o.querySelector("ion-backdrop")),i.addElement(o.querySelector(".modal-wrapper")),(0,f.c)().addElement(t).easing("cubic-bezier(0.36,0.66,0.04,1)").duration(280).addAnimation([r,i])},Dt=(t,e)=>{const{currentBreakpoint:n}=e,o=(0,u.g)(t),{wrapperAnimation:i,backdropAnimation:r}=void 0!==n?ut(e):{backdropAnimation:(0,f.c)().fromTo("opacity","var(--backdrop-opacity)",0),wrapperAnimation:(0,f.c)().keyframes([{offset:0,opacity:.99,transform:"translateY(0px)"},{offset:1,opacity:0,transform:"translateY(40px)"}])};return r.addElement(o.querySelector("ion-backdrop")),i.addElement(o.querySelector(".modal-wrapper")),(0,f.c)().easing("cubic-bezier(0.47,0,0.745,0.715)").duration(200).addAnimation([r,i])},bt=class{constructor(t){(0,h.r)(this,t),this.didPresent=(0,h.d)(this,"ionModalDidPresent",7),this.willPresent=(0,h.d)(this,"ionModalWillPresent",7),this.willDismiss=(0,h.d)(this,"ionModalWillDismiss",7),this.didDismiss=(0,h.d)(this,"ionModalDidDismiss",7),this.ionBreakpointDidChange=(0,h.d)(this,"ionBreakpointDidChange",7),this.didPresentShorthand=(0,h.d)(this,"didPresent",7),this.willPresentShorthand=(0,h.d)(this,"willPresent",7),this.willDismissShorthand=(0,h.d)(this,"willDismiss",7),this.didDismissShorthand=(0,h.d)(this,"didDismiss",7),this.ionMount=(0,h.d)(this,"ionMount",7),this.lockController=(0,nt.c)(),this.triggerController=(0,l.e)(),this.coreDelegate=(0,H.C)(),this.isSheetModal=!1,this.inheritedAttributes={},this.inline=!1,this.gestureAnimationDismissing=!1,this.onHandleClick=()=>{const{sheetTransition:e,handleBehavior:n}=this;"cycle"!==n||void 0!==e||this.moveToNextBreakpoint()},this.onBackdropTap=()=>{const{sheetTransition:e}=this;void 0===e&&this.dismiss(void 0,l.B)},this.onLifecycle=e=>{const n=this.usersElement,o=Mt[e.type];if(n&&o){const i=new CustomEvent(o,{bubbles:!1,cancelable:!1,detail:e.detail});n.dispatchEvent(i)}},this.presented=!1,this.hasController=!1,this.overlayIndex=void 0,this.delegate=void 0,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.breakpoints=void 0,this.initialBreakpoint=void 0,this.backdropBreakpoint=0,this.handle=void 0,this.handleBehavior="none",this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.showBackdrop=!0,this.animated=!0,this.presentingElement=void 0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0,this.keepContentsMounted=!1,this.canDismiss=!0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:n}=this;t&&n.addClickListener(e,t)}breakpointsChanged(t){void 0!==t&&(this.sortedBreakpoints=t.sort((e,n)=>e-n))}connectedCallback(){const{el:t}=this;(0,l.j)(t),this.triggerChanged()}disconnectedCallback(){this.triggerController.removeClickListener()}componentWillLoad(){const{breakpoints:t,initialBreakpoint:e,el:n}=this,o=this.isSheetModal=void 0!==t&&void 0!==e;this.inheritedAttributes=(0,u.k)(n,["aria-label","role"]),o&&(this.currentBreakpoint=this.initialBreakpoint),void 0!==t&&void 0!==e&&!t.includes(e)&&(0,$.p)("Your breakpoints array must include the initialBreakpoint value."),(0,l.k)(n)}componentDidLoad(){!0===this.isOpen&&(0,u.r)(()=>this.present()),this.breakpointsChanged(this.breakpoints),this.triggerChanged()}getDelegate(t=!1){if(this.workingDelegate&&!t)return{delegate:this.workingDelegate,inline:this.inline};const n=this.inline=null!==this.el.parentNode&&!this.hasController;return{inline:n,delegate:this.workingDelegate=n?this.delegate||this.coreDelegate:this.delegate}}checkCanDismiss(t,e){var n=this;return(0,D.Z)(function*(){const{canDismiss:o}=n;return"function"==typeof o?o(t,e):o})()}present(){var t=this;return(0,D.Z)(function*(){const e=yield t.lockController.lock();if(t.presented)return void e();const{presentingElement:n,el:o}=t;t.currentBreakpoint=t.initialBreakpoint;const{inline:i,delegate:r}=t.getDelegate(!0);t.ionMount.emit(),t.usersElement=yield(0,H.a)(r,o,t.component,["ion-page"],t.componentProps,i),(0,u.m)(o)?yield(0,z.e)(t.usersElement):t.keepContentsMounted||(yield(0,z.w)()),(0,h.w)(()=>t.el.classList.add("show-modal"));const s=void 0!==n;s&&"ios"===(0,L.b)(t)&&(t.statusBarStyle=yield Z.getStyle(),ct()),yield(0,l.f)(t,"modalEnter",mt,Et,{presentingEl:n,currentBreakpoint:t.initialBreakpoint,backdropBreakpoint:t.backdropBreakpoint}),typeof window<"u"&&(t.keyboardOpenCallback=()=>{t.gesture&&(t.gesture.enable(!1),(0,u.r)(()=>{t.gesture&&t.gesture.enable(!0)}))},window.addEventListener(N.KEYBOARD_DID_OPEN,t.keyboardOpenCallback)),t.isSheetModal?t.initSheetGesture():s&&t.initSwipeToClose(),e()})()}initSwipeToClose(){var e,t=this;if("ios"!==(0,L.b)(this))return;const{el:n}=this,o=this.leaveAnimation||L.c.get("modalLeave",gt),i=this.animation=o(n,{presentingEl:this.presentingElement});if(!(0,M.a)(n))return void(0,M.p)(n);const s=null!==(e=this.statusBarStyle)&&void 0!==e?e:F.Default;this.gesture=((t,e,n,o)=>{const r=t.offsetHeight;let s=!1,a=!1,d=null,k=null,A=!0,v=0;const V=(0,lt.createGesture)({el:t,gestureName:"modalSwipeToClose",gesturePriority:l.O,direction:"y",threshold:10,canStart:y=>{const m=y.event.target;return null===m||!m.closest||(d=(0,M.f)(m),d?(k=(0,M.i)(d)?(0,u.g)(d).querySelector(".inner-scroll"):d,!d.querySelector("ion-refresher")&&0===k.scrollTop):null===m.closest("ion-footer"))},onStart:y=>{const{deltaY:m}=y;A=!d||!(0,M.i)(d)||d.scrollY,a=void 0!==t.canDismiss&&!0!==t.canDismiss,m>0&&d&&(0,M.d)(d),e.progressStart(!0,s?1:0)},onMove:y=>{const{deltaY:m}=y;m>0&&d&&(0,M.d)(d);const B=y.deltaY/r,P=B>=0&&a,O=P?.2:.9999,U=P?it(B/O):B,C=(0,u.l)(1e-4,U,O);e.progressStep(C),C>=.5&&v<.5?rt(n):C<.5&&v>=.5&&ct(),v=C},onEnd:y=>{const m=y.velocityY,B=y.deltaY/r,P=B>=0&&a,O=P?.2:.9999,U=P?it(B/O):B,C=(0,u.l)(1e-4,U,O),R=!P&&(y.deltaY+1e3*m)/r>=.5;let J=R?-.001:.001;R?(e.easing("cubic-bezier(0.32, 0.72, 0, 1)"),J+=(0,dt.g)([0,0],[.32,.72],[0,1],[1,1],C)[0]):(e.easing("cubic-bezier(1, 0, 0.68, 0.28)"),J+=(0,dt.g)([0,0],[1,0],[.68,.28],[1,1],C)[0]);const tt=ht(R?B*r:(1-C)*r,m);s=R,V.enable(!1),d&&(0,M.r)(d,A),e.onFinish(()=>{R||V.enable(!0)}).progressEnd(R?1:0,J,tt),P&&C>O/4?pt(t,e):R&&o()}});return V})(n,i,s,()=>{this.gestureAnimationDismissing=!0,rt(this.statusBarStyle),this.animation.onFinish((0,D.Z)(function*(){yield t.dismiss(void 0,l.G),t.gestureAnimationDismissing=!1}))}),this.gesture.enable(!0)}initSheetGesture(){const{wrapperEl:t,initialBreakpoint:e,backdropBreakpoint:n}=this;if(!t||void 0===e)return;const o=this.enterAnimation||L.c.get("modalEnter",mt),i=this.animation=o(this.el,{presentingEl:this.presentingElement,currentBreakpoint:e,backdropBreakpoint:n});i.progressStart(!0,1);const{gesture:r,moveSheetToBreakpoint:s}=((t,e,n,o,i,r,s=[],a,d,k)=>{const v={WRAPPER_KEYFRAMES:[{offset:0,transform:"translateY(0%)"},{offset:1,transform:"translateY(100%)"}],BACKDROP_KEYFRAMES:0!==i?[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1-i,opacity:0},{offset:1,opacity:0}]:[{offset:0,opacity:"var(--backdrop-opacity)"},{offset:1,opacity:.01}]},w=t.querySelector("ion-content"),x=n.clientHeight;let c=o,_=0,j=!1;const y=r.childAnimations.find(S=>"wrapperAnimation"===S.id),m=r.childAnimations.find(S=>"backdropAnimation"===S.id),B=s[s.length-1],P=s[0],O=()=>{t.style.setProperty("pointer-events","auto"),e.style.setProperty("pointer-events","auto"),t.classList.remove("ion-disable-focus-trap")},U=()=>{t.style.setProperty("pointer-events","none"),e.style.setProperty("pointer-events","none"),t.classList.add("ion-disable-focus-trap")};y&&m&&(y.keyframes([...v.WRAPPER_KEYFRAMES]),m.keyframes([...v.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-c),c>i?O():U()),w&&c!==B&&(w.scrollY=!1);const tt=S=>{const{breakpoint:W,canDismiss:T,breakpointOffset:Y,animated:G}=S,K=T&&0===W,I=K?c:W,yt=0!==I;return c=0,y&&m&&(y.keyframes([{offset:0,transform:`translateY(${100*Y}%)`},{offset:1,transform:`translateY(${100*(1-I)}%)`}]),m.keyframes([{offset:0,opacity:`calc(var(--backdrop-opacity) * ${ot(1-Y,i)})`},{offset:1,opacity:`calc(var(--backdrop-opacity) * ${ot(I,i)})`}]),r.progressStep(0)),et.enable(!1),K?pt(t,r):yt||d(),new Promise(at=>{r.onFinish(()=>{yt?y&&m?(0,u.r)(()=>{y.keyframes([...v.WRAPPER_KEYFRAMES]),m.keyframes([...v.BACKDROP_KEYFRAMES]),r.progressStart(!0,1-I),c=I,k(c),w&&c===s[s.length-1]&&(w.scrollY=!0),c>i?O():U(),et.enable(!0),at()}):(et.enable(!0),at()):at()},{oneTimeCallback:!0}).progressEnd(1,0,G?500:0)})},et=(0,lt.createGesture)({el:n,gestureName:"modalSheet",gesturePriority:40,direction:"y",threshold:10,canStart:S=>{const W=S.event.target.closest("ion-content");return c=a(),!(1===c&&W)},onStart:()=>{j=void 0!==t.canDismiss&&!0!==t.canDismiss&&0===P,w&&(w.scrollY=!1),(0,u.r)(()=>{t.focus()}),r.progressStart(!0,1-c)},onMove:S=>{const T=s.length>1?1-s[1]:void 0,Y=1-c+S.deltaY/x,G=void 0!==T&&Y>=T&&j,K=G?.95:.9999,I=G&&void 0!==T?T+it((Y-T)/(K-T)):Y;_=(0,u.l)(1e-4,I,K),r.progressStep(_)},onEnd:S=>{const Y=c-(S.deltaY+350*S.velocityY)/x,G=s.reduce((K,I)=>Math.abs(I-Y){var a;return null!==(a=this.currentBreakpoint)&&void 0!==a?a:0},()=>this.sheetOnDismiss(),a=>{this.currentBreakpoint!==a&&(this.currentBreakpoint=a,this.ionBreakpointDidChange.emit({breakpoint:a}))});this.gesture=r,this.moveSheetToBreakpoint=s,this.gesture.enable(!0)}sheetOnDismiss(){var t=this;this.gestureAnimationDismissing=!0,this.animation.onFinish((0,D.Z)(function*(){t.currentBreakpoint=0,t.ionBreakpointDidChange.emit({breakpoint:t.currentBreakpoint}),yield t.dismiss(void 0,l.G),t.gestureAnimationDismissing=!1}))}dismiss(t,e){var n=this;return(0,D.Z)(function*(){var o;if(n.gestureAnimationDismissing&&e!==l.G)return!1;const i=yield n.lockController.lock();if("handler"!==e&&!(yield n.checkCanDismiss(t,e)))return i(),!1;const{presentingElement:r}=n;void 0!==r&&"ios"===(0,L.b)(n)&&rt(n.statusBarStyle),typeof window<"u"&&n.keyboardOpenCallback&&(window.removeEventListener(N.KEYBOARD_DID_OPEN,n.keyboardOpenCallback),n.keyboardOpenCallback=void 0);const a=l.n.get(n)||[],d=yield(0,l.g)(n,t,e,"modalLeave",gt,Dt,{presentingEl:r,currentBreakpoint:null!==(o=n.currentBreakpoint)&&void 0!==o?o:n.initialBreakpoint,backdropBreakpoint:n.backdropBreakpoint});if(d){const{delegate:k}=n.getDelegate();yield(0,H.d)(k,n.usersElement),(0,h.w)(()=>n.el.classList.remove("show-modal")),n.animation&&n.animation.destroy(),n.gesture&&n.gesture.destroy(),a.forEach(b=>b.destroy())}return n.currentBreakpoint=void 0,n.animation=void 0,i(),d})()}onDidDismiss(){return(0,l.h)(this.el,"ionModalDidDismiss")}onWillDismiss(){return(0,l.h)(this.el,"ionModalWillDismiss")}setCurrentBreakpoint(t){var e=this;return(0,D.Z)(function*(){if(!e.isSheetModal)return void(0,$.p)("setCurrentBreakpoint is only supported on sheet modals.");if(!e.breakpoints.includes(t))return void(0,$.p)(`Attempted to set invalid breakpoint value ${t}. Please double check that the breakpoint value is part of your defined breakpoints.`);const{currentBreakpoint:n,moveSheetToBreakpoint:o,canDismiss:i,breakpoints:r,animated:s}=e;n!==t&&o&&(e.sheetTransition=o({breakpoint:t,breakpointOffset:1-n,canDismiss:void 0!==i&&!0!==i&&0===r[0],animated:s}),yield e.sheetTransition,e.sheetTransition=void 0)})()}getCurrentBreakpoint(){var t=this;return(0,D.Z)(function*(){return t.currentBreakpoint})()}moveToNextBreakpoint(){var t=this;return(0,D.Z)(function*(){const{breakpoints:e,currentBreakpoint:n}=t;if(!e||null==n)return!1;const o=e.filter(a=>0!==a),r=(o.indexOf(n)+1)%o.length,s=o[r];return yield t.setCurrentBreakpoint(s),!0})()}render(){const{handle:t,isSheetModal:e,presentingElement:n,htmlAttributes:o,handleBehavior:i,inheritedAttributes:r}=this,s=!1!==t&&e,a=(0,L.b)(this),d=void 0!==n&&"ios"===a,k="cycle"===i;return(0,h.h)(h.H,Object.assign({"no-router":!0,tabindex:"-1"},o,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign({[a]:!0,"modal-default":!d&&!e,"modal-card":d,"modal-sheet":e,"overlay-hidden":!0},(0,E.g)(this.cssClass)),onIonBackdropTap:this.onBackdropTap,onIonModalDidPresent:this.onLifecycle,onIonModalWillPresent:this.onLifecycle,onIonModalWillDismiss:this.onLifecycle,onIonModalDidDismiss:this.onLifecycle}),(0,h.h)("ion-backdrop",{ref:b=>this.backdropEl=b,visible:this.showBackdrop,tappable:this.backdropDismiss,part:"backdrop"}),"ios"===a&&(0,h.h)("div",{class:"modal-shadow"}),(0,h.h)("div",Object.assign({role:"dialog"},r,{"aria-modal":"true",class:"modal-wrapper ion-overlay-wrapper",part:"content",ref:b=>this.wrapperEl=b}),s&&(0,h.h)("button",{class:"modal-handle",tabIndex:k?0:-1,"aria-label":"Activate to adjust the size of the dialog overlaying the screen",onClick:k?this.onHandleClick:void 0,part:"handle"}),(0,h.h)("slot",null)))}get el(){return(0,h.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},Mt={ionModalDidPresent:"ionViewDidEnter",ionModalWillPresent:"ionViewWillEnter",ionModalWillDismiss:"ionViewWillLeave",ionModalDidDismiss:"ionViewDidLeave"};var t;bt.style={ios:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.4)}:host(.modal-card),:host(.modal-sheet){--border-radius:10px}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:10px}}.modal-wrapper{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}@media screen and (max-width: 767px){@supports (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - max(30px, var(--ion-safe-area-top)) - 10px)}}@supports not (width: max(0px, 1px)){:host(.modal-card){--height:calc(100% - 40px)}}:host(.modal-card) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-card) .modal-wrapper,:host-context([dir=rtl]).modal-card .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-card:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}:host(.modal-card){--backdrop-opacity:0;--width:100%;-ms-flex-align:end;align-items:flex-end}:host(.modal-card) .modal-shadow{display:none}:host(.modal-card) ion-backdrop{pointer-events:none}}@media screen and (min-width: 768px){:host(.modal-card){--width:calc(100% - 120px);--height:calc(100% - (120px + var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));--max-width:720px;--max-height:1000px;--backdrop-opacity:0;--box-shadow:0px 0px 30px 10px rgba(0, 0, 0, 0.1);-webkit-transition:all 0.5s ease-in-out;transition:all 0.5s ease-in-out}:host(.modal-card) .modal-wrapper{-webkit-box-shadow:none;box-shadow:none}:host(.modal-card) .modal-shadow{-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow)}}:host(.modal-sheet) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}:host-context([dir=rtl]):host(.modal-sheet) .modal-wrapper,:host-context([dir=rtl]).modal-sheet .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}@supports selector(:dir(rtl)){:host(.modal-sheet:dir(rtl)) .modal-wrapper{border-top-left-radius:var(--border-radius);border-top-right-radius:var(--border-radius);border-bottom-right-radius:0;border-bottom-left-radius:0}}',md:':host{--width:100%;--min-width:auto;--max-width:auto;--height:100%;--min-height:auto;--max-height:auto;--overflow:hidden;--border-radius:0;--border-width:0;--border-style:none;--border-color:transparent;--background:var(--ion-background-color, #fff);--box-shadow:none;--backdrop-opacity:0;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;outline:none;color:var(--ion-text-color, #000);contain:strict}.modal-wrapper,ion-backdrop{pointer-events:auto}:host(.overlay-hidden){display:none}.modal-wrapper,.modal-shadow{border-radius:var(--border-radius);width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);overflow:var(--overflow);z-index:10}.modal-shadow{position:absolute;background:transparent}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--width:600px;--height:500px;--ion-safe-area-top:0px;--ion-safe-area-bottom:0px;--ion-safe-area-right:0px;--ion-safe-area-left:0px}}@media only screen and (min-width: 768px) and (min-height: 768px){:host{--width:600px;--height:600px}}.modal-handle{left:0px;right:0px;top:5px;border-radius:8px;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;position:absolute;width:36px;height:5px;-webkit-transform:translateZ(0);transform:translateZ(0);border:0;background:var(--ion-color-step-350, #c0c0be);cursor:pointer;z-index:11}.modal-handle::before{-webkit-padding-start:4px;padding-inline-start:4px;-webkit-padding-end:4px;padding-inline-end:4px;padding-top:4px;padding-bottom:4px;position:absolute;width:36px;height:5px;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);content:""}:host(.modal-sheet){--height:calc(100% - (var(--ion-safe-area-top) + 10px))}:host(.modal-sheet) .modal-wrapper,:host(.modal-sheet) .modal-shadow{position:absolute;bottom:0}:host{--backdrop-opacity:var(--ion-backdrop-opacity, 0.32)}@media only screen and (min-width: 768px) and (min-height: 600px){:host{--border-radius:2px;--box-shadow:0 28px 48px rgba(0, 0, 0, 0.4)}}.modal-wrapper{-webkit-transform:translate3d(0, 40px, 0);transform:translate3d(0, 40px, 0);opacity:0.01}'}},4459:(kt,Q,p)=>{p.d(Q,{c:()=>M,g:()=>u,h:()=>h,o:()=>$});var D=p(5861);const h=(g,l)=>null!==l.closest(g),M=(g,l)=>"string"==typeof g&&g.length>0?Object.assign({"ion-color":!0,[`ion-color-${g}`]:!0},l):l,u=g=>{const l={};return(g=>void 0!==g?(Array.isArray(g)?g:g.split(" ")).filter(E=>null!=E).map(E=>E.trim()).filter(E=>""!==E):[])(g).forEach(E=>l[E]=!0),l},nt=/^[a-z][a-z0-9+\-.]*:/,$=function(){var g=(0,D.Z)(function*(l,E,z,L){if(null!=l&&"#"!==l[0]&&!nt.test(l)){const N=document.querySelector("ion-router");if(N)return E?.preventDefault(),N.push(l,z,L)}return!1});return function(E,z,L,N){return g.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8594.9d98505708847739.js b/8594.3fd983801f5e017a.js similarity index 74% rename from 8594.9d98505708847739.js rename to 8594.3fd983801f5e017a.js index f88bc1b7..d0bc70be 100644 --- a/8594.9d98505708847739.js +++ b/8594.3fd983801f5e017a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8594],{8594:(et,H,D)=>{D.r(H),D.d(H,{iosTransitionAnimation:()=>tt,shadow:()=>h});var o=D(962),J=D(191);const k=s=>document.querySelector(`${s}.ion-cloned-element`),h=s=>s.shadowRoot||s,G=s=>{const r="ION-TABS"===s.tagName?s:s.querySelector("ion-tabs"),c="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=r){const e=r.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(c):null}return s.querySelector(c)},U=(s,r)=>{const c="ION-TABS"===s.tagName?s:s.querySelector("ion-tabs");let e=[];if(null!=c){const t=c.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(e=t.querySelectorAll("ion-buttons"))}else e=s.querySelectorAll("ion-buttons");for(const t of e){const p=t.closest("ion-header"),i=p&&!p.classList.contains("header-collapse-condense-inactive"),u=t.querySelector("ion-back-button"),l=t.classList.contains("buttons-collapse");if(null!==u&&("start"===t.slot||""===t.slot)&&(l&&i&&r||!l))return u}return null},z=(s,r,c,e,t,p,i,u,l)=>{var y,E;const _=r?`calc(100% - ${t.right+4}px)`:t.left-4+"px",f=r?"right":"left",T=r?"left":"right",R=r?"right":"left",O=(null===(y=p.textContent)||void 0===y?void 0:y.trim())===(null===(E=u.textContent)||void 0===E?void 0:E.trim()),S=(l.height-Z)/i.height,X=O?`scale(${l.width/i.width}, ${S})`:`scale(${S})`,M="scale(1)",x=h(e).querySelector("ion-icon").getBoundingClientRect(),n=r?x.width/2-(x.right-t.right)+"px":t.left-x.width/2+"px",g=r?`-${window.innerWidth-t.right}px`:`${t.left}px`,$=`${l.top}px`,C=`${t.top}px`,I=c?[{offset:0,transform:`translate3d(${g}, ${C}, 0)`},{offset:1,transform:`translate3d(${n}, ${$}, 0)`}]:[{offset:0,transform:`translate3d(${n}, ${$}, 0)`},{offset:1,transform:`translate3d(${g}, ${C}, 0)`}],A=c?[{offset:0,opacity:1,transform:M},{offset:1,opacity:0,transform:X}]:[{offset:0,opacity:0,transform:X},{offset:1,opacity:1,transform:M}],N=c?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],L=(0,o.c)(),q=(0,o.c)(),w=(0,o.c)(),m=k("ion-back-button"),P=h(m).querySelector(".button-text"),Y=h(m).querySelector("ion-icon");m.text=e.text,m.mode=e.mode,m.icon=e.icon,m.color=e.color,m.disabled=e.disabled,m.style.setProperty("display","block"),m.style.setProperty("position","fixed"),q.addElement(Y),L.addElement(P),w.addElement(m),w.beforeStyles({position:"absolute",top:"0px",[R]:"0px"}).keyframes(I),L.beforeStyles({"transform-origin":`${f} top`}).beforeAddWrite(()=>{e.style.setProperty("display","none"),m.style.setProperty(f,_)}).afterAddWrite(()=>{e.style.setProperty("display",""),m.style.setProperty("display","none"),m.style.removeProperty(f)}).keyframes(A),q.beforeStyles({"transform-origin":`${T} center`}).keyframes(N),s.addAnimation([L,q,w])},j=(s,r,c,e,t,p,i,u)=>{var l,y;const E=r?"right":"left",_=r?`calc(100% - ${t.right}px)`:`${t.left}px`,T=`${t.top}px`,O=r?`-${window.innerWidth-u.right-8}px`:u.x-8+"px",S=u.y-2+"px",X=(null===(l=i.textContent)||void 0===l?void 0:l.trim())===(null===(y=e.textContent)||void 0===y?void 0:y.trim()),W=u.height/(p.height-Z),x="scale(1)",n=X?`scale(${u.width/p.width}, ${W})`:`scale(${W})`,C=c?[{offset:0,opacity:0,transform:`translate3d(${O}, ${S}, 0) ${n}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${T}, 0) ${x}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${T}, 0) ${x}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${O}, ${S}, 0) ${n}`}],a=k("ion-title"),d=(0,o.c)();a.innerText=e.innerText,a.size=e.size,a.color=e.color,d.addElement(a),d.beforeStyles({"transform-origin":`${E} top`,height:`${t.height}px`,display:"",position:"relative",[E]:_}).beforeAddWrite(()=>{e.style.setProperty("opacity","0")}).afterAddWrite(()=>{e.style.setProperty("opacity",""),a.style.setProperty("display","none")}).keyframes(C),s.addAnimation(d)},tt=(s,r)=>{var c;try{const e="cubic-bezier(0.32,0.72,0,1)",t="opacity",p="transform",i="0%",l="rtl"===s.ownerDocument.dir,y=l?"-99.5%":"99.5%",E=l?"33%":"-33%",_=r.enteringEl,f=r.leavingEl,T="back"===r.direction,R=_.querySelector(":scope > ion-content"),O=_.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),b=_.querySelectorAll(":scope > ion-header > ion-toolbar"),S=(0,o.c)(),X=(0,o.c)();if(S.addElement(_).duration((null!==(c=r.duration)&&void 0!==c?c:0)||540).easing(r.easing||e).fill("both").beforeRemoveClass("ion-page-invisible"),f&&null!=s){const n=(0,o.c)();n.addElement(s),S.addAnimation(n)}if(R||0!==b.length||0!==O.length?(X.addElement(R),X.addElement(O)):X.addElement(_.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(X),T?X.beforeClearStyles([t]).fromTo("transform",`translateX(${E})`,`translateX(${i})`).fromTo(t,.8,1):X.beforeClearStyles([t]).fromTo("transform",`translateX(${y})`,`translateX(${i})`),R){const n=h(R).querySelector(".transition-effect");if(n){const g=n.querySelector(".transition-cover"),$=n.querySelector(".transition-shadow"),C=(0,o.c)(),a=(0,o.c)(),d=(0,o.c)();C.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(g).beforeClearStyles([t]).fromTo(t,0,.1),d.addElement($).beforeClearStyles([t]).fromTo(t,.03,.7),C.addAnimation([a,d]),X.addAnimation([C])}}const M=_.querySelector("ion-header.header-collapse-condense"),{forward:W,backward:x}=((s,r,c,e,t)=>{const p=U(e,c),i=G(t),u=G(e),l=U(t,c),y=null!==p&&null!==i&&!c,E=null!==u&&null!==l&&c;if(y){const _=i.getBoundingClientRect(),f=p.getBoundingClientRect(),T=h(p).querySelector(".button-text"),R=T.getBoundingClientRect(),b=h(i).querySelector(".toolbar-title").getBoundingClientRect();j(s,r,c,i,_,b,T,R),z(s,r,c,p,f,T,R,i,b)}else if(E){const _=u.getBoundingClientRect(),f=l.getBoundingClientRect(),T=h(l).querySelector(".button-text"),R=T.getBoundingClientRect(),b=h(u).querySelector(".toolbar-title").getBoundingClientRect();j(s,r,c,u,_,b,T,R),z(s,r,c,l,f,T,R,u,b)}return{forward:y,backward:E}})(S,l,T,_,f);if(b.forEach(n=>{const g=(0,o.c)();g.addElement(n),S.addAnimation(g);const $=(0,o.c)();$.addElement(n.querySelector("ion-title"));const C=(0,o.c)(),a=Array.from(n.querySelectorAll("ion-buttons,[menuToggle]")),d=n.closest("ion-header"),I=d?.classList.contains("header-collapse-condense-inactive");let v;v=a.filter(T?N=>{const L=N.classList.contains("buttons-collapse");return L&&!I||!L}:N=>!N.classList.contains("buttons-collapse")),C.addElement(v);const B=(0,o.c)();B.addElement(n.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const A=(0,o.c)();A.addElement(h(n).querySelector(".toolbar-background"));const F=(0,o.c)(),K=n.querySelector("ion-back-button");if(K&&F.addElement(K),g.addAnimation([$,C,B,A,F]),C.fromTo(t,.01,1),B.fromTo(t,.01,1),T)I||$.fromTo("transform",`translateX(${E})`,`translateX(${i})`).fromTo(t,.01,1),B.fromTo("transform",`translateX(${E})`,`translateX(${i})`),F.fromTo(t,.01,1);else if(M||$.fromTo("transform",`translateX(${y})`,`translateX(${i})`).fromTo(t,.01,1),B.fromTo("transform",`translateX(${y})`,`translateX(${i})`),A.beforeClearStyles([t,"transform"]),d?.translucent?A.fromTo("transform",l?"translateX(-100%)":"translateX(100%)","translateX(0px)"):A.fromTo(t,.01,"var(--opacity)"),W||F.fromTo(t,.01,1),K&&!W){const L=(0,o.c)();L.addElement(h(K).querySelector(".button-text")).fromTo("transform",l?"translateX(-100px)":"translateX(100px)","translateX(0px)"),g.addAnimation(L)}}),f){const n=(0,o.c)(),g=f.querySelector(":scope > ion-content"),$=f.querySelectorAll(":scope > ion-header > ion-toolbar"),C=f.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(g||0!==$.length||0!==C.length?(n.addElement(g),n.addElement(C)):n.addElement(f.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(n),T){n.beforeClearStyles([t]).fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)");const a=(0,J.g)(f);S.afterAddWrite(()=>{"normal"===S.getDirection()&&a.style.setProperty("display","none")})}else n.fromTo("transform",`translateX(${i})`,`translateX(${E})`).fromTo(t,1,.8);if(g){const a=h(g).querySelector(".transition-effect");if(a){const d=a.querySelector(".transition-cover"),I=a.querySelector(".transition-shadow"),v=(0,o.c)(),B=(0,o.c)(),A=(0,o.c)();v.addElement(a).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),B.addElement(d).beforeClearStyles([t]).fromTo(t,.1,0),A.addElement(I).beforeClearStyles([t]).fromTo(t,.7,.03),v.addAnimation([B,A]),n.addAnimation([v])}}$.forEach(a=>{const d=(0,o.c)();d.addElement(a);const I=(0,o.c)();I.addElement(a.querySelector("ion-title"));const v=(0,o.c)(),B=a.querySelectorAll("ion-buttons,[menuToggle]"),A=a.closest("ion-header"),F=A?.classList.contains("header-collapse-condense-inactive"),K=Array.from(B).filter(P=>{const Y=P.classList.contains("buttons-collapse");return Y&&!F||!Y});v.addElement(K);const N=(0,o.c)(),L=a.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");L.length>0&&N.addElement(L);const q=(0,o.c)();q.addElement(h(a).querySelector(".toolbar-background"));const w=(0,o.c)(),m=a.querySelector("ion-back-button");if(m&&w.addElement(m),d.addAnimation([I,v,N,w,q]),S.addAnimation(d),w.fromTo(t,.99,0),v.fromTo(t,.99,0),N.fromTo(t,.99,0),T){if(F||I.fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)").fromTo(t,.99,0),N.fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)"),q.beforeClearStyles([t,"transform"]),A?.translucent?q.fromTo("transform","translateX(0px)",l?"translateX(-100%)":"translateX(100%)"):q.fromTo(t,"var(--opacity)",0),m&&!x){const Y=(0,o.c)();Y.addElement(h(m).querySelector(".button-text")).fromTo("transform",`translateX(${i})`,`translateX(${(l?-124:124)+"px"})`),d.addAnimation(Y)}}else F||I.fromTo("transform",`translateX(${i})`,`translateX(${E})`).fromTo(t,.99,0).afterClearStyles([p,t]),N.fromTo("transform",`translateX(${i})`,`translateX(${E})`).afterClearStyles([p,t]),w.afterClearStyles([t]),I.afterClearStyles([t]),v.afterClearStyles([t])})}return S}catch(e){throw e}},Z=10}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8594],{8594:(et,H,M)=>{M.r(H),M.d(H,{iosTransitionAnimation:()=>tt,shadow:()=>h});var o=M(962),J=M(191);const k=s=>document.querySelector(`${s}.ion-cloned-element`),h=s=>s.shadowRoot||s,G=s=>{const r="ION-TABS"===s.tagName?s:s.querySelector("ion-tabs"),c="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=r){const e=r.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=e?e.querySelector(c):null}return s.querySelector(c)},U=(s,r)=>{const c="ION-TABS"===s.tagName?s:s.querySelector("ion-tabs");let e=[];if(null!=c){const t=c.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=t&&(e=t.querySelectorAll("ion-buttons"))}else e=s.querySelectorAll("ion-buttons");for(const t of e){const p=t.closest("ion-header"),i=p&&!p.classList.contains("header-collapse-condense-inactive"),u=t.querySelector("ion-back-button"),l=t.classList.contains("buttons-collapse");if(null!==u&&("start"===t.slot||""===t.slot)&&(l&&i&&r||!l))return u}return null},z=(s,r,c,e,t,p,i,u,l)=>{var y,E;const _=r?`calc(100% - ${t.right+4}px)`:t.left-4+"px",f=r?"right":"left",T=r?"left":"right",R=r?"right":"left",O=(null===(y=p.textContent)||void 0===y?void 0:y.trim())===(null===(E=u.textContent)||void 0===E?void 0:E.trim()),S=(l.height-Z)/i.height,b=O?`scale(${l.width/i.width}, ${S})`:`scale(${S})`,P="scale(1)",x=h(e).querySelector("ion-icon").getBoundingClientRect(),n=r?x.width/2-(x.right-t.right)+"px":t.left-x.width/2+"px",g=r?`-${window.innerWidth-t.right}px`:`${t.left}px`,$=`${l.top}px`,C=`${t.top}px`,I=c?[{offset:0,transform:`translate3d(${g}, ${C}, 0)`},{offset:1,transform:`translate3d(${n}, ${$}, 0)`}]:[{offset:0,transform:`translate3d(${n}, ${$}, 0)`},{offset:1,transform:`translate3d(${g}, ${C}, 0)`}],A=c?[{offset:0,opacity:1,transform:P},{offset:1,opacity:0,transform:b}]:[{offset:0,opacity:0,transform:b},{offset:1,opacity:1,transform:P}],X=c?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],L=(0,o.c)(),q=(0,o.c)(),w=(0,o.c)(),m=k("ion-back-button"),W=h(m).querySelector(".button-text"),D=h(m).querySelector("ion-icon");m.text=e.text,m.mode=e.mode,m.icon=e.icon,m.color=e.color,m.disabled=e.disabled,m.style.setProperty("display","block"),m.style.setProperty("position","fixed"),q.addElement(D),L.addElement(W),w.addElement(m),w.beforeStyles({position:"absolute",top:"0px",[R]:"0px"}).keyframes(I),L.beforeStyles({"transform-origin":`${f} top`}).beforeAddWrite(()=>{e.style.setProperty("display","none"),m.style.setProperty(f,_)}).afterAddWrite(()=>{e.style.setProperty("display",""),m.style.setProperty("display","none"),m.style.removeProperty(f)}).keyframes(A),q.beforeStyles({"transform-origin":`${T} center`}).keyframes(X),s.addAnimation([L,q,w])},j=(s,r,c,e,t,p,i,u)=>{var l,y;const E=r?"right":"left",_=r?`calc(100% - ${t.right}px)`:`${t.left}px`,T=`${t.top}px`,O=r?`-${window.innerWidth-u.right-8}px`:u.x-8+"px",S=u.y-2+"px",b=(null===(l=i.textContent)||void 0===l?void 0:l.trim())===(null===(y=e.textContent)||void 0===y?void 0:y.trim()),Y=u.height/(p.height-Z),x="scale(1)",n=b?`scale(${u.width/p.width}, ${Y})`:`scale(${Y})`,C=c?[{offset:0,opacity:0,transform:`translate3d(${O}, ${S}, 0) ${n}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${T}, 0) ${x}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${T}, 0) ${x}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${O}, ${S}, 0) ${n}`}],a=k("ion-title"),d=(0,o.c)();a.innerText=e.innerText,a.size=e.size,a.color=e.color,d.addElement(a),d.beforeStyles({"transform-origin":`${E} top`,height:`${t.height}px`,display:"",position:"relative",[E]:_}).beforeAddWrite(()=>{e.style.setProperty("opacity","0")}).afterAddWrite(()=>{e.style.setProperty("opacity",""),a.style.setProperty("display","none")}).keyframes(C),s.addAnimation(d)},tt=(s,r)=>{var c;try{const e="cubic-bezier(0.32,0.72,0,1)",t="opacity",p="transform",i="0%",l="rtl"===s.ownerDocument.dir,y=l?"-99.5%":"99.5%",E=l?"33%":"-33%",_=r.enteringEl,f=r.leavingEl,T="back"===r.direction,R=_.querySelector(":scope > ion-content"),O=_.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),N=_.querySelectorAll(":scope > ion-header > ion-toolbar"),S=(0,o.c)(),b=(0,o.c)();if(S.addElement(_).duration((null!==(c=r.duration)&&void 0!==c?c:0)||540).easing(r.easing||e).fill("both").beforeRemoveClass("ion-page-invisible"),f&&null!=s){const n=(0,o.c)();n.addElement(s),S.addAnimation(n)}if(R||0!==N.length||0!==O.length?(b.addElement(R),b.addElement(O)):b.addElement(_.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(b),T?b.beforeClearStyles([t]).fromTo("transform",`translateX(${E})`,`translateX(${i})`).fromTo(t,.8,1):b.beforeClearStyles([t]).fromTo("transform",`translateX(${y})`,`translateX(${i})`),R){const n=h(R).querySelector(".transition-effect");if(n){const g=n.querySelector(".transition-cover"),$=n.querySelector(".transition-shadow"),C=(0,o.c)(),a=(0,o.c)(),d=(0,o.c)();C.addElement(n).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),a.addElement(g).beforeClearStyles([t]).fromTo(t,0,.1),d.addElement($).beforeClearStyles([t]).fromTo(t,.03,.7),C.addAnimation([a,d]),b.addAnimation([C])}}const P=_.querySelector("ion-header.header-collapse-condense"),{forward:Y,backward:x}=((s,r,c,e,t)=>{const p=U(e,c),i=G(t),u=G(e),l=U(t,c),y=null!==p&&null!==i&&!c,E=null!==u&&null!==l&&c;if(y){const _=i.getBoundingClientRect(),f=p.getBoundingClientRect(),T=h(p).querySelector(".button-text"),R=T.getBoundingClientRect(),N=h(i).querySelector(".toolbar-title").getBoundingClientRect();j(s,r,c,i,_,N,T,R),z(s,r,c,p,f,T,R,i,N)}else if(E){const _=u.getBoundingClientRect(),f=l.getBoundingClientRect(),T=h(l).querySelector(".button-text"),R=T.getBoundingClientRect(),N=h(u).querySelector(".toolbar-title").getBoundingClientRect();j(s,r,c,u,_,N,T,R),z(s,r,c,l,f,T,R,u,N)}return{forward:y,backward:E}})(S,l,T,_,f);if(N.forEach(n=>{const g=(0,o.c)();g.addElement(n),S.addAnimation(g);const $=(0,o.c)();$.addElement(n.querySelector("ion-title"));const C=(0,o.c)(),a=Array.from(n.querySelectorAll("ion-buttons,[menuToggle]")),d=n.closest("ion-header"),I=d?.classList.contains("header-collapse-condense-inactive");let v;v=a.filter(T?X=>{const L=X.classList.contains("buttons-collapse");return L&&!I||!L}:X=>!X.classList.contains("buttons-collapse")),C.addElement(v);const B=(0,o.c)();B.addElement(n.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const A=(0,o.c)();A.addElement(h(n).querySelector(".toolbar-background"));const F=(0,o.c)(),K=n.querySelector("ion-back-button");if(K&&F.addElement(K),g.addAnimation([$,C,B,A,F]),C.fromTo(t,.01,1),B.fromTo(t,.01,1),T)I||$.fromTo("transform",`translateX(${E})`,`translateX(${i})`).fromTo(t,.01,1),B.fromTo("transform",`translateX(${E})`,`translateX(${i})`),F.fromTo(t,.01,1);else if(P||$.fromTo("transform",`translateX(${y})`,`translateX(${i})`).fromTo(t,.01,1),B.fromTo("transform",`translateX(${y})`,`translateX(${i})`),A.beforeClearStyles([t,"transform"]),d?.translucent?A.fromTo("transform",l?"translateX(-100%)":"translateX(100%)","translateX(0px)"):A.fromTo(t,.01,"var(--opacity)"),Y||F.fromTo(t,.01,1),K&&!Y){const L=(0,o.c)();L.addElement(h(K).querySelector(".button-text")).fromTo("transform",l?"translateX(-100px)":"translateX(100px)","translateX(0px)"),g.addAnimation(L)}}),f){const n=(0,o.c)(),g=f.querySelector(":scope > ion-content"),$=f.querySelectorAll(":scope > ion-header > ion-toolbar"),C=f.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(g||0!==$.length||0!==C.length?(n.addElement(g),n.addElement(C)):n.addElement(f.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),S.addAnimation(n),T){n.beforeClearStyles([t]).fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)");const a=(0,J.g)(f);S.afterAddWrite(()=>{"normal"===S.getDirection()&&a.style.setProperty("display","none")})}else n.fromTo("transform",`translateX(${i})`,`translateX(${E})`).fromTo(t,1,.8);if(g){const a=h(g).querySelector(".transition-effect");if(a){const d=a.querySelector(".transition-cover"),I=a.querySelector(".transition-shadow"),v=(0,o.c)(),B=(0,o.c)(),A=(0,o.c)();v.addElement(a).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),B.addElement(d).beforeClearStyles([t]).fromTo(t,.1,0),A.addElement(I).beforeClearStyles([t]).fromTo(t,.7,.03),v.addAnimation([B,A]),n.addAnimation([v])}}$.forEach(a=>{const d=(0,o.c)();d.addElement(a);const I=(0,o.c)();I.addElement(a.querySelector("ion-title"));const v=(0,o.c)(),B=a.querySelectorAll("ion-buttons,[menuToggle]"),A=a.closest("ion-header"),F=A?.classList.contains("header-collapse-condense-inactive"),K=Array.from(B).filter(W=>{const D=W.classList.contains("buttons-collapse");return D&&!F||!D});v.addElement(K);const X=(0,o.c)(),L=a.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");L.length>0&&X.addElement(L);const q=(0,o.c)();q.addElement(h(a).querySelector(".toolbar-background"));const w=(0,o.c)(),m=a.querySelector("ion-back-button");if(m&&w.addElement(m),d.addAnimation([I,v,X,w,q]),S.addAnimation(d),w.fromTo(t,.99,0),v.fromTo(t,.99,0),X.fromTo(t,.99,0),T){if(F||I.fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)").fromTo(t,.99,0),X.fromTo("transform",`translateX(${i})`,l?"translateX(-100%)":"translateX(100%)"),q.beforeClearStyles([t,"transform"]),A?.translucent?q.fromTo("transform","translateX(0px)",l?"translateX(-100%)":"translateX(100%)"):q.fromTo(t,"var(--opacity)",0),m&&!x){const D=(0,o.c)();D.addElement(h(m).querySelector(".button-text")).fromTo("transform",`translateX(${i})`,`translateX(${(l?-124:124)+"px"})`),d.addAnimation(D)}}else F||I.fromTo("transform",`translateX(${i})`,`translateX(${E})`).fromTo(t,.99,0).afterClearStyles([p,t]),X.fromTo("transform",`translateX(${i})`,`translateX(${E})`).afterClearStyles([p,t]),w.afterClearStyles([t]),I.afterClearStyles([t]),v.afterClearStyles([t])})}return S}catch(e){throw e}},Z=10}}]); \ No newline at end of file diff --git a/8633.ed9be4c6b313b021.js b/8633.9b7a5e4ce63aec7e.js similarity index 99% rename from 8633.ed9be4c6b313b021.js rename to 8633.9b7a5e4ce63aec7e.js index 6edd688d..da548f74 100644 --- a/8633.ed9be4c6b313b021.js +++ b/8633.9b7a5e4ce63aec7e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8633],{8633:(C,b,a)=>{a.r(b),a.d(b,{ion_item_option:()=>d,ion_item_options:()=>h,ion_item_sliding:()=>E});var p=a(5861),n=a(5349),w=a(3567),f=a(3882),u=a(839),g=a(2874),k=a(5564);const d=class{constructor(t){(0,n.r)(this,t),this.onClick=i=>{i.target.closest("ion-item-option")&&i.preventDefault()},this.color=void 0,this.disabled=!1,this.download=void 0,this.expandable=!1,this.href=void 0,this.rel=void 0,this.target=void 0,this.type="button"}render(){const{disabled:t,expandable:i,href:e}=this,o=void 0===e?"button":"a",l=(0,f.b)(this),c="button"===o?{type:this.type}:{download:this.download,href:this.href,target:this.target};return(0,n.h)(n.H,{onClick:this.onClick,class:(0,w.c)(this.color,{[l]:!0,"item-option-disabled":t,"item-option-expandable":i,"ion-activatable":!0})},(0,n.h)(o,Object.assign({},c,{class:"button-native",part:"native",disabled:t}),(0,n.h)("span",{class:"button-inner"},(0,n.h)("slot",{name:"top"}),(0,n.h)("div",{class:"horizontal-wrapper"},(0,n.h)("slot",{name:"start"}),(0,n.h)("slot",{name:"icon-only"}),(0,n.h)("slot",null),(0,n.h)("slot",{name:"end"})),(0,n.h)("slot",{name:"bottom"})),"md"===l&&(0,n.h)("ion-ripple-effect",null)))}get el(){return(0,n.f)(this)}};d.style={ios:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:clamp(16px, 1rem, 35.2px)}:host(.ion-activated){background:var(--ion-color-primary-shade, #3171e0)}:host(.ion-color.ion-activated){background:var(--ion-color-shade)}",md:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:0.875rem;font-weight:500;text-transform:uppercase}"};const h=class{constructor(t){(0,n.r)(this,t),this.ionSwipe=(0,n.d)(this,"ionSwipe",7),this.side="end"}fireSwipeEvent(){var t=this;return(0,p.Z)(function*(){t.ionSwipe.emit({side:t.side})})()}render(){const t=(0,f.b)(this),i=(0,u.p)(this.side);return(0,n.h)(n.H,{class:{[t]:!0,[`item-options-${t}`]:!0,"item-options-start":!i,"item-options-end":i}})}get el(){return(0,n.f)(this)}};let m;h.style={ios:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-ios{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)))}.item-options-ios.item-options-end{border-bottom-width:0.55px}.list-ios-lines-none .item-options-ios{border-bottom-width:0}.list-ios-lines-full .item-options-ios,.list-ios-lines-inset .item-options-ios.item-options-end{border-bottom-width:0.55px}",md:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-md{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}.list-md-lines-none .item-options-md{border-bottom-width:0}.list-md-lines-full .item-options-md,.list-md-lines-inset .item-options-md.item-options-end{border-bottom-width:1px}"};const E=class{constructor(t){(0,n.r)(this,t),this.ionDrag=(0,n.d)(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.contentEl=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}connectedCallback(){var t=this;return(0,p.Z)(function*(){const{el:i}=t;t.item=i.querySelector("ion-item"),t.contentEl=(0,g.f)(i),t.mutationObserver=(0,k.w)(i,"ion-item-option",(0,p.Z)(function*(){yield t.updateOptions()})),yield t.updateOptions(),t.gesture=(yield Promise.resolve().then(a.bind(a,9203))).createGesture({el:i,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:e=>t.canStart(e),onStart:()=>t.onStart(),onMove:e=>t.onMove(e),onEnd:e=>t.onEnd(e)}),t.disabledChanged()})()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,m===this.el&&(m=void 0),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}open(t){var i=this;return(0,p.Z)(function*(){var e;if(null===(i.item=null!==(e=i.item)&&void 0!==e?e:i.el.querySelector("ion-item")))return;const l=i.getOptions(t);l&&(void 0===t&&(t=l===i.leftOptions?"start":"end"),t=(0,u.p)(t)?"end":"start",i.openAmount<0&&l===i.leftOptions||i.openAmount>0&&l===i.rightOptions||(i.closeOpened(),i.state=4,requestAnimationFrame(()=>{i.calculateOptsWidth(),m=i.el,i.setOpenAmount("end"===t?i.optsWidthRightSide:-i.optsWidthLeftSide,!1),i.state="end"===t?8:16})))})()}close(){var t=this;return(0,p.Z)(function*(){t.setOpenAmount(0,!0)})()}closeOpened(){return(0,p.Z)(function*(){return void 0!==m&&(m.close(),m=void 0,!0)})()}getOptions(t){return void 0===t?this.leftOptions||this.rightOptions:"start"===t?this.leftOptions:this.rightOptions}updateOptions(){var t=this;return(0,p.Z)(function*(){const i=t.el.querySelectorAll("ion-item-options");let e=0;t.leftOptions=t.rightOptions=void 0;for(let o=0;othis.optsWidthRightSide?(e=this.optsWidthRightSide,i=e+.55*(i-e)):i<-this.optsWidthLeftSide&&(e=-this.optsWidthLeftSide,i=e+.55*(i-e)),this.setOpenAmount(i,!1)}onEnd(t){const{contentEl:i,initialContentScrollY:e}=this;i&&(0,g.r)(i,e);const o=t.velocityX;let l=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const c=this.openAmount>0==!(o<0),y=Math.abs(o)>.3,O=Math.abs(this.openAmount)0)this.state=t>=this.optsWidthRightSide+30?40:8;else{if(!(t<0))return e.classList.add("item-sliding-closing"),this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout(()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled),e.classList.remove("item-sliding-closing")},600),m=void 0,void(o.transform="");this.state=t<=-this.optsWidthLeftSide-30?80:16}o.transform=`translate3d(${-t}px,0,0)`,this.ionDrag.emit({amount:t,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const t=(0,f.b)(this);return(0,n.h)(n.H,{class:{[t]:!0,"item-sliding-active-slide":2!==this.state,"item-sliding-active-options-end":0!=(8&this.state),"item-sliding-active-options-start":0!=(16&this.state),"item-sliding-active-swipe-end":0!=(32&this.state),"item-sliding-active-swipe-start":0!=(64&this.state)}})}get el(){return(0,n.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},z=(t,i,e)=>!i&&e||t&&i;E.style="ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-item-sliding .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.item-sliding-active-slide .item{position:relative;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1), -webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-closing ion-item-options{pointer-events:none}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;-ms-flex-order:1;order:1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-left;transition-property:padding-left}:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-end .item-options-end .item-option-expandable:dir(rtl){-ms-flex-order:-1;order:-1}}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;-ms-flex-order:-1;order:-1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-right;transition-property:padding-right}:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-start .item-options-start .item-option-expandable:dir(rtl){-ms-flex-order:1;order:1}}"},3567:(C,b,a)=>{a.d(b,{c:()=>w,g:()=>u,h:()=>n,o:()=>k});var p=a(5861);const n=(s,r)=>null!==r.closest(s),w=(s,r)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},r):r,u=s=>{const r={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(s).forEach(d=>r[d]=!0),r},g=/^[a-z][a-z0-9+\-.]*:/,k=function(){var s=(0,p.Z)(function*(r,d,x,v){if(null!=r&&"#"!==r[0]&&!g.test(r)){const h=document.querySelector("ion-router");if(h)return d?.preventDefault(),h.push(r,x,v)}return!1});return function(d,x,v,h){return s.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8633],{8633:(C,b,a)=>{a.r(b),a.d(b,{ion_item_option:()=>d,ion_item_options:()=>h,ion_item_sliding:()=>E});var p=a(5861),n=a(9942),w=a(4459),f=a(5551),u=a(512),g=a(7946),k=a(6806);const d=class{constructor(t){(0,n.r)(this,t),this.onClick=i=>{i.target.closest("ion-item-option")&&i.preventDefault()},this.color=void 0,this.disabled=!1,this.download=void 0,this.expandable=!1,this.href=void 0,this.rel=void 0,this.target=void 0,this.type="button"}render(){const{disabled:t,expandable:i,href:e}=this,o=void 0===e?"button":"a",l=(0,f.b)(this),c="button"===o?{type:this.type}:{download:this.download,href:this.href,target:this.target};return(0,n.h)(n.H,{onClick:this.onClick,class:(0,w.c)(this.color,{[l]:!0,"item-option-disabled":t,"item-option-expandable":i,"ion-activatable":!0})},(0,n.h)(o,Object.assign({},c,{class:"button-native",part:"native",disabled:t}),(0,n.h)("span",{class:"button-inner"},(0,n.h)("slot",{name:"top"}),(0,n.h)("div",{class:"horizontal-wrapper"},(0,n.h)("slot",{name:"start"}),(0,n.h)("slot",{name:"icon-only"}),(0,n.h)("slot",null),(0,n.h)("slot",{name:"end"})),(0,n.h)("slot",{name:"bottom"})),"md"===l&&(0,n.h)("ion-ripple-effect",null)))}get el(){return(0,n.f)(this)}};d.style={ios:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:clamp(16px, 1rem, 35.2px)}:host(.ion-activated){background:var(--ion-color-primary-shade, #3171e0)}:host(.ion-color.ion-activated){background:var(--ion-color-shade)}",md:":host{--background:var(--ion-color-primary, #3880ff);--color:var(--ion-color-primary-contrast, #fff);background:var(--background);color:var(--color);font-family:var(--ion-font-family, inherit)}:host(.ion-color){background:var(--ion-color-base);color:var(--ion-color-contrast)}.button-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;-webkit-padding-start:0.7em;padding-inline-start:0.7em;-webkit-padding-end:0.7em;padding-inline-end:0.7em;padding-top:0;padding-bottom:0;display:inline-block;position:relative;width:100%;height:100%;border:0;outline:none;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-sizing:border-box;box-sizing:border-box}.button-inner{display:-ms-flexbox;display:flex;-ms-flex-flow:column nowrap;flex-flow:column nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:100%}.horizontal-wrapper{display:-ms-flexbox;display:flex;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%}::slotted(*){-ms-flex-negative:0;flex-shrink:0}::slotted([slot=start]){-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:5px;margin-inline-end:5px;margin-top:0;margin-bottom:0}::slotted([slot=end]){-webkit-margin-start:5px;margin-inline-start:5px;-webkit-margin-end:0;margin-inline-end:0;margin-top:0;margin-bottom:0}::slotted([slot=icon-only]){padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:0;margin-bottom:0;min-width:0.9em;font-size:1.8em}:host(.item-option-expandable){-ms-flex-negative:0;flex-shrink:0;-webkit-transition-duration:0;transition-duration:0;-webkit-transition-property:none;transition-property:none;-webkit-transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1);transition-timing-function:cubic-bezier(0.65, 0.05, 0.36, 1)}:host(.item-option-disabled){pointer-events:none}:host(.item-option-disabled) .button-native{cursor:default;opacity:0.5;pointer-events:none}:host{font-size:0.875rem;font-weight:500;text-transform:uppercase}"};const h=class{constructor(t){(0,n.r)(this,t),this.ionSwipe=(0,n.d)(this,"ionSwipe",7),this.side="end"}fireSwipeEvent(){var t=this;return(0,p.Z)(function*(){t.ionSwipe.emit({side:t.side})})()}render(){const t=(0,f.b)(this),i=(0,u.p)(this.side);return(0,n.h)(n.H,{class:{[t]:!0,[`item-options-${t}`]:!0,"item-options-start":!i,"item-options-end":i}})}get el(){return(0,n.f)(this)}};let m;h.style={ios:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-ios{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)))}.item-options-ios.item-options-end{border-bottom-width:0.55px}.list-ios-lines-none .item-options-ios{border-bottom-width:0}.list-ios-lines-full .item-options-ios,.list-ios-lines-inset .item-options-ios.item-options-end{border-bottom-width:0.55px}",md:"ion-item-options{top:0;right:0;-ms-flex-pack:end;justify-content:flex-end;display:none;position:absolute;height:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1}:host-context([dir=rtl]) ion-item-options{-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] ion-item-options{-ms-flex-pack:start;justify-content:flex-start}[dir=rtl] ion-item-options:not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){ion-item-options:dir(rtl){-ms-flex-pack:start;justify-content:flex-start}ion-item-options:dir(rtl):not(.item-options-end){right:auto;left:0;-ms-flex-pack:end;justify-content:flex-end}}.item-options-start{right:auto;left:0;-ms-flex-pack:start;justify-content:flex-start}:host-context([dir=rtl]) .item-options-start{-ms-flex-pack:end;justify-content:flex-end}[dir=rtl] .item-options-start{-ms-flex-pack:end;justify-content:flex-end}@supports selector(:dir(rtl)){.item-options-start:dir(rtl){-ms-flex-pack:end;justify-content:flex-end}}[dir=ltr] .item-options-start ion-item-option:first-child,[dir=rtl] .item-options-start ion-item-option:last-child{padding-left:var(--ion-safe-area-left)}[dir=ltr] .item-options-end ion-item-option:last-child,[dir=rtl] .item-options-end ion-item-option:first-child{padding-right:var(--ion-safe-area-right)}:host-context([dir=rtl]) .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}[dir=rtl] .item-sliding-active-slide.item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}@supports selector(:dir(rtl)){.item-sliding-active-slide:dir(rtl).item-sliding-active-options-start ion-item-options:not(.item-options-end){width:100%;visibility:visible}}.item-sliding-active-slide ion-item-options{display:-ms-flexbox;display:flex;visibility:hidden}.item-sliding-active-slide.item-sliding-active-options-start .item-options-start,.item-sliding-active-slide.item-sliding-active-options-end ion-item-options:not(.item-options-start){width:100%;visibility:visible}.item-options-md{border-bottom-width:0;border-bottom-style:solid;border-bottom-color:var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))))}.list-md-lines-none .item-options-md{border-bottom-width:0}.list-md-lines-full .item-options-md,.list-md-lines-inset .item-options-md.item-options-end{border-bottom-width:1px}"};const E=class{constructor(t){(0,n.r)(this,t),this.ionDrag=(0,n.d)(this,"ionDrag",7),this.item=null,this.openAmount=0,this.initialOpenAmount=0,this.optsWidthRightSide=0,this.optsWidthLeftSide=0,this.sides=0,this.optsDirty=!0,this.contentEl=null,this.initialContentScrollY=!0,this.state=2,this.disabled=!1}disabledChanged(){this.gesture&&this.gesture.enable(!this.disabled)}connectedCallback(){var t=this;return(0,p.Z)(function*(){const{el:i}=t;t.item=i.querySelector("ion-item"),t.contentEl=(0,g.f)(i),t.mutationObserver=(0,k.w)(i,"ion-item-option",(0,p.Z)(function*(){yield t.updateOptions()})),yield t.updateOptions(),t.gesture=(yield Promise.resolve().then(a.bind(a,6535))).createGesture({el:i,gestureName:"item-swipe",gesturePriority:100,threshold:5,canStart:e=>t.canStart(e),onStart:()=>t.onStart(),onMove:e=>t.onMove(e),onEnd:e=>t.onEnd(e)}),t.disabledChanged()})()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.item=null,this.leftOptions=this.rightOptions=void 0,m===this.el&&(m=void 0),this.mutationObserver&&(this.mutationObserver.disconnect(),this.mutationObserver=void 0)}getOpenAmount(){return Promise.resolve(this.openAmount)}getSlidingRatio(){return Promise.resolve(this.getSlidingRatioSync())}open(t){var i=this;return(0,p.Z)(function*(){var e;if(null===(i.item=null!==(e=i.item)&&void 0!==e?e:i.el.querySelector("ion-item")))return;const l=i.getOptions(t);l&&(void 0===t&&(t=l===i.leftOptions?"start":"end"),t=(0,u.p)(t)?"end":"start",i.openAmount<0&&l===i.leftOptions||i.openAmount>0&&l===i.rightOptions||(i.closeOpened(),i.state=4,requestAnimationFrame(()=>{i.calculateOptsWidth(),m=i.el,i.setOpenAmount("end"===t?i.optsWidthRightSide:-i.optsWidthLeftSide,!1),i.state="end"===t?8:16})))})()}close(){var t=this;return(0,p.Z)(function*(){t.setOpenAmount(0,!0)})()}closeOpened(){return(0,p.Z)(function*(){return void 0!==m&&(m.close(),m=void 0,!0)})()}getOptions(t){return void 0===t?this.leftOptions||this.rightOptions:"start"===t?this.leftOptions:this.rightOptions}updateOptions(){var t=this;return(0,p.Z)(function*(){const i=t.el.querySelectorAll("ion-item-options");let e=0;t.leftOptions=t.rightOptions=void 0;for(let o=0;othis.optsWidthRightSide?(e=this.optsWidthRightSide,i=e+.55*(i-e)):i<-this.optsWidthLeftSide&&(e=-this.optsWidthLeftSide,i=e+.55*(i-e)),this.setOpenAmount(i,!1)}onEnd(t){const{contentEl:i,initialContentScrollY:e}=this;i&&(0,g.r)(i,e);const o=t.velocityX;let l=this.openAmount>0?this.optsWidthRightSide:-this.optsWidthLeftSide;const c=this.openAmount>0==!(o<0),y=Math.abs(o)>.3,O=Math.abs(this.openAmount)0)this.state=t>=this.optsWidthRightSide+30?40:8;else{if(!(t<0))return e.classList.add("item-sliding-closing"),this.gesture&&this.gesture.enable(!1),this.tmr=setTimeout(()=>{this.state=2,this.tmr=void 0,this.gesture&&this.gesture.enable(!this.disabled),e.classList.remove("item-sliding-closing")},600),m=void 0,void(o.transform="");this.state=t<=-this.optsWidthLeftSide-30?80:16}o.transform=`translate3d(${-t}px,0,0)`,this.ionDrag.emit({amount:t,ratio:this.getSlidingRatioSync()})}getSlidingRatioSync(){return this.openAmount>0?this.openAmount/this.optsWidthRightSide:this.openAmount<0?this.openAmount/this.optsWidthLeftSide:0}render(){const t=(0,f.b)(this);return(0,n.h)(n.H,{class:{[t]:!0,"item-sliding-active-slide":2!==this.state,"item-sliding-active-options-end":0!=(8&this.state),"item-sliding-active-options-start":0!=(16&this.state),"item-sliding-active-swipe-end":0!=(32&this.state),"item-sliding-active-swipe-start":0!=(64&this.state)}})}get el(){return(0,n.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},z=(t,i,e)=>!i&&e||t&&i;E.style="ion-item-sliding{display:block;position:relative;width:100%;overflow:hidden;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-item-sliding .item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.item-sliding-active-slide .item{position:relative;-webkit-transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:-webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);transition:transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1), -webkit-transform 500ms cubic-bezier(0.36, 0.66, 0.04, 1);opacity:1;z-index:2;pointer-events:none;will-change:transform}.item-sliding-closing ion-item-options{pointer-events:none}.item-sliding-active-swipe-end .item-options-end .item-option-expandable{padding-left:100%;-ms-flex-order:1;order:1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-left;transition-property:padding-left}:host-context([dir=rtl]) .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}[dir=rtl] .item-sliding-active-swipe-end .item-options-end .item-option-expandable{-ms-flex-order:-1;order:-1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-end .item-options-end .item-option-expandable:dir(rtl){-ms-flex-order:-1;order:-1}}.item-sliding-active-swipe-start .item-options-start .item-option-expandable{padding-right:100%;-ms-flex-order:-1;order:-1;-webkit-transition-duration:0.6s;transition-duration:0.6s;-webkit-transition-property:padding-right;transition-property:padding-right}:host-context([dir=rtl]) .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}[dir=rtl] .item-sliding-active-swipe-start .item-options-start .item-option-expandable{-ms-flex-order:1;order:1}@supports selector(:dir(rtl)){.item-sliding-active-swipe-start .item-options-start .item-option-expandable:dir(rtl){-ms-flex-order:1;order:1}}"},4459:(C,b,a)=>{a.d(b,{c:()=>w,g:()=>u,h:()=>n,o:()=>k});var p=a(5861);const n=(s,r)=>null!==r.closest(s),w=(s,r)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},r):r,u=s=>{const r={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(s).forEach(d=>r[d]=!0),r},g=/^[a-z][a-z0-9+\-.]*:/,k=function(){var s=(0,p.Z)(function*(r,d,x,v){if(null!=r&&"#"!==r[0]&&!g.test(r)){const h=document.querySelector("ion-router");if(h)return d?.preventDefault(),h.push(r,x,v)}return!1});return function(d,x,v,h){return s.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8811.ebab0417cd0088bd.js b/8811.f9369853f077be45.js similarity index 55% rename from 8811.ebab0417cd0088bd.js rename to 8811.f9369853f077be45.js index de5e84cb..41e840b7 100644 --- a/8811.ebab0417cd0088bd.js +++ b/8811.f9369853f077be45.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8811],{8811:(d,u,e)=>{e.r(u),e.d(u,{ion_text:()=>l});var r=e(5349),_=e(3567),c=e(3882);const l=class{constructor(s){(0,r.r)(this,s),this.color=void 0}render(){const s=(0,c.b)(this);return(0,r.h)(r.H,{class:(0,_.c)(this.color,{[s]:!0})},(0,r.h)("slot",null))}};l.style=":host(.ion-color){color:var(--ion-color-base)}"},3567:(d,u,e)=>{e.d(u,{c:()=>c,g:()=>l,h:()=>_,o:()=>p});var r=e(5861);const _=(t,n)=>null!==n.closest(t),c=(t,n)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},n):n,l=t=>{const n={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(o=>null!=o).map(o=>o.trim()).filter(o=>""!==o):[])(t).forEach(o=>n[o]=!0),n},s=/^[a-z][a-z0-9+\-.]*:/,p=function(){var t=(0,r.Z)(function*(n,o,f,h){if(null!=n&&"#"!==n[0]&&!s.test(n)){const i=document.querySelector("ion-router");if(i)return o?.preventDefault(),i.push(n,f,h)}return!1});return function(o,f,h,i){return t.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8811],{8811:(d,u,r)=>{r.r(u),r.d(u,{ion_text:()=>l});var e=r(9942),_=r(4459),a=r(5551);const l=class{constructor(s){(0,e.r)(this,s),this.color=void 0}render(){const s=(0,a.b)(this);return(0,e.h)(e.H,{class:(0,_.c)(this.color,{[s]:!0})},(0,e.h)("slot",null))}};l.style=":host(.ion-color){color:var(--ion-color-base)}"},4459:(d,u,r)=>{r.d(u,{c:()=>a,g:()=>l,h:()=>_,o:()=>p});var e=r(5861);const _=(t,n)=>null!==n.closest(t),a=(t,n)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},n):n,l=t=>{const n={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(o=>null!=o).map(o=>o.trim()).filter(o=>""!==o):[])(t).forEach(o=>n[o]=!0),n},s=/^[a-z][a-z0-9+\-.]*:/,p=function(){var t=(0,e.Z)(function*(n,o,f,h){if(null!=n&&"#"!==n[0]&&!s.test(n)){const i=document.querySelector("ion-router");if(i)return o?.preventDefault(),i.push(n,f,h)}return!1});return function(o,f,h,i){return t.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8866.4db2bfc4d5f24800.js b/8866.4db2bfc4d5f24800.js new file mode 100644 index 00000000..baa33cc2 --- /dev/null +++ b/8866.4db2bfc4d5f24800.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8866],{8866:(T,m,r)=>{r.r(m),r.d(m,{ion_toggle:()=>j});var b=r(5861),o=r(9942),u=r(9749),c=r(512),f=r(2400),x=r(9951),d=r(4162),i=r(4459),l=r(1076),s=r(5551);r(1836),r(1848);const j=class{constructor(t){var n=this;(0,o.r)(this,t),this.ionChange=(0,o.d)(this,"ionChange",7),this.ionFocus=(0,o.d)(this,"ionFocus",7),this.ionBlur=(0,o.d)(this,"ionBlur",7),this.ionStyle=(0,o.d)(this,"ionStyle",7),this.inputId="ion-tg-"+I++,this.lastDrag=0,this.inheritedAttributes={},this.didLoad=!1,this.hasLoggedDeprecationWarning=!1,this.setupGesture=(0,b.Z)(function*(){const{toggleTrack:e}=n;e&&(n.gesture=(yield Promise.resolve().then(r.bind(r,6535))).createGesture({el:e,gestureName:"toggle",gesturePriority:100,threshold:5,passive:!1,onStart:()=>n.onStart(),onMove:a=>n.onMove(a),onEnd:a=>n.onEnd(a)}),n.disabledChanged())}),this.onClick=e=>{this.disabled||(e.preventDefault(),this.lastDrag+300{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.getSwitchLabelIcon=(e,a)=>"md"===e?a?l.f:l.r:a?l.r:l.g,this.activated=!1,this.color=void 0,this.name=this.inputId,this.checked=!1,this.disabled=!1,this.value="on",this.enableOnOffLabels=s.c.get("toggleOnOffLabels"),this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}disabledChanged(){this.emitStyle(),this.gesture&&this.gesture.enable(!this.disabled)}toggleChecked(){const{checked:t,value:n}=this,e=!t;this.checked=e,this.ionChange.emit({checked:e,value:n})}connectedCallback(){var t=this;return(0,b.Z)(function*(){t.legacyFormController=(0,u.c)(t.el),t.didLoad&&t.setupGesture()})()}componentDidLoad(){this.setupGesture(),this.didLoad=!0}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},(0,c.i)(this.el)))}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({"interactive-disabled":this.disabled,legacy:!!this.legacy})}onStart(){this.activated=!0,this.setFocus()}onMove(t){P((0,d.i)(this.el),this.checked,t.deltaX,-10)&&(this.toggleChecked(),(0,x.c)())}onEnd(t){this.activated=!1,this.lastDrag=Date.now(),t.event.preventDefault(),t.event.stopImmediatePropagation()}getValue(){return this.value||""}setFocus(){this.focusEl&&this.focusEl.focus()}renderOnOffSwitchLabels(t,n){const e=this.getSwitchLabelIcon(t,n);return(0,o.h)("ion-icon",{class:{"toggle-switch-icon":!0,"toggle-switch-icon-checked":n},icon:e,"aria-hidden":"true"})}renderToggleControl(){const t=(0,s.b)(this),{enableOnOffLabels:n,checked:e}=this;return(0,o.h)("div",{class:"toggle-icon",part:"track",ref:a=>this.toggleTrack=a},n&&"ios"===t&&[this.renderOnOffSwitchLabels(t,!0),this.renderOnOffSwitchLabels(t,!1)],(0,o.h)("div",{class:"toggle-icon-wrapper"},(0,o.h)("div",{class:"toggle-inner",part:"handle"},n&&"md"===t&&this.renderOnOffSwitchLabels(t,e))))}get hasLabel(){return""!==this.el.textContent}render(){const{legacyFormController:t}=this;return t.hasLegacyControl()?this.renderLegacyToggle():this.renderToggle()}renderToggle(){const{activated:t,color:n,checked:e,disabled:a,el:g,justify:p,labelPlacement:v,inputId:y,name:_,alignment:E}=this,C=(0,s.b)(this),O=this.getValue(),D=(0,d.i)(g)?"rtl":"ltr";return(0,c.d)(!0,g,_,e?O:"",a),(0,o.h)(o.H,{onClick:this.onClick,class:(0,i.c)(n,{[C]:!0,"in-item":(0,i.h)("ion-item",g),"toggle-activated":t,"toggle-checked":e,"toggle-disabled":a,[`toggle-justify-${p}`]:!0,[`toggle-alignment-${E}`]:!0,[`toggle-label-placement-${v}`]:!0,[`toggle-${D}`]:!0})},(0,o.h)("label",{class:"toggle-wrapper"},(0,o.h)("input",Object.assign({type:"checkbox",role:"switch","aria-checked":`${e}`,checked:e,disabled:a,id:y,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:L=>this.focusEl=L},this.inheritedAttributes)),(0,o.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel},part:"label"},(0,o.h)("slot",null)),(0,o.h)("div",{class:"native-wrapper"},this.renderToggleControl())))}renderLegacyToggle(){this.hasLoggedDeprecationWarning||((0,f.p)('ion-toggle now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Email\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,f.p)('ion-toggle is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new toggle syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{activated:t,color:n,checked:e,disabled:a,el:g,inputId:p,name:v}=this,y=(0,s.b)(this),{label:_,labelId:E,labelText:C}=(0,c.e)(g,p),O=this.getValue(),D=(0,d.i)(g)?"rtl":"ltr";return(0,c.d)(!0,g,v,e?O:"",a),(0,o.h)(o.H,{onClick:this.onClick,"aria-labelledby":_?E:null,"aria-checked":`${e}`,"aria-hidden":a?"true":null,role:"switch",class:(0,i.c)(n,{[y]:!0,"in-item":(0,i.h)("ion-item",g),"toggle-activated":t,"toggle-checked":e,"toggle-disabled":a,"legacy-toggle":!0,interactive:!0,[`toggle-${D}`]:!0})},this.renderToggleControl(),(0,o.h)("label",{htmlFor:p},C),(0,o.h)("input",{type:"checkbox",role:"switch","aria-checked":`${e}`,disabled:a,id:p,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:L=>this.focusEl=L}))}get el(){return(0,o.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},P=(t,n,e,a)=>n?!t&&a>e||t&&-ae;let I=0;j.style={ios:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item:not(.legacy-toggle)){width:100%;height:100%}:host([slot=start]:not(.legacy-toggle)),:host([slot=end]:not(.legacy-toggle)){width:auto}:host(.legacy-toggle){contain:content;-ms-touch-action:none;touch-action:none}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}:host(.legacy-toggle) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0;pointer-events:none}@supports (inset-inline-start: 0){:host(.legacy-toggle) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-toggle) label{left:0}:host-context([dir=rtl]):host(.legacy-toggle) label,:host-context([dir=rtl]).legacy-toggle label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-toggle:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-toggle) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-toggle)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--track-background-checked:var(--ion-color-primary, #3880ff);--border-radius:16px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 12px rgba(0, 0, 0, 0.16), 0 3px 1px rgba(0, 0, 0, 0.1);--handle-height:calc(32px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(32px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms}:host(.legacy-toggle){width:51px;height:32px;contain:strict;overflow:hidden}.native-wrapper .toggle-icon{width:51px;height:32px;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px;-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}:host(.in-item.legacy-toggle){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:0;padding-inline-end:0;padding-top:6px;padding-bottom:5px}:host(.in-item.legacy-toggle[slot=start]){-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:6px;padding-bottom:5px}",md:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item:not(.legacy-toggle)){width:100%;height:100%}:host([slot=start]:not(.legacy-toggle)),:host([slot=end]:not(.legacy-toggle)){width:auto}:host(.legacy-toggle){contain:content;-ms-touch-action:none;touch-action:none}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}:host(.legacy-toggle) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0;pointer-events:none}@supports (inset-inline-start: 0){:host(.legacy-toggle) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-toggle) label{left:0}:host-context([dir=rtl]):host(.legacy-toggle) label,:host-context([dir=rtl]).legacy-toggle label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-toggle:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-toggle) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-toggle)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--track-background-checked:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #3880ff);--handle-border-radius:50%;--handle-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1)}:host(.legacy-toggle){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;width:36px;height:14px;contain:strict}.native-wrapper .toggle-icon{width:36px;height:14px}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{-webkit-transition:background-color 160ms;transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}:host(.toggle-disabled){opacity:0.38}:host(.in-item.legacy-toggle){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:0;padding-inline-end:0;padding-top:12px;padding-bottom:12px;cursor:pointer}:host(.in-item.legacy-toggle[slot=start]){-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:18px;padding-inline-end:18px;padding-top:12px;padding-bottom:12px}"}},4459:(T,m,r)=>{r.d(m,{c:()=>u,g:()=>f,h:()=>o,o:()=>d});var b=r(5861);const o=(i,l)=>null!==l.closest(i),u=(i,l)=>"string"==typeof i&&i.length>0?Object.assign({"ion-color":!0,[`ion-color-${i}`]:!0},l):l,f=i=>{const l={};return(i=>void 0!==i?(Array.isArray(i)?i:i.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(i).forEach(s=>l[s]=!0),l},x=/^[a-z][a-z0-9+\-.]*:/,d=function(){var i=(0,b.Z)(function*(l,s,w,k){if(null!=l&&"#"!==l[0]&&!x.test(l)){const h=document.querySelector("ion-router");if(h)return s?.preventDefault(),h.push(l,w,k)}return!1});return function(s,w,k,h){return i.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8866.c9fb9b42d8600530.js b/8866.c9fb9b42d8600530.js deleted file mode 100644 index 6ec526e5..00000000 --- a/8866.c9fb9b42d8600530.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8866],{8866:(T,m,r)=>{r.r(m),r.d(m,{ion_toggle:()=>j});var b=r(5861),o=r(5349),u=r(9988),c=r(839),f=r(6710),x=r(967),d=r(5085),i=r(3567),l=r(5307),s=r(3882);r(4874),r(6225);const j=class{constructor(e){var a=this;(0,o.r)(this,e),this.ionChange=(0,o.d)(this,"ionChange",7),this.ionFocus=(0,o.d)(this,"ionFocus",7),this.ionBlur=(0,o.d)(this,"ionBlur",7),this.ionStyle=(0,o.d)(this,"ionStyle",7),this.inputId="ion-tg-"+I++,this.lastDrag=0,this.inheritedAttributes={},this.didLoad=!1,this.hasLoggedDeprecationWarning=!1,this.setupGesture=(0,b.Z)(function*(){const{toggleTrack:t}=a;t&&(a.gesture=(yield Promise.resolve().then(r.bind(r,9203))).createGesture({el:t,gestureName:"toggle",gesturePriority:100,threshold:5,passive:!1,onStart:()=>a.onStart(),onMove:n=>a.onMove(n),onEnd:n=>a.onEnd(n)}),a.disabledChanged())}),this.onClick=t=>{this.disabled||(t.preventDefault(),this.lastDrag+300{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.getSwitchLabelIcon=(t,n)=>"md"===t?n?l.f:l.r:n?l.r:l.g,this.activated=!1,this.color=void 0,this.name=this.inputId,this.checked=!1,this.disabled=!1,this.value="on",this.enableOnOffLabels=s.c.get("toggleOnOffLabels"),this.labelPlacement="start",this.legacy=void 0,this.justify="space-between",this.alignment="center"}disabledChanged(){this.emitStyle(),this.gesture&&this.gesture.enable(!this.disabled)}toggleChecked(){const{checked:e,value:a}=this,t=!e;this.checked=t,this.ionChange.emit({checked:t,value:a})}connectedCallback(){var e=this;return(0,b.Z)(function*(){e.legacyFormController=(0,u.c)(e.el),e.didLoad&&e.setupGesture()})()}componentDidLoad(){this.setupGesture(),this.didLoad=!0}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0)}componentWillLoad(){this.emitStyle(),this.legacyFormController.hasLegacyControl()||(this.inheritedAttributes=Object.assign({},(0,c.i)(this.el)))}emitStyle(){this.legacyFormController.hasLegacyControl()&&this.ionStyle.emit({"interactive-disabled":this.disabled})}onStart(){this.activated=!0,this.setFocus()}onMove(e){P((0,d.i)(this.el),this.checked,e.deltaX,-10)&&(this.toggleChecked(),(0,x.c)())}onEnd(e){this.activated=!1,this.lastDrag=Date.now(),e.event.preventDefault(),e.event.stopImmediatePropagation()}getValue(){return this.value||""}setFocus(){this.focusEl&&this.focusEl.focus()}renderOnOffSwitchLabels(e,a){const t=this.getSwitchLabelIcon(e,a);return(0,o.h)("ion-icon",{class:{"toggle-switch-icon":!0,"toggle-switch-icon-checked":a},icon:t,"aria-hidden":"true"})}renderToggleControl(){const e=(0,s.b)(this),{enableOnOffLabels:a,checked:t}=this;return(0,o.h)("div",{class:"toggle-icon",part:"track",ref:n=>this.toggleTrack=n},a&&"ios"===e&&[this.renderOnOffSwitchLabels(e,!0),this.renderOnOffSwitchLabels(e,!1)],(0,o.h)("div",{class:"toggle-icon-wrapper"},(0,o.h)("div",{class:"toggle-inner",part:"handle"},a&&"md"===e&&this.renderOnOffSwitchLabels(e,t))))}get hasLabel(){return""!==this.el.textContent}render(){const{legacyFormController:e}=this;return e.hasLegacyControl()?this.renderLegacyToggle():this.renderToggle()}renderToggle(){const{activated:e,color:a,checked:t,disabled:n,el:g,justify:p,labelPlacement:v,inputId:y,name:_,alignment:E}=this,C=(0,s.b)(this),O=this.getValue(),D=(0,d.i)(g)?"rtl":"ltr";return(0,c.d)(!0,g,_,t?O:"",n),(0,o.h)(o.H,{onClick:this.onClick,class:(0,i.c)(a,{[C]:!0,"in-item":(0,i.h)("ion-item",g),"toggle-activated":e,"toggle-checked":t,"toggle-disabled":n,[`toggle-justify-${p}`]:!0,[`toggle-alignment-${E}`]:!0,[`toggle-label-placement-${v}`]:!0,[`toggle-${D}`]:!0})},(0,o.h)("label",{class:"toggle-wrapper"},(0,o.h)("input",Object.assign({type:"checkbox",role:"switch","aria-checked":`${t}`,checked:t,disabled:n,id:y,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:L=>this.focusEl=L},this.inheritedAttributes)),(0,o.h)("div",{class:{"label-text-wrapper":!0,"label-text-wrapper-hidden":!this.hasLabel}},(0,o.h)("slot",null)),(0,o.h)("div",{class:"native-wrapper"},this.renderToggleControl())))}renderLegacyToggle(){this.hasLoggedDeprecationWarning||((0,f.p)('ion-toggle now requires providing a label with either the default slot or the "aria-label" attribute. To migrate, remove any usage of "ion-label" and pass the label text to either the component or the "aria-label" attribute.\n\nExample: Email\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el),this.legacy&&(0,f.p)('ion-toggle is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new toggle syntax.',this.el),this.hasLoggedDeprecationWarning=!0);const{activated:e,color:a,checked:t,disabled:n,el:g,inputId:p,name:v}=this,y=(0,s.b)(this),{label:_,labelId:E,labelText:C}=(0,c.e)(g,p),O=this.getValue(),D=(0,d.i)(g)?"rtl":"ltr";return(0,c.d)(!0,g,v,t?O:"",n),(0,o.h)(o.H,{onClick:this.onClick,"aria-labelledby":_?E:null,"aria-checked":`${t}`,"aria-hidden":n?"true":null,role:"switch",class:(0,i.c)(a,{[y]:!0,"in-item":(0,i.h)("ion-item",g),"toggle-activated":e,"toggle-checked":t,"toggle-disabled":n,"legacy-toggle":!0,interactive:!0,[`toggle-${D}`]:!0})},this.renderToggleControl(),(0,o.h)("label",{htmlFor:p},C),(0,o.h)("input",{type:"checkbox",role:"switch","aria-checked":`${t}`,disabled:n,id:p,onFocus:()=>this.onFocus(),onBlur:()=>this.onBlur(),ref:L=>this.focusEl=L}))}get el(){return(0,o.f)(this)}static get watchers(){return{disabled:["disabledChanged"]}}},P=(e,a,t,n)=>a?!e&&n>t||e&&-nt;let I=0;j.style={ios:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item:not(.legacy-toggle)){width:100%;height:100%}:host([slot=start]:not(.legacy-toggle)),:host([slot=end]:not(.legacy-toggle)){width:auto}:host(.legacy-toggle){contain:content;-ms-touch-action:none;touch-action:none}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}:host(.legacy-toggle) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0;pointer-events:none}@supports (inset-inline-start: 0){:host(.legacy-toggle) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-toggle) label{left:0}:host-context([dir=rtl]):host(.legacy-toggle) label,:host-context([dir=rtl]).legacy-toggle label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-toggle:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-toggle) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-toggle)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.088);--track-background-checked:var(--ion-color-primary, #3880ff);--border-radius:16px;--handle-background:#ffffff;--handle-background-checked:#ffffff;--handle-border-radius:25.5px;--handle-box-shadow:0 3px 12px rgba(0, 0, 0, 0.16), 0 3px 1px rgba(0, 0, 0, 0.1);--handle-height:calc(32px - (2px * 2));--handle-max-height:calc(100% - var(--handle-spacing) * 2);--handle-width:calc(32px - (2px * 2));--handle-spacing:2px;--handle-transition:transform 300ms, width 120ms ease-in-out 80ms, left 110ms ease-in-out 80ms, right 110ms ease-in-out 80ms}:host(.legacy-toggle){width:51px;height:32px;contain:strict;overflow:hidden}.native-wrapper .toggle-icon{width:51px;height:32px;overflow:hidden}:host(.ion-color.toggle-checked) .toggle-icon{background:var(--ion-color-base)}:host(.toggle-activated) .toggle-switch-icon{opacity:0}.toggle-icon{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:background-color 300ms;transition:background-color 300ms}.toggle-inner{will-change:transform}.toggle-switch-icon{position:absolute;top:50%;width:11px;height:11px;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:opacity 300ms, color 300ms;transition:opacity 300ms, color 300ms}.toggle-switch-icon{position:absolute;color:var(--ion-color-dark)}:host(.toggle-ltr) .toggle-switch-icon{right:6px}:host(.toggle-rtl) .toggle-switch-icon{right:initial;left:6px;}:host(.toggle-checked) .toggle-switch-icon.toggle-switch-icon-checked{color:var(--ion-color-contrast, #fff)}:host(.toggle-checked) .toggle-switch-icon:not(.toggle-switch-icon-checked){opacity:0}.toggle-switch-icon-checked{position:absolute;width:15px;height:15px;-webkit-transform:translateY(-50%) rotate(90deg);transform:translateY(-50%) rotate(90deg)}:host(.toggle-ltr) .toggle-switch-icon-checked{right:initial;left:4px;}:host(.toggle-rtl) .toggle-switch-icon-checked{right:4px}:host(.toggle-activated) .toggle-icon::before,:host(.toggle-checked) .toggle-icon::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated.toggle-checked) .toggle-inner::before{-webkit-transform:scale3d(0, 0, 0);transform:scale3d(0, 0, 0)}:host(.toggle-activated) .toggle-inner{width:calc(var(--handle-width) + 6px)}:host(.toggle-ltr.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0);transform:translate3d(calc(100% - var(--handle-width) - 6px), 0, 0)}:host(.toggle-rtl.toggle-activated.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0);transform:translate3d(calc(-100% + var(--handle-width) + 6px), 0, 0)}:host(.toggle-disabled){opacity:0.3}:host(.in-item.legacy-toggle){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:0;padding-inline-end:0;padding-top:6px;padding-bottom:5px}:host(.in-item.legacy-toggle[slot=start]){-webkit-padding-start:0;padding-inline-start:0;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:6px;padding-bottom:5px}",md:":host{-webkit-box-sizing:content-box !important;box-sizing:content-box !important;display:inline-block;position:relative;max-width:100%;outline:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:2}:host(.in-item:not(.legacy-toggle)){width:100%;height:100%}:host([slot=start]:not(.legacy-toggle)),:host([slot=end]:not(.legacy-toggle)){width:auto}:host(.legacy-toggle){contain:content;-ms-touch-action:none;touch-action:none}:host(.ion-focused) input{border:2px solid #5e9ed6}:host(.toggle-disabled){pointer-events:none}:host(.legacy-toggle) label{top:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;position:absolute;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;outline:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;opacity:0;pointer-events:none}@supports (inset-inline-start: 0){:host(.legacy-toggle) label{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host(.legacy-toggle) label{left:0}:host-context([dir=rtl]):host(.legacy-toggle) label,:host-context([dir=rtl]).legacy-toggle label{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(.legacy-toggle:dir(rtl)) label{left:unset;right:unset;right:0}}}:host(.legacy-toggle) label::-moz-focus-inner{border:0}input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}.toggle-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-positive:1;flex-grow:1;height:inherit;-webkit-transition:background-color 15ms linear;transition:background-color 15ms linear;cursor:inherit}.label-text-wrapper{pointer-events:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host(.in-item:not(.legacy-toggle)) .label-text-wrapper{margin-top:10px;margin-bottom:10px}:host(.in-item.toggle-label-placement-stacked) .label-text-wrapper{margin-top:10px;margin-bottom:16px}:host(.in-item.toggle-label-placement-stacked) .native-wrapper{margin-bottom:10px}.label-text-wrapper-hidden{display:none}.native-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host(.toggle-justify-space-between) .toggle-wrapper{-ms-flex-pack:justify;justify-content:space-between}:host(.toggle-justify-start) .toggle-wrapper{-ms-flex-pack:start;justify-content:start}:host(.toggle-justify-end) .toggle-wrapper{-ms-flex-pack:end;justify-content:end}:host(.toggle-alignment-start) .toggle-wrapper{-ms-flex-align:start;align-items:start}:host(.toggle-alignment-center) .toggle-wrapper{-ms-flex-align:center;align-items:center}:host(.toggle-label-placement-start) .toggle-wrapper{-ms-flex-direction:row;flex-direction:row}:host(.toggle-label-placement-start) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-end) .toggle-wrapper{-ms-flex-direction:row-reverse;flex-direction:row-reverse}:host(.toggle-label-placement-end) .label-text-wrapper{-webkit-margin-start:16px;margin-inline-start:16px;-webkit-margin-end:0;margin-inline-end:0}:host(.toggle-label-placement-fixed) .label-text-wrapper{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:16px;margin-inline-end:16px}:host(.toggle-label-placement-fixed) .label-text-wrapper{-ms-flex:0 0 100px;flex:0 0 100px;width:100px;min-width:100px;max-width:200px}:host(.toggle-label-placement-stacked) .toggle-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.toggle-label-placement-stacked) .label-text-wrapper{-webkit-transform:scale(0.75);transform:scale(0.75);margin-left:0;margin-right:0;margin-bottom:16px;max-width:calc(100% / 0.75)}:host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper{-webkit-transform-origin:left top;transform-origin:left top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-start) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-start .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-start:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:right top;transform-origin:right top}}:host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper{-webkit-transform-origin:center top;transform-origin:center top}:host-context([dir=rtl]):host(.toggle-label-placement-stacked.toggle-alignment-center) .label-text-wrapper,:host-context([dir=rtl]).toggle-label-placement-stacked.toggle-alignment-center .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}@supports selector(:dir(rtl)){:host(.toggle-label-placement-stacked.toggle-alignment-center:dir(rtl)) .label-text-wrapper{-webkit-transform-origin:calc(100% - center) top;transform-origin:calc(100% - center) top}}.toggle-icon-wrapper{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;width:100%;height:100%;-webkit-transition:var(--handle-transition);transition:var(--handle-transition);will-change:transform}.toggle-icon{border-radius:var(--border-radius);display:block;position:relative;width:100%;height:100%;background:var(--track-background);overflow:inherit}:host(.toggle-checked) .toggle-icon{background:var(--track-background-checked)}.toggle-inner{border-radius:var(--handle-border-radius);position:absolute;left:var(--handle-spacing);width:var(--handle-width);height:var(--handle-height);max-height:var(--handle-max-height);-webkit-transition:var(--handle-transition);transition:var(--handle-transition);background:var(--handle-background);-webkit-box-shadow:var(--handle-box-shadow);box-shadow:var(--handle-box-shadow);contain:strict}:host(.toggle-ltr) .toggle-inner{left:var(--handle-spacing)}:host(.toggle-rtl) .toggle-inner{right:var(--handle-spacing)}:host(.toggle-ltr.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(100% - var(--handle-width)), 0, 0);transform:translate3d(calc(100% - var(--handle-width)), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-icon-wrapper{-webkit-transform:translate3d(calc(-100% + var(--handle-width)), 0, 0);transform:translate3d(calc(-100% + var(--handle-width)), 0, 0)}:host(.toggle-checked) .toggle-inner{background:var(--handle-background-checked)}:host(.toggle-ltr.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * -2), 0, 0)}:host(.toggle-rtl.toggle-checked) .toggle-inner{-webkit-transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0);transform:translate3d(calc(var(--handle-spacing) * 2), 0, 0)}:host{--track-background:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.39);--track-background-checked:rgba(var(--ion-color-primary-rgb, 56, 128, 255), 0.5);--border-radius:14px;--handle-background:#ffffff;--handle-background-checked:var(--ion-color-primary, #3880ff);--handle-border-radius:50%;--handle-box-shadow:0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);--handle-width:20px;--handle-height:20px;--handle-max-height:calc(100% + 6px);--handle-spacing:0;--handle-transition:transform 160ms cubic-bezier(0.4, 0, 0.2, 1), background-color 160ms cubic-bezier(0.4, 0, 0.2, 1)}:host(.legacy-toggle){-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:12px;padding-bottom:12px;width:36px;height:14px;contain:strict}.native-wrapper .toggle-icon{width:36px;height:14px}:host(.ion-color.toggle-checked) .toggle-icon{background:rgba(var(--ion-color-base-rgb), 0.5)}:host(.ion-color.toggle-checked) .toggle-inner{background:var(--ion-color-base)}:host(.toggle-checked) .toggle-inner{color:var(--ion-color-contrast, #fff)}.toggle-icon{-webkit-transition:background-color 160ms;transition:background-color 160ms}.toggle-inner{will-change:background-color, transform;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;color:#000}.toggle-inner .toggle-switch-icon{-webkit-padding-start:1px;padding-inline-start:1px;-webkit-padding-end:1px;padding-inline-end:1px;padding-top:1px;padding-bottom:1px;width:100%;height:100%}:host(.toggle-disabled){opacity:0.38}:host(.in-item.legacy-toggle){margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:0;padding-inline-end:0;padding-top:12px;padding-bottom:12px;cursor:pointer}:host(.in-item.legacy-toggle[slot=start]){-webkit-padding-start:2px;padding-inline-start:2px;-webkit-padding-end:18px;padding-inline-end:18px;padding-top:12px;padding-bottom:12px}"}},3567:(T,m,r)=>{r.d(m,{c:()=>u,g:()=>f,h:()=>o,o:()=>d});var b=r(5861);const o=(i,l)=>null!==l.closest(i),u=(i,l)=>"string"==typeof i&&i.length>0?Object.assign({"ion-color":!0,[`ion-color-${i}`]:!0},l):l,f=i=>{const l={};return(i=>void 0!==i?(Array.isArray(i)?i:i.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(i).forEach(s=>l[s]=!0),l},x=/^[a-z][a-z0-9+\-.]*:/,d=function(){var i=(0,b.Z)(function*(l,s,w,k){if(null!=l&&"#"!==l[0]&&!x.test(l)){const h=document.querySelector("ion-router");if(h)return s?.preventDefault(),h.push(l,w,k)}return!1});return function(s,w,k,h){return i.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/8895.e40046089c8493e3.js b/8895.e40046089c8493e3.js deleted file mode 100644 index 001c3b1e..00000000 --- a/8895.e40046089c8493e3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8895],{8895:(E,R,m)=>{m.r(R),m.d(R,{startInputShims:()=>q});var b=m(5861),T=m(2874),y=m(839),N=m(7484),h=m(6225);m(4874);const M=new WeakMap,P=(e,t,s,o=0,r=!1)=>{M.has(e)!==s&&(s?G(e,t,o,r):Z(e,t))},G=(e,t,s,o=!1)=>{const r=t.parentNode,n=t.cloneNode(!1);n.classList.add("cloned-input"),n.tabIndex=-1,o&&(n.disabled=!0),r.appendChild(n),M.set(e,n);const i="rtl"===e.ownerDocument.dir?9999:-9999;e.style.pointerEvents="none",t.style.transform=`translate3d(${i}px,${s}px,0) scale(0)`},Z=(e,t)=>{const s=M.get(e);s&&(M.delete(e),s.remove()),e.style.pointerEvents="",t.style.transform=""},C="input, textarea, [no-blur], [contenteditable]",W="$ionPaddingTimer",B=(e,t,s)=>{const o=e[W];o&&clearTimeout(o),t>0?e.style.setProperty("--keyboard-offset",`${t}px`):e[W]=setTimeout(()=>{e.style.setProperty("--keyboard-offset","0px"),s&&s()},120)},F=(e,t,s)=>{e.addEventListener("focusout",()=>{t&&B(t,0,s)},{once:!0})};let g=0;const p="data-ionic-skip-scroll-assist",V=(e,t,s,o,r,n,a,i=!1)=>{const l=n&&(void 0===a||a.mode===N.a.None);let L=!1;const u=void 0!==h.w?h.w.innerHeight:0,v=_=>{!1!==L?j(e,t,s,o,_.detail.keyboardHeight,l,i,u,!1):L=!0},c=()=>{L=!1,null==h.w||h.w.removeEventListener("ionKeyboardDidShow",v),e.removeEventListener("focusout",c,!0)},f=function(){var _=(0,b.Z)(function*(){t.hasAttribute(p)?t.removeAttribute(p):(j(e,t,s,o,r,l,i,u),null==h.w||h.w.addEventListener("ionKeyboardDidShow",v),e.addEventListener("focusout",c,!0))});return function(){return _.apply(this,arguments)}}();return e.addEventListener("focusin",f,!0),()=>{e.removeEventListener("focusin",f,!0),null==h.w||h.w.removeEventListener("ionKeyboardDidShow",v),e.removeEventListener("focusout",c,!0)}},x=e=>{document.activeElement!==e&&(e.setAttribute(p,"true"),e.focus())},j=function(){var e=(0,b.Z)(function*(t,s,o,r,n,a,i=!1,l=0,L=!0){if(!o&&!r)return;const u=((e,t,s,o)=>{var r;return((e,t,s,o)=>{const r=e.top,n=e.bottom,a=t.top,l=a+15,u=Math.min(t.bottom,o-s)-50-n,v=l-r,c=Math.round(u<0?-u:v>0?-v:0),f=Math.min(c,r-a),w=Math.abs(f)/.3;return{scrollAmount:f,scrollDuration:Math.min(400,Math.max(150,w)),scrollPadding:s,inputSafeY:4-(r-l)}})((null!==(r=e.closest("ion-item,[ion-item]"))&&void 0!==r?r:e).getBoundingClientRect(),t.getBoundingClientRect(),s,o)})(t,o||r,n,l);if(o&&Math.abs(u.scrollAmount)<4)return x(s),void(a&&null!==o&&(B(o,g),F(s,o,()=>g=0)));if(P(t,s,!0,u.inputSafeY,i),x(s),(0,y.r)(()=>t.click()),a&&o&&(g=u.scrollPadding,B(o,g)),typeof window<"u"){let v;const c=function(){var _=(0,b.Z)(function*(){void 0!==v&&clearTimeout(v),window.removeEventListener("ionKeyboardDidShow",f),window.removeEventListener("ionKeyboardDidShow",c),o&&(yield(0,T.c)(o,0,u.scrollAmount,u.scrollDuration)),P(t,s,!1,u.inputSafeY),x(s),a&&F(s,o,()=>g=0)});return function(){return _.apply(this,arguments)}}(),f=()=>{window.removeEventListener("ionKeyboardDidShow",f),window.addEventListener("ionKeyboardDidShow",c)};if(o){const _=yield(0,T.g)(o);if(L&&u.scrollAmount>_.scrollHeight-_.clientHeight-_.scrollTop)return"password"===s.type?(u.scrollAmount+=50,window.addEventListener("ionKeyboardDidShow",f)):window.addEventListener("ionKeyboardDidShow",c),void(v=setTimeout(c,1e3))}c()}});return function(s,o,r,n,a,i){return e.apply(this,arguments)}}(),q=function(){var e=(0,b.Z)(function*(t,s){const o=document,r="ios"===s,n="android"===s,a=t.getNumber("keyboardHeight",290),i=t.getBoolean("scrollAssist",!0),l=t.getBoolean("hideCaretOnScroll",r),L=t.getBoolean("inputBlurring",r),u=t.getBoolean("scrollPadding",!0),v=Array.from(o.querySelectorAll("ion-input, ion-textarea")),c=new WeakMap,f=new WeakMap,_=yield N.K.getResizeMode(),w=function(){var S=(0,b.Z)(function*(d){yield new Promise(I=>(0,y.c)(d,I));const O=d.shadowRoot||d,D=O.querySelector("input")||O.querySelector("textarea"),A=(0,T.f)(d),k=A?null:d.closest("ion-footer");if(D){if(A&&l&&!c.has(d)){const I=((e,t,s)=>{if(!s||!t)return()=>{};const o=i=>{(e=>e===e.getRootNode().activeElement)(t)&&P(e,t,i)},r=()=>P(e,t,!1),n=()=>o(!0),a=()=>o(!1);return(0,y.a)(s,"ionScrollStart",n),(0,y.a)(s,"ionScrollEnd",a),t.addEventListener("blur",r),()=>{(0,y.b)(s,"ionScrollStart",n),(0,y.b)(s,"ionScrollEnd",a),t.removeEventListener("blur",r)}})(d,D,A);c.set(d,I)}if("date"!==D.type&&"datetime-local"!==D.type&&(A||k)&&i&&!f.has(d)){const I=V(d,D,A,k,a,u,_,n);f.set(d,I)}}});return function(O){return S.apply(this,arguments)}}();L&&(()=>{let e=!0,t=!1;const s=document;(0,y.a)(s,"ionScrollStart",()=>{t=!0}),s.addEventListener("focusin",()=>{e=!0},!0),s.addEventListener("touchend",a=>{if(t)return void(t=!1);const i=s.activeElement;if(!i||i.matches(C))return;const l=a.target;l!==i&&(l.matches(C)||l.closest(C)||(e=!1,setTimeout(()=>{e||i.blur()},50)))},!1)})();for(const S of v)w(S);o.addEventListener("ionInputDidLoad",S=>{w(S.detail)}),o.addEventListener("ionInputDidUnload",S=>{(S=>{if(l){const d=c.get(S);d&&d(),c.delete(S)}if(i){const d=f.get(S);d&&d(),f.delete(S)}})(S.detail)})});return function(s,o){return e.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/9302.450c869ee8f15fac.js b/9302.450c869ee8f15fac.js deleted file mode 100644 index 37463816..00000000 --- a/9302.450c869ee8f15fac.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9302],{5504:(x,H,I)=>{I.d(H,{A:()=>q,B:()=>We,C:()=>p,D:()=>Ge,E:()=>k,F:()=>Ue,G:()=>we,H:()=>Le,I:()=>ze,J:()=>_,K:()=>pe,L:()=>Te,M:()=>Ee,N:()=>le,O:()=>ae,P:()=>Y,Q:()=>G,R:()=>fe,S:()=>R,T:()=>Me,a:()=>Ie,b:()=>w,c:()=>D,d:()=>z,e:()=>S,f:()=>ee,g:()=>ve,h:()=>ue,i:()=>v,j:()=>re,k:()=>de,l:()=>ie,m:()=>ce,n:()=>se,o:()=>ne,p:()=>te,q:()=>b,r:()=>P,s:()=>L,t:()=>ke,u:()=>me,v:()=>he,w:()=>j,x:()=>f,y:()=>Ye,z:()=>Re});var E=I(6710);const D=(e,n)=>e.month===n.month&&e.day===n.day&&e.year===n.year,v=(e,n)=>e.yeare.year>n.year||e.year===n.year&&e.month>n.month||e.year===n.year&&e.month===n.month&&null!==e.day&&e.day>n.day,j=(e,n,t)=>{const o=Array.isArray(e)?e:[e];for(const r of o)if(void 0!==n&&v(r,n)||void 0!==t&&w(r,t)){(0,E.p)(`The value provided to ion-datetime is out of bounds.\n\nMin: ${JSON.stringify(n)}\nMax: ${JSON.stringify(t)}\nValue: ${JSON.stringify(e)}`);break}},_=(e,n)=>{if(void 0!==n)return n;const t=new Intl.DateTimeFormat(e,{hour:"numeric"}),o=t.resolvedOptions();if(void 0!==o.hourCycle)return o.hourCycle;const u=t.formatToParts(new Date("5/18/2021 00:00")).find(d=>"hour"===d.type);if(!u)throw new Error("Hour value not found from DateTimeFormat");switch(u.value){case"0":return"h11";case"12":return"h12";case"00":return"h23";case"24":return"h24";default:throw new Error(`Invalid hour cycle "${n}"`)}},m=e=>"h23"===e||"h24"===e,f=(e,n)=>4===e||6===e||9===e||11===e?30:2===e?(e=>e%4==0&&e%100!=0||e%400==0)(n)?29:28:31,p=(e,n={month:"numeric",year:"numeric"})=>"month"===new Intl.DateTimeFormat(e,n).formatToParts(new Date)[0].type,k=e=>"dayPeriod"===new Intl.DateTimeFormat(e,{hour:"numeric"}).formatToParts(new Date)[0].type,F=/^(\d{4}|[+\-]\d{6})(?:-(\d{2})(?:-(\d{2}))?)?(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,O=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+\-])(\d{2})(?::(\d{2}))?)?)?$/,P=e=>{if(void 0===e)return;let t,n=e;return"string"==typeof e&&(n=e.replace(/\[|\]|\s/g,"").split(",")),t=Array.isArray(n)?n.map(o=>parseInt(o,10)).filter(isFinite):[n],t},ee=e=>({month:parseInt(e.getAttribute("data-month"),10),day:parseInt(e.getAttribute("data-day"),10),year:parseInt(e.getAttribute("data-year"),10),dayOfWeek:parseInt(e.getAttribute("data-day-of-week"),10)});function b(e){if(Array.isArray(e)){const t=[];for(const o of e){const r=b(o);if(!r)return;t.push(r)}return t}let n=null;if(null!=e&&""!==e&&(n=O.exec(e),n?(n.unshift(void 0,void 0),n[2]=n[3]=void 0):n=F.exec(e)),null!==n){for(let t=1;t<8;t++)n[t]=void 0!==n[t]?parseInt(n[t],10):void 0;return{year:n[1],month:n[2],day:n[3],hour:n[4],minute:n[5],ampm:n[4]<12?"am":"pm"}}(0,E.p)(`Unable to parse date string: ${e}. Please provide a valid ISO 8601 datetime string.`)}const Y=(e,n,t)=>n&&v(e,n)?n:t&&w(e,t)?t:e,G=e=>e>=12?"pm":"am",ne=(e,n)=>{const t=b(e);if(void 0===t)return;const{month:o,day:r,year:i,hour:u,minute:d}=t,c=i??n.year,s=o??12;return{month:s,day:r??f(s,c),year:c,hour:u??23,minute:d??59}},te=(e,n)=>{const t=b(e);if(void 0===t)return;const{month:o,day:r,year:i,hour:u,minute:d}=t;return{month:o??1,day:r??1,year:i??n.year,hour:u??0,minute:d??0}},M=e=>("0"+(void 0!==e?Math.abs(e):"0")).slice(-2),oe=e=>("000"+(void 0!==e?Math.abs(e):"0")).slice(-4);function L(e){if(Array.isArray(e))return e.map(t=>L(t));let n="";return void 0!==e.year?(n=oe(e.year),void 0!==e.month&&(n+="-"+M(e.month),void 0!==e.day&&(n+="-"+M(e.day),void 0!==e.hour&&(n+=`T${M(e.hour)}:${M(e.minute)}:00`)))):void 0!==e.hour&&(n=M(e.hour)+":"+M(e.minute)),n}const B=(e,n)=>void 0===n?e:"am"===n?12===e?0:e:12===e?12:e+12,re=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return N(e,n)},ue=e=>{const{dayOfWeek:n}=e;if(null==n)throw new Error("No day of week provided");return Z(e,6-n)},ie=e=>Z(e,1),de=e=>N(e,1),ce=e=>N(e,7),se=e=>Z(e,7),N=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const i={month:t,day:o,year:r};if(i.day=o-n,i.day<1&&(i.month-=1),i.month<1&&(i.month=12,i.year-=1),i.day<1){const u=f(i.month,i.year);i.day=u+i.day}return i},Z=(e,n)=>{const{month:t,day:o,year:r}=e;if(null===o)throw new Error("No day provided");const i={month:t,day:o,year:r},u=f(t,r);return i.day=o+n,i.day>u&&(i.day-=u,i.month+=1),i.month>12&&(i.month=1,i.year+=1),i},z=e=>{const n=1===e.month?12:e.month-1,t=1===e.month?e.year-1:e.year,o=f(n,t);return{month:n,year:t,day:o{const n=12===e.month?1:e.month+1,t=12===e.month?e.year+1:e.year,o=f(n,t);return{month:n,year:t,day:o{const t=e.month,o=e.year+n,r=f(t,o);return{month:t,year:o,day:rJ(e,-1),le=e=>J(e,1),ye=(e,n,t)=>n?e:B(e,t),fe=(e,n)=>{const{ampm:t,hour:o}=e;let r=o;return"am"===t&&"pm"===n?r=B(r,"pm"):"pm"===t&&"am"===n&&(r=Math.abs(r-12)),r},he=(e,n,t)=>{const{month:o,day:r,year:i}=e,u=Y(Object.assign({},e),n,t),d=f(o,i);return null!==r&&dt.hour?(u.hour=t.hour,u.minute=t.minute):u.hour===t.hour&&void 0!==u.minute&&void 0!==t.minute&&u.minute>t.minute&&(u.minute=t.minute)),u},me=(e,n,t,o,r,i)=>{const{hour:u,minute:d,day:c,month:s,year:a}=e,y=Object.assign(Object.assign({},e),{dayOfWeek:void 0});return void 0!==n&&(y.month=A(s,n)),null!==c&&void 0!==t&&(y.day=A(c,t)),void 0!==o&&(y.year=A(a,o)),void 0!==u&&void 0!==r&&(y.hour=A(u,r),y.ampm=G(y.hour)),void 0!==d&&void 0!==i&&(y.minute=A(d,i)),y},A=(e,n)=>{let t=n[0],o=Math.abs(t-e);for(let r=1;r{const o={hour:n.hour,minute:n.minute};return void 0===o.hour||void 0===o.minute?"Invalid Time":new Intl.DateTimeFormat(e,{hour:"numeric",minute:"numeric",timeZone:"UTC",hourCycle:t}).format(new Date(L(Object.assign({year:2023,day:1,month:1},o))+"Z"))},K=e=>{const n=e.toString();return n.length>1?n:`0${n}`},De=(e,n)=>{if(0===e)switch(n){case"h11":return"0";case"h12":return"12";case"h23":return"00";case"h24":return"24";default:throw new Error(`Invalid hour cycle "${n}"`)}return m(n)?K(e):e.toString()},ve=(e,n,t)=>{if(null===t.day)return null;const o=$(t),r=new Intl.DateTimeFormat(e,{weekday:"long",month:"long",day:"numeric",timeZone:"UTC"}).format(o);return n?`Today, ${r}`:r},Te=(e,n)=>{const t=$(n);return new Intl.DateTimeFormat(e,{weekday:"short",month:"short",day:"numeric",timeZone:"UTC"}).format(t)},we=(e,n)=>{const t=$(n);return new Intl.DateTimeFormat(e,{month:"long",year:"numeric",timeZone:"UTC"}).format(t)},Me=(e,n)=>R(e,n,{month:"short",day:"numeric",year:"numeric"}),Ie=(e,n)=>Oe(e,n,{day:"numeric"}).find(t=>"day"===t.type).value,_e=(e,n)=>R(e,n,{year:"numeric"}),$=e=>{var n,t,o;return new Date(`${null!==(n=e.month)&&void 0!==n?n:1}/${null!==(t=e.day)&&void 0!==t?t:1}/${null!==(o=e.year)&&void 0!==o?o:2023}${void 0!==e.hour&&void 0!==e.minute?` ${e.hour}:${e.minute}`:""} GMT+0000`)},R=(e,n,t)=>{const o=$(n);return X(e,t).format(o)},Oe=(e,n,t)=>{const o=$(n);return X(e,t).formatToParts(o)},X=(e,n)=>new Intl.DateTimeFormat(e,Object.assign(Object.assign({},n),{timeZone:"UTC"})),Ae=e=>{if("RelativeTimeFormat"in Intl){const n=new Intl.RelativeTimeFormat(e,{numeric:"auto"}).format(0,"day");return n.charAt(0).toUpperCase()+n.slice(1)}return"Today"},W=e=>{const n=e.getTimezoneOffset();return e.setMinutes(e.getMinutes()-n),e},$e=W(new Date("2022T01:00")),Ce=W(new Date("2022T13:00")),Q=(e,n)=>{const t="am"===n?$e:Ce,o=new Intl.DateTimeFormat(e,{hour:"numeric",timeZone:"UTC"}).formatToParts(t).find(r=>"dayPeriod"===r.type);return o?o.value:(e=>void 0===e?"":e.toUpperCase())(n)},Ee=e=>Array.isArray(e)?e.join(","):e,ke=()=>W(new Date).toISOString(),Fe=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59],be=[0,1,2,3,4,5,6,7,8,9,10,11],Se=[0,1,2,3,4,5,6,7,8,9,10,11],He=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],je=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,0],Ue=(e,n,t=0)=>{const r=new Intl.DateTimeFormat(e,{weekday:"ios"===n?"short":"narrow"}),i=new Date("11/01/2020"),u=[];for(let d=t;d{const o=f(e,n),r=new Date(`${e}/1/${n}`).getDay(),i=r>=t?r-(t+1):6-(t-r);let u=[];for(let d=1;d<=o;d++)u.push({day:d,dayOfWeek:(i+d)%7});for(let d=0;d<=i;d++)u=[{day:null,dayOfWeek:null},...u];return u},ze=(e,n)=>{const t={month:e.month,year:e.year,day:e.day};if(void 0!==n&&(e.month!==n.month||e.year!==n.year)){const o={month:n.month,year:n.year,day:n.day};return v(o,t)?[o,t,S(e)]:[z(e),t,o]}return[z(e),t,S(e)]},Re=(e,n,t,o,r,i={month:"long"})=>{const{year:u}=n,d=[];if(void 0!==r){let c=r;void 0!==o?.month&&(c=c.filter(s=>s<=o.month)),void 0!==t?.month&&(c=c.filter(s=>s>=t.month)),c.forEach(s=>{const a=new Date(`${s}/1/${u} GMT+0000`),y=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(a);d.push({text:y,value:s})})}else{const c=o&&o.year===u?o.month:12;for(let a=t&&t.year===u?t.month:1;a<=c;a++){const y=new Date(`${a}/1/${u} GMT+0000`),h=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(y);d.push({text:h,value:a})}}return d},q=(e,n,t,o,r,i={day:"numeric"})=>{const{month:u,year:d}=n,c=[],s=f(u,d),a=null!=o?.day&&o.year===d&&o.month===u?o.day:s,y=null!=t?.day&&t.year===d&&t.month===u?t.day:1;if(void 0!==r){let h=r;h=h.filter(l=>l>=y&&l<=a),h.forEach(l=>{const g=new Date(`${u}/${l}/${d} GMT+0000`),T=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(g);c.push({text:T,value:l})})}else for(let h=y;h<=a;h++){const l=new Date(`${u}/${h}/${d} GMT+0000`),g=new Intl.DateTimeFormat(e,Object.assign(Object.assign({},i),{timeZone:"UTC"})).format(l);c.push({text:g,value:h})}return c},We=(e,n,t,o,r)=>{var i,u;let d=[];if(void 0!==r)d=r,void 0!==o?.year&&(d=d.filter(c=>c<=o.year)),void 0!==t?.year&&(d=d.filter(c=>c>=t.year));else{const{year:c}=n,s=null!==(i=o?.year)&&void 0!==i?i:c;for(let y=null!==(u=t?.year)&&void 0!==u?u:c-100;y<=s;y++)d.push(y)}return d.map(c=>({text:_e(e,{year:c,month:n.month,day:n.day}),value:c}))},V=(e,n)=>e.month===n.month&&e.year===n.year?[e]:[e,...V(S(e),n)],Ye=(e,n,t,o,r,i)=>{let u=[],d=[],c=V(t,o);return i&&(c=c.filter(({month:s})=>i.includes(s))),c.forEach(s=>{const a={month:s.month,day:null,year:s.year},y=q(e,a,t,o,r,{month:"short",day:"numeric",weekday:"short"}),h=[],l=[];y.forEach(g=>{const T=D(Object.assign(Object.assign({},a),{day:g.value}),n);l.push({text:T?Ae(e):g.text,value:`${a.year}-${a.month}-${g.value}`}),h.push({month:a.month,year:a.year,day:g.value})}),d=[...d,...h],u=[...u,...l]}),{parts:d,items:u}},Ge=(e,n,t,o,r,i,u)=>{const d=_(e,t),c=m(d),{hours:s,minutes:a,am:y,pm:h}=((e,n,t="h12",o,r,i,u)=>{const d=_(e,t),c=m(d);let s=(e=>{switch(e){case"h11":return be;case"h12":return Se;case"h23":return He;case"h24":return je;default:throw new Error(`Invalid hour cycle "${e}"`)}})(d),a=Fe,y=!0,h=!0;if(i&&(s=s.filter(l=>i.includes(l))),u&&(a=a.filter(l=>u.includes(l))),o)if(D(n,o)){if(void 0!==o.hour&&(s=s.filter(l=>(c?l:"pm"===n.ampm?(l+12)%24:l)>=o.hour),y=o.hour<13),void 0!==o.minute){let l=!1;void 0!==o.hour&&void 0!==n.hour&&n.hour>o.hour&&(l=!0),a=a.filter(g=>!!l||g>=o.minute)}}else v(n,o)&&(s=[],a=[],y=h=!1);return r&&(D(n,r)?(void 0!==r.hour&&(s=s.filter(l=>(c?l:"pm"===n.ampm?(l+12)%24:l)<=r.hour),h=r.hour>=12),void 0!==r.minute&&n.hour===r.hour&&(a=a.filter(l=>l<=r.minute))):w(n,r)&&(s=[],a=[],y=h=!1)),{hours:s,minutes:a,am:y,pm:h}})(e,n,d,o,r,i,u),l=s.map(C=>({text:De(C,d),value:ye(C,c,n.ampm)})),g=a.map(C=>({text:K(C),value:C})),T=[];return y&&!c&&T.push({text:Q(e,"am"),value:"am"}),h&&!c&&T.push({text:Q(e,"pm"),value:"pm"}),{minutesData:g,hoursData:l,dayPeriodData:T}}},3567:(x,H,I)=>{I.d(H,{c:()=>v,g:()=>j,h:()=>D,o:()=>_});var E=I(5861);const D=(m,f)=>null!==f.closest(m),v=(m,f)=>"string"==typeof m&&m.length>0?Object.assign({"ion-color":!0,[`ion-color-${m}`]:!0},f):f,j=m=>{const f={};return(m=>void 0!==m?(Array.isArray(m)?m:m.split(" ")).filter(p=>null!=p).map(p=>p.trim()).filter(p=>""!==p):[])(m).forEach(p=>f[p]=!0),f},U=/^[a-z][a-z0-9+\-.]*:/,_=function(){var m=(0,E.Z)(function*(f,p,k,F){if(null!=f&&"#"!==f[0]&&!U.test(f)){const O=document.querySelector("ion-router");if(O)return p?.preventDefault(),O.push(f,k,F)}return!1});return function(p,k,F,O){return m.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/9352.1824a3c4aeabc76f.js b/9352.1824a3c4aeabc76f.js new file mode 100644 index 00000000..7d08fb74 --- /dev/null +++ b/9352.1824a3c4aeabc76f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9352],{9352:(E,a,t)=>{t.r(a),t.d(a,{ion_infinite_scroll:()=>f,ion_infinite_scroll_content:()=>g});var d=t(5861),e=t(9942),o=t(7946),s=t(5551),h=t(8958);const f=class{constructor(i){(0,e.r)(this,i),this.ionInfinite=(0,e.d)(this,"ionInfinite",7),this.thrPx=0,this.thrPc=0,this.didFire=!1,this.isBusy=!1,this.onScroll=()=>{const n=this.scrollEl;if(!n||!this.canStart())return 1;const l=this.el.offsetHeight;if(0===l)return 2;const r=n.scrollTop,p=n.offsetHeight,m=0!==this.thrPc?p*this.thrPc:this.thrPx;return("bottom"===this.position?n.scrollHeight-l-r-m-p:r-l-m)<0&&!this.didFire?(this.isLoading=!0,this.didFire=!0,this.ionInfinite.emit(),3):4},this.isLoading=!1,this.threshold="15%",this.disabled=!1,this.position="bottom"}thresholdChanged(){const i=this.threshold;i.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(i)/100):(this.thrPx=parseFloat(i),this.thrPc=0)}disabledChanged(){const i=this.disabled;i&&(this.isLoading=!1,this.isBusy=!1),this.enableScrollEvents(!i)}connectedCallback(){var i=this;return(0,d.Z)(function*(){const n=(0,o.f)(i.el);n?(i.scrollEl=yield(0,o.g)(n),i.thresholdChanged(),i.disabledChanged(),"top"===i.position&&(0,e.w)(()=>{i.scrollEl&&(i.scrollEl.scrollTop=i.scrollEl.scrollHeight-i.scrollEl.clientHeight)})):(0,o.p)(i.el)})()}disconnectedCallback(){this.enableScrollEvents(!1),this.scrollEl=void 0}complete(){var i=this;return(0,d.Z)(function*(){const n=i.scrollEl;if(i.isLoading&&n)if(i.isLoading=!1,"top"===i.position){i.isBusy=!0;const l=n.scrollHeight-n.scrollTop;requestAnimationFrame(()=>{(0,e.e)(()=>{const c=n.scrollHeight-l;requestAnimationFrame(()=>{(0,e.w)(()=>{n.scrollTop=c,i.isBusy=!1,i.didFire=!1})})})})}else i.didFire=!1})()}canStart(){return!(this.disabled||this.isBusy||!this.scrollEl||this.isLoading)}enableScrollEvents(i){this.scrollEl&&(i?this.scrollEl.addEventListener("scroll",this.onScroll):this.scrollEl.removeEventListener("scroll",this.onScroll))}render(){const i=(0,s.b)(this);return(0,e.h)(e.H,{class:{[i]:!0,"infinite-scroll-loading":this.isLoading,"infinite-scroll-enabled":!this.disabled}})}get el(){return(0,e.f)(this)}static get watchers(){return{threshold:["thresholdChanged"],disabled:["disabledChanged"]}}};f.style="ion-infinite-scroll{display:none;width:100%}.infinite-scroll-enabled{display:block}";const g=class{constructor(i){(0,e.r)(this,i),this.customHTMLEnabled=s.c.get("innerHTMLTemplatesEnabled",h.E),this.loadingSpinner=void 0,this.loadingText=void 0}componentDidLoad(){if(void 0===this.loadingSpinner){const i=(0,s.b)(this);this.loadingSpinner=s.c.get("infiniteLoadingSpinner",s.c.get("spinner","ios"===i?"lines":"crescent"))}}renderLoadingText(){const{customHTMLEnabled:i,loadingText:n}=this;return i?(0,e.h)("div",{class:"infinite-loading-text",innerHTML:(0,h.a)(n)}):(0,e.h)("div",{class:"infinite-loading-text"},this.loadingText)}render(){const i=(0,s.b)(this);return(0,e.h)(e.H,{class:{[i]:!0,[`infinite-scroll-content-${i}`]:!0}},(0,e.h)("div",{class:"infinite-loading"},this.loadingSpinner&&(0,e.h)("div",{class:"infinite-loading-spinner"},(0,e.h)("ion-spinner",{name:this.loadingSpinner})),void 0!==this.loadingText&&this.renderLoadingText()))}};g.style={ios:"ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-ios .infinite-loading-text{color:var(--ion-color-step-600, #666666)}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-small-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, #666666)}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, #666666)}",md:"ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-md .infinite-loading-text{color:var(--ion-color-step-600, #666666)}.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-small-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, #666666)}.infinite-scroll-content-md .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, #666666)}"}}}]); \ No newline at end of file diff --git a/9352.7d84c3937ff46d66.js b/9352.7d84c3937ff46d66.js deleted file mode 100644 index 3f6e230f..00000000 --- a/9352.7d84c3937ff46d66.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9352],{9352:(E,a,t)=>{t.r(a),t.d(a,{ion_infinite_scroll:()=>f,ion_infinite_scroll_content:()=>g});var d=t(5861),e=t(5349),o=t(2874),s=t(3882),h=t(3365);const f=class{constructor(i){(0,e.r)(this,i),this.ionInfinite=(0,e.d)(this,"ionInfinite",7),this.thrPx=0,this.thrPc=0,this.didFire=!1,this.isBusy=!1,this.onScroll=()=>{const n=this.scrollEl;if(!n||!this.canStart())return 1;const l=this.el.offsetHeight;if(0===l)return 2;const r=n.scrollTop,p=n.offsetHeight,m=0!==this.thrPc?p*this.thrPc:this.thrPx;if(("bottom"===this.position?n.scrollHeight-l-r-m-p:r-l-m)<0){if(!this.didFire)return this.isLoading=!0,this.didFire=!0,this.ionInfinite.emit(),3}else this.didFire=!1;return 4},this.isLoading=!1,this.threshold="15%",this.disabled=!1,this.position="bottom"}thresholdChanged(){const i=this.threshold;i.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(i)/100):(this.thrPx=parseFloat(i),this.thrPc=0)}disabledChanged(){const i=this.disabled;i&&(this.isLoading=!1,this.isBusy=!1),this.enableScrollEvents(!i)}connectedCallback(){var i=this;return(0,d.Z)(function*(){const n=(0,o.f)(i.el);n?(i.scrollEl=yield(0,o.g)(n),i.thresholdChanged(),i.disabledChanged(),"top"===i.position&&(0,e.w)(()=>{i.scrollEl&&(i.scrollEl.scrollTop=i.scrollEl.scrollHeight-i.scrollEl.clientHeight)})):(0,o.p)(i.el)})()}disconnectedCallback(){this.enableScrollEvents(!1),this.scrollEl=void 0}complete(){var i=this;return(0,d.Z)(function*(){const n=i.scrollEl;if(i.isLoading&&n&&(i.isLoading=!1,"top"===i.position)){i.isBusy=!0;const l=n.scrollHeight-n.scrollTop;requestAnimationFrame(()=>{(0,e.e)(()=>{const c=n.scrollHeight-l;requestAnimationFrame(()=>{(0,e.w)(()=>{n.scrollTop=c,i.isBusy=!1})})})})}})()}canStart(){return!(this.disabled||this.isBusy||!this.scrollEl||this.isLoading)}enableScrollEvents(i){this.scrollEl&&(i?this.scrollEl.addEventListener("scroll",this.onScroll):this.scrollEl.removeEventListener("scroll",this.onScroll))}render(){const i=(0,s.b)(this);return(0,e.h)(e.H,{class:{[i]:!0,"infinite-scroll-loading":this.isLoading,"infinite-scroll-enabled":!this.disabled}})}get el(){return(0,e.f)(this)}static get watchers(){return{threshold:["thresholdChanged"],disabled:["disabledChanged"]}}};f.style="ion-infinite-scroll{display:none;width:100%}.infinite-scroll-enabled{display:block}";const g=class{constructor(i){(0,e.r)(this,i),this.customHTMLEnabled=s.c.get("innerHTMLTemplatesEnabled",h.E),this.loadingSpinner=void 0,this.loadingText=void 0}componentDidLoad(){if(void 0===this.loadingSpinner){const i=(0,s.b)(this);this.loadingSpinner=s.c.get("infiniteLoadingSpinner",s.c.get("spinner","ios"===i?"lines":"crescent"))}}renderLoadingText(){const{customHTMLEnabled:i,loadingText:n}=this;return i?(0,e.h)("div",{class:"infinite-loading-text",innerHTML:(0,h.a)(n)}):(0,e.h)("div",{class:"infinite-loading-text"},this.loadingText)}render(){const i=(0,s.b)(this);return(0,e.h)(e.H,{class:{[i]:!0,[`infinite-scroll-content-${i}`]:!0}},(0,e.h)("div",{class:"infinite-loading"},this.loadingSpinner&&(0,e.h)("div",{class:"infinite-loading-spinner"},(0,e.h)("ion-spinner",{name:this.loadingSpinner})),void 0!==this.loadingText&&this.renderLoadingText()))}};g.style={ios:"ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-ios .infinite-loading-text{color:var(--ion-color-step-600, #666666)}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-lines-small-ios line,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, #666666)}.infinite-scroll-content-ios .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-ios .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, #666666)}",md:"ion-infinite-scroll-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;min-height:84px;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.infinite-loading{margin-left:0;margin-right:0;margin-top:0;margin-bottom:32px;display:none;width:100%}.infinite-loading-text{-webkit-margin-start:32px;margin-inline-start:32px;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:4px;margin-bottom:0}.infinite-scroll-loading ion-infinite-scroll-content>.infinite-loading{display:block}.infinite-scroll-content-md .infinite-loading-text{color:var(--ion-color-step-600, #666666)}.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-lines-small-md line,.infinite-scroll-content-md .infinite-loading-spinner .spinner-crescent circle{stroke:var(--ion-color-step-600, #666666)}.infinite-scroll-content-md .infinite-loading-spinner .spinner-bubbles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-circles circle,.infinite-scroll-content-md .infinite-loading-spinner .spinner-dots circle{fill:var(--ion-color-step-600, #666666)}"}}}]); \ No newline at end of file diff --git a/9588.fbad7ea635d3c2fc.js b/9588.10e5e908d9a70ed5.js similarity index 95% rename from 9588.fbad7ea635d3c2fc.js rename to 9588.10e5e908d9a70ed5.js index 43484ada..654487d2 100644 --- a/9588.fbad7ea635d3c2fc.js +++ b/9588.10e5e908d9a70ed5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9588],{9588:(b,p,s)=>{s.r(p),s.d(p,{ion_spinner:()=>m});var i=s(5349),u=s(3567),c=s(3882),f=s(3781);const m=class{constructor(e){(0,i.r)(this,e),this.color=void 0,this.duration=void 0,this.name=void 0,this.paused=!1}getName(){const e=this.name||c.c.get("spinner"),n=(0,c.b)(this);return e||("ios"===n?"lines":"circular")}render(){var e;const n=this,o=(0,c.b)(n),a=n.getName(),r=null!==(e=f.S[a])&&void 0!==e?e:f.S.lines,k="number"==typeof n.duration&&n.duration>10?n.duration:r.dur,y=[];if(void 0!==r.circles)for(let l=0;l{const r=e.fn(n,o,a);return r.style["animation-duration"]=n+"ms",(0,i.h)("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},(0,i.h)("circle",{transform:r.transform||"translate(32,32)",cx:r.cx,cy:r.cy,r:r.r,style:e.elmDuration?{animationDuration:n+"ms"}:{}}))},t=(e,n,o,a)=>{const r=e.fn(n,o,a);return r.style["animation-duration"]=n+"ms",(0,i.h)("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},(0,i.h)("line",{transform:"translate(32,32)",y1:r.y1,y2:r.y2}))};m.style=":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{-webkit-transform-origin:center;transform-origin:center;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0)}:host-context([dir=rtl]) svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){svg:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:7px}:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-width:4px}:host(.spinner-lines) line,:host(.spinner-lines-small) line,:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg,:host(.spinner-lines-sharp) svg,:host(.spinner-lines-sharp-small) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{-webkit-animation:spinner-scale-out 1s linear infinite;animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{-webkit-animation:spinner-rotate 1s linear infinite;animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{-webkit-animation:spinner-dots 1s linear infinite;animation:spinner-dots 1s linear infinite}:host(.spinner-circular) svg{-webkit-animation:spinner-circular linear infinite;animation:spinner-circular linear infinite}:host(.spinner-circular) circle{-webkit-animation:spinner-circular-inner ease-in-out infinite;animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@-webkit-keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@-webkit-keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}"},3567:(b,p,s)=>{s.d(p,{c:()=>c,g:()=>d,h:()=>u,o:()=>h});var i=s(5861);const u=(t,e)=>null!==e.closest(t),c=(t,e)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},e):e,d=t=>{const e={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(t).forEach(n=>e[n]=!0),e},m=/^[a-z][a-z0-9+\-.]*:/,h=function(){var t=(0,i.Z)(function*(e,n,o,a){if(null!=e&&"#"!==e[0]&&!m.test(e)){const r=document.querySelector("ion-router");if(r)return n?.preventDefault(),r.push(e,o,a)}return!1});return function(n,o,a,r){return t.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9588],{9588:(g,f,s)=>{s.r(f),s.d(f,{ion_spinner:()=>m});var i=s(9942),u=s(4459),c=s(5551),p=s(2217);const m=class{constructor(e){(0,i.r)(this,e),this.color=void 0,this.duration=void 0,this.name=void 0,this.paused=!1}getName(){const e=this.name||c.c.get("spinner"),n=(0,c.b)(this);return e||("ios"===n?"lines":"circular")}render(){var e;const n=this,o=(0,c.b)(n),a=n.getName(),r=null!==(e=p.S[a])&&void 0!==e?e:p.S.lines,k="number"==typeof n.duration&&n.duration>10?n.duration:r.dur,y=[];if(void 0!==r.circles)for(let l=0;l{const r=e.fn(n,o,a);return r.style["animation-duration"]=n+"ms",(0,i.h)("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},(0,i.h)("circle",{transform:r.transform||"translate(32,32)",cx:r.cx,cy:r.cy,r:r.r,style:e.elmDuration?{animationDuration:n+"ms"}:{}}))},t=(e,n,o,a)=>{const r=e.fn(n,o,a);return r.style["animation-duration"]=n+"ms",(0,i.h)("svg",{viewBox:r.viewBox||"0 0 64 64",style:r.style},(0,i.h)("line",{transform:"translate(32,32)",y1:r.y1,y2:r.y2}))};m.style=":host{display:inline-block;position:relative;width:28px;height:28px;color:var(--color);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(.ion-color){color:var(--ion-color-base)}svg{-webkit-transform-origin:center;transform-origin:center;position:absolute;top:0;left:0;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0)}:host-context([dir=rtl]) svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}[dir=rtl] svg{-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}@supports selector(:dir(rtl)){svg:dir(rtl){-webkit-transform-origin:calc(100% - center);transform-origin:calc(100% - center)}}:host(.spinner-lines) line,:host(.spinner-lines-small) line{stroke-width:7px}:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-width:4px}:host(.spinner-lines) line,:host(.spinner-lines-small) line,:host(.spinner-lines-sharp) line,:host(.spinner-lines-sharp-small) line{stroke-linecap:round;stroke:currentColor}:host(.spinner-lines) svg,:host(.spinner-lines-small) svg,:host(.spinner-lines-sharp) svg,:host(.spinner-lines-sharp-small) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite}:host(.spinner-bubbles) svg{-webkit-animation:spinner-scale-out 1s linear infinite;animation:spinner-scale-out 1s linear infinite;fill:currentColor}:host(.spinner-circles) svg{-webkit-animation:spinner-fade-out 1s linear infinite;animation:spinner-fade-out 1s linear infinite;fill:currentColor}:host(.spinner-crescent) circle{fill:transparent;stroke-width:4px;stroke-dasharray:128px;stroke-dashoffset:82px;stroke:currentColor}:host(.spinner-crescent) svg{-webkit-animation:spinner-rotate 1s linear infinite;animation:spinner-rotate 1s linear infinite}:host(.spinner-dots) circle{stroke-width:0;fill:currentColor}:host(.spinner-dots) svg{-webkit-animation:spinner-dots 1s linear infinite;animation:spinner-dots 1s linear infinite}:host(.spinner-circular) svg{-webkit-animation:spinner-circular linear infinite;animation:spinner-circular linear infinite}:host(.spinner-circular) circle{-webkit-animation:spinner-circular-inner ease-in-out infinite;animation:spinner-circular-inner ease-in-out infinite;stroke:currentColor;stroke-dasharray:80px, 200px;stroke-dashoffset:0px;stroke-width:5.6;fill:none}:host(.spinner-paused),:host(.spinner-paused) svg,:host(.spinner-paused) circle{-webkit-animation-play-state:paused;animation-play-state:paused}@-webkit-keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@keyframes spinner-fade-out{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@keyframes spinner-scale-out{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1)}100%{-webkit-transform:scale(0, 0);transform:scale(0, 0)}}@-webkit-keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-rotate{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@keyframes spinner-dots{0%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}50%{-webkit-transform:scale(0.4, 0.4);transform:scale(0.4, 0.4);opacity:0.3}100%{-webkit-transform:scale(1, 1);transform:scale(1, 1);opacity:0.9}}@-webkit-keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-circular{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}@keyframes spinner-circular-inner{0%{stroke-dasharray:1px, 200px;stroke-dashoffset:0px}50%{stroke-dasharray:100px, 200px;stroke-dashoffset:-15px}100%{stroke-dasharray:100px, 200px;stroke-dashoffset:-125px}}"},4459:(g,f,s)=>{s.d(f,{c:()=>c,g:()=>d,h:()=>u,o:()=>h});var i=s(5861);const u=(t,e)=>null!==e.closest(t),c=(t,e)=>"string"==typeof t&&t.length>0?Object.assign({"ion-color":!0,[`ion-color-${t}`]:!0},e):e,d=t=>{const e={};return(t=>void 0!==t?(Array.isArray(t)?t:t.split(" ")).filter(n=>null!=n).map(n=>n.trim()).filter(n=>""!==n):[])(t).forEach(n=>e[n]=!0),e},m=/^[a-z][a-z0-9+\-.]*:/,h=function(){var t=(0,i.Z)(function*(e,n,o,a){if(null!=e&&"#"!==e[0]&&!m.test(e)){const r=document.querySelector("ion-router");if(r)return n?.preventDefault(),r.push(e,o,a)}return!1});return function(n,o,a,r){return t.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/962.104efbb8dc4483c5.js b/962.104efbb8dc4483c5.js deleted file mode 100644 index 82883520..00000000 --- a/962.104efbb8dc4483c5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[962],{962:(kt,kn,fn)=>{fn.d(kn,{c:()=>Wn});const cn=typeof window<"u"?window:void 0;typeof document<"u"&&document;var F=fn(3630);let J;const Pn=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Q=i=>(void 0===J&&(J=void 0===i.style.animationName&&void 0!==i.style.webkitAnimationName?"-webkit-":""),J),f=(i,o,s)=>{const u=o.startsWith("animation")?Q(i):"";i.style.setProperty(u+o,s)},E=(i,o)=>{const s=o.startsWith("animation")?Q(i):"";i.style.removeProperty(s+o)},un=[],V=(i=[],o)=>{if(void 0!==o){const s=Array.isArray(o)?o:[o];return[...i,...s]}return i},Wn=i=>{let o,s,u,l,A,v,m,G,P,W,_,O,r,c=[],X=[],Y=[],$=!1,nn={},tn=[],en=[],on={},T=0,j=!1,B=!1,x=!0,L=!1,I=!0,H=!1;const ln=i,rn=[],N=[],Z=[],h=[],p=[],sn=[],dn=[],mn=[],hn=[],pn=[],S=[],Ln="function"==typeof AnimationEffect||void 0!==cn&&"function"==typeof cn.AnimationEffect,C="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Ln,yn=()=>S,gn=(n,t)=>{const e=t.findIndex(a=>a.c===n);e>-1&&t.splice(e,1)},q=(n,t)=>((t?.oneTimeCallback?N:rn).push({c:n,o:t}),r),En=()=>{if(C)S.forEach(n=>{n.cancel()}),S.length=0;else{const n=h.slice();(0,F.r)(()=>{n.forEach(t=>{E(t,"animation-name"),E(t,"animation-duration"),E(t,"animation-timing-function"),E(t,"animation-iteration-count"),E(t,"animation-delay"),E(t,"animation-play-state"),E(t,"animation-fill-mode"),E(t,"animation-direction")})})}},An=()=>{sn.forEach(n=>{n?.parentNode&&n.parentNode.removeChild(n)}),sn.length=0},z=()=>void 0!==A?A:m?m.getFill():"both",D=()=>void 0!==P?P:void 0!==v?v:m?m.getDirection():"normal",M=()=>j?"linear":void 0!==u?u:m?m.getEasing():"linear",b=()=>B?0:void 0!==W?W:void 0!==s?s:m?m.getDuration():0,w=()=>void 0!==l?l:m?m.getIterations():1,K=()=>void 0!==_?_:void 0!==o?o:m?m.getDelay():0,R=()=>{0!==T&&(T--,0===T&&((()=>{an(),hn.forEach(d=>d()),pn.forEach(d=>d());const n=x?1:0,t=tn,e=en,a=on;h.forEach(d=>{const g=d.classList;t.forEach(k=>g.add(k)),e.forEach(k=>g.remove(k));for(const k in a)a.hasOwnProperty(k)&&f(d,k,a[k])}),rn.forEach(d=>d.c(n,r)),N.forEach(d=>d.c(n,r)),N.length=0,I=!0,x&&(L=!0),x=!0})(),m&&m.animationFinish()))},Cn=(n=!0)=>{An();const t=(i=>(i.forEach(o=>{for(const s in o)if(o.hasOwnProperty(s)){const u=o[s];if("easing"===s)o["animation-timing-function"]=u,delete o[s];else{const l=Pn(s);l!==s&&(o[l]=u,delete o[s])}}}),i))(c);h.forEach(e=>{if(t.length>0){const a=((i=[])=>i.map(o=>{const s=o.offset,u=[];for(const l in o)o.hasOwnProperty(l)&&"offset"!==l&&u.push(`${l}: ${o[l]};`);return`${100*s}% { ${u.join(" ")} }`}).join(" "))(t);O=void 0!==i?i:(i=>{let o=un.indexOf(i);return o<0&&(o=un.push(i)-1),`ion-animation-${o}`})(a);const d=((i,o,s)=>{var u;const l=(i=>{const o=void 0!==i.getRootNode?i.getRootNode():i;return o.head||o})(s),A=Q(s),v=l.querySelector("#"+i);if(v)return v;const c=(null!==(u=s.ownerDocument)&&void 0!==u?u:document).createElement("style");return c.id=i,c.textContent=`@${A}keyframes ${i} { ${o} } @${A}keyframes ${i}-alt { ${o} }`,l.appendChild(c),c})(O,a,e);sn.push(d),f(e,"animation-duration",`${b()}ms`),f(e,"animation-timing-function",M()),f(e,"animation-delay",`${K()}ms`),f(e,"animation-fill-mode",z()),f(e,"animation-direction",D());const g=w()===1/0?"infinite":w().toString();f(e,"animation-iteration-count",g),f(e,"animation-play-state","paused"),n&&f(e,"animation-name",`${d.id}-alt`),(0,F.r)(()=>{f(e,"animation-name",d.id||null)})}})},bn=(n=!0)=>{(()=>{dn.forEach(a=>a()),mn.forEach(a=>a());const n=X,t=Y,e=nn;h.forEach(a=>{const d=a.classList;n.forEach(g=>d.add(g)),t.forEach(g=>d.remove(g));for(const g in e)e.hasOwnProperty(g)&&f(a,g,e[g])})})(),c.length>0&&(C?(h.forEach(n=>{const t=n.animate(c,{id:ln,delay:K(),duration:b(),easing:M(),iterations:w(),fill:z(),direction:D()});t.pause(),S.push(t)}),S.length>0&&(S[0].onfinish=()=>{R()})):Cn(n)),$=!0},U=n=>{if(n=Math.min(Math.max(n,0),.9999),C)S.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+b()*n,t.pause()});else{const t=`-${b()*n}ms`;h.forEach(e=>{c.length>0&&(f(e,"animation-delay",t),f(e,"animation-play-state","paused"))})}},Sn=n=>{S.forEach(t=>{t.effect.updateTiming({delay:K(),duration:b(),easing:M(),iterations:w(),fill:z(),direction:D()})}),void 0!==n&&U(n)},vn=(n=!0,t)=>{(0,F.r)(()=>{h.forEach(e=>{f(e,"animation-name",O||null),f(e,"animation-duration",`${b()}ms`),f(e,"animation-timing-function",M()),f(e,"animation-delay",void 0!==t?`-${t*b()}ms`:`${K()}ms`),f(e,"animation-fill-mode",z()||null),f(e,"animation-direction",D()||null);const a=w()===1/0?"infinite":w().toString();f(e,"animation-iteration-count",a),n&&f(e,"animation-name",`${O}-alt`),(0,F.r)(()=>{f(e,"animation-name",O||null)})})})},y=(n=!1,t=!0,e)=>(n&&p.forEach(a=>{a.update(n,t,e)}),C?Sn(e):vn(t,e),r),wn=()=>{$&&(C?S.forEach(n=>{n.pause()}):h.forEach(n=>{f(n,"animation-play-state","paused")}),H=!0)},bt=()=>{G=void 0,R()},an=()=>{G&&clearTimeout(G)},Fn=n=>new Promise(t=>{n?.sync&&(B=!0,q(()=>B=!1,{oneTimeCallback:!0})),$||bn(),L&&(C?(U(0),Sn()):vn(),L=!1),I&&(T=p.length+1,I=!1);const e=()=>{gn(a,N),t()},a=()=>{gn(e,Z),t()};q(a,{oneTimeCallback:!0}),((n,t)=>{Z.push({c:n,o:{oneTimeCallback:!0}})})(e),p.forEach(d=>{d.play()}),C?(S.forEach(n=>{n.play()}),(0===c.length||0===h.length)&&R()):(()=>{if(an(),(0,F.r)(()=>{h.forEach(n=>{c.length>0&&f(n,"animation-play-state","running")})}),0===c.length||0===h.length)R();else{const n=K()||0,t=b()||0,e=w()||1;isFinite(e)&&(G=setTimeout(bt,n+t*e+100)),((i,o)=>{let s;const u={passive:!0},A=v=>{i===v.target&&(s&&s(),an(),(0,F.r)(()=>{h.forEach(n=>{E(n,"animation-duration"),E(n,"animation-delay"),E(n,"animation-play-state")}),(0,F.r)(R)}))};i&&(i.addEventListener("webkitAnimationEnd",A,u),i.addEventListener("animationend",A,u),s=()=>{i.removeEventListener("webkitAnimationEnd",A,u),i.removeEventListener("animationend",A,u)})})(h[0])}})(),H=!1}),$n=(n,t)=>{const e=c[0];return void 0===e||void 0!==e.offset&&0!==e.offset?c=[{offset:0,[n]:t},...c]:e[n]=t,r};return r={parentAnimation:m,elements:h,childAnimations:p,id:ln,animationFinish:R,from:$n,to:(n,t)=>{const e=c[c.length-1];return void 0===e||void 0!==e.offset&&1!==e.offset?c=[...c,{offset:1,[n]:t}]:e[n]=t,r},fromTo:(n,t,e)=>$n(n,t).to(n,e),parent:n=>(m=n,r),play:Fn,pause:()=>(p.forEach(n=>{n.pause()}),wn(),r),stop:()=>{p.forEach(n=>{n.stop()}),$&&(En(),$=!1),j=!1,B=!1,I=!0,P=void 0,W=void 0,_=void 0,T=0,L=!1,x=!0,H=!1,Z.forEach(n=>n.c(0,r)),Z.length=0},destroy:n=>(p.forEach(t=>{t.destroy(n)}),(n=>{En(),n&&An()})(n),h.length=0,p.length=0,c.length=0,rn.length=0,N.length=0,$=!1,I=!0,r),keyframes:n=>{const t=c!==n;return c=n,t&&(n=>{C?yn().forEach(t=>{const e=t.effect;if(e.setKeyframes)e.setKeyframes(n);else{const a=new KeyframeEffect(e.target,n,e.getTiming());t.effect=a}}):Cn()})(c),r},addAnimation:n=>{if(null!=n)if(Array.isArray(n))for(const t of n)t.parent(r),p.push(t);else n.parent(r),p.push(n);return r},addElement:n=>{if(null!=n)if(1===n.nodeType)h.push(n);else if(n.length>=0)for(let t=0;t(A=n,y(!0),r),direction:n=>(v=n,y(!0),r),iterations:n=>(l=n,y(!0),r),duration:n=>(!C&&0===n&&(n=1),s=n,y(!0),r),easing:n=>(u=n,y(!0),r),delay:n=>(o=n,y(!0),r),getWebAnimations:yn,getKeyframes:()=>c,getFill:z,getDirection:D,getDelay:K,getIterations:w,getEasing:M,getDuration:b,afterAddRead:n=>(hn.push(n),r),afterAddWrite:n=>(pn.push(n),r),afterClearStyles:(n=[])=>{for(const t of n)on[t]="";return r},afterStyles:(n={})=>(on=n,r),afterRemoveClass:n=>(en=V(en,n),r),afterAddClass:n=>(tn=V(tn,n),r),beforeAddRead:n=>(dn.push(n),r),beforeAddWrite:n=>(mn.push(n),r),beforeClearStyles:(n=[])=>{for(const t of n)nn[t]="";return r},beforeStyles:(n={})=>(nn=n,r),beforeRemoveClass:n=>(Y=V(Y,n),r),beforeAddClass:n=>(X=V(X,n),r),onFinish:q,isRunning:()=>0!==T&&!H,progressStart:(n=!1,t)=>(p.forEach(e=>{e.progressStart(n,t)}),wn(),j=n,$||bn(),y(!1,!0,t),r),progressStep:n=>(p.forEach(t=>{t.progressStep(n)}),U(n),r),progressEnd:(n,t,e)=>(j=!1,p.forEach(a=>{a.progressEnd(n,t,e)}),void 0!==e&&(W=e),L=!1,x=!0,0===n?(P="reverse"===D()?"normal":"reverse","reverse"===P&&(x=!1),C?(y(),U(1-t)):(_=(1-t)*b()*-1,y(!1,!1))):1===n&&(C?(y(),U(t)):(_=t*b()*-1,y(!1,!1))),void 0!==n&&(q(()=>{W=void 0,P=void 0,_=void 0},{oneTimeCallback:!0}),m||Fn()),r)}}}}]); \ No newline at end of file diff --git a/962.15d012086f54e986.js b/962.15d012086f54e986.js new file mode 100644 index 00000000..ff725b8e --- /dev/null +++ b/962.15d012086f54e986.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[962],{962:(kt,kn,fn)=>{fn.d(kn,{c:()=>Wn});const cn=typeof window<"u"?window:void 0;typeof document<"u"&&document;var F=fn(3630);let q;const Tn=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),J=i=>(void 0===q&&(q=void 0===i.style.animationName&&void 0!==i.style.webkitAnimationName?"-webkit-":""),q),f=(i,o,s)=>{const u=o.startsWith("animation")?J(i):"";i.style.setProperty(u+o,s)},E=(i,o)=>{const s=o.startsWith("animation")?J(i):"";i.style.removeProperty(s+o)},un=[],V=(i=[],o)=>{if(void 0!==o){const s=Array.isArray(o)?o:[o];return[...i,...s]}return i},Wn=i=>{let o,s,u,l,A,v,m,G,T,W,_,O,r,c=[],Q=[],X=[],$=!1,Y={},nn=[],tn=[],en={},P=0,j=!1,B=!1,x=!0,L=!1,I=!0,H=!1;const ln=i,on=[],N=[],Z=[],h=[],p=[],rn=[],dn=[],mn=[],hn=[],pn=[],S=[],Ln="function"==typeof AnimationEffect||void 0!==cn&&"function"==typeof cn.AnimationEffect,C="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Ln,yn=()=>S,gn=(n,t)=>{const e=t.findIndex(a=>a.c===n);e>-1&&t.splice(e,1)},sn=(n,t)=>((t?.oneTimeCallback?N:on).push({c:n,o:t}),r),En=()=>{if(C)S.forEach(n=>{n.cancel()}),S.length=0;else{const n=h.slice();(0,F.r)(()=>{n.forEach(t=>{E(t,"animation-name"),E(t,"animation-duration"),E(t,"animation-timing-function"),E(t,"animation-iteration-count"),E(t,"animation-delay"),E(t,"animation-play-state"),E(t,"animation-fill-mode"),E(t,"animation-direction")})})}},An=()=>{rn.forEach(n=>{n?.parentNode&&n.parentNode.removeChild(n)}),rn.length=0},z=()=>void 0!==A?A:m?m.getFill():"both",D=()=>void 0!==T?T:void 0!==v?v:m?m.getDirection():"normal",M=()=>j?"linear":void 0!==u?u:m?m.getEasing():"linear",b=()=>B?0:void 0!==W?W:void 0!==s?s:m?m.getDuration():0,w=()=>void 0!==l?l:m?m.getIterations():1,K=()=>void 0!==_?_:void 0!==o?o:m?m.getDelay():0,R=()=>{0!==P&&(P--,0===P&&((()=>{an(),hn.forEach(d=>d()),pn.forEach(d=>d());const n=x?1:0,t=nn,e=tn,a=en;h.forEach(d=>{const g=d.classList;t.forEach(k=>g.add(k)),e.forEach(k=>g.remove(k));for(const k in a)a.hasOwnProperty(k)&&f(d,k,a[k])}),W=void 0,T=void 0,_=void 0,on.forEach(d=>d.c(n,r)),N.forEach(d=>d.c(n,r)),N.length=0,I=!0,x&&(L=!0),x=!0})(),m&&m.animationFinish()))},Cn=(n=!0)=>{An();const t=(i=>(i.forEach(o=>{for(const s in o)if(o.hasOwnProperty(s)){const u=o[s];if("easing"===s)o["animation-timing-function"]=u,delete o[s];else{const l=Tn(s);l!==s&&(o[l]=u,delete o[s])}}}),i))(c);h.forEach(e=>{if(t.length>0){const a=((i=[])=>i.map(o=>{const s=o.offset,u=[];for(const l in o)o.hasOwnProperty(l)&&"offset"!==l&&u.push(`${l}: ${o[l]};`);return`${100*s}% { ${u.join(" ")} }`}).join(" "))(t);O=void 0!==i?i:(i=>{let o=un.indexOf(i);return o<0&&(o=un.push(i)-1),`ion-animation-${o}`})(a);const d=((i,o,s)=>{var u;const l=(i=>{const o=void 0!==i.getRootNode?i.getRootNode():i;return o.head||o})(s),A=J(s),v=l.querySelector("#"+i);if(v)return v;const c=(null!==(u=s.ownerDocument)&&void 0!==u?u:document).createElement("style");return c.id=i,c.textContent=`@${A}keyframes ${i} { ${o} } @${A}keyframes ${i}-alt { ${o} }`,l.appendChild(c),c})(O,a,e);rn.push(d),f(e,"animation-duration",`${b()}ms`),f(e,"animation-timing-function",M()),f(e,"animation-delay",`${K()}ms`),f(e,"animation-fill-mode",z()),f(e,"animation-direction",D());const g=w()===1/0?"infinite":w().toString();f(e,"animation-iteration-count",g),f(e,"animation-play-state","paused"),n&&f(e,"animation-name",`${d.id}-alt`),(0,F.r)(()=>{f(e,"animation-name",d.id||null)})}})},bn=(n=!0)=>{(()=>{dn.forEach(a=>a()),mn.forEach(a=>a());const n=Q,t=X,e=Y;h.forEach(a=>{const d=a.classList;n.forEach(g=>d.add(g)),t.forEach(g=>d.remove(g));for(const g in e)e.hasOwnProperty(g)&&f(a,g,e[g])})})(),c.length>0&&(C?(h.forEach(n=>{const t=n.animate(c,{id:ln,delay:K(),duration:b(),easing:M(),iterations:w(),fill:z(),direction:D()});t.pause(),S.push(t)}),S.length>0&&(S[0].onfinish=()=>{R()})):Cn(n)),$=!0},U=n=>{if(n=Math.min(Math.max(n,0),.9999),C)S.forEach(t=>{t.currentTime=t.effect.getComputedTiming().delay+b()*n,t.pause()});else{const t=`-${b()*n}ms`;h.forEach(e=>{c.length>0&&(f(e,"animation-delay",t),f(e,"animation-play-state","paused"))})}},Sn=n=>{S.forEach(t=>{t.effect.updateTiming({delay:K(),duration:b(),easing:M(),iterations:w(),fill:z(),direction:D()})}),void 0!==n&&U(n)},vn=(n=!0,t)=>{(0,F.r)(()=>{h.forEach(e=>{f(e,"animation-name",O||null),f(e,"animation-duration",`${b()}ms`),f(e,"animation-timing-function",M()),f(e,"animation-delay",void 0!==t?`-${t*b()}ms`:`${K()}ms`),f(e,"animation-fill-mode",z()||null),f(e,"animation-direction",D()||null);const a=w()===1/0?"infinite":w().toString();f(e,"animation-iteration-count",a),n&&f(e,"animation-name",`${O}-alt`),(0,F.r)(()=>{f(e,"animation-name",O||null)})})})},y=(n=!1,t=!0,e)=>(n&&p.forEach(a=>{a.update(n,t,e)}),C?Sn(e):vn(t,e),r),wn=()=>{$&&(C?S.forEach(n=>{n.pause()}):h.forEach(n=>{f(n,"animation-play-state","paused")}),H=!0)},bt=()=>{G=void 0,R()},an=()=>{G&&clearTimeout(G)},Fn=n=>new Promise(t=>{n?.sync&&(B=!0,sn(()=>B=!1,{oneTimeCallback:!0})),$||bn(),L&&(C?(U(0),Sn()):vn(),L=!1),I&&(P=p.length+1,I=!1);const e=()=>{gn(a,N),t()},a=()=>{gn(e,Z),t()};sn(a,{oneTimeCallback:!0}),((n,t)=>{Z.push({c:n,o:{oneTimeCallback:!0}})})(e),p.forEach(d=>{d.play()}),C?(S.forEach(n=>{n.play()}),(0===c.length||0===h.length)&&R()):(()=>{if(an(),(0,F.r)(()=>{h.forEach(n=>{c.length>0&&f(n,"animation-play-state","running")})}),0===c.length||0===h.length)R();else{const n=K()||0,t=b()||0,e=w()||1;isFinite(e)&&(G=setTimeout(bt,n+t*e+100)),((i,o)=>{let s;const u={passive:!0},A=v=>{i===v.target&&(s&&s(),an(),(0,F.r)(()=>{h.forEach(n=>{E(n,"animation-duration"),E(n,"animation-delay"),E(n,"animation-play-state")}),(0,F.r)(R)}))};i&&(i.addEventListener("webkitAnimationEnd",A,u),i.addEventListener("animationend",A,u),s=()=>{i.removeEventListener("webkitAnimationEnd",A,u),i.removeEventListener("animationend",A,u)})})(h[0])}})(),H=!1}),$n=(n,t)=>{const e=c[0];return void 0===e||void 0!==e.offset&&0!==e.offset?c=[{offset:0,[n]:t},...c]:e[n]=t,r};return r={parentAnimation:m,elements:h,childAnimations:p,id:ln,animationFinish:R,from:$n,to:(n,t)=>{const e=c[c.length-1];return void 0===e||void 0!==e.offset&&1!==e.offset?c=[...c,{offset:1,[n]:t}]:e[n]=t,r},fromTo:(n,t,e)=>$n(n,t).to(n,e),parent:n=>(m=n,r),play:Fn,pause:()=>(p.forEach(n=>{n.pause()}),wn(),r),stop:()=>{p.forEach(n=>{n.stop()}),$&&(En(),$=!1),j=!1,B=!1,I=!0,T=void 0,W=void 0,_=void 0,P=0,L=!1,x=!0,H=!1,Z.forEach(n=>n.c(0,r)),Z.length=0},destroy:n=>(p.forEach(t=>{t.destroy(n)}),(n=>{En(),n&&An()})(n),h.length=0,p.length=0,c.length=0,on.length=0,N.length=0,$=!1,I=!0,r),keyframes:n=>{const t=c!==n;return c=n,t&&(n=>{C?yn().forEach(t=>{const e=t.effect;if(e.setKeyframes)e.setKeyframes(n);else{const a=new KeyframeEffect(e.target,n,e.getTiming());t.effect=a}}):Cn()})(c),r},addAnimation:n=>{if(null!=n)if(Array.isArray(n))for(const t of n)t.parent(r),p.push(t);else n.parent(r),p.push(n);return r},addElement:n=>{if(null!=n)if(1===n.nodeType)h.push(n);else if(n.length>=0)for(let t=0;t(A=n,y(!0),r),direction:n=>(v=n,y(!0),r),iterations:n=>(l=n,y(!0),r),duration:n=>(!C&&0===n&&(n=1),s=n,y(!0),r),easing:n=>(u=n,y(!0),r),delay:n=>(o=n,y(!0),r),getWebAnimations:yn,getKeyframes:()=>c,getFill:z,getDirection:D,getDelay:K,getIterations:w,getEasing:M,getDuration:b,afterAddRead:n=>(hn.push(n),r),afterAddWrite:n=>(pn.push(n),r),afterClearStyles:(n=[])=>{for(const t of n)en[t]="";return r},afterStyles:(n={})=>(en=n,r),afterRemoveClass:n=>(tn=V(tn,n),r),afterAddClass:n=>(nn=V(nn,n),r),beforeAddRead:n=>(dn.push(n),r),beforeAddWrite:n=>(mn.push(n),r),beforeClearStyles:(n=[])=>{for(const t of n)Y[t]="";return r},beforeStyles:(n={})=>(Y=n,r),beforeRemoveClass:n=>(X=V(X,n),r),beforeAddClass:n=>(Q=V(Q,n),r),onFinish:sn,isRunning:()=>0!==P&&!H,progressStart:(n=!1,t)=>(p.forEach(e=>{e.progressStart(n,t)}),wn(),j=n,$||bn(),y(!1,!0,t),r),progressStep:n=>(p.forEach(t=>{t.progressStep(n)}),U(n),r),progressEnd:(n,t,e)=>(j=!1,p.forEach(a=>{a.progressEnd(n,t,e)}),void 0!==e&&(W=e),L=!1,x=!0,0===n?(T="reverse"===D()?"normal":"reverse","reverse"===T&&(x=!1),C?(y(),U(1-t)):(_=(1-t)*b()*-1,y(!1,!1))):1===n&&(C?(y(),U(t)):(_=t*b()*-1,y(!1,!1))),void 0!==n&&!m&&Fn(),r)}}}}]); \ No newline at end of file diff --git a/9793.3154faefc8b0b5c6.js b/9793.3154faefc8b0b5c6.js new file mode 100644 index 00000000..40b09655 --- /dev/null +++ b/9793.3154faefc8b0b5c6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9793],{9793:(u,a,d)=>{d.r(a),d.d(a,{ion_split_pane:()=>h});var c=d(5861),o=d(9942),v=d(5551);const r="split-pane-main",l="split-pane-side",p={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},h=class{constructor(e){(0,o.r)(this,e),this.ionSplitPaneVisible=(0,o.d)(this,"ionSplitPaneVisible",7),this.visible=!1,this.contentId=void 0,this.disabled=!1,this.when=p.lg}visibleChanged(e){const t={visible:e,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(t)}connectedCallback(){var e=this;return(0,c.Z)(function*(){typeof customElements<"u"&&null!=customElements&&(yield customElements.whenDefined("ion-split-pane")),e.styleChildren(),e.updateState()})()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled)return void(this.visible=!1);const e=this.when;if("boolean"==typeof e)return void(this.visible=e);const t=p[e]||e;if(0!==t.length){if(window.matchMedia){const s=n=>{this.visible=n.matches},i=window.matchMedia(t);i.addListener(s),this.rmL=()=>i.removeListener(s),this.visible=i.matches}}else this.visible=!1}isPane(e){return!!this.visible&&e.parentElement===this.el&&e.classList.contains(l)}styleChildren(){const e=this.contentId,t=this.el.children,s=this.el.childElementCount;let i=!1;for(let n=0;n{let s,i;t?(s=r,i=l):(s=l,i=r);const n=e.classList;n.add(s),n.remove(i)};h.style={ios:":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1;overflow:hidden}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}",md:":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none;box-shadow:none;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1;overflow:hidden}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}"}}}]); \ No newline at end of file diff --git a/9793.3cf2993fddb73d56.js b/9793.3cf2993fddb73d56.js deleted file mode 100644 index 99670788..00000000 --- a/9793.3cf2993fddb73d56.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9793],{9793:(u,a,d)=>{d.r(a),d.d(a,{ion_split_pane:()=>h});var c=d(5861),o=d(5349),v=d(3882);const r="split-pane-main",l="split-pane-side",p={xs:"(min-width: 0px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",never:""},h=class{constructor(e){(0,o.r)(this,e),this.ionSplitPaneVisible=(0,o.d)(this,"ionSplitPaneVisible",7),this.visible=!1,this.contentId=void 0,this.disabled=!1,this.when=p.lg}visibleChanged(e){const t={visible:e,isPane:this.isPane.bind(this)};this.ionSplitPaneVisible.emit(t)}connectedCallback(){var e=this;return(0,c.Z)(function*(){typeof customElements<"u"&&null!=customElements&&(yield customElements.whenDefined("ion-split-pane")),e.styleChildren(),e.updateState()})()}disconnectedCallback(){this.rmL&&(this.rmL(),this.rmL=void 0)}updateState(){if(this.rmL&&(this.rmL(),this.rmL=void 0),this.disabled)return void(this.visible=!1);const e=this.when;if("boolean"==typeof e)return void(this.visible=e);const t=p[e]||e;if(0!==t.length){if(window.matchMedia){const s=n=>{this.visible=n.matches},i=window.matchMedia(t);i.addListener(s),this.rmL=()=>i.removeListener(s),this.visible=i.matches}}else this.visible=!1}isPane(e){return!!this.visible&&e.parentElement===this.el&&e.classList.contains(l)}styleChildren(){const e=this.contentId,t=this.el.children,s=this.el.childElementCount;let i=!1;for(let n=0;n{let s,i;t?(s=r,i=l):(s=l,i=r);const n=e.classList;n.add(s),n.remove(i)};h.style={ios:":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:0.55px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-250, #c8c7cc)));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}",md:":host{--side-width:100%;left:0;right:0;top:0;bottom:0;display:-ms-flexbox;display:flex;position:absolute;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;contain:strict}::slotted(ion-menu.menu-pane-visible){-ms-flex:0 1 auto;flex:0 1 auto;width:var(--side-width);min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side),:host(.split-pane-visible) ::slotted(.split-pane-main){left:0;right:0;top:0;bottom:0;position:relative;-webkit-box-shadow:none !important;box-shadow:none !important;z-index:0}:host(.split-pane-visible) ::slotted(.split-pane-main){-ms-flex:1;flex:1}:host(.split-pane-visible) ::slotted(.split-pane-side:not(ion-menu)),:host(.split-pane-visible) ::slotted(ion-menu.split-pane-side.menu-enabled){display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0}::slotted(.split-pane-side:not(ion-menu)){display:none}:host(.split-pane-visible) ::slotted(.split-pane-side){-ms-flex-order:-1;order:-1}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-ms-flex-order:1;order:1}:host{--border:1px solid var(--ion-item-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.13))));--side-min-width:270px;--side-max-width:28%}:host(.split-pane-visible) ::slotted(.split-pane-side){-webkit-border-start:0;border-inline-start:0;-webkit-border-end:var(--border);border-inline-end:var(--border);border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}:host(.split-pane-visible) ::slotted(.split-pane-side[side=end]){-webkit-border-start:var(--border);border-inline-start:var(--border);-webkit-border-end:0;border-inline-end:0;border-top:0;border-bottom:0;min-width:var(--side-min-width);max-width:var(--side-max-width)}"}}}]); \ No newline at end of file diff --git a/9820.5e3b370abd56fba1.js b/9820.5e3b370abd56fba1.js deleted file mode 100644 index ed4edc60..00000000 --- a/9820.5e3b370abd56fba1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9820],{9820:(x,d,u)=>{u.r(d),u.d(d,{ion_picker_internal:()=>b});var f=u(5861),a=u(5349),p=u(839);const b=class{constructor(i){(0,a.r)(this,i),this.ionInputModeChange=(0,a.d)(this,"ionInputModeChange",7),this.useInputMode=!1,this.isInHighlightBounds=t=>{const{highlightEl:e}=this;if(!e)return!1;const r=e.getBoundingClientRect();return!(t.clientXr.right||t.clientYr.bottom)},this.onFocusOut=t=>{const{relatedTarget:e}=t;(!e||"ION-PICKER-COLUMN-INTERNAL"!==e.tagName&&e!==this.inputEl)&&this.exitInputMode()},this.onFocusIn=t=>{const{target:e}=t;"ION-PICKER-COLUMN-INTERNAL"!==e.tagName||this.actionOnClick||(e.numericInput?this.enterInputMode(e,!1):this.exitInputMode())},this.onClick=()=>{const{actionOnClick:t}=this;t&&(t(),this.actionOnClick=void 0)},this.onPointerDown=t=>{const{useInputMode:e,inputModeColumn:r,el:o}=this;if(this.isInHighlightBounds(t))if(e)this.actionOnClick="ION-PICKER-COLUMN-INTERNAL"===t.target.tagName?r&&r===t.target?()=>{this.enterInputMode()}:()=>{this.enterInputMode(t.target)}:()=>{this.exitInputMode()};else{const n=1===o.querySelectorAll("ion-picker-column-internal.picker-column-numeric-input").length?t.target:void 0;this.actionOnClick=()=>{this.enterInputMode(n)}}else this.actionOnClick=()=>{this.exitInputMode()}},this.enterInputMode=(t,e=!0)=>{const{inputEl:r,el:o}=this;!r||!o.querySelector("ion-picker-column-internal.picker-column-numeric-input")||(this.useInputMode=!0,this.inputModeColumn=t,e?(this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),r.focus()):(o.addEventListener("keypress",this.onKeyPress),this.destroyKeypressListener=()=>{o.removeEventListener("keypress",this.onKeyPress)}),this.emitInputModeChange())},this.onKeyPress=t=>{const{inputEl:e}=this;if(!e)return;const r=parseInt(t.key,10);Number.isNaN(r)||(e.value+=t.key,this.onInputChange())},this.selectSingleColumn=()=>{const{inputEl:t,inputModeColumn:e,singleColumnSearchTimeout:r}=this;if(!t||!e)return;const o=e.items.filter(n=>!0!==n.disabled);if(r&&clearTimeout(r),this.singleColumnSearchTimeout=setTimeout(()=>{t.value="",this.singleColumnSearchTimeout=void 0},1e3),t.value.length>=3){const l=t.value.substring(t.value.length-2);return t.value=l,void this.selectSingleColumn()}const s=o.find(({text:n})=>n.replace(/^0+(?=[1-9])|0+(?=0$)/,"")===t.value);if(s)e.setValue(s.value);else if(2===t.value.length){const n=t.value.substring(t.value.length-1);t.value=n,this.selectSingleColumn()}},this.searchColumn=(t,e,r="start")=>{const o="start"===r?/^0+/:/0$/,s=t.items.find(({text:n,disabled:l})=>!0!==l&&n.replace(o,"")===e);s&&t.setValue(s.value)},this.selectMultiColumn=()=>{const{inputEl:t,el:e}=this;if(!t)return;const r=Array.from(e.querySelectorAll("ion-picker-column-internal")).filter(c=>c.numericInput),o=r[0],s=r[1];let l,n=t.value;switch(n.length){case 1:this.searchColumn(o,n);break;case 2:const c=t.value.substring(0,1);n="0"===c||"1"===c?t.value:c,this.searchColumn(o,n),1===n.length&&(l=t.value.substring(t.value.length-1),this.searchColumn(s,l,"end"));break;case 3:const h=t.value.substring(0,1);n="0"===h||"1"===h?t.value.substring(0,2):h,this.searchColumn(o,n),l=t.value.substring(1===n.length?1:2),this.searchColumn(s,l,"end");break;case 4:const g=t.value.substring(0,1);n="0"===g||"1"===g?t.value.substring(0,2):g,this.searchColumn(o,n);const v=t.value.substring(1===n.length?1:2,t.value.length);this.searchColumn(s,v,"end");break;default:const I=t.value.substring(t.value.length-4);t.value=I,this.selectMultiColumn()}},this.onInputChange=()=>{const{useInputMode:t,inputEl:e,inputModeColumn:r}=this;!t||!e||(r?this.selectSingleColumn():this.selectMultiColumn())},this.emitInputModeChange=()=>{const{useInputMode:t,inputModeColumn:e}=this;this.ionInputModeChange.emit({useInputMode:t,inputModeColumn:e})}}preventTouchStartPropagation(i){i.stopPropagation()}componentWillLoad(){(0,p.g)(this.el).addEventListener("focusin",this.onFocusIn),(0,p.g)(this.el).addEventListener("focusout",this.onFocusOut)}exitInputMode(){var i=this;return(0,f.Z)(function*(){const{inputEl:t,useInputMode:e}=i;!e||!t||(i.useInputMode=!1,i.inputModeColumn=void 0,t.blur(),t.value="",i.destroyKeypressListener&&(i.destroyKeypressListener(),i.destroyKeypressListener=void 0),i.emitInputModeChange())})()}render(){return(0,a.h)(a.H,{onPointerDown:i=>this.onPointerDown(i),onClick:()=>this.onClick()},(0,a.h)("input",{"aria-hidden":"true",tabindex:-1,inputmode:"numeric",type:"number",ref:i=>this.inputEl=i,onInput:()=>this.onInputChange(),onBlur:()=>this.exitInputMode()}),(0,a.h)("div",{class:"picker-before"}),(0,a.h)("div",{class:"picker-after"}),(0,a.h)("div",{class:"picker-highlight",ref:i=>this.highlightEl=i}),(0,a.h)("slot",null))}get el(){return(0,a.f)(this)}};b.style={ios:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--wheel-highlight-background, var(--ion-color-step-150, #eeeeef))}",md:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}"}}}]); \ No newline at end of file diff --git a/9820.84c624a4a3200641.js b/9820.84c624a4a3200641.js new file mode 100644 index 00000000..6a6c7252 --- /dev/null +++ b/9820.84c624a4a3200641.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9820],{9820:(x,d,u)=>{u.r(d),u.d(d,{ion_picker_internal:()=>b});var f=u(5861),a=u(9942),p=u(512);const b=class{constructor(i){(0,a.r)(this,i),this.ionInputModeChange=(0,a.d)(this,"ionInputModeChange",7),this.useInputMode=!1,this.isInHighlightBounds=t=>{const{highlightEl:e}=this;if(!e)return!1;const r=e.getBoundingClientRect();return!(t.clientXr.right||t.clientYr.bottom)},this.onFocusOut=t=>{const{relatedTarget:e}=t;(!e||"ION-PICKER-COLUMN-INTERNAL"!==e.tagName&&e!==this.inputEl)&&this.exitInputMode()},this.onFocusIn=t=>{const{target:e}=t;"ION-PICKER-COLUMN-INTERNAL"!==e.tagName||this.actionOnClick||(e.numericInput?this.enterInputMode(e,!1):this.exitInputMode())},this.onClick=()=>{const{actionOnClick:t}=this;t&&(t(),this.actionOnClick=void 0)},this.onPointerDown=t=>{const{useInputMode:e,inputModeColumn:r,el:o}=this;if(this.isInHighlightBounds(t))if(e)this.actionOnClick="ION-PICKER-COLUMN-INTERNAL"===t.target.tagName?r&&r===t.target?()=>{this.enterInputMode()}:()=>{this.enterInputMode(t.target)}:()=>{this.exitInputMode()};else{const n=1===o.querySelectorAll("ion-picker-column-internal.picker-column-numeric-input").length?t.target:void 0;this.actionOnClick=()=>{this.enterInputMode(n)}}else this.actionOnClick=()=>{this.exitInputMode()}},this.enterInputMode=(t,e=!0)=>{const{inputEl:r,el:o}=this;!r||!o.querySelector("ion-picker-column-internal.picker-column-numeric-input")||(this.useInputMode=!0,this.inputModeColumn=t,e?(this.destroyKeypressListener&&(this.destroyKeypressListener(),this.destroyKeypressListener=void 0),r.focus()):(o.addEventListener("keypress",this.onKeyPress),this.destroyKeypressListener=()=>{o.removeEventListener("keypress",this.onKeyPress)}),this.emitInputModeChange())},this.onKeyPress=t=>{const{inputEl:e}=this;if(!e)return;const r=parseInt(t.key,10);Number.isNaN(r)||(e.value+=t.key,this.onInputChange())},this.selectSingleColumn=()=>{const{inputEl:t,inputModeColumn:e,singleColumnSearchTimeout:r}=this;if(!t||!e)return;const o=e.items.filter(n=>!0!==n.disabled);if(r&&clearTimeout(r),this.singleColumnSearchTimeout=setTimeout(()=>{t.value="",this.singleColumnSearchTimeout=void 0},1e3),t.value.length>=3){const l=t.value.substring(t.value.length-2);return t.value=l,void this.selectSingleColumn()}const s=o.find(({text:n})=>n.replace(/^0+(?=[1-9])|0+(?=0$)/,"")===t.value);if(s)e.setValue(s.value);else if(2===t.value.length){const n=t.value.substring(t.value.length-1);t.value=n,this.selectSingleColumn()}},this.searchColumn=(t,e,r="start")=>{const o="start"===r?/^0+/:/0$/,s=t.items.find(({text:n,disabled:l})=>!0!==l&&n.replace(o,"")===e);s&&t.setValue(s.value)},this.selectMultiColumn=()=>{const{inputEl:t,el:e}=this;if(!t)return;const r=Array.from(e.querySelectorAll("ion-picker-column-internal")).filter(c=>c.numericInput),o=r[0],s=r[1];let l,n=t.value;switch(n.length){case 1:this.searchColumn(o,n);break;case 2:const c=t.value.substring(0,1);n="0"===c||"1"===c?t.value:c,this.searchColumn(o,n),1===n.length&&(l=t.value.substring(t.value.length-1),this.searchColumn(s,l,"end"));break;case 3:const h=t.value.substring(0,1);n="0"===h||"1"===h?t.value.substring(0,2):h,this.searchColumn(o,n),l=t.value.substring(1===n.length?1:2),this.searchColumn(s,l,"end");break;case 4:const g=t.value.substring(0,1);n="0"===g||"1"===g?t.value.substring(0,2):g,this.searchColumn(o,n);const v=t.value.substring(1===n.length?1:2,t.value.length);this.searchColumn(s,v,"end");break;default:const I=t.value.substring(t.value.length-4);t.value=I,this.selectMultiColumn()}},this.onInputChange=()=>{const{useInputMode:t,inputEl:e,inputModeColumn:r}=this;!t||!e||(r?this.selectSingleColumn():this.selectMultiColumn())},this.emitInputModeChange=()=>{const{useInputMode:t,inputModeColumn:e}=this;this.ionInputModeChange.emit({useInputMode:t,inputModeColumn:e})}}preventTouchStartPropagation(i){i.stopPropagation()}componentWillLoad(){(0,p.g)(this.el).addEventListener("focusin",this.onFocusIn),(0,p.g)(this.el).addEventListener("focusout",this.onFocusOut)}exitInputMode(){var i=this;return(0,f.Z)(function*(){const{inputEl:t,useInputMode:e}=i;!e||!t||(i.useInputMode=!1,i.inputModeColumn=void 0,t.blur(),t.value="",i.destroyKeypressListener&&(i.destroyKeypressListener(),i.destroyKeypressListener=void 0),i.emitInputModeChange())})()}render(){return(0,a.h)(a.H,{onPointerDown:i=>this.onPointerDown(i),onClick:()=>this.onClick()},(0,a.h)("input",{"aria-hidden":"true",tabindex:-1,inputmode:"numeric",type:"number",onKeyDown:i=>{var t;"Enter"===i.key&&(null===(t=this.inputEl)||void 0===t||t.blur())},ref:i=>this.inputEl=i,onInput:()=>this.onInputChange(),onBlur:()=>this.exitInputMode()}),(0,a.h)("div",{class:"picker-before"}),(0,a.h)("div",{class:"picker-after"}),(0,a.h)("div",{class:"picker-highlight",ref:i=>this.highlightEl=i}),(0,a.h)("slot",null))}get el(){return(0,a.f)(this)}};b.style={ios:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), to(rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0.8) 100%)}:host .picker-highlight{background:var(--wheel-highlight-background, var(--ion-color-step-150, #eeeeef))}",md:":host{display:-ms-flexbox;display:flex;position:relative;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:100%;height:200px;direction:ltr;z-index:0}:host .picker-before,:host .picker-after{position:absolute;width:100%;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:1;pointer-events:none}:host .picker-before{top:0;height:83px}@supports (inset-inline-start: 0){:host .picker-before{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-before{left:0}:host-context([dir=rtl]) .picker-before{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-before{left:unset;right:unset;right:0}}}:host .picker-after{top:116px;height:84px}@supports (inset-inline-start: 0){:host .picker-after{inset-inline-start:0}}@supports not (inset-inline-start: 0){:host .picker-after{left:0}:host-context([dir=rtl]) .picker-after{left:unset;right:unset;right:0}@supports selector(:dir(rtl)){:host(:dir(rtl)) .picker-after{left:unset;right:unset;right:0}}}:host .picker-highlight{border-radius:8px;left:0;right:0;top:50%;bottom:0;-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:0;margin-bottom:0;position:absolute;width:calc(100% - 16px);height:34px;-webkit-transform:translateY(-50%);transform:translateY(-50%);background:var(--wheel-highlight-background);z-index:-1}:host input{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;margin:0;padding:0;border:0;outline:0;clip:rect(0 0 0 0);opacity:0;overflow:hidden;-webkit-appearance:none;-moz-appearance:none}:host ::slotted(ion-picker-column-internal:first-of-type){text-align:start}:host ::slotted(ion-picker-column-internal:last-of-type){text-align:end}:host ::slotted(ion-picker-column-internal:only-child){text-align:center}:host .picker-before{background:-webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to bottom, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 20%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}:host .picker-after{background:-webkit-gradient(linear, left bottom, left top, color-stop(30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1)), color-stop(90%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0)));background:linear-gradient(to top, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 1) 30%, rgba(var(--wheel-fade-background-rgb, var(--background-rgb, var(--ion-background-color-rgb, 255, 255, 255))), 0) 90%)}"}}}]); \ No newline at end of file diff --git a/9857.1213480377202a1b.js b/9857.518fb0b02b3f2a97.js similarity index 90% rename from 9857.1213480377202a1b.js rename to 9857.518fb0b02b3f2a97.js index 640e8fcf..4d428c06 100644 --- a/9857.1213480377202a1b.js +++ b/9857.518fb0b02b3f2a97.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9857],{9857:(E,m,d)=>{d.r(m),d.d(m,{ion_breadcrumb:()=>e,ion_breadcrumbs:()=>h});var o=d(5349),x=d(839),b=d(3567),u=d(5307),f=d(3882);const e=class{constructor(c){(0,o.r)(this,c),this.ionFocus=(0,o.d)(this,"ionFocus",7),this.ionBlur=(0,o.d)(this,"ionBlur",7),this.collapsedClick=(0,o.d)(this,"collapsedClick",7),this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.collapsedIndicatorClick=()=>{this.collapsedClick.emit({ionShadowTarget:this.collapsedRef})},this.collapsed=!1,this.last=void 0,this.showCollapsedIndicator=void 0,this.color=void 0,this.active=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.separator=void 0,this.target=void 0,this.routerDirection="forward",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=(0,x.i)(this.el)}isClickable(){return void 0!==this.href}render(){const{color:c,active:a,collapsed:i,disabled:n,download:l,el:g,inheritedAttributes:r,last:p,routerAnimation:k,routerDirection:z,separator:M,showCollapsedIndicator:y,target:O}=this,_=this.isClickable(),B=void 0===this.href?"span":"a",I=n?void 0:this.href,A=(0,f.b)(this),D="span"===B?{}:{download:l,href:I,target:O},j=!p&&(i?!(!y||p):M);return(0,o.h)(o.H,{onClick:w=>(0,b.o)(I,w,z,k),"aria-disabled":n?"true":null,class:(0,b.c)(c,{[A]:!0,"breadcrumb-active":a,"breadcrumb-collapsed":i,"breadcrumb-disabled":n,"in-breadcrumbs-color":(0,b.h)("ion-breadcrumbs[color]",g),"in-toolbar":(0,b.h)("ion-toolbar",this.el),"in-toolbar-color":(0,b.h)("ion-toolbar[color]",this.el),"ion-activatable":_,"ion-focusable":_})},(0,o.h)(B,Object.assign({},D,{class:"breadcrumb-native",part:"native",disabled:n,onFocus:this.onFocus,onBlur:this.onBlur},r),(0,o.h)("slot",{name:"start"}),(0,o.h)("slot",null),(0,o.h)("slot",{name:"end"})),y&&(0,o.h)("button",{part:"collapsed-indicator","aria-label":"Show more breadcrumbs",onClick:()=>this.collapsedIndicatorClick(),ref:w=>this.collapsedRef=w,class:{"breadcrumbs-collapsed-indicator":!0}},(0,o.h)("ion-icon",{"aria-hidden":"true",icon:u.n,lazy:!1})),j&&(0,o.h)("span",{class:"breadcrumb-separator",part:"separator","aria-hidden":"true"},(0,o.h)("slot",{name:"separator"},"ios"===A?(0,o.h)("ion-icon",{icon:u.m,lazy:!1,"flip-rtl":!0}):(0,o.h)("span",null,"/"))))}get el(){return(0,o.f)(this)}};e.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;align-items:center;color:var(--color);font-size:1rem;font-weight:400;line-height:1.5}.breadcrumb-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;outline:none;background:inherit}:host(.breadcrumb-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.breadcrumb-active){color:var(--color-active)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .breadcrumb-native{background:var(--background-focused)}@media (any-hover: hover){:host(.ion-activatable:hover){color:var(--color-hover)}:host(.ion-activatable.in-breadcrumbs-color:hover),:host(.ion-activatable.ion-color:hover){color:var(--ion-color-shade)}}.breadcrumb-separator{display:-ms-inline-flexbox;display:inline-flex}:host(.breadcrumb-collapsed) .breadcrumb-native{display:none}:host(.in-breadcrumbs-color),:host(.in-breadcrumbs-color.breadcrumb-active){color:var(--ion-color-base)}:host(.in-breadcrumbs-color) .breadcrumb-separator{color:var(--ion-color-base)}:host(.ion-color){color:var(--ion-color-base)}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumb-separator{color:rgba(var(--ion-color-contrast-rgb), 0.8)}:host(.in-toolbar-color.breadcrumb-active){color:var(--ion-color-contrast)}.breadcrumbs-collapsed-indicator{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex:1 1 100%;flex:1 1 100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:32px;height:18px;border:0;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.breadcrumbs-collapsed-indicator ion-icon{margin-top:1px;font-size:1.375rem}:host{--color:var(--ion-color-step-850, #2d4665);--color-active:var(--ion-text-color, #03060b);--color-hover:var(--ion-text-color, #03060b);--color-focused:var(--color-active);--background-focused:var(--ion-color-step-50, rgba(233, 237, 243, 0.7));font-size:clamp(16px, 1rem, 22px)}:host(.breadcrumb-active){font-weight:600}.breadcrumb-native{border-radius:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:5px;padding-bottom:5px;border:1px solid transparent}:host(.ion-focused) .breadcrumb-native{border-radius:8px}:host(.in-breadcrumbs-color.ion-focused) .breadcrumb-native,:host(.ion-color.ion-focused) .breadcrumb-native{background:rgba(var(--ion-color-base-rgb), 0.1);color:var(--ion-color-base)}:host(.ion-focused) ::slotted(ion-icon),:host(.in-breadcrumbs-color.ion-focused) ::slotted(ion-icon),:host(.ion-color.ion-focused) ::slotted(ion-icon){color:var(--ion-color-step-750, #445b78)}.breadcrumb-separator{color:var(--ion-color-step-550, #73849a)}::slotted(ion-icon){color:var(--ion-color-step-400, #92a0b3);font-size:min(1.125rem, 21.6px)}::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-icon[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px}:host(.breadcrumb-active) ::slotted(ion-icon){color:var(--ion-color-step-850, #242d39)}.breadcrumbs-collapsed-indicator{border-radius:4px;background:var(--ion-color-step-100, #e9edf3);color:var(--ion-color-step-550, #73849a)}.breadcrumbs-collapsed-indicator:hover{opacity:0.45}.breadcrumbs-collapsed-indicator:focus{background:var(--ion-color-step-150, #d9e0ea)}.breadcrumbs-collapsed-indicator ion-icon{font-size:min(1.375rem, 22px)}",md:":host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;align-items:center;color:var(--color);font-size:1rem;font-weight:400;line-height:1.5}.breadcrumb-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;outline:none;background:inherit}:host(.breadcrumb-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.breadcrumb-active){color:var(--color-active)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .breadcrumb-native{background:var(--background-focused)}@media (any-hover: hover){:host(.ion-activatable:hover){color:var(--color-hover)}:host(.ion-activatable.in-breadcrumbs-color:hover),:host(.ion-activatable.ion-color:hover){color:var(--ion-color-shade)}}.breadcrumb-separator{display:-ms-inline-flexbox;display:inline-flex}:host(.breadcrumb-collapsed) .breadcrumb-native{display:none}:host(.in-breadcrumbs-color),:host(.in-breadcrumbs-color.breadcrumb-active){color:var(--ion-color-base)}:host(.in-breadcrumbs-color) .breadcrumb-separator{color:var(--ion-color-base)}:host(.ion-color){color:var(--ion-color-base)}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumb-separator{color:rgba(var(--ion-color-contrast-rgb), 0.8)}:host(.in-toolbar-color.breadcrumb-active){color:var(--ion-color-contrast)}.breadcrumbs-collapsed-indicator{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex:1 1 100%;flex:1 1 100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:32px;height:18px;border:0;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.breadcrumbs-collapsed-indicator ion-icon{margin-top:1px;font-size:1.375rem}:host{--color:var(--ion-color-step-600, #677483);--color-active:var(--ion-text-color, #03060b);--color-hover:var(--ion-text-color, #03060b);--color-focused:var(--ion-color-step-800, #35404e);--background-focused:var(--ion-color-step-50, #fff)}:host(.breadcrumb-active){font-weight:500}.breadcrumb-native{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px}.breadcrumb-separator{-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:-1px}:host(.ion-focused) .breadcrumb-native{border-radius:4px;-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.12);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.12)}.breadcrumb-separator{color:var(--ion-color-step-550, #73849a)}::slotted(ion-icon){color:var(--ion-color-step-550, #7d8894);font-size:1.125rem}::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-icon[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px}:host(.breadcrumb-active) ::slotted(ion-icon){color:var(--ion-color-step-850, #222d3a)}.breadcrumbs-collapsed-indicator{border-radius:2px;background:var(--ion-color-step-100, #eef1f3);color:var(--ion-color-step-550, #73849a)}.breadcrumbs-collapsed-indicator:hover{opacity:0.7}.breadcrumbs-collapsed-indicator:focus{background:var(--ion-color-step-150, #dfe5e8)}"};const h=class{constructor(c){(0,o.r)(this,c),this.ionCollapsedClick=(0,o.d)(this,"ionCollapsedClick",7),this.breadcrumbsInit=()=>{this.setBreadcrumbSeparator(),this.setMaxItems()},this.resetActiveBreadcrumb=()=>{const i=this.getBreadcrumbs().find(n=>n.active);i&&this.activeChanged&&(i.active=!1)},this.setMaxItems=()=>{const{itemsAfterCollapse:a,itemsBeforeCollapse:i,maxItems:n}=this,l=this.getBreadcrumbs();for(const r of l)r.showCollapsedIndicator=!1,r.collapsed=!1;void 0!==n&&l.length>n&&i+a<=n&&l.forEach((r,p)=>{p===i&&(r.showCollapsedIndicator=!0),p>=i&&p{const{itemsAfterCollapse:a,itemsBeforeCollapse:i,maxItems:n}=this,l=this.getBreadcrumbs(),g=l.find(r=>r.active);for(const r of l){const p=void 0!==n&&0===a?r===l[i]:r===l[l.length-1];r.last=p,r.separator=void 0!==r.separator?r.separator:!p||void 0,!g&&p&&(r.active=!0,this.activeChanged=!0)}},this.getBreadcrumbs=()=>Array.from(this.el.querySelectorAll("ion-breadcrumb")),this.slotChanged=()=>{this.resetActiveBreadcrumb(),this.breadcrumbsInit()},this.collapsed=void 0,this.activeChanged=void 0,this.color=void 0,this.maxItems=void 0,this.itemsBeforeCollapse=1,this.itemsAfterCollapse=1}onCollapsedClick(c){const i=this.getBreadcrumbs().filter(n=>n.collapsed);this.ionCollapsedClick.emit(Object.assign(Object.assign({},c.detail),{collapsedBreadcrumbs:i}))}maxItemsChanged(){this.resetActiveBreadcrumb(),this.breadcrumbsInit()}componentWillLoad(){this.breadcrumbsInit()}render(){const{color:c,collapsed:a}=this,i=(0,f.b)(this);return(0,o.h)(o.H,{class:(0,b.c)(c,{[i]:!0,"in-toolbar":(0,b.h)("ion-toolbar",this.el),"in-toolbar-color":(0,b.h)("ion-toolbar[color]",this.el),"breadcrumbs-collapsed":a})},(0,o.h)("slot",{onSlotchange:this.slotChanged}))}get el(){return(0,o.f)(this)}static get watchers(){return{maxItems:["maxItemsChanged"],itemsBeforeCollapse:["maxItemsChanged"],itemsAfterCollapse:["maxItemsChanged"]}}};h.style={ios:":host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator ion-icon{color:var(--ion-color-contrast)}:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator{background:rgba(var(--ion-color-contrast-rgb), 0.11)}:host(.in-toolbar){-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;-ms-flex-pack:center;justify-content:center}",md:":host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator ion-icon{color:var(--ion-color-contrast)}:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator{background:rgba(var(--ion-color-contrast-rgb), 0.11)}:host(.in-toolbar){-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}"}},3567:(E,m,d)=>{d.d(m,{c:()=>b,g:()=>f,h:()=>x,o:()=>C});var o=d(5861);const x=(e,t)=>null!==t.closest(e),b=(e,t)=>"string"==typeof e&&e.length>0?Object.assign({"ion-color":!0,[`ion-color-${e}`]:!0},t):t,f=e=>{const t={};return(e=>void 0!==e?(Array.isArray(e)?e:e.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(e).forEach(s=>t[s]=!0),t},v=/^[a-z][a-z0-9+\-.]*:/,C=function(){var e=(0,o.Z)(function*(t,s,h,c){if(null!=t&&"#"!==t[0]&&!v.test(t)){const a=document.querySelector("ion-router");if(a)return s?.preventDefault(),a.push(t,h,c)}return!1});return function(s,h,c,a){return e.apply(this,arguments)}}()}}]); \ No newline at end of file +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9857],{9857:(E,m,d)=>{d.r(m),d.d(m,{ion_breadcrumb:()=>e,ion_breadcrumbs:()=>h});var o=d(9942),x=d(512),b=d(4459),u=d(1076),f=d(5551);const e=class{constructor(l){(0,o.r)(this,l),this.ionFocus=(0,o.d)(this,"ionFocus",7),this.ionBlur=(0,o.d)(this,"ionBlur",7),this.collapsedClick=(0,o.d)(this,"collapsedClick",7),this.inheritedAttributes={},this.onFocus=()=>{this.ionFocus.emit()},this.onBlur=()=>{this.ionBlur.emit()},this.collapsedIndicatorClick=()=>{this.collapsedClick.emit({ionShadowTarget:this.collapsedRef})},this.collapsed=!1,this.last=void 0,this.showCollapsedIndicator=void 0,this.color=void 0,this.active=!1,this.disabled=!1,this.download=void 0,this.href=void 0,this.rel=void 0,this.separator=void 0,this.target=void 0,this.routerDirection="forward",this.routerAnimation=void 0}componentWillLoad(){this.inheritedAttributes=(0,x.i)(this.el)}isClickable(){return void 0!==this.href}render(){const{color:l,active:a,collapsed:i,disabled:n,download:c,el:g,inheritedAttributes:r,last:p,routerAnimation:k,routerDirection:z,separator:M,showCollapsedIndicator:y,target:O}=this,_=this.isClickable(),B=void 0===this.href?"span":"a",I=n?void 0:this.href,A=(0,f.b)(this),D="span"===B?{}:{download:c,href:I,target:O},j=!p&&(i?!(!y||p):M);return(0,o.h)(o.H,{onClick:w=>(0,b.o)(I,w,z,k),"aria-disabled":n?"true":null,class:(0,b.c)(l,{[A]:!0,"breadcrumb-active":a,"breadcrumb-collapsed":i,"breadcrumb-disabled":n,"in-breadcrumbs-color":(0,b.h)("ion-breadcrumbs[color]",g),"in-toolbar":(0,b.h)("ion-toolbar",this.el),"in-toolbar-color":(0,b.h)("ion-toolbar[color]",this.el),"ion-activatable":_,"ion-focusable":_})},(0,o.h)(B,Object.assign({},D,{class:"breadcrumb-native",part:"native",disabled:n,onFocus:this.onFocus,onBlur:this.onBlur},r),(0,o.h)("slot",{name:"start"}),(0,o.h)("slot",null),(0,o.h)("slot",{name:"end"})),y&&(0,o.h)("button",{part:"collapsed-indicator","aria-label":"Show more breadcrumbs",onClick:()=>this.collapsedIndicatorClick(),ref:w=>this.collapsedRef=w,class:{"breadcrumbs-collapsed-indicator":!0}},(0,o.h)("ion-icon",{"aria-hidden":"true",icon:u.n,lazy:!1})),j&&(0,o.h)("span",{class:"breadcrumb-separator",part:"separator","aria-hidden":"true"},(0,o.h)("slot",{name:"separator"},"ios"===A?(0,o.h)("ion-icon",{icon:u.m,lazy:!1,"flip-rtl":!0}):(0,o.h)("span",null,"/"))))}get el(){return(0,o.f)(this)}};e.style={ios:":host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;align-items:center;color:var(--color);font-size:1rem;font-weight:400;line-height:1.5}.breadcrumb-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;outline:none;background:inherit}:host(.breadcrumb-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.breadcrumb-active){color:var(--color-active)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .breadcrumb-native{background:var(--background-focused)}@media (any-hover: hover){:host(.ion-activatable:hover){color:var(--color-hover)}:host(.ion-activatable.in-breadcrumbs-color:hover),:host(.ion-activatable.ion-color:hover){color:var(--ion-color-shade)}}.breadcrumb-separator{display:-ms-inline-flexbox;display:inline-flex}:host(.breadcrumb-collapsed) .breadcrumb-native{display:none}:host(.in-breadcrumbs-color),:host(.in-breadcrumbs-color.breadcrumb-active){color:var(--ion-color-base)}:host(.in-breadcrumbs-color) .breadcrumb-separator{color:var(--ion-color-base)}:host(.ion-color){color:var(--ion-color-base)}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumb-separator{color:rgba(var(--ion-color-contrast-rgb), 0.8)}:host(.in-toolbar-color.breadcrumb-active){color:var(--ion-color-contrast)}.breadcrumbs-collapsed-indicator{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex:1 1 100%;flex:1 1 100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:32px;height:18px;border:0;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.breadcrumbs-collapsed-indicator ion-icon{margin-top:1px;font-size:1.375rem}:host{--color:var(--ion-color-step-850, #2d4665);--color-active:var(--ion-text-color, #03060b);--color-hover:var(--ion-text-color, #03060b);--color-focused:var(--color-active);--background-focused:var(--ion-color-step-50, rgba(233, 237, 243, 0.7));font-size:clamp(16px, 1rem, 22px)}:host(.breadcrumb-active){font-weight:600}.breadcrumb-native{border-radius:4px;-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:5px;padding-bottom:5px;border:1px solid transparent}:host(.ion-focused) .breadcrumb-native{border-radius:8px}:host(.in-breadcrumbs-color.ion-focused) .breadcrumb-native,:host(.ion-color.ion-focused) .breadcrumb-native{background:rgba(var(--ion-color-base-rgb), 0.1);color:var(--ion-color-base)}:host(.ion-focused) ::slotted(ion-icon),:host(.in-breadcrumbs-color.ion-focused) ::slotted(ion-icon),:host(.ion-color.ion-focused) ::slotted(ion-icon){color:var(--ion-color-step-750, #445b78)}.breadcrumb-separator{color:var(--ion-color-step-550, #73849a)}::slotted(ion-icon){color:var(--ion-color-step-400, #92a0b3);font-size:min(1.125rem, 21.6px)}::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-icon[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px}:host(.breadcrumb-active) ::slotted(ion-icon){color:var(--ion-color-step-850, #242d39)}.breadcrumbs-collapsed-indicator{border-radius:4px;background:var(--ion-color-step-100, #e9edf3);color:var(--ion-color-step-550, #73849a)}.breadcrumbs-collapsed-indicator:hover{opacity:0.45}.breadcrumbs-collapsed-indicator:focus{background:var(--ion-color-step-150, #d9e0ea)}.breadcrumbs-collapsed-indicator ion-icon{font-size:min(1.375rem, 22px)}",md:":host{display:-ms-flexbox;display:flex;-ms-flex:0 0 auto;flex:0 0 auto;-ms-flex-align:center;align-items:center;color:var(--color);font-size:1rem;font-weight:400;line-height:1.5}.breadcrumb-native{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;letter-spacing:inherit;text-decoration:inherit;text-indent:inherit;text-overflow:inherit;text-transform:inherit;text-align:inherit;white-space:inherit;color:inherit;padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:100%;outline:none;background:inherit}:host(.breadcrumb-disabled){cursor:default;opacity:0.5;pointer-events:none}:host(.breadcrumb-active){color:var(--color-active)}:host(.ion-focused){color:var(--color-focused)}:host(.ion-focused) .breadcrumb-native{background:var(--background-focused)}@media (any-hover: hover){:host(.ion-activatable:hover){color:var(--color-hover)}:host(.ion-activatable.in-breadcrumbs-color:hover),:host(.ion-activatable.ion-color:hover){color:var(--ion-color-shade)}}.breadcrumb-separator{display:-ms-inline-flexbox;display:inline-flex}:host(.breadcrumb-collapsed) .breadcrumb-native{display:none}:host(.in-breadcrumbs-color),:host(.in-breadcrumbs-color.breadcrumb-active){color:var(--ion-color-base)}:host(.in-breadcrumbs-color) .breadcrumb-separator{color:var(--ion-color-base)}:host(.ion-color){color:var(--ion-color-base)}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumb-separator{color:rgba(var(--ion-color-contrast-rgb), 0.8)}:host(.in-toolbar-color.breadcrumb-active){color:var(--ion-color-contrast)}.breadcrumbs-collapsed-indicator{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;-webkit-margin-start:14px;margin-inline-start:14px;-webkit-margin-end:14px;margin-inline-end:14px;margin-top:0;margin-bottom:0;display:-ms-flexbox;display:flex;-ms-flex:1 1 100%;flex:1 1 100%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;width:32px;height:18px;border:0;outline:none;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none}.breadcrumbs-collapsed-indicator ion-icon{margin-top:1px;font-size:1.375rem}:host{--color:var(--ion-color-step-600, #677483);--color-active:var(--ion-text-color, #03060b);--color-hover:var(--ion-text-color, #03060b);--color-focused:var(--ion-color-step-800, #35404e);--background-focused:var(--ion-color-step-50, #fff)}:host(.breadcrumb-active){font-weight:500}.breadcrumb-native{-webkit-padding-start:12px;padding-inline-start:12px;-webkit-padding-end:12px;padding-inline-end:12px;padding-top:6px;padding-bottom:6px}.breadcrumb-separator{-webkit-margin-start:10px;margin-inline-start:10px;-webkit-margin-end:10px;margin-inline-end:10px;margin-top:-1px}:host(.ion-focused) .breadcrumb-native{border-radius:4px;-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.12);box-shadow:0px 1px 2px rgba(0, 0, 0, 0.2), 0px 2px 8px rgba(0, 0, 0, 0.12)}.breadcrumb-separator{color:var(--ion-color-step-550, #73849a)}::slotted(ion-icon){color:var(--ion-color-step-550, #7d8894);font-size:1.125rem}::slotted(ion-icon[slot=start]){-webkit-margin-end:8px;margin-inline-end:8px}::slotted(ion-icon[slot=end]){-webkit-margin-start:8px;margin-inline-start:8px}:host(.breadcrumb-active) ::slotted(ion-icon){color:var(--ion-color-step-850, #222d3a)}.breadcrumbs-collapsed-indicator{border-radius:2px;background:var(--ion-color-step-100, #eef1f3);color:var(--ion-color-step-550, #73849a)}.breadcrumbs-collapsed-indicator:hover{opacity:0.7}.breadcrumbs-collapsed-indicator:focus{background:var(--ion-color-step-150, #dfe5e8)}"};const h=class{constructor(l){(0,o.r)(this,l),this.ionCollapsedClick=(0,o.d)(this,"ionCollapsedClick",7),this.breadcrumbsInit=()=>{this.setBreadcrumbSeparator(),this.setMaxItems()},this.resetActiveBreadcrumb=()=>{const i=this.getBreadcrumbs().find(n=>n.active);i&&this.activeChanged&&(i.active=!1)},this.setMaxItems=()=>{const{itemsAfterCollapse:a,itemsBeforeCollapse:i,maxItems:n}=this,c=this.getBreadcrumbs();for(const r of c)r.showCollapsedIndicator=!1,r.collapsed=!1;void 0!==n&&c.length>n&&i+a<=n&&c.forEach((r,p)=>{p===i&&(r.showCollapsedIndicator=!0),p>=i&&p{const{itemsAfterCollapse:a,itemsBeforeCollapse:i,maxItems:n}=this,c=this.getBreadcrumbs(),g=c.find(r=>r.active);for(const r of c){const p=void 0!==n&&0===a?r===c[i]:r===c[c.length-1];r.last=p,r.separator=void 0!==r.separator?r.separator:!p||void 0,!g&&p&&(r.active=!0,this.activeChanged=!0)}},this.getBreadcrumbs=()=>Array.from(this.el.querySelectorAll("ion-breadcrumb")),this.slotChanged=()=>{this.resetActiveBreadcrumb(),this.breadcrumbsInit()},this.collapsed=void 0,this.activeChanged=void 0,this.color=void 0,this.maxItems=void 0,this.itemsBeforeCollapse=1,this.itemsAfterCollapse=1}onCollapsedClick(l){const i=this.getBreadcrumbs().filter(n=>n.collapsed);this.ionCollapsedClick.emit(Object.assign(Object.assign({},l.detail),{collapsedBreadcrumbs:i}))}maxItemsChanged(){this.resetActiveBreadcrumb(),this.breadcrumbsInit()}componentWillLoad(){this.breadcrumbsInit()}render(){const{color:l,collapsed:a}=this,i=(0,f.b)(this);return(0,o.h)(o.H,{class:(0,b.c)(l,{[i]:!0,"in-toolbar":(0,b.h)("ion-toolbar",this.el),"in-toolbar-color":(0,b.h)("ion-toolbar[color]",this.el),"breadcrumbs-collapsed":a})},(0,o.h)("slot",{onSlotchange:this.slotChanged}))}get el(){return(0,o.f)(this)}static get watchers(){return{maxItems:["maxItemsChanged"],itemsBeforeCollapse:["maxItemsChanged"],itemsAfterCollapse:["maxItemsChanged"]}}};h.style={ios:":host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator ion-icon{color:var(--ion-color-contrast)}:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator{background:rgba(var(--ion-color-contrast-rgb), 0.11)}:host(.in-toolbar){-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px;padding-top:0;padding-bottom:0;-ms-flex-pack:center;justify-content:center}",md:":host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:center;align-items:center}:host(.in-toolbar-color),:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator ion-icon{color:var(--ion-color-contrast)}:host(.in-toolbar-color) .breadcrumbs-collapsed-indicator{background:rgba(var(--ion-color-contrast-rgb), 0.11)}:host(.in-toolbar){-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}"}},4459:(E,m,d)=>{d.d(m,{c:()=>b,g:()=>f,h:()=>x,o:()=>C});var o=d(5861);const x=(e,t)=>null!==t.closest(e),b=(e,t)=>"string"==typeof e&&e.length>0?Object.assign({"ion-color":!0,[`ion-color-${e}`]:!0},t):t,f=e=>{const t={};return(e=>void 0!==e?(Array.isArray(e)?e:e.split(" ")).filter(s=>null!=s).map(s=>s.trim()).filter(s=>""!==s):[])(e).forEach(s=>t[s]=!0),t},v=/^[a-z][a-z0-9+\-.]*:/,C=function(){var e=(0,o.Z)(function*(t,s,h,l){if(null!=t&&"#"!==t[0]&&!v.test(t)){const a=document.querySelector("ion-router");if(a)return s?.preventDefault(),a.push(t,h,l)}return!1});return function(s,h,l,a){return e.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/9882.b600ed44014945da.js b/9882.b600ed44014945da.js new file mode 100644 index 00000000..41208e16 --- /dev/null +++ b/9882.b600ed44014945da.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9882],{9882:(E,p,r)=>{r.r(p),r.d(p,{ion_action_sheet:()=>_});var b=r(5861),o=r(9942),f=r(7817),v=r(512),k=r(9229),d=r(2936),g=r(4459),s=r(5551),n=r(4913);r(9951),r(1836),r(1848),r(6535),r(2019);const D=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,a])},A=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,a])},O=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,a])},P=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,a])},_=class{constructor(t){(0,o.r)(this,t),this.didPresent=(0,o.d)(this,"ionActionSheetDidPresent",7),this.willPresent=(0,o.d)(this,"ionActionSheetWillPresent",7),this.willDismiss=(0,o.d)(this,"ionActionSheetWillDismiss",7),this.didDismiss=(0,o.d)(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=(0,o.d)(this,"didPresent",7),this.willPresentShorthand=(0,o.d)(this,"willPresent",7),this.willDismissShorthand=(0,o.d)(this,"willDismiss",7),this.didDismissShorthand=(0,o.d)(this,"didDismiss",7),this.delegateController=(0,d.d)(this),this.lockController=(0,k.c)(),this.triggerController=(0,d.e)(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,d.B)},this.dispatchCancelHandler=e=>{if((0,d.i)(e.detail.role)){const a=this.getButtons().find(h=>"cancel"===h.role);this.callButtonHandler(a)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.cssClass=void 0,this.backdropDismiss=!0,this.header=void 0,this.subHeader=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:i}=this;t&&i.addClickListener(e,t)}present(){var t=this;return(0,b.Z)(function*(){const e=yield t.lockController.lock();yield t.delegateController.attachViewToDom(),yield(0,d.f)(t,"actionSheetEnter",D,O),e()})()}dismiss(t,e){var i=this;return(0,b.Z)(function*(){const a=yield i.lockController.lock(),h=yield(0,d.g)(i,t,e,"actionSheetLeave",A,P);return h&&i.delegateController.removeViewFromDom(),a(),h})()}onDidDismiss(){return(0,d.h)(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return(0,d.h)(this.el,"ionActionSheetWillDismiss")}buttonClick(t){var e=this;return(0,b.Z)(function*(){const i=t.role;return(0,d.i)(i)?e.dismiss(t.data,i):(yield e.callButtonHandler(t))?e.dismiss(t.data,t.role):Promise.resolve()})()}callButtonHandler(t){return(0,b.Z)(function*(){return!(t&&!1===(yield(0,d.s)(t.handler)))})()}getButtons(){return this.buttons.map(t=>"string"==typeof t?{text:t}:t)}connectedCallback(){(0,d.j)(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){(0,d.k)(this.el)}componentDidLoad(){const{groupEl:t,wrapperEl:e}=this;!this.gesture&&"ios"===(0,s.b)(this)&&e&&t&&(0,o.e)(()=>{t.scrollHeight>t.clientHeight||(this.gesture=(0,f.c)(e,a=>a.classList.contains("action-sheet-button")),this.gesture.enable(!0))}),!0===this.isOpen&&(0,v.r)(()=>this.present()),this.triggerChanged()}render(){const{header:t,htmlAttributes:e,overlayIndex:i}=this,a=(0,s.b)(this),h=this.getButtons(),u=h.find(c=>"cancel"===c.role),T=h.filter(c=>"cancel"!==c.role),C=`action-sheet-${i}-header`;return(0,o.h)(o.H,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==t?C:null,tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[a]:!0},(0,g.g)(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),(0,o.h)("ion-backdrop",{tappable:this.backdropDismiss}),(0,o.h)("div",{tabindex:"0"}),(0,o.h)("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:c=>this.wrapperEl=c},(0,o.h)("div",{class:"action-sheet-container"},(0,o.h)("div",{class:"action-sheet-group",ref:c=>this.groupEl=c},void 0!==t&&(0,o.h)("div",{id:C,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":void 0!==this.subHeader}},t,this.subHeader&&(0,o.h)("div",{class:"action-sheet-sub-title"},this.subHeader)),T.map(c=>(0,o.h)("button",Object.assign({},c.htmlAttributes,{type:"button",id:c.id,class:w(c),onClick:()=>this.buttonClick(c)}),(0,o.h)("span",{class:"action-sheet-button-inner"},c.icon&&(0,o.h)("ion-icon",{icon:c.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),c.text),"md"===a&&(0,o.h)("ion-ripple-effect",null)))),u&&(0,o.h)("div",{class:"action-sheet-group action-sheet-group-cancel"},(0,o.h)("button",Object.assign({},u.htmlAttributes,{type:"button",class:w(u),onClick:()=>this.buttonClick(u)}),(0,o.h)("span",{class:"action-sheet-button-inner"},u.icon&&(0,o.h)("ion-icon",{icon:u.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),u.text),"md"===a&&(0,o.h)("ion-ripple-effect",null))))),(0,o.h)("div",{tabindex:"0"}))}get el(){return(0,o.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},w=t=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${t.role}`]:void 0!==t.role},(0,g.g)(t.cssClass));_.style={ios:'.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',md:'.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}'}},4459:(E,p,r)=>{r.d(p,{c:()=>f,g:()=>k,h:()=>o,o:()=>g});var b=r(5861);const o=(s,n)=>null!==n.closest(s),f=(s,n)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},n):n,k=s=>{const n={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(s).forEach(l=>n[l]=!0),n},d=/^[a-z][a-z0-9+\-.]*:/,g=function(){var s=(0,b.Z)(function*(n,l,x,y){if(null!=n&&"#"!==n[0]&&!d.test(n)){const m=document.querySelector("ion-router");if(m)return l?.preventDefault(),m.push(n,x,y)}return!1});return function(l,x,y,m){return s.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/9882.e3658b6c6b8ad9ea.js b/9882.e3658b6c6b8ad9ea.js deleted file mode 100644 index 2983db2e..00000000 --- a/9882.e3658b6c6b8ad9ea.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9882],{9882:(E,p,r)=>{r.r(p),r.d(p,{ion_action_sheet:()=>_});var b=r(5861),o=r(5349),f=r(9629),v=r(839),k=r(3830),d=r(7612),g=r(3567),s=r(3882),n=r(6410);r(967),r(4874),r(6225),r(9203),r(619);const D=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,a])},A=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,a])},O=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity",.01,"var(--backdrop-opacity)").beforeStyles({"pointer-events":"none"}).afterClearStyles(["pointer-events"]),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(100%)","translateY(0%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(400).addAnimation([i,a])},P=t=>{const e=(0,n.c)(),i=(0,n.c)(),a=(0,n.c)();return i.addElement(t.querySelector("ion-backdrop")).fromTo("opacity","var(--backdrop-opacity)",0),a.addElement(t.querySelector(".action-sheet-wrapper")).fromTo("transform","translateY(0%)","translateY(100%)"),e.addElement(t).easing("cubic-bezier(.36,.66,.04,1)").duration(450).addAnimation([i,a])},_=class{constructor(t){(0,o.r)(this,t),this.didPresent=(0,o.d)(this,"ionActionSheetDidPresent",7),this.willPresent=(0,o.d)(this,"ionActionSheetWillPresent",7),this.willDismiss=(0,o.d)(this,"ionActionSheetWillDismiss",7),this.didDismiss=(0,o.d)(this,"ionActionSheetDidDismiss",7),this.didPresentShorthand=(0,o.d)(this,"didPresent",7),this.willPresentShorthand=(0,o.d)(this,"willPresent",7),this.willDismissShorthand=(0,o.d)(this,"willDismiss",7),this.didDismissShorthand=(0,o.d)(this,"didDismiss",7),this.delegateController=(0,d.d)(this),this.lockController=(0,k.c)(),this.triggerController=(0,d.e)(),this.presented=!1,this.onBackdropTap=()=>{this.dismiss(void 0,d.B)},this.dispatchCancelHandler=e=>{if((0,d.i)(e.detail.role)){const a=this.getButtons().find(h=>"cancel"===h.role);this.callButtonHandler(a)}},this.overlayIndex=void 0,this.delegate=void 0,this.hasController=!1,this.keyboardClose=!0,this.enterAnimation=void 0,this.leaveAnimation=void 0,this.buttons=[],this.cssClass=void 0,this.backdropDismiss=!0,this.header=void 0,this.subHeader=void 0,this.translucent=!1,this.animated=!0,this.htmlAttributes=void 0,this.isOpen=!1,this.trigger=void 0}onIsOpenChange(t,e){!0===t&&!1===e?this.present():!1===t&&!0===e&&this.dismiss()}triggerChanged(){const{trigger:t,el:e,triggerController:i}=this;t&&i.addClickListener(e,t)}present(){var t=this;return(0,b.Z)(function*(){const e=yield t.lockController.lock();yield t.delegateController.attachViewToDom(),yield(0,d.f)(t,"actionSheetEnter",D,O),e()})()}dismiss(t,e){var i=this;return(0,b.Z)(function*(){const a=yield i.lockController.lock(),h=yield(0,d.g)(i,t,e,"actionSheetLeave",A,P);return h&&i.delegateController.removeViewFromDom(),a(),h})()}onDidDismiss(){return(0,d.h)(this.el,"ionActionSheetDidDismiss")}onWillDismiss(){return(0,d.h)(this.el,"ionActionSheetWillDismiss")}buttonClick(t){var e=this;return(0,b.Z)(function*(){const i=t.role;return(0,d.i)(i)?e.dismiss(t.data,i):(yield e.callButtonHandler(t))?e.dismiss(t.data,t.role):Promise.resolve()})()}callButtonHandler(t){return(0,b.Z)(function*(){return!(t&&!1===(yield(0,d.s)(t.handler)))})()}getButtons(){return this.buttons.map(t=>"string"==typeof t?{text:t}:t)}connectedCallback(){(0,d.j)(this.el),this.triggerChanged()}disconnectedCallback(){this.gesture&&(this.gesture.destroy(),this.gesture=void 0),this.triggerController.removeClickListener()}componentWillLoad(){(0,d.k)(this.el)}componentDidLoad(){const{groupEl:t,wrapperEl:e}=this;!this.gesture&&"ios"===(0,s.b)(this)&&e&&t&&(0,o.e)(()=>{t.scrollHeight>t.clientHeight||(this.gesture=(0,f.c)(e,a=>a.classList.contains("action-sheet-button")),this.gesture.enable(!0))}),!0===this.isOpen&&(0,v.r)(()=>this.present())}render(){const{header:t,htmlAttributes:e,overlayIndex:i}=this,a=(0,s.b)(this),h=this.getButtons(),u=h.find(c=>"cancel"===c.role),T=h.filter(c=>"cancel"!==c.role),C=`action-sheet-${i}-header`;return(0,o.h)(o.H,Object.assign({role:"dialog","aria-modal":"true","aria-labelledby":void 0!==t?C:null,tabindex:"-1"},e,{style:{zIndex:`${2e4+this.overlayIndex}`},class:Object.assign(Object.assign({[a]:!0},(0,g.g)(this.cssClass)),{"overlay-hidden":!0,"action-sheet-translucent":this.translucent}),onIonActionSheetWillDismiss:this.dispatchCancelHandler,onIonBackdropTap:this.onBackdropTap}),(0,o.h)("ion-backdrop",{tappable:this.backdropDismiss}),(0,o.h)("div",{tabindex:"0"}),(0,o.h)("div",{class:"action-sheet-wrapper ion-overlay-wrapper",ref:c=>this.wrapperEl=c},(0,o.h)("div",{class:"action-sheet-container"},(0,o.h)("div",{class:"action-sheet-group",ref:c=>this.groupEl=c},void 0!==t&&(0,o.h)("div",{id:C,class:{"action-sheet-title":!0,"action-sheet-has-sub-title":void 0!==this.subHeader}},t,this.subHeader&&(0,o.h)("div",{class:"action-sheet-sub-title"},this.subHeader)),T.map(c=>(0,o.h)("button",Object.assign({},c.htmlAttributes,{type:"button",id:c.id,class:w(c),onClick:()=>this.buttonClick(c)}),(0,o.h)("span",{class:"action-sheet-button-inner"},c.icon&&(0,o.h)("ion-icon",{icon:c.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),c.text),"md"===a&&(0,o.h)("ion-ripple-effect",null)))),u&&(0,o.h)("div",{class:"action-sheet-group action-sheet-group-cancel"},(0,o.h)("button",Object.assign({},u.htmlAttributes,{type:"button",class:w(u),onClick:()=>this.buttonClick(u)}),(0,o.h)("span",{class:"action-sheet-button-inner"},u.icon&&(0,o.h)("ion-icon",{icon:u.icon,"aria-hidden":"true",lazy:!1,class:"action-sheet-icon"}),u.text),"md"===a&&(0,o.h)("ion-ripple-effect",null))))),(0,o.h)("div",{tabindex:"0"}))}get el(){return(0,o.f)(this)}static get watchers(){return{isOpen:["onIsOpenChange"],trigger:["triggerChanged"]}}},w=t=>Object.assign({"action-sheet-button":!0,"ion-activatable":!0,"ion-focusable":!0,[`action-sheet-${t.role}`]:void 0!==t.role},(0,g.g)(t.cssClass));_.style={ios:'.sc-ion-action-sheet-ios-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-ios-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-ios{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-ios{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-ios{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-ios::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-ios{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-ios::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-ios{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-ios::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-ios::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-ios:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-ios:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-ios-h{--background:var(--ion-overlay-background-color, var(--ion-color-step-100, #f9f9f9));--backdrop-opacity:var(--ion-backdrop-opacity, 0.4);--button-background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent;--button-background-activated:var(--ion-text-color, #000);--button-background-activated-opacity:.08;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-background-selected:var(--ion-color-step-150, var(--ion-background-color, #fff));--button-background-selected-opacity:1;--button-color:var(--ion-color-primary, #3880ff);--color:var(--ion-color-step-400, #999999);text-align:center}.action-sheet-wrapper.sc-ion-action-sheet-ios{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:var(--ion-safe-area-bottom, 0)}.action-sheet-container.sc-ion-action-sheet-ios{-webkit-padding-start:8px;padding-inline-start:8px;-webkit-padding-end:8px;padding-inline-end:8px;padding-top:0;padding-bottom:0}.action-sheet-group.sc-ion-action-sheet-ios{border-radius:13px;margin-bottom:8px}.action-sheet-group.sc-ion-action-sheet-ios:first-child{margin-top:10px}.action-sheet-group.sc-ion-action-sheet-ios:last-child{margin-bottom:10px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-group.sc-ion-action-sheet-ios{background-color:transparent;-webkit-backdrop-filter:saturate(280%) blur(20px);backdrop-filter:saturate(280%) blur(20px)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-title.sc-ion-action-sheet-ios,.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.sc-ion-action-sheet-ios{background-color:transparent;background-image:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)), to(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8))), -webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4)), color-stop(50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8)));background-image:linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 100%), linear-gradient(0deg, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4), rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.4) 50%, rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.8) 50%);background-repeat:no-repeat;background-position:top, bottom;background-size:100% calc(100% - 1px), 100% 1px;-webkit-backdrop-filter:saturate(120%);backdrop-filter:saturate(120%)}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-button.ion-activated.sc-ion-action-sheet-ios{background-color:rgba(var(--ion-background-color-rgb, 255, 255, 255), 0.7);background-image:none}.action-sheet-translucent.sc-ion-action-sheet-ios-h .action-sheet-cancel.sc-ion-action-sheet-ios{background:var(--button-background-selected)}}.action-sheet-title.sc-ion-action-sheet-ios{background:-webkit-gradient(linear, left bottom, left top, from(rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08)), color-stop(50%, transparent)) bottom/100% 1px no-repeat transparent;background:linear-gradient(0deg, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08), rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.08) 50%, transparent 50%) bottom/100% 1px no-repeat transparent}.action-sheet-title.sc-ion-action-sheet-ios{-webkit-padding-start:10px;padding-inline-start:10px;-webkit-padding-end:10px;padding-inline-end:10px;padding-top:14px;padding-bottom:13px;color:var(--color, var(--ion-color-step-400, #999999));font-size:max(13px, 0.8125rem);font-weight:400;text-align:center}.action-sheet-title.action-sheet-has-sub-title.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-sub-title.sc-ion-action-sheet-ios{padding-left:0;padding-right:0;padding-top:6px;padding-bottom:0;font-size:max(13px, 0.8125rem);font-weight:400}.action-sheet-button.sc-ion-action-sheet-ios{-webkit-padding-start:14px;padding-inline-start:14px;-webkit-padding-end:14px;padding-inline-end:14px;padding-top:14px;padding-bottom:14px;min-height:56px;font-size:max(20px, 1.25rem);contain:content}.action-sheet-button.sc-ion-action-sheet-ios .action-sheet-icon.sc-ion-action-sheet-ios{-webkit-margin-end:0.3em;margin-inline-end:0.3em;font-size:max(28px, 1.75rem);pointer-events:none}.action-sheet-button.sc-ion-action-sheet-ios:last-child{background-image:none}.action-sheet-selected.sc-ion-action-sheet-ios{font-weight:bold}.action-sheet-cancel.sc-ion-action-sheet-ios{font-weight:600}.action-sheet-cancel.sc-ion-action-sheet-ios::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-destructive.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-activated.sc-ion-action-sheet-ios,.action-sheet-destructive.ion-focused.sc-ion-action-sheet-ios{color:var(--ion-color-danger, #eb445a)}@media (any-hover: hover){.action-sheet-destructive.sc-ion-action-sheet-ios:hover{color:var(--ion-color-danger, #eb445a)}}',md:'.sc-ion-action-sheet-md-h{--color:initial;--button-color-activated:var(--button-color);--button-color-focused:var(--button-color);--button-color-hover:var(--button-color);--button-color-selected:var(--button-color);--min-width:auto;--width:100%;--max-width:500px;--min-height:auto;--height:auto;--max-height:calc(100% - (var(--ion-safe-area-top) + var(--ion-safe-area-bottom)));-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;left:0;right:0;top:0;bottom:0;display:block;position:fixed;outline:none;font-family:var(--ion-font-family, inherit);-ms-touch-action:none;touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1001}.overlay-hidden.sc-ion-action-sheet-md-h{display:none}.action-sheet-wrapper.sc-ion-action-sheet-md{left:0;right:0;bottom:0;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);display:block;position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);height:var(--height);min-height:var(--min-height);max-height:var(--max-height);z-index:10;pointer-events:none}.action-sheet-button.sc-ion-action-sheet-md{display:block;position:relative;width:100%;border:0;outline:none;background:var(--button-background);color:var(--button-color);font-family:inherit;overflow:hidden}.action-sheet-button-inner.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;position:relative;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;pointer-events:none;width:100%;height:100%;z-index:1}.action-sheet-container.sc-ion-action-sheet-md{display:-ms-flexbox;display:flex;-ms-flex-flow:column;flex-flow:column;-ms-flex-pack:end;justify-content:flex-end;height:100%;max-height:calc(100vh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)));max-height:calc(100dvh - (var(--ion-safe-area-top, 0) + var(--ion-safe-area-bottom, 0)))}.action-sheet-group.sc-ion-action-sheet-md{-ms-flex-negative:2;flex-shrink:2;overscroll-behavior-y:contain;overflow-y:auto;-webkit-overflow-scrolling:touch;pointer-events:all;background:var(--background)}@media (any-pointer: coarse){.action-sheet-group.sc-ion-action-sheet-md::-webkit-scrollbar{display:none}}.action-sheet-group-cancel.sc-ion-action-sheet-md{-ms-flex-negative:0;flex-shrink:0;overflow:hidden}.action-sheet-button.sc-ion-action-sheet-md::after{left:0;right:0;top:0;bottom:0;position:absolute;content:"";opacity:0}.action-sheet-selected.sc-ion-action-sheet-md{color:var(--button-color-selected)}.action-sheet-selected.sc-ion-action-sheet-md::after{background:var(--button-background-selected);opacity:var(--button-background-selected-opacity)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md{color:var(--button-color-activated)}.action-sheet-button.ion-activated.sc-ion-action-sheet-md::after{background:var(--button-background-activated);opacity:var(--button-background-activated-opacity)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md{color:var(--button-color-focused)}.action-sheet-button.ion-focused.sc-ion-action-sheet-md::after{background:var(--button-background-focused);opacity:var(--button-background-focused-opacity)}@media (any-hover: hover){.action-sheet-button.sc-ion-action-sheet-md:hover{color:var(--button-color-hover)}.action-sheet-button.sc-ion-action-sheet-md:hover::after{background:var(--button-background-hover);opacity:var(--button-background-hover-opacity)}}.sc-ion-action-sheet-md-h{--background:var(--ion-overlay-background-color, var(--ion-background-color, #fff));--backdrop-opacity:var(--ion-backdrop-opacity, 0.32);--button-background:transparent;--button-background-selected:currentColor;--button-background-selected-opacity:0;--button-background-activated:transparent;--button-background-activated-opacity:0;--button-background-hover:currentColor;--button-background-hover-opacity:.04;--button-background-focused:currentColor;--button-background-focused-opacity:.12;--button-color:var(--ion-color-step-850, #262626);--color:rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54)}.action-sheet-wrapper.sc-ion-action-sheet-md{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-margin-end:auto;margin-inline-end:auto;margin-top:var(--ion-safe-area-top, 0);margin-bottom:0}.action-sheet-title.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:20px;padding-bottom:17px;min-height:60px;color:var(--color, rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.54));font-size:1rem;text-align:start}.action-sheet-sub-title.sc-ion-action-sheet-md{padding-left:0;padding-right:0;padding-top:16px;padding-bottom:0;font-size:0.875rem}.action-sheet-group.sc-ion-action-sheet-md:first-child{padding-top:0}.action-sheet-group.sc-ion-action-sheet-md:last-child{padding-bottom:var(--ion-safe-area-bottom)}.action-sheet-button.sc-ion-action-sheet-md{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:12px;padding-bottom:12px;position:relative;min-height:52px;font-size:1rem;text-align:start;contain:content;overflow:hidden}.action-sheet-icon.sc-ion-action-sheet-md{-webkit-margin-start:0;margin-inline-start:0;-webkit-margin-end:32px;margin-inline-end:32px;margin-top:0;margin-bottom:0;color:var(--color);font-size:1.5rem}.action-sheet-button-inner.sc-ion-action-sheet-md{-ms-flex-pack:start;justify-content:flex-start}.action-sheet-selected.sc-ion-action-sheet-md{font-weight:bold}'}},3567:(E,p,r)=>{r.d(p,{c:()=>f,g:()=>k,h:()=>o,o:()=>g});var b=r(5861);const o=(s,n)=>null!==n.closest(s),f=(s,n)=>"string"==typeof s&&s.length>0?Object.assign({"ion-color":!0,[`ion-color-${s}`]:!0},n):n,k=s=>{const n={};return(s=>void 0!==s?(Array.isArray(s)?s:s.split(" ")).filter(l=>null!=l).map(l=>l.trim()).filter(l=>""!==l):[])(s).forEach(l=>n[l]=!0),n},d=/^[a-z][a-z0-9+\-.]*:/,g=function(){var s=(0,b.Z)(function*(n,l,x,y){if(null!=n&&"#"!==n[0]&&!d.test(n)){const m=document.querySelector("ion-router");if(m)return l?.preventDefault(),m.push(n,x,y)}return!1});return function(l,x,y,m){return s.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/9992.3d010baba94dc440.js b/9992.3d010baba94dc440.js new file mode 100644 index 00000000..9138e1f2 --- /dev/null +++ b/9992.3d010baba94dc440.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9992],{9992:(w,b,c)=>{c.r(b),c.d(b,{ion_picker_column_internal:()=>g});var _=c(5861),l=c(9942),u=c(512),v=c(9951),I=c(5551),k=c(4459);c(1836),c(1848);const g=class{constructor(n){(0,l.r)(this,n),this.ionChange=(0,l.d)(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.centerPickerItemInView=(e,t=!0,s=!0)=>{const{el:i,isColumnVisible:h}=this;if(h){const a=e.offsetTop-3*e.clientHeight+e.clientHeight/2;i.scrollTop!==a&&(this.canExitInputMode=s,i.scroll({top:a,left:0,behavior:t?"smooth":void 0}))}},this.setPickerItemActiveState=(e,t)=>{t?(e.classList.add(m),e.part.add(y)):(e.classList.remove(m),e.part.remove(y))},this.inputModeChange=e=>{if(!this.numericInput)return;const{useInputMode:t,inputModeColumn:s}=e.detail;this.setInputModeActive(!(!t||void 0!==s&&s!==this.el))},this.setInputModeActive=e=>{this.isScrolling?this.scrollEndCallback=()=>{this.isActive=e}:this.isActive=e},this.initializeScrollListener=()=>{const e=(0,I.a)("ios"),{el:t}=this;let s,i=this.activeItem;const h=()=>{(0,u.r)(()=>{s&&(clearTimeout(s),s=void 0),this.isScrolling||(e&&(0,v.a)(),this.isScrolling=!0);const a=t.getBoundingClientRect(),p=t.shadowRoot.elementFromPoint(a.x+a.width/2,a.y+a.height/2);null!==i&&this.setPickerItemActiveState(i,!1),null!==p&&!p.disabled&&(p!==i&&(e&&(0,v.b)(),this.canExitInputMode&&this.exitInputMode()),i=p,this.setPickerItemActiveState(p,!0),s=setTimeout(()=>{this.isScrolling=!1,e&&(0,v.h)();const{scrollEndCallback:A}=this;A&&(A(),this.scrollEndCallback=void 0),this.canExitInputMode=!0;const M=p.getAttribute("data-index");if(null===M)return;const L=parseInt(M,10),P=this.items[L];P.value!==this.value&&this.setValue(P.value)},250))})};(0,u.r)(()=>{t.addEventListener("scroll",h),this.destroyScrollListener=()=>{t.removeEventListener("scroll",h)}})},this.exitInputMode=()=>{const{parentEl:e}=this;null!=e&&(e.exitInputMode(),this.el.classList.remove("picker-column-active"))},this.isActive=!1,this.disabled=!1,this.items=[],this.value=void 0,this.color="primary",this.numericInput=!1}valueChange(){this.isColumnVisible&&this.scrollActiveItemIntoView()}componentWillLoad(){new IntersectionObserver(t=>{if(t[0].isIntersecting){const{activeItem:i,el:h}=this;this.isColumnVisible=!0;const a=(0,u.g)(h).querySelector(`.${m}`);a&&this.setPickerItemActiveState(a,!1),this.scrollActiveItemIntoView(),i&&this.setPickerItemActiveState(i,!0),this.initializeScrollListener()}else this.isColumnVisible=!1,this.destroyScrollListener&&(this.destroyScrollListener(),this.destroyScrollListener=void 0)},{threshold:.001}).observe(this.el);const e=this.parentEl=this.el.closest("ion-picker-internal");null!==e&&e.addEventListener("ionInputModeChange",t=>this.inputModeChange(t))}componentDidRender(){var n;const{activeItem:e,items:t,isColumnVisible:s,value:i}=this;s&&(e?this.scrollActiveItemIntoView():(null===(n=t[0])||void 0===n?void 0:n.value)!==i&&this.setValue(t[0].value))}scrollActiveItemIntoView(){var n=this;return(0,_.Z)(function*(){const e=n.activeItem;e&&n.centerPickerItemInView(e,!1,!1)})()}setValue(n){var e=this;return(0,_.Z)(function*(){const{items:t}=e;e.value=n;const s=t.find(i=>i.value===n&&!0!==i.disabled);s&&e.ionChange.emit(s)})()}get activeItem(){const n=`.picker-item[data-value="${this.value}"]${this.disabled?"":":not([disabled])"}`;return(0,u.g)(this.el).querySelector(n)}render(){const{items:n,color:e,disabled:t,isActive:s,numericInput:i}=this,h=(0,I.b)(this);return(0,l.h)(l.H,{exportparts:`${f}, ${y}`,disabled:t,tabindex:t?null:0,class:(0,k.c)(e,{[h]:!0,"picker-column-active":s,"picker-column-numeric-input":i})},(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),n.map((a,E)=>(0,l.h)("button",{tabindex:"-1",class:{"picker-item":!0},"data-value":a.value,"data-index":E,onClick:p=>{this.centerPickerItemInView(p.target,!0)},disabled:t||a.disabled||!1,part:f},a.text)),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"))}get el(){return(0,l.f)(this)}static get watchers(){return{value:["valueChange"]}}},m="picker-item-active",f="wheel-item",y="active";g.style={ios:":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item[disabled]{cursor:default}:host .picker-item-empty,:host(:not([disabled])) .picker-item[disabled]{scroll-snap-align:none}:host([disabled]){overflow-y:hidden}:host .picker-item[disabled]{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}",md:":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item[disabled]{cursor:default}:host .picker-item-empty,:host(:not([disabled])) .picker-item[disabled]{scroll-snap-align:none}:host([disabled]){overflow-y:hidden}:host .picker-item[disabled]{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}"}},4459:(w,b,c)=>{c.d(b,{c:()=>u,g:()=>I,h:()=>l,o:()=>C});var _=c(5861);const l=(r,o)=>null!==o.closest(r),u=(r,o)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},o):o,I=r=>{const o={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(d=>null!=d).map(d=>d.trim()).filter(d=>""!==d):[])(r).forEach(d=>o[d]=!0),o},k=/^[a-z][a-z0-9+\-.]*:/,C=function(){var r=(0,_.Z)(function*(o,d,g,m){if(null!=o&&"#"!==o[0]&&!k.test(o)){const f=document.querySelector("ion-router");if(f)return d?.preventDefault(),f.push(o,g,m)}return!1});return function(d,g,m,f){return r.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/9992.afc949ac608758b1.js b/9992.afc949ac608758b1.js deleted file mode 100644 index f6607be8..00000000 --- a/9992.afc949ac608758b1.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9992],{9992:(P,_,a)=>{a.r(_),a.d(_,{ion_picker_column_internal:()=>g});var b=a(5861),l=a(5349),h=a(839),f=a(967),k=a(3882),I=a(3567);a(4874),a(6225);const g=class{constructor(o){(0,l.r)(this,o),this.ionChange=(0,l.d)(this,"ionChange",7),this.isScrolling=!1,this.isColumnVisible=!1,this.canExitInputMode=!0,this.centerPickerItemInView=(e,t=!0,n=!0)=>{const{el:i,isColumnVisible:p}=this;if(p){const d=e.offsetTop-3*e.clientHeight+e.clientHeight/2;i.scrollTop!==d&&(this.canExitInputMode=n,i.scroll({top:d,left:0,behavior:t?"smooth":void 0}))}},this.setPickerItemActiveState=(e,t)=>{t?(e.classList.add(u),e.part.add(y)):(e.classList.remove(u),e.part.remove(y))},this.inputModeChange=e=>{if(!this.numericInput)return;const{useInputMode:t,inputModeColumn:n}=e.detail;this.setInputModeActive(!(!t||void 0!==n&&n!==this.el))},this.setInputModeActive=e=>{this.isScrolling?this.scrollEndCallback=()=>{this.isActive=e}:this.isActive=e},this.initializeScrollListener=()=>{const e=(0,k.a)("ios"),{el:t}=this;let n,i=this.activeItem;const p=()=>{(0,h.r)(()=>{n&&(clearTimeout(n),n=void 0),this.isScrolling||(e&&(0,f.a)(),this.isScrolling=!0);const d=t.getBoundingClientRect(),v=t.shadowRoot.elementFromPoint(d.x+d.width/2,d.y+d.height/2);null!==i&&this.setPickerItemActiveState(i,!1),null!==v&&!v.disabled&&(v!==i&&(e&&(0,f.b)(),this.canExitInputMode&&this.exitInputMode()),i=v,this.setPickerItemActiveState(v,!0),n=setTimeout(()=>{this.isScrolling=!1,e&&(0,f.h)();const{scrollEndCallback:C}=this;C&&(C(),this.scrollEndCallback=void 0),this.canExitInputMode=!0;const A=v.getAttribute("data-index");if(null===A)return;const L=parseInt(A,10),M=this.items[L];M.value!==this.value&&this.setValue(M.value)},250))})};(0,h.r)(()=>{t.addEventListener("scroll",p),this.destroyScrollListener=()=>{t.removeEventListener("scroll",p)}})},this.exitInputMode=()=>{const{parentEl:e}=this;null!=e&&(e.exitInputMode(),this.el.classList.remove("picker-column-active"))},this.isActive=!1,this.items=[],this.value=void 0,this.color="primary",this.numericInput=!1}valueChange(){this.isColumnVisible&&this.scrollActiveItemIntoView()}componentWillLoad(){new IntersectionObserver(t=>{if(t[0].isIntersecting){const{activeItem:i,el:p}=this;this.isColumnVisible=!0;const d=(0,h.g)(p).querySelector(`.${u}`);d&&this.setPickerItemActiveState(d,!1),this.scrollActiveItemIntoView(),i&&this.setPickerItemActiveState(i,!0),this.initializeScrollListener()}else this.isColumnVisible=!1,this.destroyScrollListener&&(this.destroyScrollListener(),this.destroyScrollListener=void 0)},{threshold:.001}).observe(this.el);const e=this.parentEl=this.el.closest("ion-picker-internal");null!==e&&e.addEventListener("ionInputModeChange",t=>this.inputModeChange(t))}componentDidRender(){var o;const{activeItem:e,items:t,isColumnVisible:n,value:i}=this;n&&(e?this.scrollActiveItemIntoView():(null===(o=t[0])||void 0===o?void 0:o.value)!==i&&this.setValue(t[0].value))}scrollActiveItemIntoView(){var o=this;return(0,b.Z)(function*(){const e=o.activeItem;e&&o.centerPickerItemInView(e,!1,!1)})()}setValue(o){var e=this;return(0,b.Z)(function*(){const{items:t}=e;e.value=o;const n=t.find(i=>i.value===o&&!0!==i.disabled);n&&e.ionChange.emit(n)})()}get activeItem(){return(0,h.g)(this.el).querySelector(`.picker-item[data-value="${this.value}"]:not([disabled])`)}render(){const{items:o,color:e,isActive:t,numericInput:n}=this,i=(0,k.b)(this);return(0,l.h)(l.H,{exportparts:`${m}, ${y}`,tabindex:0,class:(0,I.c)(e,{[i]:!0,"picker-column-active":t,"picker-column-numeric-input":n})},(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),o.map((p,d)=>(0,l.h)("button",{tabindex:"-1",class:{"picker-item":!0,"picker-item-disabled":p.disabled||!1},"data-value":p.value,"data-index":d,onClick:E=>{this.centerPickerItemInView(E.target,!0)},disabled:p.disabled,part:m},p.text)),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"),(0,l.h)("div",{class:"picker-item picker-item-empty","aria-hidden":"true"},"\xa0"))}get el(){return(0,l.f)(this)}static get watchers(){return{value:["valueChange"]}}},u="picker-item-active",m="wheel-item",y="active";g.style={ios:":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}",md:":host{-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px;padding-top:0px;padding-bottom:0px;height:200px;outline:none;font-size:22px;-webkit-scroll-snap-type:y mandatory;-ms-scroll-snap-type:y mandatory;scroll-snap-type:y mandatory;overflow-x:hidden;overflow-y:scroll;scrollbar-width:none;text-align:center}:host::-webkit-scrollbar{display:none}:host .picker-item{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;display:block;width:100%;height:34px;border:0px;outline:none;background:transparent;color:inherit;font-family:var(--ion-font-family, inherit);font-size:inherit;line-height:34px;text-align:inherit;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;overflow:hidden;scroll-snap-align:center}:host .picker-item-empty,:host .picker-item.picker-item-disabled{scroll-snap-align:none;cursor:default}:host .picker-item.picker-item-disabled{opacity:0.4}:host(.picker-column-active) .picker-item.picker-item-active{color:var(--ion-color-base)}@media (any-hover: hover){:host(:focus){outline:none;background:rgba(var(--ion-color-base-rgb), 0.2)}}:host .picker-item-active{color:var(--ion-color-base)}"}},3567:(P,_,a)=>{a.d(_,{c:()=>h,g:()=>k,h:()=>l,o:()=>x});var b=a(5861);const l=(r,s)=>null!==s.closest(r),h=(r,s)=>"string"==typeof r&&r.length>0?Object.assign({"ion-color":!0,[`ion-color-${r}`]:!0},s):s,k=r=>{const s={};return(r=>void 0!==r?(Array.isArray(r)?r:r.split(" ")).filter(c=>null!=c).map(c=>c.trim()).filter(c=>""!==c):[])(r).forEach(c=>s[c]=!0),s},I=/^[a-z][a-z0-9+\-.]*:/,x=function(){var r=(0,b.Z)(function*(s,c,g,u){if(null!=s&&"#"!==s[0]&&!I.test(s)){const m=document.querySelector("ion-router");if(m)return c?.preventDefault(),m.push(s,g,u)}return!1});return function(c,g,u,m){return r.apply(this,arguments)}}()}}]); \ No newline at end of file diff --git a/common.557d5670fd4f041f.js b/common.557d5670fd4f041f.js new file mode 100644 index 00000000..9e1f6098 --- /dev/null +++ b/common.557d5670fd4f041f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8592],{7817:(M,_,a)=>{a.d(_,{c:()=>r});var g=a(9942),l=a(9951),c=a(6535);const r=(n,s)=>{let e,t;const u=(i,w,p)=>{if(typeof document>"u")return;const E=document.elementFromPoint(i,w);E&&s(E)?E!==e&&(o(),d(E,p)):o()},d=(i,w)=>{e=i,t||(t=e);const p=e;(0,g.w)(()=>p.classList.add("ion-activated")),w()},o=(i=!1)=>{if(!e)return;const w=e;(0,g.w)(()=>w.classList.remove("ion-activated")),i&&t!==e&&e.click(),e=void 0};return(0,c.createGesture)({el:n,gestureName:"buttonActiveDrag",threshold:0,onStart:i=>u(i.currentX,i.currentY,l.a),onMove:i=>u(i.currentX,i.currentY,l.b),onEnd:()=>{o(!0),(0,l.h)(),t=void 0}})}},1836:(M,_,a)=>{a.d(_,{g:()=>l});var g=a(1848);const l=()=>{if(void 0!==g.w)return g.w.Capacitor}},983:(M,_,a)=>{a.d(_,{c:()=>g,i:()=>l});const g=(c,r,n)=>"function"==typeof n?n(c,r):"string"==typeof n?c[n]===r[n]:Array.isArray(r)?r.includes(c):c===r,l=(c,r,n)=>void 0!==c&&(Array.isArray(c)?c.some(s=>g(s,r,n)):g(c,r,n))},4510:(M,_,a)=>{a.d(_,{g:()=>g});const g=(s,e,t,u,d)=>c(s[1],e[1],t[1],u[1],d).map(o=>l(s[0],e[0],t[0],u[0],o)),l=(s,e,t,u,d)=>d*(3*e*Math.pow(d-1,2)+d*(-3*t*d+3*t+u*d))-s*Math.pow(d-1,3),c=(s,e,t,u,d)=>n((u-=d)-3*(t-=d)+3*(e-=d)-(s-=d),3*t-6*e+3*s,3*e-3*s,s).filter(i=>i>=0&&i<=1),n=(s,e,t,u)=>{if(0===s)return((s,e,t)=>{const u=e*e-4*s*t;return u<0?[]:[(-e+Math.sqrt(u))/(2*s),(-e-Math.sqrt(u))/(2*s)]})(e,t,u);const d=(3*(t/=s)-(e/=s)*e)/3,o=(2*e*e*e-9*e*t+27*(u/=s))/27;if(0===d)return[Math.pow(-o,1/3)];if(0===o)return[Math.sqrt(-d),-Math.sqrt(-d)];const i=Math.pow(o/2,2)+Math.pow(d/3,3);if(0===i)return[Math.pow(o/2,.5)-e/3];if(i>0)return[Math.pow(-o/2+Math.sqrt(i),1/3)-Math.pow(o/2+Math.sqrt(i),1/3)-e/3];const w=Math.sqrt(Math.pow(-d/3,3)),p=Math.acos(-o/(2*Math.sqrt(Math.pow(-d/3,3)))),E=2*Math.pow(w,1/3);return[E*Math.cos(p/3)-e/3,E*Math.cos((p+2*Math.PI)/3)-e/3,E*Math.cos((p+4*Math.PI)/3)-e/3]}},4162:(M,_,a)=>{a.d(_,{i:()=>g});const g=l=>l&&""!==l.dir?"rtl"===l.dir.toLowerCase():"rtl"===document?.dir.toLowerCase()},8434:(M,_,a)=>{a.r(_),a.d(_,{startFocusVisible:()=>r});const g="ion-focused",c=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],r=n=>{let s=[],e=!0;const t=n?n.shadowRoot:document,u=n||document.body,d=y=>{s.forEach(h=>h.classList.remove(g)),y.forEach(h=>h.classList.add(g)),s=y},o=()=>{e=!1,d([])},i=y=>{e=c.includes(y.key),e||d([])},w=y=>{if(e&&void 0!==y.composedPath){const h=y.composedPath().filter(v=>!!v.classList&&v.classList.contains("ion-focusable"));d(h)}},p=()=>{t.activeElement===u&&d([])};return t.addEventListener("keydown",i),t.addEventListener("focusin",w),t.addEventListener("focusout",p),t.addEventListener("touchstart",o,{passive:!0}),t.addEventListener("mousedown",o),{destroy:()=>{t.removeEventListener("keydown",i),t.removeEventListener("focusin",w),t.removeEventListener("focusout",p),t.removeEventListener("touchstart",o),t.removeEventListener("mousedown",o)},setFocus:d}}},9749:(M,_,a)=>{a.d(_,{c:()=>l});var g=a(512);const l=s=>{const e=s;let t;return{hasLegacyControl:()=>{if(void 0===t){const d=void 0!==e.label||c(e),o=e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")&&null===e.shadowRoot,i=(0,g.h)(e);t=!0===e.legacy||!d&&!o&&null!==i}return t}}},c=s=>!!(r.includes(s.tagName)&&null!==s.querySelector('[slot="label"]')||n.includes(s.tagName)&&""!==s.textContent),r=["ION-INPUT","ION-TEXTAREA","ION-SELECT","ION-RANGE"],n=["ION-TOGGLE","ION-CHECKBOX","ION-RADIO"]},9951:(M,_,a)=>{a.d(_,{I:()=>l,a:()=>e,b:()=>t,c:()=>s,d:()=>d,h:()=>u});var g=a(1836),l=function(o){return o.Heavy="HEAVY",o.Medium="MEDIUM",o.Light="LIGHT",o}(l||{});const r={getEngine(){const o=window.TapticEngine;if(o)return o;const i=(0,g.g)();return i?.isPluginAvailable("Haptics")?i.Plugins.Haptics:void 0},available(){if(!this.getEngine())return!1;const i=(0,g.g)();return"web"!==i?.getPlatform()||typeof navigator<"u"&&void 0!==navigator.vibrate},isCordova:()=>void 0!==window.TapticEngine,isCapacitor:()=>void 0!==(0,g.g)(),impact(o){const i=this.getEngine();if(!i)return;const w=this.isCapacitor()?o.style:o.style.toLowerCase();i.impact({style:w})},notification(o){const i=this.getEngine();if(!i)return;const w=this.isCapacitor()?o.type:o.type.toLowerCase();i.notification({type:w})},selection(){const o=this.isCapacitor()?l.Light:"light";this.impact({style:o})},selectionStart(){const o=this.getEngine();o&&(this.isCapacitor()?o.selectionStart():o.gestureSelectionStart())},selectionChanged(){const o=this.getEngine();o&&(this.isCapacitor()?o.selectionChanged():o.gestureSelectionChanged())},selectionEnd(){const o=this.getEngine();o&&(this.isCapacitor()?o.selectionEnd():o.gestureSelectionEnd())}},n=()=>r.available(),s=()=>{n()&&r.selection()},e=()=>{n()&&r.selectionStart()},t=()=>{n()&&r.selectionChanged()},u=()=>{n()&&r.selectionEnd()},d=o=>{n()&&r.impact(o)}},7946:(M,_,a)=>{a.d(_,{I:()=>s,a:()=>d,b:()=>n,c:()=>w,d:()=>E,f:()=>o,g:()=>u,i:()=>t,p:()=>p,r:()=>y,s:()=>i});var g=a(5861),l=a(512),c=a(2400);const n="ion-content",s=".ion-content-scroll-host",e=`${n}, ${s}`,t=h=>"ION-CONTENT"===h.tagName,u=function(){var h=(0,g.Z)(function*(v){return t(v)?(yield new Promise(m=>(0,l.c)(v,m)),v.getScrollElement()):v});return function(m){return h.apply(this,arguments)}}(),d=h=>h.querySelector(s)||h.querySelector(e),o=h=>h.closest(e),i=(h,v)=>t(h)?h.scrollToTop(v):Promise.resolve(h.scrollTo({top:0,left:0,behavior:v>0?"smooth":"auto"})),w=(h,v,m,O)=>t(h)?h.scrollByPoint(v,m,O):Promise.resolve(h.scrollBy({top:m,left:v,behavior:O>0?"smooth":"auto"})),p=h=>(0,c.b)(h,n),E=h=>{if(t(h)){const m=h.scrollY;return h.scrollY=!1,m}return h.style.setProperty("overflow","hidden"),!0},y=(h,v)=>{t(h)?h.scrollY=v:h.style.removeProperty("overflow")}},1076:(M,_,a)=>{a.d(_,{a:()=>g,b:()=>w,c:()=>e,d:()=>p,e:()=>L,f:()=>s,g:()=>E,h:()=>c,i:()=>l,j:()=>O,k:()=>C,l:()=>t,m:()=>o,n:()=>y,o:()=>d,p:()=>n,q:()=>r,r:()=>m,s:()=>f,t:()=>i,u:()=>h,v:()=>v,w:()=>u});const g="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",r="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",e="data:image/svg+xml;utf8,",t="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",i="data:image/svg+xml;utf8,",w="data:image/svg+xml;utf8,",p="data:image/svg+xml;utf8,",E="data:image/svg+xml;utf8,",y="data:image/svg+xml;utf8,",h="data:image/svg+xml;utf8,",v="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",O="data:image/svg+xml;utf8,",C="data:image/svg+xml;utf8,",f="data:image/svg+xml;utf8,",L="data:image/svg+xml;utf8,"},5917:(M,_,a)=>{a.d(_,{c:()=>r,g:()=>n});var g=a(1848),l=a(512),c=a(2400);const r=(e,t,u)=>{let d,o;if(void 0!==g.w&&"MutationObserver"in g.w){const E=Array.isArray(t)?t:[t];d=new MutationObserver(y=>{for(const h of y)for(const v of h.addedNodes)if(v.nodeType===Node.ELEMENT_NODE&&E.includes(v.slot))return u(),void(0,l.r)(()=>i(v))}),d.observe(e,{childList:!0})}const i=E=>{var y;o&&(o.disconnect(),o=void 0),o=new MutationObserver(h=>{u();for(const v of h)for(const m of v.removedNodes)m.nodeType===Node.ELEMENT_NODE&&m.slot===t&&p()}),o.observe(null!==(y=E.parentElement)&&void 0!==y?y:E,{subtree:!0,childList:!0})},p=()=>{o&&(o.disconnect(),o=void 0)};return{destroy:()=>{d&&(d.disconnect(),d=void 0),p()}}},n=(e,t,u)=>{const d=null==e?0:e.toString().length,o=s(d,t);if(void 0===u)return o;try{return u(d,t)}catch(i){return(0,c.a)("Exception in provided `counterFormatter`.",i),o}},s=(e,t)=>`${e} / ${t}`},6591:(M,_,a)=>{a.r(_),a.d(_,{KEYBOARD_DID_CLOSE:()=>n,KEYBOARD_DID_OPEN:()=>r,copyVisualViewport:()=>C,keyboardDidClose:()=>h,keyboardDidOpen:()=>E,keyboardDidResize:()=>y,resetKeyboardAssist:()=>d,setKeyboardClose:()=>p,setKeyboardOpen:()=>w,startKeyboardAssist:()=>o,trackViewportChanges:()=>O});var g=a(3920);a(1836),a(1848);const r="ionKeyboardDidShow",n="ionKeyboardDidHide";let e={},t={},u=!1;const d=()=>{e={},t={},u=!1},o=f=>{if(g.K.getEngine())i(f);else{if(!f.visualViewport)return;t=C(f.visualViewport),f.visualViewport.onresize=()=>{O(f),E()||y(f)?w(f):h(f)&&p(f)}}},i=f=>{f.addEventListener("keyboardDidShow",L=>w(f,L)),f.addEventListener("keyboardDidHide",()=>p(f))},w=(f,L)=>{v(f,L),u=!0},p=f=>{m(f),u=!1},E=()=>!u&&e.width===t.width&&(e.height-t.height)*t.scale>150,y=f=>u&&!h(f),h=f=>u&&t.height===f.innerHeight,v=(f,L)=>{const D=new CustomEvent(r,{detail:{keyboardHeight:L?L.keyboardHeight:f.innerHeight-t.height}});f.dispatchEvent(D)},m=f=>{const L=new CustomEvent(n);f.dispatchEvent(L)},O=f=>{e=Object.assign({},t),t=C(f.visualViewport)},C=f=>({width:Math.round(f.width),height:Math.round(f.height),offsetTop:f.offsetTop,offsetLeft:f.offsetLeft,pageTop:f.pageTop,pageLeft:f.pageLeft,scale:f.scale})},3920:(M,_,a)=>{a.d(_,{K:()=>r,a:()=>c});var g=a(1836),l=function(n){return n.Unimplemented="UNIMPLEMENTED",n.Unavailable="UNAVAILABLE",n}(l||{}),c=function(n){return n.Body="body",n.Ionic="ionic",n.Native="native",n.None="none",n}(c||{});const r={getEngine(){const n=(0,g.g)();if(n?.isPluginAvailable("Keyboard"))return n.Plugins.Keyboard},getResizeMode(){const n=this.getEngine();return n?.getResizeMode?n.getResizeMode().catch(s=>{if(s.code!==l.Unimplemented)throw s}):Promise.resolve(void 0)}}},9252:(M,_,a)=>{a.d(_,{c:()=>s});var g=a(5861),l=a(1848),c=a(3920);const r=e=>void 0===l.d||e===c.a.None||void 0===e?null:l.d.querySelector("ion-app")??l.d.body,n=e=>{const t=r(e);return null===t?0:t.clientHeight},s=function(){var e=(0,g.Z)(function*(t){let u,d,o,i;const w=function(){var v=(0,g.Z)(function*(){const m=yield c.K.getResizeMode(),O=void 0===m?void 0:m.mode;u=()=>{void 0===i&&(i=n(O)),o=!0,p(o,O)},d=()=>{o=!1,p(o,O)},null==l.w||l.w.addEventListener("keyboardWillShow",u),null==l.w||l.w.addEventListener("keyboardWillHide",d)});return function(){return v.apply(this,arguments)}}(),p=(v,m)=>{t&&t(v,E(m))},E=v=>{if(0===i||i===n(v))return;const m=r(v);return null!==m?new Promise(O=>{const f=new ResizeObserver(()=>{m.clientHeight===i&&(f.disconnect(),O())});f.observe(m)}):void 0};return yield w(),{init:w,destroy:()=>{null==l.w||l.w.removeEventListener("keyboardWillShow",u),null==l.w||l.w.removeEventListener("keyboardWillHide",d),u=d=void 0},isKeyboardVisible:()=>o}});return function(u){return e.apply(this,arguments)}}()},9229:(M,_,a)=>{a.d(_,{c:()=>l});var g=a(5861);const l=()=>{let c;return{lock:function(){var n=(0,g.Z)(function*(){const s=c;let e;return c=new Promise(t=>e=t),void 0!==s&&(yield s),e});return function(){return n.apply(this,arguments)}}()}}},4793:(M,_,a)=>{a.d(_,{c:()=>c});var g=a(1848),l=a(512);const c=(r,n,s)=>{let e;const t=()=>!(void 0===n()||void 0!==r.label||null===s()),d=()=>{const i=n();if(void 0===i)return;if(!t())return void i.style.removeProperty("width");const w=s().scrollWidth;if(0===w&&null===i.offsetParent&&void 0!==g.w&&"IntersectionObserver"in g.w){if(void 0!==e)return;const p=e=new IntersectionObserver(E=>{1===E[0].intersectionRatio&&(d(),p.disconnect(),e=void 0)},{threshold:.01,root:r});p.observe(i)}else i.style.setProperty("width",.75*w+"px")};return{calculateNotchWidth:()=>{t()&&(0,l.r)(()=>{d()})},destroy:()=>{e&&(e.disconnect(),e=void 0)}}}},2217:(M,_,a)=>{a.d(_,{S:()=>l});const l={bubbles:{dur:1e3,circles:9,fn:(c,r,n)=>{const s=c*r/n-c+"ms",e=2*Math.PI*r/n;return{r:5,style:{top:32*Math.sin(e)+"%",left:32*Math.cos(e)+"%","animation-delay":s}}}},circles:{dur:1e3,circles:8,fn:(c,r,n)=>{const s=r/n,e=c*s-c+"ms",t=2*Math.PI*s;return{r:5,style:{top:32*Math.sin(t)+"%",left:32*Math.cos(t)+"%","animation-delay":e}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(c,r)=>({r:6,style:{left:32-32*r+"%","animation-delay":-110*r+"ms"}})},lines:{dur:1e3,lines:8,fn:(c,r,n)=>({y1:14,y2:26,style:{transform:`rotate(${360/n*r+(r({y1:12,y2:20,style:{transform:`rotate(${360/n*r+(r({y1:17,y2:29,style:{transform:`rotate(${30*r+(r<6?180:-180)}deg)`,"animation-delay":c*r/n-c+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(c,r,n)=>({y1:12,y2:20,style:{transform:`rotate(${30*r+(r<6?180:-180)}deg)`,"animation-delay":c*r/n-c+"ms"}})}}},3049:(M,_,a)=>{a.r(_),a.d(_,{createSwipeBackGesture:()=>n});var g=a(512),l=a(4162),c=a(6535);a(2019);const n=(s,e,t,u,d)=>{const o=s.ownerDocument.defaultView;let i=(0,l.i)(s);const p=m=>i?-m.deltaX:m.deltaX;return(0,c.createGesture)({el:s,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:m=>(i=(0,l.i)(s),(m=>{const{startX:C}=m;return i?C>=o.innerWidth-50:C<=50})(m)&&e()),onStart:t,onMove:m=>{const C=p(m)/o.innerWidth;u(C)},onEnd:m=>{const O=p(m),C=o.innerWidth,f=O/C,L=(m=>i?-m.velocityX:m.velocityX)(m),D=L>=0&&(L>.2||O>C/2),P=(D?1-f:f)*C;let T=0;if(P>5){const A=P/Math.abs(L);T=Math.min(A,540)}d(D,f<=0?.01:(0,g.l)(0,f,.9999),T)}})}},6806:(M,_,a)=>{a.d(_,{w:()=>g});const g=(r,n,s)=>{if(typeof MutationObserver>"u")return;const e=new MutationObserver(t=>{s(l(t,n))});return e.observe(r,{childList:!0,subtree:!0}),e},l=(r,n)=>{let s;return r.forEach(e=>{for(let t=0;t{if(1!==r.nodeType)return;const s=r;return(s.tagName===n.toUpperCase()?[s]:Array.from(s.querySelectorAll(n))).find(t=>t.value===s.value)}}}]); \ No newline at end of file diff --git a/common.b80dfddfac2df0b6.js b/common.b80dfddfac2df0b6.js deleted file mode 100644 index 33440497..00000000 --- a/common.b80dfddfac2df0b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8592],{9629:(O,_,i)=>{i.d(_,{c:()=>a});var g=i(5349),l=i(967),d=i(9203);const a=(s,o)=>{let e,t;const u=(r,w,p)=>{if(typeof document>"u")return;const E=document.elementFromPoint(r,w);E&&o(E)?E!==e&&(n(),c(E,p)):n()},c=(r,w)=>{e=r,t||(t=e);const p=e;(0,g.w)(()=>p.classList.add("ion-activated")),w()},n=(r=!1)=>{if(!e)return;const w=e;(0,g.w)(()=>w.classList.remove("ion-activated")),r&&t!==e&&e.click(),e=void 0};return(0,d.createGesture)({el:s,gestureName:"buttonActiveDrag",threshold:0,onStart:r=>u(r.currentX,r.currentY,l.a),onMove:r=>u(r.currentX,r.currentY,l.b),onEnd:()=>{n(!0),(0,l.h)(),t=void 0}})}},4874:(O,_,i)=>{i.d(_,{g:()=>l});var g=i(6225);const l=()=>{if(void 0!==g.w)return g.w.Capacitor}},5149:(O,_,i)=>{i.d(_,{g:()=>g});const g=(o,e,t,u,c)=>d(o[1],e[1],t[1],u[1],c).map(n=>l(o[0],e[0],t[0],u[0],n)),l=(o,e,t,u,c)=>c*(3*e*Math.pow(c-1,2)+c*(-3*t*c+3*t+u*c))-o*Math.pow(c-1,3),d=(o,e,t,u,c)=>s((u-=c)-3*(t-=c)+3*(e-=c)-(o-=c),3*t-6*e+3*o,3*e-3*o,o).filter(r=>r>=0&&r<=1),s=(o,e,t,u)=>{if(0===o)return((o,e,t)=>{const u=e*e-4*o*t;return u<0?[]:[(-e+Math.sqrt(u))/(2*o),(-e-Math.sqrt(u))/(2*o)]})(e,t,u);const c=(3*(t/=o)-(e/=o)*e)/3,n=(2*e*e*e-9*e*t+27*(u/=o))/27;if(0===c)return[Math.pow(-n,1/3)];if(0===n)return[Math.sqrt(-c),-Math.sqrt(-c)];const r=Math.pow(n/2,2)+Math.pow(c/3,3);if(0===r)return[Math.pow(n/2,.5)-e/3];if(r>0)return[Math.pow(-n/2+Math.sqrt(r),1/3)-Math.pow(n/2+Math.sqrt(r),1/3)-e/3];const w=Math.sqrt(Math.pow(-c/3,3)),p=Math.acos(-n/(2*Math.sqrt(Math.pow(-c/3,3)))),E=2*Math.pow(w,1/3);return[E*Math.cos(p/3)-e/3,E*Math.cos((p+2*Math.PI)/3)-e/3,E*Math.cos((p+4*Math.PI)/3)-e/3]}},5085:(O,_,i)=>{i.d(_,{i:()=>g});const g=l=>l&&""!==l.dir?"rtl"===l.dir.toLowerCase():"rtl"===document?.dir.toLowerCase()},2779:(O,_,i)=>{i.r(_),i.d(_,{startFocusVisible:()=>a});const g="ion-focused",d=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],a=s=>{let o=[],e=!0;const t=s?s.shadowRoot:document,u=s||document.body,c=M=>{o.forEach(v=>v.classList.remove(g)),M.forEach(v=>v.classList.add(g)),o=M},n=()=>{e=!1,c([])},r=M=>{e=d.includes(M.key),e||c([])},w=M=>{if(e&&void 0!==M.composedPath){const v=M.composedPath().filter(m=>!!m.classList&&m.classList.contains("ion-focusable"));c(v)}},p=()=>{t.activeElement===u&&c([])};return t.addEventListener("keydown",r),t.addEventListener("focusin",w),t.addEventListener("focusout",p),t.addEventListener("touchstart",n,{passive:!0}),t.addEventListener("mousedown",n),{destroy:()=>{t.removeEventListener("keydown",r),t.removeEventListener("focusin",w),t.removeEventListener("focusout",p),t.removeEventListener("touchstart",n),t.removeEventListener("mousedown",n)},setFocus:c}}},9988:(O,_,i)=>{i.d(_,{c:()=>l});var g=i(839);const l=o=>{const e=o;let t;return{hasLegacyControl:()=>{if(void 0===t){const c=void 0!==e.label||d(e),n=e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")&&null===e.shadowRoot,r=(0,g.h)(e);t=!0===e.legacy||!c&&!n&&null!==r}return t}}},d=o=>!!(a.includes(o.tagName)&&null!==o.querySelector('[slot="label"]')||s.includes(o.tagName)&&""!==o.textContent),a=["ION-INPUT","ION-TEXTAREA","ION-SELECT","ION-RANGE"],s=["ION-TOGGLE","ION-CHECKBOX","ION-RADIO"]},967:(O,_,i)=>{i.d(_,{I:()=>l,a:()=>e,b:()=>t,c:()=>o,d:()=>c,h:()=>u});var g=i(4874),l=function(n){return n.Heavy="HEAVY",n.Medium="MEDIUM",n.Light="LIGHT",n}(l||{});const a={getEngine(){const n=window.TapticEngine;if(n)return n;const r=(0,g.g)();return r?.isPluginAvailable("Haptics")?r.Plugins.Haptics:void 0},available(){if(!this.getEngine())return!1;const r=(0,g.g)();return"web"!==r?.getPlatform()||typeof navigator<"u"&&void 0!==navigator.vibrate},isCordova:()=>void 0!==window.TapticEngine,isCapacitor:()=>void 0!==(0,g.g)(),impact(n){const r=this.getEngine();if(!r)return;const w=this.isCapacitor()?n.style:n.style.toLowerCase();r.impact({style:w})},notification(n){const r=this.getEngine();if(!r)return;const w=this.isCapacitor()?n.type:n.type.toLowerCase();r.notification({type:w})},selection(){const n=this.isCapacitor()?l.Light:"light";this.impact({style:n})},selectionStart(){const n=this.getEngine();n&&(this.isCapacitor()?n.selectionStart():n.gestureSelectionStart())},selectionChanged(){const n=this.getEngine();n&&(this.isCapacitor()?n.selectionChanged():n.gestureSelectionChanged())},selectionEnd(){const n=this.getEngine();n&&(this.isCapacitor()?n.selectionEnd():n.gestureSelectionEnd())}},s=()=>a.available(),o=()=>{s()&&a.selection()},e=()=>{s()&&a.selectionStart()},t=()=>{s()&&a.selectionChanged()},u=()=>{s()&&a.selectionEnd()},c=n=>{s()&&a.impact(n)}},2874:(O,_,i)=>{i.d(_,{I:()=>o,a:()=>c,b:()=>s,c:()=>w,d:()=>E,f:()=>n,g:()=>u,i:()=>t,p:()=>p,r:()=>M,s:()=>r});var g=i(5861),l=i(839),d=i(6710);const s="ion-content",o=".ion-content-scroll-host",e=`${s}, ${o}`,t=v=>"ION-CONTENT"===v.tagName,u=function(){var v=(0,g.Z)(function*(m){return t(m)?(yield new Promise(f=>(0,l.c)(m,f)),m.getScrollElement()):m});return function(f){return v.apply(this,arguments)}}(),c=v=>v.querySelector(o)||v.querySelector(e),n=v=>v.closest(e),r=(v,m)=>t(v)?v.scrollToTop(m):Promise.resolve(v.scrollTo({top:0,left:0,behavior:m>0?"smooth":"auto"})),w=(v,m,f,y)=>t(v)?v.scrollByPoint(m,f,y):Promise.resolve(v.scrollBy({top:f,left:m,behavior:y>0?"smooth":"auto"})),p=v=>(0,d.b)(v,s),E=v=>{if(t(v)){const f=v.scrollY;return v.scrollY=!1,f}return v.style.setProperty("overflow","hidden"),!0},M=(v,m)=>{t(v)?v.scrollY=m:v.style.removeProperty("overflow")}},5307:(O,_,i)=>{i.d(_,{a:()=>g,b:()=>w,c:()=>e,d:()=>p,e:()=>L,f:()=>o,g:()=>E,h:()=>d,i:()=>l,j:()=>y,k:()=>C,l:()=>t,m:()=>n,n:()=>M,o:()=>c,p:()=>s,q:()=>a,r:()=>f,s:()=>h,t:()=>r,u:()=>v,v:()=>m,w:()=>u});const g="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",a="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",e="data:image/svg+xml;utf8,",t="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",r="data:image/svg+xml;utf8,",w="data:image/svg+xml;utf8,",p="data:image/svg+xml;utf8,",E="data:image/svg+xml;utf8,",M="data:image/svg+xml;utf8,",v="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",f="data:image/svg+xml;utf8,",y="data:image/svg+xml;utf8,",C="data:image/svg+xml;utf8,",h="data:image/svg+xml;utf8,",L="data:image/svg+xml;utf8,"},2894:(O,_,i)=>{i.d(_,{c:()=>a,g:()=>s});var g=i(6225),l=i(839),d=i(6710);const a=(e,t,u)=>{let c,n;void 0!==g.w&&"MutationObserver"in g.w&&(c=new MutationObserver(E=>{for(const M of E)for(const v of M.addedNodes)if(v.nodeType===Node.ELEMENT_NODE&&v.slot===t)return u(),void(0,l.r)(()=>r(v))}),c.observe(e,{childList:!0}));const r=E=>{var M;n&&(n.disconnect(),n=void 0),n=new MutationObserver(v=>{u();for(const m of v)for(const f of m.removedNodes)f.nodeType===Node.ELEMENT_NODE&&f.slot===t&&p()}),n.observe(null!==(M=E.parentElement)&&void 0!==M?M:E,{subtree:!0,childList:!0})},p=()=>{n&&(n.disconnect(),n=void 0)};return{destroy:()=>{c&&(c.disconnect(),c=void 0),p()}}},s=(e,t,u)=>{const c=null==e?0:e.toString().length,n=o(c,t);if(void 0===u)return n;try{return u(c,t)}catch(r){return(0,d.a)("Exception in provided `counterFormatter`.",r),n}},o=(e,t)=>`${e} / ${t}`},7484:(O,_,i)=>{i.d(_,{K:()=>a,a:()=>d});var g=i(4874),l=function(s){return s.Unimplemented="UNIMPLEMENTED",s.Unavailable="UNAVAILABLE",s}(l||{}),d=function(s){return s.Body="body",s.Ionic="ionic",s.Native="native",s.None="none",s}(d||{});const a={getEngine(){const s=(0,g.g)();if(s?.isPluginAvailable("Keyboard"))return s.Plugins.Keyboard},getResizeMode(){const s=this.getEngine();return s?.getResizeMode?s.getResizeMode().catch(o=>{if(o.code!==l.Unimplemented)throw o}):Promise.resolve(void 0)}}},1612:(O,_,i)=>{i.r(_),i.d(_,{KEYBOARD_DID_CLOSE:()=>s,KEYBOARD_DID_OPEN:()=>a,copyVisualViewport:()=>C,keyboardDidClose:()=>v,keyboardDidOpen:()=>E,keyboardDidResize:()=>M,resetKeyboardAssist:()=>c,setKeyboardClose:()=>p,setKeyboardOpen:()=>w,startKeyboardAssist:()=>n,trackViewportChanges:()=>y});var g=i(7484);i(4874),i(6225);const a="ionKeyboardDidShow",s="ionKeyboardDidHide";let e={},t={},u=!1;const c=()=>{e={},t={},u=!1},n=h=>{if(g.K.getEngine())r(h);else{if(!h.visualViewport)return;t=C(h.visualViewport),h.visualViewport.onresize=()=>{y(h),E()||M(h)?w(h):v(h)&&p(h)}}},r=h=>{h.addEventListener("keyboardDidShow",L=>w(h,L)),h.addEventListener("keyboardDidHide",()=>p(h))},w=(h,L)=>{m(h,L),u=!0},p=h=>{f(h),u=!1},E=()=>!u&&e.width===t.width&&(e.height-t.height)*t.scale>150,M=h=>u&&!v(h),v=h=>u&&t.height===h.innerHeight,m=(h,L)=>{const D=new CustomEvent(a,{detail:{keyboardHeight:L?L.keyboardHeight:h.innerHeight-t.height}});h.dispatchEvent(D)},f=h=>{const L=new CustomEvent(s);h.dispatchEvent(L)},y=h=>{e=Object.assign({},t),t=C(h.visualViewport)},C=h=>({width:Math.round(h.width),height:Math.round(h.height),offsetTop:h.offsetTop,offsetLeft:h.offsetLeft,pageTop:h.pageTop,pageLeft:h.pageLeft,scale:h.scale})},3459:(O,_,i)=>{i.d(_,{c:()=>o});var g=i(5861),l=i(6225),d=i(7484);const a=e=>void 0===l.d||e===d.a.None||void 0===e?null:l.d.querySelector("ion-app")??l.d.body,s=e=>{const t=a(e);return null===t?0:t.clientHeight},o=function(){var e=(0,g.Z)(function*(t){let u,c,n,r;const w=function(){var m=(0,g.Z)(function*(){const f=yield d.K.getResizeMode(),y=void 0===f?void 0:f.mode;u=()=>{void 0===r&&(r=s(y)),n=!0,p(n,y)},c=()=>{n=!1,p(n,y)},null==l.w||l.w.addEventListener("keyboardWillShow",u),null==l.w||l.w.addEventListener("keyboardWillHide",c)});return function(){return m.apply(this,arguments)}}(),p=(m,f)=>{t&&t(m,E(f))},E=m=>{if(0===r||r===s(m))return;const f=a(m);return null!==f?new Promise(y=>{const h=new ResizeObserver(()=>{f.clientHeight===r&&(h.disconnect(),y())});h.observe(f)}):void 0};return yield w(),{init:w,destroy:()=>{null==l.w||l.w.removeEventListener("keyboardWillShow",u),null==l.w||l.w.removeEventListener("keyboardWillHide",c),u=c=void 0},isKeyboardVisible:()=>n}});return function(u){return e.apply(this,arguments)}}()},3830:(O,_,i)=>{i.d(_,{c:()=>l});var g=i(5861);const l=()=>{let d;return{lock:function(){var s=(0,g.Z)(function*(){const o=d;let e;return d=new Promise(t=>e=t),void 0!==o&&(yield o),e});return function(){return s.apply(this,arguments)}}()}}},5857:(O,_,i)=>{i.d(_,{c:()=>d});var g=i(6225),l=i(839);const d=(a,s,o)=>{let e;const t=()=>!(void 0===s()||void 0!==a.label||null===o()),c=()=>{const r=s();if(void 0===r)return;if(!t())return void r.style.removeProperty("width");const w=o().scrollWidth;if(0===w&&null===r.offsetParent&&void 0!==g.w&&"IntersectionObserver"in g.w){if(void 0!==e)return;const p=e=new IntersectionObserver(E=>{1===E[0].intersectionRatio&&(c(),p.disconnect(),e=void 0)},{threshold:.01,root:a});p.observe(r)}else r.style.setProperty("width",.75*w+"px")};return{calculateNotchWidth:()=>{t()&&(0,l.r)(()=>{c()})},destroy:()=>{e&&(e.disconnect(),e=void 0)}}}},3781:(O,_,i)=>{i.d(_,{S:()=>l});const l={bubbles:{dur:1e3,circles:9,fn:(d,a,s)=>{const o=d*a/s-d+"ms",e=2*Math.PI*a/s;return{r:5,style:{top:32*Math.sin(e)+"%",left:32*Math.cos(e)+"%","animation-delay":o}}}},circles:{dur:1e3,circles:8,fn:(d,a,s)=>{const o=a/s,e=d*o-d+"ms",t=2*Math.PI*o;return{r:5,style:{top:32*Math.sin(t)+"%",left:32*Math.cos(t)+"%","animation-delay":e}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(d,a)=>({r:6,style:{left:32-32*a+"%","animation-delay":-110*a+"ms"}})},lines:{dur:1e3,lines:8,fn:(d,a,s)=>({y1:14,y2:26,style:{transform:`rotate(${360/s*a+(a({y1:12,y2:20,style:{transform:`rotate(${360/s*a+(a({y1:17,y2:29,style:{transform:`rotate(${30*a+(a<6?180:-180)}deg)`,"animation-delay":d*a/s-d+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(d,a,s)=>({y1:12,y2:20,style:{transform:`rotate(${30*a+(a<6?180:-180)}deg)`,"animation-delay":d*a/s-d+"ms"}})}}},8663:(O,_,i)=>{i.r(_),i.d(_,{createSwipeBackGesture:()=>s});var g=i(839),l=i(5085),d=i(9203);i(619);const s=(o,e,t,u,c)=>{const n=o.ownerDocument.defaultView;let r=(0,l.i)(o);const p=f=>r?-f.deltaX:f.deltaX;return(0,d.createGesture)({el:o,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:f=>(r=(0,l.i)(o),(f=>{const{startX:C}=f;return r?C>=n.innerWidth-50:C<=50})(f)&&e()),onStart:t,onMove:f=>{const C=p(f)/n.innerWidth;u(C)},onEnd:f=>{const y=p(f),C=n.innerWidth,h=y/C,L=(f=>r?-f.velocityX:f.velocityX)(f),D=L>=0&&(L>.2||y>C/2),P=(D?1-h:h)*C;let T=0;if(P>5){const x=P/Math.abs(L);T=Math.min(x,540)}c(D,h<=0?.01:(0,g.l)(0,h,.9999),T)}})}},5564:(O,_,i)=>{i.d(_,{w:()=>g});const g=(a,s,o)=>{if(typeof MutationObserver>"u")return;const e=new MutationObserver(t=>{o(l(t,s))});return e.observe(a,{childList:!0,subtree:!0}),e},l=(a,s)=>{let o;return a.forEach(e=>{for(let t=0;t{if(1!==a.nodeType)return;const o=a;return(o.tagName===s.toUpperCase()?[o]:Array.from(o.querySelectorAll(s))).find(t=>t.value===o.value)}}}]); \ No newline at end of file diff --git a/index.html b/index.html index d44c2419..09e4e8b5 100644 --- a/index.html +++ b/index.html @@ -33,10 +33,10 @@ gtag('config', 'G-F68MSJZ97N'); - + - + \ No newline at end of file diff --git a/main.1f9c03df2475c29a.js b/main.1f9c03df2475c29a.js deleted file mode 100644 index 0ec79d6b..00000000 --- a/main.1f9c03df2475c29a.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{2726:(zn,wt,S)=>{"use strict";S.d(wt,{Uw:()=>Ce,fo:()=>De});var h=S(5861);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var oe=function(Se){return Se.Unimplemented="UNIMPLEMENTED",Se.Unavailable="UNAVAILABLE",Se}(oe||{});class _e extends Error{constructor(Ve,Xe,Ht){super(Ve),this.message=Ve,this.code=Xe,this.data=Ht}}const ee=Se=>{var Ve,Xe,Ht,cn,xn;const $t=Se.CapacitorCustomPlatform||null,ke=Se.Capacitor||{},pe=ke.Plugins=ke.Plugins||{},Oe=Se.CapacitorPlatforms,it=(null===(Ve=Oe?.currentPlatform)||void 0===Ve?void 0:Ve.getPlatform)||(()=>null!==$t?$t.name:(Se=>{var Ve,Xe;return Se?.androidBridge?"android":null!==(Xe=null===(Ve=Se?.webkit)||void 0===Ve?void 0:Ve.messageHandlers)&&void 0!==Xe&&Xe.bridge?"ios":"web"})(Se)),Kt=(null===(Xe=Oe?.currentPlatform)||void 0===Xe?void 0:Xe.isNativePlatform)||(()=>"web"!==it()),fn=(null===(Ht=Oe?.currentPlatform)||void 0===Ht?void 0:Ht.isPluginAvailable)||(Rn=>{const Vn=Ie.get(Rn);return!(!Vn?.platforms.has(it())&&!li(Rn))}),li=(null===(cn=Oe?.currentPlatform)||void 0===cn?void 0:cn.getPluginHeader)||(Rn=>{var Vn;return null===(Vn=ke.PluginHeaders)||void 0===Vn?void 0:Vn.find(Ut=>Ut.name===Rn)}),Ie=new Map,on=(null===(xn=Oe?.currentPlatform)||void 0===xn?void 0:xn.registerPlugin)||((Rn,Vn={})=>{const Ut=Ie.get(Rn);if(Ut)return console.warn(`Capacitor plugin "${Rn}" already registered. Cannot register plugins twice.`),Ut.proxy;const Hn=it(),qe=li(Rn);let Nt;const Xt=function(){var Wi=(0,h.Z)(function*(){return!Nt&&Hn in Vn?Nt=Nt="function"==typeof Vn[Hn]?yield Vn[Hn]():Vn[Hn]:null!==$t&&!Nt&&"web"in Vn&&(Nt=Nt="function"==typeof Vn.web?yield Vn.web():Vn.web),Nt});return function(){return Wi.apply(this,arguments)}}(),oi=Wi=>{let _n;const Bi=(...pn)=>{const sn=Xt().then(Cn=>{const $i=((Wi,_n)=>{var Bi,pn;if(!qe){if(Wi)return null===(pn=Wi[_n])||void 0===pn?void 0:pn.bind(Wi);throw new _e(`"${Rn}" plugin is not implemented on ${Hn}`,oe.Unimplemented)}{const sn=qe?.methods.find(Cn=>_n===Cn.name);if(sn)return"promise"===sn.rtype?Cn=>ke.nativePromise(Rn,_n.toString(),Cn):(Cn,$i)=>ke.nativeCallback(Rn,_n.toString(),Cn,$i);if(Wi)return null===(Bi=Wi[_n])||void 0===Bi?void 0:Bi.bind(Wi)}})(Cn,Wi);if($i){const ct=$i(...pn);return _n=ct?.remove,ct}throw new _e(`"${Rn}.${Wi}()" is not implemented on ${Hn}`,oe.Unimplemented)});return"addListener"===Wi&&(sn.remove=(0,h.Z)(function*(){return _n()})),sn};return Bi.toString=()=>`${Wi.toString()}() { [capacitor code] }`,Object.defineProperty(Bi,"name",{value:Wi,writable:!1,configurable:!1}),Bi},xi=oi("addListener"),Oi=oi("removeListener"),gr=(Wi,_n)=>{const Bi=xi({eventName:Wi},_n),pn=function(){var Cn=(0,h.Z)(function*(){const $i=yield Bi;Oi({eventName:Wi,callbackId:$i},_n)});return function(){return Cn.apply(this,arguments)}}(),sn=new Promise(Cn=>Bi.then(()=>Cn({remove:pn})));return sn.remove=(0,h.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield pn()}),sn},ki=new Proxy({},{get(Wi,_n){switch(_n){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return qe?gr:xi;case"removeListener":return Oi;default:return oi(_n)}}});return pe[Rn]=ki,Ie.set(Rn,{name:Rn,proxy:ki,platforms:new Set([...Object.keys(Vn),...qe?[Hn]:[]])}),ki});return ke.convertFileSrc||(ke.convertFileSrc=Rn=>Rn),ke.getPlatform=it,ke.handleError=Rn=>Se.console.error(Rn),ke.isNativePlatform=Kt,ke.isPluginAvailable=fn,ke.pluginMethodNoop=(Rn,Vn,Ut)=>Promise.reject(`${Ut} does not have an implementation of "${Vn}".`),ke.registerPlugin=on,ke.Exception=_e,ke.DEBUG=!!ke.DEBUG,ke.isLoggingEnabled=!!ke.isLoggingEnabled,ke.platform=ke.getPlatform(),ke.isNative=ke.isNativePlatform(),ke},ye=(Se=>Se.Capacitor=ee(Se))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),De=ye.registerPlugin;class Ce{constructor(Ve){this.listeners={},this.windowListeners={},Ve&&(console.warn(`Capacitor WebPlugin "${Ve.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=Ve)}addListener(Ve,Xe){var Ht=this;this.listeners[Ve]||(this.listeners[Ve]=[]),this.listeners[Ve].push(Xe);const xn=this.windowListeners[Ve];xn&&!xn.registered&&this.addWindowListener(xn);const $t=function(){var pe=(0,h.Z)(function*(){return Ht.removeListener(Ve,Xe)});return function(){return pe.apply(this,arguments)}}(),ke=Promise.resolve({remove:$t});return Object.defineProperty(ke,"remove",{value:(pe=(0,h.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield $t()}),function(){return pe.apply(this,arguments)})}),ke;var pe}removeAllListeners(){var Ve=this;return(0,h.Z)(function*(){Ve.listeners={};for(const Xe in Ve.windowListeners)Ve.removeWindowListener(Ve.windowListeners[Xe]);Ve.windowListeners={}})()}notifyListeners(Ve,Xe){const Ht=this.listeners[Ve];Ht&&Ht.forEach(cn=>cn(Xe))}hasListeners(Ve){return!!this.listeners[Ve].length}registerWindowListener(Ve,Xe){this.windowListeners[Xe]={registered:!1,windowEventName:Ve,pluginEventName:Xe,handler:Ht=>{this.notifyListeners(Xe,Ht)}}}unimplemented(Ve="not implemented"){return new ye.Exception(Ve,oe.Unimplemented)}unavailable(Ve="not available"){return new ye.Exception(Ve,oe.Unavailable)}removeListener(Ve,Xe){var Ht=this;return(0,h.Z)(function*(){const cn=Ht.listeners[Ve];if(!cn)return;const xn=cn.indexOf(Xe);Ht.listeners[Ve].splice(xn,1),Ht.listeners[Ve].length||Ht.removeWindowListener(Ht.windowListeners[Ve])})()}addWindowListener(Ve){window.addEventListener(Ve.windowEventName,Ve.handler),Ve.registered=!0}removeWindowListener(Ve){Ve&&(window.removeEventListener(Ve.windowEventName,Ve.handler),Ve.registered=!1)}}const Pe=Se=>encodeURIComponent(Se).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Be=Se=>Se.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Ne extends Ce{getCookies(){return(0,h.Z)(function*(){const Ve=document.cookie,Xe={};return Ve.split(";").forEach(Ht=>{if(Ht.length<=0)return;let[cn,xn]=Ht.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");cn=Be(cn).trim(),xn=Be(xn).trim(),Xe[cn]=xn}),Xe})()}setCookie(Ve){return(0,h.Z)(function*(){try{const Xe=Pe(Ve.key),Ht=Pe(Ve.value),cn=`; expires=${(Ve.expires||"").replace("expires=","")}`,xn=(Ve.path||"/").replace("path=",""),$t=null!=Ve.url&&Ve.url.length>0?`domain=${Ve.url}`:"";document.cookie=`${Xe}=${Ht||""}${cn}; path=${xn}; ${$t};`}catch(Xe){return Promise.reject(Xe)}})()}deleteCookie(Ve){return(0,h.Z)(function*(){try{document.cookie=`${Ve.key}=; Max-Age=0`}catch(Xe){return Promise.reject(Xe)}})()}clearCookies(){return(0,h.Z)(function*(){try{const Ve=document.cookie.split(";")||[];for(const Xe of Ve)document.cookie=Xe.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(Ve){return Promise.reject(Ve)}})()}clearAllCookies(){var Ve=this;return(0,h.Z)(function*(){try{yield Ve.clearCookies()}catch(Xe){return Promise.reject(Xe)}})()}}De("CapacitorCookies",{web:()=>new Ne});const Ge=function(){var Se=(0,h.Z)(function*(Ve){return new Promise((Xe,Ht)=>{const cn=new FileReader;cn.onload=()=>{const xn=cn.result;Xe(xn.indexOf(",")>=0?xn.split(",")[1]:xn)},cn.onerror=xn=>Ht(xn),cn.readAsDataURL(Ve)})});return function(Xe){return Se.apply(this,arguments)}}();class xe extends Ce{request(Ve){return(0,h.Z)(function*(){const Xe=((Se,Ve={})=>{const Xe=Object.assign({method:Se.method||"GET",headers:Se.headers},Ve),cn=((Se={})=>{const Ve=Object.keys(Se);return Object.keys(Se).map(cn=>cn.toLocaleLowerCase()).reduce((cn,xn,$t)=>(cn[xn]=Se[Ve[$t]],cn),{})})(Se.headers)["content-type"]||"";if("string"==typeof Se.data)Xe.body=Se.data;else if(cn.includes("application/x-www-form-urlencoded")){const xn=new URLSearchParams;for(const[$t,ke]of Object.entries(Se.data||{}))xn.set($t,ke);Xe.body=xn.toString()}else if(cn.includes("multipart/form-data")){const xn=new FormData;if(Se.data instanceof FormData)Se.data.forEach((ke,pe)=>{xn.append(pe,ke)});else for(const ke of Object.keys(Se.data))xn.append(ke,Se.data[ke]);Xe.body=xn;const $t=new Headers(Xe.headers);$t.delete("content-type"),Xe.headers=$t}else(cn.includes("application/json")||"object"==typeof Se.data)&&(Xe.body=JSON.stringify(Se.data));return Xe})(Ve,Ve.webFetchExtra),Ht=((Se,Ve=!0)=>Se?Object.entries(Se).reduce((Ht,cn)=>{const[xn,$t]=cn;let ke,pe;return Array.isArray($t)?(pe="",$t.forEach(Oe=>{ke=Ve?encodeURIComponent(Oe):Oe,pe+=`${xn}=${ke}&`}),pe.slice(0,-1)):(ke=Ve?encodeURIComponent($t):$t,pe=`${xn}=${ke}`),`${Ht}&${pe}`},"").substr(1):null)(Ve.params,Ve.shouldEncodeUrlParams),cn=Ht?`${Ve.url}?${Ht}`:Ve.url,xn=yield fetch(cn,Xe),$t=xn.headers.get("content-type")||"";let pe,Oe,{responseType:ke="text"}=xn.ok?Ve:{};switch($t.includes("application/json")&&(ke="json"),ke){case"arraybuffer":case"blob":Oe=yield xn.blob(),pe=yield Ge(Oe);break;case"json":pe=yield xn.json();break;default:pe=yield xn.text()}const ie={};return xn.headers.forEach((it,_t)=>{ie[_t]=it}),{data:pe,headers:ie,status:xn.status,url:xn.url}})()}get(Ve){var Xe=this;return(0,h.Z)(function*(){return Xe.request(Object.assign(Object.assign({},Ve),{method:"GET"}))})()}post(Ve){var Xe=this;return(0,h.Z)(function*(){return Xe.request(Object.assign(Object.assign({},Ve),{method:"POST"}))})()}put(Ve){var Xe=this;return(0,h.Z)(function*(){return Xe.request(Object.assign(Object.assign({},Ve),{method:"PUT"}))})()}patch(Ve){var Xe=this;return(0,h.Z)(function*(){return Xe.request(Object.assign(Object.assign({},Ve),{method:"PATCH"}))})()}delete(Ve){var Xe=this;return(0,h.Z)(function*(){return Xe.request(Object.assign(Object.assign({},Ve),{method:"DELETE"}))})()}}De("CapacitorHttp",{web:()=>new xe})},3630:(zn,wt,S)=>{"use strict";S.d(wt,{c:()=>X,r:()=>ee});const X=(ne,Ee)=>{ne.componentOnReady?ne.componentOnReady().then(xe=>Ee(xe)):ee(()=>Ee(ne))},ee=ne=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne)},191:(zn,wt,S)=>{"use strict";S.d(wt,{L:()=>h,a:()=>p,b:()=>X,c:()=>a,d:()=>j,g:()=>ne});const h="ionViewWillEnter",p="ionViewDidEnter",X="ionViewWillLeave",a="ionViewDidLeave",j="ionViewWillUnload",ne=Ee=>Ee.classList.contains("ion-page")?Ee:Ee.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Ee},6410:(zn,wt,S)=>{"use strict";S.d(wt,{c:()=>Ye});var h=S(6225),p=S(839);let X;const j=Ce=>Ce.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),K=Ce=>(void 0===X&&(X=void 0===Ce.style.animationName&&void 0!==Ce.style.webkitAnimationName?"-webkit-":""),X),C=(Ce,de,Pe)=>{const Be=de.startsWith("animation")?K(Ce):"";Ce.style.setProperty(Be+de,Pe)},oe=(Ce,de)=>{const Pe=de.startsWith("animation")?K(Ce):"";Ce.style.removeProperty(Pe+de)},ee=[],me=(Ce=[],de)=>{if(void 0!==de){const Pe=Array.isArray(de)?de:[de];return[...Ce,...Pe]}return Ce},Ye=Ce=>{let de,Pe,Be,Ne,Ae,Ge,je,ke,pe,Oe,ie,Mn,fn,lt=[],ne=[],Ee=[],xe=!1,Se={},Ve=[],Xe=[],Ht={},cn=0,xn=!1,$t=!1,it=!0,_t=!1,Kt=!0,qn=!1;const li=Ce,en=[],Dt=[],Ie=[],Ct=[],on=[],Rn=[],Vn=[],Ut=[],Hn=[],qe=[],Nt=[],Xt="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Tn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Xt,xi=()=>Nt,_n=(J,be)=>{const ft=be.findIndex(mt=>mt.c===J);ft>-1&&be.splice(ft,1)},pn=(J,be)=>((be?.oneTimeCallback?Dt:en).push({c:J,o:be}),fn),Cn=()=>{if(Tn)Nt.forEach(J=>{J.cancel()}),Nt.length=0;else{const J=Ct.slice();(0,p.r)(()=>{J.forEach(be=>{oe(be,"animation-name"),oe(be,"animation-duration"),oe(be,"animation-timing-function"),oe(be,"animation-iteration-count"),oe(be,"animation-delay"),oe(be,"animation-play-state"),oe(be,"animation-fill-mode"),oe(be,"animation-direction")})})}},$i=()=>{Rn.forEach(J=>{J?.parentNode&&J.parentNode.removeChild(J)}),Rn.length=0},ae=()=>void 0!==Ae?Ae:je?je.getFill():"both",ht=()=>void 0!==pe?pe:void 0!==Ge?Ge:je?je.getDirection():"normal",G=()=>xn?"linear":void 0!==Be?Be:je?je.getEasing():"linear",ze=()=>$t?0:void 0!==Oe?Oe:void 0!==Pe?Pe:je?je.getDuration():0,at=()=>void 0!==Ne?Ne:je?je.getIterations():1,rn=()=>void 0!==ie?ie:void 0!==de?de:je?je.getDelay():0,qi=()=>{0!==cn&&(cn--,0===cn&&((()=>{rt(),Hn.forEach(yn=>yn()),qe.forEach(yn=>yn());const J=it?1:0,be=Ve,ft=Xe,mt=Ht;Ct.forEach(yn=>{const jt=yn.classList;be.forEach(Fn=>jt.add(Fn)),ft.forEach(Fn=>jt.remove(Fn));for(const Fn in mt)mt.hasOwnProperty(Fn)&&C(yn,Fn,mt[Fn])}),en.forEach(yn=>yn.c(J,fn)),Dt.forEach(yn=>yn.c(J,fn)),Dt.length=0,Kt=!0,it&&(_t=!0),it=!0})(),je&&je.animationFinish()))},Ci=(J=!0)=>{$i();const be=(Ce=>(Ce.forEach(de=>{for(const Pe in de)if(de.hasOwnProperty(Pe)){const Be=de[Pe];if("easing"===Pe)de["animation-timing-function"]=Be,delete de[Pe];else{const Ne=j(Pe);Ne!==Pe&&(de[Ne]=Be,delete de[Pe])}}}),Ce))(lt);Ct.forEach(ft=>{if(be.length>0){const mt=((Ce=[])=>Ce.map(de=>{const Pe=de.offset,Be=[];for(const Ne in de)de.hasOwnProperty(Ne)&&"offset"!==Ne&&Be.push(`${Ne}: ${de[Ne]};`);return`${100*Pe}% { ${Be.join(" ")} }`}).join(" "))(be);Mn=void 0!==Ce?Ce:(Ce=>{let de=ee.indexOf(Ce);return de<0&&(de=ee.push(Ce)-1),`ion-animation-${de}`})(mt);const yn=((Ce,de,Pe)=>{var Be;const Ne=(Ce=>{const de=void 0!==Ce.getRootNode?Ce.getRootNode():Ce;return de.head||de})(Pe),Ae=K(Pe),Ge=Ne.querySelector("#"+Ce);if(Ge)return Ge;const lt=(null!==(Be=Pe.ownerDocument)&&void 0!==Be?Be:document).createElement("style");return lt.id=Ce,lt.textContent=`@${Ae}keyframes ${Ce} { ${de} } @${Ae}keyframes ${Ce}-alt { ${de} }`,Ne.appendChild(lt),lt})(Mn,mt,ft);Rn.push(yn),C(ft,"animation-duration",`${ze()}ms`),C(ft,"animation-timing-function",G()),C(ft,"animation-delay",`${rn()}ms`),C(ft,"animation-fill-mode",ae()),C(ft,"animation-direction",ht());const jt=at()===1/0?"infinite":at().toString();C(ft,"animation-iteration-count",jt),C(ft,"animation-play-state","paused"),J&&C(ft,"animation-name",`${yn.id}-alt`),(0,p.r)(()=>{C(ft,"animation-name",yn.id||null)})}})},Yt=(J=!0)=>{(()=>{Vn.forEach(mt=>mt()),Ut.forEach(mt=>mt());const J=ne,be=Ee,ft=Se;Ct.forEach(mt=>{const yn=mt.classList;J.forEach(jt=>yn.add(jt)),be.forEach(jt=>yn.remove(jt));for(const jt in ft)ft.hasOwnProperty(jt)&&C(mt,jt,ft[jt])})})(),lt.length>0&&(Tn?(Ct.forEach(J=>{const be=J.animate(lt,{id:li,delay:rn(),duration:ze(),easing:G(),iterations:at(),fill:ae(),direction:ht()});be.pause(),Nt.push(be)}),Nt.length>0&&(Nt[0].onfinish=()=>{qi()})):Ci(J)),xe=!0},Tt=J=>{if(J=Math.min(Math.max(J,0),.9999),Tn)Nt.forEach(be=>{be.currentTime=be.effect.getComputedTiming().delay+ze()*J,be.pause()});else{const be=`-${ze()*J}ms`;Ct.forEach(ft=>{lt.length>0&&(C(ft,"animation-delay",be),C(ft,"animation-play-state","paused"))})}},Mt=J=>{Nt.forEach(be=>{be.effect.updateTiming({delay:rn(),duration:ze(),easing:G(),iterations:at(),fill:ae(),direction:ht()})}),void 0!==J&&Tt(J)},Qt=(J=!0,be)=>{(0,p.r)(()=>{Ct.forEach(ft=>{C(ft,"animation-name",Mn||null),C(ft,"animation-duration",`${ze()}ms`),C(ft,"animation-timing-function",G()),C(ft,"animation-delay",void 0!==be?`-${be*ze()}ms`:`${rn()}ms`),C(ft,"animation-fill-mode",ae()||null),C(ft,"animation-direction",ht()||null);const mt=at()===1/0?"infinite":at().toString();C(ft,"animation-iteration-count",mt),J&&C(ft,"animation-name",`${Mn}-alt`),(0,p.r)(()=>{C(ft,"animation-name",Mn||null)})})})},wn=(J=!1,be=!0,ft)=>(J&&on.forEach(mt=>{mt.update(J,be,ft)}),Tn?Mt(ft):Qt(be,ft),fn),Wn=()=>{xe&&(Tn?Nt.forEach(J=>{J.pause()}):Ct.forEach(J=>{C(J,"animation-play-state","paused")}),qn=!0)},Je=()=>{ke=void 0,qi()},rt=()=>{ke&&clearTimeout(ke)},gn=J=>new Promise(be=>{J?.sync&&($t=!0,pn(()=>$t=!1,{oneTimeCallback:!0})),xe||Yt(),_t&&(Tn?(Tt(0),Mt()):Qt(),_t=!1),Kt&&(cn=on.length+1,Kt=!1);const ft=()=>{_n(mt,Dt),be()},mt=()=>{_n(ft,Ie),be()};pn(mt,{oneTimeCallback:!0}),((J,be)=>{Ie.push({c:J,o:{oneTimeCallback:!0}})})(ft),on.forEach(yn=>{yn.play()}),Tn?(Nt.forEach(J=>{J.play()}),(0===lt.length||0===Ct.length)&&qi()):(()=>{if(rt(),(0,p.r)(()=>{Ct.forEach(J=>{lt.length>0&&C(J,"animation-play-state","running")})}),0===lt.length||0===Ct.length)qi();else{const J=rn()||0,be=ze()||0,ft=at()||1;isFinite(ft)&&(ke=setTimeout(Je,J+be*ft+100)),((Ce,de)=>{let Pe;const Be={passive:!0},Ae=Ge=>{Ce===Ge.target&&(Pe&&Pe(),rt(),(0,p.r)(()=>{Ct.forEach(J=>{oe(J,"animation-duration"),oe(J,"animation-delay"),oe(J,"animation-play-state")}),(0,p.r)(qi)}))};Ce&&(Ce.addEventListener("webkitAnimationEnd",Ae,Be),Ce.addEventListener("animationend",Ae,Be),Pe=()=>{Ce.removeEventListener("webkitAnimationEnd",Ae,Be),Ce.removeEventListener("animationend",Ae,Be)})})(Ct[0])}})(),qn=!1}),di=(J,be)=>{const ft=lt[0];return void 0===ft||void 0!==ft.offset&&0!==ft.offset?lt=[{offset:0,[J]:be},...lt]:ft[J]=be,fn};return fn={parentAnimation:je,elements:Ct,childAnimations:on,id:li,animationFinish:qi,from:di,to:(J,be)=>{const ft=lt[lt.length-1];return void 0===ft||void 0!==ft.offset&&1!==ft.offset?lt=[...lt,{offset:1,[J]:be}]:ft[J]=be,fn},fromTo:(J,be,ft)=>di(J,be).to(J,ft),parent:J=>(je=J,fn),play:gn,pause:()=>(on.forEach(J=>{J.pause()}),Wn(),fn),stop:()=>{on.forEach(J=>{J.stop()}),xe&&(Cn(),xe=!1),xn=!1,$t=!1,Kt=!0,pe=void 0,Oe=void 0,ie=void 0,cn=0,_t=!1,it=!0,qn=!1,Ie.forEach(J=>J.c(0,fn)),Ie.length=0},destroy:J=>(on.forEach(be=>{be.destroy(J)}),(J=>{Cn(),J&&$i()})(J),Ct.length=0,on.length=0,lt.length=0,en.length=0,Dt.length=0,xe=!1,Kt=!0,fn),keyframes:J=>{const be=lt!==J;return lt=J,be&&(J=>{Tn?xi().forEach(be=>{const ft=be.effect;if(ft.setKeyframes)ft.setKeyframes(J);else{const mt=new KeyframeEffect(ft.target,J,ft.getTiming());be.effect=mt}}):Ci()})(lt),fn},addAnimation:J=>{if(null!=J)if(Array.isArray(J))for(const be of J)be.parent(fn),on.push(be);else J.parent(fn),on.push(J);return fn},addElement:J=>{if(null!=J)if(1===J.nodeType)Ct.push(J);else if(J.length>=0)for(let be=0;be(Ae=J,wn(!0),fn),direction:J=>(Ge=J,wn(!0),fn),iterations:J=>(Ne=J,wn(!0),fn),duration:J=>(!Tn&&0===J&&(J=1),Pe=J,wn(!0),fn),easing:J=>(Be=J,wn(!0),fn),delay:J=>(de=J,wn(!0),fn),getWebAnimations:xi,getKeyframes:()=>lt,getFill:ae,getDirection:ht,getDelay:rn,getIterations:at,getEasing:G,getDuration:ze,afterAddRead:J=>(Hn.push(J),fn),afterAddWrite:J=>(qe.push(J),fn),afterClearStyles:(J=[])=>{for(const be of J)Ht[be]="";return fn},afterStyles:(J={})=>(Ht=J,fn),afterRemoveClass:J=>(Xe=me(Xe,J),fn),afterAddClass:J=>(Ve=me(Ve,J),fn),beforeAddRead:J=>(Vn.push(J),fn),beforeAddWrite:J=>(Ut.push(J),fn),beforeClearStyles:(J=[])=>{for(const be of J)Se[be]="";return fn},beforeStyles:(J={})=>(Se=J,fn),beforeRemoveClass:J=>(Ee=me(Ee,J),fn),beforeAddClass:J=>(ne=me(ne,J),fn),onFinish:pn,isRunning:()=>0!==cn&&!qn,progressStart:(J=!1,be)=>(on.forEach(ft=>{ft.progressStart(J,be)}),Wn(),xn=J,xe||Yt(),wn(!1,!0,be),fn),progressStep:J=>(on.forEach(be=>{be.progressStep(J)}),Tt(J),fn),progressEnd:(J,be,ft)=>(xn=!1,on.forEach(mt=>{mt.progressEnd(J,be,ft)}),void 0!==ft&&(Oe=ft),_t=!1,it=!0,0===J?(pe="reverse"===ht()?"normal":"reverse","reverse"===pe&&(it=!1),Tn?(wn(),Tt(1-be)):(ie=(1-be)*ze()*-1,wn(!1,!1))):1===J&&(Tn?(wn(),Tt(be)):(ie=be*ze()*-1,wn(!1,!1))),void 0!==J&&(pn(()=>{Oe=void 0,pe=void 0,ie=void 0},{oneTimeCallback:!0}),je||gn()),fn)}}},3365:(zn,wt,S)=>{"use strict";S.d(wt,{E:()=>Le,a:()=>h,s:()=>oe});const h=ee=>{try{if(ee instanceof C)return ee.value;if(!a()||"string"!=typeof ee||""===ee)return ee;if(ee.includes("onload="))return"";const Te=document.createDocumentFragment(),ye=document.createElement("div");Te.appendChild(ye),ye.innerHTML=ee,K.forEach(Ce=>{const de=Te.querySelectorAll(Ce);for(let Pe=de.length-1;Pe>=0;Pe--){const Be=de[Pe];Be.parentNode?Be.parentNode.removeChild(Be):Te.removeChild(Be);const Ne=X(Be);for(let Ae=0;Ae{if(ee.nodeType&&1!==ee.nodeType)return;if(typeof NamedNodeMap<"u"&&!(ee.attributes instanceof NamedNodeMap))return void ee.remove();for(let ye=ee.attributes.length-1;ye>=0;ye--){const De=ee.attributes.item(ye),me=De.name;if(!j.includes(me.toLowerCase())){ee.removeAttribute(me);continue}const Ye=De.value,Ce=ee[me];(null!=Ye&&Ye.toLowerCase().includes("javascript:")||null!=Ce&&Ce.toLowerCase().includes("javascript:"))&&ee.removeAttribute(me)}const Te=X(ee);for(let ye=0;yenull!=ee.children?ee.children:ee.childNodes,a=()=>{var ee;const Te=window,ye=null===(ee=Te?.Ionic)||void 0===ee?void 0:ee.config;return!ye||(ye.get?ye.get("sanitizerEnabled",!0):!0===ye.sanitizerEnabled||void 0===ye.sanitizerEnabled)},j=["class","id","href","src","name","slot"],K=["script","style","iframe","meta","link","object","embed"];class C{constructor(Te){this.value=Te}}const oe=ee=>{const Te=window,ye=Te.Ionic;if(!ye||!ye.config||"Object"===ye.config.constructor.name)return Te.Ionic=Te.Ionic||{},Te.Ionic.config=Object.assign(Object.assign({},Te.Ionic.config),ee),Te.Ionic.config},Le=!1},6559:(zn,wt,S)=>{"use strict";S.d(wt,{C:()=>j,a:()=>X,d:()=>a});var h=S(5861),p=S(839);const X=function(){var K=(0,h.Z)(function*(C,oe,_e,Le,ee,Te){var ye;if(C)return C.attachViewToDom(oe,_e,ee,Le);if(!(Te||"string"==typeof _e||_e instanceof HTMLElement))throw new Error("framework delegate is missing");const De="string"==typeof _e?null===(ye=oe.ownerDocument)||void 0===ye?void 0:ye.createElement(_e):_e;return Le&&Le.forEach(me=>De.classList.add(me)),ee&&Object.assign(De,ee),oe.appendChild(De),yield new Promise(me=>(0,p.c)(De,me)),De});return function(oe,_e,Le,ee,Te,ye){return K.apply(this,arguments)}}(),a=(K,C)=>{if(C){if(K)return K.removeViewFromDom(C.parentElement,C);C.remove()}return Promise.resolve()},j=()=>{let K,C;return{attachViewToDom:function(){var Le=(0,h.Z)(function*(ee,Te,ye={},De=[]){var me,Ye;let Ce;if(K=ee,Te){const Pe="string"==typeof Te?null===(me=K.ownerDocument)||void 0===me?void 0:me.createElement(Te):Te;De.forEach(Be=>Pe.classList.add(Be)),Object.assign(Pe,ye),K.appendChild(Pe),Ce=Pe,yield new Promise(Be=>(0,p.c)(Pe,Be))}else if(K.children.length>0&&("ION-MODAL"===K.tagName||"ION-POPOVER"===K.tagName)&&!(Ce=K.children[0]).classList.contains("ion-delegate-host")){const Be=null===(Ye=K.ownerDocument)||void 0===Ye?void 0:Ye.createElement("div");Be.classList.add("ion-delegate-host"),De.forEach(Ne=>Be.classList.add(Ne)),Be.append(...K.children),K.appendChild(Be),Ce=Be}const de=document.querySelector("ion-app")||document.body;return C=document.createComment("ionic teleport"),K.parentNode.insertBefore(C,K),de.appendChild(K),Ce??K});return function(Te,ye){return Le.apply(this,arguments)}}(),removeViewFromDom:()=>(K&&C&&(C.parentNode.insertBefore(K,C),C.remove()),Promise.resolve())}}},619:(zn,wt,S)=>{"use strict";S.d(wt,{G:()=>j});class p{constructor(C,oe,_e,Le,ee){this.id=oe,this.name=_e,this.disableScroll=ee,this.priority=1e6*Le+oe,this.ctrl=C}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const C=this.ctrl.capture(this.name,this.id,this.priority);return C&&this.disableScroll&&this.ctrl.disableScroll(this.id),C}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class X{constructor(C,oe,_e,Le){this.id=oe,this.disable=_e,this.disableScroll=Le,this.ctrl=C}block(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.disableGesture(C,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.enableGesture(C,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const a="backdrop-no-scroll",j=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(C){var oe;return new p(this,this.newID(),C.name,null!==(oe=C.priority)&&void 0!==oe?oe:0,!!C.disableScroll)}createBlocker(C={}){return new X(this,this.newID(),C.disable,!!C.disableScroll)}start(C,oe,_e){return this.canStart(C)?(this.requestedStart.set(oe,_e),!0):(this.requestedStart.delete(oe),!1)}capture(C,oe,_e){if(!this.start(C,oe,_e))return!1;const Le=this.requestedStart;let ee=-1e4;if(Le.forEach(Te=>{ee=Math.max(ee,Te)}),ee===_e){this.capturedId=oe,Le.clear();const Te=new CustomEvent("ionGestureCaptured",{detail:{gestureName:C}});return document.dispatchEvent(Te),!0}return Le.delete(oe),!1}release(C){this.requestedStart.delete(C),this.capturedId===C&&(this.capturedId=void 0)}disableGesture(C,oe){let _e=this.disabledGestures.get(C);void 0===_e&&(_e=new Set,this.disabledGestures.set(C,_e)),_e.add(oe)}enableGesture(C,oe){const _e=this.disabledGestures.get(C);void 0!==_e&&_e.delete(oe)}disableScroll(C){this.disabledScroll.add(C),1===this.disabledScroll.size&&document.body.classList.add(a)}enableScroll(C){this.disabledScroll.delete(C),0===this.disabledScroll.size&&document.body.classList.remove(a)}canStart(C){return!(void 0!==this.capturedId||this.isDisabled(C))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(C){const oe=this.disabledGestures.get(C);return!!(oe&&oe.size>0)}newID(){return this.gestureId++,this.gestureId}}},2124:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{MENU_BACK_BUTTON_PRIORITY:()=>j,OVERLAY_BACK_BUTTON_PRIORITY:()=>a,blockHardwareBackButton:()=>p,startHardwareBackButton:()=>X});var h=S(5861);const p=()=>{document.addEventListener("backbutton",()=>{})},X=()=>{const K=document;let C=!1;K.addEventListener("backbutton",()=>{if(C)return;let oe=0,_e=[];const Le=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(ye,De){_e.push({priority:ye,handler:De,id:oe++})}}});K.dispatchEvent(Le);const ee=function(){var ye=(0,h.Z)(function*(De){try{if(De?.handler){const me=De.handler(Te);null!=me&&(yield me)}}catch(me){console.error(me)}});return function(me){return ye.apply(this,arguments)}}(),Te=()=>{if(_e.length>0){let ye={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};_e.forEach(De=>{De.priority>=ye.priority&&(ye=De)}),C=!0,_e=_e.filter(De=>De.id!==ye.id),ee(ye).then(()=>C=!1)}};Te()})},a=100,j=99},839:(zn,wt,S)=>{"use strict";S.d(wt,{a:()=>oe,b:()=>_e,c:()=>X,d:()=>Ye,e:()=>me,f:()=>De,g:()=>Le,h:()=>ye,i:()=>C,j:()=>Ae,k:()=>j,l:()=>Ce,m:()=>a,n:()=>Te,o:()=>de,p:()=>Ne,q:()=>Ge,r:()=>ee,s:()=>lt,t:()=>h,u:()=>Pe,v:()=>Be});const h=(ne,Ee=0)=>new Promise(xe=>{p(ne,Ee,xe)}),p=(ne,Ee=0,xe)=>{let je,Se;const Ve={passive:!0},Ht=()=>{je&&je()},cn=xn=>{(void 0===xn||ne===xn.target)&&(Ht(),xe(xn))};return ne&&(ne.addEventListener("webkitTransitionEnd",cn,Ve),ne.addEventListener("transitionend",cn,Ve),Se=setTimeout(cn,Ee+500),je=()=>{Se&&(clearTimeout(Se),Se=void 0),ne.removeEventListener("webkitTransitionEnd",cn,Ve),ne.removeEventListener("transitionend",cn,Ve)}),Ht},X=(ne,Ee)=>{ne.componentOnReady?ne.componentOnReady().then(xe=>Ee(xe)):ee(()=>Ee(ne))},a=ne=>void 0!==ne.componentOnReady,j=(ne,Ee=[])=>{const xe={};return Ee.forEach(je=>{ne.hasAttribute(je)&&(null!==ne.getAttribute(je)&&(xe[je]=ne.getAttribute(je)),ne.removeAttribute(je))}),xe},K=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],C=(ne,Ee)=>{let xe=K;return Ee&&Ee.length>0&&(xe=xe.filter(je=>!Ee.includes(je))),j(ne,xe)},oe=(ne,Ee,xe,je)=>{var Se;if(typeof window<"u"){const Ve=window,Xe=null===(Se=Ve?.Ionic)||void 0===Se?void 0:Se.config;if(Xe){const Ht=Xe.get("_ael");if(Ht)return Ht(ne,Ee,xe,je);if(Xe._ael)return Xe._ael(ne,Ee,xe,je)}}return ne.addEventListener(Ee,xe,je)},_e=(ne,Ee,xe,je)=>{var Se;if(typeof window<"u"){const Ve=window,Xe=null===(Se=Ve?.Ionic)||void 0===Se?void 0:Se.config;if(Xe){const Ht=Xe.get("_rel");if(Ht)return Ht(ne,Ee,xe,je);if(Xe._rel)return Xe._rel(ne,Ee,xe,je)}}return ne.removeEventListener(Ee,xe,je)},Le=(ne,Ee=ne)=>ne.shadowRoot||Ee,ee=ne=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ne):"function"==typeof requestAnimationFrame?requestAnimationFrame(ne):setTimeout(ne),Te=ne=>!!ne.shadowRoot&&!!ne.attachShadow,ye=ne=>{const Ee=ne.closest("ion-item");return Ee?Ee.querySelector("ion-label"):null},De=ne=>{if(ne.focus(),ne.classList.contains("ion-focusable")){const Ee=ne.closest("ion-app");Ee&&Ee.setFocus([ne])}},me=(ne,Ee)=>{let xe;const je=ne.getAttribute("aria-labelledby"),Se=ne.id;let Ve=null!==je&&""!==je.trim()?je:Ee+"-lbl",Xe=null!==je&&""!==je.trim()?document.getElementById(je):ye(ne);return Xe?(null===je&&(Xe.id=Ve),xe=Xe.textContent,Xe.setAttribute("aria-hidden","true")):""!==Se.trim()&&(Xe=document.querySelector(`label[for="${Se}"]`),Xe&&(""!==Xe.id?Ve=Xe.id:Xe.id=Ve=`${Se}-lbl`,xe=Xe.textContent)),{label:Xe,labelId:Ve,labelText:xe}},Ye=(ne,Ee,xe,je,Se)=>{if(ne||Te(Ee)){let Ve=Ee.querySelector("input.aux-input");Ve||(Ve=Ee.ownerDocument.createElement("input"),Ve.type="hidden",Ve.classList.add("aux-input"),Ee.appendChild(Ve)),Ve.disabled=Se,Ve.name=xe,Ve.value=je||""}},Ce=(ne,Ee,xe)=>Math.max(ne,Math.min(Ee,xe)),de=(ne,Ee)=>{if(!ne){const xe="ASSERT: "+Ee;throw console.error(xe),new Error(xe)}},Pe=ne=>ne.timeStamp||Date.now(),Be=ne=>{if(ne){const Ee=ne.changedTouches;if(Ee&&Ee.length>0){const xe=Ee[0];return{x:xe.clientX,y:xe.clientY}}if(void 0!==ne.pageX)return{x:ne.pageX,y:ne.pageY}}return{x:0,y:0}},Ne=ne=>{const Ee="rtl"===document.dir;switch(ne){case"start":return Ee;case"end":return!Ee;default:throw new Error(`"${ne}" is not a valid value for [side]. Use "start" or "end" instead.`)}},Ae=(ne,Ee)=>{const xe=ne._original||ne;return{_original:ne,emit:Ge(xe.emit.bind(xe),Ee)}},Ge=(ne,Ee=0)=>{let xe;return(...je)=>{clearTimeout(xe),xe=setTimeout(ne,Ee,...je)}},lt=(ne,Ee)=>{if(ne??(ne={}),Ee??(Ee={}),ne===Ee)return!0;const xe=Object.keys(ne);if(xe.length!==Object.keys(Ee).length)return!1;for(const je of xe)if(!(je in Ee)||ne[je]!==Ee[je])return!1;return!0}},1783:(zn,wt,S)=>{"use strict";S.d(wt,{m:()=>Te});var h=S(5861),p=S(6710),X=S(2124),a=S(839),j=S(3882),K=S(6410);const C=ye=>(0,K.c)().duration(ye?400:300),oe=ye=>{let De,me;const Ye=ye.width+8,Ce=(0,K.c)(),de=(0,K.c)();ye.isEndSide?(De=Ye+"px",me="0px"):(De=-Ye+"px",me="0px"),Ce.addElement(ye.menuInnerEl).fromTo("transform",`translateX(${De})`,`translateX(${me})`);const Be="ios"===(0,j.b)(ye),Ne=Be?.2:.25;return de.addElement(ye.backdropEl).fromTo("opacity",.01,Ne),C(Be).addAnimation([Ce,de])},_e=ye=>{let De,me;const Ye=(0,j.b)(ye),Ce=ye.width;ye.isEndSide?(De=-Ce+"px",me=Ce+"px"):(De=Ce+"px",me=-Ce+"px");const de=(0,K.c)().addElement(ye.menuInnerEl).fromTo("transform",`translateX(${me})`,"translateX(0px)"),Pe=(0,K.c)().addElement(ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${De})`),Be=(0,K.c)().addElement(ye.backdropEl).fromTo("opacity",.01,.32);return C("ios"===Ye).addAnimation([de,Pe,Be])},Le=ye=>{const De=(0,j.b)(ye),me=ye.width*(ye.isEndSide?-1:1)+"px",Ye=(0,K.c)().addElement(ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${me})`);return C("ios"===De).addAnimation(Ye)},Te=(()=>{const ye=new Map,De=[],me=function(){var ke=(0,h.Z)(function*(pe){const Oe=yield Ae(pe,!0);return!!Oe&&Oe.open()});return function(Oe){return ke.apply(this,arguments)}}(),Ye=function(){var ke=(0,h.Z)(function*(pe){const Oe=yield void 0!==pe?Ae(pe,!0):Ge();return void 0!==Oe&&Oe.close()});return function(Oe){return ke.apply(this,arguments)}}(),Ce=function(){var ke=(0,h.Z)(function*(pe){const Oe=yield Ae(pe,!0);return!!Oe&&Oe.toggle()});return function(Oe){return ke.apply(this,arguments)}}(),de=function(){var ke=(0,h.Z)(function*(pe,Oe){const ie=yield Ae(Oe);return ie&&(ie.disabled=!pe),ie});return function(Oe,ie){return ke.apply(this,arguments)}}(),Pe=function(){var ke=(0,h.Z)(function*(pe,Oe){const ie=yield Ae(Oe);return ie&&(ie.swipeGesture=pe),ie});return function(Oe,ie){return ke.apply(this,arguments)}}(),Be=function(){var ke=(0,h.Z)(function*(pe){if(null!=pe){const Oe=yield Ae(pe);return void 0!==Oe&&Oe.isOpen()}return void 0!==(yield Ge())});return function(Oe){return ke.apply(this,arguments)}}(),Ne=function(){var ke=(0,h.Z)(function*(pe){const Oe=yield Ae(pe);return!!Oe&&!Oe.disabled});return function(Oe){return ke.apply(this,arguments)}}(),Ae=function(){var ke=(0,h.Z)(function*(pe,Oe=!1){if(yield $t(),"start"===pe||"end"===pe){const it=De.filter(Kt=>Kt.side===pe&&!Kt.disabled);if(it.length>=1)return it.length>1&&Oe&&(0,p.p)(`menuController queried for a menu on the "${pe}" side, but ${it.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,it.map(Kt=>Kt.el)),it[0].el;const _t=De.filter(Kt=>Kt.side===pe);if(_t.length>=1)return _t.length>1&&Oe&&(0,p.p)(`menuController queried for a menu on the "${pe}" side, but ${_t.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,_t.map(Kt=>Kt.el)),_t[0].el}else if(null!=pe)return xn(it=>it.menuId===pe);return xn(it=>!it.disabled)||(De.length>0?De[0].el:void 0)});return function(Oe){return ke.apply(this,arguments)}}(),Ge=function(){var ke=(0,h.Z)(function*(){return yield $t(),Xe()});return function(){return ke.apply(this,arguments)}}(),lt=function(){var ke=(0,h.Z)(function*(){return yield $t(),Ht()});return function(){return ke.apply(this,arguments)}}(),ne=function(){var ke=(0,h.Z)(function*(){return yield $t(),cn()});return function(){return ke.apply(this,arguments)}}(),Ee=(ke,pe)=>{ye.set(ke,pe)},Se=function(){var ke=(0,h.Z)(function*(pe,Oe,ie){if(cn())return!1;if(Oe){const it=yield Ge();it&&pe.el!==it&&(yield it.setOpen(!1,!1))}return pe._setOpen(Oe,ie)});return function(Oe,ie,it){return ke.apply(this,arguments)}}(),Xe=()=>xn(ke=>ke._isOpen),Ht=()=>De.map(ke=>ke.el),cn=()=>De.some(ke=>ke.isAnimating),xn=ke=>{const pe=De.find(ke);if(void 0!==pe)return pe.el},$t=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(ke=>new Promise(pe=>(0,a.c)(ke,pe))));return Ee("reveal",Le),Ee("push",_e),Ee("overlay",oe),typeof document<"u"&&document.addEventListener("ionBackButton",ke=>{const pe=Xe();pe&&ke.detail.register(X.MENU_BACK_BUTTON_PRIORITY,()=>pe.close())}),{registerAnimation:Ee,get:Ae,getMenus:lt,getOpen:Ge,isEnabled:Ne,swipeGesture:Pe,isAnimating:ne,isOpen:Be,enable:de,toggle:Ce,close:Ye,open:me,_getOpenSync:Xe,_createAnimation:(ke,pe)=>{const Oe=ye.get(ke);if(!Oe)throw new Error("animation not registered");return Oe(pe)},_register:ke=>{De.indexOf(ke)<0&&De.push(ke)},_unregister:ke=>{const pe=De.indexOf(ke);pe>-1&&De.splice(pe,1)},_setOpen:Se}})()},6710:(zn,wt,S)=>{"use strict";S.d(wt,{a:()=>p,b:()=>X,p:()=>h});const h=(a,...j)=>console.warn(`[Ionic Warning]: ${a}`,...j),p=(a,...j)=>console.error(`[Ionic Error]: ${a}`,...j),X=(a,...j)=>console.error(`<${a.tagName.toLowerCase()}> must be used inside ${j.join(" or ")}.`)},448:(zn,wt,S)=>{"use strict";S.d(wt,{b:()=>K,c:()=>C,d:()=>oe,e:()=>ne,g:()=>je,l:()=>Ge,s:()=>Ee,t:()=>ee,w:()=>lt});var h=S(5861),p=S(5349),X=S(839);const K="ionViewWillLeave",C="ionViewDidLeave",oe="ionViewWillUnload",ee=Se=>new Promise((Ve,Xe)=>{(0,p.w)(()=>{Te(Se),ye(Se).then(Ht=>{Ht.animation&&Ht.animation.destroy(),De(Se),Ve(Ht)},Ht=>{De(Se),Xe(Ht)})})}),Te=Se=>{const Ve=Se.enteringEl,Xe=Se.leavingEl;xe(Ve,Xe,Se.direction),Se.showGoBack?Ve.classList.add("can-go-back"):Ve.classList.remove("can-go-back"),Ee(Ve,!1),Ve.style.setProperty("pointer-events","none"),Xe&&(Ee(Xe,!1),Xe.style.setProperty("pointer-events","none"))},ye=function(){var Se=(0,h.Z)(function*(Ve){const Xe=yield me(Ve);return Xe&&p.B.isBrowser?Ye(Xe,Ve):Ce(Ve)});return function(Xe){return Se.apply(this,arguments)}}(),De=Se=>{const Ve=Se.enteringEl,Xe=Se.leavingEl;Ve.classList.remove("ion-page-invisible"),Ve.style.removeProperty("pointer-events"),void 0!==Xe&&(Xe.classList.remove("ion-page-invisible"),Xe.style.removeProperty("pointer-events"))},me=function(){var Se=(0,h.Z)(function*(Ve){return Ve.leavingEl&&Ve.animated&&0!==Ve.duration?Ve.animationBuilder?Ve.animationBuilder:"ios"===Ve.mode?(yield Promise.resolve().then(S.bind(S,2619))).iosTransitionAnimation:(yield Promise.resolve().then(S.bind(S,9023))).mdTransitionAnimation:void 0});return function(Xe){return Se.apply(this,arguments)}}(),Ye=function(){var Se=(0,h.Z)(function*(Ve,Xe){yield de(Xe,!0);const Ht=Ve(Xe.baseEl,Xe);Ne(Xe.enteringEl,Xe.leavingEl);const cn=yield Be(Ht,Xe);return Xe.progressCallback&&Xe.progressCallback(void 0),cn&&Ae(Xe.enteringEl,Xe.leavingEl),{hasCompleted:cn,animation:Ht}});return function(Xe,Ht){return Se.apply(this,arguments)}}(),Ce=function(){var Se=(0,h.Z)(function*(Ve){const Xe=Ve.enteringEl,Ht=Ve.leavingEl;return yield de(Ve,!1),Ne(Xe,Ht),Ae(Xe,Ht),{hasCompleted:!0}});return function(Xe){return Se.apply(this,arguments)}}(),de=function(){var Se=(0,h.Z)(function*(Ve,Xe){(void 0!==Ve.deepWait?Ve.deepWait:Xe)&&(yield Promise.all([ne(Ve.enteringEl),ne(Ve.leavingEl)])),yield Pe(Ve.viewIsReady,Ve.enteringEl)});return function(Xe,Ht){return Se.apply(this,arguments)}}(),Pe=function(){var Se=(0,h.Z)(function*(Ve,Xe){Ve&&(yield Ve(Xe))});return function(Xe,Ht){return Se.apply(this,arguments)}}(),Be=(Se,Ve)=>{const Xe=Ve.progressCallback,Ht=new Promise(cn=>{Se.onFinish(xn=>cn(1===xn))});return Xe?(Se.progressStart(!0),Xe(Se)):Se.play(),Ht},Ne=(Se,Ve)=>{Ge(Ve,K),Ge(Se,"ionViewWillEnter")},Ae=(Se,Ve)=>{Ge(Se,"ionViewDidEnter"),Ge(Ve,C)},Ge=(Se,Ve)=>{if(Se){const Xe=new CustomEvent(Ve,{bubbles:!1,cancelable:!1});Se.dispatchEvent(Xe)}},lt=()=>new Promise(Se=>(0,X.r)(()=>(0,X.r)(()=>Se()))),ne=function(){var Se=(0,h.Z)(function*(Ve){const Xe=Ve;if(Xe){if(null!=Xe.componentOnReady){if(null!=(yield Xe.componentOnReady()))return}else if(null!=Xe.__registerHost)return void(yield new Promise(cn=>(0,X.r)(cn)));yield Promise.all(Array.from(Xe.children).map(ne))}});return function(Xe){return Se.apply(this,arguments)}}(),Ee=(Se,Ve)=>{Ve?(Se.setAttribute("aria-hidden","true"),Se.classList.add("ion-page-hidden")):(Se.hidden=!1,Se.removeAttribute("aria-hidden"),Se.classList.remove("ion-page-hidden"))},xe=(Se,Ve,Xe)=>{void 0!==Se&&(Se.style.zIndex="back"===Xe?"99":"101"),void 0!==Ve&&(Ve.style.zIndex="100")},je=Se=>Se.classList.contains("ion-page")?Se:Se.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Se},6225:(zn,wt,S)=>{"use strict";S.d(wt,{d:()=>p,w:()=>h});const h=typeof window<"u"?window:void 0,p=typeof document<"u"?document:void 0},5349:(zn,wt,S)=>{"use strict";S.d(wt,{B:()=>Te,H:()=>xn,a:()=>lr,b:()=>ho,c:()=>Mn,d:()=>en,e:()=>Kn,f:()=>li,g:()=>fn,h:()=>Ht,i:()=>ae,j:()=>ye,r:()=>Ci,w:()=>Xi});var h=S(5861);let a,j,K,C=!1,oe=!1,_e=!1,Le=!1,ee=!1;const Te={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},ye=J=>{const be=new URL(J,Wn.$resourcesUrl$);return be.origin!==Xn.location.origin?be.href:be.pathname},Be="s-id",Ne="sty-id",lt="slot-fb{display:contents}slot-fb[hidden]{display:none}",ne="http://www.w3.org/1999/xlink",Ee={},Ve=J=>"object"==(J=typeof J)||"function"===J;function Xe(J){var be,ft,mt;return null!==(mt=null===(ft=null===(be=J.head)||void 0===be?void 0:be.querySelector('meta[name="csp-nonce"]'))||void 0===ft?void 0:ft.getAttribute("content"))&&void 0!==mt?mt:void 0}const Ht=(J,be,...ft)=>{let mt=null,yn=null,jt=null,Fn=!1,$n=!1;const Un=[],Ln=Ri=>{for(let Gi=0;GiRi[Gi]).join(" "))}}if("function"==typeof J)return J(null===be?{}:be,Un,ke);const ci=cn(J,null);return ci.$attrs$=be,Un.length>0&&(ci.$children$=Un),ci.$key$=yn,ci.$name$=jt,ci},cn=(J,be)=>({$flags$:0,$tag$:J,$text$:be,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),xn={},ke={forEach:(J,be)=>J.map(pe).forEach(be),map:(J,be)=>J.map(pe).map(be).map(Oe)},pe=J=>({vattrs:J.$attrs$,vchildren:J.$children$,vkey:J.$key$,vname:J.$name$,vtag:J.$tag$,vtext:J.$text$}),Oe=J=>{if("function"==typeof J.vtag){const ft=Object.assign({},J.vattrs);return J.vkey&&(ft.key=J.vkey),J.vname&&(ft.name=J.vname),Ht(J.vtag,ft,...J.vchildren||[])}const be=cn(J.vtag,J.vtext);return be.$attrs$=J.vattrs,be.$children$=J.vchildren,be.$key$=J.vkey,be.$name$=J.vname,be},it=(J,be,ft,mt,yn,jt,Fn)=>{let $n,Un,Ln,ci;if(1===jt.nodeType){for($n=jt.getAttribute("c-id"),$n&&(Un=$n.split("."),(Un[0]===Fn||"0"===Un[0])&&(Ln={$flags$:0,$hostId$:Un[0],$nodeId$:Un[1],$depth$:Un[2],$index$:Un[3],$tag$:jt.tagName.toLowerCase(),$elm$:jt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},be.push(Ln),jt.removeAttribute("c-id"),J.$children$||(J.$children$=[]),J.$children$[Ln.$index$]=Ln,J=Ln,mt&&"0"===Ln.$depth$&&(mt[Ln.$index$]=Ln.$elm$))),ci=jt.childNodes.length-1;ci>=0;ci--)it(J,be,ft,mt,yn,jt.childNodes[ci],Fn);if(jt.shadowRoot)for(ci=jt.shadowRoot.childNodes.length-1;ci>=0;ci--)it(J,be,ft,mt,yn,jt.shadowRoot.childNodes[ci],Fn)}else if(8===jt.nodeType)Un=jt.nodeValue.split("."),(Un[1]===Fn||"0"===Un[1])&&($n=Un[0],Ln={$flags$:0,$hostId$:Un[1],$nodeId$:Un[2],$depth$:Un[3],$index$:Un[4],$elm$:jt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===$n?(Ln.$elm$=jt.nextSibling,Ln.$elm$&&3===Ln.$elm$.nodeType&&(Ln.$text$=Ln.$elm$.textContent,be.push(Ln),jt.remove(),J.$children$||(J.$children$=[]),J.$children$[Ln.$index$]=Ln,mt&&"0"===Ln.$depth$&&(mt[Ln.$index$]=Ln.$elm$))):Ln.$hostId$===Fn&&("s"===$n?(Ln.$tag$="slot",jt["s-sn"]=Un[5]?Ln.$name$=Un[5]:"",jt["s-sr"]=!0,mt&&(Ln.$elm$=ui.createElement(Ln.$tag$),Ln.$name$&&Ln.$elm$.setAttribute("name",Ln.$name$),jt.parentNode.insertBefore(Ln.$elm$,jt),jt.remove(),"0"===Ln.$depth$&&(mt[Ln.$index$]=Ln.$elm$)),ft.push(Ln),J.$children$||(J.$children$=[]),J.$children$[Ln.$index$]=Ln):"r"===$n&&(mt?jt.remove():(yn["s-cr"]=jt,jt["s-cn"]=!0))));else if(J&&"style"===J.$tag$){const Ri=cn(null,jt.textContent);Ri.$elm$=jt,Ri.$index$="0",J.$children$=[Ri]}},_t=(J,be)=>{if(1===J.nodeType){let ft=0;for(;ftIt.push(J),fn=J=>qi(J).$modeName$,li=J=>qi(J).$hostElement$,en=(J,be,ft)=>{const mt=li(J);return{emit:yn=>Dt(mt,be,{bubbles:!!(4&ft),composed:!!(2&ft),cancelable:!!(1&ft),detail:yn})}},Dt=(J,be,ft)=>{const mt=Wn.ce(be,ft);return J.dispatchEvent(mt),mt},Ie=new WeakMap,Ct=(J,be,ft)=>{let mt=wn.get(J);we&&ft?(mt=mt||new CSSStyleSheet,"string"==typeof mt?mt=be:mt.replaceSync(be)):mt=be,wn.set(J,mt)},on=(J,be,ft)=>{var mt;const yn=Vn(be,ft),jt=wn.get(yn);if(J=11===J.nodeType?J:ui,jt)if("string"==typeof jt){let $n,Fn=Ie.get(J=J.head||J);if(Fn||Ie.set(J,Fn=new Set),!Fn.has(yn)){if(J.host&&($n=J.querySelector(`[${Ne}="${yn}"]`)))$n.innerHTML=jt;else{$n=ui.createElement("style"),$n.innerHTML=jt;const Un=null!==(mt=Wn.$nonce$)&&void 0!==mt?mt:Xe(ui);null!=Un&&$n.setAttribute("nonce",Un),J.insertBefore($n,J.querySelector("link"))}4&be.$flags$&&($n.innerHTML+=lt),Fn&&Fn.add(yn)}}else J.adoptedStyleSheets.includes(jt)||(J.adoptedStyleSheets=[...J.adoptedStyleSheets,jt]);return yn},Vn=(J,be)=>"sc-"+(be&&32&J.$flags$?J.$tagName$+"-"+be:J.$tagName$),Ut=J=>J.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Hn=(J,be,ft,mt,yn,jt)=>{if(ft!==mt){let Fn=Yt(J,be),$n=be.toLowerCase();if("class"===be){const Un=J.classList,Ln=Nt(ft),ci=Nt(mt);Un.remove(...Ln.filter(Ri=>Ri&&!ci.includes(Ri))),Un.add(...ci.filter(Ri=>Ri&&!Ln.includes(Ri)))}else if("style"===be){for(const Un in ft)(!mt||null==mt[Un])&&(Un.includes("-")?J.style.removeProperty(Un):J.style[Un]="");for(const Un in mt)(!ft||mt[Un]!==ft[Un])&&(Un.includes("-")?J.style.setProperty(Un,mt[Un]):J.style[Un]=mt[Un])}else if("key"!==be)if("ref"===be)mt&&mt(J);else if(Fn||"o"!==be[0]||"n"!==be[1]){const Un=Ve(mt);if((Fn||Un&&null!==mt)&&!yn)try{if(J.tagName.includes("-"))J[be]=mt;else{const ci=mt??"";"list"===be?Fn=!1:(null==ft||J[be]!=ci)&&(J[be]=ci)}}catch{}let Ln=!1;$n!==($n=$n.replace(/^xlink\:?/,""))&&(be=$n,Ln=!0),null==mt||!1===mt?(!1!==mt||""===J.getAttribute(be))&&(Ln?J.removeAttributeNS(ne,be):J.removeAttribute(be)):(!Fn||4&jt||yn)&&!Un&&(mt=!0===mt?"":mt,Ln?J.setAttributeNS(ne,be,mt):J.setAttribute(be,mt))}else if(be="-"===be[2]?be.slice(3):Yt(Xn,$n)?$n.slice(2):$n[2]+be.slice(3),ft||mt){const Un=be.endsWith(Xt);be=be.replace(Tn,""),ft&&Wn.rel(J,be,ft,Un),mt&&Wn.ael(J,be,mt,Un)}}},qe=/\s/,Nt=J=>J?J.split(qe):[],Xt="Capture",Tn=new RegExp(Xt+"$"),oi=(J,be,ft,mt)=>{const yn=11===be.$elm$.nodeType&&be.$elm$.host?be.$elm$.host:be.$elm$,jt=J&&J.$attrs$||Ee,Fn=be.$attrs$||Ee;for(mt in jt)mt in Fn||Hn(yn,mt,jt[mt],void 0,ft,be.$flags$);for(mt in Fn)Hn(yn,mt,jt[mt],Fn[mt],ft,be.$flags$)},xi=(J,be,ft,mt)=>{var yn;const jt=be.$children$[ft];let $n,Un,Ln,Fn=0;if(C||(_e=!0,"slot"===jt.$tag$&&(a&&mt.classList.add(a+"-s"),jt.$flags$|=jt.$children$?2:1)),null!==jt.$text$)$n=jt.$elm$=ui.createTextNode(jt.$text$);else if(1&jt.$flags$)$n=jt.$elm$=ui.createTextNode("");else{if(Le||(Le="svg"===jt.$tag$),$n=jt.$elm$=ui.createElementNS(Le?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&jt.$flags$?"slot-fb":jt.$tag$),Le&&"foreignObject"===jt.$tag$&&(Le=!1),oi(null,jt,Le),(J=>null!=J)(a)&&$n["s-si"]!==a&&$n.classList.add($n["s-si"]=a),jt.$children$)for(Fn=0;Fn{var ft;Wn.$flags$|=1;const mt=J.childNodes;for(let yn=mt.length-1;yn>=0;yn--){const jt=mt[yn];jt["s-hn"]!==K&&jt["s-ol"]&&(pn(jt).insertBefore(jt,Bi(jt)),jt["s-ol"].remove(),jt["s-ol"]=void 0,jt["s-sh"]=void 0,1===jt.nodeType&&jt.setAttribute("slot",null!==(ft=jt["s-sn"])&&void 0!==ft?ft:""),_e=!0),be&&Oi(jt,be)}Wn.$flags$&=-2},gr=(J,be,ft,mt,yn,jt)=>{let $n,Fn=J["s-cr"]&&J["s-cr"].parentNode||J;for(Fn.shadowRoot&&Fn.tagName===K&&(Fn=Fn.shadowRoot);yn<=jt;++yn)mt[yn]&&($n=xi(null,ft,yn,J),$n&&(mt[yn].$elm$=$n,Fn.insertBefore($n,Bi(be))))},ki=(J,be,ft)=>{for(let mt=be;mt<=ft;++mt){const yn=J[mt];if(yn){const jt=yn.$elm$;se(yn),jt&&(oe=!0,jt["s-ol"]?jt["s-ol"].remove():Oi(jt,!0),jt.remove())}}},_n=(J,be)=>J.$tag$===be.$tag$&&("slot"===J.$tag$?J.$name$===be.$name$:J.$key$===be.$key$),Bi=J=>J&&J["s-ol"]||J,pn=J=>(J["s-ol"]?J["s-ol"]:J).parentNode,sn=(J,be)=>{const ft=be.$elm$=J.$elm$,mt=J.$children$,yn=be.$children$,jt=be.$tag$,Fn=be.$text$;let $n;null===Fn?(Le="svg"===jt||"foreignObject"!==jt&&Le,"slot"===jt||oi(J,be,Le),null!==mt&&null!==yn?((J,be,ft,mt)=>{let ur,R,yn=0,jt=0,Fn=0,$n=0,Un=be.length-1,Ln=be[0],ci=be[Un],Ri=mt.length-1,Gi=mt[0],or=mt[Ri];for(;yn<=Un&&jt<=Ri;)if(null==Ln)Ln=be[++yn];else if(null==ci)ci=be[--Un];else if(null==Gi)Gi=mt[++jt];else if(null==or)or=mt[--Ri];else if(_n(Ln,Gi))sn(Ln,Gi),Ln=be[++yn],Gi=mt[++jt];else if(_n(ci,or))sn(ci,or),ci=be[--Un],or=mt[--Ri];else if(_n(Ln,or))("slot"===Ln.$tag$||"slot"===or.$tag$)&&Oi(Ln.$elm$.parentNode,!1),sn(Ln,or),J.insertBefore(Ln.$elm$,ci.$elm$.nextSibling),Ln=be[++yn],or=mt[--Ri];else if(_n(ci,Gi))("slot"===Ln.$tag$||"slot"===or.$tag$)&&Oi(ci.$elm$.parentNode,!1),sn(ci,Gi),J.insertBefore(ci.$elm$,Ln.$elm$),ci=be[--Un],Gi=mt[++jt];else{for(Fn=-1,$n=yn;$n<=Un;++$n)if(be[$n]&&null!==be[$n].$key$&&be[$n].$key$===Gi.$key$){Fn=$n;break}Fn>=0?(R=be[Fn],R.$tag$!==Gi.$tag$?ur=xi(be&&be[jt],ft,Fn,J):(sn(R,Gi),be[Fn]=void 0,ur=R.$elm$),Gi=mt[++jt]):(ur=xi(be&&be[jt],ft,jt,J),Gi=mt[++jt]),ur&&pn(Ln.$elm$).insertBefore(ur,Bi(Ln.$elm$))}yn>Un?gr(J,null==mt[Ri+1]?null:mt[Ri+1].$elm$,ft,mt,jt,Ri):jt>Ri&&ki(be,yn,Un)})(ft,mt,be,yn):null!==yn?(null!==J.$text$&&(ft.textContent=""),gr(ft,null,be,yn,0,yn.length-1)):null!==mt&&ki(mt,0,mt.length-1),Le&&"svg"===jt&&(Le=!1)):($n=ft["s-cr"])?$n.parentNode.textContent=Fn:J.$text$!==Fn&&(ft.data=Fn)},Cn=J=>{const be=J.childNodes;for(const ft of be)if(1===ft.nodeType){if(ft["s-sr"]){const mt=ft["s-sn"];ft.hidden=!1;for(const yn of be)if(yn!==ft)if(yn["s-hn"]!==ft["s-hn"]||""!==mt){if(1===yn.nodeType&&(mt===yn.getAttribute("slot")||mt===yn["s-sn"])){ft.hidden=!0;break}}else if(1===yn.nodeType||3===yn.nodeType&&""!==yn.textContent.trim()){ft.hidden=!0;break}}Cn(ft)}},$i=[],ct=J=>{let be,ft,mt;for(const yn of J.childNodes){if(yn["s-sr"]&&(be=yn["s-cr"])&&be.parentNode){ft=be.parentNode.childNodes;const jt=yn["s-sn"];for(mt=ft.length-1;mt>=0;mt--)if(be=ft[mt],!be["s-cn"]&&!be["s-nr"]&&be["s-hn"]!==yn["s-hn"])if(ge(be,jt)){let Fn=$i.find($n=>$n.$nodeToRelocate$===be);oe=!0,be["s-sn"]=be["s-sn"]||jt,Fn?(Fn.$nodeToRelocate$["s-sh"]=yn["s-hn"],Fn.$slotRefNode$=yn):(be["s-sh"]=yn["s-hn"],$i.push({$slotRefNode$:yn,$nodeToRelocate$:be})),be["s-sr"]&&$i.map($n=>{ge($n.$nodeToRelocate$,be["s-sn"])&&(Fn=$i.find(Un=>Un.$nodeToRelocate$===be),Fn&&!$n.$slotRefNode$&&($n.$slotRefNode$=Fn.$slotRefNode$))})}else $i.some(Fn=>Fn.$nodeToRelocate$===be)||$i.push({$nodeToRelocate$:be})}1===yn.nodeType&&ct(yn)}},ge=(J,be)=>1===J.nodeType?null===J.getAttribute("slot")&&""===be||J.getAttribute("slot")===be:J["s-sn"]===be||""===be,se=J=>{J.$attrs$&&J.$attrs$.ref&&J.$attrs$.ref(null),J.$children$&&J.$children$.map(se)},yt=(J,be)=>{be&&!J.$onRenderResolve$&&be["s-p"]&&be["s-p"].push(new Promise(ft=>J.$onRenderResolve$=ft))},Ot=(J,be)=>{if(J.$flags$|=16,!(4&J.$flags$))return yt(J,J.$ancestorComponent$),Xi(()=>Gt(J,be));J.$flags$|=512},Gt=(J,be)=>{const mt=J.$lazyInstance$;let yn;return be&&(J.$flags$|=256,J.$queuedListeners$&&(J.$queuedListeners$.map(([jt,Fn])=>G(mt,jt,Fn)),J.$queuedListeners$=void 0),yn=G(mt,"componentWillLoad")),yn=Vt(yn,()=>G(mt,"componentWillRender")),Vt(yn,()=>Jt(J,mt,be))},Vt=(J,be)=>Et(J)?J.then(be):be(),Et=J=>J instanceof Promise||J&&J.then&&"function"==typeof J.then,Jt=function(){var J=(0,h.Z)(function*(be,ft,mt){var yn;const jt=be.$hostElement$,$n=jt["s-rc"];mt&&(J=>{const be=J.$cmpMeta$,ft=J.$hostElement$,mt=be.$flags$,jt=on(ft.shadowRoot?ft.shadowRoot:ft.getRootNode(),be,J.$modeName$);10&mt&&(ft["s-sc"]=jt,ft.classList.add(jt+"-h"),2&mt&&ft.classList.add(jt+"-s"))})(be);Bn(be,ft,jt,mt),$n&&($n.map(Ln=>Ln()),jt["s-rc"]=void 0);{const Ln=null!==(yn=jt["s-p"])&&void 0!==yn?yn:[],ci=()=>mn(be);0===Ln.length?ci():(Promise.all(Ln).then(ci),be.$flags$|=4,Ln.length=0)}});return function(ft,mt,yn){return J.apply(this,arguments)}}(),Bn=(J,be,ft,mt)=>{try{be=be.render&&be.render(),J.$flags$&=-17,J.$flags$|=2,((J,be,ft=!1)=>{var mt,yn;const jt=J.$hostElement$,Fn=J.$cmpMeta$,$n=J.$vnode$||cn(null,null),Un=(J=>J&&J.$tag$===xn)(be)?be:Ht(null,null,be);if(K=jt.tagName,Fn.$attrsToReflect$&&(Un.$attrs$=Un.$attrs$||{},Fn.$attrsToReflect$.map(([Ln,ci])=>Un.$attrs$[ci]=jt[Ln])),ft&&Un.$attrs$)for(const Ln of Object.keys(Un.$attrs$))jt.hasAttribute(Ln)&&!["key","ref","style","class"].includes(Ln)&&(Un.$attrs$[Ln]=jt[Ln]);if(Un.$tag$=null,Un.$flags$|=4,J.$vnode$=Un,Un.$elm$=$n.$elm$=jt.shadowRoot||jt,a=jt["s-sc"],j=jt["s-cr"],C=0!=(1&Fn.$flags$),oe=!1,sn($n,Un),Wn.$flags$|=1,_e){ct(Un.$elm$);for(const Ln of $i){const ci=Ln.$nodeToRelocate$;if(!ci["s-ol"]){const Ri=ui.createTextNode("");Ri["s-nr"]=ci,ci.parentNode.insertBefore(ci["s-ol"]=Ri,ci)}}for(const Ln of $i){const ci=Ln.$nodeToRelocate$,Ri=Ln.$slotRefNode$;if(Ri){const Gi=Ri.parentNode;let or=Ri.nextSibling;{let ur=null===(mt=ci["s-ol"])||void 0===mt?void 0:mt.previousSibling;for(;ur;){let R=null!==(yn=ur["s-nr"])&&void 0!==yn?yn:null;if(R&&R["s-sn"]===ci["s-sn"]&&Gi===R.parentNode&&(R=R.nextSibling,!R||!R["s-nr"])){or=R;break}ur=ur.previousSibling}}(!or&&Gi!==ci.parentNode||ci.nextSibling!==or)&&ci!==or&&(!ci["s-hn"]&&ci["s-ol"]&&(ci["s-hn"]=ci["s-ol"].parentNode.nodeName),Gi.insertBefore(ci,or))}else 1===ci.nodeType&&(ci.hidden=!0)}}oe&&Cn(Un.$elm$),Wn.$flags$&=-2,$i.length=0})(J,be,mt)}catch(yn){Tt(yn,J.$hostElement$)}return null},mn=J=>{const ft=J.$hostElement$,yn=J.$lazyInstance$,jt=J.$ancestorComponent$;G(yn,"componentDidRender"),64&J.$flags$?G(yn,"componentDidUpdate"):(J.$flags$|=64,ze(ft),G(yn,"componentDidLoad"),J.$onReadyResolve$(ft),jt||ht()),J.$onInstanceResolve$(ft),J.$onRenderResolve$&&(J.$onRenderResolve$(),J.$onRenderResolve$=void 0),512&J.$flags$&&di(()=>Ot(J,!1)),J.$flags$&=-517},ae=J=>{{const be=qi(J),ft=be.$hostElement$.isConnected;return ft&&2==(18&be.$flags$)&&Ot(be,!1),ft}},ht=J=>{ze(ui.documentElement),di(()=>Dt(Xn,"appload",{detail:{namespace:"ionic"}}))},G=(J,be,ft)=>{if(J&&J[be])try{return J[be](ft)}catch(mt){Tt(mt)}},ze=J=>J.classList.add("hydrated"),Dn=(J,be,ft)=>{var mt;if(be.$members$){J.watchers&&(be.$watchers$=J.watchers);const yn=Object.entries(be.$members$),jt=J.prototype;if(yn.map(([Fn,[$n]])=>{31&$n||2&ft&&32&$n?Object.defineProperty(jt,Fn,{get(){return((J,be)=>qi(this).$instanceValues$.get(be))(0,Fn)},set(Un){((J,be,ft,mt)=>{const yn=qi(J),jt=yn.$hostElement$,Fn=yn.$instanceValues$.get(be),$n=yn.$flags$,Un=yn.$lazyInstance$;ft=((J,be)=>null==J||Ve(J)?J:4&be?"false"!==J&&(""===J||!!J):2&be?parseFloat(J):1&be?String(J):J)(ft,mt.$members$[be][0]);const Ln=Number.isNaN(Fn)&&Number.isNaN(ft);if((!(8&$n)||void 0===Fn)&&ft!==Fn&&!Ln&&(yn.$instanceValues$.set(be,ft),Un)){if(mt.$watchers$&&128&$n){const Ri=mt.$watchers$[be];Ri&&Ri.map(Gi=>{try{Un[Gi](ft,Fn,be)}catch(or){Tt(or,jt)}})}2==(18&$n)&&Ot(yn,!1)}})(this,Fn,Un,be)},configurable:!0,enumerable:!0}):1&ft&&64&$n&&Object.defineProperty(jt,Fn,{value(...Un){const Ln=qi(this);return Ln.$onInstancePromise$.then(()=>Ln.$lazyInstance$[Fn](...Un))}})}),1&ft){const Fn=new Map;jt.attributeChangedCallback=function($n,Un,Ln){Wn.jmp(()=>{const ci=Fn.get($n);if(this.hasOwnProperty(ci))Ln=this[ci],delete this[ci];else{if(jt.hasOwnProperty(ci)&&"number"==typeof this[ci]&&this[ci]==Ln)return;if(null==ci){const Ri=qi(this),Gi=Ri?.$flags$;if(!(8&Gi)&&128&Gi&&Ln!==Un){const or=Ri.$lazyInstance$,ur=be.$watchers$[$n];ur?.forEach(R=>{null!=or[R]&&or[R].call(or,Ln,Un,$n)})}return}}this[ci]=(null!==Ln||"boolean"!=typeof this[ci])&&Ln})},J.observedAttributes=Array.from(new Set([...Object.keys(null!==(mt=be.$watchers$)&&void 0!==mt?mt:{}),...yn.filter(([$n,Un])=>15&Un[0]).map(([$n,Un])=>{const Ln=Un[1]||$n;return Fn.set(Ln,$n),512&Un[0]&&be.$attrsToReflect$.push([$n,Ln]),Ln})]))}}return J},gi=function(){var J=(0,h.Z)(function*(be,ft,mt,yn){let jt;if(!(32&ft.$flags$)){ft.$flags$|=32;{if(jt=Qt(mt),jt.then){const Ln=()=>{};jt=yield jt,Ln()}jt.isProxied||(mt.$watchers$=jt.watchers,Dn(jt,mt,2),jt.isProxied=!0);const Un=()=>{};ft.$flags$|=8;try{new jt(ft)}catch(Ln){Tt(Ln)}ft.$flags$&=-9,ft.$flags$|=128,Un(),Mi(ft.$lazyInstance$)}if(jt.style){let Un=jt.style;"string"!=typeof Un&&(Un=Un[ft.$modeName$=(J=>It.map(be=>be(J)).find(be=>!!be))(be)]);const Ln=Vn(mt,ft.$modeName$);if(!wn.has(Ln)){const ci=()=>{};Ct(Ln,Un,!!(1&mt.$flags$)),ci()}}}const Fn=ft.$ancestorComponent$,$n=()=>Ot(ft,!0);Fn&&Fn["s-rc"]?Fn["s-rc"].push($n):$n()});return function(ft,mt,yn,jt){return J.apply(this,arguments)}}(),Mi=J=>{G(J,"connectedCallback")},yr=J=>{const be=J["s-cr"]=ui.createComment("");be["s-cn"]=!0,J.insertBefore(be,J.firstChild)},Ui=J=>{G(J,"disconnectedCallback")},Fr=function(){var J=(0,h.Z)(function*(be){if(!(1&Wn.$flags$)){const ft=qi(be);ft.$rmListeners$&&(ft.$rmListeners$.map(mt=>mt()),ft.$rmListeners$=void 0),ft?.$lazyInstance$?Ui(ft.$lazyInstance$):ft?.$onReadyPromise$&&ft.$onReadyPromise$.then(()=>Ui(ft.$lazyInstance$))}});return function(ft){return J.apply(this,arguments)}}(),ho=(J,be={})=>{var ft;const yn=[],jt=be.exclude||[],Fn=Xn.customElements,$n=ui.head,Un=$n.querySelector("meta[charset]"),Ln=ui.createElement("style"),ci=[],Ri=ui.querySelectorAll(`[${Ne}]`);let Gi,or=!0,ur=0;for(Object.assign(Wn,be),Wn.$resourcesUrl$=new URL(be.resourcesUrl||"./",ui.baseURI).href,Wn.$flags$|=2;ur{$e[1].map(H=>{var Ze;const Bt={$flags$:H[0],$tagName$:H[1],$members$:H[2],$listeners$:H[3]};4&Bt.$flags$&&(R=!0),Bt.$members$=H[2],Bt.$listeners$=H[3],Bt.$attrsToReflect$=[],Bt.$watchers$=null!==(Ze=H[4])&&void 0!==Ze?Ze:{};const Vi=Bt.$tagName$,Tr=class extends HTMLElement{constructor(ji){super(ji),Kr(ji=this,Bt),1&Bt.$flags$&&ji.attachShadow({mode:"open",delegatesFocus:!!(16&Bt.$flags$)})}connectedCallback(){Gi&&(clearTimeout(Gi),Gi=null),or?ci.push(this):Wn.jmp(()=>(J=>{if(!(1&Wn.$flags$)){const be=qi(J),ft=be.$cmpMeta$,mt=()=>{};if(1&be.$flags$)Do(J,be,ft.$listeners$),be?.$lazyInstance$?Mi(be.$lazyInstance$):be?.$onReadyPromise$&&be.$onReadyPromise$.then(()=>Mi(be.$lazyInstance$));else{let yn;if(be.$flags$|=1,yn=J.getAttribute(Be),yn){if(1&ft.$flags$){const jt=on(J.shadowRoot,ft,J.getAttribute("s-mode"));J.classList.remove(jt+"-h",jt+"-s")}((J,be,ft,mt)=>{const jt=J.shadowRoot,Fn=[],Un=jt?[]:null,Ln=mt.$vnode$=cn(be,null);Wn.$orgLocNodes$||_t(ui.body,Wn.$orgLocNodes$=new Map),J[Be]=ft,J.removeAttribute(Be),it(Ln,Fn,[],Un,J,J,ft),Fn.map(ci=>{const Ri=ci.$hostId$+"."+ci.$nodeId$,Gi=Wn.$orgLocNodes$.get(Ri),or=ci.$elm$;Gi&&Je&&""===Gi["s-en"]&&Gi.parentNode.insertBefore(or,Gi.nextSibling),jt||(or["s-hn"]=be,Gi&&(or["s-ol"]=Gi,or["s-ol"]["s-nr"]=or)),Wn.$orgLocNodes$.delete(Ri)}),jt&&Un.map(ci=>{ci&&jt.appendChild(ci)})})(J,ft.$tagName$,yn,be)}yn||12&ft.$flags$&&yr(J);{let jt=J;for(;jt=jt.parentNode||jt.host;)if(1===jt.nodeType&&jt.hasAttribute("s-id")&&jt["s-p"]||jt["s-p"]){yt(be,be.$ancestorComponent$=jt);break}}ft.$members$&&Object.entries(ft.$members$).map(([jt,[Fn]])=>{if(31&Fn&&J.hasOwnProperty(jt)){const $n=J[jt];delete J[jt],J[jt]=$n}}),gi(J,be,ft)}mt()}})(this))}disconnectedCallback(){Wn.jmp(()=>Fr(this))}componentOnReady(){return qi(this).$onReadyPromise$}};Bt.$lazyBundleId$=$e[0],!jt.includes(Vi)&&!Fn.get(Vi)&&(yn.push(Vi),Fn.define(Vi,Dn(Tr,Bt,1)))})}),R&&(Ln.innerHTML+=lt),Ln.innerHTML+=yn+"{visibility:hidden}.hydrated{visibility:inherit}",Ln.innerHTML.length){Ln.setAttribute("data-styles",""),$n.insertBefore(Ln,Un?Un.nextSibling:$n.firstChild);const $e=null!==(ft=Wn.$nonce$)&&void 0!==ft?ft:Xe(ui);null!=$e&&Ln.setAttribute("nonce",$e)}or=!1,ci.length?ci.map($e=>$e.connectedCallback()):Wn.jmp(()=>Gi=setTimeout(ht,30))},Do=(J,be,ft,mt)=>{ft&&ft.map(([yn,jt,Fn])=>{const $n=Zi(J,yn),Un=Io(be,Fn),Ln=ao(yn);Wn.ael($n,jt,Un,Ln),(be.$rmListeners$=be.$rmListeners$||[]).push(()=>Wn.rel($n,jt,Un,Ln))})},Io=(J,be)=>ft=>{try{256&J.$flags$?J.$lazyInstance$[be](ft):(J.$queuedListeners$=J.$queuedListeners$||[]).push([be,ft])}catch(mt){Tt(mt)}},Zi=(J,be)=>4&be?ui:8&be?Xn:16&be?ui.body:J,ao=J=>0!=(2&J),xo=new WeakMap,qi=J=>xo.get(J),Ci=(J,be)=>xo.set(be.$lazyInstance$=J,be),Kr=(J,be)=>{const ft={$flags$:0,$hostElement$:J,$cmpMeta$:be,$instanceValues$:new Map};return ft.$onInstancePromise$=new Promise(mt=>ft.$onInstanceResolve$=mt),ft.$onReadyPromise$=new Promise(mt=>ft.$onReadyResolve$=mt),J["s-p"]=[],J["s-rc"]=[],Do(J,ft,be.$listeners$),xo.set(J,ft)},Yt=(J,be)=>be in J,Tt=(J,be)=>(0,console.error)(J,be),Mt=new Map,Qt=(J,be,ft)=>{const mt=J.$tagName$.replace(/-/g,"_"),yn=J.$lazyBundleId$,jt=Mt.get(yn);return jt?jt[mt]:S(863)(`./${yn}.entry.js`).then(Fn=>(Mt.set(yn,Fn),Fn[mt]),Tt)},wn=new Map,It=[],Xn=typeof window<"u"?window:{},ui=Xn.document||{head:{}},Wn={$flags$:0,$resourcesUrl$:"",jmp:J=>J(),raf:J=>requestAnimationFrame(J),ael:(J,be,ft,mt)=>J.addEventListener(be,ft,mt),rel:(J,be,ft,mt)=>J.removeEventListener(be,ft,mt),ce:(J,be)=>new CustomEvent(J,be)},lr=J=>{Object.assign(Wn,J)},Je=!0,we=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),ut=[],dt=[],Lt=(J,be)=>ft=>{J.push(ft),ee||(ee=!0,be&&4&Wn.$flags$?di(ti):Wn.raf(ti))},gn=J=>{for(let be=0;be{gn(ut),gn(dt),(ee=ut.length>0)&&Wn.raf(ti)},di=J=>Promise.resolve(void 0).then(J),Kn=Lt(ut,!1),Xi=Lt(dt,!0)},9203:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>_e});var h=S(619);const p=(ye,De,me,Ye)=>{const Ce=X(ye)?{capture:!!Ye.capture,passive:!!Ye.passive}:!!Ye.capture;let de,Pe;return ye.__zone_symbol__addEventListener?(de="__zone_symbol__addEventListener",Pe="__zone_symbol__removeEventListener"):(de="addEventListener",Pe="removeEventListener"),ye[de](De,me,Ce),()=>{ye[Pe](De,me,Ce)}},X=ye=>{if(void 0===a)try{const De=Object.defineProperty({},"passive",{get:()=>{a=!0}});ye.addEventListener("optsTest",()=>{},De)}catch{a=!1}return!!a};let a;const C=ye=>ye instanceof Document?ye:ye.ownerDocument,_e=ye=>{let De=!1,me=!1,Ye=!0,Ce=!1;const de=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},ye),Pe=de.canStart,Be=de.onWillStart,Ne=de.onStart,Ae=de.onEnd,Ge=de.notCaptured,lt=de.onMove,ne=de.threshold,Ee=de.passive,xe=de.blurOnStart,je={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},Se=((ye,De,me)=>{const Ye=me*(Math.PI/180),Ce="x"===ye,de=Math.cos(Ye),Pe=De*De;let Be=0,Ne=0,Ae=!1,Ge=0;return{start(lt,ne){Be=lt,Ne=ne,Ge=0,Ae=!0},detect(lt,ne){if(!Ae)return!1;const Ee=lt-Be,xe=ne-Ne,je=Ee*Ee+xe*xe;if(jede?1:Ve<-de?-1:0,Ae=!1,!0},isGesture:()=>0!==Ge,getDirection:()=>Ge}})(de.direction,de.threshold,de.maxAngle),Ve=h.G.createGesture({name:ye.gestureName,priority:ye.gesturePriority,disableScroll:ye.disableScroll}),cn=()=>{De&&(Ce=!1,lt&<(je))},xn=()=>!!Ve.capture()&&(De=!0,Ye=!1,je.startX=je.currentX,je.startY=je.currentY,je.startTime=je.currentTime,Be?Be(je).then(ke):ke(),!0),ke=()=>{xe&&(()=>{if(typeof document<"u"){const _t=document.activeElement;_t?.blur&&_t.blur()}})(),Ne&&Ne(je),Ye=!0},pe=()=>{De=!1,me=!1,Ce=!1,Ye=!0,Ve.release()},Oe=_t=>{const Kt=De,Mn=Ye;if(pe(),Mn){if(Le(je,_t),Kt)return void(Ae&&Ae(je));Ge&&Ge(je)}},ie=((ye,De,me,Ye,Ce)=>{let de,Pe,Be,Ne,Ae,Ge,lt,ne=0;const Ee=$t=>{ne=Date.now()+2e3,De($t)&&(!Pe&&me&&(Pe=p(ye,"touchmove",me,Ce)),Be||(Be=p($t.target,"touchend",je,Ce)),Ne||(Ne=p($t.target,"touchcancel",je,Ce)))},xe=$t=>{ne>Date.now()||De($t)&&(!Ge&&me&&(Ge=p(C(ye),"mousemove",me,Ce)),lt||(lt=p(C(ye),"mouseup",Se,Ce)))},je=$t=>{Ve(),Ye&&Ye($t)},Se=$t=>{Xe(),Ye&&Ye($t)},Ve=()=>{Pe&&Pe(),Be&&Be(),Ne&&Ne(),Pe=Be=Ne=void 0},Xe=()=>{Ge&&Ge(),lt&<(),Ge=lt=void 0},Ht=()=>{Ve(),Xe()},cn=($t=!0)=>{$t?(de||(de=p(ye,"touchstart",Ee,Ce)),Ae||(Ae=p(ye,"mousedown",xe,Ce))):(de&&de(),Ae&&Ae(),de=Ae=void 0,Ht())};return{enable:cn,stop:Ht,destroy:()=>{cn(!1),Ye=me=De=void 0}}})(de.el,_t=>{const Kt=Te(_t);return!(me||!Ye||(ee(_t,je),je.startX=je.currentX,je.startY=je.currentY,je.startTime=je.currentTime=Kt,je.velocityX=je.velocityY=je.deltaX=je.deltaY=0,je.event=_t,Pe&&!1===Pe(je))||(Ve.release(),!Ve.start()))&&(me=!0,0===ne?xn():(Se.start(je.startX,je.startY),!0))},_t=>{De?!Ce&&Ye&&(Ce=!0,Le(je,_t),requestAnimationFrame(cn)):(Le(je,_t),Se.detect(je.currentX,je.currentY)&&(!Se.isGesture()||!xn())&&it())},Oe,{capture:!1,passive:Ee}),it=()=>{pe(),ie.stop(),Ge&&Ge(je)};return{enable(_t=!0){_t||(De&&Oe(void 0),pe()),ie.enable(_t)},destroy(){Ve.destroy(),ie.destroy()}}},Le=(ye,De)=>{if(!De)return;const me=ye.currentX,Ye=ye.currentY,Ce=ye.currentTime;ee(De,ye);const de=ye.currentX,Pe=ye.currentY,Ne=(ye.currentTime=Te(De))-Ce;if(Ne>0&&Ne<100){const Ge=(Pe-Ye)/Ne;ye.velocityX=(de-me)/Ne*.7+.3*ye.velocityX,ye.velocityY=.7*Ge+.3*ye.velocityY}ye.deltaX=de-ye.startX,ye.deltaY=Pe-ye.startY,ye.event=De},ee=(ye,De)=>{let me=0,Ye=0;if(ye){const Ce=ye.changedTouches;if(Ce&&Ce.length>0){const de=Ce[0];me=de.clientX,Ye=de.clientY}else void 0!==ye.pageX&&(me=ye.pageX,Ye=ye.pageY)}De.currentX=me,De.currentY=Ye},Te=ye=>ye.timeStamp||Date.now()},3882:(zn,wt,S)=>{"use strict";S.d(wt,{a:()=>ee,b:()=>cn,c:()=>X,i:()=>xn});var h=S(5349);class p{constructor(){this.m=new Map}reset(ke){this.m=new Map(Object.entries(ke))}get(ke,pe){const Oe=this.m.get(ke);return void 0!==Oe?Oe:pe}getBoolean(ke,pe=!1){const Oe=this.m.get(ke);return void 0===Oe?pe:"string"==typeof Oe?"true"===Oe:!!Oe}getNumber(ke,pe){const Oe=parseFloat(this.m.get(ke));return isNaN(Oe)?void 0!==pe?pe:NaN:Oe}set(ke,pe){this.m.set(ke,pe)}}const X=new p,_e="ionic-persist-config",ee=($t,ke)=>("string"==typeof $t&&(ke=$t,$t=void 0),($t=>Te($t))($t).includes(ke)),Te=($t=window)=>{if(typeof $t>"u")return[];$t.Ionic=$t.Ionic||{};let ke=$t.Ionic.platforms;return null==ke&&(ke=$t.Ionic.platforms=ye($t),ke.forEach(pe=>$t.document.documentElement.classList.add(`plt-${pe}`))),ke},ye=$t=>{const ke=X.get("platform");return Object.keys(Xe).filter(pe=>{const Oe=ke?.[pe];return"function"==typeof Oe?Oe($t):Xe[pe]($t)})},me=$t=>!!(Se($t,/iPad/i)||Se($t,/Macintosh/i)&&Ae($t)),de=$t=>Se($t,/android|sink/i),Ae=$t=>Ve($t,"(any-pointer:coarse)"),lt=$t=>ne($t)||Ee($t),ne=$t=>!!($t.cordova||$t.phonegap||$t.PhoneGap),Ee=$t=>{const ke=$t.Capacitor;return!!ke?.isNative},Se=($t,ke)=>ke.test($t.navigator.userAgent),Ve=($t,ke)=>{var pe;return null===(pe=$t.matchMedia)||void 0===pe?void 0:pe.call($t,ke).matches},Xe={ipad:me,iphone:$t=>Se($t,/iPhone/i),ios:$t=>Se($t,/iPhone|iPod/i)||me($t),android:de,phablet:$t=>{const ke=$t.innerWidth,pe=$t.innerHeight,Oe=Math.min(ke,pe),ie=Math.max(ke,pe);return Oe>390&&Oe<520&&ie>620&&ie<800},tablet:$t=>{const ke=$t.innerWidth,pe=$t.innerHeight,Oe=Math.min(ke,pe),ie=Math.max(ke,pe);return me($t)||($t=>de($t)&&!Se($t,/mobile/i))($t)||Oe>460&&Oe<820&&ie>780&&ie<1400},cordova:ne,capacitor:Ee,electron:$t=>Se($t,/electron/i),pwa:$t=>{var ke;return!!(null!==(ke=$t.matchMedia)&&void 0!==ke&&ke.call($t,"(display-mode: standalone)").matches||$t.navigator.standalone)},mobile:Ae,mobileweb:$t=>Ae($t)&&!lt($t),desktop:$t=>!Ae($t),hybrid:lt};let Ht;const cn=$t=>$t&&(0,h.g)($t)||Ht,xn=($t={})=>{if(typeof window>"u")return;const ke=window.document,pe=window,Oe=pe.Ionic=pe.Ionic||{},ie={};$t._ael&&(ie.ael=$t._ael),$t._rel&&(ie.rel=$t._rel),$t._ce&&(ie.ce=$t._ce),(0,h.a)(ie);const it=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},($t=>{try{const ke=$t.sessionStorage.getItem(_e);return null!==ke?JSON.parse(ke):{}}catch{return{}}})(pe)),{persistConfig:!1}),Oe.config),($t=>{const ke={};return $t.location.search.slice(1).split("&").map(pe=>pe.split("=")).map(([pe,Oe])=>[decodeURIComponent(pe),decodeURIComponent(Oe)]).filter(([pe])=>(($t,ke)=>$t.substr(0,ke.length)===ke)(pe,"ionic:")).map(([pe,Oe])=>[pe.slice(6),Oe]).forEach(([pe,Oe])=>{ke[pe]=Oe}),ke})(pe)),$t);X.reset(it),X.getBoolean("persistConfig")&&(($t,ke)=>{try{$t.sessionStorage.setItem(_e,JSON.stringify(ke))}catch{return}})(pe,it),Te(pe),Oe.config=X,Oe.mode=Ht=X.get("mode",ke.documentElement.getAttribute("mode")||(ee(pe,"ios")?"ios":"md")),X.set("mode",Ht),ke.documentElement.setAttribute("mode",Ht),ke.documentElement.classList.add(Ht),X.getBoolean("_testing")&&X.set("animated",!1);const _t=Mn=>{var fn;return null===(fn=Mn.tagName)||void 0===fn?void 0:fn.startsWith("ION-")},Kt=Mn=>["ios","md"].includes(Mn);(0,h.c)(Mn=>{for(;Mn;){const fn=Mn.mode||Mn.getAttribute("mode");if(fn){if(Kt(fn))return fn;_t(Mn)&&console.warn('Invalid ionic mode: "'+fn+'", expected: "ios" or "md"')}Mn=Mn.parentElement}return Ht})}},2619:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{iosTransitionAnimation:()=>ye,shadow:()=>C});var h=S(6410),p=S(448);S(6225),S(5349);const K=me=>document.querySelector(`${me}.ion-cloned-element`),C=me=>me.shadowRoot||me,oe=me=>{const Ye="ION-TABS"===me.tagName?me:me.querySelector("ion-tabs"),Ce="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=Ye){const de=Ye.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=de?de.querySelector(Ce):null}return me.querySelector(Ce)},_e=(me,Ye)=>{const Ce="ION-TABS"===me.tagName?me:me.querySelector("ion-tabs");let de=[];if(null!=Ce){const Pe=Ce.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Pe&&(de=Pe.querySelectorAll("ion-buttons"))}else de=me.querySelectorAll("ion-buttons");for(const Pe of de){const Be=Pe.closest("ion-header"),Ne=Be&&!Be.classList.contains("header-collapse-condense-inactive"),Ae=Pe.querySelector("ion-back-button"),Ge=Pe.classList.contains("buttons-collapse");if(null!==Ae&&("start"===Pe.slot||""===Pe.slot)&&(Ge&&Ne&&Ye||!Ge))return Ae}return null},ee=(me,Ye,Ce,de,Pe,Be,Ne,Ae,Ge)=>{var lt,ne;const Ee=Ye?`calc(100% - ${Pe.right+4}px)`:Pe.left-4+"px",xe=Ye?"right":"left",je=Ye?"left":"right",Se=Ye?"right":"left",Ve=(null===(lt=Be.textContent)||void 0===lt?void 0:lt.trim())===(null===(ne=Ae.textContent)||void 0===ne?void 0:ne.trim()),Ht=(Ge.height-De)/Ne.height,cn=Ve?`scale(${Ge.width/Ne.width}, ${Ht})`:`scale(${Ht})`,xn="scale(1)",ke=C(de).querySelector("ion-icon").getBoundingClientRect(),pe=Ye?ke.width/2-(ke.right-Pe.right)+"px":Pe.left-ke.width/2+"px",Oe=Ye?`-${window.innerWidth-Pe.right}px`:`${Pe.left}px`,ie=`${Ge.top}px`,it=`${Pe.top}px`,Mn=Ce?[{offset:0,transform:`translate3d(${Oe}, ${it}, 0)`},{offset:1,transform:`translate3d(${pe}, ${ie}, 0)`}]:[{offset:0,transform:`translate3d(${pe}, ${ie}, 0)`},{offset:1,transform:`translate3d(${Oe}, ${it}, 0)`}],li=Ce?[{offset:0,opacity:1,transform:xn},{offset:1,opacity:0,transform:cn}]:[{offset:0,opacity:0,transform:cn},{offset:1,opacity:1,transform:xn}],Ie=Ce?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],Ct=(0,h.c)(),on=(0,h.c)(),Rn=(0,h.c)(),Vn=K("ion-back-button"),Ut=C(Vn).querySelector(".button-text"),Hn=C(Vn).querySelector("ion-icon");Vn.text=de.text,Vn.mode=de.mode,Vn.icon=de.icon,Vn.color=de.color,Vn.disabled=de.disabled,Vn.style.setProperty("display","block"),Vn.style.setProperty("position","fixed"),on.addElement(Hn),Ct.addElement(Ut),Rn.addElement(Vn),Rn.beforeStyles({position:"absolute",top:"0px",[Se]:"0px"}).keyframes(Mn),Ct.beforeStyles({"transform-origin":`${xe} top`}).beforeAddWrite(()=>{de.style.setProperty("display","none"),Vn.style.setProperty(xe,Ee)}).afterAddWrite(()=>{de.style.setProperty("display",""),Vn.style.setProperty("display","none"),Vn.style.removeProperty(xe)}).keyframes(li),on.beforeStyles({"transform-origin":`${je} center`}).keyframes(Ie),me.addAnimation([Ct,on,Rn])},Te=(me,Ye,Ce,de,Pe,Be,Ne,Ae)=>{var Ge,lt;const ne=Ye?"right":"left",Ee=Ye?`calc(100% - ${Pe.right}px)`:`${Pe.left}px`,je=`${Pe.top}px`,Ve=Ye?`-${window.innerWidth-Ae.right-8}px`:Ae.x-8+"px",Ht=Ae.y-2+"px",cn=(null===(Ge=Ne.textContent)||void 0===Ge?void 0:Ge.trim())===(null===(lt=de.textContent)||void 0===lt?void 0:lt.trim()),$t=Ae.height/(Be.height-De),ke="scale(1)",pe=cn?`scale(${Ae.width/Be.width}, ${$t})`:`scale(${$t})`,it=Ce?[{offset:0,opacity:0,transform:`translate3d(${Ve}, ${Ht}, 0) ${pe}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${je}, 0) ${ke}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${je}, 0) ${ke}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${Ve}, ${Ht}, 0) ${pe}`}],_t=K("ion-title"),Kt=(0,h.c)();_t.innerText=de.innerText,_t.size=de.size,_t.color=de.color,Kt.addElement(_t),Kt.beforeStyles({"transform-origin":`${ne} top`,height:`${Pe.height}px`,display:"",position:"relative",[ne]:Ee}).beforeAddWrite(()=>{de.style.setProperty("opacity","0")}).afterAddWrite(()=>{de.style.setProperty("opacity",""),_t.style.setProperty("display","none")}).keyframes(it),me.addAnimation(Kt)},ye=(me,Ye)=>{var Ce;try{const de="cubic-bezier(0.32,0.72,0,1)",Pe="opacity",Be="transform",Ne="0%",Ge="rtl"===me.ownerDocument.dir,lt=Ge?"-99.5%":"99.5%",ne=Ge?"33%":"-33%",Ee=Ye.enteringEl,xe=Ye.leavingEl,je="back"===Ye.direction,Se=Ee.querySelector(":scope > ion-content"),Ve=Ee.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Xe=Ee.querySelectorAll(":scope > ion-header > ion-toolbar"),Ht=(0,h.c)(),cn=(0,h.c)();if(Ht.addElement(Ee).duration((null!==(Ce=Ye.duration)&&void 0!==Ce?Ce:0)||540).easing(Ye.easing||de).fill("both").beforeRemoveClass("ion-page-invisible"),xe&&null!=me){const pe=(0,h.c)();pe.addElement(me),Ht.addAnimation(pe)}if(Se||0!==Xe.length||0!==Ve.length?(cn.addElement(Se),cn.addElement(Ve)):cn.addElement(Ee.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Ht.addAnimation(cn),je?cn.beforeClearStyles([Pe]).fromTo("transform",`translateX(${ne})`,`translateX(${Ne})`).fromTo(Pe,.8,1):cn.beforeClearStyles([Pe]).fromTo("transform",`translateX(${lt})`,`translateX(${Ne})`),Se){const pe=C(Se).querySelector(".transition-effect");if(pe){const Oe=pe.querySelector(".transition-cover"),ie=pe.querySelector(".transition-shadow"),it=(0,h.c)(),_t=(0,h.c)(),Kt=(0,h.c)();it.addElement(pe).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),_t.addElement(Oe).beforeClearStyles([Pe]).fromTo(Pe,0,.1),Kt.addElement(ie).beforeClearStyles([Pe]).fromTo(Pe,.03,.7),it.addAnimation([_t,Kt]),cn.addAnimation([it])}}const xn=Ee.querySelector("ion-header.header-collapse-condense"),{forward:$t,backward:ke}=((me,Ye,Ce,de,Pe)=>{const Be=_e(de,Ce),Ne=oe(Pe),Ae=oe(de),Ge=_e(Pe,Ce),lt=null!==Be&&null!==Ne&&!Ce,ne=null!==Ae&&null!==Ge&&Ce;if(lt){const Ee=Ne.getBoundingClientRect(),xe=Be.getBoundingClientRect(),je=C(Be).querySelector(".button-text"),Se=je.getBoundingClientRect(),Xe=C(Ne).querySelector(".toolbar-title").getBoundingClientRect();Te(me,Ye,Ce,Ne,Ee,Xe,je,Se),ee(me,Ye,Ce,Be,xe,je,Se,Ne,Xe)}else if(ne){const Ee=Ae.getBoundingClientRect(),xe=Ge.getBoundingClientRect(),je=C(Ge).querySelector(".button-text"),Se=je.getBoundingClientRect(),Xe=C(Ae).querySelector(".toolbar-title").getBoundingClientRect();Te(me,Ye,Ce,Ae,Ee,Xe,je,Se),ee(me,Ye,Ce,Ge,xe,je,Se,Ae,Xe)}return{forward:lt,backward:ne}})(Ht,Ge,je,Ee,xe);if(Xe.forEach(pe=>{const Oe=(0,h.c)();Oe.addElement(pe),Ht.addAnimation(Oe);const ie=(0,h.c)();ie.addElement(pe.querySelector("ion-title"));const it=(0,h.c)(),_t=Array.from(pe.querySelectorAll("ion-buttons,[menuToggle]")),Kt=pe.closest("ion-header"),Mn=Kt?.classList.contains("header-collapse-condense-inactive");let fn;fn=_t.filter(je?Ie=>{const Ct=Ie.classList.contains("buttons-collapse");return Ct&&!Mn||!Ct}:Ie=>!Ie.classList.contains("buttons-collapse")),it.addElement(fn);const qn=(0,h.c)();qn.addElement(pe.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const li=(0,h.c)();li.addElement(C(pe).querySelector(".toolbar-background"));const en=(0,h.c)(),Dt=pe.querySelector("ion-back-button");if(Dt&&en.addElement(Dt),Oe.addAnimation([ie,it,qn,li,en]),it.fromTo(Pe,.01,1),qn.fromTo(Pe,.01,1),je)Mn||ie.fromTo("transform",`translateX(${ne})`,`translateX(${Ne})`).fromTo(Pe,.01,1),qn.fromTo("transform",`translateX(${ne})`,`translateX(${Ne})`),en.fromTo(Pe,.01,1);else if(xn||ie.fromTo("transform",`translateX(${lt})`,`translateX(${Ne})`).fromTo(Pe,.01,1),qn.fromTo("transform",`translateX(${lt})`,`translateX(${Ne})`),li.beforeClearStyles([Pe,"transform"]),Kt?.translucent?li.fromTo("transform",Ge?"translateX(-100%)":"translateX(100%)","translateX(0px)"):li.fromTo(Pe,.01,"var(--opacity)"),$t||en.fromTo(Pe,.01,1),Dt&&!$t){const Ct=(0,h.c)();Ct.addElement(C(Dt).querySelector(".button-text")).fromTo("transform",Ge?"translateX(-100px)":"translateX(100px)","translateX(0px)"),Oe.addAnimation(Ct)}}),xe){const pe=(0,h.c)(),Oe=xe.querySelector(":scope > ion-content"),ie=xe.querySelectorAll(":scope > ion-header > ion-toolbar"),it=xe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(Oe||0!==ie.length||0!==it.length?(pe.addElement(Oe),pe.addElement(it)):pe.addElement(xe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Ht.addAnimation(pe),je){pe.beforeClearStyles([Pe]).fromTo("transform",`translateX(${Ne})`,Ge?"translateX(-100%)":"translateX(100%)");const _t=(0,p.g)(xe);Ht.afterAddWrite(()=>{"normal"===Ht.getDirection()&&_t.style.setProperty("display","none")})}else pe.fromTo("transform",`translateX(${Ne})`,`translateX(${ne})`).fromTo(Pe,1,.8);if(Oe){const _t=C(Oe).querySelector(".transition-effect");if(_t){const Kt=_t.querySelector(".transition-cover"),Mn=_t.querySelector(".transition-shadow"),fn=(0,h.c)(),qn=(0,h.c)(),li=(0,h.c)();fn.addElement(_t).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),qn.addElement(Kt).beforeClearStyles([Pe]).fromTo(Pe,.1,0),li.addElement(Mn).beforeClearStyles([Pe]).fromTo(Pe,.7,.03),fn.addAnimation([qn,li]),pe.addAnimation([fn])}}ie.forEach(_t=>{const Kt=(0,h.c)();Kt.addElement(_t);const Mn=(0,h.c)();Mn.addElement(_t.querySelector("ion-title"));const fn=(0,h.c)(),qn=_t.querySelectorAll("ion-buttons,[menuToggle]"),li=_t.closest("ion-header"),en=li?.classList.contains("header-collapse-condense-inactive"),Dt=Array.from(qn).filter(Ut=>{const Hn=Ut.classList.contains("buttons-collapse");return Hn&&!en||!Hn});fn.addElement(Dt);const Ie=(0,h.c)(),Ct=_t.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");Ct.length>0&&Ie.addElement(Ct);const on=(0,h.c)();on.addElement(C(_t).querySelector(".toolbar-background"));const Rn=(0,h.c)(),Vn=_t.querySelector("ion-back-button");if(Vn&&Rn.addElement(Vn),Kt.addAnimation([Mn,fn,Ie,Rn,on]),Ht.addAnimation(Kt),Rn.fromTo(Pe,.99,0),fn.fromTo(Pe,.99,0),Ie.fromTo(Pe,.99,0),je){if(en||Mn.fromTo("transform",`translateX(${Ne})`,Ge?"translateX(-100%)":"translateX(100%)").fromTo(Pe,.99,0),Ie.fromTo("transform",`translateX(${Ne})`,Ge?"translateX(-100%)":"translateX(100%)"),on.beforeClearStyles([Pe,"transform"]),li?.translucent?on.fromTo("transform","translateX(0px)",Ge?"translateX(-100%)":"translateX(100%)"):on.fromTo(Pe,"var(--opacity)",0),Vn&&!ke){const Hn=(0,h.c)();Hn.addElement(C(Vn).querySelector(".button-text")).fromTo("transform",`translateX(${Ne})`,`translateX(${(Ge?-124:124)+"px"})`),Kt.addAnimation(Hn)}}else en||Mn.fromTo("transform",`translateX(${Ne})`,`translateX(${ne})`).fromTo(Pe,.99,0).afterClearStyles([Be,Pe]),Ie.fromTo("transform",`translateX(${Ne})`,`translateX(${ne})`).afterClearStyles([Be,Pe]),Rn.afterClearStyles([Pe]),Mn.afterClearStyles([Pe]),fn.afterClearStyles([Pe])})}return Ht}catch(de){throw de}},De=10},9023:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{mdTransitionAnimation:()=>j});var h=S(6410),p=S(448);S(6225),S(5349);const j=(K,C)=>{var oe,_e,Le;const ye="back"===C.direction,me=C.leavingEl,Ye=(0,p.g)(C.enteringEl),Ce=Ye.querySelector("ion-toolbar"),de=(0,h.c)();if(de.addElement(Ye).fill("both").beforeRemoveClass("ion-page-invisible"),ye?de.duration((null!==(oe=C.duration)&&void 0!==oe?oe:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):de.duration((null!==(_e=C.duration)&&void 0!==_e?_e:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),Ce){const Pe=(0,h.c)();Pe.addElement(Ce),de.addAnimation(Pe)}if(me&&ye){de.duration((null!==(Le=C.duration)&&void 0!==Le?Le:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Pe=(0,h.c)();Pe.addElement((0,p.g)(me)).onFinish(Be=>{1===Be&&Pe.elements.length>0&&Pe.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),de.addAnimation(Pe)}return de}},7612:(zn,wt,S)=>{"use strict";S.d(wt,{B:()=>Mn,G:()=>fn,a:()=>Te,b:()=>ye,c:()=>Ce,d:()=>qn,e:()=>li,f:()=>cn,g:()=>$t,h:()=>Oe,i:()=>it,j:()=>Pe,k:()=>Be,l:()=>De,m:()=>me,n:()=>Le,o:()=>Ge,q:()=>Xe,s:()=>Kt,t:()=>de});var h=S(5861),p=S(6225),X=S(3882),a=S(6559),j=S(2124),K=S(839),C=S(6710);let oe=0,_e=0;const Le=new WeakMap,ee=en=>({create:Dt=>Ne(en,Dt),dismiss:(Dt,Ie,Ct)=>je(document,Dt,Ie,en,Ct),getTop:()=>(0,h.Z)(function*(){return Xe(document,en)})()}),Te=ee("ion-alert"),ye=ee("ion-action-sheet"),De=ee("ion-loading"),me=ee("ion-modal"),Ce=ee("ion-popover"),de=ee("ion-toast"),Pe=en=>{typeof document<"u"&&xe(document);const Dt=oe++;en.overlayIndex=Dt},Be=en=>(en.hasAttribute("id")||(en.id="ion-overlay-"+ ++_e),en.id),Ne=(en,Dt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(en).then(()=>{const Ie=document.createElement(en);return Ie.classList.add("overlay-hidden"),Object.assign(Ie,Object.assign(Object.assign({},Dt),{hasController:!0})),ke(document).appendChild(Ie),new Promise(Ct=>(0,K.c)(Ie,Ct))}):Promise.resolve(),Ae='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Ge=(en,Dt)=>{let Ie=en.querySelector(Ae);const Ct=Ie?.shadowRoot;Ct&&(Ie=Ct.querySelector(Ae)||Ie),Ie?(0,K.f)(Ie):Dt.focus()},ne=(en,Dt)=>{const Ie=Array.from(en.querySelectorAll(Ae));let Ct=Ie.length>0?Ie[Ie.length-1]:null;const on=Ct?.shadowRoot;on&&(Ct=on.querySelector(Ae)||Ct),Ct?Ct.focus():Dt.focus()},xe=en=>{0===oe&&(oe=1,en.addEventListener("focus",Dt=>{((en,Dt)=>{const Ie=Xe(Dt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),Ct=en.target;Ie&&Ct&&!Ie.classList.contains("ion-disable-focus-trap")&&(Ie.shadowRoot?(()=>{if(Ie.contains(Ct))Ie.lastFocus=Ct;else{const Vn=Ie.lastFocus;Ge(Ie,Ie),Vn===Dt.activeElement&&ne(Ie,Ie),Ie.lastFocus=Dt.activeElement}})():(()=>{if(Ie===Ct)Ie.lastFocus=void 0;else{const Vn=(0,K.g)(Ie);if(!Vn.contains(Ct))return;const Ut=Vn.querySelector(".ion-overlay-wrapper");if(!Ut)return;if(Ut.contains(Ct)||Ct===Vn.querySelector("ion-backdrop"))Ie.lastFocus=Ct;else{const Hn=Ie.lastFocus;Ge(Ut,Ie),Hn===Dt.activeElement&&ne(Ut,Ie),Ie.lastFocus=Dt.activeElement}}})())})(Dt,en)},!0),en.addEventListener("ionBackButton",Dt=>{const Ie=Xe(en);Ie?.backdropDismiss&&Dt.detail.register(j.OVERLAY_BACK_BUTTON_PRIORITY,()=>Ie.dismiss(void 0,Mn))}),en.addEventListener("keydown",Dt=>{if("Escape"===Dt.key){const Ie=Xe(en);Ie?.backdropDismiss&&Ie.dismiss(void 0,Mn)}}))},je=(en,Dt,Ie,Ct,on)=>{const Rn=Xe(en,Ct,on);return Rn?Rn.dismiss(Dt,Ie):Promise.reject("overlay does not exist")},Ve=(en,Dt)=>((en,Dt)=>(void 0===Dt&&(Dt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(en.querySelectorAll(Dt)).filter(Ie=>Ie.overlayIndex>0)))(en,Dt).filter(Ie=>!(en=>en.classList.contains("overlay-hidden"))(Ie)),Xe=(en,Dt,Ie)=>{const Ct=Ve(en,Dt);return void 0===Ie?Ct[Ct.length-1]:Ct.find(on=>on.id===Ie)},Ht=(en=!1)=>{const Ie=ke(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Ie&&(en?Ie.setAttribute("aria-hidden","true"):Ie.removeAttribute("aria-hidden"))},cn=function(){var en=(0,h.Z)(function*(Dt,Ie,Ct,on,Rn){var Vn,Ut;if(Dt.presented)return;Ht(!0),Dt.presented=!0,Dt.willPresent.emit(),null===(Vn=Dt.willPresentShorthand)||void 0===Vn||Vn.emit();const Hn=(0,X.b)(Dt),qe=Dt.enterAnimation?Dt.enterAnimation:X.c.get(Ie,"ios"===Hn?Ct:on);(yield pe(Dt,qe,Dt.el,Rn))&&(Dt.didPresent.emit(),null===(Ut=Dt.didPresentShorthand)||void 0===Ut||Ut.emit()),"ION-TOAST"!==Dt.el.tagName&&xn(Dt.el),Dt.keyboardClose&&(null===document.activeElement||!Dt.el.contains(document.activeElement))&&Dt.el.focus()});return function(Ie,Ct,on,Rn,Vn){return en.apply(this,arguments)}}(),xn=function(){var en=(0,h.Z)(function*(Dt){let Ie=document.activeElement;if(!Ie)return;const Ct=Ie?.shadowRoot;Ct&&(Ie=Ct.querySelector(Ae)||Ie),yield Dt.onDidDismiss(),Ie.focus()});return function(Ie){return en.apply(this,arguments)}}(),$t=function(){var en=(0,h.Z)(function*(Dt,Ie,Ct,on,Rn,Vn,Ut){var Hn,qe;if(!Dt.presented)return!1;void 0!==p.d&&1===Ve(p.d).length&&Ht(!1),Dt.presented=!1;try{Dt.el.style.setProperty("pointer-events","none"),Dt.willDismiss.emit({data:Ie,role:Ct}),null===(Hn=Dt.willDismissShorthand)||void 0===Hn||Hn.emit({data:Ie,role:Ct});const Nt=(0,X.b)(Dt),Xt=Dt.leaveAnimation?Dt.leaveAnimation:X.c.get(on,"ios"===Nt?Rn:Vn);Ct!==fn&&(yield pe(Dt,Xt,Dt.el,Ut)),Dt.didDismiss.emit({data:Ie,role:Ct}),null===(qe=Dt.didDismissShorthand)||void 0===qe||qe.emit({data:Ie,role:Ct}),Le.delete(Dt),Dt.el.classList.add("overlay-hidden"),Dt.el.style.removeProperty("pointer-events"),void 0!==Dt.el.lastFocus&&(Dt.el.lastFocus=void 0)}catch(Nt){console.error(Nt)}return Dt.el.remove(),!0});return function(Ie,Ct,on,Rn,Vn,Ut,Hn){return en.apply(this,arguments)}}(),ke=en=>en.querySelector("ion-app")||en.body,pe=function(){var en=(0,h.Z)(function*(Dt,Ie,Ct,on){Ct.classList.remove("overlay-hidden");const Vn=Ie(Dt.el,on);(!Dt.animated||!X.c.getBoolean("animated",!0))&&Vn.duration(0),Dt.keyboardClose&&Vn.beforeAddWrite(()=>{const Hn=Ct.ownerDocument.activeElement;Hn?.matches("input,ion-input, ion-textarea")&&Hn.blur()});const Ut=Le.get(Dt)||[];return Le.set(Dt,[...Ut,Vn]),yield Vn.play(),!0});return function(Ie,Ct,on,Rn){return en.apply(this,arguments)}}(),Oe=(en,Dt)=>{let Ie;const Ct=new Promise(on=>Ie=on);return ie(en,Dt,on=>{Ie(on.detail)}),Ct},ie=(en,Dt,Ie)=>{const Ct=on=>{(0,K.b)(en,Dt,Ct),Ie(on)};(0,K.a)(en,Dt,Ct)},it=en=>"cancel"===en||en===Mn,_t=en=>en(),Kt=(en,Dt)=>{if("function"==typeof en)return X.c.get("_zoneGate",_t)(()=>{try{return en(Dt)}catch(Ct){throw Ct}})},Mn="backdrop",fn="gesture",qn=en=>{let Ie,Dt=!1;const Ct=(0,a.C)(),on=(Ut=!1)=>{if(Ie&&!Ut)return{delegate:Ie,inline:Dt};const{el:Hn,hasController:qe,delegate:Nt}=en;return Dt=null!==Hn.parentNode&&!qe,Ie=Dt?Nt||Ct:Nt,{inline:Dt,delegate:Ie}};return{attachViewToDom:function(){var Ut=(0,h.Z)(function*(Hn){const{delegate:qe}=on(!0);if(qe)return yield qe.attachViewToDom(en.el,Hn);const{hasController:Nt}=en;if(Nt&&void 0!==Hn)throw new Error("framework delegate is missing");return null});return function(qe){return Ut.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:Ut}=on();Ut&&void 0!==en.el&&Ut.removeViewFromDom(en.el.parentElement,en.el)}}},li=()=>{let en;const Dt=()=>{en&&(en(),en=void 0)};return{addClickListener:(Ct,on)=>{Dt();const Rn=void 0!==on?document.getElementById(on):null;Rn?en=((Ut,Hn)=>{const qe=()=>{Hn.present()};return Ut.addEventListener("click",qe),()=>{Ut.removeEventListener("click",qe)}})(Rn,Ct):(0,C.p)(`A trigger element with the ID "${on}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Ct)},removeClickListener:Dt}}},1163:(zn,wt,S)=>{"use strict";S.d(wt,{B:()=>Te});var h=S(8564),p=S(866),X=S(6814),a=S(6728);function j(ye,De){if(1&ye&&(h.TgZ(0,"ion-badge",7),h._uU(1),h.qZA()),2&ye){const me=h.oxw().$implicit;h.xp6(1),h.hij("",me.Quantity," x")}}function K(ye,De){if(1&ye&&(h.TgZ(0,"strong"),h._uU(1),h.qZA()),2&ye){const me=h.oxw().$implicit;h.xp6(1),h.hij("",me.PowerKW," kW ")}}function C(ye,De){if(1&ye&&(h.TgZ(0,"div"),h._uU(1),h.qZA()),2&ye){const me=h.oxw().$implicit;h.xp6(1),h.hij("",null==me.CurrentType?null:me.CurrentType.Title," ")}}function oe(ye,De){if(1&ye&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&ye){const me=h.oxw().$implicit;h.xp6(1),h.hij("",me.Amps,"A ")}}function _e(ye,De){if(1&ye&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&ye){const me=h.oxw().$implicit;h.xp6(1),h.hij("",me.Voltage,"V ")}}function Le(ye,De){if(1&ye){const me=h.EpF();h.TgZ(0,"ion-col")(1,"ion-button",8),h.NdJ("click",function(){h.CHM(me);const Ce=h.oxw().$implicit,de=h.oxw();return h.KtG(de.editConnection(Ce))}),h._UZ(2,"ion-icon",9),h.qZA(),h._UZ(3,"br"),h.TgZ(4,"ion-button",10),h.NdJ("click",function(){h.CHM(me);const Ce=h.oxw().$implicit,de=h.oxw();return h.KtG(de.deleteConnection(Ce))}),h._UZ(5,"ion-icon",11),h.qZA()()}}function ee(ye,De){if(1&ye&&(h.TgZ(0,"ion-row")(1,"ion-col")(2,"ion-row")(3,"ion-col",1),h._UZ(4,"img",2),h.YNc(5,j,2,1,"ion-badge",3),h.TgZ(6,"div",4),h._uU(7),h.qZA()(),h.TgZ(8,"ion-col")(9,"ion-row")(10,"ion-col")(11,"ion-note")(12,"div")(13,"strong",5),h._uU(14),h.qZA()(),h.YNc(15,K,2,1,"strong",6)(16,C,2,1,"div",6),h.qZA(),h.TgZ(17,"ion-note"),h.YNc(18,oe,2,1,"span",6)(19,_e,2,1,"span",6),h.qZA()()(),h.TgZ(20,"ion-row")(21,"ion-col",4),h._uU(22),h.qZA(),h.TgZ(23,"ion-col",4),h._uU(24),h.qZA()()(),h.YNc(25,Le,6,0,"ion-col",6),h.qZA()()()),2&ye){const me=De.$implicit,Ye=h.oxw();h.xp6(4),h.Q6J("src",Ye.getConnectorTypeIcon(me.ConnectionTypeID),h.LSH),h.xp6(1),h.Q6J("ngIf",me.Quantity),h.xp6(2),h.Oqu(null==me.StatusType?null:me.StatusType.Title),h.xp6(6),h.s9C("title",null==me.ConnectionType?null:me.ConnectionType.FormalName),h.xp6(1),h.hij("",null==me.ConnectionType?null:me.ConnectionType.Title," "),h.xp6(1),h.Q6J("ngIf",me.PowerKW),h.xp6(1),h.Q6J("ngIf",me.CurrentTypeID),h.xp6(2),h.Q6J("ngIf",me.Amps),h.xp6(1),h.Q6J("ngIf",me.Voltage),h.xp6(3),h.Oqu(me.Reference),h.xp6(2),h.Oqu(me.Comments),h.xp6(1),h.Q6J("ngIf",Ye.enableEdit)}}let Te=(()=>{class ye{item;enableEdit=!1;onEdit=new h.vpe;onDelete=new h.vpe;constructor(){}ngOnInit(){}editConnection(me){this.onEdit.emit(me)}deleteConnection(me){this.onDelete.emit(me)}getConnectorTypeIcon(me){return p.c.getIconForConnector(me)}static \u0275fac=function(Ye){return new(Ye||ye)};static \u0275cmp=h.Xpm({type:ye,selectors:[["app-equipment-details"]],inputs:{item:"item",enableEdit:"enableEdit"},outputs:{onEdit:"onEdit",onDelete:"onDelete"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["size","3"],[2,"max-width","64px",3,"src"],["color","primary",4,"ngIf"],[1,"info"],[3,"title"],[4,"ngIf"],["color","primary"],["size","small","color","secondary",3,"click"],["name","create","slot","icon-only"],["size","small","color","danger",3,"click"],["name","trash","slot","icon-only"]],template:function(Ye,Ce){1&Ye&&(h.TgZ(0,"ion-grid"),h.YNc(1,ee,26,12,"ion-row",0),h.qZA()),2&Ye&&(h.xp6(1),h.Q6J("ngForOf",Ce.item.Connections))},dependencies:[X.sg,X.O5,a.yp,a.YG,a.wI,a.jY,a.gu,a.uN,a.Nd]})}return ye})()},6086:(zn,wt,S)=>{"use strict";S.d(wt,{z:()=>Ye});var h=S(5861),p=S(8564),X=S(9159),a=S(6814),j=S(6728),K=S(6223);function C(Ce,de){if(1&Ce&&(p.TgZ(0,"ion-select-option",5),p._uU(1),p.qZA()),2&Ce){const Pe=de.$implicit;p.Q6J("value",Pe.ID),p.xp6(1),p.Oqu(Pe.Title)}}function oe(Ce,de){1&Ce&&(p.TgZ(0,"ion-select-option",6),p._uU(1,"Other..."),p.qZA())}function _e(Ce,de){if(1&Ce){const Pe=p.EpF();p.TgZ(0,"ion-item")(1,"ion-label",1),p._uU(2,"Network Operator"),p.qZA(),p.TgZ(3,"ion-select",2),p.NdJ("ngModelChange",function(Ne){p.CHM(Pe);const Ae=p.oxw();return p.KtG(Ae.operatorId=Ne)})("ionChange",function(){p.CHM(Pe);const Ne=p.oxw();return p.KtG(Ne.onOperatorChange())}),p.YNc(4,C,2,2,"ion-select-option",3)(5,oe,2,0,"ion-select-option",4),p.qZA()()}if(2&Ce){const Pe=p.oxw();p.xp6(3),p.Q6J("ngModel",Pe.operatorId),p.xp6(1),p.Q6J("ngForOf",Pe.operators),p.xp6(1),p.Q6J("ngIf",Pe.useFilteredOperators)}}function Le(Ce,de){if(1&Ce){const Pe=p.EpF();p.TgZ(0,"ion-item")(1,"ion-searchbar",7),p.NdJ("ionCancel",function(){p.CHM(Pe);const Ne=p.oxw();return p.KtG(Ne.cancelOperatorLookup())})("ngModelChange",function(Ne){p.CHM(Pe);const Ae=p.oxw();return p.KtG(Ae.operatorSearchKeyword=Ne)})("ionInput",function(Ne){p.CHM(Pe);const Ae=p.oxw();return p.KtG(Ae.searchOperators(Ne))}),p.qZA()()}if(2&Ce){const Pe=p.oxw();p.xp6(1),p.Q6J("ngModel",Pe.operatorSearchKeyword)}}function ee(Ce,de){if(1&Ce){const Pe=p.EpF();p.TgZ(0,"ion-item",9),p.NdJ("click",function(){const Ae=p.CHM(Pe).$implicit,Ge=p.oxw(2);return p.KtG(Ge.onOperatorChange(Ae))}),p.TgZ(1,"ion-avatar",10),p._UZ(2,"ion-icon",11),p.qZA(),p.TgZ(3,"ion-label")(4,"p"),p._uU(5),p.qZA(),p.TgZ(6,"p"),p._uU(7),p.qZA()()()}if(2&Ce){const Pe=de.$implicit;p.xp6(5),p.Oqu(Pe.Title),p.xp6(2),p.Oqu(Pe.WebsiteURL)}}function Te(Ce,de){if(1&Ce&&(p.ynx(0),p.TgZ(1,"ion-list"),p.YNc(2,ee,8,2,"ion-item",8),p.qZA(),p.BQk()),2&Ce){const Pe=p.oxw();p.xp6(2),p.Q6J("ngForOf",Pe.operatorSearchResults)}}function ye(Ce,de){if(1&Ce){const Pe=p.EpF();p.ynx(0),p.TgZ(1,"ion-item")(2,"ion-avatar",10),p._UZ(3,"ion-icon",12),p.qZA(),p.TgZ(4,"ion-label")(5,"p"),p._uU(6),p.qZA(),p.TgZ(7,"p"),p._uU(8),p.qZA(),p.TgZ(9,"ion-button",9),p.NdJ("click",function(){p.CHM(Pe);const Ne=p.oxw();return p.KtG(Ne.selectedOperator=null)}),p._uU(10,"Change"),p.qZA()()(),p.BQk()}if(2&Ce){const Pe=p.oxw();p.xp6(6),p.Oqu(Pe.selectedOperator.Title),p.xp6(2),p.Oqu(Pe.selectedOperator.WebsiteURL)}}function De(Ce,de){if(1&Ce){const Pe=p.EpF();p.TgZ(0,"ion-chip")(1,"ion-label"),p._uU(2),p.qZA(),p.TgZ(3,"ion-icon",14),p.NdJ("click",function(){const Ae=p.CHM(Pe).$implicit,Ge=p.oxw(2);return p.KtG(Ge.removeOperator(Ae))}),p.qZA()()}if(2&Ce){const Pe=de.$implicit,Be=p.oxw(2);p.xp6(2),p.Oqu(Be.getOperatorInfo(Pe).Title)}}function me(Ce,de){if(1&Ce&&(p.ynx(0),p.YNc(1,De,4,1,"ion-chip",13),p.BQk()),2&Ce){const Pe=p.oxw();p.xp6(1),p.Q6J("ngForOf",Pe.operatorList)}}let Ye=(()=>{class Ce{referenceDataManager;changeDetector;operatorId=null;operatorList=null;mode="single";useFilteredOperators=null;operatorChanged=new p.vpe;operatorRemoved=new p.vpe;operatorCache=[];operatorSearchResults=[];operatorSearchKeyword="";selectedOperator=null;get operators(){return this.referenceDataManager.getNetworkOperators(this.useFilteredOperators)}constructor(Pe,Be){this.referenceDataManager=Pe,this.changeDetector=Be}ngOnInit(){this.operatorCache=this.referenceDataManager.getNetworkOperators(!1),null!=this.operatorId&&(this.selectedOperator=this.operatorCache.find(Pe=>Pe.ID==this.operatorId))}searchOperators(){this.operatorSearchResults=[],0!=this.operatorSearchKeyword.length&&(this.operatorSearchResults=this.operatorCache?this.operatorCache.filter(Pe=>Pe.Title.toLowerCase().startsWith(this.operatorSearchKeyword.toLowerCase())||Pe.Title.toLowerCase().startsWith("("+this.operatorSearchKeyword.toLowerCase())).slice(0,10):[])}getOperatorInfo(Pe){if(this.operatorCache)return this.operatorCache.find(Be=>Be.ID==Pe)}onOperatorChange(Pe=null){var Be=this;return(0,h.Z)(function*(){null==Pe&&Be.operatorId&&(Pe=Be.operatorCache.find(Ne=>Ne.ID==Be.operatorId)),null!=Pe&&(Be.operatorSearchResults=[],Be.selectedOperator=Pe,Be.operatorId=Pe.ID),Be.operatorId?(Be.operatorChanged.emit(Be.selectedOperator),"single"!=Be.mode&&(Be.selectedOperator=null,Be.operatorSearchKeyword="")):Be.useFilteredOperators=!1})()}removeOperator(Pe){var Be=this;return(0,h.Z)(function*(){Be.operatorId=null,Be.operatorRemoved.emit(Pe)})()}cancelOperatorLookup(){this.selectedOperator=null}static \u0275fac=function(Be){return new(Be||Ce)(p.Y36(X.W),p.Y36(p.sBO))};static \u0275cmp=p.Xpm({type:Ce,selectors:[["app-operator-lookup"]],inputs:{operatorId:"operatorId",operatorList:"operatorList",mode:"mode",useFilteredOperators:"useFilteredOperators"},outputs:{operatorChanged:"operatorChanged",operatorRemoved:"operatorRemoved"},decls:5,vars:5,consts:[[4,"ngIf"],["position","floating"],[3,"ngModel","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],["value","",4,"ngIf"],[3,"value"],["value",""],["placeholder","Search network operators","showCancelButton","focus","autocomplete","on",3,"ngModel","ionCancel","ngModelChange","ionInput"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["item-left",""],["name","card"],["name","locate"],[4,"ngFor","ngForOf"],["name","close-circle",3,"click"]],template:function(Be,Ne){1&Be&&p.YNc(0,_e,6,3,"ion-item",0)(1,Le,2,1,"ion-item",0)(2,Te,3,1,"ng-container",0)(3,ye,11,2,"ng-container",0)(4,me,2,1,"ng-container",0),2&Be&&(p.Q6J("ngIf",Ne.useFilteredOperators&&!Ne.selectedOperator),p.xp6(1),p.Q6J("ngIf",!Ne.useFilteredOperators&&!Ne.selectedOperator),p.xp6(1),p.Q6J("ngIf",Ne.operatorSearchResults.length>0),p.xp6(1),p.Q6J("ngIf",null!=Ne.selectedOperator),p.xp6(1),p.Q6J("ngIf",(null==Ne.operatorList?null:Ne.operatorList.length)>0))},dependencies:[a.sg,a.O5,j.BJ,j.YG,j.hM,j.gu,j.Ie,j.Q$,j.q_,j.VI,j.t9,j.n0,j.QI,j.j9,K.JJ,K.On]})}return Ce})()},5460:(zn,wt,S)=>{"use strict";S.d(wt,{v:()=>ye});var h=S(5861),p=S(9127),X=S(8564),a=S(9903),j=S(5472),K=S(6728),C=S(9862),oe=S(5957),_e=S(6814);function Le(De,me){1&De&&(X.TgZ(0,"div"),X._UZ(1,"ion-spinner"),X.qZA())}function ee(De,me){if(1&De){const Ye=X.EpF();X.TgZ(0,"ion-item",5),X.NdJ("click",function(){const Pe=X.CHM(Ye).$implicit,Be=X.oxw(2);return X.KtG(Be.placeSelected(Pe))}),X.TgZ(1,"ion-avatar",6),X._UZ(2,"ion-icon",7),X.qZA(),X.TgZ(3,"ion-label")(4,"p"),X._uU(5),X.qZA()()()}if(2&De){const Ye=me.$implicit;X.xp6(5),X.Oqu(Ye.Address)}}function Te(De,me){if(1&De&&(X.TgZ(0,"div",1),X.YNc(1,Le,2,0,"div",2),X.TgZ(2,"ion-list"),X.YNc(3,ee,6,1,"ion-item",3),X.TgZ(4,"ion-item")(5,"p",4),X._uU(6),X.qZA()()()()),2&De){const Ye=X.oxw();X.xp6(1),X.Q6J("ngIf",Ye.searchInProgress),X.xp6(2),X.Q6J("ngForOf",Ye.placeList),X.xp6(3),X.hij(" ",Ye.placeAttribution," ")}}let ye=(()=>{class De{logging;changeDetector;platform;http;events;placeSearchType;placeList;searchInProgress=!1;searchKeyword;placeSearchFocused;placeSearchActive=!1;placeAttribution="";selectedPlace;placeChanged=new X.vpe;mapService;constructor(Ye,Ce,de,Pe,Be){this.logging=Ye,this.changeDetector=Ce,this.platform=de,this.http=Pe,this.events=Be,this.searchKeyword="",this.searchInProgress=!1,this.mapService=new a.k(Be,Ye,Pe)}ngOnInit(){var Ye=this;return(0,h.Z)(function*(){yield Ye.platform.ready(),Ye.mapService.initAPI()})()}onSearchFocus(){this.placeSearchFocused=!0}onSearchBlur(){this.placeSearchFocused=!1}onSearchCancel(){}getPlacesAutoComplete(Ye,Ce){var de=this;return(0,h.Z)(function*(){de.placeSearchType=Ce;let Pe=Ye.target.value;if(Pe&&Pe.length>3){de.logging.log("Starting place lookup for:"+Pe),de.placeSearchActive=!0,de.searchInProgress=!0,de.searchInProgress=!1,de.placeSearchActive=!0;try{de.placeList=yield de.mapService.placeSearch(Pe),de.placeList&&de.placeList.length>0&&(de.placeAttribution=de.placeList[0].Attribution)}catch{}de.searchInProgress=!1,de.placeSearchActive=!0}else de.searchInProgress=!1,de.placeSearchActive=!1})()}placeSelected(Ye){this.logging.log("Looking up place details:"+Ye.Title+"::"+Ye.ReferenceID),this.selectedPlace=Ye,this.placeChanged.emit(Ye),this.placeSearchActive=!1}static \u0275fac=function(Ce){return new(Ce||De)(X.Y36(p.z),X.Y36(X.sBO),X.Y36(j.t4),X.Y36(C.eN),X.Y36(oe.z))};static \u0275cmp=X.Xpm({type:De,selectors:[["place-search"]],inputs:{searchKeyword:"searchKeyword"},outputs:{selectedPlace:"selectedPlace",placeChanged:"placeChanged"},decls:1,vars:1,consts:[["class","place-search",4,"ngIf"],[1,"place-search"],[4,"ngIf"],[3,"click",4,"ngFor","ngForOf"],[1,"place-attribution"],[3,"click"],["item-left",""],["name","locate"]],template:function(Ce,de){1&Ce&&X.YNc(0,Te,7,3,"div",0),2&Ce&&X.Q6J("ngIf",de.placeSearchActive)},dependencies:[_e.sg,_e.O5,K.BJ,K.gu,K.Ie,K.Q$,K.q_,K.PQ],styles:[".place-search[_ngcontent-%COMP%]{position:absolute;z-index:1000}.place-attribution[_ngcontent-%COMP%]{font-size:9px;color:#dcdcdc;max-width:100%}"]})}return De})()},8696:(zn,wt,S)=>{"use strict";S.d(wt,{o:()=>oe});var h=S(8564),p=S(866),X=S(6814),a=S(6728);function j(_e,Le){if(1&_e){const ee=h.EpF();h.TgZ(0,"ion-button",5),h.NdJ("click",function(){h.CHM(ee);const ye=h.oxw().$implicit,De=h.oxw();return h.KtG(De.onCopyCommand(ye))}),h._uU(1,"Copy"),h.qZA()}}function K(_e,Le){if(1&_e){const ee=h.EpF();h.TgZ(0,"ion-button",5),h.NdJ("click",function(){h.CHM(ee);const ye=h.oxw().$implicit,De=h.oxw();return h.KtG(De.onEditCommand(ye))}),h._uU(1,"Edit"),h.qZA()}}function C(_e,Le){if(1&_e&&(h.TgZ(0,"ion-item",1)(1,"ion-grid")(2,"ion-row")(3,"ion-col"),h._uU(4),h.qZA()(),h.TgZ(5,"ion-row")(6,"ion-col",2)(7,"p"),h._UZ(8,"img",3),h.qZA(),h.TgZ(9,"ion-note"),h._uU(10),h.qZA(),h.YNc(11,j,2,0,"ion-button",4)(12,K,2,0,"ion-button",4),h.qZA(),h.TgZ(13,"ion-col")(14,"ion-row")(15,"ion-col")(16,"p"),h._uU(17),h.qZA(),h.TgZ(18,"ion-note"),h._uU(19),h.qZA()()(),h.TgZ(20,"ion-row")(21,"ion-col"),h._uU(22),h.qZA(),h.TgZ(23,"ion-col"),h._uU(24),h.qZA()()()()()()),2&_e){const ee=Le.$implicit,Te=h.oxw();h.xp6(4),h.hij(" ",ee.AddressInfo.Title," "),h.xp6(4),h.Q6J("src",Te.getIconForPOI(ee),h.LSH),h.xp6(2),h.hij(" ",Te.getFormattedDistance(ee)," "),h.xp6(1),h.Q6J("ngIf",Te.enableCopyOption),h.xp6(1),h.Q6J("ngIf",Te.enableEditOption),h.xp6(5),h.hij(" ",Te.getFormattedAddress(ee)," "),h.xp6(2),h.hij(" ",Te.getFormattedConnectorList(ee)," "),h.xp6(3),h.hij(" ",null==ee.UsageType?null:ee.UsageType.Title," "),h.xp6(2),h.hij(" ",null==ee.OperatorInfo?null:ee.OperatorInfo.Title," ")}}let oe=(()=>{class _e{enableCopyOption=!1;enableEditOption=!1;poiList=[];onCopy=new h.vpe;onEdit=new h.vpe;constructor(){}ngOnInit(){}onCopyCommand(ee){this.onCopy.emit(ee)}onEditCommand(ee){this.onEdit.emit(ee)}getFormattedAddress(ee){let Te="";return Te+=ee.AddressInfo.Title!=ee.AddressInfo.AddressLine1?ee.AddressInfo.Title:ee.AddressInfo.Town,Te}getFormattedConnectorList(ee){if(!ee.Connections)return;let Te=[];for(let ye of ee.Connections)null!=ye.ConnectionType&&(Te.find(De=>De==ye.ConnectionType.Title)||Te.push(ye.ConnectionType.Title));return Te.join(", ")}getIconForPOI(ee){return p.c.getIconForPOI(ee)}getFormattedDistance(ee){return p.c.getFormattedDistance(ee)}static \u0275fac=function(Te){return new(Te||_e)};static \u0275cmp=h.Xpm({type:_e,selectors:[["app-poi-list"]],inputs:{enableCopyOption:"enableCopyOption",enableEditOption:"enableEditOption",poiList:"poiList"},outputs:{onCopy:"onCopy",onEdit:"onEdit"},decls:2,vars:1,consts:[["style","max-width:400px;",4,"ngFor","ngForOf"],[2,"max-width","400px"],["size","3"],[2,"width","24px",3,"src"],["size","small",3,"click",4,"ngIf"],["size","small",3,"click"]],template:function(Te,ye){1&Te&&(h.TgZ(0,"ion-list"),h.YNc(1,C,25,9,"ion-item",0),h.qZA()),2&Te&&(h.xp6(1),h.Q6J("ngForOf",ye.poiList))},dependencies:[X.sg,X.O5,a.YG,a.wI,a.jY,a.Ie,a.q_,a.uN,a.Nd]})}return _e})()},5086:(zn,wt,S)=>{"use strict";S.d(wt,{e:()=>K});var h=S(6814),p=S(6728),X=S(6223),a=S(3999),j=S(8564);let K=(()=>{class C{static \u0275fac=function(Le){return new(Le||C)};static \u0275mod=j.oAB({type:C});static \u0275inj=j.cJS({providers:[h.JJ],imports:[h.ez,p.Pc,X.u5,a.aw]})}return C})()},7777:(zn,wt,S)=>{"use strict";S.d(wt,{X:()=>p});var h=S(553);class p{baseURL;loginProviderRedirectBaseURL;loginProviderRedirectURL;enableLiveMapQuerying;googleMapsAPIKey;enableStaticMaps;constructor(){this.baseURL="https://map.openchargemap.io",this.loginProviderRedirectBaseURL="https://openchargemap.org/site/loginprovider/?_mode=silent&_forceLogin=true&_redirectURL=",this.loginProviderRedirectURL=this.loginProviderRedirectBaseURL+this.baseURL,this.enableLiveMapQuerying=!0,this.googleMapsAPIKey=h.N.googleMapsKey,this.enableStaticMaps=h.N.enableStaticMaps}}},866:(zn,wt,S)=>{"use strict";S.d(wt,{c:()=>p});var h=S(553);let p=(()=>{class X{static isFeatureEnabled(j){return!!h.N.enabledFeatures.find(K=>K===j)}static getClientHeight(){const j=document.body,K=document.documentElement;return Math.max(j.scrollHeight,j.offsetHeight,K.clientHeight,K.scrollHeight,K.offsetHeight)}static getClientWidth(){const j=document.body,K=document.documentElement;return Math.max(j.scrollWidth,j.offsetWidth,K.clientWidth,K.scrollWidth,K.offsetWidth)}static getMaxLevelOfPOI(j){let K=0;if(null!=j.Connections)for(let C=0;CK&&(K=j.Connections[C].Level.ID);return 4===K&&(K=2),K>4&&(K=3),K}static getIconForPOI(j){let C="assets/images/icons/map/level"+X.getMaxLevelOfPOI(j);return null!=j.UsageType&&j.UsageType.Title.indexOf("Private")>-1?C+="_private":C+=null!=j.StatusType&&!0!==j.StatusType.IsOperational?"_nonoperational":"_operational",C+="_icon.png",C}static getColorForPOI(j){const K=X.getMaxLevelOfPOI(j);let C="#c0c0c0";return null!=j.UsageType&&j.UsageType.Title.indexOf("Private")>-1?C="#FF0000":null!=j.StatusType&&!0!==j.StatusType.IsOperational?C="#a0a0a0":2==K?C="#72EB0D":3==K&&(C="#EB800D"),C}static getIconForConnector(j){let K="assets/images/icons/connectors/";return K+=1===j?"Type1_J1772.svg":2===j?"Chademo_type4.svg":25===j?"Type2_socket.svg":32===j?"Type1_CCS.svg":33===j?"Type2_CCS.svg":1036===j?"Type2_tethered.svg":26===j?"Type3c.svg":28===j?"schuko.svg":"Unknown.svg",K}static getFormattedDistance(j){return j&&j.AddressInfo&&j.AddressInfo.Distance?j.AddressInfo.Distance.toFixed(1)+" "+(1===j.AddressInfo.DistanceUnit?"km":"miles"):""}static fixJSONDate(j){if(null==j)return null;if(0==j.indexOf("/")){let C=/Date\(([^)]+)\)/.exec(j);j=new Date(parseFloat(C[1]))}else j=new Date(j);return j}static formatMapLinkFromPosition(j,K,C,oe,_e){return'Map ('+Math.ceil(oe)+" "+_e+")"}static formatSystemWebLink(j,K){return""+K+""}static formatMapLink(j,K,C){return C?device&&"WinCE"==device.platform?this.formatSystemWebLink("maps:"+j.AddressInfo.Latitude+","+j.AddressInfo.Longitude,K):device&&"iOS"===device.platform?this.formatSystemWebLink("https://maps.apple.com/?q="+j.AddressInfo.Latitude+","+j.AddressInfo.Longitude,K):this.formatSystemWebLink("https://maps.google.com/maps?q="+j.AddressInfo.Latitude+","+j.AddressInfo.Longitude,K):''+K+""}static formatURL(j,K=null){return null==j||""==j?"":(-1==j.indexOf("http")&&(j="https://"+j),''+(K??j)+"")}static formatPOIAddress=function(j,K=!0){let C="";return C=K?""+this.formatTextField(j.AddressInfo.AddressLine1)+this.formatTextField(j.AddressInfo.AddressLine2)+this.formatTextField(j.AddressInfo.Town)+this.formatTextField(j.AddressInfo.StateOrProvince)+this.formatTextField(j.AddressInfo.Postcode)+(null!=j.AddressInfo.Country?this.formatTextField(j.AddressInfo.Country.Title):""):this.formatStringArray([j.AddressInfo.AddressLine1,j.AddressInfo.AddressLine2,j.AddressInfo.Town,j.AddressInfo.StateOrProvince,j.AddressInfo.Postcode,null!=j.AddressInfo.Country?j.AddressInfo.Country.Title:""]),C};static formatStringArray=function(j,K=", "){if(null==j)return"";let C="";for(let oe=0;oe"+K+": ":"")+(C?"
":"")+j.toString().replace("\n","
")+"
";return 1==oe&&(Le="

"+Le+"

"),Le}static formatEmailAddress(j){return null!=j&&null!=j&&""!=j?" '+j+"
":""}static formatPhone(j,K=null){return null!=j&&null!=j&&""!=j?(null==K?K=" ":K+=": ",K+''+j+"
"):""}static formatPOIDetails(j,K){let oe=new Date;null==K&&(K=!1);let _e=this.formatPOIAddress(j,!1),Le="";Le+=this.formatPhone(j.AddressInfo.ContactTelephone1),Le+=this.formatPhone(j.AddressInfo.ContactTelephone2),Le+=this.formatEmailAddress(j.AddressInfo.ContactEmail);let ee="";if(null!=j.AddressInfo.Distance){let Ce="https://maps.google.com/maps?saddr=&daddr="+j.AddressInfo.Latitude+","+j.AddressInfo.Longitude;ee+="Distance: "+j.AddressInfo.Distance.toFixed(1)+" "+(2==j.AddressInfo.DistanceUnit?"Miles":"KM")+"",ee+="

"+this.formatSystemWebLink(Ce,"Get Directions")+"

"}if(null!=j.AddressInfo.RelatedURL&&""!=j.AddressInfo.RelatedURL){let Ce=j.AddressInfo.RelatedURL;Ce=Ce.replace(/.*?:\/\//g,""),Ce.length>40&&(Ce=Ce.substr(0,40)+".."),Le+=" "+this.formatSystemWebLink(j.AddressInfo.RelatedURL,""+Ce+"")}Le+="

";const Te=this.formatTextField(j.GeneralComments,null,!1,!0)+this.formatTextField(j.AddressInfo.AccessComments,"Access",!0,!0,"details.accessComments");let ye="";null!=j.NumberOfPoints&&(ye+=this.formatTextField(j.NumberOfPoints,"Bays",!1,!0,"details.numberOfPoints")),null!=j.UsageType&&(ye+=this.formatTextField(j.UsageType.Title,"Usage",!1,!0,"details.usageType")),null!=j.UsageCost&&(ye+=this.formatTextField(j.UsageCost,"Usage Cost",!1,!0,"details.usageCost")),null!=j.OperatorInfo&&1!=j.OperatorInfo.ID&&(ye+=this.formatTextField(j.OperatorInfo.Title,"Operator",!1,!0,"details.operatorTitle"),null!=j.OperatorInfo.WebsiteURL&&(ye+=this.formatTextField(this.formatURL(j.OperatorInfo.WebsiteURL),"Operator Website",!0,!0,"details.operatorWebsite")));let De="";if(null!=j.StatusType&&(De+=this.formatTextField(j.StatusType.Title,"Status",!1,!0,"details.operationalStatus"),null!=j.DateLastStatusUpdate&&(De+=this.formatTextField(Math.round((oe-this.fixJSONDate(j.DateLastStatusUpdate))/864e5)+" days ago","Last Updated",!1,!0,"details.lastUpdated"))),null!=j.Connections&&j.Connections.length>0){De+="",De+="";for(let Ce=0;Ce"}De+="
ConnectionPower LevelStatus
"+(null!=de.ConnectionType?de.ConnectionType.Title:"")+""+(null!=de.Level?""+de.Level.Title+"
":"")+(null!=de.Amps?this.formatString(de.Amps)+"A/ ":"")+(null!=de.Voltage?this.formatString(de.Voltage)+"V/ ":"")+(null!=de.PowerKW?this.formatString(de.PowerKW)+"kW
":"")+(null!=de.CurrentType?de.CurrentType.Title:"")+"
"+(null!=de.Quantity?this.formatString(de.Quantity):"1")+" Present
"+(null!=de.StatusType?de.StatusType.Title:"-")+"
"}let me="";return me+=this.formatTextField("OCM-"+j.ID+"","OpenChargeMap Ref",!1,!0,"details.refNumber"),null!=j.DataProvider&&(me+=this.formatTextField(j.DataProvider.Title,"Data Provider",!1,!0,"details.dataProviderTitle"),null!=j.DataProvider.WebsiteURL&&(me+=this.formatTextField(this.formatURL(j.DataProvider.WebsiteURL),"Website",!1,!0,"details.dataProviderWebsite")),me+=this.formatTextField(j.AddressInfo.Latitude,"Latitude",!1,!0,null),me+=this.formatTextField(j.AddressInfo.Longitude,"Longitude",!1,!0,null)),{address:_e,drivingInfo:ee,contactInfo:Le,additionalInfo:Te+ye+De,advancedInfo:me}}static debounce(j,K,C){let oe;return function(){let _e=this,Le=arguments,Te=C&&!oe;clearTimeout(oe),oe=setTimeout(function(){oe=null,C||j.apply(_e,Le)},K),Te&&j.apply(_e,Le)}}static getRandomInt(j){return Math.floor(Math.random()*Math.floor(j))}}return X})()},7518:(zn,wt,S)=>{"use strict";S.d(wt,{Qp:()=>X.Qp,wC:()=>j.wC,jR:()=>j.jR,fw:()=>X.fw,vw:()=>X.vw,be:()=>C.b,nS:()=>a,Nm:()=>K.N,aX:()=>h,qO:()=>p,kA:()=>X.kA});class h{ID;SubmissionType;Data;Attempts;DateQueued;IsSubmitted;IsInProgress;IsCancelled;IsFailure;FailureReason;constructor(_e,Le){this.SubmissionType=_e,this.Data=Le,this.DateQueued=new Date,this.IsSubmitted=!1,this.IsInProgress=!1,this.IsCancelled=!1,this.IsFailure=!1,this.Attempts=0,this.ID=new Date+"_"+100*Math.random()}}var p=function(oe){return oe[oe.POI=0]="POI",oe[oe.Comment=1]="Comment",oe[oe.Media=2]="Media",oe}(p||{}),X=S(7430);class a{Location;Title;Address;Type;ReferenceID;Attribution;AddressInfo}var j=S(3052),K=S(4783),C=S(4677)},3052:(zn,wt,S)=>{"use strict";S.d(wt,{LL:()=>X,jR:()=>p,wC:()=>h});class h{altitudeAccuracy;longitude;latitude;speed;heading;altitude;accuracy;constructor(j=null,K=null){this.latitude=j,this.longitude=K}}class p{coords;timestamp;attribution;constructor(j=null,K=null){this.coords=new h,this.coords.latitude=j,this.coords.longitude=K}static fromPosition(j){return new p(j.coords.latitude,j.coords.longitude)}}class X{northEast;southWest;constructor(j,K){this.northEast=j,this.southWest=K}}},7430:(zn,wt,S)=>{"use strict";S.d(wt,{Qp:()=>X,fw:()=>K,JJ:()=>oe,eN:()=>C,vw:()=>j,kA:()=>a});class h{itemType;itemId;version;schemaVersion;syncTimeStamp;constructor(Le,ee){this.itemType=Le,this.itemId=h.getNewItemId(),this.version=1,this.schemaVersion=ee,this.syncTimeStamp=h.getNewSyncTimeStamp()}static getNewSyncTimeStamp(){return Date.now().toString()}static getNewItemId(){return"_syncitem_"+Date.now().toString()}}class p{Title;Notes;_sync;constructor(Le,ee){this._sync=new h(Le,ee)}}class X extends p{PoiID;Type;Poi;Photos}class a extends p{Stage;Position;PoiIDs;PoiList;constructor(){super("waypoint",1)}}class j extends p{WayPoints;constructor(){super("journey_stage",1),this.WayPoints=[]}}class K extends p{ID;Stages;constructor(){super("journey",1),this.ID=""+Date.now(),this.Stages=[]}}class C{Title;DistanceKM;DurationMinutes;StartElevation;EndElevation;EnergyConsumptionkWh}class oe{Title;JourneyRouteLegs;TotalDistanceKM;TotalDurationMinutes;TotalEnergykWh}},4677:(zn,wt,S)=>{"use strict";S.d(wt,{b:()=>h});class h{poiIdList=null;countryCode=null;latitude=null;longitude=null;locationTitle=null;distance=null;distanceUnit=null;connectionTypeIdList=null;operatorIdList=null;levelIdList=null;countryIdList=null;usageTypeIdList=null;statusTypeIdList=null;minPowerKW=null;maxPowerKW=null;submissionStatusTypeIdList=null;maxResults=500;additionalParams=null;includeComments=!1;compact=!0;enableCaching=!0;levelOfDetail=1;polyline=null;boundingbox=null}},4783:(zn,wt,S)=>{"use strict";S.d(wt,{N:()=>p,U:()=>h});const h=1e3;class p{OperatorList;ConnectionTypeList;CountryList;UsageTypeList;StatusTypeList;MinPowerKW;MaxPowerKW;UseDistanceInKM;HasActiveFilters;LastSearchPosition;StartSearchPosition;StartViewPoiId;Language;FilterOptionsByCountryId;MapType;EnableAdvancedEditorFeatures;EnablePOIPendingApproval;MaxResults;constructor(){this.OperatorList=[],this.ConnectionTypeList=[],this.CountryList=[],this.UsageTypeList=[],this.StatusTypeList=[],this.MaxPowerKW=null,this.MinPowerKW=null,this.HasActiveFilters=!1,this.FilterOptionsByCountryId=null,this.UseDistanceInKM=!0,this.MapType="ROADMAP",this.EnableAdvancedEditorFeatures=!1,this.EnablePOIPendingApproval=!1,this.MaxResults=500}LoadSettings(){}SaveSettings(){}ClearActiveFilters(){this.OperatorList=[],this.ConnectionTypeList=[],this.CountryList=[],this.UsageTypeList=[],this.StatusTypeList=[],this.MinPowerKW=null,this.MaxPowerKW=null}CheckForActiveFilters(){return this.HasActiveFilters=this.OperatorList.length>0||this.ConnectionTypeList.length>0||this.CountryList.length>0||this.UsageTypeList.length>0||this.StatusTypeList.length>0||this.MinPowerKW>0||this.MaxPowerKW>0||null!=this.MaxPowerKW&&this.MaxPowerKW{"use strict";S.r(wt),S.d(wt,{AboutPageModule:()=>Le});var h=S(6814),p=S(6223),X=S(6728),a=S(6800),j=S(9236),K=S(8564);const C=[{path:"",component:j.t}];let oe=(()=>{class ee{static \u0275fac=function(De){return new(De||ee)};static \u0275mod=K.oAB({type:ee});static \u0275inj=K.cJS({imports:[a.Bz.forChild(C),a.Bz]})}return ee})();var _e=S(3999);let Le=(()=>{class ee{static \u0275fac=function(De){return new(De||ee)};static \u0275mod=K.oAB({type:ee});static \u0275inj=K.cJS({imports:[h.ez,p.u5,X.Pc,_e.aw,oe]})}return ee})()},9236:(zn,wt,S)=>{"use strict";S.d(wt,{t:()=>j});var h=S(553),p=S(8564),X=S(6728),a=S(3999);let j=(()=>{class K{modalController;constructor(oe){this.modalController=oe}get appVersion(){return h.N.version}get apiUrl(){return h.N.apiBase}ngOnInit(){}close(){this.modalController.dismiss()}static \u0275fac=function(_e){return new(_e||K)(p.Y36(X.IN))};static \u0275cmp=p.Xpm({type:K,selectors:[["app-about"]],decls:46,vars:5,consts:[[1,"ion-padding"],["size","2"],["src","assets/images/icons/branding/AppIcon_128x128.png"],["href","https://openchargemap.org","target","_blank"],["href","https://community.openchargemap.org","target","_blank"],["href","https://webprofusion.com","target","_blank"],["href","https://openchargemap.org/site/about/datasharing","target","_blank"],["slot","end"],[3,"click"],["name","close","slot","start"]],template:function(_e,Le){1&_e&&(p.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),p._uU(3),p.ALo(4,"translate"),p.qZA()()(),p.TgZ(5,"ion-content",0)(6,"ion-grid")(7,"ion-row")(8,"ion-col",1),p._UZ(9,"img",2),p.qZA(),p.TgZ(10,"ion-col")(11,"h1"),p._uU(12,"Open Charge Map"),p.qZA()()()(),p.TgZ(13,"p")(14,"strong"),p._uU(15,"Open Charge Map is the worlds largest Open Data registry of electric vehicle charging locations."),p.qZA(),p._uU(16," By adding and editing the information within Open Charge Map you are improving the data for an unlimited amount of other apps and services which can use the data for free. "),p.qZA(),p.TgZ(17,"p")(18,"a",3),p._uU(19,"openchargemap.org"),p.qZA()(),p.TgZ(20,"p"),p._uU(21,"Join our community discussions: "),p.TgZ(22,"a",4),p._uU(23,"community.openchargemap.org"),p.qZA()(),p.TgZ(24,"p"),p._uU(25,"Software development and service hosting by "),p.TgZ(26,"a",5),p._uU(27,"webprofusion.com"),p.qZA()(),p.TgZ(28,"p"),p._uU(29,"Our service is run by volunteers, our data is largely crowdsourced by you. Some data is imported from public Open Data sources."),p.qZA(),p.TgZ(30,"p"),p._uU(31,"Network operators can "),p.TgZ(32,"a",6),p._uU(33,"provide us with an OCPI data feed"),p.qZA(),p._uU(34," to freely promote their network and ensure information accuracy. "),p.qZA(),p.TgZ(35,"ion-note")(36,"p"),p._uU(37),p.qZA(),p.TgZ(38,"p"),p._uU(39),p.qZA()()(),p.TgZ(40,"ion-footer")(41,"ion-toolbar")(42,"ion-buttons",7)(43,"ion-button",8),p.NdJ("click",function(){return Le.close()}),p._UZ(44,"ion-icon",9),p._uU(45," Close "),p.qZA()()()()),2&_e&&(p.xp6(3),p.hij("",p.lcZ(4,3,"ocm.general.about")," Open Charge Map"),p.xp6(34),p.hij("App Version: ",Le.appVersion,""),p.xp6(2),p.hij("API: ",Le.apiUrl,""))},dependencies:[X.YG,X.Sm,X.wI,X.W2,X.fr,X.jY,X.Gu,X.gu,X.uN,X.Nd,X.wd,X.sr,a.X$]})}return K})()},9192:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{JourneysModule:()=>_e});var h=S(4292),p=S(5086),X=S(3999),a=S(6814),j=S(6223),K=S(6728),C=S(6800),oe=S(8564);let _e=(()=>{class Le{static \u0275fac=function(ye){return new(ye||Le)};static \u0275mod=oe.oAB({type:Le});static \u0275inj=oe.cJS({imports:[a.ez,j.u5,K.Pc,X.aw,p.e,C.Bz.forChild([{path:"",component:h.g}])]})}return Le})()},4292:(zn,wt,S)=>{"use strict";S.d(wt,{g:()=>Be});var h=S(989),p=S(439),X=S(6470),a=S(7518),j=S(9723),K=S(8564),C=S(6728),oe=S(6814);function _e(Ne,Ae){1&Ne&&(K.TgZ(0,"p"),K._uU(1," You have no journeys yet. Start by browsing to a charging location, then add it as Favourite to start a new Journey. "),K.qZA())}function Le(Ne,Ae){if(1&Ne&&(K.TgZ(0,"p"),K._uU(1),K.qZA()),2&Ne){const Ge=K.oxw(2).$implicit;K.xp6(1),K.hij(" ",Ge.Poi.AddressInfo.AddressLine1,"")}}function ee(Ne,Ae){if(1&Ne&&(K.TgZ(0,"p"),K._uU(1),K.qZA()),2&Ne){const Ge=K.oxw(2).$implicit;K.xp6(1),K.hij(" ",Ge.Poi.AddressInfo.AddressLine2,"")}}function Te(Ne,Ae){if(1&Ne&&(K.TgZ(0,"p"),K._uU(1),K.qZA()),2&Ne){const Ge=K.oxw(2).$implicit;K.xp6(1),K.hij(" ",Ge.Poi.AddressInfo.Town,"")}}function ye(Ne,Ae){if(1&Ne&&(K.TgZ(0,"p"),K._uU(1),K.qZA()),2&Ne){const Ge=K.oxw(2).$implicit;K.xp6(1),K.hij(" ",Ge.Poi.AddressInfo.StateOrProvince,"")}}function De(Ne,Ae){if(1&Ne&&(K.TgZ(0,"p"),K._uU(1),K.qZA()),2&Ne){const Ge=K.oxw(2).$implicit;K.xp6(1),K.hij(" ",Ge.Poi.AddressInfo.Postcode,"")}}function me(Ne,Ae){if(1&Ne){const Ge=K.EpF();K.TgZ(0,"div")(1,"div",18),K.NdJ("click",function(){K.CHM(Ge);const ne=K.oxw().$implicit,Ee=K.oxw(4);return K.KtG(Ee.viewPOIDetails(ne.Poi))}),K.YNc(2,Le,2,1,"p",4)(3,ee,2,1,"p",4)(4,Te,2,1,"p",4)(5,ye,2,1,"p",4)(6,De,2,1,"p",4),K.qZA(),K.TgZ(7,"ion-button",19),K.NdJ("click",function(){K.CHM(Ge);const ne=K.oxw().$implicit,Ee=K.oxw(4);return K.KtG(Ee.launchNavigation(ne.Poi))}),K._UZ(8,"ion-icon",20),K._uU(9," Navigate "),K.qZA()()}if(2&Ne){const Ge=K.oxw().$implicit;K.xp6(2),K.Q6J("ngIf",Ge.Poi.AddressInfo.AddressLine1),K.xp6(1),K.Q6J("ngIf",Ge.Poi.AddressInfo.AddressLine2),K.xp6(1),K.Q6J("ngIf",Ge.Poi.AddressInfo.Town),K.xp6(1),K.Q6J("ngIf",Ge.Poi.AddressInfo.StateOrProvince),K.xp6(1),K.Q6J("ngIf",Ge.Poi.AddressInfo.Postcode)}}function Ye(Ne,Ae){if(1&Ne&&(K.TgZ(0,"div",17),K.YNc(1,me,10,5,"div",4),K.qZA()),2&Ne){const Ge=Ae.$implicit;K.xp6(1),K.Q6J("ngIf",Ge.Poi)}}function Ce(Ne,Ae){if(1&Ne&&(K.TgZ(0,"ion-item")(1,"h2"),K._uU(2),K.qZA(),K.TgZ(3,"ion-thumbnail",0),K._UZ(4,"ion-icon",15),K.qZA(),K.TgZ(5,"p"),K._uU(6),K.qZA(),K.YNc(7,Ye,2,1,"div",16),K.qZA()),2&Ne){const Ge=Ae.$implicit;K.xp6(2),K.Oqu(Ge.Title),K.xp6(4),K.Oqu(Ge.Notes),K.xp6(1),K.Q6J("ngForOf",Ge.PoiList)}}function de(Ne,Ae){if(1&Ne&&(K.TgZ(0,"ion-list")(1,"ion-list-header",11),K._uU(2),K._UZ(3,"ion-icon",12),K._uU(4," -- "),K._UZ(5,"ion-icon",13),K._uU(6," -- "),K._UZ(7,"ion-icon",14),K._uU(8," -- "),K.qZA(),K.YNc(9,Ce,8,3,"ion-item",5),K.qZA()),2&Ne){const Ge=Ae.$implicit;K.xp6(2),K.hij(" ",Ge.Title," "),K.xp6(7),K.Q6J("ngForOf",Ge.WayPoints)}}function Pe(Ne,Ae){if(1&Ne){const Ge=K.EpF();K.TgZ(0,"ion-card")(1,"ion-card-content")(2,"ion-toolbar",8)(3,"ion-title"),K._uU(4),K.qZA(),K.TgZ(5,"ion-buttons",9)(6,"ion-button",1),K.NdJ("click",function(){const Ee=K.CHM(Ge).$implicit,xe=K.oxw();return K.KtG(xe.deleteJourney(Ee.ID))}),K._UZ(7,"ion-icon",10),K.qZA()()(),K.TgZ(8,"p"),K._uU(9),K.qZA(),K.YNc(10,de,10,2,"ion-list",5),K.qZA()()}if(2&Ne){const Ge=Ae.$implicit;K.xp6(4),K.hij(" ",Ge.Title,""),K.xp6(5),K.Oqu(Ge.Notes),K.xp6(1),K.Q6J("ngForOf",Ge.Stages)}}let Be=(()=>{class Ne{appManager;journeyManager;api;modalController;alertController;constructor(Ge,lt,ne,Ee,xe){this.appManager=Ge,this.journeyManager=lt,this.api=ne,this.modalController=Ee,this.alertController=xe}dismiss(){this.modalController.dismiss()}discoverImages(){this.journeyManager.journeys.forEach(Ge=>{Ge.Stages.forEach(lt=>{lt.WayPoints.forEach(ne=>{null!=ne.PoiList&&ne.PoiList.forEach(Ee=>{Ee.Poi&&this.api.getPanoramioLocationPhotos(new a.wC(Ee.Poi.AddressInfo.Latitude,Ee.Poi.AddressInfo.Longitude)).then(xe=>{Ee.Photos=xe})})})})})}getJson(Ge){return JSON.stringify(Ge,null,4)}viewPOIDetails(Ge){this.modalController.create({component:j.H,componentProps:{item:Ge}}).then(lt=>lt.present())}get staticMapSize(){return"60x60"}getStaticMapURL(Ge){return"https://maps.googleapis.com/maps/api/staticmap?center="+Ge.AddressInfo.Latitude+","+Ge.AddressInfo.Longitude+"&zoom=13&scale=2&size="+this.staticMapSize+"&maptype=roadmap&format=jpg&visual_refresh=true&markers=size:small%7Ccolor:0xff0000%7Clabel:%7C"+Ge.AddressInfo.Latitude+","+Ge.AddressInfo.Longitude}deleteJourney(Ge){this.alertController.create({header:"Delete this Journey?",message:"Are you sure you want to delete this Journey?",buttons:[{text:"No",handler:()=>{}},{text:"Delete",handler:()=>{this.journeyManager.deleteJourney(Ge)}}]}).then(lt=>lt.present())}launchNavigation(Ge){let lt="https://maps.google.com/?q="+Ge.AddressInfo.Latitude+","+Ge.AddressInfo.Longitude;this.appManager.platform.is("ios")&&(lt="https://maps.apple.com?q="+Ge.AddressInfo.Latitude+","+Ge.AddressInfo.Longitude),window.open(lt,"_system")}static \u0275fac=function(lt){return new(lt||Ne)(K.Y36(X.c),K.Y36(h.i),K.Y36(p.l),K.Y36(C.IN),K.Y36(C.Br))};static \u0275cmp=K.Xpm({type:Ne,selectors:[["ng-component"]],decls:18,vars:2,consts:[["slot","start"],[3,"click"],[1,"journeys-page"],[1,"ion-padding"],[4,"ngIf"],[4,"ngFor","ngForOf"],["slot","end"],["name","close","slot","start"],["primary",""],["slot","primary"],["name","close","slot","icon-only"],[2,"font-size","1.5rem"],["name","car"],["name","time"],["name","flash"],["name","caret-down",2,"font-size","4rem"],["style","text-align:right;width:100%;",4,"ngFor","ngForOf"],[2,"text-align","right","width","100%"],["tappable","",3,"click"],["clear","","item-right","",3,"click"],["name","navigate","slot","start"]],template:function(lt,ne){1<&&(K.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0)(3,"ion-back-button",1),K.NdJ("click",function(){return ne.dismiss()}),K.qZA()(),K.TgZ(4,"ion-title"),K._uU(5," Journeys "),K.qZA()()(),K.TgZ(6,"ion-content",2)(7,"div",3)(8,"p"),K._uU(9," You can create and plan journeys to group your favourite charging routes together. "),K.qZA(),K.YNc(10,_e,2,0,"p",4),K.qZA(),K.YNc(11,Pe,11,3,"ion-card",5),K.qZA(),K.TgZ(12,"ion-footer")(13,"ion-toolbar")(14,"ion-buttons",6)(15,"ion-button",1),K.NdJ("click",function(){return ne.dismiss()}),K._UZ(16,"ion-icon",7),K._uU(17," Close "),K.qZA()()()()),2<&&(K.xp6(10),K.Q6J("ngIf",null==ne.journeyManager.journeys||0==ne.journeyManager.journeys.length),K.xp6(1),K.Q6J("ngForOf",ne.journeyManager.journeys))},dependencies:[oe.sg,oe.O5,C.YG,C.Sm,C.PM,C.FN,C.W2,C.fr,C.Gu,C.gu,C.Ie,C.q_,C.yh,C.Bs,C.wd,C.sr,C.oU],encapsulation:2})}return Ne})()},2309:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{LayerEditorPageModule:()=>Le});var h=S(6814),p=S(6223),X=S(6728),a=S(6800),j=S(8062),K=S(8564);const C=[{path:"",component:j.A}];let oe=(()=>{class ee{static \u0275fac=function(De){return new(De||ee)};static \u0275mod=K.oAB({type:ee});static \u0275inj=K.cJS({imports:[a.Bz.forChild(C),a.Bz]})}return ee})();var _e=S(5086);let Le=(()=>{class ee{static \u0275fac=function(De){return new(De||ee)};static \u0275mod=K.oAB({type:ee});static \u0275inj=K.cJS({imports:[h.ez,p.u5,X.Pc,oe,_e.e]})}return ee})()},8062:(zn,wt,S)=>{"use strict";S.d(wt,{A:()=>oe});var h=S(5861),p=S(9159),X=S(8564),a=S(6728),j=S(6814),K=S(8696);function C(_e,Le){if(1&_e&&(X.TgZ(0,"div"),X._uU(1),X._UZ(2,"app-poi-list",10),X.qZA()),2&_e){const ee=X.oxw();X.xp6(1),X.hij(" Items Parsed: ",ee.fileData.length," "),X.xp6(1),X.Q6J("poiList",ee.fileData)}}let oe=(()=>{class _e{modalController;refData;fileData;constructor(ee,Te){this.modalController=ee,this.refData=Te}ngOnInit(){}previewFile(){var ee=this;return(0,h.Z)(function*(){yield ee.loadFile(!1)})()}cancel(){var ee=this;return(0,h.Z)(function*(){yield ee.modalController.dismiss(ee.fileData)})()}loadFile(ee=!0){var Te=this;return(0,h.Z)(function*(){const ye=new FileReader;ye.onload=()=>{let me=JSON.parse(ye.result),Ye=5e6;for(let Ce of me)(null==Ce.ID||""==Ce.ID)&&(Ce.ID=Ye.toString()),Ce.ID="imp_"+Ce.ID,Ye++;Te.fileData=Te.refData.hydrateCompactPOIList(me),ee&&Te.modalController.dismiss(Te.fileData)},ye.onerror=()=>{},ye.readAsText(document.getElementById("file-upload").files[0])})()}add(){var ee=this;return(0,h.Z)(function*(){ee.modalController.dismiss(ee.fileData)})()}static \u0275fac=function(Te){return new(Te||_e)(X.Y36(a.IN),X.Y36(p.W))};static \u0275cmp=X.Xpm({type:_e,selectors:[["app-layer-editor"]],decls:27,vars:1,consts:[[1,"ion-padding"],[1,"upload"],["name","file","aria-label","file","slot","start"],["type","file","required","","id","file-upload",3,"change"],[4,"ngIf"],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["name","checkmark-circle-outline","slot","end"],[3,"poiList"]],template:function(Te,ye){1&Te&&(X.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),X._uU(3," Edit Layer "),X.qZA()()(),X.TgZ(4,"ion-content",0)(5,"p"),X._uU(6,"POI layers are used to preview data from other Open Data sources. "),X.qZA(),X.TgZ(7,"p"),X._uU(8,"Select a POI layer JSON file: "),X.qZA(),X.TgZ(9,"div")(10,"label",1)(11,"ion-button"),X._UZ(12,"ion-icon",2),X.TgZ(13,"ion-label"),X._uU(14,"Choose File.."),X.qZA()(),X.TgZ(15,"input",3),X.NdJ("change",function(){return ye.previewFile()}),X.qZA()()(),X.YNc(16,C,3,2,"div",4),X.qZA(),X.TgZ(17,"ion-footer")(18,"ion-toolbar")(19,"ion-buttons",5)(20,"ion-button",6),X.NdJ("click",function(){return ye.cancel()}),X._UZ(21,"ion-icon",7),X._uU(22," Cancel "),X.qZA()(),X.TgZ(23,"ion-buttons",8)(24,"ion-button",6),X.NdJ("click",function(){return ye.add()}),X._uU(25," Add "),X._UZ(26,"ion-icon",9),X.qZA()()()()),2&Te&&(X.xp6(16),X.Q6J("ngIf",ye.fileData&&ye.fileData.length>0))},dependencies:[j.O5,a.YG,a.Sm,a.W2,a.fr,a.Gu,a.gu,a.Q$,a.wd,a.sr,K.o],styles:[".upload[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{position:fixed;top:-1000px}"]})}return _e})()},9723:(zn,wt,S)=>{"use strict";S.d(wt,{H:()=>mn});var h=S(6470),p=S(8564),X=S(6728),a=S(5472),j=S(5861),K=S(989),C=S(7430),oe=S(6814),_e=S(6223);function Le(ae,ht){if(1&ae&&(p.TgZ(0,"ion-select-option",13),p._uU(1),p.qZA()),2&ae){const G=ht.$implicit;p.Q6J("value",G.ID),p.xp6(1),p.Oqu(G.Title)}}function ee(ae,ht){if(1&ae&&(p.TgZ(0,"ion-select-option",16),p._uU(1),p.qZA()),2&ae){const G=ht.$implicit;p.Q6J("value",ht.index),p.xp6(1),p.Oqu(G.Title)}}function Te(ae,ht){if(1&ae){const G=p.EpF();p.TgZ(0,"ion-item")(1,"ion-label",2),p._uU(2,"Journey Stage"),p.qZA(),p.TgZ(3,"ion-select",3),p.NdJ("ngModelChange",function(at){p.CHM(G);const rn=p.oxw();return p.KtG(rn.selectedStageIndex=at)}),p.TgZ(4,"ion-select-option",14),p._uU(5,"Create a Journey Stage"),p.qZA(),p.YNc(6,ee,2,2,"ion-select-option",15),p.qZA()()}if(2&ae){const G=p.oxw();p.xp6(3),p.Q6J("ngModel",G.selectedStageIndex),p.xp6(3),p.Q6J("ngForOf",G.journeyManager.getJourneyStages(G.selectedJourneyID))}}function ye(ae,ht){if(1&ae){const G=p.EpF();p.TgZ(0,"ion-item")(1,"ion-label",2),p._uU(2,"New Journey Name"),p.qZA(),p.TgZ(3,"ion-input",7),p.NdJ("ngModelChange",function(at){p.CHM(G);const rn=p.oxw();return p.KtG(rn.newJourneyName=at)}),p.qZA()()}if(2&ae){const G=p.oxw();p.xp6(3),p.Q6J("ngModel",G.newJourneyName)}}let De=(()=>{class ae{appManager;navParams;journeyManager;modalController;selectedJourneyID;selectedStageIndex;newJourneyName;waypoint;poi;constructor(G,ze,at,rn){this.appManager=G,this.navParams=ze,this.journeyManager=at,this.modalController=rn,this.poi=this.navParams.get("poi"),this.waypoint=new C.kA,this.waypoint.Title=this.poi.AddressInfo.Title,this.waypoint.PoiIDs=[this.poi.ID],this.waypoint.PoiList=[];const Dn=new C.Qp("charging",1);Dn.Poi=this.poi,Dn.PoiID=this.poi.ID,this.waypoint.PoiList.push(Dn),this.newJourneyName="Trip to "+this.poi.AddressInfo.Title}cancel(){this.modalController.dismiss()}add(){if(null!=this.selectedJourneyID&&""!==this.selectedJourneyID)this.journeyManager.addJourneyWaypoint(this.selectedJourneyID,this.selectedStageIndex,this.waypoint);else{const G=new C.fw;G.ID=Date.now().toString(),""===this.newJourneyName&&(this.newJourneyName="New Journey"),G.Title=this.newJourneyName,this.journeyManager.addJourney(G,this.waypoint)}this.journeyManager.saveJourneys(),this.modalController.dismiss()}static \u0275fac=function(ze){return new(ze||ae)(p.Y36(h.c),p.Y36(a.X1),p.Y36(K.i),p.Y36(X.IN))};static \u0275cmp=p.Xpm({type:ae,selectors:[["ng-component"]],decls:39,vars:8,consts:[[1,"journeys-page","ion-padding"],[1,"banner"],["position","stacked"],[3,"ngModel","ngModelChange"],["value","","checked",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["type","text",3,"ngModel","ngModelChange"],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["name","add","slot","end"],[3,"value"],["value",""],["checked","",3,"value",4,"ngFor","ngForOf"],["checked","",3,"value"]],template:function(ze,at){1&ze&&(p.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),p._uU(3," Edit Favourite "),p.qZA()()(),p.TgZ(4,"ion-content",0)(5,"div",1)(6,"h1"),p._uU(7),p.qZA(),p.TgZ(8,"p"),p._uU(9),p.qZA()(),p.TgZ(10,"p"),p._uU(11," Add Charging Location as a Journey Waypoint "),p.qZA(),p.TgZ(12,"ion-item")(13,"ion-label",2),p._uU(14,"Add to a Journey"),p.qZA(),p.TgZ(15,"ion-select",3),p.NdJ("ngModelChange",function(Dn){return at.selectedJourneyID=Dn}),p.TgZ(16,"ion-select-option",4),p._uU(17,"Create a New Journey"),p.qZA(),p.YNc(18,Le,2,2,"ion-select-option",5),p.qZA()(),p.YNc(19,Te,7,2,"ion-item",6)(20,ye,4,1,"ion-item",6),p.TgZ(21,"ion-item")(22,"ion-label",2),p._uU(23,"Name for this step of your journey"),p.qZA(),p.TgZ(24,"ion-input",7),p.NdJ("ngModelChange",function(Dn){return at.waypoint.Title=Dn}),p.qZA()(),p.TgZ(25,"ion-item")(26,"ion-label",2),p._uU(27,"Other Notes"),p.qZA(),p.TgZ(28,"ion-textarea",3),p.NdJ("ngModelChange",function(Dn){return at.waypoint.Notes=Dn}),p.qZA()()(),p.TgZ(29,"ion-footer")(30,"ion-toolbar")(31,"ion-buttons",8)(32,"ion-button",9),p.NdJ("click",function(){return at.cancel()}),p._UZ(33,"ion-icon",10),p._uU(34," Cancel "),p.qZA()(),p.TgZ(35,"ion-buttons",11)(36,"ion-button",9),p.NdJ("click",function(){return at.add()}),p._uU(37," Add "),p._UZ(38,"ion-icon",12),p.qZA()()()()),2&ze&&(p.xp6(7),p.Oqu(at.poi.AddressInfo.Title),p.xp6(2),p.Oqu(at.poi.AddressInfo.AddressLine1),p.xp6(6),p.Q6J("ngModel",at.selectedJourneyID),p.xp6(3),p.Q6J("ngForOf",at.journeyManager.journeys),p.xp6(1),p.Q6J("ngIf",at.selectedJourneyID),p.xp6(1),p.Q6J("ngIf",!at.selectedJourneyID),p.xp6(4),p.Q6J("ngModel",at.waypoint.Title),p.xp6(4),p.Q6J("ngModel",at.waypoint.Notes))},dependencies:[oe.sg,oe.O5,_e.JJ,_e.On,X.YG,X.Sm,X.W2,X.fr,X.Gu,X.gu,X.pK,X.Ie,X.Q$,X.t9,X.n0,X.g2,X.wd,X.sr,X.QI,X.j9],encapsulation:2})}return ae})();var me=S(9127);function Ye(ae,ht){if(1&ae){const G=p.EpF();p.TgZ(0,"ion-card")(1,"ion-toolbar")(2,"ion-title",14),p._uU(3,"Preview"),p.qZA(),p.TgZ(4,"ion-buttons",15)(5,"ion-button",4),p.NdJ("click",function(){p.CHM(G);const at=p.oxw();return p.KtG(at.rotateImage())}),p._UZ(6,"ion-icon",16),p.TgZ(7,"ion-label"),p._uU(8,"Rotate"),p.qZA()()()(),p.TgZ(9,"ion-card-content")(10,"ion-list")(11,"ion-item")(12,"ion-label",17),p._uU(13,"Comment"),p.qZA(),p.TgZ(14,"ion-input",18),p.NdJ("ngModelChange",function(at){p.CHM(G);const rn=p.oxw();return p.KtG(rn.comment=at)}),p.qZA()()(),p._UZ(15,"img",19),p.qZA()()}if(2&ae){const G=p.oxw();p.xp6(14),p.Q6J("ngModel",G.comment)}}let Ce=(()=>{class ae{navParams;appManager;nav;modalController;logging;mode;processingQuality;imgData;targetWidth;targetHeight;comment;chargePointId;poi;constructor(G,ze,at,rn,Dn){this.navParams=G,this.appManager=ze,this.nav=at,this.modalController=rn,this.logging=Dn,this.processingQuality=.8,this.targetWidth=1024,this.targetHeight=800,this.mode=ze.platformMode,this.chargePointId=this.navParams.get("id"),this.poi=this.navParams.get("poi"),this.comment=""}processNativeImageSource(G){let ze=G;const at=document.getElementById("img-upload-canvas"),rn=at.getContext("2d"),Dn=new Image;Dn.onload=()=>{this.logging.log("img load:"+Dn.width),at.width=Dn.width,at.height=Dn.height,rn.fillStyle="rgb(0,0,0)",rn.fillRect(0,0,at.width,at.height),rn.drawImage(Dn,0,0,at.width,at.height),this.imgData=at.toDataURL("image/png"),this.processImage()},Dn.src=ze}loadCameraOrLibraryImage(G=!1){this.logging.log("PWA mode: fetching image");const ze=new FileReader;ze.onload=()=>{this.imgData=ze.result,this.processImage()},ze.onerror=()=>{},ze.readAsDataURL(document.getElementById("img-upload-media").files[0])}isBrowserMode(){return this.appManager.isPlatform("desktop")||this.appManager.isPlatform("hybrid")}processImage(){if(null!=this.imgData){const ze=document.getElementById("img-upload-canvas"),at=ze.getContext("2d"),rn=new Image;rn.onload=()=>{ze.width=rn.width,ze.height=rn.height,at.fillStyle="rgb(0,0,0)",at.fillRect(0,0,ze.width,ze.height),at.drawImage(rn,0,0,ze.width,ze.height),this.refreshImageFromCanvas()},rn.src=this.imgData}else this.logging.log("processImage: nothing to process.")}refreshImageFromCanvas(){const G=document.getElementById("img-upload-canvas");this.imgData=G.toDataURL("image/jpeg",.8),document.getElementById("preview").src=this.imgData}rotateImage(){const G=document.getElementById("img-upload-canvas");let ze=new Image;ze.src=G.toDataURL(),ze.onload=()=>{let at=G.height,rn=G.width;G.width=at,G.height=rn,at=G.height,rn=G.width;const Dn=G.getContext("2d");Dn.save(),Dn.translate(rn,at/rn),Dn.rotate(Math.PI/2),Dn.drawImage(ze,0,0),Dn.restore(),ze=null,this.refreshImageFromCanvas()}}performUpload(){var G=this;return(0,j.Z)(function*(){if(!G.imgData)return void(yield G.appManager.showToastNotification("Select an image to upload."));const ze={chargePointID:G.chargePointId,comment:G.comment,imageDataBase64:G.imgData};yield G.appManager.showLoadingProgress("Uploading photo..");try{yield G.appManager.submitMediaItem(ze),G.appManager.dismissLoadingProgress().then(()=>{G.appManager.showToastNotification("Upload completed"),G.modalController.dismiss()}),G.appManager.analytics.appEvent("MediaUpload","Completed")}catch{yield G.appManager.dismissLoadingProgress(),yield G.appManager.showToastNotification("Upload failed, please try again."),G.appManager.analytics.appEvent("MediaUpload","Failed")}})()}cancel(){var G=this;return(0,j.Z)(function*(){yield G.modalController.dismiss()})()}static \u0275fac=function(ze){return new(ze||ae)(p.Y36(a.X1),p.Y36(h.c),p.Y36(a.SH),p.Y36(X.IN),p.Y36(me.z))};static \u0275cmp=p.Xpm({type:ae,selectors:[["ng-component"]],decls:32,vars:3,consts:[[1,"media-upload"],[1,"ion-padding"],[1,"banner"],[1,"upload"],[3,"click"],["name","camera","aria-label","camera","slot","start"],["type","file","required","","id","img-upload-media",3,"change"],["inputFile",""],["id","img-upload-canvas",2,"display","none","width","500","height","500","border","1px solid red"],[4,"ngIf"],["slot","secondary"],["name","close","slot","start"],["slot","primary"],["name","send","slot","end"],["slot","start"],["slot","end"],["name","refresh","slot","start"],["position","floating"],["type","text","placeholder","(optional comment)",3,"ngModel","ngModelChange"],["id","preview",2,"max-width","500px"]],template:function(ze,at){if(1&ze){const rn=p.EpF();p.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),p._uU(3," Share Photo "),p.qZA()()(),p.TgZ(4,"ion-content",0)(5,"div",1)(6,"div",2)(7,"h1"),p._uU(8),p.qZA(),p.TgZ(9,"p"),p._uU(10),p.qZA()(),p.TgZ(11,"p"),p._uU(12,"You can upload a photo from your device or take a new photo: "),p.qZA(),p.TgZ(13,"div",3)(14,"ion-button",4),p.NdJ("click",function(){p.CHM(rn);const gi=p.MAs(19);return p.KtG(gi.click())}),p._UZ(15,"ion-icon",5),p.TgZ(16,"ion-label"),p._uU(17,"Choose Photo.."),p.qZA()(),p.TgZ(18,"input",6,7),p.NdJ("change",function(){return at.loadCameraOrLibraryImage()}),p.qZA()(),p._UZ(20,"canvas",8),p.YNc(21,Ye,16,1,"ion-card",9),p.qZA()(),p.TgZ(22,"ion-footer")(23,"ion-toolbar")(24,"ion-buttons",10)(25,"ion-button",4),p.NdJ("click",function(){return at.cancel()}),p._UZ(26,"ion-icon",11),p._uU(27," Cancel "),p.qZA()(),p.TgZ(28,"ion-buttons",12)(29,"ion-button",4),p.NdJ("click",function(){return at.performUpload()}),p._uU(30," Upload "),p._UZ(31,"ion-icon",13),p.qZA()()()()}2&ze&&(p.xp6(8),p.Oqu(at.poi.AddressInfo.Title),p.xp6(2),p.Oqu(at.poi.AddressInfo.AddressLine1),p.xp6(11),p.Q6J("ngIf",null!=at.imgData))},dependencies:[oe.O5,_e.JJ,_e.On,X.YG,X.Sm,X.PM,X.FN,X.W2,X.fr,X.Gu,X.gu,X.pK,X.Ie,X.Q$,X.q_,X.wd,X.sr,X.j9],styles:[".upload[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{position:fixed;top:-1000px}"]})}return ae})();var de=S(6800);function Pe(ae,ht){if(1&ae&&(p.TgZ(0,"ion-select-option",19),p._uU(1),p.qZA()),2&ae){const G=ht.$implicit;p.Q6J("value",G.ID),p.xp6(1),p.Oqu(G.Title)}}function Be(ae,ht){if(1&ae&&(p.TgZ(0,"ion-select-option",19),p._uU(1),p.qZA()),2&ae){const G=ht.$implicit;p.Q6J("value",G.ID),p.xp6(1),p.Oqu(G.Title)}}let Ne=(()=>{class ae{navParams;appManager;nav;zone;loadingController;modalController;logging;router;commentModel;poi;commentTypes;checkinTypes;constructor(G,ze,at,rn,Dn,gi,Mi,Li){this.navParams=G,this.appManager=ze,this.nav=at,this.zone=rn,this.loadingController=Dn,this.modalController=gi,this.logging=Mi,this.router=Li,this.commentModel={ChargePointID:this.navParams.get("id"),Comment:"",CheckinStatusTypeID:10,CommentTypeID:10,Rating:null},this.poi=this.navParams.get("poi"),this.commentTypes=ze.referenceDataManager.getCommentTypes(!0,!0),this.checkinTypes=ze.referenceDataManager.getCheckinStatusTypes(!0,!0)}onPageWillEnter(){}cancel(){this.modalController.dismiss()}add(){var G=this;return(0,j.Z)(function*(){const ze=yield G.loadingController.create({message:"Sending .."});yield ze.present(),(yield G.appManager.submitComment(G.commentModel).catch(rn=>{G.appManager.showToastNotification("There was a problem submitting your comment."),G.loadingController.dismiss(),G.appManager.analytics.appEvent("Comment","Failed")}))&&(G.logging.log("Comment submitted"),yield ze.dismiss(),yield G.modalController.dismiss(),G.appManager.analytics.appEvent("Comment","Submitted"))})()}static \u0275fac=function(ze){return new(ze||ae)(p.Y36(a.X1),p.Y36(h.c),p.Y36(a.SH),p.Y36(p.R0b),p.Y36(X.HT),p.Y36(X.IN),p.Y36(me.z),p.Y36(de.F0))};static \u0275cmp=p.Xpm({type:ae,selectors:[["ng-component"]],decls:53,vars:8,consts:[["color","primary"],[1,"comment-page","ion-padding"],[1,"banner"],[1,"ion-padding"],["position","stacked"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","(optional comment)",3,"ngModel","ngModelChange"],["value","5"],["value","4"],["value","3"],["value","2"],["value","1"],["value",""],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["name","send","slot","end"],[3,"value"]],template:function(ze,at){1&ze&&(p.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-title"),p._uU(3," Add Comment "),p.qZA()()(),p.TgZ(4,"ion-content",1)(5,"div",2)(6,"h1"),p._uU(7),p.qZA(),p.TgZ(8,"p"),p._uU(9),p.qZA()(),p.TgZ(10,"p",3),p._uU(11,"Recent Check-ins are a big help to other drivers when planning their journey. Tell everyone what you thought about this charging location. "),p.qZA(),p.TgZ(12,"ion-list")(13,"ion-item")(14,"ion-label",4),p._uU(15,"Comment Type"),p.qZA(),p.TgZ(16,"ion-select",5),p.NdJ("ngModelChange",function(Dn){return at.commentModel.CommentTypeID=Dn}),p.YNc(17,Pe,2,2,"ion-select-option",6),p.qZA()(),p.TgZ(18,"ion-item")(19,"ion-label",4),p._uU(20,"What Did You Think?"),p.qZA(),p.TgZ(21,"ion-input",7),p.NdJ("ngModelChange",function(Dn){return at.commentModel.Comment=Dn}),p.qZA()(),p.TgZ(22,"ion-item")(23,"ion-label",4),p._uU(24,"Did You Successfully Charge?"),p.qZA(),p.TgZ(25,"ion-select",5),p.NdJ("ngModelChange",function(Dn){return at.commentModel.CheckinStatusTypeID=Dn}),p.YNc(26,Be,2,2,"ion-select-option",6),p.qZA()(),p.TgZ(27,"ion-item")(28,"ion-label",4),p._uU(29,"Your Rating"),p.qZA(),p.TgZ(30,"ion-select",5),p.NdJ("ngModelChange",function(Dn){return at.commentModel.Rating=Dn}),p.TgZ(31,"ion-select-option",8),p._uU(32,"5 - Excellent"),p.qZA(),p.TgZ(33,"ion-select-option",9),p._uU(34,"4 - Good"),p.qZA(),p.TgZ(35,"ion-select-option",10),p._uU(36,"3 - Average"),p.qZA(),p.TgZ(37,"ion-select-option",11),p._uU(38,"2 - Not Good"),p.qZA(),p.TgZ(39,"ion-select-option",12),p._uU(40,"1 - Bad"),p.qZA(),p.TgZ(41,"ion-select-option",13),p._uU(42,"Not Rated"),p.qZA()()()()(),p.TgZ(43,"ion-footer")(44,"ion-toolbar")(45,"ion-buttons",14)(46,"ion-button",15),p.NdJ("click",function(){return at.cancel()}),p._UZ(47,"ion-icon",16),p._uU(48," Cancel "),p.qZA()(),p.TgZ(49,"ion-buttons",17)(50,"ion-button",15),p.NdJ("click",function(){return at.add()}),p._uU(51," Submit "),p._UZ(52,"ion-icon",18),p.qZA()()()()),2&ze&&(p.xp6(7),p.Oqu(at.poi.AddressInfo.Title),p.xp6(2),p.Oqu(at.poi.AddressInfo.AddressLine1),p.xp6(7),p.Q6J("ngModel",at.commentModel.CommentTypeID),p.xp6(1),p.Q6J("ngForOf",at.commentTypes),p.xp6(4),p.Q6J("ngModel",at.commentModel.Comment),p.xp6(4),p.Q6J("ngModel",at.commentModel.CheckinStatusTypeID),p.xp6(1),p.Q6J("ngForOf",at.checkinTypes),p.xp6(4),p.Q6J("ngModel",at.commentModel.Rating))},dependencies:[oe.sg,_e.JJ,_e.On,X.YG,X.Sm,X.W2,X.fr,X.Gu,X.gu,X.pK,X.Ie,X.Q$,X.q_,X.t9,X.n0,X.wd,X.sr,X.QI,X.j9],encapsulation:2})}return ae})();var Ae=S(7777),Ge=S(4669),lt=S(8767),ne=S(6662),Ee=S(866),xe=S(3999),je=S(1163);function Se(ae,ht){if(1&ae&&(p.TgZ(0,"div")(1,"small"),p._uU(2),p.qZA()()),2&ae){const G=p.oxw(2);p.xp6(2),p.Oqu(G.connectionSummary)}}function Ve(ae,ht){if(1&ae&&(p.TgZ(0,"div")(1,"small"),p._uU(2),p.qZA()()),2&ae){const G=p.oxw(2);p.xp6(2),p.Oqu(G.poi.OperatorInfo.Title)}}function Xe(ae,ht){1&ae&&(p.TgZ(0,"div")(1,"small"),p._uU(2,"[Submission Awaiting Review]"),p.qZA()())}function Ht(ae,ht){if(1&ae){const G=p.EpF();p.ynx(0),p.TgZ(1,"ion-button",26),p.NdJ("click",function(){p.CHM(G);const at=p.oxw(2);return p.KtG(at.addFavourite())}),p._UZ(2,"ion-icon",27),p.TgZ(3,"ion-label"),p._uU(4,"Favourite"),p.qZA()(),p.TgZ(5,"ion-button",28),p.NdJ("click",function(){p.CHM(G);const at=p.oxw(2);return p.KtG(at.edit())}),p._UZ(6,"ion-icon",29),p.TgZ(7,"ion-label"),p._uU(8,"Edit"),p.qZA()(),p.BQk()}}function cn(ae,ht){if(1&ae){const G=p.EpF();p.ynx(0),p.TgZ(1,"ion-button",30),p.NdJ("click",function(){p.CHM(G);const at=p.oxw(2);return p.KtG(at.launchNavigation())}),p._UZ(2,"ion-icon",31),p.TgZ(3,"ion-label"),p._uU(4,"Navigate"),p.qZA()(),p.BQk()}}function xn(ae,ht){if(1&ae){const G=p.EpF();p.ynx(0),p.TgZ(1,"ion-button",32),p.NdJ("click",function(){p.CHM(G);const at=p.oxw(2);return p.KtG(at.addComment())}),p._UZ(2,"ion-icon",33),p.TgZ(3,"ion-label"),p._uU(4,"Add Comment"),p.qZA()(),p.BQk()}}function $t(ae,ht){if(1&ae){const G=p.EpF();p.ynx(0),p.TgZ(1,"ion-button",34),p.NdJ("click",function(){p.CHM(G);const at=p.oxw(2);return p.KtG(at.addMedia())}),p._UZ(2,"ion-icon",35),p.TgZ(3,"ion-label"),p._uU(4," Add Photo"),p.qZA()(),p.BQk()}}function ke(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.AddressLine1,"")}}function pe(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.AddressLine2,"")}}function Oe(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.Town,"")}}function ie(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.StateOrProvince,"")}}function it(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.Postcode,"")}}function _t(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.Country.Title,"")}}function Kt(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._uU(1),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(1),p.hij(" ",G.poi.AddressInfo.AccessComments," ")}}function Mn(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",40),p.TgZ(2,"span",38),p._uU(3),p.qZA()()),2&ae){const G=p.oxw(4);p.xp6(3),p.Oqu(G.poi.AddressInfo.ContactTelephone1)}}function fn(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",40),p.TgZ(2,"span",38),p._uU(3),p.qZA()()),2&ae){const G=p.oxw(4);p.xp6(3),p.Oqu(G.poi.AddressInfo.ContactTelephone2)}}function qn(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",41),p.TgZ(2,"span",38),p._uU(3),p.qZA()()),2&ae){const G=p.oxw(4);p.xp6(3),p.Oqu(G.poi.AddressInfo.ContactEmail)}}function li(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",42),p.TgZ(2,"span",38)(3,"a",43),p._uU(4),p.qZA()()()),2&ae){const G=p.oxw(4);p.xp6(3),p.s9C("href",G.poi.AddressInfo.RelatedURL,p.LSH),p.xp6(1),p.Oqu(G.poi.AddressInfo.RelatedURL)}}function en(ae,ht){if(1&ae&&(p.TgZ(0,"ion-card")(1,"ion-card-header")(2,"ion-card-subtitle"),p._uU(3),p.ALo(4,"translate"),p.qZA()(),p.TgZ(5,"ion-card-content")(6,"ion-grid")(7,"ion-row")(8,"ion-col")(9,"ion-label"),p._uU(10),p.ALo(11,"translate"),p.qZA(),p.TgZ(12,"div",38),p.YNc(13,ke,2,1,"div",0)(14,pe,2,1,"div",0)(15,Oe,2,1,"div",0)(16,ie,2,1,"div",0)(17,it,2,1,"div",0)(18,_t,2,1,"div",0),p.qZA()(),p.TgZ(19,"ion-col"),p.YNc(20,Kt,2,1,"p",0)(21,Mn,4,1,"p",0)(22,fn,4,1,"p",0)(23,qn,4,1,"p",0)(24,li,5,2,"p",0),p.qZA()(),p.TgZ(25,"ion-row")(26,"ion-col")(27,"ion-label",39),p._uU(28),p.ALo(29,"number"),p.ALo(30,"number"),p.qZA()()()()()()),2&ae){const G=p.oxw(3);p.xp6(3),p.hij(" ",p.lcZ(4,15,"ocm.details.location.sectionTitle")," "),p.xp6(7),p.hij(" ",p.lcZ(11,17,"ocm.details.location.address"),""),p.xp6(3),p.Q6J("ngIf",G.poi.AddressInfo.AddressLine1),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.AddressLine2),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.Town),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.StateOrProvince),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.Postcode),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.Country),p.xp6(2),p.Q6J("ngIf",G.poi.AddressInfo.AccessComments),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.ContactTelephone1),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.ContactTelephone2),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.ContactEmail),p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo.RelatedURL),p.xp6(4),p.AsE(" Lat/Long: ",p.xi3(29,19,G.poi.AddressInfo.Latitude,"1.1-6")," , ",p.xi3(30,22,G.poi.AddressInfo.Longitude,"1.1-6")," ")}}function Dt(ae,ht){if(1&ae&&(p.TgZ(0,"p")(1,"span",44),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"span",38),p._uU(5),p.qZA()()),2&ae){const G=p.oxw(3);p.xp6(2),p.hij("",p.lcZ(3,2,"ocm.details.numberOfPoints"),":"),p.xp6(3),p.Oqu(G.poi.NumberOfPoints)}}function Ie(ae,ht){if(1&ae&&(p.TgZ(0,"p")(1,"span",44),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"span",38),p._uU(5),p.qZA()()),2&ae){const G=p.oxw(3);p.xp6(2),p.hij("",p.lcZ(3,2,"ocm.details.operationalStatus"),":"),p.xp6(3),p.hij(" ",G.poi.StatusType.Title," ")}}function Ct(ae,ht){if(1&ae&&(p.TgZ(0,"p")(1,"span",44),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"span",38),p._uU(5),p.qZA()()),2&ae){const G=p.oxw(3);p.xp6(2),p.hij("",p.lcZ(3,2,"ocm.details.usageType"),":"),p.xp6(3),p.Oqu(G.poi.UsageType.Title)}}function on(ae,ht){if(1&ae&&(p.TgZ(0,"p")(1,"span",44),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"span",38),p._uU(5),p.qZA()()),2&ae){const G=p.oxw(3);p.xp6(2),p.hij("",p.lcZ(3,2,"ocm.details.usageCost"),":"),p.xp6(3),p.hij(" ",G.poi.UsageCost,"")}}function Rn(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"br"),p._uU(2),p.ALo(3,"translate"),p._UZ(4,"br"),p.TgZ(5,"span",38),p._uU(6),p.qZA()()),2&ae){const G=p.oxw(3);p.xp6(2),p.hij("",p.lcZ(3,2,"ocm.details.generalComments"),": "),p.xp6(4),p.Oqu(G.poi.GeneralComments)}}function Vn(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",46),p._uU(2),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(2),p.hij(" ",G.poi.OperatorInfo.WebsiteURL," ")}}function Ut(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",41),p._uU(2),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(2),p.hij(" ",G.poi.OperatorInfo.ContactEmail," ")}}function Hn(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p._UZ(1,"ion-icon",41),p._uU(2),p.qZA()),2&ae){const G=p.oxw(4);p.xp6(2),p.hij(" ",G.poi.OperatorInfo.FaultReportEmail," ")}}function qe(ae,ht){if(1&ae&&(p.TgZ(0,"ion-card")(1,"ion-card-header")(2,"ion-card-subtitle"),p._uU(3),p.ALo(4,"translate"),p.qZA()(),p.TgZ(5,"ion-card-content")(6,"div",38)(7,"p",45),p._uU(8),p.qZA(),p.YNc(9,Vn,3,1,"p",0)(10,Ut,3,1,"p",0)(11,Hn,3,1,"p",0),p.qZA()()()),2&ae){const G=p.oxw(3);p.xp6(3),p.hij(" ",p.lcZ(4,5,"ocm.details.operator.sectionTitle")," "),p.xp6(5),p.hij(" ",G.poi.OperatorInfo.Title," "),p.xp6(1),p.Q6J("ngIf",G.poi.OperatorInfo.WebsiteURL),p.xp6(1),p.Q6J("ngIf",null!=G.poi.OperatorInfo.ContactEmail),p.xp6(1),p.Q6J("ngIf",null!=G.poi.OperatorInfo.FaultReportEmail&&G.poi.OperatorInfo.FaultReportEmail!=G.poi.OperatorInfo.ContactEmail)}}function Nt(ae,ht){if(1&ae){const G=p.EpF();p.TgZ(0,"a",48),p.NdJ("click",function(){p.CHM(G);const at=p.oxw(4);return p.KtG(at.launchURL(at.poi.DataProvider.WebsiteURL))}),p._uU(1),p.qZA()}if(2&ae){const G=p.oxw(4);p.xp6(1),p.Oqu(G.poi.DataProvider.WebsiteURL)}}function Xt(ae,ht){if(1&ae&&(p.TgZ(0,"div",38)(1,"h3"),p._uU(2),p.ALo(3,"translate"),p.qZA(),p.TgZ(4,"p"),p._uU(5),p.qZA(),p.YNc(6,Nt,2,1,"a",47),p.TgZ(7,"p"),p._uU(8),p.qZA()()),2&ae){const G=p.oxw(3);p.xp6(2),p.hij(" ",p.lcZ(3,4,"ocm.details.dataProvider.sectionTitle")," "),p.xp6(3),p.Oqu(null==G.poi.DataProvider?null:G.poi.DataProvider.Title),p.xp6(1),p.Q6J("ngIf",G.poi.DataProvider.WebsiteURL),p.xp6(2),p.Oqu(null==G.poi.DataProvider?null:G.poi.DataProvider.License)}}function Tn(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p.YNc(1,en,31,25,"ion-card",0),p.TgZ(2,"ion-card")(3,"ion-card-header")(4,"ion-card-subtitle"),p._uU(5),p.ALo(6,"translate"),p.qZA()(),p.TgZ(7,"ion-card-content"),p.YNc(8,Dt,6,4,"p",0),p._UZ(9,"app-equipment-details",36),p.qZA()(),p.TgZ(10,"ion-card")(11,"ion-card-header")(12,"ion-card-subtitle"),p._uU(13,"Usage Restrictions"),p.qZA()(),p.TgZ(14,"ion-card-content"),p.YNc(15,Ie,6,4,"p",0)(16,Ct,6,4,"p",0)(17,on,6,4,"p",0)(18,Rn,7,4,"p",0),p.qZA()(),p.YNc(19,qe,12,7,"ion-card",0),p.TgZ(20,"ion-card")(21,"ion-card-header"),p._uU(22),p.ALo(23,"translate"),p.qZA(),p.TgZ(24,"ion-card-content"),p.YNc(25,Xt,9,6,"div",37),p.qZA()()()),2&ae){const G=p.oxw(2);p.xp6(1),p.Q6J("ngIf",G.poi.AddressInfo),p.xp6(4),p.hij(" ",p.lcZ(6,11,"ocm.details.equipment.sectionTitle")," "),p.xp6(3),p.Q6J("ngIf",null!=G.poi.NumberOfPoints),p.xp6(1),p.Q6J("item",G.poi),p.xp6(6),p.Q6J("ngIf",null!=G.poi.StatusType),p.xp6(1),p.Q6J("ngIf",null!=G.poi.UsageType),p.xp6(1),p.Q6J("ngIf",null!=G.poi.UsageCost),p.xp6(1),p.Q6J("ngIf",null!=G.poi.GeneralComments),p.xp6(1),p.Q6J("ngIf",G.poi.OperatorInfo),p.xp6(3),p.hij(" ",p.lcZ(23,13,"ocm.details.advancedDetails")," "),p.xp6(3),p.Q6J("ngIf",G.poi.DataProvider)}}function oi(ae,ht){if(1&ae&&p._UZ(0,"img",51),2&ae){const G=p.oxw().$implicit;p.s9C("src",null==G.User?null:G.User.ProfileImageURL,p.LSH)}}function xi(ae,ht){if(1&ae&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&ae){const G=p.oxw().$implicit;p.xp6(1),p.Oqu(G.User.Username)}}function Oi(ae,ht){if(1&ae&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&ae){const G=p.oxw().$implicit;p.xp6(1),p.Oqu(G.Username)}}function gr(ae,ht){if(1&ae&&(p.TgZ(0,"p",38),p._uU(1),p.qZA()),2&ae){const G=p.oxw().$implicit;p.xp6(1),p.hij(" ",null==G.CommentType?null:G.CommentType.Title," ")}}function ki(ae,ht){if(1&ae&&(p.TgZ(0,"p")(1,"span",44),p._uU(2,"Rating:"),p.qZA(),p.TgZ(3,"span",38),p._uU(4),p.qZA()()),2&ae){const G=p.oxw().$implicit;p.xp6(4),p.hij("",G.Rating," out of 5")}}function Wi(ae,ht){1&ae&&(p.ynx(0),p._UZ(1,"ion-icon",52),p.BQk())}function _n(ae,ht){1&ae&&(p.ynx(0),p._UZ(1,"ion-icon",53),p.BQk())}function Bi(ae,ht){if(1&ae&&(p.TgZ(0,"p"),p.YNc(1,Wi,2,0,"ng-container",0)(2,_n,2,0,"ng-container",0),p._uU(3),p.qZA()),2&ae){const G=p.oxw().$implicit;p.xp6(1),p.Q6J("ngIf",!0===G.CheckinStatusType.IsPositive),p.xp6(1),p.Q6J("ngIf",!1===G.CheckinStatusType.IsPositive),p.xp6(1),p.hij(" ",G.CheckinStatusType.Title," ")}}function pn(ae,ht){if(1&ae&&(p.TgZ(0,"ion-card")(1,"ion-item")(2,"ion-avatar",19),p.YNc(3,oi,1,1,"img",50),p.qZA(),p.TgZ(4,"ion-label"),p.YNc(5,xi,2,1,"span",0)(6,Oi,2,1,"span",0),p.qZA(),p.TgZ(7,"ion-label",20),p._uU(8),p.ALo(9,"date"),p.qZA()(),p.TgZ(10,"ion-card-content")(11,"p"),p._uU(12),p.qZA(),p.YNc(13,gr,2,1,"p",37)(14,ki,5,1,"p",0)(15,Bi,4,3,"p",0),p.qZA()()),2&ae){const G=ht.$implicit;p.xp6(3),p.Q6J("ngIf",G.User&&G.User.ProfileImageURL),p.xp6(2),p.Q6J("ngIf",G.User),p.xp6(1),p.Q6J("ngIf",!G.User),p.xp6(2),p.hij(" ",p.lcZ(9,8,G.DateCreated)," "),p.xp6(4),p.Oqu(G.Comment),p.xp6(1),p.Q6J("ngIf",10!=G.CommentTypeID),p.xp6(1),p.Q6J("ngIf",G.Rating),p.xp6(1),p.Q6J("ngIf",G.CheckinStatusType)}}function sn(ae,ht){if(1&ae&&(p.ynx(0),p.YNc(1,pn,16,10,"ion-card",49),p.BQk()),2&ae){const G=p.oxw(3);p.xp6(1),p.Q6J("ngForOf",G.poi.UserComments)}}function Cn(ae,ht){1&ae&&(p.ynx(0),p.TgZ(1,"ion-card")(2,"ion-card-content")(3,"p"),p._uU(4),p.ALo(5,"translate"),p.qZA()()(),p.BQk()),2&ae&&(p.xp6(4),p.hij(" ",p.lcZ(5,1,"ocm.details.commentsAndRatings.addPrompt")," "))}function $i(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p.YNc(1,sn,2,1,"ng-container",0)(2,Cn,6,3,"ng-container",0),p.qZA()),2&ae){const G=p.oxw(2);p.xp6(1),p.Q6J("ngIf",1==G.poi._hasComments),p.xp6(1),p.Q6J("ngIf",0==G.poi._hasComments)}}function ct(ae,ht){if(1&ae&&p._UZ(0,"img",51),2&ae){const G=p.oxw().$implicit;p.s9C("src",null==G.User?null:G.User.ProfileImageURL,p.LSH)}}function ge(ae,ht){if(1&ae&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&ae){const G=p.oxw().$implicit;p.xp6(1),p.Oqu(G.User.Username)}}function se(ae,ht){if(1&ae&&(p.TgZ(0,"span"),p._uU(1),p.qZA()),2&ae){const G=p.oxw().$implicit;p.xp6(1),p.Oqu(G.Username)}}function tt(ae,ht){if(1&ae&&(p.TgZ(0,"ion-card"),p._UZ(1,"img",51),p.TgZ(2,"ion-item")(3,"ion-avatar",19),p.YNc(4,ct,1,1,"img",50),p.qZA(),p.TgZ(5,"ion-label"),p.YNc(6,ge,2,1,"span",0)(7,se,2,1,"span",0),p.qZA(),p.TgZ(8,"ion-label",20),p._uU(9),p.ALo(10,"date"),p.qZA()(),p.TgZ(11,"ion-card-content")(12,"p"),p._uU(13),p.qZA()()()),2&ae){const G=ht.$implicit;p.xp6(1),p.s9C("src",G.ItemMediumURL,p.LSH),p.xp6(3),p.Q6J("ngIf",G.User&&G.User.ProfileImageURL),p.xp6(2),p.Q6J("ngIf",G.User),p.xp6(1),p.Q6J("ngIf",!G.User),p.xp6(2),p.hij(" ",p.lcZ(10,6,G.DateCreated)," "),p.xp6(4),p.Oqu(G.Comment)}}function yt(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p.YNc(1,tt,14,8,"ion-card",49),p.qZA()),2&ae){const G=p.oxw(3);p.xp6(1),p.Q6J("ngForOf",G.poi.MediaItems)}}function Ot(ae,ht){1&ae&&(p.ynx(0),p.TgZ(1,"ion-card")(2,"ion-card-content")(3,"p"),p._uU(4),p.ALo(5,"translate"),p.qZA()()(),p.BQk()),2&ae&&(p.xp6(4),p.hij(" ",p.lcZ(5,1,"ocm.details.mediaItems.addPrompt")," "))}function Gt(ae,ht){if(1&ae&&(p.TgZ(0,"div"),p.YNc(1,yt,2,1,"div",0)(2,Ot,6,3,"ng-container",0),p.qZA()),2&ae){const G=p.oxw(2);p.xp6(1),p.Q6J("ngIf",G.poi._hasPhotos),p.xp6(1),p.Q6J("ngIf",0==G.poi._hasPhotos)}}function Vt(ae,ht){if(1&ae&&(p.TgZ(0,"p",54),p._uU(1),p.qZA()),2&ae){const G=p.oxw(2);p.xp6(1),p.hij(" ",G.json,"")}}function Et(ae,ht){if(1&ae){const G=p.EpF();p.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h2"),p._uU(4),p.qZA(),p.TgZ(5,"div")(6,"small"),p._uU(7),p.qZA()(),p.YNc(8,Se,3,1,"div",0)(9,Ve,3,1,"div",0)(10,Xe,3,0,"div",0),p.TgZ(11,"ion-badge",3),p._uU(12),p.ALo(13,"number"),p.qZA()(),p.TgZ(14,"ion-fab",4)(15,"ion-fab-button"),p._UZ(16,"ion-icon",5),p.qZA(),p.TgZ(17,"ion-fab-list",6)(18,"ion-fab-button",7),p.NdJ("click",function(){p.CHM(G);const at=p.oxw();return p.KtG(at.addComment())}),p._UZ(19,"ion-icon",8),p.qZA(),p.TgZ(20,"ion-fab-button",9),p.NdJ("click",function(){p.CHM(G);const at=p.oxw();return p.KtG(at.addMedia())}),p._UZ(21,"ion-icon",10),p.qZA(),p.TgZ(22,"ion-fab-button",11),p.NdJ("click",function(){p.CHM(G);const at=p.oxw();return p.KtG(at.addFavourite())}),p._UZ(23,"ion-icon",12),p.qZA(),p.TgZ(24,"ion-fab-button",13),p.NdJ("click",function(){p.CHM(G);const at=p.oxw();return p.KtG(at.edit())}),p._UZ(25,"ion-icon",14),p.qZA(),p.TgZ(26,"ion-fab-button",15),p.NdJ("click",function(){p.CHM(G);const at=p.oxw();return p.KtG(at.refresh())}),p._UZ(27,"ion-icon",16),p.qZA()()()(),p.TgZ(28,"ion-refresher",17),p.NdJ("ionRefresh",function(at){p.CHM(G);const rn=p.oxw();return p.KtG(rn.refresh(at))}),p._UZ(29,"ion-refresher-content",18),p.qZA(),p.TgZ(30,"ion-toolbar")(31,"ion-buttons",19),p.YNc(32,Ht,9,0,"ng-container",0),p.qZA(),p.TgZ(33,"ion-buttons",20),p.YNc(34,cn,5,0,"ng-container",0)(35,xn,5,0,"ng-container",0)(36,$t,5,0,"ng-container",0),p.qZA()(),p.TgZ(37,"ion-segment",21),p.NdJ("ngModelChange",function(at){p.CHM(G);const rn=p.oxw();return p.KtG(rn.selectedTab=at)}),p.TgZ(38,"ion-segment-button",22)(39,"ion-label"),p._uU(40," Details "),p.qZA()(),p.TgZ(41,"ion-segment-button",23)(42,"ion-label"),p._uU(43),p.qZA()(),p.TgZ(44,"ion-segment-button",24)(45,"ion-label"),p._uU(46),p.qZA()()(),p.YNc(47,Tn,26,15,"div",0)(48,$i,3,2,"div",0)(49,Gt,3,2,"div",0)(50,Vt,2,1,"p",25),p.qZA()}if(2&ae){const G=p.oxw();p.xp6(1),p.Udp("background-image",G.backdropImage?"url("+G.backdropImage+")":""),p.xp6(3),p.hij(" ",G.poi.AddressInfo.Title," "),p.xp6(3),p.hij("OCM-",G.poi.ID,""),p.xp6(1),p.Q6J("ngIf",G.connectionSummary),p.xp6(1),p.Q6J("ngIf",G.poi.OperatorInfo),p.xp6(1),p.Q6J("ngIf",1==G.poi.SubmissionStatusTypeID),p.xp6(2),p.Oqu(p.xi3(13,19,G.avgRating,"1.1-1")),p.xp6(20),p.Q6J("ngIf","location"==G.selectedTab),p.xp6(2),p.Q6J("ngIf","location"==G.selectedTab),p.xp6(1),p.Q6J("ngIf","comments"==G.selectedTab),p.xp6(1),p.Q6J("ngIf","media"==G.selectedTab),p.xp6(1),p.Q6J("ngModel",G.selectedTab),p.xp6(6),p.hij("Comments (",G.poi.UserComments?G.poi.UserComments.length:0,")"),p.xp6(3),p.hij(" Photos (",G.poi.MediaItems?G.poi.MediaItems.length:0,")"),p.xp6(1),p.Q6J("ngIf","location"==G.selectedTab),p.xp6(1),p.Q6J("ngIf","comments"==G.selectedTab),p.xp6(1),p.Q6J("ngIf","media"==G.selectedTab),p.xp6(1),p.Q6J("ngIf",1==G.appManager.isDebugMode)}}function Jt(ae,ht){1&ae&&(p.TgZ(0,"div")(1,"h2"),p._uU(2,"POI Not Found"),p.qZA(),p.TgZ(3,"p"),p._uU(4,"The POI details could not be loaded."),p.qZA()())}let Bn=(()=>{class ae{appManager;nav;translate;logging;modalController;actionSheetController;poiManager;router;poi;selectedTab;json;hasNavBar=!1;backdropImage;avgRating;connectionSummary;constructor(G,ze,at,rn,Dn,gi,Mi,Li){this.appManager=G,this.nav=ze,this.translate=at,this.logging=rn,this.modalController=Dn,this.actionSheetController=gi,this.poiManager=Mi,this.router=Li}ngOnChanges(G){if(this.logging.log("In ngOnChanges of POI Details"),null!=this.poi&&null!=this.poi.AddressInfo){if(this.selectedTab="location",null!=this.poi.MediaItems&&this.poi.MediaItems.length>0){this.poi._hasPhotos=!0;for(let ze of this.poi.MediaItems)ze.ItemMediumURL=ze.ItemThumbnailURL.replace(".thmb.",".medi.");this.backdropImage=this.poi.MediaItems[this.poi.MediaItems.length-1].ItemThumbnailURL.replace(".thmb.",".medi.")}else this.poi._hasPhotos=!1,this.backdropImage=null;if(null!=this.poi.UserComments&&this.poi.UserComments.length>0){this.poi._hasComments=!0;try{let ze=this.poi.UserComments.filter(at=>at.Rating>0);if(ze.length>0){let at=0;for(let rn of ze)at+=rn.Rating;this.avgRating=at/ze.length}else this.avgRating=null}catch{}}else this.poi._hasComments=!1;if(this.poi.Connections&&this.poi.Connections.length>0){let ze="";for(let at of this.poi.Connections)-1==ze.indexOf(at.ConnectionType.Title)&&(ze+=(""!=ze?", ":"")+at.ConnectionType.Title);this.connectionSummary=ze}}}ngOnInit(){this.logging.log("In ngInit of POI Details")}get staticMapURL(){return"https://maps.googleapis.com/maps/api/staticmap?key="+(new Ae.X).googleMapsAPIKey+"¢er="+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude+"&zoom=13&scale=2&size="+this.staticMapSize+"&maptype=roadmap&format=jpg&visual_refresh=true&markers=size:small%7Ccolor:0xff0000%7Clabel:%7C"+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude}get staticMapSize(){return 0===this.appManager.clientWidth?"240x100":this.appManager.clientWidth>=800?"640x100":this.appManager.clientWidth>=400?"400x100":"240x100"}continueAddComment(){var G=this;return(0,j.Z)(function*(){const ze=yield G.modalController.create({component:Ne,componentProps:{id:G.poi.ID,poi:G.poi}});setTimeout(()=>{G.refresh()},1e3),yield ze.present()})()}addComment(){var G=this;return(0,j.Z)(function*(){if(G.appManager.isUserAuthenticated(!0))yield G.continueAddComment();else{const ze=yield G.modalController.create({component:lt.F});ze.onDidDismiss().then((0,j.Z)(function*(){G.appManager.isUserAuthenticated(!0)&&(yield G.continueAddComment())})),yield ze.present()}})()}continueAddMedia(){var G=this;return(0,j.Z)(function*(){const ze=yield G.modalController.create({component:Ce,componentProps:{id:G.poi.ID,poi:G.poi}});ze.onDidDismiss().then(()=>{setTimeout(()=>{G.refresh()},1e3)}),yield ze.present()})()}addMedia(){var G=this;return(0,j.Z)(function*(){if(G.appManager.isUserAuthenticated(!0))yield G.continueAddMedia();else{const ze=yield G.modalController.create({component:lt.F});ze.onDidDismiss().then((0,j.Z)(function*(){G.appManager.isUserAuthenticated(!0)&&(yield G.continueAddMedia())})),yield ze.present()}})()}addFavourite(){var G=this;return(0,j.Z)(function*(){yield(yield G.actionSheetController.create({header:"Add Favourite",buttons:[{text:"Add to Journey",handler:()=>{G.modalController.create({component:De,componentProps:{poi:G.poi}}).then(at=>at.present())}},{text:"Cancel",role:"cancel",handler:()=>{}}]})).present()})()}launchNavigation(){this.appManager.isPlatform("ios")?this.appManager.launchWebPage("https://maps.apple.com/?ll="+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude):this.appManager.launchWebPage("https://maps.google.com/?q="+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude)}launchURL(G){this.appManager.launchWebPage(G)}continueEdit(){var G=this;return(0,j.Z)(function*(){const ze=yield G.modalController.create({component:ne.Y,componentProps:{id:G.poi.ID}});return ze.onDidDismiss().then(at=>{G.refresh()}),yield ze.present()})()}edit(){var G=this;return(0,j.Z)(function*(){if(Ee.c.isFeatureEnabled("EDIT_POI"))if(G.appManager.isUserAuthenticated(!0))yield G.continueEdit();else{const ze=yield G.modalController.create({component:lt.F});ze.onDidDismiss().then((0,j.Z)(function*(){G.appManager.isUserAuthenticated(!0)&&(yield G.continueEdit())})),yield ze.present()}else G.appManager.launchOCMWebPage("/poi/edit/"+G.poi.ID)})()}refresh(G=null){this.poi&&this.poiManager.getPOIById(this.poi.ID,!0,!0).then(ze=>{ze&&(this.poi=ze,this.ngOnChanges(null)),G&&G.target.complete()})}static \u0275fac=function(ze){return new(ze||ae)(p.Y36(h.c),p.Y36(a.SH),p.Y36(xe.sK),p.Y36(me.z),p.Y36(X.IN),p.Y36(X.BX),p.Y36(Ge.R),p.Y36(de.F0))};static \u0275cmp=p.Xpm({type:ae,selectors:[["poi-details"]],inputs:{poi:"poi"},features:[p.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[1,"banner"],[1,"banner-content"],["color","primary","title","Average User Rating"],["vertical","top","horizontal","end","slot","fixed"],["name","add"],["side","bottom"],["title","Add a comment or charging check-in",3,"click"],["name","chatbubbles"],["title","Add a Photo",3,"click"],["name","camera"],["title","Add to Favourites",3,"click"],["name","star"],["title","Submit an Edit",3,"click"],["name","create"],["title","Refresh",3,"click"],["name","refresh"],["slot","fixed",3,"ionRefresh"],["pullingIcon","caret-down","pullingText","Pull to refresh","refreshingSpinner","circles","refreshingText","Refreshing..."],["slot","start"],["slot","end"],[3,"ngModel","ngModelChange"],["value","location","selected",""],["value","comments"],["value","media"],["style","white-space: pre-wrap;",4,"ngIf"],["size","small","title","Add to Favourites",3,"click"],["name","star","slot","start"],["size","small","title","Submit an Edit",3,"click"],["name","create","slot","start"],["size","small","title","Navigate to this location",3,"click"],["name","navigate","slot","start"],["size","small","title","Add a comment or charging check-in",3,"click"],["name","chatbubbles","slot","start"],["size","small","title","Add a Photo",3,"click"],["name","camera","slot","start"],[3,"item"],["class","details",4,"ngIf"],[1,"details"],[1,"details-minor"],["name","call"],["name","mail"],["name","globe"],["target","_system",3,"href"],[1,"label"],[1,"ion-padding-left"],["name","link"],["href","javascript:void(0)",3,"click",4,"ngIf"],["href","javascript:void(0)",3,"click"],[4,"ngFor","ngForOf"],[3,"src",4,"ngIf"],[3,"src"],["name","checkmark-circle","color","success",2,"font-size","2em"],["name","close-circle","color","danger"],[2,"white-space","pre-wrap"]],template:function(ze,at){1&ze&&p.YNc(0,Et,51,22,"div",0)(1,Jt,5,0,"div",0),2&ze&&(p.Q6J("ngIf",null!=at.poi&&null!=at.poi.AddressInfo),p.xp6(1),p.Q6J("ngIf",null==at.poi||null==at.poi.AddressInfo))},dependencies:[oe.sg,oe.O5,X.BJ,X.yp,X.YG,X.Sm,X.PM,X.FN,X.Zi,X.tO,X.wI,X.IJ,X.W4,X.zq,X.jY,X.gu,X.Ie,X.Q$,X.nJ,X.Wo,X.Nd,X.cJ,X.GO,X.sr,X.QI,_e.JJ,_e.On,je.B,oe.JJ,oe.uU,xe.X$],styles:[".banner[_ngcontent-%COMP%]{background-color:#4f712f;color:#ffffffec;padding:1em;text-shadow:#000 1px 1px 1px;min-height:180px;background-size:cover}.banner[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.banner-content[_ngcontent-%COMP%]{padding-right:48px}h3[_ngcontent-%COMP%]{font-weight:700}.label[_ngcontent-%COMP%]{color:#000;font-weight:700;font-size:12px}.details[_ngcontent-%COMP%]{color:#707d61;margin-left:1em;font-size:12px}.details-minor[_ngcontent-%COMP%]{color:#707d61;font-size:12px}p[_ngcontent-%COMP%]{display:block;padding:4px}"]})}return ae})(),mn=(()=>{class ae{modalController;navParams;appManager;poi;hasNavbar=!1;constructor(G,ze,at){this.modalController=G,this.navParams=ze,this.appManager=at,this.poi=this.navParams.get("item"),this.appManager.analytics.viewEvent("POIDetails")}close(){this.modalController.dismiss()}static \u0275fac=function(ze){return new(ze||ae)(p.Y36(X.IN),p.Y36(a.X1),p.Y36(h.c))};static \u0275cmp=p.Xpm({type:ae,selectors:[["ng-component"]],decls:11,vars:3,consts:[["color","primary"],["slot","start"],[3,"click"],["name","close","slot","icon-only"],[1,"poi-details"],[3,"poi"]],template:function(ze,at){1&ze&&(p.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-title"),p._uU(3),p.TgZ(4,"small"),p._uU(5),p.qZA()(),p.TgZ(6,"ion-buttons",1)(7,"ion-button",2),p.NdJ("click",function(){return at.close()}),p._UZ(8,"ion-icon",3),p.qZA()()()(),p.TgZ(9,"ion-content",4),p._UZ(10,"poi-details",5),p.qZA()),2&ze&&(p.xp6(3),p.hij(" ",at.poi.AddressInfo.Title," "),p.xp6(2),p.hij("OCM-",at.poi.ID,""),p.xp6(5),p.Q6J("poi",at.poi))},dependencies:[X.YG,X.Sm,X.W2,X.Gu,X.gu,X.wd,X.sr,Bn],styles:['.left-col[_ngcontent-%COMP%]{float:left;width:50%;overflow:auto}.right-col[_ngcontent-%COMP%]{float:right;width:50%;overflow:auto}.row[_ngcontent-%COMP%]:after{content:"";display:table;clear:both;overflow:auto}.row[_ngcontent-%COMP%]{margin-bottom:1em}.subtle[_ngcontent-%COMP%]{color:silver}@media screen and (max-width: 768px){.left-col[_ngcontent-%COMP%]{float:none;width:100%}.right-col[_ngcontent-%COMP%]{margin-top:1em;float:none;width:100%}}.address-details[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:200px;width:auto}ion-label[_ngcontent-%COMP%]{overflow:inherit}ion-title[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{color:#ffffffbf}']})}return ae})()},5722:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{PoiEditorPageModule:()=>Le});var h=S(6814),p=S(6223),X=S(6800),a=S(6728),j=S(6662),K=S(3999),C=S(5086),oe=S(8564);const _e=[{path:"",component:j.Y}];let Le=(()=>{class ee{static \u0275fac=function(De){return new(De||ee)};static \u0275mod=oe.oAB({type:ee});static \u0275inj=oe.cJS({imports:[h.ez,p.u5,a.Pc,K.aw,C.e,X.Bz.forChild(_e)]})}return ee})()},6662:(zn,wt,S)=>{"use strict";S.d(wt,{Y:()=>Vn});var h=S(5861),p=S(6470),X=S(7518),a=S(866),j=S(4669),K=S(1847),C=S(8564),oe=S(3955),_e=S(9903),Le=S(9127),ee=S(5957),Te=S(9862),ye=S(6814),De=S(6728);function me(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"ion-note")(2,"p"),C._uU(3," The closest address to this position is: "),C.qZA(),C.TgZ(4,"p")(5,"strong"),C._uU(6),C.qZA(),C._UZ(7,"br"),C._uU(8),C._UZ(9,"br"),C.TgZ(10,"ion-button",3),C.NdJ("click",function(){C.CHM(qe);const Xt=C.oxw();return C.KtG(Xt.useAddressSelection())}),C._uU(11,"Use this address below "),C._UZ(12,"ion-icon",4),C.qZA()()(),C.BQk()}if(2&Ut){const qe=C.oxw();C.xp6(6),C.Oqu(qe.suggestedAddress.AddressLine1),C.xp6(2),C.HOy(" ",qe.suggestedAddress.AddressLine2," ",qe.suggestedAddress.Town," ",qe.suggestedAddress.StateOrProvince," ",qe.suggestedAddress.Postcode," ")}}let Ye=(()=>{class Ut{mapping;events;logging;http;appManager;latitude;latitudeChange=new C.vpe;longitude;longitudeChange=new C.vpe;suggestedAddress=null;suggestedAddressChange=new C.vpe;onUseSuggestedAddress=new C.vpe;suggestedAddressAttribution=null;suggestedAddressAttributionChange=new C.vpe;originalMarkerPos;mapService;mapOptions;debouncedGecode;isMapInitialised=!1;constructor(qe,Nt,Xt,Tn,oi){this.mapping=qe,this.events=Nt,this.logging=Xt,this.http=Tn,this.appManager=oi}ngOnInit(){this.mapService=new _e.k(this.events,this.logging,this.http),this.mapService.initAPI(),this.mapOptions=new oe._,this.mapOptions.mapType=this.appManager.searchSettings.MapType,this.mapOptions.onMapMoveCompleted=()=>{let qe;qe=this.mapService.getMapCenter(),qe.subscribe(Nt=>{Nt&&(this.latitude=Nt.coords.latitude,this.longitude=Nt.coords.longitude,this.latitudeChange.emit(this.latitude),this.longitudeChange.emit(this.longitude),this.getAddressForCurrentLatLng())})}}ngAfterContentInit(){this.focusMap()}ngOnDestroy(){this.mapService.disposeMap()}focusMap(){0==this.isMapInitialised&&this.mapService&&0!=this.latitude&&0!=this.longitude&&(this.isMapInitialised=!0,this.mapService.initMap("editor-map",this.mapOptions,null),this.mapService.setMapCenter(new X.jR(this.latitude,this.longitude)),this.originalMarkerPos=new X.wC(this.latitude,this.longitude))}ngOnChanges(qe){this.focusMap()}getAddressForCurrentLatLng(){var qe=this;return(0,h.Z)(function*(){qe.latitude&&qe.longitude&&qe.appManager.api.fetchReverseGeocodeResult(qe.latitude,qe.longitude).then(Nt=>{Nt.AddressInfo&&(qe.suggestedAddress=Nt.AddressInfo)})})()}useAddressSelection(){this.onUseSuggestedAddress.emit({suggestedAddress:this.suggestedAddress,attribution:this.suggestedAddressAttribution}),this.suggestedAddress=null,this.suggestedAddressAttribution=null}static \u0275fac=function(Nt){return new(Nt||Ut)(C.Y36(K.v),C.Y36(ee.z),C.Y36(Le.z),C.Y36(Te.eN),C.Y36(p.c))};static \u0275cmp=C.Xpm({type:Ut,selectors:[["app-poi-location-editor"]],inputs:{latitude:"latitude",longitude:"longitude"},outputs:{latitudeChange:"latitudeChange",longitudeChange:"longitudeChange",suggestedAddressChange:"suggestedAddressChange",onUseSuggestedAddress:"onUseSuggestedAddress",suggestedAddressAttributionChange:"suggestedAddressAttributionChange"},features:[C.TTD],decls:4,vars:1,consts:[[1,"instruction"],["id","editor-map"],[4,"ngIf"],["size","small",3,"click"],["slot","end","name","copy"]],template:function(Nt,Xt){1&Nt&&(C.TgZ(0,"p",0),C._uU(1,"Drag the map to center the marker on the charging location:"),C.qZA(),C._UZ(2,"div",1),C.YNc(3,me,13,5,"ng-container",2)),2&Nt&&(C.xp6(3),C.Q6J("ngIf",Xt.suggestedAddress))},dependencies:[ye.O5,De.YG,De.gu,De.uN],styles:["#editor-map[_ngcontent-%COMP%]{border:1px solid gainsboro;background-color:gray;width:100%;height:128px}"]})}return Ut})();var Ce=S(9159),de=S(6223);function Pe(Ut,Hn){if(1&Ut&&(C.TgZ(0,"ion-select-option",14),C._uU(1),C.qZA()),2&Ut){const qe=Hn.$implicit;C.Q6J("value",qe.ID),C.xp6(1),C.Oqu(qe.Title)}}function Be(Ut,Hn){if(1&Ut&&(C.TgZ(0,"ion-select-option",14),C._uU(1),C.qZA()),2&Ut){const qe=Hn.$implicit;C.Q6J("value",qe.ID),C.xp6(1),C.Oqu(qe.Title)}}function Ne(Ut,Hn){if(1&Ut&&(C.TgZ(0,"ion-select-option",14),C._uU(1),C.qZA()),2&Ut){const qe=Hn.$implicit;C.Q6J("value",qe.ID),C.xp6(1),C.Oqu(qe.Title)}}let Ae=(()=>{class Ut{modalController;referenceDataManager;conn;useFilteredConnectionTypes=!0;useFilteredOperators=!0;constructor(qe,Nt){this.modalController=qe,this.referenceDataManager=Nt}get isAddMode(){return!(null!=this.conn&&this.conn.ID>0)}get connectionTypes(){return this.referenceDataManager.getConnectionTypes(this.useFilteredConnectionTypes)}get currentTypes(){return this.referenceDataManager.getOutputCurrentTypes()}get statusTypes(){return this.referenceDataManager.getStatusTypes().filter(qe=>1==qe.IsUserSelectable)}ngOnInit(){}save(){var qe=!0;null!=this.conn.Quantity&&(this.conn.Quantity<0||this.conn.Quantity>100||!Number.isInteger(this.conn.Quantity))&&(alert("Quantity must be a whole number, or leave it blank."),qe=!1),qe&&this.modalController.dismiss({item:this.conn})}cancel(){this.modalController.dismiss()}static \u0275fac=function(Nt){return new(Nt||Ut)(C.Y36(De.IN),C.Y36(Ce.W))};static \u0275cmp=C.Xpm({type:Ut,selectors:[["app-poi-equipment-editor"]],decls:60,vars:13,consts:[[1,"ion-padding"],["position","floating"],[3,"ngModel","ngModelChange"],["value","0"],[3,"value",4,"ngFor","ngForOf"],["type","number",3,"ngModel","ngModelChange"],["type","text","placeholder","(optional) other comments",3,"ngModel","ngModelChange"],["type","text",3,"ngModel","ngModelChange"],["slot","start"],[3,"click"],["name","close","slot","start"],["slot","end"],["color","success",3,"click"],["name","send","slot","end"],[3,"value"]],template:function(Nt,Xt){1&Nt&&(C.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C._uU(3),C.qZA()()(),C.TgZ(4,"ion-content",0)(5,"p"),C._uU(6,"Please provide as much information as you can about the equipment. If you don't know then leave the field blank. At a minimum you should include the Connection Type and approximate Power kW (max)."),C.qZA(),C.TgZ(7,"ion-item")(8,"ion-label",1),C._uU(9,"Connection Type"),C.qZA(),C.TgZ(10,"ion-select",2),C.NdJ("ngModelChange",function(oi){return Xt.conn.ConnectionTypeID=oi}),C.TgZ(11,"ion-select-option",3),C._uU(12,"Unknown"),C.qZA(),C.YNc(13,Pe,2,2,"ion-select-option",4),C.qZA()(),C.TgZ(14,"ion-item")(15,"ion-label",1),C._uU(16,"Supply Type"),C.qZA(),C.TgZ(17,"ion-select",2),C.NdJ("ngModelChange",function(oi){return Xt.conn.CurrentTypeID=oi}),C.TgZ(18,"ion-select-option",3),C._uU(19,"Unknown"),C.qZA(),C.YNc(20,Be,2,2,"ion-select-option",4),C.qZA()(),C.TgZ(21,"ion-item")(22,"ion-label",1),C._uU(23,"Power (kW)"),C.qZA(),C.TgZ(24,"ion-input",5),C.NdJ("ngModelChange",function(oi){return Xt.conn.PowerKW=oi}),C.qZA()(),C.TgZ(25,"ion-item")(26,"ion-label",1),C._uU(27,"Amps"),C.qZA(),C.TgZ(28,"ion-input",5),C.NdJ("ngModelChange",function(oi){return Xt.conn.Amps=oi}),C.qZA()(),C.TgZ(29,"ion-item")(30,"ion-label",1),C._uU(31,"Voltage"),C.qZA(),C.TgZ(32,"ion-input",5),C.NdJ("ngModelChange",function(oi){return Xt.conn.Voltage=oi}),C.qZA()(),C.TgZ(33,"ion-item")(34,"ion-label",1),C._uU(35,"Status"),C.qZA(),C.TgZ(36,"ion-select",2),C.NdJ("ngModelChange",function(oi){return Xt.conn.StatusTypeID=oi}),C.YNc(37,Ne,2,2,"ion-select-option",4),C.qZA()(),C.TgZ(38,"ion-item")(39,"ion-label",1),C._uU(40,"Quantity Available"),C.qZA(),C.TgZ(41,"ion-input",5),C.NdJ("ngModelChange",function(oi){return Xt.conn.Quantity=oi}),C.qZA()(),C.TgZ(42,"ion-item")(43,"ion-label",1),C._uU(44,"Comment"),C.qZA(),C.TgZ(45,"ion-input",6),C.NdJ("ngModelChange",function(oi){return Xt.conn.Comments=oi}),C.qZA()(),C.TgZ(46,"ion-item")(47,"ion-label",1),C._uU(48,"Operators Reference"),C.qZA(),C.TgZ(49,"ion-input",7),C.NdJ("ngModelChange",function(oi){return Xt.conn.Reference=oi}),C.qZA()()(),C.TgZ(50,"ion-footer")(51,"ion-toolbar")(52,"ion-buttons",8)(53,"ion-button",9),C.NdJ("click",function(){return Xt.cancel()}),C._UZ(54,"ion-icon",10),C._uU(55," Cancel "),C.qZA()(),C.TgZ(56,"ion-buttons",11)(57,"ion-button",12),C.NdJ("click",function(){return Xt.save()}),C._uU(58," OK "),C._UZ(59,"ion-icon",13),C.qZA()()()()),2&Nt&&(C.xp6(3),C.Oqu(Xt.isAddMode?"Add Equipment":"Edit Equipment"),C.xp6(7),C.Q6J("ngModel",Xt.conn.ConnectionTypeID),C.xp6(3),C.Q6J("ngForOf",Xt.connectionTypes),C.xp6(4),C.Q6J("ngModel",Xt.conn.CurrentTypeID),C.xp6(3),C.Q6J("ngForOf",Xt.currentTypes),C.xp6(4),C.Q6J("ngModel",Xt.conn.PowerKW),C.xp6(4),C.Q6J("ngModel",Xt.conn.Amps),C.xp6(4),C.Q6J("ngModel",Xt.conn.Voltage),C.xp6(4),C.Q6J("ngModel",Xt.conn.StatusTypeID),C.xp6(1),C.Q6J("ngForOf",Xt.statusTypes),C.xp6(4),C.Q6J("ngModel",Xt.conn.Quantity),C.xp6(4),C.Q6J("ngModel",Xt.conn.Comments),C.xp6(4),C.Q6J("ngModel",Xt.conn.Reference))},dependencies:[ye.sg,De.YG,De.Sm,De.W2,De.fr,De.Gu,De.gu,De.pK,De.Ie,De.Q$,De.t9,De.n0,De.wd,De.sr,De.as,De.QI,De.j9,de.JJ,de.On]})}return Ut})();var Ge=function(Ut){return Ut[Ut.Unknown=0]="Unknown",Ut[Ut.CurrentlyAvailable=10]="CurrentlyAvailable",Ut[Ut.CurrentlyInUse=20]="CurrentlyInUse",Ut[Ut.TemporarilyUnavailable=30]="TemporarilyUnavailable",Ut[Ut.Operational=50]="Operational",Ut[Ut.PartlyOperational=75]="PartlyOperational",Ut[Ut.NotOperational=100]="NotOperational",Ut[Ut.PlannedForFutureDate=150]="PlannedForFutureDate",Ut[Ut.RemovedDecomissioned=200]="RemovedDecomissioned",Ut}(Ge||{}),lt=function(Ut){return Ut[Ut.UnknownOperator=1]="UnknownOperator",Ut[Ut.SiteOwner=45]="SiteOwner",Ut}(lt||{}),xe=S(8696),je=S(1163),Se=S(6086);function Ve(Ut,Hn){1&Ut&&C._UZ(0,"ion-icon",13)}function Xe(Ut,Hn){1&Ut&&C._UZ(0,"ion-icon",13)}function Ht(Ut,Hn){1&Ut&&C._UZ(0,"ion-icon",13)}function cn(Ut,Hn){if(1&Ut&&(C.TgZ(0,"ion-select-option",27),C._uU(1),C.qZA()),2&Ut){const qe=Hn.$implicit;C.Q6J("value",qe.ID),C.xp6(1),C.Oqu(qe.Title)}}function xn(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"app-poi-location-editor",14,15),C.NdJ("latitudeChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Latitude=Xt)})("longitudeChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Longitude=Xt)})("onUseSuggestedAddress",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.useSuggestedAddress(Xt))}),C.qZA(),C.TgZ(3,"ion-list")(4,"ion-item")(5,"ion-label",16),C._uU(6,"Location Name"),C.qZA(),C.TgZ(7,"ion-input",17),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Title=Xt)}),C.qZA()(),C.TgZ(8,"ion-item")(9,"ion-label",16),C._uU(10,"Address Line 1"),C.qZA(),C.TgZ(11,"ion-input",18),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.AddressLine1=Xt)}),C.qZA()(),C.TgZ(12,"ion-item")(13,"ion-label",16),C._uU(14,"Address Line 2"),C.qZA(),C.TgZ(15,"ion-input",19),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.AddressLine2=Xt)}),C.qZA()(),C.TgZ(16,"ion-item")(17,"ion-label",16),C._uU(18,"Town"),C.qZA(),C.TgZ(19,"ion-input",20),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Town=Xt)}),C.qZA()(),C.TgZ(20,"ion-item")(21,"ion-label",16),C._uU(22,"State or Province"),C.qZA(),C.TgZ(23,"ion-input",21),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.StateOrProvince=Xt)}),C.qZA()(),C.TgZ(24,"ion-item")(25,"ion-label",16),C._uU(26,"Postal Code"),C.qZA(),C.TgZ(27,"ion-input",22),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Postcode=Xt)}),C.qZA()(),C.TgZ(28,"ion-item")(29,"ion-label",16),C._uU(30,"Country"),C.qZA(),C.TgZ(31,"ion-select",23),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.CountryID=Xt)})("ionChange",function(){C.CHM(qe);const Xt=C.oxw(2);return C.KtG(Xt.onCountryChange())}),C.YNc(32,cn,2,2,"ion-select-option",24),C.qZA()(),C.TgZ(33,"ion-item")(34,"ion-input",25),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Latitude=Xt)}),C.qZA()(),C.TgZ(35,"ion-item")(36,"ion-input",26),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.AddressInfo.Longitude=Xt)}),C.qZA()()(),C.BQk()}if(2&Ut){const qe=C.oxw(2);C.xp6(1),C.Q6J("latitude",qe.item.AddressInfo.Latitude)("longitude",qe.item.AddressInfo.Longitude),C.xp6(6),C.Q6J("ngModel",qe.item.AddressInfo.Title),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.AddressLine1),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.AddressLine2),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.Town),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.StateOrProvince),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.Postcode),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.CountryID),C.xp6(1),C.Q6J("ngForOf",qe.countries),C.xp6(2),C.Q6J("ngModel",qe.item.AddressInfo.Latitude),C.xp6(2),C.Q6J("ngModel",qe.item.AddressInfo.Longitude)}}function $t(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"h3"),C._uU(2,"Locations Nearby"),C.qZA(),C.TgZ(3,"p")(4,"strong"),C._uU(5,"The following locations already exist nearby."),C.qZA()(),C.TgZ(6,"div",28)(7,"p"),C._uU(8,"Ensure you are not adding a duplicate site unless it is for different equipment from another network operator."),C.qZA(),C.TgZ(9,"p"),C._uU(10,"You can edit any of these listings if required instead:"),C.qZA()(),C.TgZ(11,"app-poi-list",29),C.NdJ("onEdit",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.editPOI(Xt))}),C.qZA(),C.BQk()}if(2&Ut){const qe=C.oxw(2);C.xp6(11),C.Q6J("poiList",qe.nearbySites)("enableEditOption",!0)}}function ke(Ut,Hn){if(1&Ut&&(C.ynx(0),C.YNc(1,xn,37,12,"ng-container",9)(2,$t,12,2,"ng-container",9),C.BQk()),2&Ut){const qe=C.oxw();C.xp6(1),C.Q6J("ngIf","location"==qe.step),C.xp6(1),C.Q6J("ngIf","poi-nearby"==qe.step)}}function pe(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"p"),C._uU(2,"Copied the equipment configuration from:"),C.qZA(),C.TgZ(3,"ion-item")(4,"ion-label"),C._uU(5),C._UZ(6,"br"),C._uU(7),C._UZ(8,"br"),C._uU(9),C._UZ(10,"br"),C._uU(11),C._UZ(12,"br"),C._uU(13),C.qZA(),C.TgZ(14,"ion-button",31),C.NdJ("click",function(){C.CHM(qe);const Xt=C.oxw(5);return C.KtG(Xt.changeTemplatePOI())}),C._uU(15,"Change.."),C.qZA()(),C.BQk()}if(2&Ut){const qe=C.oxw(5);C.xp6(5),C.hij(" ",qe.selectedTemplatePOI.AddressInfo.Title," "),C.xp6(2),C.hij(" ",qe.selectedTemplatePOI.AddressInfo.AddressLine1," "),C.xp6(2),C.hij(" ",null==qe.selectedTemplatePOI.Connections[0].ConnectionType?null:qe.selectedTemplatePOI.Connections[0].ConnectionType.Title," "),C.xp6(2),C.hij(" ",qe.selectedTemplatePOI.Connections[0].PowerKW," "),C.xp6(2),C.hij(" ",qe.selectedTemplatePOI.DateCreated," ")}}function Oe(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"h4"),C._uU(2,"Similar Sites"),C.qZA(),C.TgZ(3,"app-poi-list",32),C.NdJ("onCopy",function(Xt){C.CHM(qe);const Tn=C.oxw(6);return C.KtG(Tn.useTemplatePOI(Xt))}),C.qZA(),C.BQk()}if(2&Ut){const qe=C.oxw(6);C.xp6(3),C.Q6J("enableCopyOption",!0)("poiList",qe.templateSites)}}function ie(Ut,Hn){1&Ut&&(C.ynx(0),C.TgZ(1,"p"),C._uU(2," There are no suggested sites to copy for this network operator. "),C.qZA(),C.BQk())}function it(Ut,Hn){if(1&Ut&&(C.ynx(0),C.YNc(1,Oe,4,2,"ng-container",9)(2,ie,3,0,"ng-container",9),C.BQk()),2&Ut){const qe=C.oxw(5);C.xp6(1),C.Q6J("ngIf",qe.templateSites.length>0),C.xp6(1),C.Q6J("ngIf",0==qe.templateSites.length)}}function _t(Ut,Hn){if(1&Ut&&(C.ynx(0),C.YNc(1,pe,16,5,"ng-container",9)(2,it,3,2,"ng-container",9),C.BQk()),2&Ut){const qe=C.oxw(4);C.xp6(1),C.Q6J("ngIf",qe.selectedTemplatePOI),C.xp6(1),C.Q6J("ngIf",!qe.selectedTemplatePOI)}}function Kt(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"p",28),C._uU(2,"You can copy the equipment settings from other sites operated by the same network operator or choose 'Next' to skip this step: "),C.qZA(),C.TgZ(3,"app-operator-lookup",30),C.NdJ("operatorChanged",function(Xt){C.CHM(qe);const Tn=C.oxw(3);return C.KtG(Tn.onOperatorChange(Xt))}),C.qZA(),C.YNc(4,_t,3,2,"ng-container",9),C.BQk()}if(2&Ut){const qe=C.oxw(3);C.xp6(3),C.Q6J("operatorId",qe.item.OperatorID),C.xp6(1),C.Q6J("ngIf",qe.item.AddressInfo.CountryID&&qe.item.OperatorID)}}function Mn(Ut,Hn){if(1&Ut&&(C.ynx(0),C.YNc(1,Kt,5,2,"ng-container",9),C.BQk()),2&Ut){const qe=C.oxw(2);C.xp6(1),C.Q6J("ngIf",!qe.skipPOICopy)}}function fn(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.TgZ(1,"app-operator-lookup",33),C.NdJ("operatorChanged",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.onOperatorChange(Xt))}),C.qZA(),C.TgZ(2,"ion-item")(3,"ion-input",34),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.item.NumberOfPoints=Xt)}),C.qZA()(),C.TgZ(4,"h4"),C._uU(5,"Equipment"),C.qZA(),C.TgZ(6,"ion-button",35),C.NdJ("click",function(){C.CHM(qe);const Xt=C.oxw(2);return C.KtG(Xt.addConnection())}),C._UZ(7,"ion-icon",36),C.qZA(),C.TgZ(8,"app-equipment-details",37),C.NdJ("onEdit",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.editConnection(Xt))})("onDelete",function(Xt){C.CHM(qe);const Tn=C.oxw(2);return C.KtG(Tn.deleteConnection(Xt))}),C.qZA(),C.BQk()}if(2&Ut){const qe=C.oxw(2);C.xp6(1),C.Q6J("operatorId",qe.item.OperatorID)("useFilteredOperators",!1),C.xp6(2),C.Q6J("ngModel",qe.item.NumberOfPoints),C.xp6(5),C.Q6J("item",qe.item)("enableEdit",!0)}}function qn(Ut,Hn){if(1&Ut&&(C.ynx(0),C.YNc(1,Mn,2,1,"ng-container",9)(2,fn,9,5,"ng-container",9),C.BQk()),2&Ut){const qe=C.oxw();C.xp6(1),C.Q6J("ngIf","copy-equipment"==qe.step),C.xp6(1),C.Q6J("ngIf","edit-equipment"==qe.step)}}function li(Ut,Hn){if(1&Ut&&(C.TgZ(0,"p",44)(1,"strong"),C._uU(2,"Your changes cannot be saved until the following issues are resolved:"),C.qZA(),C.TgZ(3,"ion-label",45),C._uU(4),C.qZA()()),2&Ut){const qe=C.oxw(2);C.xp6(4),C.hij(" ",qe.validationMsg,"")}}function en(Ut,Hn){if(1&Ut&&(C.TgZ(0,"ion-select-option",27),C._uU(1),C.qZA()),2&Ut){const qe=Hn.$implicit;C.Q6J("value",qe.ID),C.xp6(1),C.Oqu(qe.Title)}}function Dt(Ut,Hn){if(1&Ut&&(C.TgZ(0,"ion-select-option",27),C._uU(1),C.qZA()),2&Ut){const qe=Hn.$implicit;C.Q6J("value",qe.ID),C.xp6(1),C.Oqu(qe.Title)}}function Ie(Ut,Hn){if(1&Ut){const qe=C.EpF();C.ynx(0),C.YNc(1,li,5,1,"p",38),C.TgZ(2,"p"),C._uU(3,"Please provide any other facts related to this site. Additional comments (your charging experiences etc) can be added as check-in comments once the site is listed."),C.qZA(),C.TgZ(4,"ion-item")(5,"ion-label",16),C._uU(6,"Operational Status (All Equipment))"),C.qZA(),C.TgZ(7,"ion-select",39),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.StatusTypeID=Xt)}),C.YNc(8,en,2,2,"ion-select-option",24),C.qZA()(),C.TgZ(9,"ion-item")(10,"ion-label",16),C._uU(11,"Usage Type"),C.qZA(),C.TgZ(12,"ion-select",39),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.UsageTypeID=Xt)}),C.YNc(13,Dt,2,2,"ion-select-option",24),C.qZA()(),C.TgZ(14,"ion-item")(15,"ion-label",16),C._uU(16,"Usage Cost"),C.qZA(),C.TgZ(17,"ion-input",21),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.UsageCost=Xt)}),C.qZA()(),C.TgZ(18,"ion-item")(19,"ion-label",16),C._uU(20,"General Comments"),C.qZA(),C.TgZ(21,"ion-input",40),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.GeneralComments=Xt)}),C.qZA()(),C.TgZ(22,"ion-item")(23,"ion-label",16),C._uU(24,"Main Telephone Number "),C.qZA(),C.TgZ(25,"ion-input",41),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.AddressInfo.ContactTelephone1=Xt)}),C.qZA()(),C.TgZ(26,"ion-item")(27,"ion-label",16),C._uU(28,"Other Telephone Number "),C.qZA(),C.TgZ(29,"ion-input",41),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.AddressInfo.ContactTelephone2=Xt)}),C.qZA()(),C.TgZ(30,"ion-item")(31,"ion-label",16),C._uU(32,"Access Comments"),C.qZA(),C.TgZ(33,"ion-input",42),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.AddressInfo.AccessComments=Xt)}),C.qZA()(),C.TgZ(34,"ion-item")(35,"ion-label",16),C._uU(36,"Related Website"),C.qZA(),C.TgZ(37,"ion-input",43),C.NdJ("ngModelChange",function(Xt){C.CHM(qe);const Tn=C.oxw();return C.KtG(Tn.item.AddressInfo.RelatedURL=Xt)}),C.qZA()(),C.BQk()}if(2&Ut){const qe=C.oxw();C.xp6(1),C.Q6J("ngIf",qe.validationMsg),C.xp6(6),C.Q6J("ngModel",qe.item.StatusTypeID),C.xp6(1),C.Q6J("ngForOf",qe.statusTypes),C.xp6(4),C.Q6J("ngModel",qe.item.UsageTypeID),C.xp6(1),C.Q6J("ngForOf",qe.usageTypes),C.xp6(4),C.Q6J("ngModel",qe.item.UsageCost),C.xp6(4),C.Q6J("ngModel",qe.item.GeneralComments),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.ContactTelephone1),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.ContactTelephone2),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.AccessComments),C.xp6(4),C.Q6J("ngModel",qe.item.AddressInfo.RelatedURL)}}function Ct(Ut,Hn){if(1&Ut){const qe=C.EpF();C.TgZ(0,"ion-button",1),C.NdJ("click",function(){C.CHM(qe);const Xt=C.oxw();return C.KtG(Xt.previous())}),C._uU(1," Previous "),C._UZ(2,"ion-icon",46),C.qZA()}}function on(Ut,Hn){if(1&Ut){const qe=C.EpF();C.TgZ(0,"ion-button",1),C.NdJ("click",function(){C.CHM(qe);const Xt=C.oxw();return C.KtG(Xt.next())}),C._uU(1," Next "),C._UZ(2,"ion-icon",47),C.qZA()}}function Rn(Ut,Hn){if(1&Ut){const qe=C.EpF();C.TgZ(0,"ion-button",48),C.NdJ("click",function(){C.CHM(qe);const Xt=C.oxw();return C.KtG(Xt.save())}),C._uU(1," Submit "),C._UZ(2,"ion-icon",49),C.qZA()}}let Vn=(()=>{class Ut{appManager;modalController;poiManager;mapping;loadingController;alertController;id;item;step;selectedTab;startPos;useFilteredConnectionTypes=!0;templateSites=[];nearbySites=[];selectedTemplatePOI=null;suggestedAddress=null;suggestedAddressAttribution=null;isNonDuplicateConfirmed=!1;skipPOICopy=!1;validationMsg=null;loading;editorMap;get countries(){return this.appManager.referenceDataManager.getCountries()}get usageTypes(){return this.appManager.referenceDataManager.getUsageTypes()}get statusTypes(){return this.appManager.referenceDataManager.getStatusTypes().filter(qe=>1==qe.IsUserSelectable)}get isAddMode(){return this.item.ID<=0}constructor(qe,Nt,Xt,Tn,oi,xi){this.appManager=qe,this.modalController=Nt,this.poiManager=Xt,this.mapping=Tn,this.loadingController=oi,this.alertController=xi,this.initNewItem()}initNewItem(){this.item={ID:-1,DataProviderID:1,DataProvidersReference:null,OperatorsReference:null,OperatorID:1,UsageCost:null,UsageTypeID:4,NumberOfPoints:1,GeneralComments:null,DatePlanned:null,StatusTypeID:50,SubmissionStatusTypeID:null,Connections:[],MetadataValues:[],AddressInfo:{ID:-1,CountryID:18,Title:"",AddressLine1:"",Latitude:0,Longitude:0}},this.step="location",this.selectedTab="location"}get isReadyToSubmit(){return this.validate().isValid&&"info"==this.step}ngOnInit(){}presentLoadingUI(){var qe=this;return(0,h.Z)(function*(){qe.loading=yield qe.loadingController.create({message:"Please Wait.."}),yield qe.loading.present()})()}dismissLoadingUI(){var qe=this;return(0,h.Z)(function*(){qe.loading&&(yield qe.loading.dismiss())})()}ionViewDidEnter(){if(null!=this.id)this.editExistingPOI(this.id);else{let qe=localStorage.getItem("_editor-operatorid");qe&&(this.item.OperatorID=parseInt(qe,10)),this.startPos?(this.item.AddressInfo.Latitude=this.startPos.latitude,this.item.AddressInfo.Longitude=this.startPos.longitude):this.mapping&&this.mapping.getMapCenter().subscribe(Nt=>{Nt&&(this.item.AddressInfo.Latitude=Nt.coords.latitude,this.item.AddressInfo.Longitude=Nt.coords.longitude)})}this.refreshFilteredReferenceData()}previous(){var qe=this;return(0,h.Z)(function*(){switch(qe.step){case"info":qe.step="edit-equipment";break;case"edit-equipment":qe.step=qe.isAddMode?"copy-equipment":"location";break;case"copy-equipment":case"poi-nearby":qe.step="location"}yield qe.initCurrentStep(!1)})()}next(){var qe=this;return(0,h.Z)(function*(){if("poi-nearby"==qe.step&&qe.nearbySites.length>0&&!qe.isNonDuplicateConfirmed)return void(yield qe.alertController.create({header:"Confirm",message:"Please confirm you are not adding a duplicate site.",buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:Tn=>{}},{text:"Confirm",handler:()=>{qe.isNonDuplicateConfirmed=!0,qe.next()}}]})).present();const Nt=qe.validate(qe.step);if(Nt.isValid){switch(qe.step){case"location":qe.step=qe.isAddMode?"poi-nearby":"edit-equipment";break;case"poi-nearby":qe.step=qe.isAddMode?"copy-equipment":"edit-equipment";break;case"copy-equipment":qe.step="edit-equipment";break;case"edit-equipment":qe.step="info"}yield qe.initCurrentStep(!0)}else(yield qe.alertController.create({message:Nt.msg})).present()})()}initCurrentStep(qe){var Nt=this;return(0,h.Z)(function*(){"poi-nearby"==Nt.step?(Nt.selectedTab="location",0==(yield Nt.refreshNearbySites())&&(qe?yield Nt.next():yield Nt.previous())):"location"==Nt.step?Nt.selectedTab="location":"copy-equipment"==Nt.step?(Nt.selectedTab="equipment",yield Nt.refreshTemplateSites()):"edit-equipment"==Nt.step?Nt.selectedTab="equipment":"info"==Nt.step&&(Nt.selectedTab="info")})()}onCountryChange(){var qe=this;return(0,h.Z)(function*(){qe.refreshFilteredReferenceData()})()}onOperatorChange(qe=null){var Nt=this;return(0,h.Z)(function*(){null!=qe&&Nt.item.OperatorID!=qe.ID&&(Nt.item.OperatorID=qe.ID,localStorage.setItem("_editor-operatorid",Nt.item.OperatorID.toString()),yield Nt.refreshTemplateSites())})()}useSuggestedAddress(qe=null){qe&&(this.suggestedAddress=qe.suggestedAddress,this.suggestedAddressAttribution=qe.suggestedAddressAttribution),Object.assign(this.item.AddressInfo,this.suggestedAddress),this.suggestedAddressAttribution&&(this.item.MetadataValues.find(Nt=>4==Nt.MetadataFieldID)||this.item.MetadataValues.push({ID:-1,MetadataFieldID:4,ItemValue:this.suggestedAddressAttribution,MetadataFieldOptionID:null,MetadataFieldOption:null}))}editConnection(qe){var Nt=this;return(0,h.Z)(function*(){const Xt=Nt.item.Connections.find(xi=>xi.ID==qe.ID),Tn=Object.assign({},Xt),oi=yield Nt.modalController.create({component:Ae,componentProps:{conn:Tn}});return oi.onWillDismiss().then(xi=>{xi&&xi.data&&xi.data.item&&Nt.updateConnection(xi.data.item)}),yield oi.present()})()}deleteConnection(qe){var Nt=this;return(0,h.Z)(function*(){const Xt=Nt.item.Connections.find(oi=>oi.ID==qe.ID);(yield Nt.alertController.create({header:"Confirm Delete",message:"Are you sure you want to delete this connection information?",buttons:[{text:"No",role:"cancel",cssClass:"secondary",handler:()=>{}},{text:"Yes",handler:()=>{Nt.item.Connections=Nt.item.Connections.filter(oi=>oi.ID!=Xt.ID),Nt.appManager.referenceDataManager.hydrateCompactPOI(Nt.item,!0)}}]})).present()})()}addConnection(){var qe=this;return(0,h.Z)(function*(){const Nt={ID:-a.c.getRandomInt(1e4),ConnectionTypeID:null,StatusTypeID:50,PowerKW:null,Quantity:1},Xt=yield qe.modalController.create({component:Ae,componentProps:{conn:Nt}});return Xt.onWillDismiss().then(Tn=>{Tn&&Tn.data&&Tn.data.item&&qe.updateConnection(Tn.data.item)}),yield Xt.present()})()}refreshFilteredReferenceData(){this.appManager.referenceDataManager.refreshFilteredReferenceData(this.appManager.api,{CountryIds:[this.item.AddressInfo.CountryID]})}updateConnection(qe){if(qe){let Nt=this.item.Connections.find(Xt=>Xt.ID==qe.ID);Nt?Object.assign(Nt,qe):this.item.Connections.push(qe)}this.appManager.referenceDataManager.hydrateCompactPOI(this.item,!0)}validate(qe="all"){let Nt=null;return("all"==qe||"location"==qe)&&((!this.item.AddressInfo.Latitude||!this.item.AddressInfo.Longitude)&&(Nt="Location is required"),""==this.item.AddressInfo.Title&&(Nt="A location title is required"),!this.item.AddressInfo.AddressLine1&&!this.item.AddressInfo.AddressLine2&&(Nt="An approximate address is required."),this.item.AddressInfo.CountryID||(Nt="A country selection is required"),(!this.item.AddressInfo.Latitude||!this.item.AddressInfo.Longitude)&&(Nt="A location latitude and longitude is required")),("all"==qe||"poi-nearby"==qe)&&this.nearbySites.length>0&&!this.isNonDuplicateConfirmed&&(Nt="Please confirm that the site is not a duplicate"),("all"==qe||"equipment"==qe)&&(this.item.OperatorID||(Nt="Please confirm the charging network or equipment operator."),0==this.item.Connections.length&&(Nt="Equipment information is required")),Nt?(this.validationMsg=Nt,{isValid:!1,msg:Nt}):(this.validationMsg=null,{isValid:!0,msg:null})}save(){var qe=this;return(0,h.Z)(function*(){let Nt=qe.validate();if(Nt.isValid){yield qe.presentLoadingUI();try{yield qe.appManager.submitPOI(qe.item),yield qe.dismissLoadingUI(),qe.appManager.showToastNotification("You submission will be reviewed (if required) and published shortly."),qe.modalController.dismiss()}catch(Xt){yield qe.dismissLoadingUI(),Xt.error&&alert("Sorry, your submission could not be completed at this time. Please try again later.")}}else alert(Nt.msg)})()}cancel(){var qe=this;return(0,h.Z)(function*(){qe.modalController.dismiss()})()}refreshTemplateSites(){var qe=this;return(0,h.Z)(function*(){if(qe.item.AddressInfo.CountryID&&qe.item.OperatorID){yield qe.presentLoadingUI(),qe.templateSites=[];let Nt=new X.be;Nt.countryIdList=[qe.item.AddressInfo.CountryID],Nt.minPowerKW=1,Nt.operatorIdList=[qe.item.OperatorID],Nt.maxResults=10;let Xt=yield qe.poiManager.fetchPOIList(Nt);Xt.sort((Tn,oi)=>new Date(Tn.DateCreated).getTime()-new Date(oi.DateCreated).getTime()),qe.templateSites=Xt,qe.dismissLoadingUI()}})()}refreshNearbySites(){var qe=this;return(0,h.Z)(function*(){if(qe.item.AddressInfo.Latitude&&qe.item.AddressInfo.Longitude){yield qe.presentLoadingUI(),qe.nearbySites=[];let Nt=new X.be;Nt.latitude=qe.item.AddressInfo.Latitude,Nt.longitude=qe.item.AddressInfo.Longitude,Nt.distance=5,Nt.distanceUnit="km",Nt.maxResults=10;let Xt=yield qe.poiManager.fetchPOIList(Nt);return Xt.sort((Tn,oi)=>Tn.Distance-oi.Distance),qe.nearbySites=Xt,qe.dismissLoadingUI(),Xt.length}return 0})()}confirmNonDuplicate(){this.isNonDuplicateConfirmed=!0,this.next()}changeTemplatePOI(){this.selectedTemplatePOI=null}editPOI(qe){this.editExistingPOI(qe.ID)}editExistingPOI(qe){var Nt=this;return(0,h.Z)(function*(){Nt.skipPOICopy=!0,Nt.isNonDuplicateConfirmed=!0,yield Nt.presentLoadingUI(),Nt.poiManager.getPOIById(qe,!0,!0).then(Xt=>{Nt.item=Object.assign({},Xt),null==Nt.item.OperatorID&&(Nt.item.OperatorID=lt.UnknownOperator),Nt.refreshFilteredReferenceData(),Nt.dismissLoadingUI()})})()}useTemplatePOI(qe){this.selectedTemplatePOI=qe,Object.assign(this.item.Connections,qe.Connections);for(let Nt of this.item.Connections)Nt.ID=-a.c.getRandomInt(1e4),Nt.Reference=null,Nt.Comments=null,Nt.StatusTypeID=Ge.Operational;this.item.UsageCost=qe.UsageCost,this.item.UsageTypeID=qe.UsageTypeID,this.appManager.referenceDataManager.hydrateCompactPOI(this.item)}skipCopyingPOI(){this.skipPOICopy=!0}static \u0275fac=function(Nt){return new(Nt||Ut)(C.Y36(p.c),C.Y36(De.IN),C.Y36(j.R),C.Y36(K.v),C.Y36(De.HT),C.Y36(De.Br))};static \u0275cmp=C.Xpm({type:Ut,selectors:[["app-poi-editor"]],viewQuery:function(Nt,Xt){if(1&Nt&&C.Gf(Ye,5),2&Nt){let Tn;C.iGM(Tn=C.CRH())&&(Xt.editorMap=Tn.first)}},decls:33,vars:14,consts:[["slot","end"],[3,"click"],["name","close","slot","start"],[1,"ion-padding"],[3,"ngModel"],["value","location","layout","icon-start",3,"disabled"],["name","caret-forward",4,"ngIf"],["value","equipment","layout","icon-start",3,"disabled"],["value","info","layout","icon-start",3,"disabled"],[4,"ngIf"],["slot","start"],[3,"click",4,"ngIf"],["color","success",3,"click",4,"ngIf"],["name","caret-forward"],[3,"latitude","longitude","latitudeChange","longitudeChange","onUseSuggestedAddress"],["editorMap",""],["position","floating"],["type","text","autocapitalize","words","placeholder","A title for this location",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","The nearest street address",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","Optional",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","Town or City",3,"ngModel","ngModelChange"],["type","text",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","Optional Postal Code",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Latitude","labelPlacement","floating","type","number","placeholder","Latitude (if entering manually)",3,"ngModel","ngModelChange"],["label","Longitude","labelPlacement","floating","type","number","placeholder","Longitude (if entering manually)",3,"ngModel","ngModelChange"],[3,"value"],[1,"instruction"],[3,"poiList","enableEditOption","onEdit"],[3,"operatorId","operatorChanged"],["slot","start","size","small",3,"click"],[3,"enableCopyOption","poiList","onCopy"],[3,"operatorId","useFilteredOperators","operatorChanged"],["label","Number of Stations or Parking Bays","labelPlacement","floating","min","1","type","number",3,"ngModel","ngModelChange"],["size","small",3,"click"],["name","add","slot","icon-only"],[3,"item","enableEdit","onEdit","onDelete"],["color","warning",4,"ngIf"],[3,"ngModel","ngModelChange"],["type","text","autocapitalize","sentences",3,"ngModel","ngModelChange"],["type","tel","placeholder","",3,"ngModel","ngModelChange"],["type","text","autocapitalize","sentences","placeholder","Instructions for access or tips for finding charging location",3,"ngModel","ngModelChange"],["type","url","placeholder","Website related to this site",3,"ngModel","ngModelChange"],["color","warning"],["color","danger"],["name","caret-back","slot","start"],["name","caret-forward","slot","end"],["color","success",3,"click"],["name","send","slot","end"]],template:function(Nt,Xt){1&Nt&&(C.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C._uU(3),C.qZA(),C.TgZ(4,"ion-buttons",0)(5,"ion-button",1),C.NdJ("click",function(){return Xt.cancel()}),C._UZ(6,"ion-icon",2),C._uU(7," Cancel "),C.qZA()()()(),C.TgZ(8,"ion-content",3),C.ynx(9),C.TgZ(10,"ion-segment",4)(11,"ion-segment-button",5),C.YNc(12,Ve,1,0,"ion-icon",6),C.TgZ(13,"ion-label"),C._uU(14,"Location"),C.qZA()(),C.TgZ(15,"ion-segment-button",7),C.YNc(16,Xe,1,0,"ion-icon",6),C.TgZ(17,"ion-label"),C._uU(18,"Equipment"),C.qZA()(),C.TgZ(19,"ion-segment-button",8),C.YNc(20,Ht,1,0,"ion-icon",6),C.TgZ(21,"ion-label"),C._uU(22,"Info"),C.qZA()()(),C.YNc(23,ke,3,2,"ng-container",9)(24,qn,3,2,"ng-container",9)(25,Ie,38,11,"ng-container",9),C.BQk(),C.qZA(),C.TgZ(26,"ion-footer")(27,"ion-toolbar")(28,"ion-buttons",10),C.YNc(29,Ct,3,0,"ion-button",11),C.qZA(),C.TgZ(30,"ion-buttons",0),C.YNc(31,on,3,0,"ion-button",11)(32,Rn,3,0,"ion-button",12),C.qZA()()()),2&Nt&&(C.xp6(3),C.Oqu(Xt.isAddMode?"Add Location":"Edit Location"),C.xp6(7),C.Q6J("ngModel",Xt.selectedTab),C.xp6(1),C.Q6J("disabled",!0),C.xp6(1),C.Q6J("ngIf","location"==Xt.selectedTab),C.xp6(3),C.Q6J("disabled",!0),C.xp6(1),C.Q6J("ngIf","equipment"==Xt.selectedTab),C.xp6(3),C.Q6J("disabled",!0),C.xp6(1),C.Q6J("ngIf","info"==Xt.selectedTab),C.xp6(3),C.Q6J("ngIf","location"==Xt.selectedTab),C.xp6(1),C.Q6J("ngIf","equipment"==Xt.selectedTab),C.xp6(1),C.Q6J("ngIf","info"==Xt.selectedTab),C.xp6(4),C.Q6J("ngIf","location"!=Xt.step),C.xp6(2),C.Q6J("ngIf",!Xt.isReadyToSubmit&&"info"!=Xt.step),C.xp6(1),C.Q6J("ngIf",Xt.isReadyToSubmit))},dependencies:[ye.sg,ye.O5,de.JJ,de.On,De.YG,De.Sm,De.W2,De.fr,De.Gu,De.gu,De.pK,De.Ie,De.Q$,De.q_,De.cJ,De.GO,De.t9,De.n0,De.wd,De.sr,De.as,De.QI,De.j9,De.yf,xe.o,je.B,Ye,Se.z],styles:['ul.breadcrumb[_ngcontent-%COMP%]{display:inline-flex;margin:0;padding:0}ul.breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex;margin-right:6px;color:var(--ion-color-light-shade);font-size:10px}ul.breadcrumb[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{color:var(--ion-color-dark-shade)}ul.breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:">";padding-right:4px}']})}return Ut})()},3247:(zn,wt,S)=>{"use strict";S.d(wt,{u:()=>lt});var h=S(8564),p=S(6728),X=S(3052),a=S(989),j=S(9127),K=S(7430),C=S(9862);let oe=(()=>{class ne{http;journeyManager;constructor(xe,je){this.http=xe,this.journeyManager=je}getDirections(xe,je){return new Promise((Se,Ve)=>{(new google.maps.DirectionsService).route({origin:xe,destination:je,travelMode:google.maps.TravelMode.DRIVING},(Ht,cn)=>{cn===google.maps.DirectionsStatus.OK?Se(Ht):Ve(cn)})})}analyseRoutes(xe,je){const Se=new Array;return xe.routes.forEach(Ve=>{const Xe=new K.JJ;Xe.Title=""+Se.length+1,Xe.JourneyRouteLegs=new Array,Xe.TotalDistanceKM=0,Xe.TotalDurationMinutes=0,Xe.TotalEnergykWh=0,Ve.legs.forEach(Ht=>{const cn=Ht.duration.value,xn=Ht.distance.value/1e3,$t=this.journeyManager.calculateEnergyConsumptionkWh(xn,0,null,je),ke=new K.eN;ke.DistanceKM=xn,ke.DurationMinutes=cn/60,ke.EnergyConsumptionkWh=$t,Xe.JourneyRouteLegs.push(ke),Xe.TotalDistanceKM+=ke.DistanceKM,Xe.TotalDurationMinutes+=ke.DurationMinutes,Xe.TotalEnergykWh=ke.EnergyConsumptionkWh}),Se.push(Xe)}),Se}static \u0275fac=function(je){return new(je||ne)(h.LFG(C.eN),h.LFG(a.i))};static \u0275prov=h.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"})}return ne})();var _e=S(1847),Le=S(6814),ee=S(6223),Te=S(5460);function ye(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-item"),h._UZ(1,"ion-icon",12),h.TgZ(2,"ion-searchbar",13),h.NdJ("ngModelChange",function(Se){h.CHM(xe);const Ve=h.oxw();return h.KtG(Ve.routeStart=Se)})("ionInput",function(Se){h.CHM(xe),h.oxw();const Ve=h.MAs(18);return h.KtG(Ve.getPlacesAutoComplete(Se,"routeStart"))})("ionCancel",function(Se){h.CHM(xe);const Ve=h.oxw();return h.KtG(Ve.onPlaceSearchCancel(Se))}),h.qZA()()}if(2&ne){const xe=h.oxw();h.xp6(2),h.Q6J("ngModel",xe.routeStart)("debounce",500)}}function De(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-item",14),h.NdJ("click",function(){h.CHM(xe);const Se=h.oxw();return h.KtG(Se.clearRouteStart())}),h._UZ(1,"ion-icon",12),h.TgZ(2,"h2"),h._uU(3),h.qZA()()}if(2&ne){h.oxw();const xe=h.MAs(18);h.xp6(3),h.Oqu(null==xe.selectedPlace?null:xe.selectedPlace.name)}}function me(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-item"),h._UZ(1,"ion-icon",15),h.TgZ(2,"ion-searchbar",16),h.NdJ("ngModelChange",function(Se){h.CHM(xe);const Ve=h.oxw();return h.KtG(Ve.routeDestination=Se)})("ionInput",function(Se){h.CHM(xe),h.oxw();const Ve=h.MAs(20);return h.KtG(Ve.getPlacesAutoComplete(Se,"routeDestination"))})("ionCancel",function(Se){h.CHM(xe);const Ve=h.oxw();return h.KtG(Ve.onPlaceSearchCancel(Se))}),h.qZA()()}if(2&ne){const xe=h.oxw();h.xp6(2),h.Q6J("ngModel",xe.routeDestination)("debounce",500)}}function Ye(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-item",14),h.NdJ("click",function(){h.CHM(xe);const Se=h.oxw();return h.KtG(Se.clearRouteDestination())}),h._UZ(1,"ion-icon",15),h.TgZ(2,"h2"),h._uU(3),h.qZA()()}if(2&ne){h.oxw();const xe=h.MAs(20);h.xp6(3),h.Oqu(null==xe.selectedPlace?null:xe.selectedPlace.name)}}function Ce(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-button",14),h.NdJ("click",function(){h.CHM(xe);const Se=h.oxw();return h.KtG(Se.clearRoute())}),h._UZ(1,"ion-icon",17),h._uU(2," Clear Route "),h.qZA()}}function de(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-button",14),h.NdJ("click",function(){h.CHM(xe);const Se=h.oxw();return h.KtG(Se.showSettings())}),h._uU(1," Show Settings "),h._UZ(2,"ion-icon",18),h.qZA()}}function Pe(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"ion-button",14),h.NdJ("click",function(){h.CHM(xe);const Se=h.oxw();return h.KtG(Se.hideSettings())}),h._uU(1," Hide Settings "),h._UZ(2,"ion-icon",18),h.qZA()}}function Be(ne,Ee){1&ne&&(h.TgZ(0,"p",19),h._UZ(1,"ion-spinner",19),h._uU(2," Calculating Route.. "),h.qZA())}function Ne(ne,Ee){if(1&ne&&(h.TgZ(0,"ion-list")(1,"ion-list-header"),h._uU(2),h.ALo(3,"number"),h.ALo(4,"number"),h.qZA()()),2&ne){const xe=h.oxw();h.xp6(2),h.lnq(" Total Distance ",h.xi3(3,3,xe.selectedJourneyRoute.TotalDistanceKM,"1.0-2")," km, ",xe.formatDuration(xe.selectedJourneyRoute.TotalDurationMinutes),", ",h.xi3(4,6,xe.selectedJourneyRoute.TotalEnergykWh,"1.0-2")," kWh ")}}function Ae(ne,Ee){if(1&ne){const xe=h.EpF();h.TgZ(0,"div")(1,"ion-list")(2,"ion-list-header"),h._UZ(3,"ion-icon",20),h._uU(4," Route Settings "),h.qZA(),h.TgZ(5,"ion-item")(6,"ion-label",21),h._uU(7),h.qZA(),h.TgZ(8,"ion-range",22),h.NdJ("ngModelChange",function(Se){h.CHM(xe);const Ve=h.oxw();return h.KtG(Ve.routeSearchDistance=Se)}),h._UZ(9,"ion-icon",23)(10,"ion-icon",24),h.qZA()(),h.TgZ(11,"ion-item")(12,"ion-label",21),h._uU(13,"Energy Efficiency (kWh Per km)"),h.qZA(),h.TgZ(14,"ion-input",25),h.NdJ("ngModelChange",function(Se){h.CHM(xe);const Ve=h.oxw();return h.KtG(Ve.kWhPerKM=Se)}),h.qZA()()()()}if(2&ne){const xe=h.oxw();h.xp6(7),h.hij("Search Distance (",xe.routeSearchDistance,")"),h.xp6(1),h.Q6J("ngModel",xe.routeSearchDistance),h.xp6(6),h.Q6J("ngModel",xe.kWhPerKM)}}let Ge=(()=>{class ne{mapping;logging;directions;journeyManager;changeDetector;numberPipe;routeSearchDistance=5;journeyRoutes;selectedJourneyRoute;routePolyline;kWhPerKM;routeStartPlace;routeDestinationPlace;routeCalcInProgress=!1;advancedSettingsMode=!1;routeStart="";routeDestination="";constructor(xe,je,Se,Ve,Xe,Ht){this.mapping=xe,this.logging=je,this.directions=Se,this.journeyManager=Ve,this.changeDetector=Xe,this.numberPipe=Ht,this.kWhPerKM=.212}get isRouteSet(){return null!=this.routeStartPlace&&null!=this.routeDestinationPlace}showSettings(){this.advancedSettingsMode=!0}hideSettings(){this.advancedSettingsMode=!1}routeStartSelected(xe){this.routeStartPlace=xe,this.calculateRoute(),this.changeDetector.detectChanges()}routeDestinationSelected(xe){this.routeDestinationPlace=xe,this.calculateRoute(),this.changeDetector.detectChanges()}clearRouteStart(){this.routeStartPlace=null,this.changeDetector.detectChanges()}clearRouteDestination(){this.routeDestinationPlace=null,this.changeDetector.detectChanges()}clearRoute(){this.routeStartPlace=null,this.routeDestinationPlace=null,this.journeyManager.setRoutePolyline(null),this.mapping.clearPolyline()}formatDuration(xe){if(xe<=60)return this.numberPipe.transform(xe,"1.0-2")+" mins";{const je=Math.round(xe/60),Se=Math.floor(xe-60*je);return je+" hours "+(Se>0?Se+" mins":"")}}calculateRoute(){null!=this.routeStartPlace&&null!=this.routeDestinationPlace&&(this.logging.log("Fetching route directions.."),this.routeCalcInProgress=!0,this.directions.getDirections(this.routeStartPlace.Location.latitude+","+this.routeStartPlace.Location.longitude,this.routeDestinationPlace.Location.latitude+","+this.routeDestinationPlace.Location.longitude).then(xe=>{if(null!=xe.routes&&xe.routes.length>0){this.logging.log("Got route directions, analysing.."),this.routePolyline=xe.routes[0].overview_polyline;const je=xe.routes[0].bounds.getSouthWest(),Se=xe.routes[0].bounds.getNorthEast(),Ve=new X.wC(Se.lat(),Se.lng()),Xe=new X.wC(je.lat(),je.lng()),Ht=new X.LL(Ve,Xe);this.journeyRoutes=this.directions.analyseRoutes(xe,this.kWhPerKM),this.journeyRoutes.length>0&&(this.selectedJourneyRoute=this.journeyRoutes[0]),this.journeyManager.setRoutePolyline(this.routePolyline),this.mapping.renderPolyline(this.routePolyline),this.mapping.moveToMapBounds(Ht)}else this.logging.log("No route returned..");this.routeCalcInProgress=!1}))}static \u0275fac=function(je){return new(je||ne)(h.Y36(_e.v),h.Y36(j.z),h.Y36(oe),h.Y36(a.i),h.Y36(h.sBO),h.Y36(Le.JJ))};static \u0275cmp=h.Xpm({type:ne,selectors:[["route-planner"]],decls:24,vars:10,consts:[[1,"route"],[1,"route-places"],["name","map","slot","start"],[4,"ngIf"],[3,"click",4,"ngIf"],["primary",""],["slot","secondary"],["slot","primary"],[3,"placeChanged"],["placeSearchRouteStart",""],["placeSearchRouteDestination",""],["class","ion-padding",4,"ngIf"],["name","ionic","item-left",""],["placeholder","Starting Point",3,"ngModel","debounce","ngModelChange","ionInput","ionCancel"],[3,"click"],["name","pin","item-left",""],["placeholder","Destination",3,"ngModel","debounce","ngModelChange","ionInput","ionCancel"],["name","close","slot","start"],["name","cog","slot","end"],[1,"ion-padding"],["name","cog"],["position","stacked"],["min","1","max","200","step","5","snaps","true","pin","true","light","",3,"ngModel","ngModelChange"],["slot","start","small","","name","map"],["slot","end","large","","name","map"],["type","number","min","0.1","max","1",3,"ngModel","ngModelChange"]],template:function(je,Se){1&je&&(h.TgZ(0,"div",0)(1,"div",1)(2,"ion-list")(3,"ion-list-header"),h._UZ(4,"ion-icon",2),h.TgZ(5,"ion-label"),h._uU(6,"Plan Your Journey"),h.qZA()(),h.YNc(7,ye,3,2,"ion-item",3)(8,De,4,1,"ion-item",4)(9,me,3,2,"ion-item",3)(10,Ye,4,1,"ion-item",4),h.qZA(),h.TgZ(11,"ion-toolbar",5)(12,"ion-buttons",6),h.YNc(13,Ce,3,0,"ion-button",4),h.qZA(),h.TgZ(14,"ion-buttons",7),h.YNc(15,de,3,0,"ion-button",4)(16,Pe,3,0,"ion-button",4),h.qZA()()(),h.TgZ(17,"place-search",8,9),h.NdJ("placeChanged",function(Xe){return Se.routeStartSelected(Xe)}),h.qZA(),h.TgZ(19,"place-search",8,10),h.NdJ("placeChanged",function(Xe){return Se.routeDestinationSelected(Xe)}),h.qZA(),h.YNc(21,Be,3,0,"p",11)(22,Ne,5,9,"ion-list",3)(23,Ae,15,3,"div",3),h.qZA()),2&je&&(h.xp6(7),h.Q6J("ngIf",null==Se.routeStartPlace),h.xp6(1),h.Q6J("ngIf",null!=Se.routeStartPlace),h.xp6(1),h.Q6J("ngIf",null==Se.routeDestinationPlace),h.xp6(1),h.Q6J("ngIf",null!=Se.routeDestinationPlace),h.xp6(3),h.Q6J("ngIf",Se.isRouteSet),h.xp6(2),h.Q6J("ngIf",!Se.advancedSettingsMode),h.xp6(1),h.Q6J("ngIf",Se.advancedSettingsMode),h.xp6(5),h.Q6J("ngIf",Se.routeCalcInProgress),h.xp6(1),h.Q6J("ngIf",null!=Se.selectedJourneyRoute),h.xp6(1),h.Q6J("ngIf",Se.advancedSettingsMode))},dependencies:[Le.O5,p.YG,p.Sm,p.gu,p.pK,p.Ie,p.Q$,p.q_,p.yh,p.I_,p.VI,p.PQ,p.sr,p.as,p.QI,p.j9,p.yf,p.Uj,ee.JJ,ee.On,Te.v,Le.JJ],encapsulation:2})}return ne})(),lt=(()=>{class ne{modalController;hasNavbar=!1;constructor(xe){this.modalController=xe}close(){this.modalController.dismiss()}static \u0275fac=function(je){return new(je||ne)(h.Y36(p.IN))};static \u0275cmp=h.Xpm({type:ne,selectors:[["ng-component"]],decls:10,vars:0,consts:[["slot","end"],[3,"click"],["name","close","slot","end"],[1,"route-planner","ion-padding"]],template:function(je,Se){1&je&&(h.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),h._uU(3," Route Planner "),h.qZA(),h.TgZ(4,"ion-buttons",0)(5,"ion-button",1),h.NdJ("click",function(){return Se.close()}),h._UZ(6,"ion-icon",2),h._uU(7," Close "),h.qZA()()()(),h.TgZ(8,"ion-content",3),h._UZ(9,"route-planner"),h.qZA())},dependencies:[p.YG,p.Sm,p.W2,p.Gu,p.gu,p.wd,p.sr,Ge],encapsulation:2})}return ne})()},4606:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{SearchPageModule:()=>li});var h=S(5086),p=S(3999),X=S(6814),a=S(6223),j=S(6728),K=S(6800),C=S(5861),oe=S(553),_e=S(7777),Le=S(4119),ee=S(3247),Te=S(9723),ye=S(3052),De=S(4677),me=S(866),Ye=S(9127),Ce=S(989),de=S(1847),Pe=S(4669),Be=S(6470),Ne=S(5460),Ae=S(2438),Ge=S(7394);class lt extends Ge.w0{constructor(Dt,Ie){super()}schedule(Dt,Ie=0){return this}}const ne={setInterval(en,Dt,...Ie){const{delegate:Ct}=ne;return Ct?.setInterval?Ct.setInterval(en,Dt,...Ie):setInterval(en,Dt,...Ie)},clearInterval(en){const{delegate:Dt}=ne;return(Dt?.clearInterval||clearInterval)(en)},delegate:void 0};var Ee=S(9039),je=S(4552);class Se{constructor(Dt,Ie=Se.now){this.schedulerActionCtor=Dt,this.now=Ie}schedule(Dt,Ie=0,Ct){return new this.schedulerActionCtor(this,Dt).schedule(Ct,Ie)}}Se.now=je.l.now;const Xe=new class Ve extends Se{constructor(Dt,Ie=Se.now){super(Dt,Ie),this.actions=[],this._active=!1}flush(Dt){const{actions:Ie}=this;if(this._active)return void Ie.push(Dt);let Ct;this._active=!0;do{if(Ct=Dt.execute(Dt.state,Dt.delay))break}while(Dt=Ie.shift());if(this._active=!1,Ct){for(;Dt=Ie.shift();)Dt.unsubscribe();throw Ct}}}(class xe extends lt{constructor(Dt,Ie){super(Dt,Ie),this.scheduler=Dt,this.work=Ie,this.pending=!1}schedule(Dt,Ie=0){var Ct;if(this.closed)return this;this.state=Dt;const on=this.id,Rn=this.scheduler;return null!=on&&(this.id=this.recycleAsyncId(Rn,on,Ie)),this.pending=!0,this.delay=Ie,this.id=null!==(Ct=this.id)&&void 0!==Ct?Ct:this.requestAsyncId(Rn,this.id,Ie),this}requestAsyncId(Dt,Ie,Ct=0){return ne.setInterval(Dt.flush.bind(Dt,this),Ct)}recycleAsyncId(Dt,Ie,Ct=0){if(null!=Ct&&this.delay===Ct&&!1===this.pending)return Ie;null!=Ie&&ne.clearInterval(Ie)}execute(Dt,Ie){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const Ct=this._execute(Dt,Ie);if(Ct)return Ct;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(Dt,Ie){let on,Ct=!1;try{this.work(Dt)}catch(Rn){Ct=!0,on=Rn||new Error("Scheduled action threw falsy error")}if(Ct)return this.unsubscribe(),on}unsubscribe(){if(!this.closed){const{id:Dt,scheduler:Ie}=this,{actions:Ct}=Ie;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Ee.P)(Ct,this),null!=Dt&&(this.id=this.recycleAsyncId(Ie,Dt,null)),this.delay=null,super.unsubscribe()}}});var cn=S(9360),xn=S(8251);const pe=(0,S(2726).fo)("Geolocation",{web:()=>S.e(579).then(S.bind(S,579)).then(en=>new en.GeolocationWeb)});var Oe=S(8564),ie=S(5472),it=S(5957);function _t(en,Dt){1&en&&Oe._UZ(0,"ion-icon",13)}function Kt(en,Dt){1&en&&Oe._UZ(0,"ion-spinner")}function Mn(en,Dt){if(1&en){const Ie=Oe.EpF();Oe.TgZ(0,"ion-button",3),Oe.NdJ("click",function(){Oe.CHM(Ie);const on=Oe.oxw();return Oe.KtG(on.openSideView())}),Oe._UZ(1,"ion-icon",14),Oe.qZA()}}function fn(en,Dt){1&en&&(Oe.ynx(0),Oe.TgZ(1,"div",15)(2,"p"),Oe._uU(3,"There was a problem communicating with Open Charge Map. Please check your data connection."),Oe.qZA()(),Oe.BQk())}let qn=(()=>{class en{appManager;nav;events;translate;platform;poiManager;mapping;journeyManager;zone;modalController;alertController;logging;mapDisplayed=!1;debouncedRefreshMapResults;mapCanvasID;initialResultsShown=!1;searchOnDemand=!1;poiViewMode="modal";sideViewAvailable=!1;searchPolyline;routePlanningMode=!0;searchKeyword="";selectedPOI;appConfig=new _e.X;defaultMapZoom=15;defaultStartPos=new ye.wC(37.415328,-122.076575);placeSearchMapPOI;constructor(Ie,Ct,on,Rn,Vn,Ut,Hn,qe,Nt,Xt,Tn,oi){this.appManager=Ie,this.nav=Ct,this.events=on,this.translate=Rn,this.platform=Vn,this.poiManager=Ut,this.mapping=Hn,this.journeyManager=qe,this.zone=Nt,this.modalController=Xt,this.alertController=Tn,this.logging=oi,this.mapCanvasID="map-canvas",this.mapping.setMapType(Ie.searchSettings.MapType),this.mapping.setMapAPI(oe.N.defaultMapProvider),(0,Ae.R)(window,"resize").pipe(function $t(en,Dt=Xe){return(0,cn.e)((Ie,Ct)=>{let on=null,Rn=null,Vn=null;const Ut=()=>{if(on){on.unsubscribe(),on=null;const qe=Rn;Rn=null,Ct.next(qe)}};function Hn(){const qe=Vn+en,Nt=Dt.now();if(Nt{Rn=qe,Vn=Dt.now(),on||(on=Dt.schedule(Hn,en),Ct.add(on))},()=>{Ut(),Ct.complete()},void 0,()=>{Rn=on=null}))})}(500)).subscribe(Oi=>{let gr={width:me.c.getClientHeight(),height:me.c.getClientWidth()};this.events.publish("ocm:window:resized",[gr])})}ionViewDidEnter(){this.logging.log("Entered search page.",Ye.i.VERBOSE),this.mapping.focusMap(),this.mapping.updateMapSize()}ionViewWillLeave(){this.logging.log("Leaving search page.",Ye.i.VERBOSE),this.mapping.unfocusMap()}getPreferredMapHeight(Ie){return null==Ie&&(Ie=me.c.getClientHeight()),Ie-56}enforceMapHeight(Ie){this.logging.log("Would resize map:"+Ie.width+" "+Ie.height,Ye.i.VERBOSE);const Ct=this.getPreferredMapHeight(Ie[0]);document.getElementById(this.mapCanvasID).offsetHeight!==Ct&&(document.getElementById(this.mapCanvasID).style.height=Ct+"px"),this.mapping&&(this.logging.log("Map height:"+Ct,Ye.i.VERBOSE),this.mapping.updateMapSize())}initialiseMapping(){var Ie=this;return(0,C.Z)(function*(){yield Ie.platform.ready(),Ie.debouncedRefreshMapResults=me.c.debounce(Ie.refreshMapResults,1e3,!1),Ie.events.subscribe("ocm:mapping:ready",(0,C.Z)(function*(){if(Ie.logging.log("init map: mapping ready"),Ie.mapping&&Ie.mapping.updateMapSize(),!Ie.initialResultsShown)if(Ie.appManager.searchSettings.StartSearchPosition&&!Ie.appManager.searchSettings.StartViewPoiId)Ie.searchOnDemand=!0,Ie.mapping.updateMapCentrePos(Ie.appManager.searchSettings.StartSearchPosition.latitude,Ie.appManager.searchSettings.StartSearchPosition.longitude,!0,Ie.defaultMapZoom);else{let Ct=localStorage.getItem("_locationEnabled");1==Ie.appManager.isEmbeddedMode&&"true"!=Ct?yield(yield Ie.alertController.create({header:"Search using your location?",message:"Select OK to continue.",buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:(Rn=(0,C.Z)(function*(Vn){yield Ie.useFallbackPosition()}),function(Ut){return Rn.apply(this,arguments)})},{text:"OK",handler:function(){var Rn=(0,C.Z)(function*(){yield Ie.locateUser()});return function(){return Rn.apply(this,arguments)}}()}]})).present():(yield Ie.locateUser(),Ie.mapping&&Ie.mapping.updateMapSize())}var Rn})),Ie.events.subscribe("ocm:mapping:zoom",()=>{Ie.debouncedRefreshMapResults()}),Ie.events.subscribe("ocm:mapping:dragend",()=>{Ie.debouncedRefreshMapResults()}),Ie.events.subscribe("ocm:poiList:updated",Ct=>{Ie.showPOIListOnMap(Ct)}),Ie.events.subscribe("ocm:poiList:cleared",()=>{Ie.mapping.clearMarkers(),setTimeout(()=>{Ie.debouncedRefreshMapResults()},500)}),Ie.events.subscribe("ocm:window:resized",Ct=>{null!=Ct&&Ct.length>0&&Ie.enforceMapHeight(Ct[0])}),Ie.events.subscribe("ocm:poi:selected",Ct=>{if(Ct.poi)Ie.viewPOIDetails(Ct,Ct.poi);else{let on=Ie.getPOIByID(Ct.poiId);Ie.viewPOIDetails(Ct,on)}}),Ie.mapping.initMap(Ie.mapCanvasID)})()}ngAfterViewInit(){var Ie=this;return(0,C.Z)(function*(){yield Ie.initialiseMapping()})()}ngOnInit(){var Ie=this;return(0,C.Z)(function*(){Ie.logging.log("Refreshing reference data ..",Ye.i.VERBOSE),(yield Ie.appManager.referenceDataManager.refreshReferenceData(Ie.appManager.api))||(Ie.appManager.isOffline=!0)})()}showPOIListOnMap(Ie){const Ct=this.getPreferredMapHeight(null);this.mapping.refreshMapView(Ct,this.poiManager.poiList,null),this.mapDisplayed||(this.mapDisplayed=!0)}getIconForPOI(Ie){return me.c.getIconForPOI(Ie)}getPOIByID(Ie){const Ct=this.poiManager.poiList;for(let on=0;on0&&(Ct.minPowerKW=Ie.appManager.searchSettings.MinPowerKW),null!=Ie.appManager.searchSettings.MaxPowerKW&&Ie.appManager.searchSettings.MaxPowerKW>0&&(Ct.maxPowerKW=Ie.appManager.searchSettings.MaxPowerKW),null!=Ie.appManager.searchSettings.MaxResults&&Ie.appManager.searchSettings.MaxResults>0&&Ie.appManager.searchSettings.MaxResults<=1e4&&(Ct.maxResults=Ie.appManager.searchSettings.MaxResults),null!=Ie.journeyManager.getRoutePolyline()&&(Ct.polyline=Ie.journeyManager.getRoutePolyline(),Ct.boundingbox=null,Ct.levelOfDetail=null,Ct.latitude=null,Ct.longitude=null)),Ie.appManager.searchSettings.EnablePOIPendingApproval&&(Ct.submissionStatusTypeIdList=[1,100,200]),Ie.appManager.isRequestInProgress=!0;let Rn=yield Ie.poiManager.refreshPOIList(Ct);Ie.appManager.isRequestInProgress=!1,Ie.initialResultsShown=!0,Rn>=Ct.maxResults&&Ie.appManager.showToastNotification("A maximum of "+Rn+" results are returned per search. Zoom in for details.")})()}viewPOIDetails(Ie,Ct){this.logging.log("Viewing/fetching ["+this.poiViewMode+"] POI Details "+Ie.poiId),null!=Ct?(this.mapping.unfocusMap(),this.modalController.create({component:Te.H,componentProps:{item:Ct}}).then(on=>{on.onDidDismiss().then(()=>{this.logging.log("Dismissing POI Details."),this.mapping.focusMap(),this.searchOnDemand=!0}),on.present()})):this.poiManager.getPOIById(Ie.poiId,!0).then(on=>{this.logging.log("Got POI Details "+on.ID),"modal"===this.poiViewMode&&(this.searchOnDemand=!1,this.modalController.create({component:Te.H,componentProps:{item:on}}).then(Rn=>{Rn.onDidDismiss().then(()=>{this.logging.log("Dismissing POI Details."),this.mapping.focusMap(),this.searchOnDemand=!0}),Rn.present()}),this.mapping.unfocusMap()),"side"===this.poiViewMode&&(this.selectedPOI=on)},on=>{this.appManager.showToastNotification("POI Details not available")})}closePOIDetails(){this.selectedPOI=null}openRoutePlannerModal(){this.searchOnDemand=!1,this.mapping.unfocusMap(),this.modalController.create({component:ee.u}).then(Ie=>{Ie.onDidDismiss().then(Ct=>{this.logging.log("Dismissing Route Planner Details."),this.mapping.focusMap(),this.searchOnDemand=!0}),Ie.present()})}openSearchOptions(){this.searchOnDemand=!1,this.mapping.unfocusMap(),this.modalController.create({component:Le.N}).then(Ie=>{Ie.onDidDismiss().then(Ct=>{this.mapping.focusMap(),this.searchOnDemand=!0}),Ie.present()})}openSideView(){this.poiViewMode="side",this.mapping.updateMapSize()}closeSideView(){this.poiViewMode="modal",this.mapping.updateMapSize()}planRoute(){this.routePlanningMode=!0}search(Ie){this.placeSearchMapPOI.getPlacesAutoComplete(Ie,"poiSearch")}useFallbackPosition(){let Ie=this.defaultStartPos;null!=this.appManager.searchSettings.LastSearchPosition&&(Ie=this.appManager.searchSettings.LastSearchPosition),this.appManager.searchSettings.StartSearchPosition=Ie,this.appManager.searchSettings.LastSearchPosition=null,this.searchOnDemand=!0,this.mapping.updateMapCentrePos(Ie.latitude,Ie.longitude,!0,this.defaultMapZoom)}_watchId=null;getPosition(Ie={}){var Ct=this;return(0,C.Z)(function*(){return new Promise((on,Rn)=>{Ct._watchId=pe.watchPosition(Ie,(Vn,Ut)=>{Ct._watchId&&pe.clearWatch({id:Ct._watchId}),Ut?Rn(Ut):on(Vn)})})})()}locateUser(){var Ie=this;return(0,C.Z)(function*(){Ie.useFallbackPosition();try{Ie.logging.log("Attempting to locate user..");const Ct=yield Ie.getPosition({timeout:1e4});if(!Ct)throw"Failed to get user location.";return Ie.logging.log("Got user location."),Ie.appManager.searchSettings.StartSearchPosition=new ye.wC(Ct.coords.latitude,Ct.coords.longitude),Ie.searchOnDemand=!0,Ie.mapping.updateMapCentrePos(Ct.coords.latitude,Ct.coords.longitude,!0,Ie.defaultMapZoom),localStorage.setItem("_locationEnabled","true"),!0}catch(Ct){return Ie.logging.log("Failed to get user location. Searching using default or last position."+Ct),Ie.appManager.showToastNotification("Your location could not be determined."),Ie.useFallbackPosition(),!1}})()}placeSelected(Ie){this.searchKeyword=Ie.Address,this.logging.log("Got place details:"+Ie.Address),this.mapping.focusMap(),this.mapping.updateMapCentrePos(Ie.Location.latitude,Ie.Location.longitude,!0),this.debouncedRefreshMapResults()}static \u0275fac=function(Ct){return new(Ct||en)(Oe.Y36(Be.c),Oe.Y36(ie.SH),Oe.Y36(it.z),Oe.Y36(p.sK),Oe.Y36(ie.t4),Oe.Y36(Pe.R),Oe.Y36(de.v),Oe.Y36(Ce.i),Oe.Y36(Oe.R0b),Oe.Y36(j.IN),Oe.Y36(j.Br),Oe.Y36(Ye.z))};static \u0275cmp=Oe.Xpm({type:en,selectors:[["ng-component"]],viewQuery:function(Ct,on){if(1&Ct&&Oe.Gf(Ne.v,7),2&Ct){let Rn;Oe.iGM(Rn=Oe.CRH())&&(on.placeSearchMapPOI=Rn.first)}},decls:18,vars:10,consts:[["slot","start"],["autocapitalize","on","autocomplete","on",3,"ngModel","placeholder","debounce","ngModelChange","ionInput"],["slot","end"],[3,"click"],["name","locate","slot","start",4,"ngIf"],[4,"ngIf"],[3,"color","click"],["name","options","slot","end"],[3,"click",4,"ngIf"],[1,"search-page"],[3,"placeChanged"],["placeSearchMapPOI",""],["id","map-canvas",2,"height","100%","width","100%","min-height","300px"],["name","locate","slot","start"],["name","car","title","Route","slot","end"],[2,"position","absolute"]],template:function(Ct,on){1&Ct&&(Oe.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0),Oe._UZ(3,"ion-menu-button"),Oe.qZA(),Oe.TgZ(4,"ion-searchbar",1),Oe.NdJ("ngModelChange",function(Vn){return on.searchKeyword=Vn})("ionInput",function(Vn){return on.search(Vn)}),Oe.ALo(5,"translate"),Oe.qZA(),Oe.TgZ(6,"ion-buttons",2)(7,"ion-button",3),Oe.NdJ("click",function(){return on.locateUser()}),Oe.YNc(8,_t,1,0,"ion-icon",4)(9,Kt,1,0,"ion-spinner",5),Oe.qZA(),Oe.TgZ(10,"ion-button",6),Oe.NdJ("click",function(){return on.openSearchOptions()}),Oe._UZ(11,"ion-icon",7),Oe.qZA(),Oe.YNc(12,Mn,2,0,"ion-button",8),Oe.qZA()()(),Oe.TgZ(13,"ion-content",9)(14,"place-search",10,11),Oe.NdJ("placeChanged",function(Vn){return on.placeSelected(Vn)}),Oe.qZA(),Oe.YNc(16,fn,4,0,"ng-container",5),Oe._UZ(17,"div",12),Oe.qZA()),2&Ct&&(Oe.xp6(4),Oe.Q6J("ngModel",on.searchKeyword)("placeholder",Oe.lcZ(5,8,"ocm.search.performSearch"))("debounce",500),Oe.xp6(4),Oe.Q6J("ngIf",!on.appManager.isRequestInProgress),Oe.xp6(1),Oe.Q6J("ngIf",on.appManager.isRequestInProgress),Oe.xp6(1),Oe.Q6J("color",on.appManager.searchSettings.HasActiveFilters?"danger":"default"),Oe.xp6(2),Oe.Q6J("ngIf",1==on.sideViewAvailable&&"modal"==on.poiViewMode),Oe.xp6(4),Oe.Q6J("ngIf",on.appManager.isOffline))},dependencies:[X.O5,a.JJ,a.On,j.YG,j.Sm,j.W2,j.Gu,j.gu,j.fG,j.VI,j.PQ,j.sr,j.j9,Ne.v,p.X$],styles:[".search-page[_ngcontent-%COMP%] #map-canvas[_ngcontent-%COMP%]{width:100%;height:98%}.search-page[_ngcontent-%COMP%] #place-search[_ngcontent-%COMP%]{min-height:300px;background-color:#f0f0f0;position:absolute;z-index:100;width:100%}.search-page[_ngcontent-%COMP%] scroll-content[_ngcontent-%COMP%]{overflow-y:hidden}.search-page[_ngcontent-%COMP%] .banner[_ngcontent-%COMP%]{padding-left:2em}.search-page[_ngcontent-%COMP%] .sideview[_ngcontent-%COMP%]{background:rgb(238,238,238);background:linear-gradient(to bottom,rgb(238,238,238) 0%,rgb(255,255,255) 100%)}"]})}return en})(),li=(()=>{class en{static \u0275fac=function(Ct){return new(Ct||en)};static \u0275mod=Oe.oAB({type:en});static \u0275inj=Oe.cJS({imports:[X.ez,a.u5,j.Pc,p.aw,h.e,K.Bz.forChild([{path:"",component:qn}])]})}return en})()},4119:(zn,wt,S)=>{"use strict";S.d(wt,{N:()=>Ae});var h=S(5861),p=S(4669),X=S(6470),a=S(4783),j=S(866),K=S(1847),C=S(8564),oe=S(6728),_e=S(5957),Le=S(6814),ee=S(6223),Te=S(6086),ye=S(3999);let De=(()=>{class Ge extends ye.X${constructor(ne,Ee){super(ne,Ee)}transform(ne,...Ee){let xe=super.transform(ne,...Ee);return xe==ne?null!=Ee&&Ee[0].default?Ee[0].default:Ee[0].Title?Ee[0].Title:xe:xe}static \u0275fac=function(Ee){return new(Ee||Ge)(C.Y36(ye.sK,16),C.Y36(C.sBO,16))};static \u0275pipe=C.Yjl({name:"nullableTranslate",type:Ge,pure:!0});static \u0275prov=C.Yz7({token:Ge,factory:Ge.\u0275fac})}return Ge})();function me(Ge,lt){if(1&Ge){const ne=C.EpF();C.TgZ(0,"p",23),C._UZ(1,"ion-icon",24),C._uU(2," One or more filters are currently being applied. "),C.TgZ(3,"ion-button",25),C.NdJ("click",function(){C.CHM(ne);const xe=C.oxw();return C.KtG(xe.clearFilters())}),C._UZ(4,"ion-icon",26),C.TgZ(5,"ion-label"),C._uU(6,"Clear"),C.qZA()()()}}function Ye(Ge,lt){if(1&Ge&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.qZA()),2&Ge){const ne=lt.$implicit;C.Q6J("value",ne.ID),C.xp6(1),C.Oqu(ne.Title)}}function Ce(Ge,lt){if(1&Ge){const ne=C.EpF();C.TgZ(0,"ion-item")(1,"ion-select",15),C.NdJ("ngModelChange",function(xe){C.CHM(ne);const je=C.oxw();return C.KtG(je.searchSettings.FilterOptionsByCountryId=xe)})("ionChange",function(){C.CHM(ne);const xe=C.oxw();return C.KtG(xe.onCountryChange())}),C.ALo(2,"translate"),C.TgZ(3,"ion-select",27),C._uU(4,"(All Countries)"),C.qZA(),C.YNc(5,Ye,2,2,"ion-select-option",5),C.qZA()()}if(2&Ge){const ne=C.oxw();C.xp6(1),C.Q6J("label",C.lcZ(2,3,"ocm.search.countries"))("ngModel",ne.searchSettings.FilterOptionsByCountryId),C.xp6(4),C.Q6J("ngForOf",ne.countries)}}function de(Ge,lt){if(1&Ge&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.ALo(2,"nullableTranslate"),C.qZA()),2&Ge){const ne=lt.$implicit;C.Q6J("value",ne.ID),C.xp6(1),C.Oqu(C.xi3(2,2,"ocm.reference.usageType.value_"+ne.ID,ne))}}function Pe(Ge,lt){if(1&Ge&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.ALo(2,"nullableTranslate"),C.qZA()),2&Ge){const ne=lt.$implicit;C.Q6J("value",ne.ID),C.xp6(1),C.Oqu(C.xi3(2,2,"ocm.reference.statusType.value_"+ne.ID,ne))}}function Be(Ge,lt){if(1&Ge&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.ALo(2,"nullableTranslate"),C.qZA()),2&Ge){const ne=lt.$implicit;C.Q6J("value",ne.ID),C.xp6(1),C.Oqu(C.xi3(2,2,"ocm.reference.connectionType.value_"+ne.ID,ne))}}function Ne(Ge,lt){if(1&Ge&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.qZA()),2&Ge){const ne=lt.$implicit;C.Q6J("value",ne.code),C.xp6(1),C.Oqu(ne.title)}}let Ae=(()=>{class Ge{appManager;poiManager;mapping;modalController;events;searchSettings;maxPower=a.U;powerRange={lower:0,upper:this.maxPower};constructor(ne,Ee,xe,je,Se){this.appManager=ne,this.poiManager=Ee,this.mapping=xe,this.modalController=je,this.events=Se,this.searchSettings=ne.searchSettings}ngOnInit(){var ne=this;return(0,h.Z)(function*(){null!=ne.searchSettings.MinPowerKW&&(ne.powerRange.lower=ne.searchSettings.MinPowerKW),null!=ne.searchSettings.MaxPowerKW&&(ne.powerRange.upper=ne.searchSettings.MaxPowerKW),0==ne.powerRange.upper&&(ne.powerRange.upper=ne.maxPower),ne.appManager.analytics.viewEvent("Settings"),ne.useFilteredOptions&&(yield ne.onCountryChange())})()}get useFilteredOptions(){return this.searchSettings.FilterOptionsByCountryId>0}clearFilters(){this.searchSettings.ClearActiveFilters(),this.powerRange={lower:0,upper:this.maxPower},this.searchSettings.CheckForActiveFilters()}get operators(){return this.appManager.referenceDataManager.getNetworkOperators(this.useFilteredOptions)}get connectionTypes(){return this.appManager.referenceDataManager.getConnectionTypes(this.useFilteredOptions)}get usageTypes(){return this.appManager.referenceDataManager.getUsageTypes(this.useFilteredOptions)}get statusTypes(){return this.appManager.referenceDataManager.getStatusTypes(this.useFilteredOptions)}get countries(){return this.appManager.referenceDataManager.getCountries(this.useFilteredOptions)}get isCountryFilterFeatureEnabled(){return j.c.isFeatureEnabled("FILTER_OPTIONS_BY_COUNTRY")}_languages=[];get languages(){return this._languages.length>0||(this._languages=this.appManager.getLanguages()),this._languages}ionViewWillLeave(){null!=this.searchSettings.Language&&this.appManager.setLanguage(this.searchSettings.Language),this.searchSettings.MinPowerKW=this.powerRange.lower,this.searchSettings.MaxPowerKW=this.powerRange.upper,1==this.searchSettings.MinPowerKW&&(this.searchSettings.MinPowerKW=null),this.searchSettings.MaxPowerKW==this.maxPower&&(this.searchSettings.MaxPowerKW=null),this.appManager.searchSettings=this.searchSettings,this.appManager.saveSearchSettings(),this.events.publish("ocm:poiList:cleared")}onLanguageChange(){null!=this.searchSettings.Language&&""!=this.searchSettings.Language&&this.appManager.setLanguage(this.searchSettings.Language)}onCountryChange(){var ne=this;return(0,h.Z)(function*(){ne.appManager.referenceDataManager.refreshFilteredReferenceData(ne.appManager.api,{CountryIds:[ne.searchSettings.FilterOptionsByCountryId]})})()}onMapTypeChange(){var ne=this;return(0,h.Z)(function*(){ne.mapping.setMapType(ne.searchSettings.MapType)})()}onOperatorSelected(ne=null){var Ee=this;return(0,h.Z)(function*(){null!=ne&&(Ee.searchSettings.OperatorList.find(xe=>xe==ne.ID)||Ee.searchSettings.OperatorList.push(ne.ID))})()}onOperatorRemoved(ne){var Ee=this;return(0,h.Z)(function*(){Ee.searchSettings.OperatorList=Ee.searchSettings.OperatorList.filter(xe=>xe!=ne)})()}close(){this.modalController.dismiss()}static \u0275fac=function(Ee){return new(Ee||Ge)(C.Y36(X.c),C.Y36(p.R),C.Y36(K.v),C.Y36(oe.IN),C.Y36(_e.z))};static \u0275cmp=C.Xpm({type:Ge,selectors:[["ng-component"]],decls:66,vars:41,consts:[[1,"settings-page","ion-padding"],["danger","",4,"ngIf"],[4,"ngIf"],["mode","multi",3,"operatorList","useFilteredOperators","operatorRemoved","operatorChanged"],["multiple","true","cancelText","Cancel","okText","OK",3,"label","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["lines","none"],["dualKnobs","true","min","0","max","650","pin","true",3,"ngModel","ticks","snaps","min","max","ngModelChange"],["slot","start","size","small","name","flash"],["slot","end","name","flash"],["slot","start",2,"padding-top","0"],["type","number","min","0",2,"width","3em","border","none",3,"ngModel","max","ngModelChange"],["slot","end",2,"padding-top","0"],["type","number",2,"width","3em","border","none",3,"ngModel","max","min","ngModelChange"],["label","Language","multiple","false",3,"ngModel","ngModelChange","ionChange"],["multiple","false","cancelText","Cancel","okText","OK",3,"label","ngModel","ngModelChange","ionChange"],["value","ROADMAP"],["value","SATELLITE"],[3,"ngModel","ngModelChange"],["label","Max Results","type","number","placeholder","500","min","100","max","10000",3,"ngModel","ngModelChange"],["slot","end"],[3,"click"],["name","close","slot","start"],["danger",""],["name","alert"],["size","small","color","light",3,"click"],["slot","start","name","close"],["value",""],[3,"value"]],template:function(Ee,xe){1&Ee&&(C.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C._uU(3),C.ALo(4,"translate"),C.qZA()()(),C.TgZ(5,"ion-content",0)(6,"h2"),C._uU(7,"Search Filters"),C.qZA(),C.TgZ(8,"p"),C._uU(9,"Note: Filters will remove usable charging locations from your search results if we do not have complete data (i.e Operator or Power Levels)."),C.qZA(),C.YNc(10,me,7,0,"p",1),C.TgZ(11,"ion-list"),C.YNc(12,Ce,6,5,"ion-item",2),C.TgZ(13,"app-operator-lookup",3),C.NdJ("operatorRemoved",function(Se){return xe.onOperatorRemoved(Se)})("operatorChanged",function(Se){return xe.onOperatorSelected(Se)}),C.qZA(),C.TgZ(14,"ion-item")(15,"ion-select",4),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.UsageTypeList=Se}),C.ALo(16,"translate"),C.YNc(17,de,3,5,"ion-select-option",5),C.qZA()(),C.TgZ(18,"ion-item")(19,"ion-select",4),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.StatusTypeList=Se}),C.ALo(20,"translate"),C.YNc(21,Pe,3,5,"ion-select-option",5),C.qZA()(),C.TgZ(22,"ion-item")(23,"ion-select",4),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.ConnectionTypeList=Se}),C.ALo(24,"translate"),C.YNc(25,Be,3,5,"ion-select-option",5),C.qZA()(),C.TgZ(26,"ion-item",6)(27,"ion-range",7),C.NdJ("ngModelChange",function(Se){return xe.powerRange=Se}),C.TgZ(28,"ion-icon",8),C._uU(29,"0"),C.qZA(),C._UZ(30,"ion-icon",9),C.qZA()(),C.TgZ(31,"ion-item",6)(32,"ion-note",10),C._uU(33,"Min. Power (kW)"),C._UZ(34,"br"),C.TgZ(35,"input",11),C.NdJ("ngModelChange",function(Se){return xe.powerRange.lower=Se}),C.qZA()(),C.TgZ(36,"ion-note",12),C._uU(37,"Max. Power (kW)"),C._UZ(38,"br"),C.TgZ(39,"input",13),C.NdJ("ngModelChange",function(Se){return xe.powerRange.upper=Se}),C.qZA()()()(),C.TgZ(40,"h2"),C._uU(41," General Settings "),C.qZA(),C.TgZ(42,"ion-item")(43,"ion-select",14),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.Language=Se})("ionChange",function(){return xe.onLanguageChange()}),C.YNc(44,Ne,2,2,"ion-select-option",5),C.qZA()(),C.TgZ(45,"ion-item")(46,"ion-select",15),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.MapType=Se})("ionChange",function(){return xe.onMapTypeChange()}),C.ALo(47,"translate"),C.TgZ(48,"ion-select-option",16),C._uU(49,"Road Map"),C.qZA(),C.TgZ(50,"ion-select-option",17),C._uU(51,"Satellite"),C.qZA()()(),C.TgZ(52,"ion-item")(53,"ion-toggle",18),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.EnableAdvancedEditorFeatures=Se}),C._uU(54,"Enable Advanced Editor Options"),C.qZA()(),C.TgZ(55,"ion-item")(56,"ion-toggle",18),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.EnablePOIPendingApproval=Se}),C._uU(57,"Show POIs Pending Approval"),C.qZA()(),C.TgZ(58,"ion-item")(59,"ion-input",19),C.NdJ("ngModelChange",function(Se){return xe.searchSettings.MaxResults=Se}),C.qZA()()(),C.TgZ(60,"ion-footer")(61,"ion-toolbar")(62,"ion-buttons",20)(63,"ion-button",21),C.NdJ("click",function(){return xe.close()}),C._UZ(64,"ion-icon",22),C._uU(65," Close "),C.qZA()()()()),2&Ee&&(C.xp6(3),C.hij(" ",C.lcZ(4,31,"ocm.general.settings")," "),C.xp6(7),C.Q6J("ngIf",1==xe.searchSettings.HasActiveFilters),C.xp6(2),C.Q6J("ngIf",xe.isCountryFilterFeatureEnabled),C.xp6(1),C.Q6J("operatorList",xe.searchSettings.OperatorList)("useFilteredOperators",!1),C.xp6(2),C.Q6J("label",C.lcZ(16,33,"ocm.search.usageTypes"))("ngModel",xe.searchSettings.UsageTypeList),C.xp6(2),C.Q6J("ngForOf",xe.usageTypes),C.xp6(2),C.Q6J("label",C.lcZ(20,35,"ocm.search.operationalStatusTypes"))("ngModel",xe.searchSettings.StatusTypeList),C.xp6(2),C.Q6J("ngForOf",xe.statusTypes),C.xp6(2),C.Q6J("label",C.lcZ(24,37,"ocm.search.connectionTypes"))("ngModel",xe.searchSettings.ConnectionTypeList),C.xp6(2),C.Q6J("ngForOf",xe.connectionTypes),C.xp6(2),C.Q6J("ngModel",xe.powerRange)("ticks",!0)("snaps",!0)("min",xe.powerRange.lower)("max",xe.powerRange.upper),C.xp6(8),C.Q6J("ngModel",xe.powerRange.lower)("max",xe.powerRange.upper),C.xp6(4),C.Q6J("ngModel",xe.powerRange.upper)("max",xe.maxPower)("min",xe.powerRange.lower),C.xp6(4),C.Q6J("ngModel",xe.searchSettings.Language),C.xp6(1),C.Q6J("ngForOf",xe.languages),C.xp6(2),C.Q6J("label",C.lcZ(47,39,"ocm.details.location.map"))("ngModel",xe.searchSettings.MapType),C.xp6(7),C.Q6J("ngModel",xe.searchSettings.EnableAdvancedEditorFeatures),C.xp6(3),C.Q6J("ngModel",xe.searchSettings.EnablePOIPendingApproval),C.xp6(3),C.Q6J("ngModel",xe.searchSettings.MaxResults))},dependencies:[Le.sg,Le.O5,ee.Fj,ee.wV,ee.JJ,ee.qQ,ee.Fd,ee.On,oe.YG,oe.Sm,oe.W2,oe.fr,oe.Gu,oe.gu,oe.pK,oe.Ie,oe.Q$,oe.q_,oe.uN,oe.I_,oe.t9,oe.n0,oe.wd,oe.ho,oe.sr,oe.w,oe.as,oe.QI,oe.yf,oe.Uj,Te.z,ye.X$,De],encapsulation:2})}return Ge})()},9472:(zn,wt,S)=>{"use strict";S.r(wt),S.d(wt,{SignInModule:()=>_e});var h=S(8767),p=S(5086),X=S(3999),a=S(6814),j=S(6223),K=S(6728),C=S(6800),oe=S(8564);let _e=(()=>{class Le{static \u0275fac=function(ye){return new(ye||Le)};static \u0275mod=oe.oAB({type:Le});static \u0275inj=oe.cJS({imports:[a.ez,j.u5,K.Pc,X.aw,p.e,C.Bz.forChild([{path:"",component:h.F}])]})}return Le})()},8767:(zn,wt,S)=>{"use strict";S.d(wt,{F:()=>Te});var h=S(5861),p=S(9127),X=S(6470),a=S(8564),j=S(6728),K=S(3999),C=S(6800),oe=S(6814),_e=S(6223);function Le(ye,De){if(1&ye){const me=a.EpF();a.ynx(0),a.TgZ(1,"p",13),a._uU(2," Sign in using your Open Charge Map account. "),a.qZA(),a.TgZ(3,"ion-list")(4,"ion-item")(5,"ion-label",14),a._uU(6,"Email"),a.qZA(),a.TgZ(7,"ion-input",15),a.NdJ("ngModelChange",function(Ce){a.CHM(me);const de=a.oxw();return a.KtG(de.email=Ce)}),a.qZA()(),a.TgZ(8,"ion-item")(9,"ion-label",14),a._uU(10,"Password"),a.qZA(),a.TgZ(11,"ion-input",16),a.NdJ("ngModelChange",function(Ce){a.CHM(me);const de=a.oxw();return a.KtG(de.password=Ce)}),a.qZA()()(),a.TgZ(12,"p")(13,"a",8),a.NdJ("click",function(){a.CHM(me);const Ce=a.oxw();return a.KtG(Ce.appManager.launchWebPage("https://openchargemap.org/site/loginprovider/passwordreset"))}),a._uU(14,"Reset your password"),a.qZA()(),a.BQk()}if(2&ye){const me=a.oxw();a.xp6(7),a.Q6J("ngModel",me.email),a.xp6(4),a.Q6J("ngModel",me.password)}}function ee(ye,De){if(1&ye){const me=a.EpF();a.ynx(0),a.TgZ(1,"p",13),a._uU(2," Create a new Open Charge Map account. "),a.qZA(),a.TgZ(3,"ion-list")(4,"ion-item")(5,"ion-label",14),a._uU(6,"Email"),a.qZA(),a.TgZ(7,"ion-input",15),a.NdJ("ngModelChange",function(Ce){a.CHM(me);const de=a.oxw();return a.KtG(de.email=Ce)}),a.qZA()(),a.TgZ(8,"ion-item")(9,"ion-label",14),a._uU(10,"Display Name or Nickname"),a.qZA(),a.TgZ(11,"ion-input",15),a.NdJ("ngModelChange",function(Ce){a.CHM(me);const de=a.oxw();return a.KtG(de.username=Ce)}),a.qZA()(),a.TgZ(12,"ion-item")(13,"ion-label",14),a._uU(14,"Password"),a.qZA(),a.TgZ(15,"ion-input",16),a.NdJ("ngModelChange",function(Ce){a.CHM(me);const de=a.oxw();return a.KtG(de.password=Ce)}),a.qZA()(),a.TgZ(16,"ion-item")(17,"ion-label",14),a._uU(18,"Confirm Password"),a.qZA(),a.TgZ(19,"ion-input",16),a.NdJ("ngModelChange",function(Ce){a.CHM(me);const de=a.oxw();return a.KtG(de.confirmpassword=Ce)}),a.qZA()()(),a.BQk()}if(2&ye){const me=a.oxw();a.xp6(7),a.Q6J("ngModel",me.email),a.xp6(4),a.Q6J("ngModel",me.username),a.xp6(4),a.Q6J("ngModel",me.password),a.xp6(4),a.Q6J("ngModel",me.confirmpassword)}}let Te=(()=>{class ye{appManager;modalController;translate;alertController;loadingController;logging;router;location;email;password;username;confirmpassword;mode="signin";constructor(me,Ye,Ce,de,Pe,Be,Ne,Ae){this.appManager=me,this.modalController=Ye,this.translate=Ce,this.alertController=de,this.loadingController=Pe,this.logging=Be,this.router=Ne,this.location=Ae,this.email=""}cancelSignIn(){this.modalController.dismiss()}performRegister(){var me=this;return(0,h.Z)(function*(){if(me.password!=me.confirmpassword)return void alert("Your password and the confirmed password do not match, please try again.");if(me.password.length<6)return void alert("Your password should be at least 6 characters.");const Ye=yield me.loadingController.create({message:"Registering .."});yield Ye.present();let Ce=!1;try{yield me.appManager.api.performRegister(me.username,me.email,me.password),Ye.dismiss(),localStorage.setItem("authResponse",JSON.stringify(me.appManager.api.authResponse)),me.appManager.isUserAuthenticated(!0),me.modalController.dismiss(),me.appManager.analytics.appEvent("Profile","SignedIn")}catch(de){Ce=!0,Ye.dismiss(),yield(yield me.alertController.create({header:"Open Charge Map",subHeader:"Email or Password not recognised",buttons:["Ok"]})).present(),me.logging.log("Error logging in:"+de)}})()}performSignIn(){var me=this;return(0,h.Z)(function*(){if("register"==me.mode)return me.performRegister();const Ye=yield me.loadingController.create({message:"Signing In.."});yield Ye.present();let Ce=!1;try{yield me.appManager.api.performSignIn(me.email,me.password),Ye.dismiss(),localStorage.setItem("authResponse",JSON.stringify(me.appManager.api.authResponse)),me.appManager.isUserAuthenticated(!0),me.modalController.dismiss(),me.appManager.analytics.appEvent("Profile","SignedIn")}catch(de){Ce=!0,Ye.dismiss(),yield(yield me.alertController.create({header:"Open Charge Map",subHeader:"Email or Password not recognised",buttons:["Ok"]})).present(),me.logging.log("Error logging in:"+de)}})()}static \u0275fac=function(Ye){return new(Ye||ye)(a.Y36(X.c),a.Y36(j.IN),a.Y36(K.sK),a.Y36(j.Br),a.Y36(j.HT),a.Y36(p.z),a.Y36(C.F0),a.Y36(oe.Ye))};static \u0275cmp=a.Xpm({type:ye,selectors:[["ng-component"]],decls:28,vars:9,consts:[[1,"signin-page","ion-padding"],["item-left",""],["src","assets/images/icons/branding/AppIcon_128x128.png"],[3,"ngModel","ngModelChange"],["value","signin"],["value","register"],[4,"ngIf"],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["type","submit","color","primary",3,"click"],["name","log-in","slot","start"],[1,"ion-padding"],["position","floating"],["type","text",3,"ngModel","ngModelChange"],["type","password",3,"ngModel","ngModelChange"]],template:function(Ye,Ce){1&Ye&&(a.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),a._uU(3),a.ALo(4,"translate"),a.qZA()()(),a.TgZ(5,"ion-content",0)(6,"ion-avatar",1),a._UZ(7,"img",2),a.qZA(),a.TgZ(8,"ion-segment",3),a.NdJ("ngModelChange",function(Pe){return Ce.mode=Pe}),a.TgZ(9,"ion-segment-button",4)(10,"ion-label"),a._uU(11,"Sign In"),a.qZA()(),a.TgZ(12,"ion-segment-button",5)(13,"ion-label"),a._uU(14,"Create Account"),a.qZA()()(),a.YNc(15,Le,15,2,"ng-container",6)(16,ee,20,4,"ng-container",6),a.qZA(),a.TgZ(17,"ion-footer")(18,"ion-toolbar")(19,"ion-buttons",7)(20,"ion-button",8),a.NdJ("click",function(){return Ce.cancelSignIn()}),a._UZ(21,"ion-icon",9),a._uU(22," Cancel"),a.qZA()(),a.TgZ(23,"ion-buttons",10)(24,"ion-button",11),a.NdJ("click",function(){return Ce.performSignIn()}),a._UZ(25,"ion-icon",12),a._uU(26),a.ALo(27,"translate"),a.qZA()()()()),2&Ye&&(a.xp6(3),a.hij(" ",a.lcZ(4,5,"ocm.general.signIn")," "),a.xp6(5),a.Q6J("ngModel",Ce.mode),a.xp6(7),a.Q6J("ngIf","signin"==Ce.mode),a.xp6(1),a.Q6J("ngIf","register"==Ce.mode),a.xp6(10),a.hij(" ",a.lcZ(27,7,"ocm.general.signIn"),""))},dependencies:[oe.O5,_e.JJ,_e.On,j.BJ,j.YG,j.Sm,j.W2,j.fr,j.Gu,j.gu,j.pK,j.Ie,j.Q$,j.q_,j.cJ,j.GO,j.wd,j.sr,j.QI,j.j9,K.X$],encapsulation:2})}return ye})()},439:(zn,wt,S)=>{"use strict";S.d(wt,{l:()=>oe});var h=S(5861),p=S(9127),X=S(9159),a=S(7518),j=S(9862),K=S(553),C=S(8564);let oe=(()=>{class _e{http;refData;logging;serviceBase="https://api.openchargemap.io";serviceBaseURL=this.serviceBase+"/v4";hasAuthorizationError=!1;ATTRIBUTION_METADATAFIELDID=4;authResponse;clientName="ocm.api.default";authorizationErrorCallback;generalErrorCallback;allowMirror=!1;lastPOIApiCallURL="";constructor(ee,Te,ye){this.http=ee,this.refData=Te,this.logging=ye,this.serviceBaseURL=K.N.apiBase+"/v3"}getNumberListString(ee){let Te="";for(let ye=0;ye0&&(De+="&connectiontypeid="+Te.getNumberListString(ee.connectionTypeIdList)),null!=ee.operatorIdList&&ee.operatorIdList.length>0&&(De+="&operatorid="+Te.getNumberListString(ee.operatorIdList)),null!=ee.usageTypeIdList&&ee.usageTypeIdList.length>0&&(De+="&usagetypeid="+Te.getNumberListString(ee.usageTypeIdList)),null!=ee.statusTypeIdList&&ee.statusTypeIdList.length>0&&(De+="&statustypeid="+Te.getNumberListString(ee.statusTypeIdList)),null!=ee.locationTitle&&(De+="&locationtitle="+ee.locationTitle),null!=ee.minPowerKW&&ee.minPowerKW>0&&(De+="&minpowerkw="+ee.minPowerKW),null!=ee.maxPowerKW&&ee.maxPowerKW>0&&(De+="&maxpowerkw="+ee.maxPowerKW),null!=ee.submissionStatusTypeIdList&&(De+="&submissionstatustypeid="+Te.getNumberListString(ee.submissionStatusTypeIdList)),null!=ee.poiIdList&&ee.poiIdList.length>0&&(De+="&chargepointid="+Te.getNumberListString(ee.poiIdList)),0==ee.enableCaching&&(De+="&enablecaching=false"),null!=ee.compact&&(De+="&compact="+ee.compact),ee.levelOfDetail>1&&(De+="&levelofdetail="+ee.levelOfDetail),null!=ee.polyline&&(De+="&polyline="+ee.polyline),null!=ee.boundingbox&&(De+="&boundingbox="+ee.boundingbox),null!=ee.additionalParams&&(De+="&"+ee.additionalParams);const me=ye+De;if(Te.lastPOIApiCallURL===me&&0!=ee.enableCaching)return Te.logging.log("Skipped API call due to same query being repeated."),[];Te.lastPOIApiCallURL=me,Te.logging.log("API Call:"+me,p.i.VERBOSE);try{let Ye=yield Te.http.get(me,Te.getHttpRequestOptions()).toPromise();return Te.refData.hydrateCompactPOIList(Ye)}catch(Ye){const Ce=Ye.message||"Could not fetch POI list from server.";throw Te.logging.log("API Client: "+JSON.stringify(Ye),p.i.ERROR),Ce}})()}getHttpRequestOptions(ee=!0){let Te=new j.WM;return ee&&(Te=Te.append("Content-Type","application/json")),this.authResponse&&this.authResponse.Data&&this.authResponse.Data.access_token&&(Te=Te.append("Authorization","Bearer "+this.authResponse.Data.access_token)),Te=Te.append("X-API-Key",K.N.apiKey),{headers:Te}}fetchCoreReferenceData(ee){let Te=this.serviceBaseURL+"/referencedata/?client="+this.clientName+"&output=json"+(this.allowMirror?"&allowmirror=true":"")+"&verbose=false&compact=true";return null!=ee&&null!=ee.CountryIds&&(Te+="&countryid="+this.getNumberListString(ee.CountryIds)),this.logging.log("API Call:"+Te,p.i.VERBOSE),this.http.get(Te,this.getHttpRequestOptions())}performSignIn(ee,Te){return this.http.post(this.serviceBaseURL+"/profile/authenticate/",JSON.stringify({emailaddress:ee,password:Te}),this.getHttpRequestOptions()).toPromise().then(me=>(this.authResponse=me,this.authResponse))}performRegister(ee,Te,ye){return this.http.post(this.serviceBaseURL+"/profile/register/",JSON.stringify({username:ee,emailaddress:Te,password:ye}),this.getHttpRequestOptions()).toPromise().then(Ye=>(this.authResponse=Ye,this.authResponse))}performSubmission(ee,Te){return ee===a.qO.POI?this.submitPOI(Te):ee===a.qO.Comment?this.submitUserComment(Te):ee===a.qO.Media?this.submitMediaItem(Te):void 0}submitUserComment(ee){const Te=JSON.stringify(ee);return this.logging.log("[api] Submitting user comment"),this.http.post(this.serviceBaseURL+"/comment/",Te,this.getHttpRequestOptions()).toPromise()}submitMediaItem(ee){const Te=JSON.stringify(ee);return this.http.post(this.serviceBaseURL+"/mediaitem/",Te,this.getHttpRequestOptions()).toPromise()}submitPOI(ee){const Te=JSON.stringify(ee);return this.http.post(this.serviceBaseURL+"/poi/",Te,this.getHttpRequestOptions()).toPromise()}getPanoramioLocationPhotos(ee){return new Promise(Te=>{const De="https://www.panoramio.com/map/get_panoramas.php?set=public&from=0&to=2&minx="+(ee.longitude-.001)+"&miny="+(ee.latitude-.001)+"&maxx="+(ee.longitude+.001)+"maxy="+(ee.latitude+.001)+"&size=medium&mapfilter=true&callback=?";return console.log(De),this.http.get(De).toPromise()})}fetchReverseGeocodeResult(ee,Te){return this.http.get(this.serviceBaseURL+"/geocode/?client="+this.clientName+"&output=json&camelcase=false&latitude="+ee+"&longitude="+Te,this.getHttpRequestOptions()).toPromise()}isLocalStorageAvailable(){return typeof window.localStorage<"u"}setCachedDataObject(ee,Te){this.isLocalStorageAvailable()&&(typeof Te>"u"&&(Te=null),null===Te?localStorage.removeItem(ee):localStorage.setItem(ee,JSON.stringify(Te)))}getCachedDataObject(ee){if(this.isLocalStorageAvailable()){const Te=localStorage.getItem(ee);if(null!=Te&&Te.length>0)return JSON.parse(Te)}return null}static \u0275fac=function(Te){return new(Te||_e)(C.LFG(j.eN),C.LFG(X.W),C.LFG(p.z))};static \u0275prov=C.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"})}return _e})()},3294:(zn,wt,S)=>{"use strict";S.d(wt,{c:()=>j});var h=S(5861),p=S(9127),X=S(8564),a=S(5472);let j=(()=>{class K{logger;platform;isCordova=!1;ga=null;constructor(oe,_e){this.logger=oe,this.platform=_e,this.isCordova=!(!_e.is("cordova")&&!_e.is("capacitor"))}init(oe){var _e=this;return(0,h.Z)(function*(){_e.isCordova&&_e.ga?yield _e.ga.startTrackerWithId(oe):_e.logger.log("Could not initialise analytics")})()}setAppVersion(oe){var _e=this;return(0,h.Z)(function*(){if(_e.isCordova&&_e.ga)return _e.ga.setAppVersion(oe);_e.logger.log(oe)})()}appEvent(oe,_e){var Le=this;return(0,h.Z)(function*(){if(Le.isCordova&&Le.ga)return Le.ga.trackEvent(oe,_e);Le.logger.log(_e)})()}viewEvent(oe){var _e=this;return(0,h.Z)(function*(){if(_e.isCordova&&_e.ga)return _e.ga.trackView(oe);_e.logger.log(oe)})()}static \u0275fac=function(_e){return new(_e||K)(X.LFG(p.z),X.LFG(a.t4))};static \u0275prov=X.Yz7({token:K,factory:K.\u0275fac,providedIn:"root"})}return K})()},6470:(zn,wt,S)=>{"use strict";S.d(wt,{c:()=>Ce});var h=S(5861),p=S(9127),X=S(439),a=S(7518),j=S(8564),K=S(5957);let C=(()=>{class de{events;isQueueProcessing;appManager;constructor(Be){this.events=Be,this.isQueueProcessing=!1}setAppManager(Be){this.appManager=Be}add(Be,Ne){let Ae=this.getQueueItems();Ae.push(new a.aX(Be,Ne)),this.saveQueueItems(Ae)}update(Be){let Ne=this.getQueueItems(),Ae=new Array;return Ne.forEach(Ge=>{Ae.push(Ge.ID==Be.ID?Be:Ge)}),Ae}processNextQueueItem(){let Be=this.getNextQueueItem();null!=Be&&null!=this.appManager&&this.appManager.api.performSubmission(Be.SubmissionType,Be.Data).then(()=>{Be.IsSubmitted=!0,Be.Attempts++,this.update(Be),this.clear()})}getNextQueueItem(){let Be=this.getQueueItems(),Ne=null;return Be.forEach(Ae=>{null==Ne&&!Ae.IsCancelled&&!Ae.IsInProgress&&!Ae.IsSubmitted&&(Ne=Ae)}),Ne}hasPendingItems(){let Be=!1;return this.getQueueItems().forEach(Ae=>{!Ae.IsFailure&&!Ae.IsCancelled&&!Ae.IsSubmitted&&(Be=!0)}),Be}isCompleted(){let Be=this.getQueueItems(),Ne=!0;return Be.forEach(Ae=>{(Ae.IsInProgress||Ae.IsFailure)&&(Ne=!1)}),Ne}clear(Be=!1){let Ne=this.getQueueItems(),Ae=new Array;Be||Ne.forEach(Ge=>{(Ge.IsInProgress||Ge.IsFailure)&&Ae.push(Ge)}),this.saveQueueItems(Ae)}saveQueueItems(Be){localStorage.setItem("submissionQueue",JSON.stringify(Be))}getQueueItems(){let Be=localStorage.getItem("submissionQueue");return null!=Be?JSON.parse(Be):new Array}static \u0275fac=function(Ne){return new(Ne||de)(j.LFG(K.z))};static \u0275prov=j.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})();var oe=S(9159),_e=S(989),Le=S(3294),ee=S(553),Te=S(9862),ye=S(5472),De=S(6728),me=S(3999),Ye=S(703);let Ce=(()=>{class de{http;events;api;submissionQueue;platform;referenceDataManager;journeyManager;translateService;toastController;loadingController;jwtHelper;logging;analytics;enableSubmissionQueue;searchSettings;platformMode;journeys;isDebugMode;clientWidth;clientHeight;isRequestInProgress=!1;title="Open Charge Map";_isUserAuthenticated=null;isEmbeddedMode=!1;isOffline=!1;constructor(Be,Ne,Ae,Ge,lt,ne,Ee,xe,je,Se,Ve,Xe,Ht){this.http=Be,this.events=Ne,this.api=Ae,this.submissionQueue=Ge,this.platform=lt,this.referenceDataManager=ne,this.journeyManager=Ee,this.translateService=xe,this.toastController=je,this.loadingController=Se,this.jwtHelper=Ve,this.logging=Xe,this.analytics=Ht,this.api.clientName="ocm.app.ionic."+ee.N.version,this.isDebugMode=!1,this.enableSubmissionQueue=!1,this.submissionQueue.setAppManager(this),this.platformMode=lt.is("cordova")?"cordova":"web",this.initAppManager(),this.searchSettings=new a.Nm,this.loadSearchSettings(),this.applyURLQueryStringOptions(),this.searchSettings.CheckForActiveFilters(),this.journeyManager.loadJourneys()}loadSearchSettings(){if(null!=localStorage.getItem("searchSettings")){this.searchSettings=new a.Nm;try{let Be=JSON.parse(localStorage.getItem("searchSettings"));Object.assign(this.searchSettings,Be)}catch{}}}savePushRegistration(Be){localStorage.setItem("_pushToken",Be.toString())}getPushRegistration(){localStorage.getItem("_pushToken")}getQueryVariable(Be){let Ae=window.location.search.substring(1).split("&");for(let Ge=0;GedecodeURIComponent(xe))}return null}applyURLQueryStringOptions(){if(this.getQueryVariable("mode")&&"embedded"==this.getQueryVariable("mode")[0]&&(this.isEmbeddedMode=!0),this.getQueryVariable("operatorid")){let Be=this.getQueryVariable("operatorid");for(let Ne of Be)this.searchSettings.OperatorList.unshift(parseInt(Ne,10))}if(this.getQueryVariable("latitude")&&this.getQueryVariable("longitude")){let Be=this.getQueryVariable("latitude")[0],Ne=this.getQueryVariable("longitude")[0];this.searchSettings.StartSearchPosition=new a.wC(parseFloat(Be),parseFloat(Ne))}this.getQueryVariable("title")&&(this.title=this.getQueryVariable("title")[0]),this.getQueryVariable("languagecode")&&this.setLanguage(this.getQueryVariable("languagecode")[0]),this.getQueryVariable("id")&&(this.searchSettings.StartViewPoiId=this.getQueryVariable("id")[0])}saveSearchSettings(){this.searchSettings.CheckForActiveFilters(),localStorage.setItem("searchSettings",JSON.stringify(this.searchSettings))}getLanguages(){return[{code:"ar",title:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 / Arabic"},{code:"bg",title:"Bulgarian / \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},{code:"cs",title:"Czech / \u010ce\u0161tina"},{code:"de",title:"German / Deutsch"},{code:"el",title:"Greek / \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae"},{code:"en",title:"English"},{code:"es",title:"Spanish / Espa\xf1ol"},{code:"et",title:"Estonian / Eesti"},{code:"fi",title:"Finnish / Suomi"},{code:"fr",title:"French / Fran\xe7ais"},{code:"fy",title:"West Frisian / Frysk"},{code:"hu",title:"Hungarian / Magyar"},{code:"it",title:"Italian / Italiano"},{code:"ja",title:"Japanese / \u65e5\u672c\u8a9e"},{code:"lt",title:"Lithuanian / Lietuvi\u0173"},{code:"nl",title:"Dutch / Nederlands"},{code:"pt",title:"Portuguese / portugu\xeas"},{code:"ro",title:"Romanian / Rom\xe2n\u0103"},{code:"ru",title:"Russian / P\u0443\u0441\u0441\u043a\u0438\u0439"},{code:"sk",title:"Slovak / Sloven\u010dina"},{code:"tr",title:"Turkish / T\xfcrk\xe7e"},{code:"zh",title:"Chinese / \u4e2d\u56fd\u7684"}]}setLanguage(Be){(null==Be||""==Be)&&(Be="en"),this.logging.log("Changing language: "+Be),this.translateService.use(Be)}initAppManager(){this.initAuthFromStorage(),this.isUserAuthenticated(!0)&&this.enableSubmissionQueue&&null!=this.submissionQueue&&this.submissionQueue.hasPendingItems()&&this.submissionQueue.processNextQueueItem()}initAuthFromStorage(){let Be=localStorage.getItem("authResponse");if(null!=Be){let Ne=JSON.parse(Be);null!=Ne?.Data&&null!=Ne?.Data?.access_token?(this.jwtHelper.decodeToken(Ne.Data.access_token),this.jwtHelper.isTokenExpired(Ne.Data.access_token)?localStorage.removeItem("authResponse"):(this.api.authResponse=Ne,this.logging.log("User has valid auth token in local storage",p.i.VERBOSE))):(this.logging.log("User has invalid auth token in local storage",p.i.VERBOSE),localStorage.removeItem("authResponse"))}}isUserAuthenticated(Be=!1){return!1===Be&&null!=this._isUserAuthenticated||(this._isUserAuthenticated=!1,null!=this.api.authResponse&&(this.jwtHelper.isTokenExpired(this.api.authResponse.Data.access_token)||(this._isUserAuthenticated=!0))),this._isUserAuthenticated}getCurrentAuthToken(){return null!=this.api.authResponse?this.api.authResponse.Data.access_token:null}getUserProfile(){return null!=this.api.authResponse?this.api.authResponse.Data.UserProfile:null}signOutCurrentUser(){localStorage.removeItem("authResponse"),this.api.authResponse=null,this._isUserAuthenticated=!1}submitComment(Be){if(!this.enableSubmissionQueue)return this.api.performSubmission(a.qO.Comment,Be);this.submissionQueue.add(a.qO.Comment,Be),this.submissionQueue.processNextQueueItem()}submitMediaItem(Be){if(!this.enableSubmissionQueue)return this.api.performSubmission(a.qO.Media,Be);this.submissionQueue.add(a.qO.Media,Be),this.submissionQueue.processNextQueueItem()}submitPOI(Be){if(!this.enableSubmissionQueue)return this.api.performSubmission(a.qO.POI,Be);this.submissionQueue.add(a.qO.POI,Be),this.submissionQueue.processNextQueueItem()}showToastNotification(Be){var Ne=this;return(0,h.Z)(function*(){yield(yield Ne.toastController.create({message:Be,duration:3e3})).present()})()}showLoadingProgress(Be){var Ne=this;return(0,h.Z)(function*(){yield(yield Ne.loadingController.create({message:Be})).present()})()}dismissLoadingProgress(){var Be=this;return(0,h.Z)(function*(){return Be.loadingController.dismiss()})()}launchOCMWebPage(Be){this.isUserAuthenticated(!0)&&(-1===Be.indexOf("?")&&(Be+="?"),Be+="&auth="+this.getCurrentAuthToken()),Be="https://openchargemap.org/site"+Be,window.open(Be,"_system")}launchWebPage(Be){window.open(Be,"_system")}isPlatform(Be){return this.platform.is(Be)}static \u0275fac=function(Ne){return new(Ne||de)(j.LFG(Te.eN),j.LFG(K.z),j.LFG(X.l),j.LFG(C),j.LFG(ye.t4),j.LFG(oe.W),j.LFG(_e.i),j.LFG(me.sK),j.LFG(De.yF),j.LFG(De.HT),j.LFG(Ye.N0),j.LFG(p.z),j.LFG(Le.c))};static \u0275prov=j.Yz7({token:de,factory:de.\u0275fac,providedIn:"root"})}return de})()},5957:(zn,wt,S)=>{"use strict";S.d(wt,{z:()=>p});var h=S(8564);let p=(()=>{class X{c=new Map;constructor(){}subscribe(j,...K){let C=this.c.get(j);C||this.c.set(j,C=[]),C.push(...K)}unsubscribe(j,K){if(!K)return this.c.delete(j);const C=this.c.get(j);if(!C)return!1;const oe=C.indexOf(K);return!(oe<0||(C.splice(oe,1),0===C.length&&this.c.delete(j),0))}publish(j,...K){const C=this.c.get(j);return C?C.map(oe=>{try{return oe(...K)}catch(_e){return console.error(_e),null}}):null}static \u0275fac=function(K){return new(K||X)};static \u0275prov=h.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})()},989:(zn,wt,S)=>{"use strict";S.d(wt,{i:()=>K});var h=S(9127),p=S(439),X=S(4669),a=S(7518),j=S(8564);let K=(()=>{class C{api;poiManager;logging;journeys;favourites;routePolyline;constructor(_e,Le,ee){this.api=_e,this.poiManager=Le,this.logging=ee,this.journeys=[],this.favourites=[]}loadJourneys(){let _e=localStorage.getItem("journeys");if(null!=_e&&(this.journeys=JSON.parse(_e)),null!=this.journeys)for(let Le of this.journeys)this.fetchAllJourneyPOIDetails(Le)}fetchAllJourneyPOIDetails(_e){this.logging.log("Journeys - fetching poi details for Journey "+_e.Title);let Le=new a.be;Le.poiIdList=[];for(let ee of _e.Stages)for(let Te of ee.WayPoints)for(let ye of Te.PoiIDs)Le.poiIdList.push(ye);this.api.fetchPOIListByParam(Le).then(ee=>{for(let Te of ee)this.updateStoredPOI(Te)})}updateStoredPOI(_e){if(this.journeys.forEach(Le=>{Le.Stages.forEach(ee=>{ee.WayPoints.forEach(Te=>{Te.PoiIDs.forEach(ye=>{if(ye==_e.ID)if(null==Te.PoiList){Te.PoiList=[];let De=new a.Qp("charging",1);De.Poi=_e,De.PoiID=_e.ID,Te.PoiList.push(De)}else for(let De of Te.PoiList)De.PoiID==_e.ID&&(De.Poi=_e)})})})}),null!=this.favourites)for(let Le of this.favourites)"charging"==Le.Type&&Le.PoiID==_e.ID&&(Le.Poi=_e)}saveJourneys(){let _e=JSON.parse(JSON.stringify(this.journeys));for(let ee of _e)for(const Te of ee.Stages)for(let ye of Te.WayPoints)for(let De of ye.PoiList)De.Poi=null,De.Photos=null;const Le=JSON.stringify(_e);localStorage.setItem("journeys",Le)}addJourney(_e,Le){let ee=new a.vw;ee.Title="Stage 1",null!=Le&&ee.WayPoints.push(Le),_e.Stages.push(ee),this.journeys.push(_e)}deleteJourney(_e){this.journeys=this.journeys.filter(Le=>Le.ID!=_e),this.saveJourneys()}getJourney(_e){let Le=this.journeys.filter(ee=>ee.ID==_e);return Le.length>0?Le[0]:null}getJourneyStages(_e){return this.getJourney(_e).Stages}addJourneyWaypoint(_e,Le,ee){let Te=this.getJourney(_e);if(null==Le){let ye=new a.vw;ye.Title="Stage "+(Te.Stages.length+1),ye.WayPoints.push(ee),Te.Stages.push(ye)}else{let ye=Te.Stages[Le];null==ye.WayPoints&&(ye.WayPoints=[]),ye.WayPoints.push(ee)}}addJourneyStage(_e,Le){return this.getJourney(_e).Stages.push(Le)-1}setupTestJourneys(){this.journeys=[];let _e=new a.fw;_e.Title="New York to Brooklyn",_e.Notes="A little jaunt to Brooklyn",_e.Stages=[];let Le=new a.vw,ee=new a.kA;ee.Notes="Starting point",ee.Position=new a.wC(40,1.2),ee.Title="Start",Le.WayPoints.push(ee);let Te=new a.kA;Te.Notes="Middle point",Te.Position=new a.wC(40,1.33),Te.Title="Middle",Le.WayPoints.push(Te);let ye=new a.kA;ye.Notes="End point",ye.Position=new a.wC(40,1.33),ye.Title="End",Le.WayPoints.push(ye),_e.Stages.push(Le),this.journeys.push(_e);let De=new a.fw;De.Title="Aberdeen to London",De.Notes="Roadtrip",De.Stages=[],this.journeys.push(De)}calculateEnergyConsumptionkWh(_e,Le,ee=0,Te){return _e*Te}setRoutePolyline(_e){this.routePolyline=_e}getRoutePolyline(){return this.routePolyline}static \u0275fac=function(Le){return new(Le||C)(j.LFG(p.l),j.LFG(X.R),j.LFG(h.z))};static \u0275prov=j.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},9127:(zn,wt,S)=>{"use strict";S.d(wt,{i:()=>X,z:()=>a});var h=S(553),p=S(8564),X=function(j){return j[j.VERBOSE=0]="VERBOSE",j[j.INFO=1]="INFO",j[j.WARNING=2]="WARNING",j[j.ERROR=3]="ERROR",j}(X||{});let a=(()=>{class j{logLevel;constructor(){this.logLevel=X.VERBOSE,h.N.production&&(this.logLevel=X.INFO)}log(C,oe=X.VERBOSE){console&&console.log&&oe>=this.logLevel&&console.log("["+X[oe]+"] {"+(new Date).toLocaleTimeString()+"} "+C)}static \u0275fac=function(oe){return new(oe||j)};static \u0275prov=p.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"})}return j})()},4669:(zn,wt,S)=>{"use strict";S.d(wt,{R:()=>C});var h=S(5861),p=S(9127),X=S(439),a=S(3294),j=S(8564),K=S(5957);let C=(()=>{class oe{api;events;logging;analytics;poiList;isRequestInProgress=!1;constructor(Le,ee,Te,ye){this.api=Le,this.events=ee,this.logging=Te,this.analytics=ye}refreshPOIList(Le){var ee=this;return(0,h.Z)(function*(){try{return ee.poiList=yield ee.fetchPOIList(Le),ee.events.publish("ocm:poiList:updated"),ee.analytics.appEvent("Search","Fetched Results"),ee.poiList.length}catch{return 0}})()}fetchPOIList(Le){var ee=this;return(0,h.Z)(function*(){ee.isRequestInProgress=!0;try{let Te=yield ee.api.fetchPOIListByParam(Le);return ee.isRequestInProgress=!1,Te&&Te.length&&ee.logging.log("fetched POI list ["+Te.length+"]"),Te}catch{return ee.isRequestInProgress=!1,[]}})()}clearResults(){this.poiList=[],this.events.publish("ocm:poiList:cleared"),this.logging.log("clearing results after settings change",p.i.VERBOSE)}getPOIById(Le,ee=!1,Te=!1){var ye=this;return(0,h.Z)(function*(){if(!Te&&null!=ye.poiList){const Ye=ye.poiList.find(Ce=>Ce.ID==Le);if(Ye)return Ye}const De={poiIdList:[Le],enableCaching:!Te,includeComments:!0},me=yield ye.api.fetchPOIListByParam(De);return me&&me.length>0?(ye.poiList&&me[0].ID==Le&&(ye.poiList=ye.poiList.filter(Ye=>Ye.ID!=Le),ye.poiList.push(me[0]),ye.logging.log("POI refreshed in cache "+Le)),me[0]):null})()}static \u0275fac=function(ee){return new(ee||oe)(j.LFG(X.l),j.LFG(K.z),j.LFG(p.z),j.LFG(a.c))};static \u0275prov=j.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},9159:(zn,wt,S)=>{"use strict";S.d(wt,{W:()=>j});var h=S(5861),p=S(9127),X=S(8564),a=S(9862);let j=(()=>{class K{http;logging;referenceData;filteredReferenceData;constructor(oe,_e){this.http=oe,this.logging=_e,this.loadCachedRefData()}refreshReferenceData(oe){var _e=this;return(0,h.Z)(function*(){try{const Le=yield oe.fetchCoreReferenceData(null).toPromise();return _e.setCoreReferenceData(Le),_e.setFilteredReferenceData(Le),_e.logging.log("Got refreshed core ref data.",p.i.VERBOSE),_e.sortCoreReferenceData(),_e.cacheCurrentRefData(),!0}catch(Le){return _e.logging.log("Error fetching core ref data:"+Le),!1}})()}refreshFilteredReferenceData(oe,_e){oe.fetchCoreReferenceData(_e).subscribe(Le=>{this.setFilteredReferenceData(Le),this.sortCoreReferenceData(),this.logging.log("Got refreshed filtered reference data.",p.i.VERBOSE)},Le=>{this.logging.log("Error fetching filtered reference data:"+Le)})}setCoreReferenceData(oe){this.referenceData=oe}setFilteredReferenceData(oe){this.filteredReferenceData=oe}referenceDataLoaded(){return null!=this.referenceData}getCountries(oe=!1){return 1==oe?this.filteredReferenceData.Countries:this.referenceData.Countries}getCountryByID(oe){return this.getRefDataByID(this.referenceData.Countries,oe)}getConnectionTypes(oe=!1){return 1==oe?this.filteredReferenceData.ConnectionTypes:this.referenceData.ConnectionTypes}getConnectionTypeByID(oe){return this.getRefDataByID(this.referenceData.ConnectionTypes,oe)}getUsageTypes(oe=!1){return 1==oe?this.filteredReferenceData.UsageTypes:this.referenceData.UsageTypes.filter(_e=>_e.ID>0)}getUsageTypeByID(oe){return this.getRefDataByID(this.referenceData.UsageTypes,oe)}getStatusTypes(oe=!1){return 1==oe?this.filteredReferenceData.StatusTypes:this.referenceData.StatusTypes.filter(_e=>_e.ID>0)}getStatusTypeByID(oe){return this.getRefDataByID(this.referenceData.StatusTypes,oe)}getNetworkOperators(oe=!1){return 1==oe?this.filteredReferenceData.Operators:this.referenceData.Operators}getNetworkOperatorByID(oe){return this.getRefDataByID(this.referenceData.Operators,oe)}getDataProviders(oe=!1){return 1==oe?this.filteredReferenceData.DataProviders:this.referenceData.DataProviders}getDataProviderByID(oe){return this.getRefDataByID(this.referenceData.DataProviders,oe)}getCheckinStatusTypes(oe=!1,_e=!0){let Le=null;return Le=1==oe?this.filteredReferenceData.CheckinStatusTypes:this.referenceData.CheckinStatusTypes,_e&&(Le=Le.filter(ee=>!1===ee.IsAutomatedCheckin)),Le}getCheckinStatusTypeByID(oe){return this.getRefDataByID(this.referenceData.CheckinStatusTypes,oe)}getCommentTypes(oe=!1,_e=!0){let Le;return Le=1==oe?this.filteredReferenceData.UserCommentTypes:this.referenceData.UserCommentTypes,_e&&(Le=Le.filter(ee=>100!==ee.ID&&110!==ee.ID)),Le}getCommentTypeByID(oe){return this.getRefDataByID(this.referenceData.UserCommentTypes,oe)}getSubmissionStatusTypes(oe=!1){return 1==oe?this.filteredReferenceData.SubmissionStatusTypes:this.referenceData.SubmissionStatusTypes}getSubmissionStatusTypesByID(oe){return this.getRefDataByID(this.referenceData.SubmissionStatusTypes,oe)}getChargingLevelTypes(oe=!1){return 1==oe?this.filteredReferenceData.ChargerTypes:this.referenceData.ChargerTypes}getChargingLevelTypeByID(oe){return this.getRefDataByID(this.referenceData.ChargerTypes,oe)}getOutputCurrentTypes(oe=!1){return oe?this.referenceData.CurrentTypes:this.filteredReferenceData.CurrentTypes}getOutputCurrentTypeByID(oe){return this.getRefDataByID(this.referenceData.CurrentTypes,oe)}loadCachedRefData(){const oe=localStorage.getItem("referenceData");if(null==oe)this.http.get("./assets/data/CoreReferenceData.json").subscribe(_e=>{this.logging.log("Using bundled reference data as cached ref data."),this.setCoreReferenceData(_e),this.setFilteredReferenceData(_e)});else{let _e=JSON.parse(oe);this.setCoreReferenceData(_e)}this.setFilteredReferenceData(this.referenceData)}cacheCurrentRefData(){null!=this.referenceData&&(this.referenceData.CacheDate=new Date,localStorage.setItem("referenceData",JSON.stringify(this.referenceData)))}getRefDataByID(oe,_e){if(""!==_e&&(_e=parseInt(_e,10)),null!=oe)for(let Le=0;Le_e.Title?1:0}getMetadataValueByMetadataFieldID(oe,_e){if(""!==_e&&(_e=parseInt(_e,10)),null!=oe)for(let Le=0;Le{"use strict";S.d(wt,{v:()=>Ye});var h=S(9903),p=S(3955),X=S(866),a=S(9127),j=S(5861),K=S(5592),C=S(3052),oe=S(553),_e=S(7518);class Le{events;logging;mapAPIType;mapReady;providerError;mapCanvasID;map;markerList;polylinePath;mapkitUtils;constructor(de,Pe){this.events=de,this.logging=Pe,this.events=de,this.mapAPIType=p.b.MAPKIT_JS,this.mapReady=!1,this.markerList=new Map,this.mapkitUtils=new ee}initAPI(){mapkit&&mapkit.init({authorizationCallback:function(de){de(oe.N.mapKitToken)}})}disposeMap(){}initMap(de,Pe,Be){this.mapCanvasID=de;let Ne=!0;if(Ne=!(typeof mapkit>"u"),!Ne)return this.logging.log("Call to initMap before API is ready:"+p.b[this.mapAPIType],a.i.ERROR),this.mapReady=!1,!1;this.initAPI(),null==this.map&&(document.getElementById(de),this.map=new mapkit.Map(de),this.map.annotationForCluster=function(Ge){"poi"===Ge.clusteringIdentifier&&(Ge.title="Charging Location",Ge.subtitle=Ge.memberAnnotations.reduce((lt,ne)=>lt+ne.population,0))},this.mapReady=!0,mapkit.addEventListener("configuration-change",Ge=>{this.events.publish("ocm:mapping:ready")}),this.map.addEventListener("scroll-end",Ge=>{this.events.publish("ocm:mapping:dragend")}),this.map.addEventListener("zoom-end",Ge=>{this.events.publish("ocm:mapping:zoom")}))}clearMarkers(){null!=this.markerList&&this.markerList.forEach((de,Pe)=>{try{this.map.removeAnnotation(Pe)}catch{}}),this.markerList=new Map}showPOIListOnMap(de,Pe){let Ge=0,ne=0==this.markerList.size;if(null!=de){let xe=[];for(let je=0;je{const ie=Oe.target.poi;this.events.publish("ocm:poi:selected",{poi:ie,poiId:ie.ID})}),this.markerList.set(Se.ID,pe),xe.push(pe),Ge++}}xe.length>0&&(this.map.addAnnotations(xe),ne&&this.map.showItems(xe,{animate:!0,padding:new mapkit.Padding(60,25,60,25)})),this.logging.log(Ge+" new map markers added out of a total "+this.markerList.size)}}refreshMapLayout(){null!=this.map&&setTimeout(()=>{this.logging.log("MapKit: refreshMapLayout",a.i.VERBOSE)},200)}setMapCenter(de,Pe){this.map&&(this.map.setCenterAnimated(new mapkit.Coordinate(de.coords.latitude,de.coords.longitude),!1),Pe&&this.setMapZoom(Pe))}getMapCenter(){return new K.y(Pe=>{if(null!=this.map){let Be=this.map.center;null!=Be&&(Pe.next(new C.jR(Be.latitude,Be.longitude)),Pe.complete())}})}setMapZoom(de){const Pe=Math.min(de,28),Be=this.mapkitUtils.deltaFromZoomLevel(this.map,this.map.center,Math.round(Pe)),Ne=new mapkit.CoordinateSpan(111*Be.latitudeDelta,111*Be.longitudeDelta),Ae=new mapkit.CoordinateRegion(this.map.center,Ne);this.map.setRegionAnimated(Ae)}getMapZoom(){return new K.y(Pe=>{this.logging.log("MapKit: getMapZoom not supported",a.i.VERBOSE),Pe.next(this.map._impl.zoomLevel),Pe.complete()})}setMapType(de){this.logging.log("MapKit: skipped setting Map Type :"+de)}getMapBounds(){return new K.y(Pe=>{let Be=new Array,Ne=this.map.region.toBoundingRegion();Be.push(new C.wC(Ne.southLatitude,Ne.westLongitude)),Be.push(new C.wC(Ne.northLatitude,Ne.eastLongitude)),Pe.next(Be),Pe.complete()})}moveToMapBounds(de){this.logging.log("MapKit: map bounds not implemented")}renderMap(de,Pe,Be){return document.getElementById(this.mapCanvasID).style.height=Pe+"px",this.mapReady&&this.showPOIListOnMap(de,Be),!0}renderPolyline(de){this.clearPolyline()}clearPolyline(){null!=this.polylinePath&&this.polylinePath.setMap(null)}focusMap(){}unfocusMap(){}placeSearch(de){return(0,j.Z)(function*(){let Pe=new mapkit.Search({getsUserLocation:!0});return new Promise(function(){var Be=(0,j.Z)(function*(Ne,Ae){let Ge=[];Pe.search(de,function(){var lt=(0,j.Z)(function*(ne,Ee){ne&&Ae(ne),Ge=[],Ee.places.map(xe=>{let je=new _e.nS;je.Title=xe.name,je.Address=xe.formattedAddress,je.Type="place",je.Location=new C.wC(xe.coordinate.latitude,xe.coordinate.longitude),Ge.push(je)}),Ne(Ge)});return function(ne,Ee){return lt.apply(this,arguments)}}())});return function(Ne,Ae){return Be.apply(this,arguments)}}())})()}addPOILayer(de){this.logging.log("Add POI Layer not implemented in this provider.")}}class ee{mercatorRadius=85445659.44705395;mercatorOffset=268435456;longitudeToPixelSpaceX(de){return Math.round(this.mercatorOffset+this.mercatorRadius*de*Math.PI/180)}latitudeToPixelSpaceY(de){return Math.round(this.mercatorOffset-this.mercatorRadius*Math.log((1+Math.sin(de*Math.PI/180))/(1-Math.sin(de*Math.PI/180)))/2)}pixelSpaceXToLongitude(de){return(Math.round(de)-this.mercatorOffset)/this.mercatorRadius*180/Math.PI}pixelSpaceYToLatitude(de){return 180*(Math.PI/2-2*Math.atan(Math.exp((Math.round(de)-this.mercatorOffset)/this.mercatorRadius)))/Math.PI}deltaFromZoomLevel(de,Pe,Be){let Ne=this.longitudeToPixelSpaceX(Pe.longitude),Ae=this.latitudeToPixelSpaceY(Pe.latitude),lt=Math.pow(2,20-Be),ne=de.visibleMapRect.size,Ee=ne.width*lt,xe=ne.height*lt,je=Ne-Ee/2,Se=Ae-xe/2,Ve=this.pixelSpaceXToLongitude(je),Ht=this.pixelSpaceXToLongitude(je+Ee)-Ve,cn=this.pixelSpaceYToLatitude(Se);return{latitudeDelta:-1*(this.pixelSpaceYToLatitude(Se+xe)-cn),longitudeDelta:Ht}}}var Te=S(8564),ye=S(5957),De=S(9862);let me=(()=>{class Ce extends h.k{constructor(Pe,Be,Ne){super(Pe,Be,Ne),this.mapAPIType=p.b.MAPTILER,this.mapTileSet="https://maps.tilehosting.com/styles/streets/style.json?key=Gs9z7krALe3CGI60d5cL"}initAPI(){}static \u0275fac=function(Be){return new(Be||Ce)(Te.LFG(ye.z),Te.LFG(a.z),Te.LFG(De.eN))};static \u0275prov=Te.Yz7({token:Ce,factory:Ce.\u0275fac})}return Ce})(),Ye=(()=>{class Ce{logging;http;map;mapCentreMarker;mapsInitialised;mapAPIReady;mapOptions;searchMarker;errorMessage;parentAppContext;mapProvider;debouncedMapPositionUpdate;events;isFocused=!1;constructor(Pe,Be,Ne){this.logging=Be,this.http=Ne,this.events=Pe,this.mapOptions=new p._,this.mapAPIReady=!1,this.mapsInitialised=!1,this.setMapAPI(this.mapOptions.mapAPI);let Ae=this;this.debouncedMapPositionUpdate=X.c.debounce(()=>{this.logging.log("signaling map position change:"),Ae.mapProvider.mapReady&&Ae.getMapCenter().subscribe(Ge=>{null!=Ge?(this.logging.log("Map centre/zoom changed, updating search position:"+Ge),this.updateMapCentrePos(Ge.coords.latitude,Ge.coords.longitude,!1)):this.logging.log("Map centre/zoom changed - map not ready to change centre pos:")})},300,!1)}setParentAppContext(Pe){this.parentAppContext=Pe}setMapAPI(Pe){this.mapOptions.mapAPI=Pe,this.mapOptions.mapAPI==p.b.MAPBOX&&(this.mapProvider=new h.k(this.events,this.logging,this.http)),this.mapOptions.mapAPI==p.b.MAPKIT_JS&&(this.mapProvider=new Le(this.events,this.logging)),this.mapOptions.mapAPI==p.b.MAPTILER&&(this.mapProvider=new me(this.events,this.logging,this.http))}isMapReady(){return null!=this.mapProvider&&this.mapProvider.mapReady}externalAPILoaded(Pe){this.mapAPIReady=!0,this.logging.log("Mapping API Loaded: "+p.b[Pe])}initMap(Pe){if(!this.isMapReady())if(null!=this.mapProvider)this.mapsInitialised&&this.logging.log("initMap: Map provider already initialised"),this.logging.log("Mapping Manager: Init "+p.b[this.mapProvider.mapAPIType]),this.mapProvider.initMap(Pe,this.mapOptions,this);else{if(this.mapsInitialised)return void this.logging.log("initMap: map already initialised");this.logging.log("initMap: "+this.mapOptions.mapAPI)}}mapManipulationPerformed(Pe){this.logging.log("map manipulated:"+Pe),("drag"==Pe||"zoom"==Pe)&&this.debouncedMapPositionUpdate()}updateMapSize(){this.mapProvider&&this.mapProvider.refreshMapLayout()}updateMapCentrePos(Pe,Be,Ne,Ae){Ne&&null!=this.mapProvider&&this.mapProvider.setMapCenter(new C.jR(Pe,Be),Ae),this.mapOptions.mapCentre=new C.jR(Pe,Be)}moveToMapBounds(Pe){this.mapProvider.moveToMapBounds(Pe)}refreshMapView(Pe,Be,Ne){return null!=this.mapProvider?(this.logging.log("Mapping Manager: renderMap "+p.b[this.mapProvider.mapAPIType]),this.isMapReady()?this.mapProvider.renderMap(Be,Pe,this.parentAppContext):this.logging.log("refreshMapView: map provider not initialised..")):this.logging.log("Unsupported Map API: refreshMapView",a.i.ERROR),!0}setMapType(Pe){this.mapOptions.mapType!=Pe&&(this.mapOptions.mapType=Pe,this.isMapReady()&&null!=this.mapProvider?(this.logging.log("Changing map type:"+Pe),this.mapProvider.setMapType(Pe)):this.logging.log("Map type set, maps not initialised yet."))}unfocusMap(){this.logging.log("[mapping] Unfocus Map."),this.isFocused=!1,this.mapProvider.unfocusMap()}focusMap(){this.logging.log("[mapping] Focus Map."),this.isFocused=!0,this.mapProvider.focusMap()}getMapBounds(){return this.mapProvider.getMapBounds()}getMapZoom(){return this.mapProvider.getMapZoom()}setMapZoom(Pe){this.mapProvider.setMapZoom(Pe)}getMapCenter(){return this.mapProvider.getMapCenter()}showPOIOnStaticMap(Pe,Be,Ne=!1,Ae=!1,Ge=200,lt=200){let ne=document.getElementById(Pe);if(null!=ne){let xe=Be.AddressInfo.Latitude,je=Be.AddressInfo.Longitude;Ge>640&&(Ge=640),lt>640&&(lt=640);let Se=Ge,Ve=lt,Xe="https://maps.googleapis.com/maps/api/staticmap?center="+xe+","+je+"&zoom=14&size="+Se+"x"+Ve+"&maptype=roadmap&markers=color:blue%7Clabel:A%7C"+xe+","+je+"&sensor=false",Ht="";Ht+=1==Ne?"
"+X.c.formatMapLink(Be,'
',Ae)+"
":'
',ne.innerHTML=Ht}}renderPolyline(Pe){this.mapProvider.renderPolyline(Pe)}clearPolyline(){this.mapProvider.clearPolyline()}clearMarkers(){this.logging.log("mapping: clearing markers"),this.mapProvider.clearMarkers()}addPOILayer(Pe){this.mapProvider.addPOILayer(Pe)}static \u0275fac=function(Be){return new(Be||Ce)(Te.LFG(ye.z),Te.LFG(a.z),Te.LFG(De.eN))};static \u0275prov=Te.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})()},3955:(zn,wt,S)=>{"use strict";S.d(wt,{_:()=>X,b:()=>p});var h=S(553),p=function(a){return a[a.GOOGLE_WEB=1]="GOOGLE_WEB",a[a.GOOGLE_NATIVE=2]="GOOGLE_NATIVE",a[a.LEAFLET=3]="LEAFLET",a[a.MAPBOX=4]="MAPBOX",a[a.MAPKIT_JS=5]="MAPKIT_JS",a[a.MAPTILER=6]="MAPTILER",a}(p||{});class X{enableClustering;resultBatchID;useMarkerIcons;useMarkerAnimation;enableTrackingMapCentre;enableSearchByWatchingLocation;mapCentre;searchDistanceKM;iconSet;mapAPI;mapMoveQueryRefreshMS;requestSearchUpdate;enableSearchRadiusIndicator;mapType;minZoomLevel;onMapMoveCompleted;constructor(){this.enableClustering=!1,this.resultBatchID=-1,this.useMarkerIcons=!0,this.useMarkerAnimation=!0,this.enableTrackingMapCentre=!1,this.enableSearchByWatchingLocation=!1,this.mapCentre=null,this.mapAPI=h.N.defaultMapProvider,this.mapType="ROADMAP",this.searchDistanceKM=1e5,this.mapMoveQueryRefreshMS=300,this.enableSearchRadiusIndicator=!1,this.minZoomLevel=2}}},9903:(zn,wt,S)=>{"use strict";S.d(wt,{k:()=>me});var h=S(5861),p=S(866),X=S(3955),a=S(5592),j=S(3052),K=S(9127),C=S(2574),_e=S(553),Le=S(7518),ee=S(8564),Te=S(5957),ye=S(9862);let me=(()=>{class Ye{events;logging;http;mapAPIType;mapReady;providerError;mapCanvasID;map;markerList;polylinePath;_isMapAnimating=!1;searchMarker;mapTileSet;constructor(de,Pe,Be){this.events=de,this.logging=Pe,this.http=Be,this.events=de,this.mapAPIType=X.b.MAPBOX,this.mapReady=!1,this.markerList=new Map}initAPI(){C&&Object.getOwnPropertyDescriptor(C,"accessToken").set(_e.N.mapBoxToken)}disposeMap(){this.map&&(this.logging.log("Disposing map",K.i.INFO),this.map.remove())}getCurrentMapTileSet(de){return"SATELLITE"==de?"mapbox://styles/mapbox/satellite-streets-v12?optimize=true":"mapbox://styles/mapbox/streets-v12?optimize=true"}flyAroundPoint(de){if(this._isMapAnimating){this.map.rotateTo(de/100%360,{duration:0});const Pe=this;requestAnimationFrame(function(Be){Pe.flyAroundPoint(Be)})}}initMap(de,Pe,Be){this.mapCanvasID=de;let Ne=!0;if(Ne=!(typeof C>"u"),!Ne)return this.logging.log("Call to initMap before API is ready:"+X.b[this.mapAPIType],K.i.ERROR),this.mapReady=!1,!1;if(null==this.map){let ne=function(xe){return xe*(2-xe)};document.getElementById(de),this.initAPI(),this.map=new C.Map({container:de,style:this.getCurrentMapTileSet(Pe.mapType),zoom:15,attributionControl:!1}),this.map.addControl(new C.AttributionControl({compact:!0,customAttribution:["Open Charge Map Contributors"]})),this.map.addControl(new C.NavigationControl),this.mapReady=!0,this.map.getCanvas().focus();let Ge=100,lt=25;this.map.getCanvas().addEventListener("keydown",xe=>{xe.preventDefault(),38===xe.which?this.map.panBy([0,-Ge],{easing:ne}):40===xe.which?this.map.panBy([0,Ge],{easing:ne}):37===xe.which?this.map.easeTo({bearing:this.map.getBearing()-lt,easing:ne}):39===xe.which?this.map.easeTo({bearing:this.map.getBearing()+lt,easing:ne}):32===xe.which&&(this._isMapAnimating?this._isMapAnimating=!1:(this._isMapAnimating=!0,this.flyAroundPoint(0)))},!0),this.map.on("load",()=>{this.events.publish("ocm:mapping:ready")});let Ee=p.c.debounce(()=>{this.getMapCenter().subscribe(xe=>{this.searchMarker.setLngLat(new C.LngLat(xe.coords.longitude,xe.coords.latitude))})},500,!1);this.map.on("move",()=>{this.searchMarker&&Ee()}),this.map.on("moveend",()=>{this.events.publish("ocm:mapping:dragend"),Pe.onMapMoveCompleted&&Pe.onMapMoveCompleted()}),this.map.on("zoomend",()=>{this.events.publish("ocm:mapping:zoom")})}}clearMarkers(){null!=this.markerList&&this.markerList.forEach((de,Pe)=>{de.remove()}),this.markerList=new Map}showPOIListOnMap(de,Pe,Be=!0){let Ae=this.map,Ge=new C.LngLatBounds,lt=0;if(Ae.getZoom(),null!=de){for(let Se=0;Se{const ie=Oe.currentTarget.poi;this.events.publish("ocm:poi:selected",{poiId:ie.ID,poi:ie})}),Ge.extend(ke.getLngLat()),this.markerList.set(Ve.ID,ke),lt++}}this.logging.log(lt+" new map markers added out of a total "+this.markerList.size)}if(null!=de&&de.length>0)if(null==Pe||Pe.appConfig.enableLiveMapQuerying)null==Ae.getCenter()&&Ae.setCenter(Ge.getCenter());else{this.logging.log("Fitting to marker bounds:"+Ge),Ae.setCenter(Ge.getCenter()),this.logging.log("zoom before fit bounds:"+Ae.getZoom()),Ae.fitBounds(Ge);let je=Ae.getZoom();Ae.setZoom(je<6?6:je)}}refreshMapLayout(){null!=this.map&&setTimeout(()=>{this.logging.log("MapBoxGL: refreshMapLayout",K.i.VERBOSE),this.map.resize()},200)}setMapCenter(de){this.mapReady&&(this.map.setCenter(new C.LngLat(de.coords.longitude,de.coords.latitude)),this.searchMarker||(this.searchMarker=new C.Marker({color:"#99ccff",anchor:"bottom"}).setLngLat(new C.LngLat(de.coords.longitude,de.coords.latitude)).addTo(this.map),this.searchMarker.getElement().addEventListener("click",()=>{let Pe=this.searchMarker.getLngLat();this.events.publish("ocm:mapping:addpoi",new j.wC(Pe.lat,Pe.lng))})))}getMapCenter(){return new a.y(Pe=>{if(null!=this.map){let Be=this.map.getCenter();null!=Be&&(Pe.next(new j.jR(Be.lat,Be.lng)),Pe.complete())}})}setMapZoom(de){this.map.setZoom(de)}getMapZoom(){return new a.y(Pe=>{let Be=this.map.getZoom();Pe.next(Be),Pe.complete()})}setMapType(de){this.map.setStyle(this.getCurrentMapTileSet(de))}getMapBounds(){return new a.y(Pe=>{let Be=new Array,Ne=this.map.getBounds();Be.push(new j.wC(Ne.getSouthWest().lat,Ne.getSouthWest().lng)),Be.push(new j.wC(Ne.getNorthEast().lat,Ne.getNorthEast().lng)),Pe.next(Be),Pe.complete()})}moveToMapBounds(de){this.map.fitBounds(new C.LngLatBounds(new C.LngLat(de.southWest.longitude,de.southWest.latitude),new C.LngLat(de.northEast.longitude,de.northEast.latitude)))}renderMap(de,Pe,Be){return document.getElementById(this.mapCanvasID).style.height=Pe+"px",this.mapReady&&this.showPOIListOnMap(de,Be),!0}renderPolyline(de){this.clearPolyline()}clearPolyline(){null!=this.polylinePath&&this.polylinePath.setMap(null)}focusMap(){}unfocusMap(){}placeSearch(de,Pe,Be){var Ne=this;return(0,h.Z)(function*(){let Ae=`https://api.mapbox.com/geocoding/v5/mapbox.places/${de||Be+","+Pe}.json?access_token=${_e.N.mapBoxToken}`;return new Promise(function(){var Ge=(0,h.Z)(function*(lt,ne){Ne.http.get(Ae).toPromise().then(Ee=>{let xe=[];xe=[],Ee.features&&Ee.features.map(je=>{let Se=new Le.nS;Se.Title=je.place_name,Se.Address=je.place_name,Se.Type="place",Se.Location=new j.wC(je.center[1],je.center[0]),Se.Attribution=Ee.attribution,xe.push(Se)}),lt(xe)})});return function(lt,ne){return Ge.apply(this,arguments)}}())})()}addPOILayer(de){this.logging.log("Add POI Layer not implemented in this provider."),this.showPOIListOnMap(de,null,!1)}static \u0275fac=function(Pe){return new(Pe||Ye)(ee.LFG(Te.z),ee.LFG(K.z),ee.LFG(ye.eN))};static \u0275prov=ee.Yz7({token:Ye,factory:Ye.\u0275fac})}return Ye})()},553:(zn,wt,S)=>{"use strict";S.d(wt,{N:()=>h});const h={name:"prod",version:"8.5.8",production:!0,analyticsId:"",googleMapsKey:"",mapBoxToken:"pk.eyJ1Ijoid2VicHJvZnVzaW9uIiwiYSI6ImNsZTZzbWo4czBxYm4zb3FpNjFhMDM0NmQifQ.3zXrhXbwFyEgOkMdpzwtiQ",mapKitToken:"",enableStaticMaps:!1,defaultMapProvider:4,apiBase:"https://api.openchargemap.io",apiKey:"9bb03e5b-0fb2-4916-9b2b-26c6bd27a56a",enabledFeatures:["MAP","ADD_COMMENT","ADD_PHOTO","FAVOURITES","FILTER_OPTIONS_BY_COUNTRY","ADD_POI","EDIT_POI","LAYERS"]}},3108:(zn,wt,S)=>{"use strict";var h=S(6593),p=S(8564),X=S(5086),a=S(3999),j=S(6814),K=S(6223),C=S(6728);let oe=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[j.ez,K.u5,C.Pc,a.aw,X.e]})}return _n})(),_e=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[j.ez,K.u5,C.Pc,a.aw,X.e]})}return _n})(),Le=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[j.ez,K.u5,C.Pc,a.aw,X.e]})}return _n})();var ee=S(4606),Te=S(9862),ye=S(6800),De=S(703),me=S(5472);class Ye{http;prefix;suffix;constructor(Bi,pn="/assets/i18n/",sn=".json"){this.http=Bi,this.prefix=pn,this.suffix=sn}getTranslation(Bi){return this.http.get(`${this.prefix}${Bi}${this.suffix}`)}}var Ce=S(5861),de=S(1847),Pe=S(3247),Be=S(8767),Ne=S(4292),Ae=S(6470);function Ge(_n,Bi){if(1&_n){const pn=p.EpF();p.TgZ(0,"div"),p._uU(1," You are not signed in. "),p.TgZ(2,"button",5),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.showSignInModal())}),p._uU(3),p.ALo(4,"translate"),p.qZA()()}2&_n&&(p.xp6(3),p.Oqu(p.lcZ(4,1,"ocm.general.signIn")))}function lt(_n,Bi){if(1&_n&&(p.TgZ(0,"div")(1,"ion-card")(2,"ion-item")(3,"ion-avatar",6),p._UZ(4,"img",7),p.qZA(),p.TgZ(5,"h2"),p._uU(6),p.qZA()(),p.TgZ(7,"ion-card-content")(8,"p"),p._uU(9),p.qZA(),p.TgZ(10,"p"),p._uU(11),p.qZA()(),p.TgZ(12,"ion-item")(13,"ion-note",8),p._UZ(14,"ion-icon",9),p._uU(15),p.qZA()()()()),2&_n){const pn=p.oxw();p.xp6(4),p.s9C("src",pn.userProfile.ProfileImageURL,p.LSH),p.xp6(2),p.Oqu(pn.userProfile.Username),p.xp6(3),p.hij(" ",pn.userProfile.Profile,""),p.xp6(2),p.hij(" Date Joined: ",pn.userProfile.DateCreated," "),p.xp6(4),p.hij(" ",pn.userProfile.ReputationPoints," Contributor Points ")}}let ne=(()=>{class _n{appManager;nav;translate;modalController;userProfile;constructor(pn,sn,Cn,$i){this.appManager=pn,this.nav=sn,this.translate=Cn,this.modalController=$i}ionViewDidEnter(){this.userProfile=this.appManager.getUserProfile(),null!=this.userProfile&&this.appManager.isUserAuthenticated(!0)?this.refreshProfileView():this.showSignInModal(),this.appManager.analytics.viewEvent("Profile")}refreshProfileView(){this.userProfile=this.appManager.getUserProfile()}showSignInModal(){this.modalController.create({component:Be.F,componentProps:{Profile:this.userProfile}}).then(pn=>{pn.onDidDismiss().then(()=>{this.refreshProfileView()}),pn.present()})}close(){this.modalController.dismiss()}static \u0275fac=function(sn){return new(sn||_n)(p.Y36(Ae.c),p.Y36(me.SH),p.Y36(a.sK),p.Y36(C.IN))};static \u0275cmp=p.Xpm({type:_n,selectors:[["ng-component"]],decls:14,vars:5,consts:[[1,"profile-page","ion-padding"],[4,"ngIf"],["slot","end"],[3,"click"],["name","close","slot","start"],["ion-button","",3,"click"],["slot","start"],[3,"src"],["item-left",""],["name","star"]],template:function(sn,Cn){1&sn&&(p.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),p._uU(3),p.ALo(4,"translate"),p.qZA()()(),p.TgZ(5,"ion-content",0),p.YNc(6,Ge,5,3,"div",1)(7,lt,16,5,"div",1),p.qZA(),p.TgZ(8,"ion-footer")(9,"ion-toolbar")(10,"ion-buttons",2)(11,"ion-button",3),p.NdJ("click",function(){return Cn.close()}),p._UZ(12,"ion-icon",4),p._uU(13," Close "),p.qZA()()()()),2&sn&&(p.xp6(3),p.hij(" ",p.lcZ(4,3,"ocm.navigation.profile.sectionTitle")," "),p.xp6(3),p.Q6J("ngIf",null==Cn.userProfile),p.xp6(1),p.Q6J("ngIf",null!=Cn.userProfile))},dependencies:[j.O5,C.BJ,C.YG,C.Sm,C.PM,C.FN,C.W2,C.fr,C.Gu,C.gu,C.Ie,C.uN,C.wd,C.sr,a.X$],encapsulation:2})}return _n})();var Ee=S(9127),xe=S(553),je=S(6662),Se=S(3294),Ve=S(866),Xe=S(9236),Ht=S(8062),cn=S(2726);const xn=(0,cn.fo)("PushNotifications",{}),ie=(0,cn.fo)("StatusBar"),it=(0,cn.fo)("SplashScreen",{web:()=>S.e(4485).then(S.bind(S,4485)).then(_n=>new _n.SplashScreenWeb)}),_t=(0,cn.fo)("App",{web:()=>S.e(2912).then(S.bind(S,2912)).then(_n=>new _n.AppWeb)});var Kt=S(5957);function Mn(_n,Bi){if(1&_n){const pn=p.EpF();p.TgZ(0,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.openRoutePlannerModal())}),p._UZ(1,"ion-icon",12),p.TgZ(2,"ion-label"),p._uU(3," Route Planner "),p.qZA()()}}function fn(_n,Bi){if(1&_n){const pn=p.EpF();p.TgZ(0,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.add())}),p._UZ(1,"ion-icon",13),p.TgZ(2,"ion-label"),p._uU(3),p.ALo(4,"translate"),p.qZA()()}2&_n&&(p.xp6(3),p.hij(" ",p.lcZ(4,1,"ocm.general.addLocation")," "))}function qn(_n,Bi){if(1&_n){const pn=p.EpF();p.TgZ(0,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.journeys())}),p._UZ(1,"ion-icon",12),p.TgZ(2,"ion-label"),p._uU(3," Journeys "),p.qZA()()}}function li(_n,Bi){if(1&_n){const pn=p.EpF();p.TgZ(0,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.addLayer())}),p._UZ(1,"ion-icon",14),p.TgZ(2,"ion-label"),p._uU(3," Add Layer "),p.qZA()()}}function en(_n,Bi){if(1&_n){const pn=p.EpF();p.ynx(0),p.TgZ(1,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.signIn())}),p._UZ(2,"ion-icon",15),p.TgZ(3,"ion-label"),p._uU(4),p.ALo(5,"translate"),p.qZA()(),p.BQk()}2&_n&&(p.xp6(4),p.hij(" ",p.lcZ(5,1,"ocm.general.signIn")," "))}function Dt(_n,Bi){if(1&_n){const pn=p.EpF();p.ynx(0),p.TgZ(1,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.profile())}),p._UZ(2,"ion-icon",15),p.TgZ(3,"ion-label"),p._uU(4),p.ALo(5,"translate"),p.qZA()(),p.TgZ(6,"ion-item",9),p.NdJ("click",function(){p.CHM(pn);const Cn=p.oxw();return p.KtG(Cn.signOut())}),p._UZ(7,"ion-icon",16),p.TgZ(8,"ion-label"),p._uU(9),p.ALo(10,"translate"),p._UZ(11,"br"),p.TgZ(12,"small",17),p._uU(13),p.qZA()()(),p.BQk()}if(2&_n){const pn=p.oxw();p.xp6(4),p.hij(" ",p.lcZ(5,3,"ocm.navigation.profile.sectionTitle")," "),p.xp6(5),p.hij(" ",p.lcZ(10,5,"ocm.general.signOut")," "),p.xp6(4),p.hij(" ",pn.getUserName(),"")}}const Ie=()=>["/search"];let Ct=(()=>{class _n{platform;translate;mapping;modalController;appManager;logger;analytics;events;enabledFeatures;constructor(pn,sn,Cn,$i,ct,ge,se,tt){this.platform=pn,this.translate=sn,this.mapping=Cn,this.modalController=$i,this.appManager=ct,this.logger=ge,this.analytics=se,this.events=tt,this.logger.log("Environment: "+xe.N.name),this.initializeApp(),this.enabledFeatures=xe.N.enabledFeatures,1!=ct.searchSettings.EnableAdvancedEditorFeatures&&(this.enabledFeatures=this.enabledFeatures.filter(yt=>"LAYERS"!=yt))}configurePushNotifications(){xn.register(),xn.addListener("registration",pn=>{this.logger.log("Push registration success, token: "+pn.value),this.appManager.savePushRegistration(pn.value)}),xn.addListener("registrationError",pn=>{this.logger.log("Error on registration: "+JSON.stringify(pn))}),xn.addListener("pushNotificationReceived",pn=>{this.logger.log("Push received: "+JSON.stringify(pn),Ee.i.INFO)}),xn.addListener("pushNotificationActionPerformed",pn=>{this.logger.log("Push action performed: "+JSON.stringify(pn))})}isUserAuthenticated(){return this.appManager.isUserAuthenticated()}getUserName(){let pn=this.appManager.getUserProfile();return pn?pn.EmailAddress?pn.EmailAddress:pn.Username:"Not Signed In"}initializeApp(){var pn=this;this.platform.ready().then(()=>{this.platform.is("capacitor")&&(ie.show(),it.hide()),this.translate.addLangs(this.appManager.getLanguages().map(sn=>sn.code)),this.translate.setDefaultLang("en"),null!=this.appManager.searchSettings.Language?this.translate.use(this.appManager.searchSettings.Language):this.translate.currentLang||this.translate.use("en"),this.translate.get("ocm.search.performSearch").toPromise().then(sn=>{}),this.analytics.init(xe.N.analyticsId).then(()=>{this.analytics.setAppVersion(xe.N.version),this.analytics.appEvent("Startup","App Loaded")}).catch(sn=>this.logger.log("Error starting analytics")),this.events.subscribe("ocm:mapping:addpoi",function(){var sn=(0,Ce.Z)(function*(Cn){Ve.c.isFeatureEnabled("ADD_POI")&&pn.add(Cn)});return function(Cn){return sn.apply(this,arguments)}}()),(this.platform.is("ios")||this.platform.is("android"))&&(this.configurePushNotifications(),this.checkForAppOpenUrl())})}checkForAppOpenUrl(){return(0,Ce.Z)(function*(){_t.addListener("appUrlOpen",sn=>{alert("App (re)opened with URL: "+sn.url)});let pn=yield _t.getLaunchUrl();pn&&pn.url&&alert("App opened with URL: "+pn.url)})()}openRoutePlannerModal(){var pn=this;return(0,Ce.Z)(function*(){pn.mapping.unfocusMap();const sn=yield pn.modalController.create({component:Pe.u});sn.onDidDismiss().then(Cn=>{pn.mapping.focusMap()}),yield sn.present()})()}continueAdd(pn){var sn=this;return(0,Ce.Z)(function*(){const Cn=yield sn.modalController.create({component:je.Y,componentProps:{startPos:pn}});Cn.onDidDismiss().then($i=>{sn.mapping.focusMap()}),yield Cn.present()})()}add(pn){var sn=this;return(0,Ce.Z)(function*(){if(sn.mapping.unfocusMap(),!sn.appManager.isUserAuthenticated(!0)){const Cn=yield sn.modalController.create({component:Be.F});return Cn.onDidDismiss().then(function(){var $i=(0,Ce.Z)(function*(ct){sn.mapping.focusMap(),sn.appManager.isUserAuthenticated(!0)&&(yield sn.continueAdd(pn))});return function(ct){return $i.apply(this,arguments)}}()),yield Cn.present()}yield sn.continueAdd(pn)})()}signIn(){var pn=this;return(0,Ce.Z)(function*(){pn.mapping.unfocusMap();const sn=yield pn.modalController.create({component:Be.F});return sn.onDidDismiss().then(Cn=>{pn.mapping.focusMap(),pn.appManager.isUserAuthenticated(!0)}),yield sn.present()})()}signOut(){var pn=this;return(0,Ce.Z)(function*(){pn.appManager.signOutCurrentUser()})()}profile(){var pn=this;return(0,Ce.Z)(function*(){pn.mapping.unfocusMap();const sn=yield pn.modalController.create({component:ne});sn.onDidDismiss().then(Cn=>{pn.mapping.focusMap()}),yield sn.present()})()}journeys(){var pn=this;return(0,Ce.Z)(function*(){pn.mapping.unfocusMap();const sn=yield pn.modalController.create({component:Ne.g});sn.onDidDismiss().then(Cn=>{pn.mapping.focusMap()}),yield sn.present()})()}addLayer(){var pn=this;return(0,Ce.Z)(function*(){const sn=yield pn.modalController.create({component:Ht.A});yield sn.present();const{data:Cn}=yield sn.onWillDismiss();Cn&&pn.mapping.addPOILayer(Cn)})()}about(){var pn=this;return(0,Ce.Z)(function*(){pn.mapping.unfocusMap();const sn=yield pn.modalController.create({component:Xe.t});sn.onDidDismiss().then(Cn=>{pn.mapping.focusMap()}),yield sn.present()})()}static \u0275fac=function(sn){return new(sn||_n)(p.Y36(me.t4),p.Y36(a.sK),p.Y36(de.v),p.Y36(C.IN),p.Y36(Ae.c),p.Y36(Ee.z),p.Y36(Se.c),p.Y36(Kt.z))};static \u0275cmp=p.Xpm({type:_n,selectors:[["app-root"]],decls:29,vars:17,consts:[["contentId","main-content",3,"disabled"],["contentId","main-content","swipeGesture","false"],["slot","start"],["src","assets/images/icons/branding/AppIcon_128x128.png"],["auto-hide","false"],[3,"routerDirection","routerLink"],["slot","start","name","home"],[3,"click",4,"ngIf"],[4,"ngIf"],[3,"click"],["slot","start","name","information-circle-outline"],["id","main-content"],["slot","start","name","map"],["slot","start","name","add-circle-outline"],["slot","start","name","albums"],["slot","start","name","person"],["slot","start","name","log-out"],[2,"color","#c0c0c0"]],template:function(sn,Cn){1&sn&&(p.TgZ(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-thumbnail",2),p._UZ(6,"img",3),p.qZA(),p.TgZ(7,"ion-title"),p._uU(8),p.qZA()()(),p.TgZ(9,"ion-content")(10,"ion-list")(11,"ion-menu-toggle",4)(12,"ion-item",5),p._UZ(13,"ion-icon",6),p.TgZ(14,"ion-label"),p._uU(15),p.ALo(16,"translate"),p.qZA()(),p.YNc(17,Mn,4,0,"ion-item",7)(18,fn,5,3,"ion-item",7)(19,qn,4,0,"ion-item",7)(20,li,4,0,"ion-item",7)(21,en,6,3,"ng-container",8)(22,Dt,14,7,"ng-container",8),p.TgZ(23,"ion-item",9),p.NdJ("click",function(){return Cn.about()}),p._UZ(24,"ion-icon",10),p.TgZ(25,"ion-label"),p._uU(26),p.ALo(27,"translate"),p.qZA()()()()()(),p._UZ(28,"ion-router-outlet",11),p.qZA()()),2&sn&&(p.xp6(1),p.Q6J("disabled",!0),p.xp6(7),p.Oqu(Cn.appManager.title),p.xp6(4),p.Q6J("routerDirection","root")("routerLink",p.DdM(16,Ie)),p.xp6(3),p.hij(" ",p.lcZ(16,12,"ocm.search.sectionTitle")," "),p.xp6(2),p.Q6J("ngIf",Cn.enabledFeatures.includes("ROUTE_PLANNER")),p.xp6(1),p.Q6J("ngIf",Cn.enabledFeatures.includes("ADD_POI")),p.xp6(1),p.Q6J("ngIf",Cn.enabledFeatures.includes("FAVOURITES")),p.xp6(1),p.Q6J("ngIf",Cn.enabledFeatures.includes("LAYERS")),p.xp6(1),p.Q6J("ngIf",!Cn.isUserAuthenticated()),p.xp6(1),p.Q6J("ngIf",Cn.isUserAuthenticated()),p.xp6(4),p.hij(" ",p.lcZ(27,14,"ocm.general.about")," "))},dependencies:[j.O5,C.dr,C.W2,C.Gu,C.gu,C.Ie,C.Q$,C.q_,C.z0,C.zc,C.jI,C.Bs,C.wd,C.sr,C.jP,C.YI,ye.rH,a.X$],encapsulation:2})}return _n})();const on=[{path:"",redirectTo:"search",pathMatch:"full"},{path:"search",loadChildren:()=>Promise.resolve().then(S.bind(S,4606)).then(_n=>_n.SearchPageModule)},{path:"journeys",loadChildren:()=>Promise.resolve().then(S.bind(S,9192)).then(_n=>_n.JourneysModule)},{path:"signin",loadChildren:()=>Promise.resolve().then(S.bind(S,9472)).then(_n=>_n.SignInModule)},{path:"poi-editor/:id",loadChildren:()=>Promise.resolve().then(S.bind(S,5722)).then(_n=>_n.PoiEditorPageModule)},{path:"about",loadChildren:()=>Promise.resolve().then(S.bind(S,7425)).then(_n=>_n.AboutPageModule)},{path:"layer-editor",loadChildren:()=>Promise.resolve().then(S.bind(S,2309)).then(_n=>_n.LayerEditorPageModule)}];let Rn=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[ye.Bz.forRoot(on,{useHash:!0}),ye.Bz]})}return _n})(),Vn=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[j.ez,K.u5,C.Pc,a.aw,X.e]})}return _n})();var Ut=S(9472);let Hn=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[j.ez,K.u5,C.Pc,a.aw,X.e,ye.Bz.forChild([{path:"",component:ne}])]})}return _n})();var qe=S(4119);let Nt=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n});static \u0275inj=p.cJS({imports:[j.ez,K.u5,C.Pc,a.aw,X.e,ye.Bz.forChild([{path:"",component:qe.N}])]})}return _n})();var Xt=S(9192),Tn=S(5722),oi=S(7425),xi=S(2309);function Oi(){return localStorage.getItem("access_token")}function gr(_n){return new Ye(_n,"/assets/i18n/",".json")}let Wi=(()=>{class _n{static \u0275fac=function(sn){return new(sn||_n)};static \u0275mod=p.oAB({type:_n,bootstrap:[Ct]});static \u0275inj=p.cJS({providers:[{provide:ye.wN,useClass:me.r4}],imports:[h.b2,Te.JF,a.aw.forRoot({loader:{provide:a.Zw,useFactory:gr,deps:[Te.eN]}}),C.Pc.forRoot(),Rn,De.Ar.forRoot({config:{tokenGetter:Oi}}),ee.SearchPageModule,Vn,Xt.JourneysModule,Ut.SignInModule,Le,oe,_e,Tn.PoiEditorPageModule,Hn,Nt,oi.AboutPageModule,xi.LayerEditorPageModule]})}return _n})();xe.N.production&&(0,p.G48)(),h.q6().bootstrapModule(Wi).catch(_n=>console.log(_n))},2574:function(zn){zn.exports=function(){"use strict";var wt,S,h;function p(a,j){if(wt)if(S){var K="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+wt+")(sharedChunk); ("+S+")(sharedChunk); self.onerror = null;",C={};wt(C),h=j(C),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(h.workerUrl=window.URL.createObjectURL(new Blob([K],{type:"text/javascript"})))}else S=j;else wt=j}return p(0,function(a){var j=typeof self<"u"?self:{},K="2.15.0";let C;const oe={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==C){const r=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{C=null!=process.env.API_URL_REGEX?new RegExp(process.env.API_URL_REGEX):r}catch{C=r}}return C},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!oe.API_URL)return null;try{const r=new URL(oe.API_URL);return"api.mapbox.cn"===r.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===r.hostname?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},_e={supported:!1,testSupport:function(r){!Te&&ee&&(ye?De(r):Le=r)}};let Le,ee,Te=!1,ye=!1;function De(r){const e=r.createTexture();r.bindTexture(r.TEXTURE_2D,e);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,ee),r.isContextLost())return;_e.supported=!0}catch{}r.deleteTexture(e),Te=!0}j.document&&(ee=j.document.createElement("img"),ee.onload=function(){Le&&De(Le),Le=null,ye=!0},ee.onerror=function(){Te=!0,Le=null},ee.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const me="01";function Ye(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ce=de;function de(r,e,o,l){this.cx=3*r,this.bx=3*(o-r)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(l-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=r,this.p1y=e,this.p2x=o,this.p2y=l}de.prototype={sampleCurveX:function(r){return((this.ax*r+this.bx)*r+this.cx)*r},sampleCurveY:function(r){return((this.ay*r+this.by)*r+this.cy)*r},sampleCurveDerivativeX:function(r){return(3*this.ax*r+2*this.bx)*r+this.cx},solveCurveX:function(r,e){if(void 0===e&&(e=1e-6),r<0)return 0;if(r>1)return 1;for(var o=r,l=0;l<8;l++){var f=this.sampleCurveX(o)-r;if(Math.abs(f)f?y=o:w=o,o=.5*(w-y)+y;return o},solve:function(r,e){return this.sampleCurveY(this.solveCurveX(r,e))}};var Pe=Ye(Ce),Be=Ne;function Ne(r,e){this.x=r,this.y=e}Ne.prototype={clone:function(){return new Ne(this.x,this.y)},add:function(r){return this.clone()._add(r)},sub:function(r){return this.clone()._sub(r)},multByPoint:function(r){return this.clone()._multByPoint(r)},divByPoint:function(r){return this.clone()._divByPoint(r)},mult:function(r){return this.clone()._mult(r)},div:function(r){return this.clone()._div(r)},rotate:function(r){return this.clone()._rotate(r)},rotateAround:function(r,e){return this.clone()._rotateAround(r,e)},matMult:function(r){return this.clone()._matMult(r)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(r){return this.x===r.x&&this.y===r.y},dist:function(r){return Math.sqrt(this.distSqr(r))},distSqr:function(r){var e=r.x-this.x,o=r.y-this.y;return e*e+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith:function(r){return this.angleWithSep(r.x,r.y)},angleWithSep:function(r,e){return Math.atan2(this.x*e-this.y*r,this.x*r+this.y*e)},_matMult:function(r){var e=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=e,this},_add:function(r){return this.x+=r.x,this.y+=r.y,this},_sub:function(r){return this.x-=r.x,this.y-=r.y,this},_mult:function(r){return this.x*=r,this.y*=r,this},_div:function(r){return this.x/=r,this.y/=r,this},_multByPoint:function(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint:function(r){return this.x/=r.x,this.y/=r.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var r=this.y;return this.y=this.x,this.x=-r,this},_rotate:function(r){var e=Math.cos(r),o=Math.sin(r),l=o*this.x+e*this.y;return this.x=e*this.x-o*this.y,this.y=l,this},_rotateAround:function(r,e){var o=Math.cos(r),l=Math.sin(r),f=e.y+l*(this.x-e.x)+o*(this.y-e.y);return this.x=e.x+o*(this.x-e.x)-l*(this.y-e.y),this.y=f,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ne.convert=function(r){return r instanceof Ne?r:Array.isArray(r)?new Ne(r[0],r[1]):r};var Ae=Ye(Be);const Ge=Math.PI/180,lt=180/Math.PI;function ne(r){return r*Ge}function Ee(r){return r*lt}const xe=[[0,0],[1,0],[1,1],[0,1]];function je(r){if(r<=0)return 0;if(r>=1)return 1;const e=r*r,o=e*r;return 4*(r<.5?o:3*(r-e)+o-.75)}function Se(r,e,o,l){const f=new Pe(r,e,o,l);return function(_){return f.solve(_)}}const Ve=Se(.25,.1,.25,1);function Xe(r,e,o){return Math.min(o,Math.max(e,r))}function Ht(r,e,o){return(o=Xe((o-r)/(e-r),0,1))*o*(3-2*o)}function cn(r,e,o){const l=o-e,f=((r-e)%l+l)%l+e;return f===e?o:f}function xn(r,e,o){if(!r.length)return o(null,[]);let l=r.length;const f=new Array(r.length);let _=null;r.forEach((y,w)=>{e(y,(E,D)=>{E&&(_=E),f[w]=D,0==--l&&o(_,f)})})}function $t(r){const e=[];for(const o in r)e.push(r[o]);return e}function ke(r,...e){for(const o of e)for(const l in o)r[l]=o[l];return r}let pe=1;function Oe(){return pe++}function ie(){return function r(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}()}function it(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function _t(r){return!!r&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)}function Kt(r,e){r.forEach(o=>{e[o]&&(e[o]=e[o].bind(e))})}function Mn(r,e){return-1!==r.indexOf(e,r.length-e.length)}function fn(r,e,o){const l={};for(const f in r)l[f]=e.call(o||this,r[f],f,r);return l}function qn(r,e,o){const l={};for(const f in r)e.call(o||this,r[f],f,r)&&(l[f]=r[f]);return l}function li(r){return Array.isArray(r)?r.map(li):"object"==typeof r&&r?fn(r,li):r}const en={};function Dt(r){en[r]||(typeof console<"u"&&console.warn(r),en[r]=!0)}function Ie(r,e,o){return(o.y-r.y)*(e.x-r.x)>(e.y-r.y)*(o.x-r.x)}function Ct(r){let e=0;for(let o,l,f=0,_=r.length,y=_-1;f<_;y=f++)o=r[f],l=r[y],e+=(l.x-o.x)*(o.y+l.y);return e}function on(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Rn(r){const e={};if(r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(o,l,f,_)=>{const y=f||_;return e[l]=!y||y.toLowerCase(),""}),e["max-age"]){const o=parseInt(e["max-age"],10);isNaN(o)?delete e["max-age"]:e["max-age"]=o}return e}let Vn=null;function Ut(r){if(null==Vn){const e=r.navigator?r.navigator.userAgent:null;Vn=!!r.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return Vn}function Hn(r){try{const e=j[r];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch{return!1}}function qe(r,e){return[r[4*e],r[4*e+1],r[4*e+2],r[4*e+3]]}const Nt="mapbox-tiles";let oi,xi,Xt=500,Tn=50;function Oi(){try{return j.caches}catch{}}function gr(){Oi()&&!oi&&(oi=j.caches.open(Nt))}function ki(r){const e=r.indexOf("?");if(e<0)return r;const l=function(f){const _=f.indexOf("?");return _>0?f.slice(_+1).split("&"):[]}(r).filter(f=>{const _=f.split("=");return"language"===_[0]||"worldview"===_[0]});return l.length?`${r.slice(0,e)}?${l.join("&")}`:r.slice(0,e)}let Wi=1/0;const _n={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(_n);class Bi extends Error{constructor(e,o,l){401===o&&Gt(l)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=o,this.url=l}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const pn=on()?()=>self.worker&&self.worker.referrer:()=>("blob:"===j.location.protocol?j.parent:j).location.href,sn=function(r,e){if(!(/^file:/.test(o=r.url)||/^file:/.test(pn())&&!/^\w+:/.test(o))){if(j.fetch&&j.Request&&j.AbortController&&j.Request.prototype.hasOwnProperty("signal"))return function(l,f){const _=new j.AbortController,y=new j.Request(l.url,{method:l.method||"GET",body:l.body,credentials:l.credentials,headers:l.headers,referrer:pn(),referrerPolicy:l.referrerPolicy,signal:_.signal});let w=!1,E=!1;const D=(L=y.url).indexOf("sku=")>0&&Gt(L);var L;"json"===l.type&&y.headers.set("Accept","application/json");const B=(Y,Q,he)=>{if(E)return;if(Y&&"SecurityError"!==Y.message&&Dt(Y.toString()),Q&&he)return V(Q);const Ue=Date.now();j.fetch(y).then(ot=>{if(ot.ok){const bt=D?ot.clone():null;return V(ot,bt,Ue)}return f(new Bi(ot.statusText,ot.status,l.url))}).catch(ot=>{"AbortError"!==ot.name&&f(new Error(`${ot.message} ${l.url}`))})},V=(Y,Q,he)=>{("arrayBuffer"===l.type?Y.arrayBuffer():"json"===l.type?Y.json():Y.text()).then(Ue=>{E||(Q&&he&&function(ot,bt,st){if(gr(),!oi)return;const vt={status:bt.status,statusText:bt.statusText,headers:new j.Headers};bt.headers.forEach((un,nn)=>vt.headers.set(nn,un));const St=Rn(bt.headers.get("Cache-Control")||"");if(St["no-store"])return;St["max-age"]&&vt.headers.set("Expires",new Date(st+1e3*St["max-age"]).toUTCString());const At=vt.headers.get("Expires");At&&(new Date(At).getTime()-st<42e4||function(un,nn){if(void 0===xi)try{new Response(new ReadableStream),xi=!0}catch{xi=!1}xi?nn(un.body):un.blob().then(nn)}(bt,un=>{const nn=new j.Response(un,vt);gr(),oi&&oi.then(In=>In.put(ki(ot.url),nn)).catch(In=>Dt(In.message))}))}(y,Q,he),w=!0,f(null,Ue,Y.headers.get("Cache-Control"),Y.headers.get("Expires")))}).catch(Ue=>{E||f(new Error(Ue.message))})};return D?function(Y,Q){if(gr(),!oi)return Q(null);const he=ki(Y.url);oi.then(Ue=>{Ue.match(he).then(ot=>{const bt=function(st){if(!st)return!1;const vt=new Date(st.headers.get("Expires")||0),St=Rn(st.headers.get("Cache-Control")||"");return vt>Date.now()&&!St["no-cache"]}(ot);Ue.delete(he),bt&&Ue.put(he,ot.clone()),Q(null,ot,bt)}).catch(Q)}).catch(Q)}(y,B):B(null,null),{cancel:()=>{E=!0,w||_.abort()}}}(r,e);if(on()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",r,e,void 0,!0)}var o;return function(l,f){const _=new j.XMLHttpRequest;_.open(l.method||"GET",l.url,!0),"arrayBuffer"===l.type&&(_.responseType="arraybuffer");for(const y in l.headers)_.setRequestHeader(y,l.headers[y]);return"json"===l.type&&(_.responseType="text",_.setRequestHeader("Accept","application/json")),_.withCredentials="include"===l.credentials,_.onerror=()=>{f(new Error(_.statusText))},_.onload=()=>{if((_.status>=200&&_.status<300||0===_.status)&&null!==_.response){let y=_.response;if("json"===l.type)try{y=JSON.parse(_.response)}catch(w){return f(w)}f(null,y,_.getResponseHeader("Cache-Control"),_.getResponseHeader("Expires"))}else f(new Bi(_.statusText,_.status,l.url))},_.send(l.body),{cancel:()=>_.abort()}}(r,e)},Cn=function(r,e){return sn(ke(r,{type:"arrayBuffer"}),e)};function $i(r){const e=j.document.createElement("a");return e.href=r,e.protocol===j.document.location.protocol&&e.host===j.document.location.host}const ct="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let ge,se;ge=[],se=0;const tt=function(r,e){if(_e.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),se>=oe.MAX_PARALLEL_IMAGE_REQUESTS){const _={requestParameters:r,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return ge.push(_),_}se++;let o=!1;const l=()=>{if(!o)for(o=!0,se--;ge.length&&se{l(),_?e(_):y&&(j.createImageBitmap?function(D,L){const B=new j.Blob([new Uint8Array(D)],{type:"image/png"});j.createImageBitmap(B).then(V=>{L(null,V)}).catch(V=>{L(new Error(`Could not load image because of ${V.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(y,(D,L)=>e(D,L,w,E)):function(D,L){const B=new j.Image,V=j.URL;B.onload=()=>{L(null,B),V.revokeObjectURL(B.src),B.onload=null,j.requestAnimationFrame(()=>{B.src=ct})},B.onerror=()=>L(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const Y=new j.Blob([new Uint8Array(D)],{type:"image/png"});B.src=D.byteLength?V.createObjectURL(Y):ct}(y,(D,L)=>e(D,L,w,E)))});return{cancel:()=>{f.cancel(),l()}}},yt="NO_ACCESS_TOKEN";function Ot(r){return 0===r.indexOf("mapbox:")}function Gt(r){return oe.API_URL_REGEX.test(r)}function Vt(r){return oe.API_CDN_URL_REGEX.test(r)}function Et(r){return oe.API_STYLE_REGEX.test(r)&&!Jt(r)}function Jt(r){return oe.API_SPRITE_REGEX.test(r)}const Bn=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function mn(r){const e=r.match(Bn);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function ae(r){const e=r.params.length?`?${r.params.join("&")}`:"";return`${r.protocol}://${r.authority}${r.path}${e}`}const ht="mapbox.eventData";function G(r){if(!r)return null;const e=r.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(j.atob(e[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class ze{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const o=G(oe.ACCESS_TOKEN);let l="";return l=o&&o.u?j.btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(f,_)=>String.fromCharCode(+("0x"+_)))):oe.ACCESS_TOKEN||"",e?`${ht}.${e}:${l}`:`${ht}:${l}`}fetchEventData(){const e=Hn("localStorage"),o=this.getStorageKey(),l=this.getStorageKey("uuid");if(e)try{const f=j.localStorage.getItem(o);f&&(this.eventData=JSON.parse(f));const _=j.localStorage.getItem(l);_&&(this.anonId=_)}catch{Dt("Unable to read from LocalStorage")}}saveEventData(){const e=Hn("localStorage"),o=this.getStorageKey(),l=this.getStorageKey("uuid");if(e)try{j.localStorage.setItem(l,this.anonId),Object.keys(this.eventData).length>=1&&j.localStorage.setItem(o,JSON.stringify(this.eventData))}catch{Dt("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,o,l,f){if(!oe.EVENTS_URL)return;const _=mn(oe.EVENTS_URL);_.params.push(`access_token=${f||oe.ACCESS_TOKEN||""}`);const y={event:this.type,created:new Date(e).toISOString()},w=o?ke(y,o):y,E={url:ae(_),headers:{"Content-Type":"text/plain"},body:JSON.stringify([w])};var L;this.pendingRequest=(L=D=>{this.pendingRequest=null,l(D),this.saveEventData(),this.processRequests(f)},sn(ke(E,{method:"POST"}),L))}queueRequest(e,o){this.queue.push(e),this.processRequests(o)}}const at=new class extends ze{constructor(r){super("appUserTurnstile"),this._customAccessToken=r}postTurnstileEvent(r,e){oe.EVENTS_URL&&oe.ACCESS_TOKEN&&Array.isArray(r)&&r.some(o=>Ot(o)||Gt(o))&&this.queueRequest(Date.now(),e)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=G(oe.ACCESS_TOKEN),o=e?e.u:oe.ACCESS_TOKEN;let l=o!==this.eventData.tokenU;_t(this.anonId)||(this.anonId=ie(),l=!0);const f=this.queue.shift();if(this.eventData.lastSuccess){const _=new Date(this.eventData.lastSuccess),y=new Date(f),w=(f-this.eventData.lastSuccess)/864e5;l=l||w>=1||w<-1||_.getDate()!==y.getDate()}else l=!0;l?this.postEvent(f,{sdkIdentifier:"mapbox-gl-js",sdkVersion:K,skuId:me,"enabled.telemetry":!1,userId:this.anonId},_=>{_||(this.eventData.lastSuccess=f,this.eventData.tokenU=o)},r):this.processRequests()}},rn=at.postTurnstileEvent.bind(at),Dn=new class extends ze{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(r,e,o,l){this.skuToken=e,this.errorCb=l,oe.EVENTS_URL&&(o||oe.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(yt)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:o}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),_t(this.anonId)||(this.anonId=ie()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:K,skuId:me,skuToken:this.skuToken,userId:this.anonId},l=>{l?this.errorCb(l):e&&(this.success[e]=!0)},r))}},gi=Dn.postMapLoadEvent.bind(Dn),Mi=new class extends ze{constructor(){super("gljs.performance")}postPerformanceEvent(r,e){oe.EVENTS_URL&&(r||oe.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},r)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:e,performanceData:o}=this.queue.shift(),l=function(f){const _=j.performance.getEntriesByType("resource"),y=j.performance.getEntriesByType("mark"),w=function(V){const Y={};if(V)for(const Q in V)if("other"!==Q)for(const he of V[Q]){const Ue=`${Q}ResolveRangeMin`,ot=`${Q}ResolveRangeMax`,bt=`${Q}RequestCount`,st=`${Q}RequestCachedCount`;Y[Ue]=Math.min(Y[Ue]||1/0,he.startTime),Y[ot]=Math.max(Y[ot]||-1/0,he.responseEnd);const vt=St=>{void 0===Y[St]&&(Y[St]=0),++Y[St]};void 0!==he.transferSize&&0===he.transferSize&&vt(st),vt(bt)}return Y}(function(V,Y){const Q={};if(V)for(const he of V){const Ue=Y(he);void 0===Q[Ue]&&(Q[Ue]=[]),Q[Ue].push(he)}return Q}(_,Io)),E=j.devicePixelRatio,D=j.navigator.connection||j.navigator.mozConnection||j.navigator.webkitConnection,L={counters:[],metadata:[],attributes:[]},B=(V,Y,Q)=>{null!=Q&&V.push({name:Y,value:Q.toString()})};for(const V in w)B(L.counters,V,w[V]);if(f.interactionRange[0]!==1/0&&f.interactionRange[1]!==-1/0&&(B(L.counters,"interactionRangeMin",f.interactionRange[0]),B(L.counters,"interactionRangeMax",f.interactionRange[1])),y)for(const V of Object.keys(ho)){const Y=ho[V],Q=y.find(he=>he.name===Y);Q&&B(L.counters,Y,Q.startTime)}return B(L.counters,"visibilityHidden",f.visibilityHidden),B(L.attributes,"style",function(V){if(V)for(const Y of V){const Q=Y.name.split("?")[0];if(Et(Q)){const he=Q.split("/").slice(-2);if(2===he.length)return`mapbox://styles/${he[0]}/${he[1]}`}}}(_)),B(L.attributes,"terrainEnabled",f.terrainEnabled?"true":"false"),B(L.attributes,"fogEnabled",f.fogEnabled?"true":"false"),B(L.attributes,"projection",f.projection),B(L.attributes,"zoom",f.zoom),B(L.metadata,"devicePixelRatio",E),B(L.metadata,"connectionEffectiveType",D?D.effectiveType:void 0),B(L.metadata,"navigatorUserAgent",j.navigator.userAgent),B(L.metadata,"screenWidth",j.screen.width),B(L.metadata,"screenHeight",j.screen.height),B(L.metadata,"windowWidth",j.innerWidth),B(L.metadata,"windowHeight",j.innerHeight),B(L.metadata,"mapWidth",f.width/E),B(L.metadata,"mapHeight",f.height/E),B(L.metadata,"webglRenderer",f.renderer),B(L.metadata,"webglVendor",f.vendor),B(L.metadata,"sdkVersion",K),B(L.metadata,"sdkIdentifier","mapbox-gl-js"),L}(o);for(const f of l.metadata);for(const f of l.counters);for(const f of l.attributes);this.postEvent(e,l,()=>{},r)}},Li=Mi.postPerformanceEvent.bind(Mi),yr=new class extends ze{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(r,e,o,l){if(!oe.API_URL||!oe.SESSION_PATH)return;const f=mn(oe.API_URL+oe.SESSION_PATH);f.params.push(`sku=${e||""}`),f.params.push(`access_token=${l||oe.ACCESS_TOKEN||""}`);const _={url:ae(f),headers:{"Content-Type":"text/plain"}};var w;this.pendingRequest=(w=y=>{this.pendingRequest=null,o(y),this.saveEventData(),this.processRequests(l)},sn(ke(_,{method:"GET"}),w))}getSessionAPI(r,e,o,l){this.skuToken=e,this.errorCb=l,oe.SESSION_PATH&&oe.API_URL&&(o||oe.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(yt)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:o}=this.queue.shift();e&&this.success[e]||this.getSession(o,this.skuToken,l=>{l?this.errorCb(l):e&&(this.success[e]=!0)},r)}},Ui=yr.getSessionAPI.bind(yr),Fr=new Set,ho={create:"create",load:"load",fullLoad:"fullLoad"},Do={mark(r){j.performance.mark(r)},measure(r,e,o){j.performance.measure(r,e,o)}};function Io(r){const e=r.name.split("?")[0];return Vt(e)&&e.includes("mapbox-gl.js")?"javascript":Vt(e)&&e.includes("mapbox-gl.css")?"css":oe.API_FONTS_REGEX.test(e)?"fontRange":Jt(e)?"sprite":Et(e)?"style":oe.API_TILEJSON_REGEX.test(e)?"tilejson":"other"}const Zi=j.performance;function ao(r){const e=r?r.url.toString():void 0;return Zi.getEntriesByName(e)}let Ro,xo,qi,Ci;const Kr={now:()=>void 0!==qi?qi:j.performance.now(),setNow(r){qi=r},restoreNow(){qi=void 0},frame(r){const e=j.requestAnimationFrame(r);return{cancel:()=>j.cancelAnimationFrame(e)}},getImageData(r,e=0){const{width:o,height:l}=r;Ci||(Ci=j.document.createElement("canvas"));const f=Ci.getContext("2d",{willReadFrequently:!0});if(!f)throw new Error("failed to create canvas 2d context");return(o>Ci.width||l>Ci.height)&&(Ci.width=o,Ci.height=l),f.clearRect(-e,-e,o+2*e,l+2*e),f.drawImage(r,0,0,o,l),f.getImageData(-e,-e,o+2*e,l+2*e)},resolveURL:r=>(Ro||(Ro=j.document.createElement("a")),Ro.href=r,Ro.href),get devicePixelRatio(){return j.devicePixelRatio},get prefersReducedMotion(){return!!j.matchMedia&&(null==xo&&(xo=j.matchMedia("(prefers-reduced-motion: reduce)")),xo.matches)}};function Yt(r,e,o){o[r]&&-1!==o[r].indexOf(e)||(o[r]=o[r]||[],o[r].push(e))}function Tt(r,e,o){if(o&&o[r]){const l=o[r].indexOf(e);-1!==l&&o[r].splice(l,1)}}class Mt{constructor(e,o={}){ke(this,o),this.type=e}}class Qt extends Mt{constructor(e,o={}){super("error",ke({error:e},o))}}class wn{on(e,o){return this._listeners=this._listeners||{},Yt(e,o,this._listeners),this}off(e,o){return Tt(e,o,this._listeners),Tt(e,o,this._oneTimeListeners),this}once(e,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},Yt(e,o,this._oneTimeListeners),this):new Promise(l=>this.once(e,l))}fire(e,o){"string"==typeof e&&(e=new Mt(e,o||{}));const l=e.type;if(this.listens(l)){e.target=this;const f=this._listeners&&this._listeners[l]?this._listeners[l].slice():[];for(const w of f)w.call(this,e);const _=this._oneTimeListeners&&this._oneTimeListeners[l]?this._oneTimeListeners[l].slice():[];for(const w of _)Tt(l,w,this._oneTimeListeners),w.call(this,e);const y=this._eventedParent;y&&(ke(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),y.fire(e))}else e instanceof Qt&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,o){return this._eventedParent=e,this._eventedParentData=o,this}}var It=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function Xn(r,...e){for(const o of e)for(const l in o)r[l]=o[l];return r}function ui(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function Wn(r){if(Array.isArray(r))return r.map(Wn);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const o in r)e[o]=Wn(r[o]);return e}return ui(r)}class lr extends Error{constructor(e,o){super(o),this.message=o,this.key=e}}var Je=lr;class rt{constructor(e,o=[]){this.parent=e,this.bindings={};for(const[l,f]of o)this.bindings[l]=f}concat(e){return new rt(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}var we=rt;const ut={kind:"null"},dt={kind:"number"},Lt={kind:"string"},gn={kind:"boolean"},ti={kind:"color"},di={kind:"object"},Kn={kind:"value"},Xi={kind:"collator"},J={kind:"formatted"},be={kind:"resolvedImage"};function ft(r,e){return{kind:"array",itemType:r,N:e}}function mt(r){if("array"===r.kind){const e=mt(r.itemType);return"number"==typeof r.N?`array<${e}, ${r.N}>`:"value"===r.itemType.kind?"array":`array<${e}>`}return r.kind}const yn=[ut,dt,Lt,gn,ti,J,di,ft(Kn),be];function jt(r,e){if("error"===e.kind)return null;if("array"===r.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!jt(r.itemType,e.itemType))&&("number"!=typeof r.N||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if("value"===r.kind)for(const o of yn)if(!jt(o,e))return null}return`Expected ${mt(r)} but found ${mt(e)} instead.`}function Fn(r,e){return e.some(o=>o.kind===r.kind)}function $n(r,e){return e.some(o=>"null"===o?null===r:"array"===o?Array.isArray(r):"object"===o?r&&!Array.isArray(r)&&"object"==typeof r:o===typeof r)}var Un,Ln={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function ci(r){return(r=Math.round(r))<0?0:r>255?255:r}function Ri(r){return ci("%"===r[r.length-1]?parseFloat(r)/100*255:parseInt(r))}function Gi(r){return(e="%"===r[r.length-1]?parseFloat(r)/100:parseFloat(r))<0?0:e>1?1:e;var e}function or(r,e,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?r+(e-r)*o*6:2*o<1?e:3*o<2?r+(e-r)*(2/3-o)*6:r}try{Un={}.parseCSSColor=function(r){var e,o=r.replace(/ /g,"").toLowerCase();if(o in Ln)return Ln[o].slice();if("#"===o[0])return 4===o.length?(e=parseInt(o.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===o.length&&(e=parseInt(o.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=o.indexOf("("),f=o.indexOf(")");if(-1!==l&&f+1===o.length){var _=o.substr(0,l),y=o.substr(l+1,f-(l+1)).split(","),w=1;switch(_){case"rgba":if(4!==y.length)return null;w=Gi(y.pop());case"rgb":return 3!==y.length?null:[Ri(y[0]),Ri(y[1]),Ri(y[2]),w];case"hsla":if(4!==y.length)return null;w=Gi(y.pop());case"hsl":if(3!==y.length)return null;var E=(parseFloat(y[0])%360+360)%360/360,D=Gi(y[1]),L=Gi(y[2]),B=L<=.5?L*(D+1):L+D-L*D,V=2*L-B;return[ci(255*or(V,B,E+1/3)),ci(255*or(V,B,E)),ci(255*or(V,B,E-1/3)),w];default:return null}}return null}}catch{}class ur{constructor(e,o,l,f=1){this.r=e,this.g=o,this.b=l,this.a=f}static parse(e){if(!e)return;if(e instanceof ur)return e;if("string"!=typeof e)return;const o=Un(e);return o?new ur(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3]):void 0}toString(){const[e,o,l,f]=this.toArray();return`rgba(${Math.round(e)},${Math.round(o)},${Math.round(l)},${f})`}toArray(){const{r:e,g:o,b:l,a:f}=this;return 0===f?[0,0,0,0]:[255*e/f,255*o/f,255*l/f,f]}toArray01(){const{r:e,g:o,b:l,a:f}=this;return 0===f?[0,0,0,0]:[e/f,o/f,l/f,f]}toArray01PremultipliedAlpha(){const{r:e,g:o,b:l,a:f}=this;return[e,o,l,f]}}ur.black=new ur(0,0,0,1),ur.white=new ur(1,1,1,1),ur.transparent=new ur(0,0,0,0),ur.red=new ur(1,0,0,1),ur.blue=new ur(0,0,1,1);var R=ur;class $e{constructor(e,o,l){this.sensitivity=e?o?"variant":"case":o?"accent":"base",this.locale=l,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,o){return this.collator.compare(e,o)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class H{constructor(e,o,l,f,_){this.text=e.normalize?e.normalize():e,this.image=o,this.scale=l,this.fontStack=f,this.textColor=_}}class Ze{constructor(e){this.sections=e}static fromString(e){return new Ze([new H(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof Ze?e:Ze.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const o of this.sections){if(o.image){e.push(["image",o.image.name]);continue}e.push(o.text);const l={};o.fontStack&&(l["text-font"]=["literal",o.fontStack.split(",")]),o.scale&&(l["font-scale"]=o.scale),o.textColor&&(l["text-color"]=["rgba"].concat(o.textColor.toArray())),e.push(l)}return e}}class Bt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Bt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Vi(r,e,o,l){return"number"==typeof r&&r>=0&&r<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof o&&o>=0&&o<=255?void 0===l||"number"==typeof l&&l>=0&&l<=1?null:`Invalid rgba value [${[r,e,o,l].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof l?[r,e,o,l]:[r,e,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Tr(r){if(null===r||"string"==typeof r||"boolean"==typeof r||"number"==typeof r||r instanceof R||r instanceof $e||r instanceof Ze||r instanceof Bt)return!0;if(Array.isArray(r)){for(const e of r)if(!Tr(e))return!1;return!0}if("object"==typeof r){for(const e in r)if(!Tr(r[e]))return!1;return!0}return!1}function ji(r){if(null===r)return ut;if("string"==typeof r)return Lt;if("boolean"==typeof r)return gn;if("number"==typeof r)return dt;if(r instanceof R)return ti;if(r instanceof $e)return Xi;if(r instanceof Ze)return J;if(r instanceof Bt)return be;if(Array.isArray(r)){const e=r.length;let o;for(const l of r){const f=ji(l);if(o){if(o===f)continue;o=Kn;break}o=f}return ft(o||Kn,e)}return di}function Ko(r){const e=typeof r;return null===r?"":"string"===e||"number"===e||"boolean"===e?String(r):r instanceof R||r instanceof Ze||r instanceof Bt?r.toString():JSON.stringify(r)}class Mo{constructor(e,o){this.type=e,this.value=o}static parse(e,o){if(2!==e.length)return o.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Tr(e[1]))return o.error("invalid value");const l=e[1];let f=ji(l);const _=o.expectedType;return"array"!==f.kind||0!==f.N||!_||"array"!==_.kind||"number"==typeof _.N&&0!==_.N||(f=_),new Mo(f,l)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof R?["rgba"].concat(this.value.toArray()):this.value instanceof Ze?this.value.serialize():this.value}}var Ns=Mo,cr=class{constructor(r){this.name="ExpressionEvaluationError",this.message=r}toJSON(){return this.message}};const Bs={string:Lt,number:dt,boolean:gn,object:di};class _r{constructor(e,o){this.type=e,this.args=o}static parse(e,o){if(e.length<2)return o.error("Expected at least one argument.");let l,f=1;const _=e[0];if("array"===_){let w,E;if(e.length>2){const D=e[1];if("string"!=typeof D||!(D in Bs)||"object"===D)return o.error('The item type argument of "array" must be one of string, number, boolean',1);w=Bs[D],f++}else w=Kn;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return o.error('The length argument to "array" must be a positive integer literal',2);E=e[2],f++}l=ft(w,E)}else l=Bs[_];const y=[];for(;fe.outputDefined())}serialize(){const e=this.type,o=[e.kind];if("array"===e.kind){const l=e.itemType;if("string"===l.kind||"number"===l.kind||"boolean"===l.kind){o.push(l.kind);const f=e.N;("number"==typeof f||this.args.length>1)&&o.push(f)}}return o.concat(this.args.map(l=>l.serialize()))}}var Uo=_r;class jo{constructor(e){this.type=J,this.sections=e}static parse(e,o){if(e.length<2)return o.error("Expected at least one argument.");const l=e[1];if(!Array.isArray(l)&&"object"==typeof l)return o.error("First argument must be an image or text section.");const f=[];let _=!1;for(let y=1;y<=e.length-1;++y){const w=e[y];if(_&&"object"==typeof w&&!Array.isArray(w)){_=!1;let E=null;if(w["font-scale"]&&(E=o.parse(w["font-scale"],1,dt),!E))return null;let D=null;if(w["text-font"]&&(D=o.parse(w["text-font"],1,ft(Lt)),!D))return null;let L=null;if(w["text-color"]&&(L=o.parse(w["text-color"],1,ti),!L))return null;const B=f[f.length-1];B.scale=E,B.font=D,B.textColor=L}else{const E=o.parse(e[y],1,Kn);if(!E)return null;const D=E.type.kind;if("string"!==D&&"value"!==D&&"null"!==D&&"resolvedImage"!==D)return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");_=!0,f.push({content:E,scale:null,font:null,textColor:null})}}return new jo(f)}evaluate(e){return new Ze(this.sections.map(o=>{const l=o.content.evaluate(e);return ji(l)===be?new H("",l,null,null,null):new H(Ko(l),null,o.scale?o.scale.evaluate(e):null,o.font?o.font.evaluate(e).join(","):null,o.textColor?o.textColor.evaluate(e):null)}))}eachChild(e){for(const o of this.sections)e(o.content),o.scale&&e(o.scale),o.font&&e(o.font),o.textColor&&e(o.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const o of this.sections){e.push(o.content.serialize());const l={};o.scale&&(l["font-scale"]=o.scale.serialize()),o.font&&(l["text-font"]=o.font.serialize()),o.textColor&&(l["text-color"]=o.textColor.serialize()),e.push(l)}return e}}class Go{constructor(e){this.type=be,this.input=e}static parse(e,o){if(2!==e.length)return o.error("Expected two arguments.");const l=o.parse(e[1],1,Lt);return l?new Go(l):o.error("No image name provided.")}evaluate(e){const o=this.input.evaluate(e),l=Bt.fromString(o);return l&&e.availableImages&&(l.available=e.availableImages.indexOf(o)>-1),l}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const Al={"to-boolean":gn,"to-color":ti,"to-number":dt,"to-string":Lt};class $a{constructor(e,o){this.type=e,this.args=o}static parse(e,o){if(e.length<2)return o.error("Expected at least one argument.");const l=e[0];if(("to-boolean"===l||"to-string"===l)&&2!==e.length)return o.error("Expected one argument.");const f=Al[l],_=[];for(let y=1;y4?`Invalid rbga value ${JSON.stringify(o)}: expected an array containing either three or four numeric values.`:Vi(o[0],o[1],o[2],o[3]),!l))return new R(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new cr(l||`Could not parse color from value '${"string"==typeof o?o:String(JSON.stringify(o))}'`)}if("number"===this.type.kind){let o=null;for(const l of this.args){if(o=l.evaluate(e),null===o)return 0;const f=Number(o);if(!isNaN(f))return f}throw new cr(`Could not convert ${JSON.stringify(o)} to number.`)}return"formatted"===this.type.kind?Ze.fromString(Ko(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Bt.fromString(Ko(this.args[0].evaluate(e))):Ko(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new jo([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new Go(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(o=>{e.push(o.serialize())}),e}}var zs=$a;const lo=["Unknown","Point","LineString","Polygon"];var Aa=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?lo[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const r=this.featureDistanceData.center,e=this.featureDistanceData.scale,{x:o,y:l}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*e-r[0])+this.featureDistanceData.bearing[1]*(l*e-r[1])}return 0}parseColor(r){let e=this._parseColorCache[r];return e||(e=this._parseColorCache[r]=R.parse(r)),e}};class fo{constructor(e,o,l,f){this.name=e,this.type=o,this._evaluate=l,this.args=f}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,o){const l=e[0],f=fo.definitions[l];if(!f)return o.error(`Unknown expression "${l}". If you wanted a literal array, use ["literal", [...]].`,0);const _=Array.isArray(f)?f[0]:f.type,y=Array.isArray(f)?[[f[1],f[2]]]:f.overloads,w=y.filter(([D])=>!Array.isArray(D)||D.length===e.length-1);let E=null;for(const[D,L]of w){E=new Rl(o.registry,o.path,null,o.scope);const B=[];let V=!1;for(let Y=1;Y{return V=B,Array.isArray(V)?`(${V.map(mt).join(", ")})`:`(${mt(V.type)}...)`;var V}).join(" | "),L=[];for(let B=1;B=e[2]||r[1]<=e[1]||r[3]>=e[3])}function ws(r,e){const o=(180+r[0])/360,l=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,f=Math.pow(2,e.z);return[Math.round(o*f*Lo),Math.round(l*f*Lo)]}function na(r,e,o){const l=r[0]-e[0],f=r[1]-e[1],_=r[0]-o[0],y=r[1]-o[1];return l*y-_*f==0&&l*_<=0&&f*y<=0}function Us(r,e){let o=!1;for(let y=0,w=e.length;y(l=r)[1]!=(_=E[D+1])[1]>l[1]&&l[0]<(_[0]-f[0])*(l[1]-f[1])/(_[1]-f[1])+f[0]&&(o=!o)}}var l,f,_;return o}function Za(r,e){for(let o=0;o0&&w<0||y<0&&w>0}function cs(r,e,o){for(const D of o)for(let L=0;Lo[2]){const f=.5*l;let _=r[0]-o[0]>f?-l:o[0]-r[0]>f?l:0;0===_&&(_=r[0]-o[2]>f?-l:o[2]-r[0]>f?l:0),r[0]+=_}ns(e,r)}function Pl(r,e,o,l){const f=Math.pow(2,l.z)*Lo,_=[l.x*Lo,l.y*Lo],y=[];if(!r)return y;for(const w of r)for(const E of w){const D=[E.x+_[0],E.y+_[1]];Ga(D,e,o,f),y.push(D)}return y}function fa(r,e,o,l){const f=Math.pow(2,l.z)*Lo,_=[l.x*Lo,l.y*Lo],y=[];if(!r)return y;for(const E of r){const D=[];for(const L of E){const B=[L.x+_[0],L.y+_[1]];ns(e,B),D.push(B)}y.push(D)}if(e[2]-e[0]<=f/2){(w=e)[0]=w[1]=1/0,w[2]=w[3]=-1/0;for(const E of y)for(const D of E)Ga(D,e,o,f)}var w;return y}class pa{constructor(e,o){this.type=gn,this.geojson=e,this.geometries=o}static parse(e,o){if(2!==e.length)return o.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Tr(e[1])){const l=e[1];if("FeatureCollection"===l.type)for(let f=0;f{e&&!js(o)&&(e=!1)}),e}function bo(r){if(r instanceof po&&"feature-state"===r.name)return!1;let e=!0;return r.eachChild(o=>{e&&!bo(o)&&(e=!1)}),e}function Sa(r,e){if(r instanceof po&&e.indexOf(r.name)>=0)return!1;let o=!0;return r.eachChild(l=>{o&&!Sa(l,e)&&(o=!1)}),o}class ia{constructor(e,o){this.type=o.type,this.name=e,this.boundExpression=o}static parse(e,o){if(2!==e.length||"string"!=typeof e[1])return o.error("'var' expression requires exactly one string literal argument.");const l=e[1];return o.scope.has(l)?new ia(l,o.scope.get(l)):o.error(`Unknown variable "${l}". Make sure "${l}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ol=ia;class Wa{constructor(e,o=[],l,f=new we,_=[]){this.registry=e,this.path=o,this.key=o.map(y=>`[${y}]`).join(""),this.scope=f,this.errors=_,this.expectedType=l}parse(e,o,l,f,_={}){return o?this.concat(o,l,f)._parse(e,_):this._parse(e,_)}_parse(e,o){function l(f,_,y){return"assert"===y?new Uo(_,[f]):"coerce"===y?new zs(_,[f]):f}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const f=e[0];if("string"!=typeof f)return this.error(`Expression name must be a string, but found ${typeof f} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const _=this.registry[f];if(_){let y=_.parse(e,this);if(!y)return null;if(this.expectedType){const w=this.expectedType,E=y.type;if("string"!==w.kind&&"number"!==w.kind&&"boolean"!==w.kind&&"object"!==w.kind&&"array"!==w.kind||"value"!==E.kind)if("color"!==w.kind&&"formatted"!==w.kind&&"resolvedImage"!==w.kind||"value"!==E.kind&&"string"!==E.kind){if(this.checkSubtype(w,E))return null}else y=l(y,w,o.typeAnnotation||"coerce");else y=l(y,w,o.typeAnnotation||"assert")}if(!(y instanceof Ns)&&"resolvedImage"!==y.type.kind&&qa(y)){const w=new Aa;try{y=new Ns(y.type,y.evaluate(w))}catch(E){return this.error(E.message),null}}return y}return this.error(`Unknown expression "${f}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,o,l){const f="number"==typeof e?this.path.concat(e):this.path,_=l?this.scope.concat(l):this.scope;return new Wa(this.registry,f,o||null,_,this.errors)}error(e,...o){const l=`${this.key}${o.map(f=>`[${f}]`).join("")}`;this.errors.push(new Je(l,e))}checkSubtype(e,o){const l=jt(e,o);return l&&this.error(l),l}}var Rl=Wa;function qa(r){if(r instanceof Ol)return qa(r.boundExpression);if(r instanceof po&&"error"===r.name||r instanceof mr||r instanceof Ha)return!1;const e=r instanceof zs||r instanceof Uo;let o=!0;return r.eachChild(l=>{o=e?o&&qa(l):o&&l instanceof Ns}),!!o&&js(r)&&Sa(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function ma(r,e){const o=r.length-1;let l,f,_=0,y=o,w=0;for(;_<=y;)if(w=Math.floor((_+y)/2),l=r[w],f=r[w+1],l<=e){if(w===o||ee))throw new cr("Input is not a number.");y=w-1}return 0}class Ya{constructor(e,o,l){this.type=e,this.input=o,this.labels=[],this.outputs=[];for(const[f,_]of l)this.labels.push(f),this.outputs.push(_)}static parse(e,o){if(e.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return o.error("Expected an even number of arguments.");const l=o.parse(e[1],1,dt);if(!l)return null;const f=[];let _=null;o.expectedType&&"value"!==o.expectedType.kind&&(_=o.expectedType);for(let y=1;y=w)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',D);const B=o.parse(E,L,_);if(!B)return null;_=_||B.type,f.push([w,B])}return new Ya(_,l,f)}evaluate(e){const o=this.labels,l=this.outputs;if(1===o.length)return l[0].evaluate(e);const f=this.input.evaluate(e);if(f<=o[0])return l[0].evaluate(e);const _=o.length;return f>=o[_-1]?l[_-1].evaluate(e):l[ma(o,f)].evaluate(e)}eachChild(e){e(this.input);for(const o of this.outputs)e(o)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let o=0;o0&&e.push(this.labels[o]),e.push(this.outputs[o].serialize());return e}}var pl=Ya;function _i(r,e,o){return r*(1-o)+e*o}var Br=Object.freeze({__proto__:null,array:function(r,e,o){return r.map((l,f)=>_i(l,e[f],o))},color:function(r,e,o){return new R(_i(r.r,e.r,o),_i(r.g,e.g,o),_i(r.b,e.b,o),_i(r.a,e.a,o))},number:_i});const ue=4/29,W=6/29,He=3*W*W,zt=W*W*W,vi=Math.PI/180,dr=180/Math.PI;function wr(r){return r>zt?Math.pow(r,1/3):r/He+ue}function ai(r){return r>W?r*r*r:He*(r-ue)}function Ni(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function Jr(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function us(r){const e=Jr(r.r),o=Jr(r.g),l=Jr(r.b),f=wr((.4124564*e+.3575761*o+.1804375*l)/.95047),_=wr((.2126729*e+.7151522*o+.072175*l)/1);return{l:116*_-16,a:500*(f-_),b:200*(_-wr((.0193339*e+.119192*o+.9503041*l)/1.08883)),alpha:r.a}}function wo(r){let e=(r.l+16)/116,o=isNaN(r.a)?e:e+r.a/500,l=isNaN(r.b)?e:e-r.b/200;return e=1*ai(e),o=.95047*ai(o),l=1.08883*ai(l),new R(Ni(3.2404542*o-1.5371385*e-.4985314*l),Ni(-.969266*o+1.8760108*e+.041556*l),Ni(.0556434*o-.2040259*e+1.0572252*l),r.alpha)}function Ho(r,e,o){const l=e-r;return r+o*(l>180||l<-180?l-360*Math.round(l/360):l)}const ra={forward:us,reverse:wo,interpolate:function(r,e,o){return{l:_i(r.l,e.l,o),a:_i(r.a,e.a,o),b:_i(r.b,e.b,o),alpha:_i(r.alpha,e.alpha,o)}}},Ar={forward:function(r){const{l:e,a:o,b:l}=us(r),f=Math.atan2(l,o)*dr;return{h:f<0?f+360:f,c:Math.sqrt(o*o+l*l),l:e,alpha:r.a}},reverse:function(r){const e=r.h*vi,o=r.c;return wo({l:r.l,a:Math.cos(e)*o,b:Math.sin(e)*o,alpha:r.alpha})},interpolate:function(r,e,o){return{h:Ho(r.h,e.h,o),c:_i(r.c,e.c,o),l:_i(r.l,e.l,o),alpha:_i(r.alpha,e.alpha,o)}}};var Vo=Object.freeze({__proto__:null,hcl:Ar,lab:ra});class Cs{constructor(e,o,l,f,_){this.type=e,this.operator=o,this.interpolation=l,this.input=f,this.labels=[],this.outputs=[];for(const[y,w]of _)this.labels.push(y),this.outputs.push(w)}static interpolationFactor(e,o,l,f){let _=0;if("exponential"===e.name)_=Yi(o,e.base,l,f);else if("linear"===e.name)_=Yi(o,1,l,f);else if("cubic-bezier"===e.name){const y=e.controlPoints;_=new Pe(y[0],y[1],y[2],y[3]).solve(Yi(o,1,l,f))}return _}static parse(e,o){let[l,f,_,...y]=e;if(!Array.isArray(f)||0===f.length)return o.error("Expected an interpolation type expression.",1);if("linear"===f[0])f={name:"linear"};else if("exponential"===f[0]){const D=f[1];if("number"!=typeof D)return o.error("Exponential interpolation requires a numeric base.",1,1);f={name:"exponential",base:D}}else{if("cubic-bezier"!==f[0])return o.error(`Unknown interpolation type ${String(f[0])}`,1,0);{const D=f.slice(1);if(4!==D.length||D.some(L=>"number"!=typeof L||L<0||L>1))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);f={name:"cubic-bezier",controlPoints:D}}}if(e.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(_=o.parse(_,2,dt),!_)return null;const w=[];let E=null;"interpolate-hcl"===l||"interpolate-lab"===l?E=ti:o.expectedType&&"value"!==o.expectedType.kind&&(E=o.expectedType);for(let D=0;D=L)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',V);const Q=o.parse(B,Y,E);if(!Q)return null;E=E||Q.type,w.push([L,Q])}return"number"===E.kind||"color"===E.kind||"array"===E.kind&&"number"===E.itemType.kind&&"number"==typeof E.N?new Cs(E,l,f,_,w):o.error(`Type ${mt(E)} is not interpolatable.`)}evaluate(e){const o=this.labels,l=this.outputs;if(1===o.length)return l[0].evaluate(e);const f=this.input.evaluate(e);if(f<=o[0])return l[0].evaluate(e);const _=o.length;if(f>=o[_-1])return l[_-1].evaluate(e);const y=ma(o,f),w=Cs.interpolationFactor(this.interpolation,f,o[y],o[y+1]),E=l[y].evaluate(e),D=l[y+1].evaluate(e);return"interpolate"===this.operator?Br[this.type.kind.toLowerCase()](E,D,w):"interpolate-hcl"===this.operator?Ar.reverse(Ar.interpolate(Ar.forward(E),Ar.forward(D),w)):ra.reverse(ra.interpolate(ra.forward(E),ra.forward(D),w))}eachChild(e){e(this.input);for(const o of this.outputs)e(o)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const o=[this.operator,e,this.input.serialize()];for(let l=0;ljt(f,w.type));return new Pa(y?Kn:l,_)}evaluate(e){let o,l=null,f=0;for(const _ of this.args){if(f++,l=_.evaluate(e),l&&l instanceof Bt&&!l.available&&(o||(o=l),l=null,f===this.args.length))return o;if(null!==l)break}return l}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(o=>{e.push(o.serialize())}),e}}var ds=Pa;class Xr{constructor(e,o){this.type=o.type,this.bindings=[].concat(e),this.result=o}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const o of this.bindings)e(o[1]);e(this.result)}static parse(e,o){if(e.length<4)return o.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const l=[];for(let _=1;_=l.length)throw new cr(`Array index out of bounds: ${o} > ${l.length-1}.`);if(o!==Math.floor(o))throw new cr(`Array index must be an integer, but found ${o} instead.`);return l[o]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var is=oa;class ga{constructor(e,o){this.type=gn,this.needle=e,this.haystack=o}static parse(e,o){if(3!==e.length)return o.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const l=o.parse(e[1],1,Kn),f=o.parse(e[2],2,Kn);return l&&f?Fn(l.type,[gn,Lt,dt,ut,Kn])?new ga(l,f):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(l.type)} instead`):null}evaluate(e){const o=this.needle.evaluate(e),l=this.haystack.evaluate(e);if(null==l)return!1;if(!$n(o,["boolean","string","number","null"]))throw new cr(`Expected first argument to be of type boolean, string, number or null, but found ${mt(ji(o))} instead.`);if(!$n(l,["string","array"]))throw new cr(`Expected second argument to be of type array or string, but found ${mt(ji(l))} instead.`);return l.indexOf(o)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var sa=ga;class Es{constructor(e,o,l){this.type=dt,this.needle=e,this.haystack=o,this.fromIndex=l}static parse(e,o){if(e.length<=2||e.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const l=o.parse(e[1],1,Kn),f=o.parse(e[2],2,Kn);if(!l||!f)return null;if(!Fn(l.type,[gn,Lt,dt,ut,Kn]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${mt(l.type)} instead`);if(4===e.length){const _=o.parse(e[3],3,dt);return _?new Es(l,f,_):null}return new Es(l,f)}evaluate(e){const o=this.needle.evaluate(e),l=this.haystack.evaluate(e);if(!$n(o,["boolean","string","number","null"]))throw new cr(`Expected first argument to be of type boolean, string, number or null, but found ${mt(ji(o))} instead.`);if(!$n(l,["string","array"]))throw new cr(`Expected second argument to be of type array or string, but found ${mt(ji(l))} instead.`);if(this.fromIndex){const f=this.fromIndex.evaluate(e);return l.indexOf(o,f)}return l.indexOf(o)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Ll=Es;class _a{constructor(e,o,l,f,_,y){this.inputType=e,this.type=o,this.input=l,this.cases=f,this.outputs=_,this.otherwise=y}static parse(e,o){if(e.length<5)return o.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return o.error("Expected an even number of arguments.");let l,f;o.expectedType&&"value"!==o.expectedType.kind&&(f=o.expectedType);const _={},y=[];for(let D=2;DNumber.MAX_SAFE_INTEGER)return V.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof Q&&Math.floor(Q)!==Q)return V.error("Numeric branch labels must be integer values.");if(l){if(V.checkSubtype(l,ji(Q)))return null}else l=ji(Q);if(void 0!==_[String(Q)])return V.error("Branch labels must be unique.");_[String(Q)]=y.length}const Y=o.parse(B,D,f);if(!Y)return null;f=f||Y.type,y.push(Y)}const w=o.parse(e[1],1,Kn);if(!w)return null;const E=o.parse(e[e.length-1],e.length-1,f);return E?"value"!==w.type.kind&&o.concat(1).checkSubtype(l,w.type)?null:new _a(l,f,w,_,y,E):null}evaluate(e){const o=this.input.evaluate(e);return(ji(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],o=Object.keys(this.cases).sort(),l=[],f={};for(const y of o){const w=f[this.cases[y]];void 0===w?(f[this.cases[y]]=l.length,l.push([this.cases[y],[y]])):l[w][1].push(y)}const _=y=>"number"===this.inputType.kind?Number(y):y;for(const[y,w]of l)e.push(1===w.length?_(w[0]):w.map(_)),e.push(this.outputs[y].serialize());return e.push(this.otherwise.serialize()),e}}var er=_a;class Ka{constructor(e,o,l){this.type=e,this.branches=o,this.otherwise=l}static parse(e,o){if(e.length<4)return o.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return o.error("Expected an odd number of arguments.");let l;o.expectedType&&"value"!==o.expectedType.kind&&(l=o.expectedType);const f=[];for(let y=1;yo.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(o=>{e.push(o.serialize())}),e}}var ml=Ka;class Wo{constructor(e,o,l,f){this.type=e,this.input=o,this.beginIndex=l,this.endIndex=f}static parse(e,o){if(e.length<=2||e.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const l=o.parse(e[1],1,Kn),f=o.parse(e[2],2,dt);if(!l||!f)return null;if(!Fn(l.type,[ft(Kn),Lt,Kn]))return o.error(`Expected first argument to be of type array or string, but found ${mt(l.type)} instead`);if(4===e.length){const _=o.parse(e[3],3,dt);return _?new Wo(l.type,l,f,_):null}return new Wo(l.type,l,f)}evaluate(e){const o=this.input.evaluate(e),l=this.beginIndex.evaluate(e);if(!$n(o,["string","array"]))throw new cr(`Expected first argument to be of type array or string, but found ${mt(ji(o))} instead.`);if(this.endIndex){const f=this.endIndex.evaluate(e);return o.slice(l,f)}return o.slice(l)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var gl=Wo;function aa(r,e){return"=="===r||"!="===r?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function mo(r,e,o,l){return 0===l.compare(e,o)}function Ts(r,e,o){const l="=="!==r&&"!="!==r;return class fC{constructor(_,y,w){this.type=gn,this.lhs=_,this.rhs=y,this.collator=w,this.hasUntypedArgument="value"===_.type.kind||"value"===y.type.kind}static parse(_,y){if(3!==_.length&&4!==_.length)return y.error("Expected two or three arguments.");const w=_[0];let E=y.parse(_[1],1,Kn);if(!E)return null;if(!aa(w,E.type))return y.concat(1).error(`"${w}" comparisons are not supported for type '${mt(E.type)}'.`);let D=y.parse(_[2],2,Kn);if(!D)return null;if(!aa(w,D.type))return y.concat(2).error(`"${w}" comparisons are not supported for type '${mt(D.type)}'.`);if(E.type.kind!==D.type.kind&&"value"!==E.type.kind&&"value"!==D.type.kind)return y.error(`Cannot compare types '${mt(E.type)}' and '${mt(D.type)}'.`);l&&("value"===E.type.kind&&"value"!==D.type.kind?E=new Uo(D.type,[E]):"value"!==E.type.kind&&"value"===D.type.kind&&(D=new Uo(E.type,[D])));let L=null;if(4===_.length){if("string"!==E.type.kind&&"string"!==D.type.kind&&"value"!==E.type.kind&&"value"!==D.type.kind)return y.error("Cannot use collator to compare non-string types.");if(L=y.parse(_[3],3,Xi),!L)return null}return new fC(E,D,L)}evaluate(_){const y=this.lhs.evaluate(_),w=this.rhs.evaluate(_);if(l&&this.hasUntypedArgument){const E=ji(y),D=ji(w);if(E.kind!==D.kind||"string"!==E.kind&&"number"!==E.kind)throw new cr(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${E.kind}, ${D.kind}) instead.`)}if(this.collator&&!l&&this.hasUntypedArgument){const E=ji(y),D=ji(w);if("string"!==E.kind||"string"!==D.kind)return e(_,y,w)}return this.collator?o(_,y,w,this.collator.evaluate(_)):e(_,y,w)}eachChild(_){_(this.lhs),_(this.rhs),this.collator&&_(this.collator)}outputDefined(){return!0}serialize(){const _=[r];return this.eachChild(y=>{_.push(y.serialize())}),_}}}const ko=Ts("==",function(r,e,o){return e===o},mo),go=Ts("!=",function(r,e,o){return e!==o},function(r,e,o,l){return!mo(0,e,o,l)}),bc=Ts("<",function(r,e,o){return e",function(r,e,o){return e>o},function(r,e,o,l){return l.compare(e,o)>0}),ec=Ts("<=",function(r,e,o){return e<=o},function(r,e,o,l){return l.compare(e,o)<=0}),Ds=Ts(">=",function(r,e,o){return e>=o},function(r,e,o,l){return l.compare(e,o)>=0});class _l{constructor(e,o,l,f,_,y){this.type=Lt,this.number=e,this.locale=o,this.currency=l,this.unit=f,this.minFractionDigits=_,this.maxFractionDigits=y}static parse(e,o){if(3!==e.length)return o.error("Expected two arguments.");const l=o.parse(e[1],1,dt);if(!l)return null;const f=e[2];if("object"!=typeof f||Array.isArray(f))return o.error("NumberFormat options argument must be an object.");let _=null;if(f.locale&&(_=o.parse(f.locale,1,Lt),!_))return null;let y=null;if(f.currency&&(y=o.parse(f.currency,1,Lt),!y))return null;let w=null;if(f.unit&&(w=o.parse(f.unit,1,Lt),!w))return null;let E=null;if(f["min-fraction-digits"]&&(E=o.parse(f["min-fraction-digits"],1,dt),!E))return null;let D=null;return f["max-fraction-digits"]&&(D=o.parse(f["max-fraction-digits"],1,dt),!D)?null:new _l(l,_,y,w,E,D)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class yl{constructor(e){this.type=dt,this.input=e}static parse(e,o){if(2!==e.length)return o.error(`Expected 1 argument, but found ${e.length-1} instead.`);const l=o.parse(e[1],1);return l?"array"!==l.type.kind&&"string"!==l.type.kind&&"value"!==l.type.kind?o.error(`Expected argument of type string or array, but found ${mt(l.type)} instead.`):new yl(l):null}evaluate(e){const o=this.input.evaluate(e);if("string"==typeof o||Array.isArray(o))return o.length;throw new cr(`Expected value to be of type string or array, but found ${mt(ji(o))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(o=>{e.push(o.serialize())}),e}}const Jc={"==":ko,"!=":go,">":Xa,"<":bc,">=":Ds,"<=":ec,array:Uo,at:is,boolean:Uo,case:ml,coalesce:ds,collator:mr,format:jo,image:Go,in:sa,"index-of":Ll,interpolate:Qo,"interpolate-hcl":Qo,"interpolate-lab":Qo,length:yl,let:Ja,literal:Ns,match:er,number:Uo,"number-format":_l,object:Uo,slice:gl,step:pl,string:Uo,"to-boolean":zs,"to-color":zs,"to-number":zs,"to-string":zs,var:Ol,within:Ha};function tc(r,[e,o,l,f]){e=e.evaluate(r),o=o.evaluate(r),l=l.evaluate(r);const _=f?f.evaluate(r):1,y=Vi(e,o,l,_);if(y)throw new cr(y);return new R(e/255*_,o/255*_,l/255*_,_)}function Vs(r,e){return r in e}function Qa(r,e){const o=e[r];return void 0===o?null:o}function rs(r){return{type:r}}po.register(Jc,{error:[{kind:"error"},[Lt],(r,[e])=>{throw new cr(e.evaluate(r))}],typeof:[Lt,[Kn],(r,[e])=>mt(ji(e.evaluate(r)))],"to-rgba":[ft(dt,4),[ti],(r,[e])=>e.evaluate(r).toArray()],rgb:[ti,[dt,dt,dt],tc],rgba:[ti,[dt,dt,dt,dt],tc],has:{type:gn,overloads:[[[Lt],(r,[e])=>Vs(e.evaluate(r),r.properties())],[[Lt,di],(r,[e,o])=>Vs(e.evaluate(r),o.evaluate(r))]]},get:{type:Kn,overloads:[[[Lt],(r,[e])=>Qa(e.evaluate(r),r.properties())],[[Lt,di],(r,[e,o])=>Qa(e.evaluate(r),o.evaluate(r))]]},"feature-state":[Kn,[Lt],(r,[e])=>Qa(e.evaluate(r),r.featureState||{})],properties:[di,[],r=>r.properties()],"geometry-type":[Lt,[],r=>r.geometryType()],id:[Kn,[],r=>r.id()],zoom:[dt,[],r=>r.globals.zoom],pitch:[dt,[],r=>r.globals.pitch||0],"distance-from-center":[dt,[],r=>r.distanceFromCenter()],"heatmap-density":[dt,[],r=>r.globals.heatmapDensity||0],"line-progress":[dt,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[dt,[],r=>r.globals.skyRadialProgress||0],accumulated:[Kn,[],r=>void 0===r.globals.accumulated?null:r.globals.accumulated],"+":[dt,rs(dt),(r,e)=>{let o=0;for(const l of e)o+=l.evaluate(r);return o}],"*":[dt,rs(dt),(r,e)=>{let o=1;for(const l of e)o*=l.evaluate(r);return o}],"-":{type:dt,overloads:[[[dt,dt],(r,[e,o])=>e.evaluate(r)-o.evaluate(r)],[[dt],(r,[e])=>-e.evaluate(r)]]},"/":[dt,[dt,dt],(r,[e,o])=>e.evaluate(r)/o.evaluate(r)],"%":[dt,[dt,dt],(r,[e,o])=>e.evaluate(r)%o.evaluate(r)],ln2:[dt,[],()=>Math.LN2],pi:[dt,[],()=>Math.PI],e:[dt,[],()=>Math.E],"^":[dt,[dt,dt],(r,[e,o])=>Math.pow(e.evaluate(r),o.evaluate(r))],sqrt:[dt,[dt],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[dt,[dt],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[dt,[dt],(r,[e])=>Math.log(e.evaluate(r))],log2:[dt,[dt],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[dt,[dt],(r,[e])=>Math.sin(e.evaluate(r))],cos:[dt,[dt],(r,[e])=>Math.cos(e.evaluate(r))],tan:[dt,[dt],(r,[e])=>Math.tan(e.evaluate(r))],asin:[dt,[dt],(r,[e])=>Math.asin(e.evaluate(r))],acos:[dt,[dt],(r,[e])=>Math.acos(e.evaluate(r))],atan:[dt,[dt],(r,[e])=>Math.atan(e.evaluate(r))],min:[dt,rs(dt),(r,e)=>Math.min(...e.map(o=>o.evaluate(r)))],max:[dt,rs(dt),(r,e)=>Math.max(...e.map(o=>o.evaluate(r)))],abs:[dt,[dt],(r,[e])=>Math.abs(e.evaluate(r))],round:[dt,[dt],(r,[e])=>{const o=e.evaluate(r);return o<0?-Math.round(-o):Math.round(o)}],floor:[dt,[dt],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[dt,[dt],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[gn,[Lt,Kn],(r,[e,o])=>r.properties()[e.value]===o.value],"filter-id-==":[gn,[Kn],(r,[e])=>r.id()===e.value],"filter-type-==":[gn,[Lt],(r,[e])=>r.geometryType()===e.value],"filter-<":[gn,[Lt,Kn],(r,[e,o])=>{const l=r.properties()[e.value],f=o.value;return typeof l==typeof f&&l{const o=r.id(),l=e.value;return typeof o==typeof l&&o":[gn,[Lt,Kn],(r,[e,o])=>{const l=r.properties()[e.value],f=o.value;return typeof l==typeof f&&l>f}],"filter-id->":[gn,[Kn],(r,[e])=>{const o=r.id(),l=e.value;return typeof o==typeof l&&o>l}],"filter-<=":[gn,[Lt,Kn],(r,[e,o])=>{const l=r.properties()[e.value],f=o.value;return typeof l==typeof f&&l<=f}],"filter-id-<=":[gn,[Kn],(r,[e])=>{const o=r.id(),l=e.value;return typeof o==typeof l&&o<=l}],"filter->=":[gn,[Lt,Kn],(r,[e,o])=>{const l=r.properties()[e.value],f=o.value;return typeof l==typeof f&&l>=f}],"filter-id->=":[gn,[Kn],(r,[e])=>{const o=r.id(),l=e.value;return typeof o==typeof l&&o>=l}],"filter-has":[gn,[Kn],(r,[e])=>e.value in r.properties()],"filter-has-id":[gn,[],r=>null!==r.id()&&void 0!==r.id()],"filter-type-in":[gn,[ft(Lt)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[gn,[ft(Kn)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[gn,[Lt,ft(Kn)],(r,[e,o])=>o.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[gn,[Lt,ft(Kn)],(r,[e,o])=>function(l,f,_,y){for(;_<=y;){const w=_+y>>1;if(f[w]===l)return!0;f[w]>l?y=w-1:_=w+1}return!1}(r.properties()[e.value],o.value,0,o.value.length-1)],all:{type:gn,overloads:[[[gn,gn],(r,[e,o])=>e.evaluate(r)&&o.evaluate(r)],[rs(gn),(r,e)=>{for(const o of e)if(!o.evaluate(r))return!1;return!0}]]},any:{type:gn,overloads:[[[gn,gn],(r,[e,o])=>e.evaluate(r)||o.evaluate(r)],[rs(gn),(r,e)=>{for(const o of e)if(o.evaluate(r))return!0;return!1}]]},"!":[gn,[gn],(r,[e])=>!e.evaluate(r)],"is-supported-script":[gn,[Lt],(r,[e])=>{const o=r.globals&&r.globals.isSupportedScript;return!o||o(e.evaluate(r))}],upcase:[Lt,[Lt],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[Lt,[Lt],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[Lt,rs(Kn),(r,e)=>e.map(o=>Ko(o.evaluate(r))).join("")],"resolved-locale":[Lt,[Xi],(r,[e])=>e.evaluate(r).resolvedLocale()]});var F=Jc;function Me(r){return{result:"success",value:r}}function q(r){return{result:"error",value:r}}function fe(r){return"data-driven"===r["property-type"]}function xt(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function vn(r){return!!r.expression&&r.expression.interpolated}function bn(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":null===r?"null":typeof r}function Ti(r){return"object"==typeof r&&null!==r&&!Array.isArray(r)}function Ur(r){return r}function Lr(r,e){const o="color"===e.type,l=r.stops&&"object"==typeof r.stops[0][0],f=l||!(l||void 0!==r.property),_=r.type||(vn(e)?"exponential":"interval");if(o&&((r=Xn({},r)).stops&&(r.stops=r.stops.map(D=>[D[0],R.parse(D[1])])),r.default=R.parse(r.default?r.default:e.default)),r.colorSpace&&"rgb"!==r.colorSpace&&!Vo[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let y,w,E;if("exponential"===_)y=hr;else if("interval"===_)y=Pr;else if("categorical"===_){y=sr,w=Object.create(null);for(const D of r.stops)w[D[0]]=D[1];E=typeof r.stops[0][0]}else{if("identity"!==_)throw new Error(`Unknown function type "${_}"`);y=So}if(l){const D={},L=[];for(let Y=0;YY[0]),evaluate:({zoom:Y},Q)=>hr({stops:B,base:r.base},e,Y).evaluate(Y,Q)}}if(f){const D="exponential"===_?{name:"exponential",base:void 0!==r.base?r.base:1}:null;return{kind:"camera",interpolationType:D,interpolationFactor:Qo.interpolationFactor.bind(void 0,D),zoomStops:r.stops.map(L=>L[0]),evaluate:({zoom:L})=>y(r,e,L,w,E)}}return{kind:"source",evaluate(D,L){const B=L&&L.properties?L.properties[r.property]:void 0;return void 0===B?Sr(r.default,e.default):y(r,e,B,w,E)}}}function Sr(r,e,o){return void 0!==r?r:void 0!==e?e:void 0!==o?o:void 0}function sr(r,e,o,l,f){return Sr(typeof o===f?l[o]:void 0,r.default,e.default)}function Pr(r,e,o){if("number"!==bn(o))return Sr(r.default,e.default);const l=r.stops.length;if(1===l||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[l-1][0])return r.stops[l-1][1];const f=ma(r.stops.map(_=>_[0]),o);return r.stops[f][1]}function hr(r,e,o){const l=void 0!==r.base?r.base:1;if("number"!==bn(o))return Sr(r.default,e.default);const f=r.stops.length;if(1===f||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[f-1][0])return r.stops[f-1][1];const _=ma(r.stops.map(L=>L[0]),o),y=function(L,B,V,Y){const Q=Y-V,he=L-V;return 0===Q?0:1===B?he/Q:(Math.pow(B,he)-1)/(Math.pow(B,Q)-1)}(o,l,r.stops[_][0],r.stops[_+1][0]),w=r.stops[_][1],E=r.stops[_+1][1];let D=Br[e.type]||Ur;if(r.colorSpace&&"rgb"!==r.colorSpace){const L=Vo[r.colorSpace];D=(B,V)=>L.reverse(L.interpolate(L.forward(B),L.forward(V),y))}return"function"==typeof w.evaluate?{evaluate(...L){const B=w.evaluate.apply(void 0,L),V=E.evaluate.apply(void 0,L);if(void 0!==B&&void 0!==V)return D(B,V,y)}}:D(w,E,y)}function So(r,e,o){return"color"===e.type?o=R.parse(o):"formatted"===e.type?o=Ze.fromString(o.toString()):"resolvedImage"===e.type?o=Bt.fromString(o.toString()):bn(o)===e.type||"enum"===e.type&&e.values[o]||(o=void 0),Sr(o,r.default,e.default)}class $s{constructor(e,o){var l;this.expression=e,this._warningHistory={},this._evaluator=new Aa,this._defaultValue=o?"color"===(l=o).type&&(Ti(l.default)||Array.isArray(l.default))?new R(0,0,0,0):"color"===l.type?R.parse(l.default)||null:void 0===l.default?null:l.default:null,this._enumValues=o&&"enum"===o.type?o.values:null}evaluateWithoutErrorHandling(e,o,l,f,_,y,w,E){return this._evaluator.globals=e,this._evaluator.feature=o,this._evaluator.featureState=l,this._evaluator.canonical=f||null,this._evaluator.availableImages=_||null,this._evaluator.formattedSection=y,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=E||null,this.expression.evaluate(this._evaluator)}evaluate(e,o,l,f,_,y,w,E){this._evaluator.globals=e,this._evaluator.feature=o||null,this._evaluator.featureState=l||null,this._evaluator.canonical=f||null,this._evaluator.availableImages=_||null,this._evaluator.formattedSection=y||null,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=E||null;try{const D=this.expression.evaluate(this._evaluator);if(null==D||"number"==typeof D&&D!=D)return this._defaultValue;if(this._enumValues&&!(D in this._enumValues))throw new cr(`Expected value to be one of ${Object.keys(this._enumValues).map(L=>JSON.stringify(L)).join(", ")}, but found ${JSON.stringify(D)} instead.`);return D}catch(D){return this._warningHistory[D.message]||(this._warningHistory[D.message]=!0,typeof console<"u"&&console.warn(D.message)),this._defaultValue}}}function qo(r){return Array.isArray(r)&&r.length>0&&"string"==typeof r[0]&&r[0]in F}function hs(r,e){const o=new Rl(F,[],e?function(f){const _={color:ti,string:Lt,number:dt,enum:Lt,boolean:gn,formatted:J,resolvedImage:be};return"array"===f.type?ft(_[f.value]||Kn,f.length):_[f.type]}(e):void 0),l=o.parse(r,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return l?Me(new $s(l,e)):q(o.errors)}class $o{constructor(e,o){this.kind=e,this._styleExpression=o,this.isStateDependent="constant"!==e&&!bo(o.expression)}evaluateWithoutErrorHandling(e,o,l,f,_,y){return this._styleExpression.evaluateWithoutErrorHandling(e,o,l,f,_,y)}evaluate(e,o,l,f,_,y){return this._styleExpression.evaluate(e,o,l,f,_,y)}}class fs{constructor(e,o,l,f){this.kind=e,this.zoomStops=l,this._styleExpression=o,this.isStateDependent="camera"!==e&&!bo(o.expression),this.interpolationType=f}evaluateWithoutErrorHandling(e,o,l,f,_,y){return this._styleExpression.evaluateWithoutErrorHandling(e,o,l,f,_,y)}evaluate(e,o,l,f,_,y){return this._styleExpression.evaluate(e,o,l,f,_,y)}interpolationFactor(e,o,l){return this.interpolationType?Qo.interpolationFactor(this.interpolationType,e,o,l):0}}function Yo(r,e){if("error"===(r=hs(r,e)).result)return r;const o=r.value.expression,l=js(o);if(!l&&!fe(e))return q([new Je("","data expressions not supported")]);const f=Sa(o,["zoom","pitch","distance-from-center"]);if(!f&&!xt(e))return q([new Je("","zoom expressions not supported")]);const _=el(o);return _||f?_ instanceof Je?q([_]):_ instanceof Qo&&!vn(e)?q([new Je("",'"interpolate" expressions cannot be used with this property')]):Me(_?new fs(l?"camera":"composite",r.value,_.labels,_ instanceof Qo?_.interpolation:void 0):new $o(l?"constant":"source",r.value)):q([new Je("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class Zs{constructor(e,o){this._parameters=e,this._specification=o,Xn(this,Lr(this._parameters,this._specification))}static deserialize(e){return new Zs(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function el(r){let e=null;if(r instanceof Ja)e=el(r.result);else if(r instanceof ds){for(const o of r.args)if(e=el(o),e)break}else(r instanceof pl||r instanceof Qo)&&r.input instanceof po&&"zoom"===r.input.name&&(e=r);return e instanceof Je||r.eachChild(o=>{const l=el(o);l instanceof Je?e=l:!e&&l?e=new Je("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&l&&e!==l&&(e=new Je("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}class fi{constructor(e,o,l,f){this.message=(e?`${e}: `:"")+l,f&&(this.identifier=f),null!=o&&o.__line__&&(this.line=o.__line__)}}function Gs(r){const e=r.key,o=r.value,l=r.valueSpec||{},f=r.objectElementValidators||{},_=r.style,y=r.styleSpec;let w=[];const E=bn(o);if("object"!==E)return[new fi(e,o,`object expected, ${E} found`)];for(const D in o){const L=D.split(".")[0];let B;f[L]?B=f[L]:l[L]?B=Co:f["*"]?B=f["*"]:l["*"]&&(B=Co),B?w=w.concat(B({key:(e&&`${e}.`)+D,value:o[D],valueSpec:l[L]||l["*"],style:_,styleSpec:y,object:o,objectKey:D},o)):w.push(new fi(e,o[D],`unknown property "${D}"`))}for(const D in l)f[D]||l[D].required&&void 0===l[D].default&&void 0===o[D]&&w.push(new fi(e,o,`missing required property "${D}"`));return w}function wc(r){const e=r.value,o=r.valueSpec,l=r.style,f=r.styleSpec,_=r.key,y=r.arrayElementValidator||Co;if("array"!==bn(e))return[new fi(_,e,`array expected, ${bn(e)} found`)];if(o.length&&e.length!==o.length)return[new fi(_,e,`array length ${o.length} expected, length ${e.length} found`)];if(o["min-length"]&&e.length_)return[new fi(e,o,`${o} is greater than the maximum value ${_}`)]}return[]}function vl(r){const e=r.valueSpec,o=ui(r.value.type);let l,f,_,y={};const w="categorical"!==o&&void 0===r.value.property,E=!w,D="array"===bn(r.value.stops)&&"array"===bn(r.value.stops[0])&&"object"===bn(r.value.stops[0][0]),L=Gs({key:r.key,value:r.value,valueSpec:r.styleSpec.function,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(Y){if("identity"===o)return[new fi(Y.key,Y.value,'identity function may not have a "stops" property')];let Q=[];const he=Y.value;return Q=Q.concat(wc({key:Y.key,value:he,valueSpec:Y.valueSpec,style:Y.style,styleSpec:Y.styleSpec,arrayElementValidator:B})),"array"===bn(he)&&0===he.length&&Q.push(new fi(Y.key,he,"array must have at least one stop")),Q},default:function(Y){return Co({key:Y.key,value:Y.value,valueSpec:e,style:Y.style,styleSpec:Y.styleSpec})}}});return"identity"===o&&w&&L.push(new fi(r.key,r.value,'missing required property "property"')),"identity"===o||r.value.stops||L.push(new fi(r.key,r.value,'missing required property "stops"')),"exponential"===o&&r.valueSpec.expression&&!vn(r.valueSpec)&&L.push(new fi(r.key,r.value,"exponential functions not supported")),r.styleSpec.$version>=8&&(E&&!fe(r.valueSpec)?L.push(new fi(r.key,r.value,"property functions not supported")):w&&!xt(r.valueSpec)&&L.push(new fi(r.key,r.value,"zoom functions not supported"))),"categorical"!==o&&!D||void 0!==r.value.property||L.push(new fi(r.key,r.value,'"property" property is required')),L;function B(Y){let Q=[];const he=Y.value,Ue=Y.key;if("array"!==bn(he))return[new fi(Ue,he,`array expected, ${bn(he)} found`)];if(2!==he.length)return[new fi(Ue,he,`array length 2 expected, length ${he.length} found`)];if(D){if("object"!==bn(he[0]))return[new fi(Ue,he,`object expected, ${bn(he[0])} found`)];if(void 0===he[0].zoom)return[new fi(Ue,he,"object stop key must have zoom")];if(void 0===he[0].value)return[new fi(Ue,he,"object stop key must have value")];const ot=ui(he[0].zoom);if("number"!=typeof ot)return[new fi(Ue,he[0].zoom,"stop zoom values must be numbers")];if(_&&_>ot)return[new fi(Ue,he[0].zoom,"stop zoom values must appear in ascending order")];ot!==_&&(_=ot,f=void 0,y={}),Q=Q.concat(Gs({key:`${Ue}[0]`,value:he[0],valueSpec:{zoom:{}},style:Y.style,styleSpec:Y.styleSpec,objectElementValidators:{zoom:nc,value:V}}))}else Q=Q.concat(V({key:`${Ue}[0]`,value:he[0],valueSpec:{},style:Y.style,styleSpec:Y.styleSpec},he));return qo(Wn(he[1]))?Q.concat([new fi(`${Ue}[1]`,he[1],"expressions are not allowed in function stops.")]):Q.concat(Co({key:`${Ue}[1]`,value:he[1],valueSpec:e,style:Y.style,styleSpec:Y.styleSpec}))}function V(Y,Q){const he=bn(Y.value),Ue=ui(Y.value),ot=null!==Y.value?Y.value:Q;if(l){if(he!==l)return[new fi(Y.key,ot,`${he} stop domain type must match previous stop domain type ${l}`)]}else l=he;if("number"!==he&&"string"!==he&&"boolean"!==he&&"number"!=typeof Ue&&"string"!=typeof Ue&&"boolean"!=typeof Ue)return[new fi(Y.key,ot,"stop domain value must be a number, string, or boolean")];if("number"!==he&&"categorical"!==o){let bt=`number expected, ${he} found`;return fe(e)&&void 0===o&&(bt+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new fi(Y.key,ot,bt)]}return"categorical"!==o||"number"!==he||"number"==typeof Ue&&isFinite(Ue)&&Math.floor(Ue)===Ue?"categorical"!==o&&"number"===he&&"number"==typeof Ue&&"number"==typeof f&&void 0!==f&&Uenew fi(`${r.key}${l.key}`,r.value,l.message));const o=e.value.expression||e.value._styleExpression.expression;if("property"===r.expressionContext&&"text-font"===r.propertyKey&&!o.outputDefined())return[new fi(r.key,r.value,`Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===r.expressionContext&&"layout"===r.propertyType&&!bo(o))return[new fi(r.key,r.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===r.expressionContext)return ps(o,r);if(r.expressionContext&&0===r.expressionContext.indexOf("cluster")){if(!Sa(o,["zoom","feature-state"]))return[new fi(r.key,r.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===r.expressionContext&&!js(o))return[new fi(r.key,r.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function ps(r,e){const o=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(e.valueSpec&&e.valueSpec.expression)for(const f of e.valueSpec.expression.parameters)o.delete(f);if(0===o.size)return[];const l=[];return r instanceof po&&o.has(r.name)?[new fi(e.key,e.value,`["${r.name}"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)]:(r.eachChild(f=>{l.push(...ps(f,e))}),l)}function Oa(r){const e=r.key,o=r.value,l=r.valueSpec,f=[];return Array.isArray(l.values)?-1===l.values.indexOf(ui(o))&&f.push(new fi(e,o,`expected one of [${l.values.join(", ")}], ${JSON.stringify(o)} found`)):-1===Object.keys(l.values).indexOf(ui(o))&&f.push(new fi(e,o,`expected one of [${Object.keys(l.values).join(", ")}], ${JSON.stringify(o)} found`)),f}function ic(r){if(!0===r||!1===r)return!0;if(!Array.isArray(r)||0===r.length)return!1;switch(r[0]){case"has":return r.length>=2&&"$id"!==r[1]&&"$type"!==r[1];case"in":return r.length>=3&&("string"!=typeof r[1]||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==r.length||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!ic(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}function jr(r,e="fill"){if(null==r)return{filter:()=>!0,needGeometry:!1,needFeature:!1};ic(r)||(r=Zo(r));const o=r;let l=!0;try{l=function(D){if(!Nr(D))return D;let L=Wn(D);return tl(L),L=Cc(L),L}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(o,null,2)}\n `)}const f=It[`filter_${e}`],_=hs(l,f);let y=null;if("error"===_.result)throw new Error(_.value.map(D=>`${D.key}: ${D.message}`).join(", "));y=(D,L,B)=>_.value.evaluate(D,L,{},B);let w=null,E=null;if(l!==o){const D=hs(o,f);if("error"===D.result)throw new Error(D.value.map(L=>`${L.key}: ${L.message}`).join(", "));w=(L,B,V,Y,Q)=>D.value.evaluate(L,B,{},V,void 0,void 0,Y,Q),E=!js(D.value.expression)}return{filter:y,dynamicFilter:w||void 0,needGeometry:ya(l),needFeature:!!E}}function Cc(r){if(!Array.isArray(r))return r;const e=function(o){if(Kc.has(o[0]))for(let l=1;lCc(o))}function tl(r){let e=!1;const o=[];if("case"===r[0]){for(let l=1;l",">=","<","<=","to-boolean"]);function rc(r,e){return re?1:0}function ya(r){if(!Array.isArray(r))return!1;if("within"===r[0])return!0;for(let e=1;e"===e||"<="===e||">="===e?Xc(r[1],r[2],e):"any"===e?(o=r.slice(1),["any"].concat(o.map(Zo))):"all"===e?["all"].concat(r.slice(1).map(Zo)):"none"===e?["all"].concat(r.slice(1).map(Zo).map(Hs)):"in"===e?kl(r[1],r.slice(2)):"!in"===e?Hs(kl(r[1],r.slice(2))):"has"===e?Lu(r[1]):"!has"===e?Hs(Lu(r[1])):"within"!==e||r;var o}function Xc(r,e,o){switch(r){case"$type":return[`filter-type-${o}`,e];case"$id":return[`filter-id-${o}`,e];default:return[`filter-${o}`,r,e]}}function kl(r,e){if(0===e.length)return!1;switch(r){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(o=>typeof o!=typeof e[0])?["filter-in-large",r,["literal",e.sort(rc)]]:["filter-in-small",r,["literal",e]]}}function Lu(r){switch(r){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",r]}}function Hs(r){return["!",r]}function Fl(r){return ic(Wn(r.value))?Fo(Xn({},r,{expressionContext:"filter",valueSpec:r.styleSpec[`filter_${r.layerType||"fill"}`]})):xl(r)}function xl(r){const e=r.value,o=r.key;if("array"!==bn(e))return[new fi(o,e,`array expected, ${bn(e)} found`)];const l=r.styleSpec;let f,_=[];if(e.length<1)return[new fi(o,e,"filter array must have at least 1 element")];switch(_=_.concat(Oa({key:`${o}[0]`,value:e[0],valueSpec:l.filter_operator,style:r.style,styleSpec:r.styleSpec})),ui(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===ui(e[1])&&_.push(new fi(o,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&_.push(new fi(o,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(f=bn(e[1]),"string"!==f&&_.push(new fi(`${o}[1]`,e[1],`string expected, ${f} found`)));for(let y=2;y{D in o&&e.push(new fi(l,o[D],`"${D}" is prohibited for ref layers`))}),f.layers.forEach(D=>{ui(D.id)===w&&(E=D)}),E?E.ref?e.push(new fi(l,o.ref,"ref cannot reference another ref layer")):y=ui(E.type):"string"==typeof w&&e.push(new fi(l,o.ref,`ref layer "${w}" not found`))}else if("background"!==y&&"sky"!==y)if(o.source){const E=f.sources&&f.sources[o.source],D=E&&ui(E.type);E?"vector"===D&&"raster"===y?e.push(new fi(l,o.source,`layer "${o.id}" requires a raster source`)):"raster"===D&&"raster"!==y?e.push(new fi(l,o.source,`layer "${o.id}" requires a vector source`)):"vector"!==D||o["source-layer"]?"raster-dem"===D&&"hillshade"!==y?e.push(new fi(l,o.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==y||!o.paint||!o.paint["line-gradient"]&&!o.paint["line-trim-offset"]||"geojson"===D&&E.lineMetrics||e.push(new fi(l,o,`layer "${o.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new fi(l,o,`layer "${o.id}" must specify a "source-layer"`)):e.push(new fi(l,o.source,`source "${o.source}" not found`))}else e.push(new fi(l,o,'missing required property "source"'));return e=e.concat(Gs({key:l,value:o,valueSpec:_.layer,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Co({key:`${l}.type`,value:o.type,valueSpec:_.layer.type,style:r.style,styleSpec:r.styleSpec,object:o,objectKey:"type"}),filter:E=>Fl(Xn({layerType:y},E)),layout:E=>Gs({layer:o,key:E.key,value:E.value,valueSpec:{},style:E.style,styleSpec:E.styleSpec,objectElementValidators:{"*":D=>bl(Xn({layerType:y},D))}}),paint:E=>Gs({layer:o,key:E.key,value:E.value,valueSpec:{},style:E.style,styleSpec:E.styleSpec,objectElementValidators:{"*":D=>ku(Xn({layerType:y},D))}})}})),e}function va(r){const e=r.value,o=r.key,l=bn(e);return"string"!==l?[new fi(o,e,`string expected, ${l} found`)]:[]}const Ki={promoteId:function({key:r,value:e}){if("string"===bn(e))return va({key:r,value:e});{const o=[];for(const l in e)o.push(...va({key:`${r}.${l}`,value:e[l]}));return o}}};function Fu(r){const e=r.value,o=r.key,l=r.styleSpec,f=r.style;if(!e.type)return[new fi(o,e,'"type" is required')];const _=ui(e.type);let y;switch(_){case"vector":case"raster":case"raster-dem":return y=Gs({key:o,value:e,valueSpec:l[`source_${_.replace("-","_")}`],style:r.style,styleSpec:l,objectElementValidators:Ki}),y;case"geojson":if(y=Gs({key:o,value:e,valueSpec:l.source_geojson,style:f,styleSpec:l,objectElementValidators:Ki}),e.cluster)for(const w in e.clusterProperties){const[E,D]=e.clusterProperties[w],L="string"==typeof E?[E,["accumulated"],["get",w]]:E;y.push(...Fo({key:`${o}.${w}.map`,value:D,expressionContext:"cluster-map"})),y.push(...Fo({key:`${o}.${w}.reduce`,value:L,expressionContext:"cluster-reduce"}))}return y;case"video":return Gs({key:o,value:e,valueSpec:l.source_video,style:f,styleSpec:l});case"image":return Gs({key:o,value:e,valueSpec:l.source_image,style:f,styleSpec:l});case"canvas":return[new fi(o,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Oa({key:`${o}.type`,value:e.type,valueSpec:{values:up(l)},style:f,styleSpec:l})}}function up(r){return r.source.reduce((e,o)=>{const l=r[o];return"enum"===l.type.type&&(e=e.concat(Object.keys(l.type.values))),e},[])}function Qc(r){const e=r.value,o=r.styleSpec,l=o.light,f=r.style;let _=[];const y=bn(e);if(void 0===e)return _;if("object"!==y)return _=_.concat([new fi("light",e,`object expected, ${y} found`)]),_;for(const w in e){const E=w.match(/^(.*)-transition$/);_=_.concat(E&&l[E[1]]&&l[E[1]].transition?Co({key:w,value:e[w],valueSpec:o.transition,style:f,styleSpec:o}):l[w]?Co({key:w,value:e[w],valueSpec:l[w],style:f,styleSpec:o}):[new fi(w,e[w],`unknown property "${w}"`)])}return _}function Ec(r){const e=r.value,o=r.key,l=r.style,f=r.styleSpec,_=f.terrain;let y=[];const w=bn(e);if(void 0===e)return y;if("object"!==w)return y=y.concat([new fi("terrain",e,`object expected, ${w} found`)]),y;for(const E in e){const D=E.match(/^(.*)-transition$/);y=y.concat(D&&_[D[1]]&&_[D[1]].transition?Co({key:E,value:e[E],valueSpec:f.transition,style:l,styleSpec:f}):_[E]?Co({key:E,value:e[E],valueSpec:_[E],style:l,styleSpec:f}):[new fi(E,e[E],`unknown property "${E}"`)])}if(e.source){const E=l.sources&&l.sources[e.source],D=E&&ui(E.type);E?"raster-dem"!==D&&y.push(new fi(o,e.source,`terrain cannot be used with a source of type ${String(D)}, it only be used with a "raster-dem" source type`)):y.push(new fi(o,e.source,`source "${e.source}" not found`))}else y.push(new fi(o,e,'terrain is missing required property "source"'));return y}function Tc(r){const e=r.value,o=r.style,l=r.styleSpec,f=l.fog;let _=[];const y=bn(e);if(void 0===e)return _;if("object"!==y)return _=_.concat([new fi("fog",e,`object expected, ${y} found`)]),_;for(const w in e){const E=w.match(/^(.*)-transition$/);_=_.concat(E&&f[E[1]]&&f[E[1]].transition?Co({key:w,value:e[w],valueSpec:l.transition,style:o,styleSpec:l}):f[w]?Co({key:w,value:e[w],valueSpec:f[w],style:o,styleSpec:l}):[new fi(w,e[w],`unknown property "${w}"`)])}return _}const eu={"*":()=>[],array:wc,boolean:function(r){const e=r.value,o=r.key,l=bn(e);return"boolean"!==l?[new fi(o,e,`boolean expected, ${l} found`)]:[]},number:nc,color:function(r){const e=r.key,o=r.value,l=bn(o);return"string"!==l?[new fi(e,o,`color expected, ${l} found`)]:null===Un(o)?[new fi(e,o,`color expected, "${o}" found`)]:[]},enum:Oa,filter:Fl,function:vl,layer:ms,object:Gs,source:Fu,light:Qc,terrain:Ec,fog:Tc,string:va,formatted:function(r){return 0===va(r).length?[]:Fo(r)},resolvedImage:function(r){return 0===va(r).length?[]:Fo(r)},projection:function(r){const e=r.value,o=r.styleSpec,l=o.projection,f=r.style;let _=[];const y=bn(e);if("object"===y)for(const w in e)_=_.concat(Co({key:w,value:e[w],valueSpec:l[w],style:f,styleSpec:o}));else"string"!==y&&(_=_.concat([new fi("projection",e,`object or string expected, ${y} found`)]));return _}};function Co(r){const e=r.value,o=r.valueSpec,l=r.styleSpec;return o.expression&&Ti(ui(e))?vl(r):o.expression&&qo(Wn(e))?Fo(r):o.type&&eu[o.type]?eu[o.type](r):Gs(Xn({},r,{valueSpec:o.type?l[o.type]:o}))}function xh(r){const e=r.value,o=r.key,l=va(r);return l.length||(-1===e.indexOf("{fontstack}")&&l.push(new fi(o,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&l.push(new fi(o,e,'"glyphs" url must include a "{range}" token'))),l}function tu(r,e=It){return la(Co({key:"",value:r,valueSpec:e.$root,styleSpec:e,style:r,objectElementValidators:{glyphs:xh,"*":()=>[]}}))}const Td=r=>la(ku(r)),bh=r=>la(bl(r));function la(r){return r.slice().sort((e,o)=>e.line&&o.line?e.line-o.line:0)}function Nn(r,e){let o=!1;if(e&&e.length)for(const l of e)r.fire(new Qt(new Error(l.message))),o=!0;return o}var Cr=xa,Ws=3;function xa(r,e,o){var l=this.cells=[];if(r instanceof ArrayBuffer){this.arrayBuffer=r;var f=new Int32Array(this.arrayBuffer);r=f[0],this.d=(e=f[1])+2*(o=f[2]);for(var _=0;_=L[Y+0]&&l>=L[Y+1])?(y[V]=!0,_.push(D[V])):y[V]=!1}}},xa.prototype._forEachCell=function(r,e,o,l,f,_,y,w){for(var E=this._convertToCellCoord(r),D=this._convertToCellCoord(e),L=this._convertToCellCoord(o),B=this._convertToCellCoord(l),V=E;V<=L;V++)for(var Y=D;Y<=B;Y++){var Q=this.d*Y+V;if((!w||w(this._convertFromCellCoord(V),this._convertFromCellCoord(Y),this._convertFromCellCoord(V+1),this._convertFromCellCoord(Y+1)))&&f.call(this,r,e,o,l,Q,_,y,w))return}},xa.prototype._convertFromCellCoord=function(r){return(r-this.padding)/this.scale},xa.prototype._convertToCellCoord=function(r){return Math.max(0,Math.min(this.d-1,Math.floor(r*this.scale)+this.padding))},xa.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var r=this.cells,e=Ws+this.cells.length+1+1,o=0,l=0;l=0||(f[_]=nl(r[_],e)));r instanceof Error&&(f.message=r.message)}if(f.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(f.$name=l),f}throw new Error("can't serialize object of type "+typeof r)}function wl(r){if(null==r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp||qs(r)||ac(r)||ArrayBuffer.isView(r)||r instanceof j.ImageData)return r;if(Array.isArray(r))return r.map(wl);if("object"==typeof r){const e=r.$name||"Object",{klass:o}=sc[e];if(!o)throw new Error(`can't deserialize unregistered class ${e}`);if(o.deserialize)return o.deserialize(r);const l=Object.create(o.prototype);for(const f of Object.keys(r))"$name"!==f&&(l[f]=wl(r[f]));return l}throw new Error("can't deserialize object of type "+typeof r)}const pi={"Latin-1 Supplement":r=>r>=128&&r<=255,Arabic:r=>r>=1536&&r<=1791,"Arabic Supplement":r=>r>=1872&&r<=1919,"Arabic Extended-A":r=>r>=2208&&r<=2303,"Hangul Jamo":r=>r>=4352&&r<=4607,"Unified Canadian Aboriginal Syllabics":r=>r>=5120&&r<=5759,Khmer:r=>r>=6016&&r<=6143,"Unified Canadian Aboriginal Syllabics Extended":r=>r>=6320&&r<=6399,"General Punctuation":r=>r>=8192&&r<=8303,"Letterlike Symbols":r=>r>=8448&&r<=8527,"Number Forms":r=>r>=8528&&r<=8591,"Miscellaneous Technical":r=>r>=8960&&r<=9215,"Control Pictures":r=>r>=9216&&r<=9279,"Optical Character Recognition":r=>r>=9280&&r<=9311,"Enclosed Alphanumerics":r=>r>=9312&&r<=9471,"Geometric Shapes":r=>r>=9632&&r<=9727,"Miscellaneous Symbols":r=>r>=9728&&r<=9983,"Miscellaneous Symbols and Arrows":r=>r>=11008&&r<=11263,"CJK Radicals Supplement":r=>r>=11904&&r<=12031,"Kangxi Radicals":r=>r>=12032&&r<=12255,"Ideographic Description Characters":r=>r>=12272&&r<=12287,"CJK Symbols and Punctuation":r=>r>=12288&&r<=12351,Hiragana:r=>r>=12352&&r<=12447,Katakana:r=>r>=12448&&r<=12543,Bopomofo:r=>r>=12544&&r<=12591,"Hangul Compatibility Jamo":r=>r>=12592&&r<=12687,Kanbun:r=>r>=12688&&r<=12703,"Bopomofo Extended":r=>r>=12704&&r<=12735,"CJK Strokes":r=>r>=12736&&r<=12783,"Katakana Phonetic Extensions":r=>r>=12784&&r<=12799,"Enclosed CJK Letters and Months":r=>r>=12800&&r<=13055,"CJK Compatibility":r=>r>=13056&&r<=13311,"CJK Unified Ideographs Extension A":r=>r>=13312&&r<=19903,"Yijing Hexagram Symbols":r=>r>=19904&&r<=19967,"CJK Unified Ideographs":r=>r>=19968&&r<=40959,"Yi Syllables":r=>r>=40960&&r<=42127,"Yi Radicals":r=>r>=42128&&r<=42191,"Hangul Jamo Extended-A":r=>r>=43360&&r<=43391,"Hangul Syllables":r=>r>=44032&&r<=55215,"Hangul Jamo Extended-B":r=>r>=55216&&r<=55295,"Private Use Area":r=>r>=57344&&r<=63743,"CJK Compatibility Ideographs":r=>r>=63744&&r<=64255,"Arabic Presentation Forms-A":r=>r>=64336&&r<=65023,"Vertical Forms":r=>r>=65040&&r<=65055,"CJK Compatibility Forms":r=>r>=65072&&r<=65103,"Small Form Variants":r=>r>=65104&&r<=65135,"Arabic Presentation Forms-B":r=>r>=65136&&r<=65279,"Halfwidth and Fullwidth Forms":r=>r>=65280&&r<=65519};function lc(r){for(const e of r)if(nu(e.charCodeAt(0)))return!0;return!1}function os(r){for(const e of r)if(!Ra(e.charCodeAt(0)))return!1;return!0}function Ra(r){return!(pi.Arabic(r)||pi["Arabic Supplement"](r)||pi["Arabic Extended-A"](r)||pi["Arabic Presentation Forms-A"](r)||pi["Arabic Presentation Forms-B"](r))}function nu(r){return!(746!==r&&747!==r&&(r<4352||!(pi["Bopomofo Extended"](r)||pi.Bopomofo(r)||pi["CJK Compatibility Forms"](r)&&!(r>=65097&&r<=65103)||pi["CJK Compatibility Ideographs"](r)||pi["CJK Compatibility"](r)||pi["CJK Radicals Supplement"](r)||pi["CJK Strokes"](r)||!(!pi["CJK Symbols and Punctuation"](r)||r>=12296&&r<=12305||r>=12308&&r<=12319||12336===r)||pi["CJK Unified Ideographs Extension A"](r)||pi["CJK Unified Ideographs"](r)||pi["Enclosed CJK Letters and Months"](r)||pi["Hangul Compatibility Jamo"](r)||pi["Hangul Jamo Extended-A"](r)||pi["Hangul Jamo Extended-B"](r)||pi["Hangul Jamo"](r)||pi["Hangul Syllables"](r)||pi.Hiragana(r)||pi["Ideographic Description Characters"](r)||pi.Kanbun(r)||pi["Kangxi Radicals"](r)||pi["Katakana Phonetic Extensions"](r)||pi.Katakana(r)&&12540!==r||!(!pi["Halfwidth and Fullwidth Forms"](r)||65288===r||65289===r||65293===r||r>=65306&&r<=65310||65339===r||65341===r||65343===r||r>=65371&&r<=65503||65507===r||r>=65512&&r<=65519)||!(!pi["Small Form Variants"](r)||r>=65112&&r<=65118||r>=65123&&r<=65126)||pi["Unified Canadian Aboriginal Syllabics"](r)||pi["Unified Canadian Aboriginal Syllabics Extended"](r)||pi["Vertical Forms"](r)||pi["Yijing Hexagram Symbols"](r)||pi["Yi Syllables"](r)||pi["Yi Radicals"](r))))}function ba(r){return!(nu(r)||(e=r,pi["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||pi["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||pi["Letterlike Symbols"](e)||pi["Number Forms"](e)||pi["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||pi["Control Pictures"](e)&&9251!==e||pi["Optical Character Recognition"](e)||pi["Enclosed Alphanumerics"](e)||pi["Geometric Shapes"](e)||pi["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||pi["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||pi["CJK Symbols and Punctuation"](e)||pi.Katakana(e)||pi["Private Use Area"](e)||pi["CJK Compatibility Forms"](e)||pi["Small Form Variants"](e)||pi["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e));var e}function La(r){return r>=1424&&r<=2303||pi["Arabic Presentation Forms-A"](r)||pi["Arabic Presentation Forms-B"](r)}function wh(r,e){return!(!e&&La(r)||r>=2304&&r<=3583||r>=3840&&r<=4255||pi.Khmer(r))}function Dd(r){for(const e of r)if(La(e.charCodeAt(0)))return!0;return!1}const P="deferred",U="loading",O="loaded";let z=null,d="unavailable",n=null;const c=function(r){r&&"string"==typeof r&&r.indexOf("NetworkError")>-1&&(d="error"),z&&z(r)};function m(){v.fire(new Mt("pluginStateChange",{pluginStatus:d,pluginURL:n}))}const v=new wn,b=function(){return d},I=function(){if(d!==P||!n)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");d=U,m(),n&&Cn({url:n},r=>{r?c(r):(d=O,m())})},M={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>d===O||null!=M.applyArabicShaping,isLoading:()=>d===U,setState(r){d=r.pluginStatus,n=r.pluginURL},isParsed:()=>null!=M.applyArabicShaping&&null!=M.processBidirectionalText&&null!=M.processStyledBidirectionalText,getPluginURL:()=>n};class N{constructor(e,o){this.zoom=e,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.transition=o.transition,this.pitch=o.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(e){return function(o,l){for(const f of o)if(!wh(f.charCodeAt(0),l))return!1;return!0}(e,M.isLoaded())}}class Z{constructor(e,o){this.property=e,this.value=o,this.expression=function(l,f){if(Ti(l))return new Zs(l,f);if(qo(l)){const _=Yo(l,f);if("error"===_.result)throw new Error(_.value.map(y=>`${y.key}: ${y.message}`).join(", "));return _.value}{let _=l;return"string"==typeof l&&"color"===f.type&&(_=R.parse(l)),{kind:"constant",evaluate:()=>_}}}(void 0===o?e.specification.default:o,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,o,l){return this.property.possiblyEvaluate(this,e,o,l)}}class ${constructor(e){this.property=e,this.value=new Z(e,void 0)}transitioned(e,o){return new Re(this.property,this.value,o,ke({},e.transition,this.transition),e.now)}untransitioned(){return new Re(this.property,this.value,null,{},0)}}class re{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return li(this._values[e].value.value)}setValue(e,o){this._values.hasOwnProperty(e)||(this._values[e]=new $(this._values[e].property)),this._values[e].value=new Z(this._values[e].property,null===o?void 0:li(o))}getTransition(e){return li(this._values[e].transition)}setTransition(e,o){this._values.hasOwnProperty(e)||(this._values[e]=new $(this._values[e].property)),this._values[e].transition=li(o)||void 0}serialize(){const e={};for(const o of Object.keys(this._values)){const l=this.getValue(o);void 0!==l&&(e[o]=l);const f=this.getTransition(o);void 0!==f&&(e[`${o}-transition`]=f)}return e}transitioned(e,o){const l=new Fe(this._properties);for(const f of Object.keys(this._values))l._values[f]=this._values[f].transitioned(e,o._values[f]);return l}untransitioned(){const e=new Fe(this._properties);for(const o of Object.keys(this._values))e._values[o]=this._values[o].untransitioned();return e}}class Re{constructor(e,o,l,f,_){const y=f.delay||0,w=f.duration||0;_=_||0,this.property=e,this.value=o,this.begin=_+y,this.end=this.begin+w,e.specification.transition&&(f.delay||f.duration)&&(this.prior=l)}possiblyEvaluate(e,o,l){const f=e.now||0,_=this.value.possiblyEvaluate(e,o,l),y=this.prior;if(y){if(f>this.end)return this.prior=null,_;if(this.value.isDataDriven())return this.prior=null,_;if(fthis.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const o=this.uint8;this._refreshViews(),o&&this.uint8.set(o)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function Wt(r,e=1){let o=0,l=0;return{members:r.map(f=>{const _=Ft[f.type].BYTES_PER_ELEMENT,y=o=an(o,Math.max(e,_)),w=f.components||1;return l=Math.max(l,_),o+=_*w,{name:f.name,type:f.type,components:w,offset:y}}),size:an(o,Math.max(l,e)),alignment:e}}function an(r,e){return Math.ceil(r/e)*e}class Yn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,o)}emplace(e,o,l){const f=2*e;return this.int16[f+0]=o,this.int16[f+1]=l,e}}Yn.prototype.bytesPerElement=4,yi(Yn,"StructArrayLayout2i4");class tn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,l){const f=this.length;return this.resize(f+1),this.emplace(f,e,o,l)}emplace(e,o,l,f){const _=3*e;return this.int16[_+0]=o,this.int16[_+1]=l,this.int16[_+2]=f,e}}tn.prototype.bytesPerElement=6,yi(tn,"StructArrayLayout3i6");class Pn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,l,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,l,f)}emplace(e,o,l,f,_){const y=4*e;return this.int16[y+0]=o,this.int16[y+1]=l,this.int16[y+2]=f,this.int16[y+3]=_,e}}Pn.prototype.bytesPerElement=8,yi(Pn,"StructArrayLayout4i8");class dn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y,w){const E=this.length;return this.resize(E+1),this.emplace(E,e,o,l,f,_,y,w)}emplace(e,o,l,f,_,y,w,E){const D=6*e,L=12*e,B=3*e;return this.int16[D+0]=o,this.int16[D+1]=l,this.uint8[L+4]=f,this.uint8[L+5]=_,this.uint8[L+6]=y,this.uint8[L+7]=w,this.float32[B+2]=E,e}}dn.prototype.bytesPerElement=12,yi(dn,"StructArrayLayout2i4ub1f12");class Zn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,l,f)}emplace(e,o,l,f,_){const y=4*e;return this.float32[y+0]=o,this.float32[y+1]=l,this.float32[y+2]=f,this.float32[y+3]=_,e}}Zn.prototype.bytesPerElement=16,yi(Zn,"StructArrayLayout4f16");class ln extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_){const y=this.length;return this.resize(y+1),this.emplace(y,e,o,l,f,_)}emplace(e,o,l,f,_,y){const w=6*e,E=3*e;return this.uint16[w+0]=o,this.uint16[w+1]=l,this.uint16[w+2]=f,this.uint16[w+3]=_,this.float32[E+2]=y,e}}ln.prototype.bytesPerElement=12,yi(ln,"StructArrayLayout4ui1f12");class An extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,l,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,l,f)}emplace(e,o,l,f,_){const y=4*e;return this.uint16[y+0]=o,this.uint16[y+1]=l,this.uint16[y+2]=f,this.uint16[y+3]=_,e}}An.prototype.bytesPerElement=8,yi(An,"StructArrayLayout4ui8");class Qn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y){const w=this.length;return this.resize(w+1),this.emplace(w,e,o,l,f,_,y)}emplace(e,o,l,f,_,y,w){const E=6*e;return this.int16[E+0]=o,this.int16[E+1]=l,this.int16[E+2]=f,this.int16[E+3]=_,this.int16[E+4]=y,this.int16[E+5]=w,e}}Qn.prototype.bytesPerElement=12,yi(Qn,"StructArrayLayout6i12");class jn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y,w,E,D,L,B,V){const Y=this.length;return this.resize(Y+1),this.emplace(Y,e,o,l,f,_,y,w,E,D,L,B,V)}emplace(e,o,l,f,_,y,w,E,D,L,B,V,Y){const Q=12*e;return this.int16[Q+0]=o,this.int16[Q+1]=l,this.int16[Q+2]=f,this.int16[Q+3]=_,this.uint16[Q+4]=y,this.uint16[Q+5]=w,this.uint16[Q+6]=E,this.uint16[Q+7]=D,this.int16[Q+8]=L,this.int16[Q+9]=B,this.int16[Q+10]=V,this.int16[Q+11]=Y,e}}jn.prototype.bytesPerElement=24,yi(jn,"StructArrayLayout4i4ui4i24");class ei extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y){const w=this.length;return this.resize(w+1),this.emplace(w,e,o,l,f,_,y)}emplace(e,o,l,f,_,y,w){const E=10*e,D=5*e;return this.int16[E+0]=o,this.int16[E+1]=l,this.int16[E+2]=f,this.float32[D+2]=_,this.float32[D+3]=y,this.float32[D+4]=w,e}}ei.prototype.bytesPerElement=20,yi(ei,"StructArrayLayout3i3f20");class Ai extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const o=this.length;return this.resize(o+1),this.emplace(o,e)}emplace(e,o){return this.uint32[1*e+0]=o,e}}Ai.prototype.bytesPerElement=4,yi(Ai,"StructArrayLayout1ul4");class Ji extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y,w,E,D,L,B,V,Y){const Q=this.length;return this.resize(Q+1),this.emplace(Q,e,o,l,f,_,y,w,E,D,L,B,V,Y)}emplace(e,o,l,f,_,y,w,E,D,L,B,V,Y,Q){const he=20*e,Ue=10*e;return this.int16[he+0]=o,this.int16[he+1]=l,this.int16[he+2]=f,this.int16[he+3]=_,this.int16[he+4]=y,this.float32[Ue+3]=w,this.float32[Ue+4]=E,this.float32[Ue+5]=D,this.float32[Ue+6]=L,this.int16[he+14]=B,this.uint32[Ue+8]=V,this.uint16[he+18]=Y,this.uint16[he+19]=Q,e}}Ji.prototype.bytesPerElement=40,yi(Ji,"StructArrayLayout5i4f1i1ul2ui40");class wi extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y,w){const E=this.length;return this.resize(E+1),this.emplace(E,e,o,l,f,_,y,w)}emplace(e,o,l,f,_,y,w,E){const D=8*e;return this.int16[D+0]=o,this.int16[D+1]=l,this.int16[D+2]=f,this.int16[D+4]=_,this.int16[D+5]=y,this.int16[D+6]=w,this.int16[D+7]=E,e}}wi.prototype.bytesPerElement=16,yi(wi,"StructArrayLayout3i2i2i16");class Si extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_){const y=this.length;return this.resize(y+1),this.emplace(y,e,o,l,f,_)}emplace(e,o,l,f,_,y){const w=4*e,E=8*e;return this.float32[w+0]=o,this.float32[w+1]=l,this.float32[w+2]=f,this.int16[E+6]=_,this.int16[E+7]=y,e}}Si.prototype.bytesPerElement=16,yi(Si,"StructArrayLayout2f1f2i16");class fr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,l,f)}emplace(e,o,l,f,_){const y=12*e,w=3*e;return this.uint8[y+0]=o,this.uint8[y+1]=l,this.float32[w+1]=f,this.float32[w+2]=_,e}}fr.prototype.bytesPerElement=12,yi(fr,"StructArrayLayout2ub2f12");class tr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l){const f=this.length;return this.resize(f+1),this.emplace(f,e,o,l)}emplace(e,o,l,f){const _=3*e;return this.float32[_+0]=o,this.float32[_+1]=l,this.float32[_+2]=f,e}}tr.prototype.bytesPerElement=12,yi(tr,"StructArrayLayout3f12");class Di extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,l){const f=this.length;return this.resize(f+1),this.emplace(f,e,o,l)}emplace(e,o,l,f){const _=3*e;return this.uint16[_+0]=o,this.uint16[_+1]=l,this.uint16[_+2]=f,e}}Di.prototype.bytesPerElement=6,yi(Di,"StructArrayLayout3ui6");class Dr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue,ot,bt,st,vt,St){const At=this.length;return this.resize(At+1),this.emplace(At,e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue,ot,bt,st,vt,St)}emplace(e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue,ot,bt,st,vt,St,At){const un=30*e,nn=15*e,In=60*e;return this.int16[un+0]=o,this.int16[un+1]=l,this.int16[un+2]=f,this.float32[nn+2]=_,this.float32[nn+3]=y,this.uint16[un+8]=w,this.uint16[un+9]=E,this.uint32[nn+5]=D,this.uint32[nn+6]=L,this.uint32[nn+7]=B,this.uint16[un+16]=V,this.uint16[un+17]=Y,this.uint16[un+18]=Q,this.float32[nn+10]=he,this.float32[nn+11]=Ue,this.uint8[In+48]=ot,this.uint8[In+49]=bt,this.uint8[In+50]=st,this.uint32[nn+13]=vt,this.int16[un+28]=St,this.uint8[In+58]=At,e}}Dr.prototype.bytesPerElement=60,yi(Dr,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Qr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue,ot,bt,st,vt,St,At,un,nn,In,Jn,hn,On,kn,Gn){const ii=this.length;return this.resize(ii+1),this.emplace(ii,e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue,ot,bt,st,vt,St,At,un,nn,In,Jn,hn,On,kn,Gn)}emplace(e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue,ot,bt,st,vt,St,At,un,nn,In,Jn,hn,On,kn,Gn,ii){const En=38*e,hi=19*e;return this.int16[En+0]=o,this.int16[En+1]=l,this.int16[En+2]=f,this.float32[hi+2]=_,this.float32[hi+3]=y,this.int16[En+8]=w,this.int16[En+9]=E,this.int16[En+10]=D,this.int16[En+11]=L,this.int16[En+12]=B,this.int16[En+13]=V,this.uint16[En+14]=Y,this.uint16[En+15]=Q,this.uint16[En+16]=he,this.uint16[En+17]=Ue,this.uint16[En+18]=ot,this.uint16[En+19]=bt,this.uint16[En+20]=st,this.uint16[En+21]=vt,this.uint16[En+22]=St,this.uint16[En+23]=At,this.uint16[En+24]=un,this.uint16[En+25]=nn,this.uint16[En+26]=In,this.uint16[En+27]=Jn,this.uint16[En+28]=hn,this.uint32[hi+15]=On,this.float32[hi+16]=kn,this.float32[hi+17]=Gn,this.float32[hi+18]=ii,e}}Qr.prototype.bytesPerElement=76,yi(Qr,"StructArrayLayout3i2f6i15ui1ul3f76");class Vr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const o=this.length;return this.resize(o+1),this.emplace(o,e)}emplace(e,o){return this.float32[1*e+0]=o,e}}Vr.prototype.bytesPerElement=4,yi(Vr,"StructArrayLayout1f4");class $r extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,l,f,_){const y=this.length;return this.resize(y+1),this.emplace(y,e,o,l,f,_)}emplace(e,o,l,f,_,y){const w=5*e;return this.float32[w+0]=o,this.float32[w+1]=l,this.float32[w+2]=f,this.float32[w+3]=_,this.float32[w+4]=y,e}}$r.prototype.bytesPerElement=20,yi($r,"StructArrayLayout5f20");class gs extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,l,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,l,f)}emplace(e,o,l,f,_){const y=6*e;return this.uint32[3*e+0]=o,this.uint16[y+2]=l,this.uint16[y+3]=f,this.uint16[y+4]=_,e}}gs.prototype.bytesPerElement=12,yi(gs,"StructArrayLayout1ul3ui12");class oo extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,o)}emplace(e,o,l){const f=2*e;return this.uint16[f+0]=o,this.uint16[f+1]=l,e}}oo.prototype.bytesPerElement=4,yi(oo,"StructArrayLayout2ui4");class wa extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const o=this.length;return this.resize(o+1),this.emplace(o,e)}emplace(e,o){return this.uint16[1*e+0]=o,e}}wa.prototype.bytesPerElement=2,yi(wa,"StructArrayLayout1ui2");class ca extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o){const l=this.length;return this.resize(l+1),this.emplace(l,e,o)}emplace(e,o,l){const f=2*e;return this.float32[f+0]=o,this.float32[f+1]=l,e}}ca.prototype.bytesPerElement=8,yi(ca,"StructArrayLayout2f8");class no extends Rt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}no.prototype.size=40;class Zr extends Ji{get(e){return new no(this,e)}}yi(Zr,"CollisionBoxArray");class br extends Rt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}br.prototype.size=60;class Eo extends Dr{get(e){return new br(this,e)}}yi(Eo,"PlacedSymbolArray");class Is extends Rt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(e){this._structArray.uint32[this._pos4+15]=e}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}Is.prototype.size=76;class io extends Qr{get(e){return new Is(this,e)}}yi(io,"SymbolInstanceArray");class Ms extends Vr{getoffsetX(e){return this.float32[1*e+0]}}yi(Ms,"GlyphOffsetArray");class iu extends Yn{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}yi(iu,"SymbolLineVertexArray");class Nl extends Rt{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}Nl.prototype.size=12;class ru extends gs{get(e){return new Nl(this,e)}}yi(ru,"FeatureIndexArray");class Ca extends oo{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}yi(Ca,"FillExtrusionCentroidArray");const Ys=Wt([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),cc=Wt([{name:"a_dash",components:4,type:"Uint16"}]);var ou={exports:{}},es=function(r,e){var o,l,f,_,y,w,E,D;for(l=r.length-(o=3&r.length),f=e,y=3432918353,w=461845907,D=0;D>>16)*y&65535)<<16)&4294967295)<<15|E>>>17))*w+(((E>>>16)*w&65535)<<16)&4294967295)<<13|f>>>19))+((5*(f>>>16)&65535)<<16)&4294967295))+((58964+(_>>>16)&65535)<<16);switch(E=0,o){case 3:E^=(255&r.charCodeAt(D+2))<<16;case 2:E^=(255&r.charCodeAt(D+1))<<8;case 1:f^=E=(65535&(E=(E=(65535&(E^=255&r.charCodeAt(D)))*y+(((E>>>16)*y&65535)<<16)&4294967295)<<15|E>>>17))*w+(((E>>>16)*w&65535)<<16)&4294967295}return f^=r.length,f=2246822507*(65535&(f^=f>>>16))+((2246822507*(f>>>16)&65535)<<16)&4294967295,f=3266489909*(65535&(f^=f>>>13))+((3266489909*(f>>>16)&65535)<<16)&4294967295,(f^=f>>>16)>>>0},fy=function(r,e){for(var o,l=r.length,f=e^l,_=0;l>=4;)o=1540483477*(65535&(o=255&r.charCodeAt(_)|(255&r.charCodeAt(++_))<<8|(255&r.charCodeAt(++_))<<16|(255&r.charCodeAt(++_))<<24))+((1540483477*(o>>>16)&65535)<<16),f=1540483477*(65535&f)+((1540483477*(f>>>16)&65535)<<16)^(o=1540483477*(65535&(o^=o>>>24))+((1540483477*(o>>>16)&65535)<<16)),l-=4,++_;switch(l){case 3:f^=(255&r.charCodeAt(_+2))<<16;case 2:f^=(255&r.charCodeAt(_+1))<<8;case 1:f=1540483477*(65535&(f^=255&r.charCodeAt(_)))+((1540483477*(f>>>16)&65535)<<16)}return f=1540483477*(65535&(f^=f>>>13))+((1540483477*(f>>>16)&65535)<<16),(f^=f>>>15)>>>0};ou.exports=es,ou.exports.murmur3=es,ou.exports.murmur2=fy;var Ch=Ye(ou.exports);class Nu{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,o,l,f){this.ids.push(dg(e)),this.positions.push(o,l,f)}getPositions(e){const o=dg(e);let l=0,f=this.ids.length-1;for(;l>1;this.ids[y]>=o?f=y:l=y+1}const _=[];for(;this.ids[l]===o;)_.push({index:this.positions[3*l],start:this.positions[3*l+1],end:this.positions[3*l+2]}),l++;return _}static serialize(e,o){const l=new Float64Array(e.ids),f=new Uint32Array(e.positions);return Eh(l,f,0,l.length-1),o&&o.push(l.buffer,f.buffer),{ids:l,positions:f}}static deserialize(e){const o=new Nu;return o.ids=e.ids,o.positions=e.positions,o.indexed=!0,o}}function dg(r){const e=+r;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:Ch(String(r))}function Eh(r,e,o,l){for(;o>1];let _=o-1,y=l+1;for(;;){do{_++}while(r[_]f);if(_>=y)break;Bu(r,_,y),Bu(e,3*_,3*y),Bu(e,3*_+1,3*y+1),Bu(e,3*_+2,3*y+2)}y-o`u_${f}`),this.type=l}setUniform(e,o,l,f,_){o.set(e,_,f.constantOr(this.value))}getBinding(e,o){return"color"===this.type?new dp(e):new uc(e)}}class Id{constructor(e,o){this.uniformNames=o.map(l=>`u_${l}`),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,o,l,f,_){const y="u_pattern"===_||"u_dash"===_?this.pattern:"u_pixel_ratio"===_?this.pixelRatio:null;y&&o.set(e,_,y)}getBinding(e,o){return"u_pattern"===o||"u_dash"===o?new au(e):new uc(e)}}class Ic{constructor(e,o,l,f){this.expression=e,this.type=l,this.maxValue=0,this.paintVertexAttributes=o.map(_=>({name:`a_${_}`,type:"Float32",components:"color"===l?2:1,offset:0})),this.paintVertexArray=new f}populatePaintArray(e,o,l,f,_,y){const w=this.paintVertexArray.length,E=this.expression.evaluate(new N(0),o,{},_,f,y);this.paintVertexArray.resize(e),this._setPaintValue(w,e,E)}updatePaintArray(e,o,l,f,_){const y=this.expression.evaluate({zoom:0},l,f,void 0,_);this._setPaintValue(e,o,y)}_setPaintValue(e,o,l){if("color"===this.type){const f=fp(l);for(let _=e;_`u_${w}_t`),this.type=l,this.useIntegerZoom=f,this.zoom=_,this.maxValue=0,this.paintVertexAttributes=o.map(w=>({name:`a_${w}`,type:"Float32",components:"color"===l?4:2,offset:0})),this.paintVertexArray=new y}populatePaintArray(e,o,l,f,_,y){const w=this.expression.evaluate(new N(this.zoom),o,{},_,f,y),E=this.expression.evaluate(new N(this.zoom+1),o,{},_,f,y),D=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(D,e,w,E)}updatePaintArray(e,o,l,f,_){const y=this.expression.evaluate({zoom:this.zoom},l,f,void 0,_),w=this.expression.evaluate({zoom:this.zoom+1},l,f,void 0,_);this._setPaintValue(e,o,y,w)}_setPaintValue(e,o,l,f){if("color"===this.type){const _=fp(l),y=fp(f);for(let w=e;w!0)){this.binders={},this._buffers=[];const f=[];for(const _ in e.paint._values){if(!l(_))continue;const y=e.paint.get(_);if(!(y instanceof Qe&&fe(y.property.specification)))continue;const w=my(_,e.type),E=y.value,D=y.property.specification.type,L=!!y.property.useIntegerZoom,B="line-dasharray"===_||_.endsWith("pattern"),V="line-dasharray"===_&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==E.kind||V)if("source"===E.kind||V||B){const Y=Uu(_,D,"source");this.binders[_]=B?new lu(E,w,D,Y,e.id):new Ic(E,w,D,Y),f.push(`/a_${_}`)}else{const Y=Uu(_,D,"composite");this.binders[_]=new zl(E,w,D,L,o,Y),f.push(`/z_${_}`)}else this.binders[_]=B?new Id(E.value,w):new Th(E.value,w,D),f.push(`/u_${_}`)}this.cacheKey=f.sort().join("")}getMaxValue(e){const o=this.binders[e];return o instanceof Ic||o instanceof zl?o.maxValue:0}populatePaintArrays(e,o,l,f,_,y){for(const w in this.binders){const E=this.binders[w];(E instanceof Ic||E instanceof zl||E instanceof lu)&&E.populatePaintArray(e,o,l,f,_,y)}}setConstantPatternPositions(e){for(const o in this.binders){const l=this.binders[o];l instanceof Id&&l.setConstantPatternPositions(e)}}updatePaintArrays(e,o,l,f,_,y){let w=!1;for(const E in e){const D=o.getPositions(E);for(const L of D){const B=l.feature(L.index);for(const V in this.binders){const Y=this.binders[V];if((Y instanceof Ic||Y instanceof zl||Y instanceof lu)&&!0===Y.expression.isStateDependent){const Q=f.paint.get(V);Y.expression=Q.value,Y.updatePaintArray(L.start,L.end,B,e[E],_,y),w=!0}}}}return w}defines(){const e=[];for(const o in this.binders){const l=this.binders[o];(l instanceof Th||l instanceof Id)&&e.push(...l.uniformNames.map(f=>`#define HAS_UNIFORM_${f}`))}return e}getBinderAttributes(){const e=[];for(const o in this.binders){const l=this.binders[o];if(l instanceof Ic||l instanceof zl||l instanceof lu)for(let f=0;f!0)){this.programConfigurations={};for(const f of e)this.programConfigurations[f.id]=new cu(f,o,l);this.needsUpload=!1,this._featureMap=new Nu,this._bufferOffset=0}populatePaintArrays(e,o,l,f,_,y,w){for(const E in this.programConfigurations)this.programConfigurations[E].populatePaintArrays(e,o,f,_,y,w);void 0!==o.id&&this._featureMap.add(o.id,l,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,o,l,f,_){for(const y of l)this.needsUpload=this.programConfigurations[y.id].updatePaintArrays(e,this._featureMap,o,y,f,_)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const o in this.programConfigurations)this.programConfigurations[o].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const py={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function my(r,e){return py[r]||[r.replace(`${e}-`,"").replace(/-/g,"_")]}const ss={"line-pattern":{source:ln,composite:ln},"fill-pattern":{source:ln,composite:ln},"fill-extrusion-pattern":{source:ln,composite:ln},"line-dasharray":{source:An,composite:An}},gy={color:{source:ca,composite:Zn},number:{source:Vr,composite:ca}};function Uu(r,e,o){const l=ss[r];return l&&l[o]||gy[e][o]}yi(Th,"ConstantBinder"),yi(Id,"PatternConstantBinder"),yi(Ic,"SourceExpressionBinder"),yi(lu,"PatternCompositeBinder"),yi(zl,"CompositeExpressionBinder"),yi(cu,"ProgramConfiguration",{omit:["_buffers"]}),yi(il,"ProgramConfigurationSet");const hg="-transition";class Po extends wn{constructor(e,o){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),o.layout&&(this._unevaluatedLayout=new et(o.layout)),o.paint)){this._transitionablePaint=new re(o.paint);for(const l in e.paint)this.setPaintProperty(l,e.paint[l],{validate:!1});for(const l in e.layout)this.setLayoutProperty(l,e.layout[l],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new nt(o.paint)}}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,o,l={}){null!=o&&this._validate(bh,`layers.${this.id}.layout.${e}`,e,o,l)||("visibility"!==e?this._unevaluatedLayout.setValue(e,o):this.visibility=o)}getPaintProperty(e){return Mn(e,hg)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,o,l={}){if(null!=o&&this._validate(Td,`layers.${this.id}.paint.${e}`,e,o,l))return!1;if(Mn(e,hg))return this._transitionablePaint.setTransition(e.slice(0,-11),o||void 0),!1;{const f=this._transitionablePaint._values[e],_=f.value.isDataDriven(),y=f.value;this._transitionablePaint.setValue(e,o),this._handleSpecialPaintPropertyUpdate(e);const w=this._transitionablePaint._values[e].value,E=w.isDataDriven(),D=Mn(e,"pattern")||"line-dasharray"===e;return E||_||D||this._handleOverridablePaintPropertyUpdate(e,y,w)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,o,l){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,o){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,o)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,o)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),qn(e,(o,l)=>!(void 0===o||"layout"===l&&!Object.keys(o).length||"paint"===l&&!Object.keys(o).length))}_validate(e,o,l,f,_={}){return(!_||!1!==_.validate)&&Nn(this,e.call(tu,{key:o,layerType:this.type,objectKey:l,value:f,styleSpec:It,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const o=this.paint.get(e);if(o instanceof Qe&&fe(o.property.specification)&&("source"===o.value.kind||"composite"===o.value.kind)&&o.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=jr(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const ju=Wt([{name:"a_pos",components:2,type:"Int16"}],4),fg=Wt([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class _o{constructor(e=[]){this.segments=e}prepareSegment(e,o,l,f){let _=this.segments[this.segments.length-1];return e>_o.MAX_VERTEX_ARRAY_LENGTH&&Dt(`Max vertices per segment is ${_o.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!_||_.vertexLength+e>_o.MAX_VERTEX_ARRAY_LENGTH||_.sortKey!==f)&&(_={vertexOffset:o.length,primitiveOffset:l.length,vertexLength:0,primitiveLength:0},void 0!==f&&(_.sortKey=f),this.segments.push(_)),_}get(){return this.segments}destroy(){for(const e of this.segments)for(const o in e.vaos)e.vaos[o].destroy()}static simpleSegment(e,o,l,f){return new _o([{vertexOffset:e,primitiveOffset:o,vertexLength:l,primitiveLength:f,vaos:{},sortKey:0}])}}_o.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,yi(_o,"SegmentVector");var Ii=8192;class Ul{constructor(e,o){e&&(o?this.setSouthWest(e).setNorthEast(o):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof Gr?new Gr(e.lng,e.lat):Gr.convert(e),this}setSouthWest(e){return this._sw=e instanceof Gr?new Gr(e.lng,e.lat):Gr.convert(e),this}extend(e){const o=this._sw,l=this._ne;let f,_;if(e instanceof Gr)f=e,_=e;else{if(!(e instanceof Ul))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Ul.convert(e)):this.extend(Gr.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(Gr.convert(e)):this;if(f=e._sw,_=e._ne,!f||!_)return this}return o||l?(o.lng=Math.min(f.lng,o.lng),o.lat=Math.min(f.lat,o.lat),l.lng=Math.max(_.lng,l.lng),l.lat=Math.max(_.lat,l.lat)):(this._sw=new Gr(f.lng,f.lat),this._ne=new Gr(_.lng,_.lat)),this}getCenter(){return new Gr((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new Gr(this.getWest(),this.getNorth())}getSouthEast(){return new Gr(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:o,lat:l}=Gr.convert(e);let f=this._sw.lng<=o&&o<=this._ne.lng;return this._sw.lng>this._ne.lng&&(f=this._sw.lng>=o&&o>=this._ne.lng),this._sw.lat<=l&&l<=this._ne.lat&&f}static convert(e){return!e||e instanceof Ul?e:new Ul(e)}}var pp=1e-6,ua=typeof Float32Array<"u"?Float32Array:Array;function _y(){var r=new ua(9);return ua!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Ta(r,e,o){var l=e[0],f=e[1],_=e[2],y=e[3],w=e[4],E=e[5],D=e[6],L=e[7],B=e[8],V=o[0],Y=o[1],Q=o[2],he=o[3],Ue=o[4],ot=o[5],bt=o[6],st=o[7],vt=o[8];return r[0]=V*l+Y*y+Q*D,r[1]=V*f+Y*w+Q*L,r[2]=V*_+Y*E+Q*B,r[3]=he*l+Ue*y+ot*D,r[4]=he*f+Ue*w+ot*L,r[5]=he*_+Ue*E+ot*B,r[6]=bt*l+st*y+vt*D,r[7]=bt*f+st*w+vt*L,r[8]=bt*_+st*E+vt*B,r}function ka(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function Mc(r,e){var o=e[0],l=e[1],f=e[2],_=e[3],y=e[4],w=e[5],E=e[6],D=e[7],L=e[8],B=e[9],V=e[10],Y=e[11],Q=e[12],he=e[13],Ue=e[14],ot=e[15],bt=o*w-l*y,st=o*E-f*y,vt=o*D-_*y,St=l*E-f*w,At=l*D-_*w,un=f*D-_*E,nn=L*he-B*Q,In=L*Ue-V*Q,Jn=L*ot-Y*Q,hn=B*Ue-V*he,On=B*ot-Y*he,kn=V*ot-Y*Ue,Gn=bt*kn-st*On+vt*hn+St*Jn-At*In+un*nn;return Gn?(r[0]=(w*kn-E*On+D*hn)*(Gn=1/Gn),r[1]=(f*On-l*kn-_*hn)*Gn,r[2]=(he*un-Ue*At+ot*St)*Gn,r[3]=(V*At-B*un-Y*St)*Gn,r[4]=(E*Jn-y*kn-D*In)*Gn,r[5]=(o*kn-f*Jn+_*In)*Gn,r[6]=(Ue*vt-Q*un-ot*st)*Gn,r[7]=(L*un-V*vt+Y*st)*Gn,r[8]=(y*On-w*Jn+D*nn)*Gn,r[9]=(l*Jn-o*On-_*nn)*Gn,r[10]=(Q*At-he*vt+ot*bt)*Gn,r[11]=(B*vt-L*At-Y*bt)*Gn,r[12]=(w*In-y*hn-E*nn)*Gn,r[13]=(o*hn-l*In+f*nn)*Gn,r[14]=(he*st-Q*St-Ue*bt)*Gn,r[15]=(L*St-B*st+V*bt)*Gn,r):null}function Vu(r,e,o){var l=e[0],f=e[1],_=e[2],y=e[3],w=e[4],E=e[5],D=e[6],L=e[7],B=e[8],V=e[9],Y=e[10],Q=e[11],he=e[12],Ue=e[13],ot=e[14],bt=e[15],st=o[0],vt=o[1],St=o[2],At=o[3];return r[0]=st*l+vt*w+St*B+At*he,r[1]=st*f+vt*E+St*V+At*Ue,r[2]=st*_+vt*D+St*Y+At*ot,r[3]=st*y+vt*L+St*Q+At*bt,r[4]=(st=o[4])*l+(vt=o[5])*w+(St=o[6])*B+(At=o[7])*he,r[5]=st*f+vt*E+St*V+At*Ue,r[6]=st*_+vt*D+St*Y+At*ot,r[7]=st*y+vt*L+St*Q+At*bt,r[8]=(st=o[8])*l+(vt=o[9])*w+(St=o[10])*B+(At=o[11])*he,r[9]=st*f+vt*E+St*V+At*Ue,r[10]=st*_+vt*D+St*Y+At*ot,r[11]=st*y+vt*L+St*Q+At*bt,r[12]=(st=o[12])*l+(vt=o[13])*w+(St=o[14])*B+(At=o[15])*he,r[13]=st*f+vt*E+St*V+At*Ue,r[14]=st*_+vt*D+St*Y+At*ot,r[15]=st*y+vt*L+St*Q+At*bt,r}function $u(r,e,o){var l,f,_,y,w,E,D,L,B,V,Y,Q,he=o[0],Ue=o[1],ot=o[2];return e===r?(r[12]=e[0]*he+e[4]*Ue+e[8]*ot+e[12],r[13]=e[1]*he+e[5]*Ue+e[9]*ot+e[13],r[14]=e[2]*he+e[6]*Ue+e[10]*ot+e[14],r[15]=e[3]*he+e[7]*Ue+e[11]*ot+e[15]):(f=e[1],_=e[2],y=e[3],w=e[4],E=e[5],D=e[6],L=e[7],B=e[8],V=e[9],Y=e[10],Q=e[11],r[0]=l=e[0],r[1]=f,r[2]=_,r[3]=y,r[4]=w,r[5]=E,r[6]=D,r[7]=L,r[8]=B,r[9]=V,r[10]=Y,r[11]=Q,r[12]=l*he+w*Ue+B*ot+e[12],r[13]=f*he+E*Ue+V*ot+e[13],r[14]=_*he+D*Ue+Y*ot+e[14],r[15]=y*he+L*Ue+Q*ot+e[15]),r}function uu(r,e,o){var l=o[0],f=o[1],_=o[2];return r[0]=e[0]*l,r[1]=e[1]*l,r[2]=e[2]*l,r[3]=e[3]*l,r[4]=e[4]*f,r[5]=e[5]*f,r[6]=e[6]*f,r[7]=e[7]*f,r[8]=e[8]*_,r[9]=e[9]*_,r[10]=e[10]*_,r[11]=e[11]*_,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function mp(r,e,o){var l=Math.sin(o),f=Math.cos(o),_=e[4],y=e[5],w=e[6],E=e[7],D=e[8],L=e[9],B=e[10],V=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=_*f+D*l,r[5]=y*f+L*l,r[6]=w*f+B*l,r[7]=E*f+V*l,r[8]=D*f-_*l,r[9]=L*f-y*l,r[10]=B*f-w*l,r[11]=V*f-E*l,r}function Dh(r,e,o){var l=Math.sin(o),f=Math.cos(o),_=e[0],y=e[1],w=e[2],E=e[3],D=e[8],L=e[9],B=e[10],V=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=_*f-D*l,r[1]=y*f-L*l,r[2]=w*f-B*l,r[3]=E*f-V*l,r[8]=_*l+D*f,r[9]=y*l+L*f,r[10]=w*l+B*f,r[11]=E*l+V*f,r}function pg(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function mg(r,e,o){var l,f,_,y=o[0],w=o[1],E=o[2],D=Math.hypot(y,w,E);return D0&&(_=1/Math.sqrt(_)),r[0]=e[0]*_,r[1]=e[1]*_,r[2]=e[2]*_,r}function rl(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function Ac(r,e,o){var l=e[0],f=e[1],_=e[2],y=o[0],w=o[1],E=o[2];return r[0]=f*E-_*w,r[1]=_*y-l*E,r[2]=l*w-f*y,r}function co(r,e,o){var l=e[0],f=e[1],_=e[2],y=o[3]*l+o[7]*f+o[11]*_+o[15];return r[0]=(o[0]*l+o[4]*f+o[8]*_+o[12])/(y=y||1),r[1]=(o[1]*l+o[5]*f+o[9]*_+o[13])/y,r[2]=(o[2]*l+o[6]*f+o[10]*_+o[14])/y,r}function _g(r,e,o){var l=o[0],f=o[1],_=o[2],y=e[0],w=e[1],E=e[2],D=f*E-_*w,L=_*y-l*E,B=l*w-f*y,V=f*B-_*L,Y=_*D-l*B,Q=l*L-f*D,he=2*o[3];return L*=he,B*=he,Y*=2,Q*=2,r[0]=y+(D*=he)+(V*=2),r[1]=w+L+Y,r[2]=E+B+Q,r}var Ih,ol=Zu,vy=gg,V0=Sd;function yg(r,e,o){return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3]*o,r}function vg(r,e){var o=e[0],l=e[1],f=e[2],_=e[3],y=o*o+l*l+f*f+_*_;return y>0&&(y=1/Math.sqrt(y)),r[0]=o*y,r[1]=l*y,r[2]=f*y,r[3]=_*y,r}function hu(r,e,o){var l=e[0],f=e[1],_=e[2],y=e[3];return r[0]=o[0]*l+o[4]*f+o[8]*_+o[12]*y,r[1]=o[1]*l+o[5]*f+o[9]*_+o[13]*y,r[2]=o[2]*l+o[6]*f+o[10]*_+o[14]*y,r[3]=o[3]*l+o[7]*f+o[11]*_+o[15]*y,r}function fu(){var r=new ua(4);return ua!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function gp(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function Mh(r,e,o){o*=.5;var l=e[0],f=e[1],_=e[2],y=e[3],w=Math.sin(o),E=Math.cos(o);return r[0]=l*E+y*w,r[1]=f*E+_*w,r[2]=_*E-f*w,r[3]=y*E-l*w,r}function Pd(r,e,o){o*=.5;var l=e[0],f=e[1],_=e[2],y=e[3],w=Math.sin(o),E=Math.cos(o);return r[0]=l*E-_*w,r[1]=f*E+y*w,r[2]=_*E+l*w,r[3]=y*E-f*w,r}Md(),Ih=new ua(4),ua!=Float32Array&&(Ih[0]=0,Ih[1]=0,Ih[2]=0,Ih[3]=0);var _p=vg;Md(),dc(1,0,0),dc(0,1,0),fu(),fu(),_y();const xy=Wt([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:yp}=xy,vp=Wt([{name:"a_pos_3",components:3,type:"Int16"}]);var Sc=Wt([{name:"a_pos",type:"Int16",components:2}]);class xg{constructor(e,o){this.pos=e,this.dir=o}intersectsPlane(e,o,l){const f=rl(o,this.dir);if(Math.abs(f)<1e-6)return!1;const _=((e[0]-this.pos[0])*o[0]+(e[1]-this.pos[1])*o[1]+(e[2]-this.pos[2])*o[2])/f;return l[0]=this.pos[0]+this.dir[0]*_,l[1]=this.pos[1]+this.dir[1]*_,l[2]=this.pos[2]+this.dir[2]*_,!0}closestPointOnSphere(e,o,l){if(he=(Y=this.pos)[0],Ue=Y[1],ot=Y[2],bt=(Q=e)[0],st=Q[1],vt=Q[2],Math.abs(he-bt)<=pp*Math.max(1,Math.abs(he),Math.abs(bt))&&Math.abs(Ue-st)<=pp*Math.max(1,Math.abs(Ue),Math.abs(st))&&Math.abs(ot-vt)<=pp*Math.max(1,Math.abs(ot),Math.abs(vt))||0===o)return l[0]=l[1]=l[2]=0,!1;var Y,Q,he,Ue,ot,bt,st,vt;const[f,_,y]=this.dir,w=this.pos[0]-e[0],E=this.pos[1]-e[1],D=this.pos[2]-e[2],L=f*f+_*_+y*y,B=2*(w*f+E*_+D*y),V=B*B-4*L*(w*w+E*E+D*D-o*o);if(V<0){const Y=Math.max(-B/2,0),Q=w+f*Y,he=E+_*Y,Ue=D+y*Y,ot=Math.hypot(Q,he,Ue);return l[0]=Q*o/ot,l[1]=he*o/ot,l[2]=Ue*o/ot,!1}{const Y=(-B-Math.sqrt(V))/(2*L);if(Y<0){const Q=Math.hypot(w,E,D);return l[0]=w*o/Q,l[1]=E*o/Q,l[2]=D*o/Q,!1}return l[0]=w+f*Y,l[1]=E+_*Y,l[2]=D+y*Y,!0}}}class Od{constructor(e,o,l,f,_){this.TL=e,this.TR=o,this.BR=l,this.BL=f,this.horizon=_}static fromInvProjectionMatrix(e,o,l){const f=[-1,1,1],_=[1,1,1],y=[1,-1,1],w=[-1,-1,1],E=co(f,f,e),D=co(_,_,e),L=co(y,y,e),B=co(w,w,e);return new Od(E,D,L,B,o/l)}}class xp{constructor(e,o){this.points=e,this.planes=o}static fromInvProjectionMatrix(e,o,l,f){const _=Math.pow(2,l),y=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(E=>{const D=hu([],E,e),L=1/D[3]/o*_;return(B=D)[0]=(V=D)[0]*(Y=[L,L,f?1/D[3]:L,L])[0],B[1]=V[1]*Y[1],B[2]=V[2]*Y[2],B[3]=V[3]*Y[3],B;var B,V,Y}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(E=>{const D=Ks([],Ac([],ol([],y[E[0]],y[E[1]]),ol([],y[E[2]],y[E[1]]))),L=-rl(D,y[E[1]]);return D.concat(L)});return new xp(y,w)}}class _s{static fromPoints(e){const o=[1/0,1/0,1/0],l=[-1/0,-1/0,-1/0];for(const f of e)Gu(o,o,f),du(l,l,f);return new _s(o,l)}static applyTransform(e,o){const l=e.getCorners();for(let f=0;f=0;if(0===y)return 0;y!==o.length&&(l=!1)}if(l)return 2;for(let f=0;f<3;f++){let _=Number.MAX_VALUE,y=-Number.MAX_VALUE;for(let w=0;wthis.max[f]-this.min[f])return 0}return 1}}const Ah=5,bp=6,Xs=Ii/Math.PI/2,by=16383,Pc=[64,32,16],sl=-Xs,Da=Xs,Sh=[new _s([sl,sl,sl],[Da,Da,Da]),new _s([sl,sl,sl],[0,0,Da]),new _s([0,sl,sl],[Da,0,Da]),new _s([sl,0,sl],[0,Da,Da]),new _s([0,0,sl],[Da,Da,Da])];function Fa(r){return r*Xs/gu}function pu(r,e,o,l=!0){const f=Js([],r._camera.position,r.worldSize),_=[e,o,1,1];hu(_,_,r.pixelMatrixInverse),yg(_,_,1/_[3]);const y=Ks([],ol([],_,f)),w=r.globeMatrix,E=[w[12],w[13],w[14]],D=ol([],E,f),L=Sd(D),B=Ks([],D),V=r.worldSize/(2*Math.PI),Y=rl(B,y),Q=Math.asin(V/L);if(Q1?null:function(l,f,_,y){const w=Math.sin(_);return l*(Math.sin((1-y)*_)/w)+f*(Math.sin(y*_)/w)}(r.a[e],r.b[e],r.angle,Xe(o,0,1))+r.center[e]}function jl(r){if(r.z<=1)return Sh[r.z+2*r.y+r.x];const e=Rd(Ph(r));return _s.fromPoints(e)}function Oc(r,e,o){return Js(r,r,1-o),Hu(r,r,e,o)}function mu(r,e){const o=Ju(e.zoom);if(0===o)return jl(r);const l=Ph(r),f=Rd(l),_=Vl(l.getWest())*e.worldSize,y=Vl(l.getEast())*e.worldSize,w=$l(l.getNorth())*e.worldSize,E=$l(l.getSouth())*e.worldSize,D=[_,w,0],L=[y,w,0],B=[_,E,0],V=[y,E,0],Y=Mc([],e.globeMatrix);return co(D,D,Y),co(L,L,Y),co(B,B,Y),co(V,V,Y),f[0]=Oc(f[0],B,o),f[1]=Oc(f[1],V,o),f[2]=Oc(f[2],L,o),f[3]=Oc(f[3],D,o),_s.fromPoints(f)}function bg(r,e,o){for(const l of r)co(l,l,e),Js(l,l,o)}function Ph({x:r,y:e,z:o}){const l=1/(1<Math.PI/2*1.01}const Dp=ne(85),Tg=Math.cos(Dp),al=Math.sin(Dp),gu=6371008.8,pc=2*Math.PI*gu;class Cl{constructor(e,o){if(isNaN(e)||isNaN(o))throw new Error(`Invalid LngLat object: (${e}, ${o})`);if(this.lng=+e,this.lat=+o,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new Cl(cn(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const o=Math.PI/180,l=this.lat*o,f=e.lat*o,_=Math.sin(l)*Math.sin(f)+Math.cos(l)*Math.cos(f)*Math.cos((e.lng-this.lng)*o);return gu*Math.acos(Math.min(_,1))}toBounds(e=0){const o=360*e/40075017,l=o/Math.cos(Math.PI/180*this.lat);return new Ul(new Cl(this.lng-l,this.lat-o),new Cl(this.lng+l,this.lat+o))}toEcef(e){const o=Fa(e);return Rc(this.lat,this.lng,Xs+o)}static convert(e){if(e instanceof Cl)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Cl(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Cl(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}var Gr=Cl;function _u(r){return pc*Math.cos(r*Math.PI/180)}function Vl(r){return(180+r)/360}function $l(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function Na(r,e){return r/_u(e)}function Ba(r){return 360*r-180}function To(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function Ip(r,e){return r*_u(To(e))}const ys=85.051129;function Mp(r){return 1/Math.cos(r*Math.PI/180)}class Lc{constructor(e,o,l=0){this.x=+e,this.y=+o,this.z=+l}static fromLngLat(e,o=0){const l=Gr.convert(e);return new Lc(Vl(l.lng),$l(l.lat),Na(o,l.lat))}toLngLat(){return new Gr(Ba(this.x),To(this.y))}toAltitude(){return Ip(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/pc*Mp(To(this.y))}}function Dg(r,e,o,l,f,_,y,w,E){const D=(e+l)/2,L=(o+f)/2,B=new Ae(D,L);w(B),function(V,Y,Q,he,Ue,ot){const bt=Q-Ue,st=he-ot;return Math.abs((he-Y)*bt-(Q-V)*st)/Math.hypot(bt,st)}(B.x,B.y,_.x,_.y,y.x,y.y)>=E?(Dg(r,e,o,D,L,_,B,w,E),Dg(r,D,L,l,f,B,y,w,E)):r.push(y)}function Cy(r,e,o){let l=r[0],f=l.x,_=l.y;e(l);const y=[l];for(let w=1;wr.x+1||lr.y+1)&&Dt("Geometry exceeds allowed extent, reduce your vector tile buffer size"),r}function Zl(r,e,o){const l=r.loadGeometry(),f=r.extent,_=Ii/f;if(e&&o&&o.projection.isReprojectedInTileSpace){const y=1<{const Y=Ba((e.x+V.x/f)/y),Q=To((e.y+V.y/f)/y),he=L.project(Y,Q);V.x=(he.x*w-E)*f,V.y=(he.y*w-D)*f};for(let V=0;V=f||Q.y<0||Q.y>=f||(B(Q),Y.push(Q));l[V]=Y}}for(const y of l)for(const w of y)Ty(w,_);return l}function ll(r,e){return{type:r.type,id:r.id,properties:r.properties,geometry:e?Zl(r):[]}}function Qs(r,e,o,l,f){r.emplaceBack(2*e+(l+1)/2,2*o+(f+1)/2)}function El(r,e,o){r.emplaceBack(e.x,e.y,e.z,16384*o[0],16384*o[1],16384*o[2])}class Ld{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new Yn,this.indexArray=new Di,this.segments=new _o,this.programConfigurations=new il(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id)}populate(e,o,l,f){const _=this.layers[0],y=[];let w=null;"circle"===_.type&&(w=_.layout.get("circle-sort-key"));for(const{feature:D,id:L,index:B,sourceLayerIndex:V}of e){const Y=this.layers[0]._featureFilter.needGeometry,Q=ll(D,Y);if(!this.layers[0]._featureFilter.filter(new N(this.zoom),Q,l))continue;const he=w?w.evaluate(Q,{},l):void 0,Ue={id:L,properties:D.properties,type:D.type,sourceLayerIndex:V,index:B,geometry:Y?Q.geometry:Zl(D,l,f),patterns:{},sortKey:he};y.push(Ue)}w&&y.sort((D,L)=>D.sortKey-L.sortKey);let E=null;"globe"===f.projection.name&&(this.globeExtVertexArray=new Qn,E=f.projection);for(const D of y){const{geometry:L,index:B,sourceLayerIndex:V}=D,Y=e[B].feature;this.addFeature(D,L,B,o.availableImages,l,E),o.featureIndex.insert(Y,L,B,V,this.index)}}update(e,o,l,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,l,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ju.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,fg.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,o,l,f,_,y){for(const w of o)for(const E of w){const D=E.x,L=E.y;if(D<0||D>=Ii||L<0||L>=Ii)continue;if(y){const Y=y.projectTilePoint(D,L,_),Q=y.upVector(_,D,L),he=this.globeExtVertexArray;El(he,Y,Q),El(he,Y,Q),El(he,Y,Q),El(he,Y,Q)}const B=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),V=B.vertexLength;Qs(this.layoutVertexArray,D,L,-1,-1),Qs(this.layoutVertexArray,D,L,1,-1),Qs(this.layoutVertexArray,D,L,1,1),Qs(this.layoutVertexArray,D,L,-1,1),this.indexArray.emplaceBack(V,V+1,V+2),this.indexArray.emplaceBack(V,V+2,V+3),B.vertexLength+=4,B.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,l,{},f,_)}}function Pp(r,e){for(let o=0;o1){if(Xu(r,e))return!0;for(let l=0;l1?o:o.sub(e)._mult(f)._add(e))}function Dy(r,e){let o,l,f,_=!1;for(let y=0;ye.y!=f.y>e.y&&e.x<(f.x-l.x)*(e.y-l.y)/(f.y-l.y)+l.x&&(_=!_)}return _}function Fc(r,e){let o=!1;for(let l=0,f=r.length-1;le.y!=y.y>e.y&&e.x<(y.x-_.x)*(e.y-_.y)/(y.y-_.y)+_.x&&(o=!o)}return o}function Iy(r,e,o,l,f){for(const y of r)if(e<=y.x&&o<=y.y&&l>=y.x&&f>=y.y)return!0;const _=[new Ae(e,o),new Ae(e,f),new Ae(l,f),new Ae(l,o)];if(r.length>2)for(const y of _)if(Fc(r,y))return!0;for(let y=0;yf.x&&e.x>f.x||r.yf.y&&e.y>f.y)return!1;const _=Ie(r,e,o[0]);return _!==Ie(r,e,o[1])||_!==Ie(r,e,o[2])||_!==Ie(r,e,o[3])}function Qu(r,e,o){const l=e.paint.get(r).value;return"constant"===l.kind?l.value:o.programConfigurations.get(e.id).getMaxValue(r)}function ed(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Ay(r,e,o,l,f){if(!e[0]&&!e[1])return r;const _=Ae.convert(e)._mult(f);"viewport"===o&&_._rotate(-l);const y=[];for(let w=0;w0){const st=o.projection.upVector(D,Y.x,Y.y);he.x+=st[0]*L*Q,he.y+=st[1]*L*Q,he.z+=st[2]*L*Q}const Ue=_?Y:G0(he.x,he.y,he.z,l),ot=_?r.tilespaceRays.map(st=>Ry(st,Q)):r.queryGeometry.screenGeometry,bt=hu([],[he.x,he.y,he.z,1],l);if(!y&&_?E*=bt[3]/o.cameraToCenterDistance:y&&!_&&(E*=o.cameraToCenterDistance/bt[3]),_){const st=To((V.y/Ii+D.y)/(1<r.width||f.height>r.height||o.x>r.width-f.width||o.y>r.height-f.height)throw new RangeError("out of range source coordinates for image copy");if(f.width>e.width||f.height>e.height||l.x>e.width-f.width||l.y>e.height-f.height)throw new RangeError("out of range destination coordinates for image copy");const y=r.data,w=e.data;for(let E=0;E{e[r.evaluationKey]=E;const D=r.expression.evaluate(e);f.data[y+w+0]=Math.floor(255*D.r/D.a),f.data[y+w+1]=Math.floor(255*D.g/D.a),f.data[y+w+2]=Math.floor(255*D.b/D.a),f.data[y+w+3]=Math.floor(255*D.a)};if(r.clips)for(let y=0,w=0;y80*o){l=_=r[0],f=y=r[1];for(var Q=o;Q_&&(_=w),E>y&&(y=E);D=0!==(D=Math.max(_-l,y-f))?32767/D:0}return nd(V,Y,o,l,f,D,0),Y}function Sg(r,e,o,l,f){var _,y;if(f===Up(r,e,o,l)>0)for(_=e;_=e;_-=l)y=zp(_,r[_],r[_+1],y);return y&&Nc(y,y.next)&&(Bd(y),y=y.next),y}function yu(r,e){if(!r)return r;e||(e=r);var o,l=r;do{if(o=!1,l.steiner||!Nc(l,l.next)&&0!==Ir(l.prev,l,l.next))l=l.next;else{if(Bd(l),(l=e=l.prev)===l.next)break;o=!0}}while(o||l!==e);return e}function nd(r,e,o,l,f,_,y){if(r){!y&&_&&function(L,B,V,Y){var Q=L;do{0===Q.z&&(Q.z=ea(Q.x,Q.y,B,V,Y)),Q.prevZ=Q.prev,Q.nextZ=Q.next,Q=Q.next}while(Q!==L);Q.prevZ.nextZ=null,Q.prevZ=null,function(he){var Ue,ot,bt,st,vt,St,At,un,nn=1;do{for(ot=he,he=null,vt=null,St=0;ot;){for(St++,bt=ot,At=0,Ue=0;Ue0||un>0&&bt;)0!==At&&(0===un||!bt||ot.z<=bt.z)?(st=ot,ot=ot.nextZ,At--):(st=bt,bt=bt.nextZ,un--),vt?vt.nextZ=st:he=st,st.prevZ=vt,vt=st;ot=bt}vt.nextZ=null,nn*=2}while(St>1)}(Q)}(r,l,f,_);for(var w,E,D=r;r.prev!==r.next;)if(w=r.prev,E=r.next,_?ky(r,l,f,_):kp(r))e.push(w.i/o|0),e.push(r.i/o|0),e.push(E.i/o|0),Bd(r),r=E.next,D=E.next;else if((r=E)===D){y?1===y?nd(r=Fy(yu(r),e,o),e,o,l,f,_,2):2===y&&Ny(r,e,o,l,f,_):nd(yu(r),e,o,l,f,_,1);break}}}function kp(r){var e=r.prev,o=r,l=r.next;if(Ir(e,o,l)>=0)return!1;for(var f=e.x,_=o.x,y=l.x,w=e.y,E=o.y,D=l.y,L=f<_?f_?f>y?f:y:_>y?_:y,Y=w>E?w>D?w:D:E>D?E:D,Q=l.next;Q!==e;){if(Q.x>=L&&Q.x<=V&&Q.y>=B&&Q.y<=Y&&vu(f,w,_,E,y,D,Q.x,Q.y)&&Ir(Q.prev,Q,Q.next)>=0)return!1;Q=Q.next}return!0}function ky(r,e,o,l){var f=r.prev,_=r,y=r.next;if(Ir(f,_,y)>=0)return!1;for(var w=f.x,E=_.x,D=y.x,L=f.y,B=_.y,V=y.y,Y=wE?w>D?w:D:E>D?E:D,Ue=L>B?L>V?L:V:B>V?B:V,ot=ea(Y,Q,e,o,l),bt=ea(he,Ue,e,o,l),st=r.prevZ,vt=r.nextZ;st&&st.z>=ot&&vt&&vt.z<=bt;){if(st.x>=Y&&st.x<=he&&st.y>=Q&&st.y<=Ue&&st!==f&&st!==y&&vu(w,L,E,B,D,V,st.x,st.y)&&Ir(st.prev,st,st.next)>=0||(st=st.prevZ,vt.x>=Y&&vt.x<=he&&vt.y>=Q&&vt.y<=Ue&&vt!==f&&vt!==y&&vu(w,L,E,B,D,V,vt.x,vt.y)&&Ir(vt.prev,vt,vt.next)>=0))return!1;vt=vt.nextZ}for(;st&&st.z>=ot;){if(st.x>=Y&&st.x<=he&&st.y>=Q&&st.y<=Ue&&st!==f&&st!==y&&vu(w,L,E,B,D,V,st.x,st.y)&&Ir(st.prev,st,st.next)>=0)return!1;st=st.prevZ}for(;vt&&vt.z<=bt;){if(vt.x>=Y&&vt.x<=he&&vt.y>=Q&&vt.y<=Ue&&vt!==f&&vt!==y&&vu(w,L,E,B,D,V,vt.x,vt.y)&&Ir(vt.prev,vt,vt.next)>=0)return!1;vt=vt.nextZ}return!0}function Fy(r,e,o){var l=r;do{var f=l.prev,_=l.next.next;!Nc(f,_)&&Bp(f,l,l.next,_)&&id(f,_)&&id(_,f)&&(e.push(f.i/o|0),e.push(l.i/o|0),e.push(_.i/o|0),Bd(l),Bd(l.next),l=r=_),l=l.next}while(l!==r);return yu(l)}function Ny(r,e,o,l,f,_){var y=r;do{for(var w=y.next.next;w!==y.prev;){if(y.i!==w.i&&Np(y,w)){var E=Og(y,w);return y=yu(y,y.next),E=yu(E,E.next),nd(y,e,o,l,f,_,0),void nd(E,e,o,l,f,_,0)}w=w.next}y=y.next}while(y!==r)}function Pg(r,e){return r.x-e.x}function By(r,e){var o=function(f,_){var y,w=_,E=f.x,D=f.y,L=-1/0;do{if(D<=w.y&&D>=w.next.y&&w.next.y!==w.y){var B=w.x+(D-w.y)*(w.next.x-w.x)/(w.next.y-w.y);if(B<=E&&B>L&&(L=B,y=w.x=w.x&&w.x>=Q&&E!==w.x&&vu(Dy.x||w.x===y.x&&zy(y,w)))&&(y=w,Ue=V)),w=w.next}while(w!==Y);return y}(r,e);if(!o)return e;var l=Og(o,r);return yu(l,l.next),yu(o,o.next)}function zy(r,e){return Ir(r.prev,r,e.prev)<0&&Ir(e.next,r,r.next)<0}function ea(r,e,o,l,f){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-o)*f|0)|r<<8))|r<<4))|r<<2))|r<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-l)*f|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Fp(r){var e=r,o=r;do{(e.x=(r-y)*(_-w)&&(r-y)*(l-w)>=(o-y)*(e-w)&&(o-y)*(_-w)>=(f-y)*(l-w)}function Np(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!function(o,l){var f=o;do{if(f.i!==o.i&&f.next.i!==o.i&&f.i!==l.i&&f.next.i!==l.i&&Bp(f,f.next,o,l))return!0;f=f.next}while(f!==o);return!1}(r,e)&&(id(r,e)&&id(e,r)&&function(o,l){var f=o,_=!1,y=(o.x+l.x)/2,w=(o.y+l.y)/2;do{f.y>w!=f.next.y>w&&f.next.y!==f.y&&y<(f.next.x-f.x)*(w-f.y)/(f.next.y-f.y)+f.x&&(_=!_),f=f.next}while(f!==o);return _}(r,e)&&(Ir(r.prev,r,e.prev)||Ir(r,e.prev,e))||Nc(r,e)&&Ir(r.prev,r,r.next)>0&&Ir(e.prev,e,e.next)>0)}function Ir(r,e,o){return(e.y-r.y)*(o.x-e.x)-(e.x-r.x)*(o.y-e.y)}function Nc(r,e){return r.x===e.x&&r.y===e.y}function Bp(r,e,o,l){var f=zh(Ir(r,e,o)),_=zh(Ir(r,e,l)),y=zh(Ir(o,l,r)),w=zh(Ir(o,l,e));return f!==_&&y!==w||!(0!==f||!Nd(r,o,e))||!(0!==_||!Nd(r,l,e))||!(0!==y||!Nd(o,r,l))||!(0!==w||!Nd(o,e,l))}function Nd(r,e,o){return e.x<=Math.max(r.x,o.x)&&e.x>=Math.min(r.x,o.x)&&e.y<=Math.max(r.y,o.y)&&e.y>=Math.min(r.y,o.y)}function zh(r){return r>0?1:r<0?-1:0}function id(r,e){return Ir(r.prev,r,r.next)<0?Ir(r,e,r.next)>=0&&Ir(r,r.prev,e)>=0:Ir(r,e,r.prev)<0||Ir(r,r.next,e)<0}function Og(r,e){var o=new Uh(r.i,r.x,r.y),l=new Uh(e.i,e.x,e.y),f=r.next,_=e.prev;return r.next=e,e.prev=r,o.next=f,f.prev=o,l.next=o,o.prev=l,_.next=l,l.prev=_,l}function zp(r,e,o,l){var f=new Uh(r,e,o);return l?(f.next=l.next,f.prev=l,l.next.prev=f,l.next=f):(f.prev=f,f.next=f),f}function Bd(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function Uh(r,e,o){this.i=r,this.x=e,this.y=o,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Up(r,e,o,l){for(var f=0,_=e,y=o-l;_0&&o.holes.push(l+=r[f-1].length)}return o};var jp=Ye(td.exports);function Vp(r,e,o,l,f){jh(r,e,o||0,l||r.length-1,f||Ud)}function jh(r,e,o,l,f){for(;l>o;){if(l-o>600){var _=l-o+1,y=e-o+1,w=Math.log(_),E=.5*Math.exp(2*w/3),D=.5*Math.sqrt(w*E*(_-E)/_)*(y-_/2<0?-1:1);jh(r,e,Math.max(o,Math.floor(e-y*E/_+D)),Math.min(l,Math.floor(e+(_-y)*E/_+D)),f)}var L=r[e],B=o,V=l;for(zd(r,o,e),f(r[l],L)>0&&zd(r,o,l);B0;)V--}0===f(r[o],L)?zd(r,o,V):zd(r,++V,l),V<=e&&(o=V+1),e<=V&&(l=V-1)}}function zd(r,e,o){var l=r[e];r[e]=r[o],r[o]=l}function Ud(r,e){return re?1:0}function $p(r,e){const o=r.length;if(o<=1)return[r];const l=[];let f,_;for(let y=0;y1)for(let y=0;yo.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Yn,this.indexArray=new Di,this.indexArray2=new oo,this.programConfigurations=new il(e.layers,e.zoom),this.segments=new _o,this.segments2=new _o,this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.projection=e.projection}populate(e,o,l,f){this.hasPattern=Vh("fill",this.layers,o);const _=this.layers[0].layout.get("fill-sort-key"),y=[];for(const{feature:w,id:E,index:D,sourceLayerIndex:L}of e){const B=this.layers[0]._featureFilter.needGeometry,V=ll(w,B);if(!this.layers[0]._featureFilter.filter(new N(this.zoom),V,l))continue;const Y=_?_.evaluate(V,{},l,o.availableImages):void 0,Q={id:E,properties:w.properties,type:w.type,sourceLayerIndex:L,index:D,geometry:B?V.geometry:Zl(w,l,f),patterns:{},sortKey:Y};y.push(Q)}_&&y.sort((w,E)=>w.sortKey-E.sortKey);for(const w of y){const{geometry:E,index:D,sourceLayerIndex:L}=w;if(this.hasPattern){const B=$h("fill",this.layers,w,this.zoom,o);this.patternFeatures.push(B)}else this.addFeature(w,E,D,l,{},o.availableImages);o.featureIndex.insert(e[D].feature,E,D,L,this.index)}}update(e,o,l,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,l,f)}addFeatures(e,o,l,f,_){for(const y of this.patternFeatures)this.addFeature(y,y.geometry,y.index,o,l,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Nh),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,o,l,f,_,y=[]){for(const w of $p(o,500)){let E=0;for(const Q of w)E+=Q.length;const D=this.segments.prepareSegment(E,this.layoutVertexArray,this.indexArray),L=D.vertexLength,B=[],V=[];for(const Q of w){if(0===Q.length)continue;Q!==w[0]&&V.push(B.length/2);const he=this.segments2.prepareSegment(Q.length,this.layoutVertexArray,this.indexArray2),Ue=he.vertexLength;this.layoutVertexArray.emplaceBack(Q[0].x,Q[0].y),this.indexArray2.emplaceBack(Ue+Q.length-1,Ue),B.push(Q[0].x),B.push(Q[0].y);for(let ot=1;ot>3}if(f--,1===l||2===l)_+=r.readSVarint(),y+=r.readSVarint(),1===l&&(e&&w.push(e),e=[]),e.push(new Vy(_,y));else{if(7!==l)throw new Error("unknown command "+l);e&&e.push(e[0].clone())}}return e&&w.push(e),w},od.prototype.bbox=function(){var r=this._pbf;r.pos=this._geometry;for(var e=r.readVarint()+r.pos,o=1,l=0,f=0,_=0,y=1/0,w=-1/0,E=1/0,D=-1/0;r.pos>3}if(l--,1===o||2===o)(f+=r.readSVarint())w&&(w=f),(_+=r.readSVarint())D&&(D=_);else if(7!==o)throw new Error("unknown command "+o)}return[y,E,w,D]},od.prototype.toGeoJSON=function(r,e,o){var l,f,_=this.extent*Math.pow(2,o),y=this.extent*r,w=this.extent*e,E=this.loadGeometry(),D=od.types[this.type];function L(Y){for(var Q=0;Q>3;f=1===y?l.readString():2===y?l.readFloat():3===y?l.readDouble():4===y?l.readVarint64():5===y?l.readVarint():6===y?l.readSVarint():7===y?l.readBoolean():null}return f}(o))}Wh.prototype.feature=function(r){if(r<0||r>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[r];var e=this._pbf.readVarint()+this._pbf.pos;return new Vd(this._pbf,e,this.extent,this._keys,this._values)};var Gy=$d;function Gp(r,e,o){if(3===r){var l=new Gy(o,o.readVarint()+o.pos);l.length&&(e[l.name]=l)}}var qh=Hh.VectorTile=function(r,e){this.layers=r.readFields(Gp,{},e)},Hl=Hh.VectorTileFeature=Lg;function Zd(r,e,o,l){const f=[],_=0===l?(y,w,E,D,L,B)=>{y.push(new Ae(B,E+(B-w)/(D-w)*(L-E)))}:(y,w,E,D,L,B)=>{y.push(new Ae(w+(B-E)/(L-E)*(D-w),B))};for(const y of r){const w=[];for(const E of y){if(E.length<=2)continue;const D=[];for(let V=0;Ve&&_(D,Y,Q,he,Ue,e):ot>o?bt=e&&_(D,Y,Q,he,Ue,e),bt>o&&ot<=o&&_(D,Y,Q,he,Ue,o)}let L=E[E.length-1];const B=0===l?L.x:L.y;B>=e&&B<=o&&D.push(L),D.length&&(L=D[D.length-1],D[0].x===L.x&&D[0].y===L.y||D.push(D[0]),w.push(D))}w.length&&f.push(w)}return f}Hh.VectorTileLayer=$d;const Fg=Hl.types,Hy=Math.pow(2,13);function Yh(r,e,o,l,f,_,y,w){r.emplaceBack((e<<1)+y,(o<<1)+_,(Math.floor(l*Hy)<<1)+f,Math.round(w))}function Bc(r,e,o){r.emplaceBack(e.x,e.y,e.z,16384*o[0],16384*o[1],16384*o[2])}class Ng{constructor(){this.acc=new Ae(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new Ae(e.x,e.y),this.max=new Ae(e.x,e.y))}append(e,o){this.currentPolyCount.edges++,this.acc._add(e);const l=this.min,f=this.max;e.xf.x&&(f.x=e.x),e.yf.y&&(f.y=e.y),((0===e.x||e.x===Ii)&&e.x===o.x)!=((0===e.y||e.y===Ii)&&e.y===o.y)&&this.processBorderOverlap(e,o),o.x<0!=e.x<0&&this.addBorderIntersection(0,_i(o.y,e.y,(0-o.x)/(e.x-o.x))),o.x>Ii!=e.x>Ii&&this.addBorderIntersection(1,_i(o.y,e.y,(Ii-o.x)/(e.x-o.x))),o.y<0!=e.y<0&&this.addBorderIntersection(2,_i(o.x,e.x,(0-o.y)/(e.y-o.y))),o.y>Ii!=e.y>Ii&&this.addBorderIntersection(3,_i(o.x,e.x,(Ii-o.y)/(e.y-o.y)))}addBorderIntersection(e,o){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const l=this.borders[e];ol[1]&&(l[1]=o)}processBorderOverlap(e,o){if(e.x===o.x){if(e.y===o.y)return;const l=0===e.x?0:1;this.addBorderIntersection(l,o.y),this.addBorderIntersection(l,e.y)}else{const l=0===e.y?2:3;this.addBorderIntersection(l,o.x),this.addBorderIntersection(l,e.x)}}centroid(){const e=this.polyCount.reduce((o,l)=>o+l.edges,0);return 0!==e?this.acc.div(e)._round():new Ae(0,0)}span(){return new Ae(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((e,o)=>e+ +(o[0]!==Number.MAX_VALUE),0)}}class sd{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.layoutVertexArray=new Pn,this.centroidVertexArray=new Ca,this.indexArray=new Di,this.programConfigurations=new il(e.layers,e.zoom),this.segments=new _o,this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.enableTerrain=e.enableTerrain}populate(e,o,l,f){this.features=[],this.hasPattern=Vh("fill-extrusion",this.layers,o),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(_){const y=Math.exp(Math.PI*(1-_.y/(1<<_.z)*2));return 80150034*y/(y*y+1)/Ii/(1<<_.z)}(l),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:_,id:y,index:w,sourceLayerIndex:E}of e){const D=this.layers[0]._featureFilter.needGeometry,L=ll(_,D);if(!this.layers[0]._featureFilter.filter(new N(this.zoom),L,l))continue;const B={id:y,sourceLayerIndex:E,index:w,geometry:D?L.geometry:Zl(_,l,f),properties:_.properties,type:_.type,patterns:{}},V=this.layoutVertexArray.length;this.hasPattern?this.features.push($h("fill-extrusion",this.layers,B,this.zoom,o)):this.addFeature(B,B.geometry,w,l,{},o.availableImages,f),o.featureIndex.insert(_,B.geometry,w,E,this.index,V)}this.sortBorders()}addFeatures(e,o,l,f,_){for(const y of this.features){const{geometry:w}=y;this.addFeature(y,w,y.index,o,l,f,_)}this.sortBorders()}update(e,o,l,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,l,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,jy),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,Gh.members,!0))),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,Zp.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,o,l,f,_,y,w){const E=[new Ae(0,0),new Ae(Ii,Ii)],D=w.projection,L="globe"===D.name,B=this.enableTerrain&&!L?new Ng:null,V="Polygon"===Fg[e.type];L&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Qn);const Y=$p(o,500);for(let ot=Y.length-1;ot>=0;ot--){const bt=Y[ot];(0===bt.length||(Q=bt[0]).every(st=>st.x<=0)||Q.every(st=>st.x>=Ii)||Q.every(st=>st.y<=0)||Q.every(st=>st.y>=Ii))&&Y.splice(ot,1)}var Q;let he;if(L)he=Kh(Y,E,f);else{he=[];for(const ot of Y)he.push({polygon:ot,bounds:E})}const Ue=V?this.edgeRadius:0;for(const{polygon:ot,bounds:bt}of he){let st=0,vt=0;for(const At of ot)V&&!At[0].equals(At[At.length-1])&&At.push(At[0]),vt+=V?At.length-1:At.length;const St=this.segments.prepareSegment((V?5:4)*vt,this.layoutVertexArray,this.indexArray);if(V){const At=[],un=[];st=St.vertexLength;for(const In of ot){let Jn,hn;In.length&&In!==ot[0]&&un.push(At.length/2),Jn=In[1].sub(In[0])._perp()._unit();for(let On=1;On4&&Gd(At[At.length-2],At[0],At[1]),hn=Ue?Bg(At[At.length-2],At[0],At[1],Ue):0;nn=At[1].sub(At[0])._perp()._unit();let On=!0;for(let kn=1,Gn=0;kn0?1:0,ri=ii.dist(En);if(Gn+ri>32768&&(Gn=0),Ue){In=hi.sub(En)._perp()._unit();let Qi=Jh(ii,En,hi,Hp(nn,In),Ue);isNaN(Qi)&&(Qi=0);const zi=En.sub(ii)._unit();ii=ii.add(zi.mult(hn))._round(),En=En.add(zi.mult(-Qi))._round(),hn=Qi,nn=In}const Pi=St.vertexLength,nr=At.length>4&&Gd(ii,En,hi);let Mr=ad(Gn,Jn,On);if(Yh(this.layoutVertexArray,ii.x,ii.y,mi,Hi,0,0,Mr),Yh(this.layoutVertexArray,ii.x,ii.y,mi,Hi,0,1,Mr),Gn+=ri,Mr=ad(Gn,nr,!On),Jn=nr,Yh(this.layoutVertexArray,En.x,En.y,mi,Hi,0,0,Mr),Yh(this.layoutVertexArray,En.x,En.y,mi,Hi,0,1,Mr),St.vertexLength+=4,this.indexArray.emplaceBack(Pi+0,Pi+1,Pi+2),this.indexArray.emplaceBack(Pi+1,Pi+3,Pi+2),St.primitiveLength+=2,Ue){const Qi=st+(1===kn?At.length-2:kn-2),zi=1===kn?st:Qi+1;if(this.indexArray.emplaceBack(Pi+1,Qi,Pi+3),this.indexArray.emplaceBack(Qi,zi,Pi+3),St.primitiveLength+=2,void 0===un&&(un=Pi),!Wp(hi,At[kn],bt)){const ro=kn===At.length-1?un:St.vertexLength;this.indexArray.emplaceBack(Pi+2,Pi+3,ro),this.indexArray.emplaceBack(Pi+3,ro+1,ro),this.indexArray.emplaceBack(Pi+3,zi,ro+1),St.primitiveLength+=3}On=!On}if(L){const Qi=this.layoutVertexExtArray,zi=D.projectTilePoint(ii.x,ii.y,f),ro=D.projectTilePoint(En.x,En.y,f),ir=D.upVector(f,ii.x,ii.y),rr=D.upVector(f,En.x,En.y);Bc(Qi,zi,ir),Bc(Qi,zi,ir),Bc(Qi,ro,rr),Bc(Qi,ro,rr)}}V&&(st+=At.length-1)}}if(B&&B.polyCount.length>0){if(B.borders){B.vertexArrayOffset=this.centroidVertexArray.length;const ot=B.borders,bt=this.featuresOnBorder.push(B)-1;for(let st=0;st<4;st++)ot[st][0]!==Number.MAX_VALUE&&this.borders[st].push(bt)}this.encodeCentroid(B.borders?void 0:B.centroid(),B)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,l,_,y,f)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort((o,l)=>this.featuresOnBorder[o].borders[e][0]-this.featuresOnBorder[l].borders[e][0])}encodeCentroid(e,o,l=!0){let f,_;if(e)if(0!==e.y){const w=o.span()._mult(this.tileToMeter);f=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(w.x/10)),_=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(w.y/10))}else f=Math.ceil(7*(e.x+450)),_=0;else f=0,_=+l;let y=l?this.centroidVertexArray.length:o.vertexArrayOffset;for(const w of o.polyCount){l&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*w.edges+w.top);for(let E=0;Eo[1].x&&e.x>o[1].x||r.yo[1].y&&e.y>o[1].y}function Gd(r,e,o){if(r.x<0||r.x>=Ii||e.x<0||e.x>=Ii||o.x<0||o.x>=Ii)return!1;const l=o.sub(e),f=l.perp(),_=r.sub(e);return(l.x*_.x+l.y*_.y)/Math.sqrt((l.x*l.x+l.y*l.y)*(_.x*_.x+_.y*_.y))>-.866&&f.x*_.x+f.y*_.y<0}function ad(r,e,o){const l=e?2|r:-3&r;return o?1|l:-2&l}function qp(){const r=Math.PI/32,e=Math.tan(r),o=gu;return o*Math.sqrt(1+2*e*e)-o}function Kh(r,e,o){const l=1<{for(const nn of At)Q.push({polygon:nn,bounds:un})},Ue=Math.ceil(Math.log2(L)),ot=Math.ceil(Math.log2(B)),bt=Ue-ot,st=[];for(let At=0;At0?0:1);for(let At=0;Atun+1?St.push({polygons:Gn,bounds:En,depth:un+1}):he(Gn,En)}if(ii.length){const En=[new Ae(0===nn?kn:In.x,1===nn?kn:In.y),Jn];st.length>un+1?St.push({polygons:ii,bounds:En,depth:un+1}):he(ii,En)}}return Q}(r,e,Math.ceil((_-f)/11.25),Math.ceil((y-w)/11.25),1,(E,D,L)=>{if(0===E)return.5*(D+L);{const B=To((o.y+D/Ii)/l);return($l(.5*(To((o.y+L/Ii)/l)+B))*l-o.y)*Ii}})}yi(sd,"FillExtrusionBucket",{omit:["layers","features"]}),yi(Ng,"PartMetadata");const Xh=new gt({"fill-extrusion-edge-radius":new ce(It["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var zg={paint:new gt({"fill-extrusion-opacity":new ce(It["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new We(It["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ce(It["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ce(It["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new We(It["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new We(It["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new We(It["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ce(It["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new ce(It["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new ce(It["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new ce(It["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:Xh};function Qh(r,e,o){var l=2*Math.PI*6378137/256/Math.pow(2,o);return[r*l-2*Math.PI*6378137/2,e*l-2*Math.PI*6378137/2]}class zc{constructor(e,o,l){this.z=e,this.x=o,this.y=l,this.key=Hd(0,e,e,o,l)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,o){const l=(y=this.y,w=this.z,E=Qh(256*(_=this.x),256*(y=Math.pow(2,w)-y-1),w),D=Qh(256*(_+1),256*(y+1),w),E[0]+","+E[1]+","+D[0]+","+D[1]),f=function(_,y,w){let E,D="";for(let L=_;L>0;L--)E=1<this.canonical.z?new As(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new As(e,this.wrap,e,this.canonical.x>>o,this.canonical.y>>o)}calculateScaledKey(e,o=!0){if(this.overscaledZ===e&&o)return this.key;if(e>this.canonical.z)return Hd(this.wrap*+o,e,this.canonical.z,this.canonical.x,this.canonical.y);{const l=this.canonical.z-e;return Hd(this.wrap*+o,e,e,this.canonical.x>>l,this.canonical.y>>l)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const o=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>o&&e.canonical.y===this.canonical.y>>o}children(e){if(this.overscaledZ>=e)return[new As(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const o=this.canonical.z+1,l=2*this.canonical.x,f=2*this.canonical.y;return[new As(o,this.wrap,o,l,f),new As(o,this.wrap,o,l+1,f),new As(o,this.wrap,o,l,f+1),new As(o,this.wrap,o,l+1,f+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.yo.id),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(o=>{this.gradients[o.id]={}}),this.layoutVertexArray=new dn,this.layoutVertexArray2=new Zn,this.indexArray=new Di,this.programConfigurations=new il(e.layers,e.zoom),this.segments=new _o,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id)}populate(e,o,l,f){this.hasPattern=Vh("line",this.layers,o);const _=this.layers[0].layout.get("line-sort-key"),y=[];for(const{feature:L,id:B,index:V,sourceLayerIndex:Y}of e){const Q=this.layers[0]._featureFilter.needGeometry,he=ll(L,Q);if(!this.layers[0]._featureFilter.filter(new N(this.zoom),he,l))continue;const Ue=_?_.evaluate(he,{},l):void 0,ot={id:B,properties:L.properties,type:L.type,sourceLayerIndex:Y,index:V,geometry:Q?he.geometry:Zl(L,l,f),patterns:{},sortKey:Ue};y.push(ot)}_&&y.sort((L,B)=>L.sortKey-B.sortKey);const{lineAtlas:w,featureIndex:E}=o,D=this.addConstantDashes(w);for(const L of y){const{geometry:B,index:V,sourceLayerIndex:Y}=L;if(D&&this.addFeatureDashes(L,w),this.hasPattern){const Q=$h("line",this.layers,L,this.zoom,o);this.patternFeatures.push(Q)}else this.addFeature(L,B,V,l,w.positions,o.availableImages);E.insert(e[V].feature,B,V,Y,this.index)}}addConstantDashes(e){let o=!1;for(const l of this.layers){const f=l.paint.get("line-dasharray").value,_=l.layout.get("line-cap").value;if("constant"!==f.kind||"constant"!==_.kind)o=!0;else{const y=_.value,w=f.value;if(!w)continue;e.addDash(w,y)}}return o}addFeatureDashes(e,o){const l=this.zoom;for(const f of this.layers){const _=f.paint.get("line-dasharray").value,y=f.layout.get("line-cap").value;if("constant"===_.kind&&"constant"===y.kind)continue;let w,E;if("constant"===_.kind){if(w=_.value,!w)continue}else w=_.evaluate({zoom:l},e);E="constant"===y.kind?y.value:y.evaluate({zoom:l},e),o.addDash(w,E),e.patterns[f.id]=o.getKey(w,E)}}update(e,o,l,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,l,f)}addFeatures(e,o,l,f,_){for(const y of this.patternFeatures)this.addFeature(y,y.geometry,y.index,o,l,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Wy)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Kp),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,o,l,f,_,y){const w=this.layers[0].layout,E=w.get("line-join").evaluate(e,{}),D=w.get("line-cap").evaluate(e,{}),L=w.get("line-miter-limit"),B=w.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const V of o)this.addLine(V,e,E,D,L,B);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,l,_,y,f)}addLine(e,o,l,f,_,y){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let ot=0;ot=2&&e[E-1].equals(e[E-2]);)E--;let D=0;for(;D0;if(un&&ot>D){const hn=V.dist(Y);if(hn>2*L){const On=V.sub(V.sub(Y)._mult(L/hn)._round());this.updateDistance(Y,On),this.addCurrentVertex(On,he,0,0,B),Y=On}}const In=Y&&Q;let Jn=In?l:w?"butt":f;if(In&&"round"===Jn&&(St_&&(Jn="bevel"),"bevel"===Jn&&(St>2&&(Jn="flipbevel"),St<_&&(Jn="miter")),Y&&this.updateDistance(Y,V),"miter"===Jn)bt._mult(St),this.addCurrentVertex(V,bt,0,0,B);else if("flipbevel"===Jn){if(St>100)bt=Ue.mult(-1);else{const hn=St*he.add(Ue).mag()/he.sub(Ue).mag();bt._perp()._mult(hn*(nn?-1:1))}this.addCurrentVertex(V,bt,0,0,B),this.addCurrentVertex(V,bt.mult(-1),0,0,B)}else if("bevel"===Jn||"fakeround"===Jn){const hn=-Math.sqrt(St*St-1),On=nn?hn:0,kn=nn?0:hn;if(Y&&this.addCurrentVertex(V,he,On,kn,B),"fakeround"===Jn){const Gn=Math.round(180*At/Math.PI/20);for(let ii=1;ii2*L){const On=V.add(Q.sub(V)._mult(L/hn)._round());this.updateDistance(V,On),this.addCurrentVertex(On,Ue,0,0,B),V=On}}}}addCurrentVertex(e,o,l,f,_,y=!1){const w=o.y*f-o.x,E=-o.y-o.x*f;this.addHalfVertex(e,o.x+o.y*l,o.y-o.x*l,y,!1,l,_),this.addHalfVertex(e,w,E,y,!0,-f,_)}addHalfVertex({x:e,y:o},l,f,_,y,w,E){this.layoutVertexArray.emplaceBack((e<<1)+(_?1:0),(o<<1)+(y?1:0),Math.round(63*l)+128,Math.round(63*f)+128,1+(0===w?0:w<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const D=E.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,D),E.primitiveLength++),y?this.e2=D:this.e1=D}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,o){this.distance+=e.dist(o),this.updateScaledDistance()}}yi(tf,"LineBucket",{omit:["layers","patternFeatures"]});const nf=new gt({"line-cap":new We(It.layout_line["line-cap"]),"line-join":new We(It.layout_line["line-join"]),"line-miter-limit":new ce(It.layout_line["line-miter-limit"]),"line-round-limit":new ce(It.layout_line["line-round-limit"]),"line-sort-key":new We(It.layout_line["line-sort-key"])});var rf={paint:new gt({"line-opacity":new We(It.paint_line["line-opacity"]),"line-color":new We(It.paint_line["line-color"]),"line-translate":new ce(It.paint_line["line-translate"]),"line-translate-anchor":new ce(It.paint_line["line-translate-anchor"]),"line-width":new We(It.paint_line["line-width"]),"line-gap-width":new We(It.paint_line["line-gap-width"]),"line-offset":new We(It.paint_line["line-offset"]),"line-blur":new We(It.paint_line["line-blur"]),"line-dasharray":new We(It.paint_line["line-dasharray"]),"line-pattern":new We(It.paint_line["line-pattern"]),"line-gradient":new pt(It.paint_line["line-gradient"]),"line-trim-offset":new ce(It.paint_line["line-trim-offset"])}),layout:nf};const Xp=new class extends We{possiblyEvaluate(r,e){return e=new N(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,transition:e.transition}),super.possiblyEvaluate(r,e)}evaluate(r,e,o,l){return e=ke({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(r,e,o,l)}}(rf.paint.properties["line-width"].specification);function Qp(r,e){return e>0?e+2*r:r}Xp.useIntegerZoom=!0;const jg=Wt([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Vg=Wt([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),Yy=Wt([{name:"a_projected_pos",components:4,type:"Float32"}],4);Wt([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Jy=Wt([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),Ky=Wt([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);Wt([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const $g=Wt([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),Xy=Wt([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);Wt([{name:"triangle",components:3,type:"Uint16"}]),Wt([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),Wt([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Wt([{type:"Float32",name:"offsetX"}]),Wt([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var yo=24;const da=128;function em(r,e){const{expression:o}=e;if("constant"===o.kind)return{kind:"constant",layoutSize:o.evaluate(new N(r+1))};if("source"===o.kind)return{kind:"source"};{const{zoomStops:l,interpolationType:f}=o;let _=0;for(;_{l.text=function(f,_,y){const w=_.layout.get("text-transform").evaluate(y,{});return"uppercase"===w?f=f.toLocaleUpperCase():"lowercase"===w&&(f=f.toLocaleLowerCase()),M.applyArabicShaping&&(f=M.applyArabicShaping(f)),f}(l.text,e,o)}),r}const sf={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42","\u2190":"\u2191","\u2192":"\u2193"};function Zg(r){return"\ufe36"===r||"\ufe48"===r||"\ufe38"===r||"\ufe44"===r||"\ufe42"===r||"\ufe3e"===r||"\ufe3c"===r||"\ufe3a"===r||"\ufe18"===r||"\ufe40"===r||"\ufe10"===r||"\ufe13"===r||"\ufe14"===r||"\uff40"===r||"\uffe3"===r||"\ufe11"===r||"\ufe12"===r}function Qy(r){return"\ufe35"===r||"\ufe47"===r||"\ufe37"===r||"\ufe43"===r||"\ufe41"===r||"\ufe3d"===r||"\ufe3b"===r||"\ufe39"===r||"\ufe17"===r||"\ufe3f"===r}var Gg=Hr,Hg=function(r,e,o,l,f){var _,y,w=8*f-l-1,E=(1<>1,L=-7,B=o?f-1:0,V=o?-1:1,Y=r[e+B];for(B+=V,_=Y&(1<<-L)-1,Y>>=-L,L+=w;L>0;_=256*_+r[e+B],B+=V,L-=8);for(y=_&(1<<-L)-1,_>>=-L,L+=l;L>0;y=256*y+r[e+B],B+=V,L-=8);if(0===_)_=1-D;else{if(_===E)return y?NaN:1/0*(Y?-1:1);y+=Math.pow(2,l),_-=D}return(Y?-1:1)*y*Math.pow(2,_-l)},Wg=function(r,e,o,l,f,_){var y,w,E,D=8*_-f-1,L=(1<>1,V=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,Y=l?0:_-1,Q=l?1:-1,he=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(w=isNaN(e)?1:0,y=L):(y=Math.floor(Math.log(e)/Math.LN2),e*(E=Math.pow(2,-y))<1&&(y--,E*=2),(e+=y+B>=1?V/E:V*Math.pow(2,1-B))*E>=2&&(y++,E/=2),y+B>=L?(w=0,y=L):y+B>=1?(w=(e*E-1)*Math.pow(2,f),y+=B):(w=e*Math.pow(2,B-1)*Math.pow(2,f),y=0));f>=8;r[o+Y]=255&w,Y+=Q,w/=256,f-=8);for(y=y<0;r[o+Y]=255&y,Y+=Q,y/=256,D-=8);r[o+Y-Q]|=128*he};function Hr(r){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(r)?r:new Uint8Array(r||0),this.pos=0,this.type=0,this.length=this.buf.length}Hr.Varint=0,Hr.Fixed64=1,Hr.Bytes=2,Hr.Fixed32=5;var Tl=4294967296,ud=1/Tl,nm=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function Wl(r){return r.type===Hr.Bytes?r.readVarint()+r.pos:r.pos+1}function ev(r,e,o){var l=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));o.realloc(l);for(var f=o.pos-1;f>=r;f--)o.buf[f+l]=o.buf[f]}function J0(r,e){for(var o=0;o>>8,r[o+2]=e>>>16,r[o+3]=e>>>24}function om(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16)+(r[e+3]<<24)}Hr.prototype={destroy:function(){this.buf=null},readFields:function(r,e,o){for(o=o||this.length;this.pos>3,_=this.pos;this.type=7&l,r(f,e,this),this.pos===_&&this.skip(l)}return e},readMessage:function(r,e){return this.readFields(r,e,this.readVarint()+this.pos)},readFixed32:function(){var r=af(this.buf,this.pos);return this.pos+=4,r},readSFixed32:function(){var r=om(this.buf,this.pos);return this.pos+=4,r},readFixed64:function(){var r=af(this.buf,this.pos)+af(this.buf,this.pos+4)*Tl;return this.pos+=8,r},readSFixed64:function(){var r=af(this.buf,this.pos)+om(this.buf,this.pos+4)*Tl;return this.pos+=8,r},readFloat:function(){var r=Hg(this.buf,this.pos,!0,23,4);return this.pos+=4,r},readDouble:function(){var r=Hg(this.buf,this.pos,!0,52,8);return this.pos+=8,r},readVarint:function(r){var e,o,l=this.buf;return e=127&(o=l[this.pos++]),o<128?e:(e|=(127&(o=l[this.pos++]))<<7,o<128?e:(e|=(127&(o=l[this.pos++]))<<14,o<128?e:(e|=(127&(o=l[this.pos++]))<<21,o<128?e:function(f,_,y){var w,E,D=y.buf;if(w=(112&(E=D[y.pos++]))>>4,E<128||(w|=(127&(E=D[y.pos++]))<<3,E<128)||(w|=(127&(E=D[y.pos++]))<<10,E<128)||(w|=(127&(E=D[y.pos++]))<<17,E<128)||(w|=(127&(E=D[y.pos++]))<<24,E<128)||(w|=(1&(E=D[y.pos++]))<<31,E<128))return function xu(r,e,o){return o?4294967296*e+(r>>>0):4294967296*(e>>>0)+(r>>>0)}(f,w,_);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(o=l[this.pos]))<<28,r,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var r=this.readVarint();return r%2==1?(r+1)/-2:r/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var r=this.readVarint()+this.pos,e=this.pos;return this.pos=r,r-e>=12&&nm?nm.decode(this.buf.subarray(e,r)):function(o,l,f){for(var _="",y=l;y239?4:L>223?3:L>191?2:1;if(y+V>f)break;1===V?L<128&&(B=L):2===V?128==(192&(w=o[y+1]))&&(B=(31&L)<<6|63&w)<=127&&(B=null):3===V?(E=o[y+2],128==(192&(w=o[y+1]))&&128==(192&E)&&((B=(15&L)<<12|(63&w)<<6|63&E)<=2047||B>=55296&&B<=57343)&&(B=null)):4===V&&(E=o[y+2],D=o[y+3],128==(192&(w=o[y+1]))&&128==(192&E)&&128==(192&D)&&((B=(15&L)<<18|(63&w)<<12|(63&E)<<6|63&D)<=65535||B>=1114112)&&(B=null)),null===B?(B=65533,V=1):B>65535&&(B-=65536,_+=String.fromCharCode(B>>>10&1023|55296),B=56320|1023&B),_+=String.fromCharCode(B),y+=V}return _}(this.buf,e,r)},readBytes:function(){var r=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,r);return this.pos=r,e},readPackedVarint:function(r,e){if(this.type!==Hr.Bytes)return r.push(this.readVarint(e));var o=Wl(this);for(r=r||[];this.pos127;);else if(e===Hr.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Hr.Fixed32)this.pos+=4;else{if(e!==Hr.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(r,e){this.writeVarint(r<<3|e)},realloc:function(r){for(var e=this.length||16;e268435455||r<0?function(e,o){var l,f,_,w;if(e>=0?(l=e%4294967296|0,f=e/4294967296|0):(f=~(-e/4294967296),4294967295^(l=~(-e%4294967296))?l=l+1|0:(l=0,f=f+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),_=l,(w=o).buf[w.pos++]=127&_|128,_>>>=7,w.buf[w.pos++]=127&_|128,_>>>=7,w.buf[w.pos++]=127&_|128,_>>>=7,w.buf[w.pos++]=127&_|128,w.buf[w.pos]=127&(_>>>=7),function(_,y){var w=(7&_)<<4;y.buf[y.pos++]|=w|((_>>>=3)?128:0),_&&(y.buf[y.pos++]=127&_|((_>>>=7)?128:0),_&&(y.buf[y.pos++]=127&_|((_>>>=7)?128:0),_&&(y.buf[y.pos++]=127&_|((_>>>=7)?128:0),_&&(y.buf[y.pos++]=127&_|((_>>>=7)?128:0),_&&(y.buf[y.pos++]=127&_)))))}(f,o)}(r,this):(this.realloc(4),this.buf[this.pos++]=127&r|(r>127?128:0),r<=127||(this.buf[this.pos++]=127&(r>>>=7)|(r>127?128:0),r<=127||(this.buf[this.pos++]=127&(r>>>=7)|(r>127?128:0),r<=127||(this.buf[this.pos++]=r>>>7&127))))},writeSVarint:function(r){this.writeVarint(r<0?2*-r-1:2*r)},writeBoolean:function(r){this.writeVarint(!!r)},writeString:function(r){r=String(r),this.realloc(4*r.length),this.pos++;var e=this.pos;this.pos=function(l,f,_){for(var y,w,E=0;E55295&&y<57344){if(!w){y>56319||E+1===f.length?(l[_++]=239,l[_++]=191,l[_++]=189):w=y;continue}if(y<56320){l[_++]=239,l[_++]=191,l[_++]=189,w=y;continue}y=w-55296<<10|y-56320|65536,w=null}else w&&(l[_++]=239,l[_++]=191,l[_++]=189,w=null);y<128?l[_++]=y:(y<2048?l[_++]=y>>6|192:(y<65536?l[_++]=y>>12|224:(l[_++]=y>>18|240,l[_++]=y>>12&63|128),l[_++]=y>>6&63|128),l[_++]=63&y|128)}return _}(this.buf,r,this.pos);var o=this.pos-e;o>=128&&ev(e,o,this),this.pos=e-1,this.writeVarint(o),this.pos+=o},writeFloat:function(r){this.realloc(4),Wg(this.buf,r,this.pos,!0,23,4),this.pos+=4},writeDouble:function(r){this.realloc(8),Wg(this.buf,r,this.pos,!0,52,8),this.pos+=8},writeBytes:function(r){var e=r.length;this.writeVarint(e),this.realloc(e);for(var o=0;o=128&&ev(o,l,this),this.pos=o-1,this.writeVarint(l),this.pos+=l},writeMessage:function(r,e,o){this.writeTag(r,Hr.Bytes),this.writeRawMessage(e,o)},writePackedVarint:function(r,e){e.length&&this.writeMessage(r,J0,e)},writePackedSVarint:function(r,e){e.length&&this.writeMessage(r,K0,e)},writePackedBoolean:function(r,e){e.length&&this.writeMessage(r,X0,e)},writePackedFloat:function(r,e){e.length&&this.writeMessage(r,im,e)},writePackedDouble:function(r,e){e.length&&this.writeMessage(r,rm,e)},writePackedFixed32:function(r,e){e.length&&this.writeMessage(r,Q0,e)},writePackedSFixed32:function(r,e){e.length&&this.writeMessage(r,qg,e)},writePackedFixed64:function(r,e){e.length&&this.writeMessage(r,tv,e)},writePackedSFixed64:function(r,e){e.length&&this.writeMessage(r,nv,e)},writeBytesField:function(r,e){this.writeTag(r,Hr.Bytes),this.writeBytes(e)},writeFixed32Field:function(r,e){this.writeTag(r,Hr.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(r,e){this.writeTag(r,Hr.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(r,e){this.writeTag(r,Hr.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(r,e){this.writeTag(r,Hr.Fixed64),this.writeSFixed64(e)},writeVarintField:function(r,e){this.writeTag(r,Hr.Varint),this.writeVarint(e)},writeSVarintField:function(r,e){this.writeTag(r,Hr.Varint),this.writeSVarint(e)},writeStringField:function(r,e){this.writeTag(r,Hr.Bytes),this.writeString(e)},writeFloatField:function(r,e){this.writeTag(r,Hr.Fixed32),this.writeFloat(e)},writeDoubleField:function(r,e){this.writeTag(r,Hr.Fixed64),this.writeDouble(e)},writeBooleanField:function(r,e){this.writeVarintField(r,!!e)}};var bu=Ye(Gg);const sm=3;function am(r,e,o){e.glyphs=[],1===r&&o.readMessage(iv,e)}function iv(r,e,o){if(3===r){const{id:l,bitmap:f,width:_,height:y,left:w,top:E,advance:D}=o.readMessage(hd,{});e.glyphs.push({id:l,bitmap:new Gl({width:_+2*sm,height:y+2*sm},f),metrics:{width:_,height:y,left:w,top:E,advance:D}})}else 4===r?e.ascender=o.readSVarint():5===r&&(e.descender=o.readSVarint())}function hd(r,e,o){1===r?e.id=o.readVarint():2===r?e.bitmap=o.readBytes():3===r?e.width=o.readVarint():4===r?e.height=o.readVarint():5===r?e.left=o.readSVarint():6===r?e.top=o.readSVarint():7===r&&(e.advance=o.readVarint())}const Yg=sm;function lm(r){let e=0,o=0;for(const y of r)e+=y.w*y.h,o=Math.max(o,y.w);r.sort((y,w)=>w.h-y.h);const l=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),o),h:1/0}];let f=0,_=0;for(const y of r)for(let w=l.length-1;w>=0;w--){const E=l[w];if(!(y.w>E.w||y.h>E.h)){if(y.x=E.x,y.y=E.y,_=Math.max(_,y.y+y.h),f=Math.max(f,y.x+y.w),y.w===E.w&&y.h===E.h){const D=l.pop();we.hasImage(l)),e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const l in e.updatedImages)this.patchUpdatedImage(this.iconPositions[l],e.getImage(l),o),this.patchUpdatedImage(this.patternPositions[l],e.getImage(l),o)}patchUpdatedImage(e,o,l){if(!e||!o||e.version===o.version)return;e.version=o.version;const[f,_]=e.tl;l.update(o.data,void 0,{x:f,y:_})}}yi(lf,"ImagePosition"),yi(Jg,"ImageAtlas");const za={horizontal:1,vertical:2,horizontalOnly:3},Kg=-17;class Yd{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,o){const l=new Yd;return l.scale=e||1,l.fontStack=o,l}static forImage(e){const o=new Yd;return o.imageName=e,o}}class wu{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,o){const l=new wu;for(let f=0;f=0&&l>=e&&cm[this.text.charCodeAt(l)];l--)o--;this.text=this.text.substring(e,o),this.sectionIndex=this.sectionIndex.slice(e,o)}substring(e,o){const l=new wu;return l.text=this.text.substring(e,o),l.sectionIndex=this.sectionIndex.slice(e,o),l.sections=this.sections,l}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,o)=>Math.max(e,this.sections[o].scale),0)}addTextSection(e,o){this.text+=e.text,this.sections.push(Yd.forText(e.scale,e.fontStack||o));const l=this.sections.length-1;for(let f=0;f=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function Xg(r,e,o,l,f,_,y,w,E,D,L,B,V,Y,Q){const he=wu.fromFeature(r,f);B===za.vertical&&he.verticalizePunctuation(V);let Ue=[];const ot=function(At,un,nn,In,Jn,hn){if(!At)return[];const On=[],kn=function(hi,Ei,mi,Hi,ri,Pi){let nr=0;for(let Mr=0;Mr=0;let ii=0;for(let hi=0;hi0&&Ls>zr&&(zr=Ls)}else{const Rs=nn[xr.fontStack];if(!Rs)continue;Rs[uo]&&(qr=Rs[uo]);const ts=un[xr.fontStack];if(!ts)continue;const Ls=ts.glyphs[uo];if(!Ls)continue;if(zo=Ls.metrics,Oo=8203!==uo?yo:0,Pi){const Ou=void 0!==ts.ascender?Math.abs(ts.ascender):0,bd=void 0!==ts.descender?Math.abs(ts.descender):0,ch=(Ou+bd)*Rr;kr-o/2;){if(y--,y<0)return!1;w-=r[y].dist(_),_=r[y]}w+=r[y].dist(r[y+1]),y++;const E=[];let D=0;for(;wl;)D-=E.shift().angleDelta;if(D>f)return!1;y++,w+=L.dist(B)}return!0}function Eu(r){let e=0;for(let o=0;oD){const Q=(D-E)/Y,he=_i(B.x,V.x,Q),Ue=_i(B.y,V.y,Q),ot=new Ua(he,Ue,0,V.angleTo(B),L);return!y||Xd(r,ot,w,y,e)?ot:void 0}E+=Y}}function ex(r,e,o,l,f,_,y,w,E){const D=hf(l,_,y),L=ff(l,f),B=L*y,V=0===r[0].x||r[0].x===E||0===r[0].y||r[0].y===E;return e-B=0&&vt=0&&St=0&&V+D<=L){const At=new Ua(vt,St,0,bt,Q);At._round(),l&&!Xd(r,At,_,l,f)||Y.push(At)}}B+=ot}return w||Y.length||y||(Y=mf(r,B/2,o,l,f,_,y,!0,E)),Y}function fd(r,e,o,l,f){const _=[];for(let y=0;y=l&&B.x>=l||(L.x>=l?L=new Ae(l,L.y+(l-L.x)/(B.x-L.x)*(B.y-L.y))._round():B.x>=l&&(B=new Ae(l,L.y+(l-L.x)/(B.x-L.x)*(B.y-L.y))._round()),L.y>=f&&B.y>=f||(L.y>=f?L=new Ae(L.x+(f-L.y)/(B.y-L.y)*(B.x-L.x),f)._round():B.y>=f&&(B=new Ae(L.x+(f-L.y)/(B.y-L.y)*(B.x-L.x),f)._round()),E&&L.equals(E[E.length-1])||(E=[L],_.push(E)),E.push(B)))))}}return _}yi(Ua,"Anchor");const Qd=1e20;function dm(r,e,o,l,f,_,y,w,E){for(let D=e;D-1);E++,_[E]=w,y[E]=D,y[E+1]=Qd}for(let w=0,E=0;w{let w=this.entries[f];w||(w=this.entries[f]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let E=w.glyphs[_];if(void 0!==E)return void y(null,{stack:f,id:_,glyph:E});if(E=this._tinySDF(w,f,_),E)return w.glyphs[_]=E,void y(null,{stack:f,id:_,glyph:E});const D=Math.floor(_/256);if(256*D>65535)return void y(new Error("glyphs > 65535 not supported"));if(w.ranges[D])return void y(null,{stack:f,id:_,glyph:E});let L=w.requests[D];L||(L=w.requests[D]=[],Tu.loadGlyphRange(f,D,this.url,this.requestManager,(B,V)=>{if(V){w.ascender=V.ascender,w.descender=V.descender;for(const Y in V.glyphs)this._doesCharSupportLocalGlyph(+Y)||(w.glyphs[+Y]=V.glyphs[+Y]);w.ranges[D]=!0}for(const Y of L)Y(B,V);delete w.requests[D]})),L.push((B,V)=>{B?y(B):V&&y(null,{stack:f,id:_,glyph:V.glyphs[_]||null})})},(f,_)=>{if(f)o(f);else if(_){const y={};for(const{stack:w,id:E,glyph:D}of _)void 0===y[w]&&(y[w]={}),void 0===y[w].glyphs&&(y[w].glyphs={}),y[w].glyphs[E]=D&&{id:D.id,bitmap:D.bitmap.clone(),metrics:D.metrics},y[w].ascender=this.entries[w].ascender,y[w].descender=this.entries[w].descender;o(null,y)}})}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==eh.none&&(this.localGlyphMode===eh.all?!!this.localFontFamily:!!this.localFontFamily&&(pi["CJK Unified Ideographs"](e)||pi["Hangul Syllables"](e)||pi.Hiragana(e)||pi.Katakana(e)||pi["CJK Symbols and Punctuation"](e)))}_tinySDF(e,o,l){const f=this.localFontFamily;if(!f||!this._doesCharSupportLocalGlyph(l))return;let _=e.tinySDF;if(!_){let he="400";/bold/i.test(o)?he="900":/medium/i.test(o)?he="500":/light/i.test(o)&&(he="200"),_=e.tinySDF=new Tu.TinySDF({fontFamily:f,fontWeight:he,fontSize:24*Dl,buffer:3*Dl,radius:8*Dl}),_.fontWeight=he}if(this.localGlyphs[_.fontWeight][l])return this.localGlyphs[_.fontWeight][l];const y=String.fromCharCode(l),{data:w,width:E,height:D,glyphWidth:L,glyphHeight:B,glyphLeft:V,glyphTop:Y,glyphAdvance:Q}=_.draw(y);return this.localGlyphs[_.fontWeight][l]={id:l,bitmap:new Gl({width:E,height:D},w),metrics:{width:L/Dl,height:B/Dl,left:V/Dl,top:Y/Dl-27,advance:Q/Dl,localGlyph:!0}}}}Tu.loadGlyphRange=function(r,e,o,l,f){const _=256*e,y=_+255,w=l.transformRequest(l.normalizeGlyphsURL(o).replace("{fontstack}",r).replace("{range}",`${_}-${y}`),_n.Glyphs);Cn(w,(E,D)=>{if(E)f(E);else if(D){const L={},B=new bu(D).readFields(am,{});for(const V of B.glyphs)L[V.id]=V;f(null,{glyphs:L,ascender:B.ascender,descender:B.descender})}})},Tu.TinySDF=class{constructor({fontSize:r=24,buffer:e=3,radius:o=8,cutoff:l=.25,fontFamily:f="sans-serif",fontWeight:_="normal",fontStyle:y="normal"}={}){this.buffer=e,this.cutoff=l,this.radius=o;const w=this.size=r+4*e,E=this._createCanvas(w),D=this.ctx=E.getContext("2d",{willReadFrequently:!0});D.font=`${y} ${_} ${r}px ${f}`,D.textBaseline="alphabetic",D.textAlign="left",D.fillStyle="black",this.gridOuter=new Float64Array(w*w),this.gridInner=new Float64Array(w*w),this.f=new Float64Array(w),this.z=new Float64Array(w+1),this.v=new Uint16Array(w)}_createCanvas(r){const e=document.createElement("canvas");return e.width=e.height=r,e}draw(r){const{width:e,actualBoundingBoxAscent:o,actualBoundingBoxDescent:l,actualBoundingBoxLeft:f,actualBoundingBoxRight:_}=this.ctx.measureText(r),y=Math.ceil(o),w=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(_-f))),E=Math.min(this.size-this.buffer,y+Math.ceil(l)),D=w+2*this.buffer,L=E+2*this.buffer,B=Math.max(D*L,0),V=new Uint8ClampedArray(B),Y={data:V,width:D,height:L,glyphWidth:w,glyphHeight:E,glyphTop:y,glyphLeft:0,glyphAdvance:e};if(0===w||0===E)return Y;const{ctx:Q,buffer:he,gridInner:Ue,gridOuter:ot}=this;Q.clearRect(he,he,w,E),Q.fillText(r,he,he+y);const bt=Q.getImageData(he,he,w,E);ot.fill(Qd,0,B),Ue.fill(0,0,B);for(let st=0;st0?un*un:0,Ue[At]=un<0?un*un:0}}dm(ot,0,0,D,L,D,this.f,this.v,this.z),dm(Ue,he,he,w,E,D,this.f,this.v,this.z);for(let st=0;sthn+On[1]-On[0],Q=B.reduce(Y,0),he=V.reduce(Y,0),Ue=w-Q,ot=E-he;let bt=0,st=Q,vt=0,St=he,At=0,un=Ue,nn=0,In=ot;if(_.content&&l){const hn=_.content;bt=hm(B,0,hn[0]),vt=hm(V,0,hn[1]),st=hm(B,hn[0],hn[2]),St=hm(V,hn[1],hn[3]),At=hn[0]-bt,nn=hn[1]-vt,un=hn[2]-hn[0]-st,In=hn[3]-hn[1]-St}const Jn=(hn,On,kn,Gn)=>{const ii=Du(hn.stretch-bt,st,D,r.left),En=md(hn.fixed-At,un,hn.stretch,Q),hi=Du(On.stretch-vt,St,L,r.top),Ei=md(On.fixed-nn,In,On.stretch,he),mi=Du(kn.stretch-bt,st,D,r.left),Hi=md(kn.fixed-At,un,kn.stretch,Q),ri=Du(Gn.stretch-vt,St,L,r.top),Pi=md(Gn.fixed-nn,In,Gn.stretch,he),nr=new Ae(ii,hi),Mr=new Ae(mi,hi),Qi=new Ae(mi,ri),zi=new Ae(ii,ri),ro=new Ae(En/y,Ei/y),ir=new Ae(Hi/y,Pi/y),rr=e*Math.PI/180;if(rr){const eo=Math.sin(rr),zr=Math.cos(rr),kr=[zr,-eo,eo,zr];nr._matMult(kr),Mr._matMult(kr),zi._matMult(kr),Qi._matMult(kr)}const Wr=hn.stretch+hn.fixed,Or=On.stretch+On.fixed;return{tl:nr,tr:Mr,bl:zi,br:Qi,tex:{x:_.paddedRect.x+pd+Wr,y:_.paddedRect.y+pd+Or,w:kn.stretch+kn.fixed-Wr,h:Gn.stretch+Gn.fixed-Or},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:ro,pixelOffsetBR:ir,minFontScaleX:un/y/D,minFontScaleY:In/y/L,isSDF:o}};if(l&&(_.stretchX||_.stretchY)){const hn=n_(B,Ue,Q),On=n_(V,ot,he);for(let kn=0;kn0)for(let l=(this.length>>1)-1;l>=0;l--)this._down(l)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],o=this.data.pop();return this.length--,this.length>0&&(this.data[0]=o,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:o,compare:l}=this,f=o[e];for(;e>0;){const _=e-1>>1,y=o[_];if(l(f,y)>=0)break;o[e]=y,e=_}o[e]=f}_down(e){const{data:o,compare:l}=this,f=this.length>>1,_=o[e];for(;e=0)break;o[e]=w,e=y}o[e]=_}}function fm(r,e){return re?1:0}function gf(r,e=1,o=!1){let l=1/0,f=1/0,_=-1/0,y=-1/0;const w=r[0];for(let Y=0;Y_)&&(_=Q.x),(!Y||Q.y>y)&&(y=Q.y)}const E=Math.min(_-l,y-f);let D=E/2;const L=new i_([],av);if(0===E)return new Ae(l,f);for(let Y=l;Y<_;Y+=E)for(let Q=f;QB.d||!B.d)&&(B=Y,o&&console.log("found best %d after %d probes",Math.round(1e4*Y.d)/1e4,V)),Y.max-B.d<=e||(D=Y.h/2,L.push(new Iu(Y.p.x-D,Y.p.y-D,D,r)),L.push(new Iu(Y.p.x+D,Y.p.y-D,D,r)),L.push(new Iu(Y.p.x-D,Y.p.y+D,D,r)),L.push(new Iu(Y.p.x+D,Y.p.y+D,D,r)),V+=4)}return o&&(console.log(`num probes: ${V}`),console.log(`best distance: ${B.d}`)),B.p}function av(r,e){return e.max-r.max}class Iu{constructor(e,o,l,f){this.p=new Ae(e,o),this.h=l,this.d=function(_,y){let w=!1,E=1/0;for(let D=0;D_.y!=he.y>_.y&&_.x<(he.x-Q.x)*(_.y-Q.y)/(he.y-Q.y)+Q.x&&(w=!w),E=Math.min(E,Rp(_,Q,he))}}return(w?1:-1)*Math.sqrt(E)}(this.p,f),this.max=this.d+this.h*Math.SQRT2}}const gd=7,_f=Number.POSITIVE_INFINITY,tx=Math.sqrt(2);function r_(r,[e,o]){let l=0,f=0;if(o===_f){e<0&&(e=0);const _=e/tx;switch(r){case"top-right":case"top-left":f=_-gd;break;case"bottom-right":case"bottom-left":f=-_+gd;break;case"bottom":f=-e+gd;break;case"top":f=e-gd}switch(r){case"top-right":case"bottom-right":l=-_;break;case"top-left":case"bottom-left":l=_;break;case"left":l=e;break;case"right":l=-e}}else{switch(e=Math.abs(e),o=Math.abs(o),r){case"top-right":case"top-left":case"top":f=o-gd;break;case"bottom-right":case"bottom-left":case"bottom":f=-o+gd}switch(r){case"top-right":case"bottom-right":case"right":l=-e;break;case"top-left":case"bottom-left":case"left":l=e}}return[l,f]}function yf(r,e,o,l,f,_,y,w,E,D){r.createArrays(),r.tilePixelRatio=Ii/(512*r.overscaling),r.compareText={},r.iconsNeedLinear=!1;const L=r.layers[0].layout,B=r.layers[0]._unevaluatedLayout._values,V={};if("composite"===r.textSizeData.kind){const{minZoom:he,maxZoom:Ue}=r.textSizeData;V.compositeTextSizes=[B["text-size"].possiblyEvaluate(new N(he),w),B["text-size"].possiblyEvaluate(new N(Ue),w)]}if("composite"===r.iconSizeData.kind){const{minZoom:he,maxZoom:Ue}=r.iconSizeData;V.compositeIconSizes=[B["icon-size"].possiblyEvaluate(new N(he),w),B["icon-size"].possiblyEvaluate(new N(Ue),w)]}V.layoutTextSize=B["text-size"].possiblyEvaluate(new N(E+1),w),V.layoutIconSize=B["icon-size"].possiblyEvaluate(new N(E+1),w),V.textMaxSize=B["text-size"].possiblyEvaluate(new N(18),w);const Y="map"===L.get("text-rotation-alignment")&&"point"!==L.get("symbol-placement"),Q=L.get("text-size");for(const he of r.features){const Ue=L.get("text-font").evaluate(he,{},w).join(","),ot=Q.evaluate(he,{},w),bt=V.layoutTextSize.evaluate(he,{},w),st=(V.layoutIconSize.evaluate(he,{},w),{horizontal:{},vertical:void 0}),vt=he.text;let St,At=[0,0];if(vt){const In=vt.toString(),Jn=L.get("text-letter-spacing").evaluate(he,{},w)*yo,hn=L.get("text-line-height").evaluate(he,{},w)*yo,On=os(In)?Jn:0,kn=L.get("text-anchor").evaluate(he,{},w),Gn=L.get("text-variable-anchor");if(!Gn){const mi=L.get("text-radial-offset").evaluate(he,{},w);At=mi?r_(kn,[mi*yo,_f]):L.get("text-offset").evaluate(he,{},w).map(Hi=>Hi*yo)}let ii=Y?"center":L.get("text-justify").evaluate(he,{},w);const En="point"===L.get("symbol-placement"),hi=En?L.get("text-max-width").evaluate(he,{},w)*yo:1/0,Ei=mi=>{r.allowVerticalPlacement&&lc(In)&&(st.vertical=Xg(vt,e,o,f,Ue,hi,hn,kn,mi,On,At,za.vertical,!0,bt,ot))};if(!Y&&Gn){const mi="auto"===ii?Gn.map(ri=>pm(ri)):[ii];let Hi=!1;for(let ri=0;ri=0||!lc(In)){const mi=Xg(vt,e,o,f,Ue,hi,hn,kn,ii,On,At,za.horizontal,!1,bt,ot);mi&&(st.horizontal[ii]=mi)}Ei(En?"left":ii)}}let un=!1;if(he.icon&&he.icon.name){const In=l[he.icon.name];In&&(St=um(f[he.icon.name],L.get("icon-offset").evaluate(he,{},w),L.get("icon-anchor").evaluate(he,{},w)),un=In.sdf,void 0===r.sdfIcons?r.sdfIcons=In.sdf:r.sdfIcons!==In.sdf&&Dt("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(In.pixelRatio!==r.pixelRatio||0!==L.get("icon-rotate").constantOr(1))&&(r.iconsNeedLinear=!0))}const nn=o_(st.horizontal)||st.vertical;r.iconsInText||(r.iconsInText=!!nn&&nn.iconsInText),(nn||St)&&_d(r,he,st,St,l,V,bt,0,At,un,y,w,D)}_&&r.generateCollisionDebugBuffers(E,r.collisionBoxArray)}function pm(r){switch(r){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function _d(r,e,o,l,f,_,y,w,E,D,L,B,V){let Y=_.textMaxSize.evaluate(e,{},B);void 0===Y&&(Y=y);const Q=r.layers[0].layout,he=Q.get("icon-offset").evaluate(e,{},B),Ue=o_(o.horizontal)||o.vertical,ot="globe"===V.name,bt=yo,st=y/bt,vt=r.tilePixelRatio*Y/bt,St=(kn=r.overscaling,r.zoom>18&&kn>2&&(kn>>=1),Math.max(Ii/(512*kn),1)*Q.get("symbol-spacing")),At=Q.get("text-padding")*r.tilePixelRatio,un=Q.get("icon-padding")*r.tilePixelRatio,nn=ne(Q.get("text-max-angle")),In="map"===Q.get("text-rotation-alignment")&&"point"!==Q.get("symbol-placement"),Jn="map"===Q.get("icon-rotation-alignment")&&"point"!==Q.get("symbol-placement"),hn=Q.get("symbol-placement"),On=St/2;var kn;const Gn=Q.get("icon-text-fit");let ii;l&&"none"!==Gn&&(r.allowVerticalPlacement&&o.vertical&&(ii=df(l,o.vertical,Gn,Q.get("icon-text-fit-padding"),he,st)),Ue&&(l=df(l,Ue,Gn,Q.get("icon-text-fit-padding"),he,st)));const En=(hi,Ei,mi)=>{if(Ei.x<0||Ei.x>=Ii||Ei.y<0||Ei.y>=Ii)return;let Hi=null;if(ot){const{x:ri,y:Pi,z:nr}=V.projectTilePoint(Ei.x,Ei.y,mi);Hi={anchor:new Ua(ri,Pi,nr,0,void 0),up:V.upVector(mi,Ei.x,Ei.y)}}!function(ri,Pi,nr,Mr,Qi,zi,ro,ir,rr,Wr,Or,eo,zr,kr,vo,No,to,xr,Bo,uo,Rr,zo,qr,Os,Oo){const as=ri.addToLineVertexArray(Pi,Mr);let Jo,Rs,ts,Ls,Ou,bd,ch,Fm=0,Nm=0,Bm=0,uh=0,zm=-1,Um=-1;const dl={};let M_=Ch("");const Jl=nr?nr.anchor:Pi;let Ff=0,Nf=0;if(void 0===rr._unevaluatedLayout.getValue("text-radial-offset")?[Ff,Nf]=rr.layout.get("text-offset").evaluate(Rr,{},Oo).map(Ia=>Ia*yo):(Ff=rr.layout.get("text-radial-offset").evaluate(Rr,{},Oo)*yo,Nf=_f),ri.allowVerticalPlacement&&Qi.vertical){const Ia=Qi.vertical;if(vo)bd=gm(Ia),ir&&(ch=gm(ir));else{const Ma=rr.layout.get("text-rotate").evaluate(Rr,{},Oo)+90;ts=vf(Wr,Jl,Pi,Or,eo,zr,Ia,kr,Ma,No),ir&&(Ls=vf(Wr,Jl,Pi,Or,eo,zr,ir,xr,Ma))}}if(zi){const Ia=rr.layout.get("icon-rotate").evaluate(Rr,{},Oo),Ma="none"!==rr.layout.get("icon-text-fit"),hh=t_(zi,Ia,qr,Ma),Vm=ir?t_(ir,Ia,qr,Ma):void 0;Rs=vf(Wr,Jl,Pi,Or,eo,zr,zi,xr,Ia),Fm=4*hh.length;const A_=ri.iconSizeData;let Ru=null;"source"===A_.kind?(Ru=[da*rr.layout.get("icon-size").evaluate(Rr,{},Oo)],Ru[0]>Uc&&Dt(`${ri.layerIds[0]}: Value for "icon-size" is >= ${mc}. Reduce your "icon-size".`)):"composite"===A_.kind&&(Ru=[da*zo.compositeIconSizes[0].evaluate(Rr,{},Oo),da*zo.compositeIconSizes[1].evaluate(Rr,{},Oo)],(Ru[0]>Uc||Ru[1]>Uc)&&Dt(`${ri.layerIds[0]}: Value for "icon-size" is >= ${mc}. Reduce your "icon-size".`)),ri.addSymbols(ri.icon,hh,Ru,uo,Bo,Rr,!1,nr,Pi,as.lineStartIndex,as.lineLength,-1,Os,Oo),zm=ri.icon.placedSymbolArray.length-1,Vm&&(Nm=4*Vm.length,ri.addSymbols(ri.icon,Vm,Ru,uo,Bo,Rr,za.vertical,nr,Pi,as.lineStartIndex,as.lineLength,-1,Os,Oo),Um=ri.icon.placedSymbolArray.length-1)}for(const Ia in Qi.horizontal){const Ma=Qi.horizontal[Ia];Jo||(M_=Ch(Ma.text),vo?Ou=gm(Ma):Jo=vf(Wr,Jl,Pi,Or,eo,zr,Ma,kr,rr.layout.get("text-rotate").evaluate(Rr,{},Oo),No));const hh=1===Ma.positionedLines.length;if(Bm+=mm(ri,nr,Pi,Ma,ro,rr,vo,Rr,No,as,Qi.vertical?za.horizontal:za.horizontalOnly,hh?Object.keys(Qi.horizontal):[Ia],dl,zm,zo,Os,Oo),hh)break}Qi.vertical&&(uh+=mm(ri,nr,Pi,Qi.vertical,ro,rr,vo,Rr,No,as,za.vertical,["vertical"],dl,Um,zo,Os,Oo));let Hc=-1;const jm=(Ia,Ma)=>Ia?Math.max(Ia,Ma):Ma;Hc=jm(Ou,Hc),Hc=jm(bd,Hc),Hc=jm(ch,Hc);const dh=Hc>-1?1:0;ri.glyphOffsetArray.length>=Vc.MAX_GLYPHS&&Dt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==Rr.sortKey&&ri.addToSortKeyRanges(ri.symbolInstances.length,Rr.sortKey),ri.symbolInstances.emplaceBack(Jl.x,Jl.y,Jl.z,Pi.x,Pi.y,dl.right>=0?dl.right:-1,dl.center>=0?dl.center:-1,dl.left>=0?dl.left:-1,dl.vertical>=0?dl.vertical:-1,zm,Um,M_,void 0!==Jo?Jo:ri.collisionBoxArray.length,void 0!==Jo?Jo+1:ri.collisionBoxArray.length,void 0!==ts?ts:ri.collisionBoxArray.length,void 0!==ts?ts+1:ri.collisionBoxArray.length,void 0!==Rs?Rs:ri.collisionBoxArray.length,void 0!==Rs?Rs+1:ri.collisionBoxArray.length,Ls||ri.collisionBoxArray.length,Ls?Ls+1:ri.collisionBoxArray.length,Or,Bm,uh,Fm,Nm,dh,0,Ff,Nf,Hc)}(r,Ei,Hi,hi,o,l,f,ii,r.layers[0],r.collisionBoxArray,e.index,e.sourceLayerIndex,r.index,At,In,E,0,un,Jn,he,e,_,D,L,B)};if("line"===hn)for(const hi of fd(e.geometry,0,0,Ii,Ii)){const Ei=ex(hi,St,nn,o.vertical||Ue,l,bt,vt,r.overscaling,Ii);for(const mi of Ei)Ue&&s_(r,Ue.text,On,mi)||En(hi,mi,B)}else if("line-center"===hn){for(const hi of e.geometry)if(hi.length>1){const Ei=pf(hi,nn,o.vertical||Ue,l,bt,vt);Ei&&En(hi,Ei,B)}}else if("Polygon"===e.type)for(const hi of $p(e.geometry,0)){const Ei=gf(hi,16);En(hi[0],new Ua(Ei.x,Ei.y,0,0,void 0),B)}else if("LineString"===e.type)for(const hi of e.geometry)En(hi,new Ua(hi[0].x,hi[0].y,0,0,void 0),B);else if("Point"===e.type)for(const hi of e.geometry)for(const Ei of hi)En([Ei],new Ua(Ei.x,Ei.y,0,0,void 0),B)}const mc=255,Uc=mc*da;function mm(r,e,o,l,f,_,y,w,E,D,L,B,V,Y,Q,he,Ue){const ot=function(vt,St,At,un,nn,In,Jn,hn){const On=[];if(0===St.positionedLines.length)return On;const kn=un.layout.get("text-rotate").evaluate(In,{})*Math.PI/180,Gn=function(mi){const Hi=mi[0],ri=mi[1],Pi=Hi*ri;return Pi>0?[Hi,-ri]:Pi<0?[-Hi,ri]:0===Hi?[ri,Hi]:[ri,-Hi]}(At);let ii=Math.abs(St.top-St.bottom);for(const mi of St.positionedLines)ii-=mi.lineOffset;const En=St.positionedLines.length,hi=ii/En;let Ei=St.top-At[1];for(let mi=0;miUc&&Dt(`${r.layerIds[0]}: Value for "text-size" is >= ${mc}. Reduce your "text-size".`)):"composite"===bt.kind&&(st=[da*Q.compositeTextSizes[0].evaluate(w,{},Ue),da*Q.compositeTextSizes[1].evaluate(w,{},Ue)],(st[0]>Uc||st[1]>Uc)&&Dt(`${r.layerIds[0]}: Value for "text-size" is >= ${mc}. Reduce your "text-size".`)),r.addSymbols(r.text,ot,st,E,y,w,L,e,o,D.lineStartIndex,D.lineLength,Y,he,Ue);for(const vt of B)V[vt]=r.text.placedSymbolArray.length-1;return 4*ot.length}function o_(r){for(const e in r)return r[e];return null}function vf(r,e,o,l,f,_,y,w,E,D){let L=y.top,B=y.bottom,V=y.left,Y=y.right;const Q=y.collisionPadding;if(Q&&(V-=Q[0],L-=Q[1],Y+=Q[2],B+=Q[3]),E){const he=new Ae(V,L),Ue=new Ae(Y,L),ot=new Ae(V,B),bt=new Ae(Y,B),st=ne(E);let vt=new Ae(0,0);D&&(vt=new Ae(D[0],D[1])),he._rotateAround(st,vt),Ue._rotateAround(st,vt),ot._rotateAround(st,vt),bt._rotateAround(st,vt),V=Math.min(he.x,Ue.x,ot.x,bt.x),Y=Math.max(he.x,Ue.x,ot.x,bt.x),L=Math.min(he.y,Ue.y,ot.y,bt.y),B=Math.max(he.y,Ue.y,ot.y,bt.y)}return r.emplaceBack(e.x,e.y,e.z,o.x,o.y,V,L,Y,B,w,l,f,_),r.length-1}function gm(r){r.collisionPadding&&(r.top-=r.collisionPadding[1],r.bottom+=r.collisionPadding[3]);const e=r.bottom-r.top;return e>0?Math.max(10,e):null}function s_(r,e,o,l){const f=r.compareText;if(e in f){const _=f[e];for(let y=_.length-1;y>=0;y--)if(l.dist(_[y])st&&(vt(At,Gn,nn,In,On,kn),vt(Gn,un,On,kn,Jn,hn))}vt(B,V,l,_,f,_),vt(V,Y,f,_,f,y),vt(Y,Q,f,y,l,y),vt(Q,B,l,y,l,_),he-=st,Ue-=st,ot+=st,bt+=st;const St=1/Math.max(ot-he,bt-Ue);return{scale:St,x:he*St,y:Ue*St,x2:ot*St,y2:bt*St,projection:e}}const nx=ka(new Float32Array(16));class Mu{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,o){return{x:0,y:0,z:0}}unproject(e,o){return new Gr(0,0)}projectTilePoint(e,o,l){return{x:e,y:o,z:0}}locationPoint(e,o,l=!0){return e._coordinatePoint(e.locationCoordinate(o),l)}pixelsPerMeter(e,o){return Na(1,e)*o}pixelSpaceConversion(e,o,l){return 1}farthestPixelDistance(e){return a_(e,e.pixelsPerMeter)}pointCoordinate(e,o,l,f){const _=e.horizonLineFromTop(!1),y=new Ae(o,Math.max(_,l));return e.rayIntersectionCoordinate(e.pointRayIntersection(y,f))}pointCoordinate3D(e,o,l){const f=new Ae(o,l);if(e.elevation)return e.elevation.pointCoordinate(f);{const _=this.pointCoordinate(e,f.x,f.y,0);return[_.x,_.y,_.z]}}isPointAboveHorizon(e,o){if(e.elevation)return!this.pointCoordinate3D(e,o.x,o.y);const l=e.horizonLineFromTop();return o.y0?o<-Au+l&&(o=-Au+l):o>Au-l&&(o=Au-l);const y=_/Math.pow(wf(o),f);let w=y*Math.sin(f*e),E=_-y*Math.cos(f*e);return w=.5*(w/Math.PI+.5),E=.5*(E/Math.PI+.5),{x:w,y:this.southernCenter?E:1-E,z:0}}unproject(e,o){e=(2*e-.5)*Math.PI,this.southernCenter&&(o=1-o),o=(2*(1-o)-.5)*Math.PI;const{n:l,f}=this,_=f-o,y=Math.sign(_),w=Math.sign(l)*Math.sqrt(e*e+_*_);let E=Math.atan2(e,Math.abs(_))*y;_*l<0&&(E-=Math.PI*Math.sign(e)*y);const D=Xe(Ee(E/l)+this.center[0],-180,180),L=Xe(Ee(2*Math.atan(Math.pow(f/w,1/l))-Au),-ys,ys);return new Gr(D,this.southernCenter?-L:L)}}class l_ extends Mu{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,o){return{x:Vl(e),y:$l(o),z:0}}unproject(e,o){const l=Ba(e),f=To(o);return new Gr(l,f)}}const c_=ne(ys);class u_ extends Mu{project(e,o){const l=(o=ne(o))*o,f=l*l;return{x:.5*((e=ne(e))*(.8707-.131979*l+f*(f*(.003971*l-.001529*f)-.013791))/Math.PI+.5),y:1-.5*(o*(1.007226+l*(.015085+f*(.028874*l-.044475-.005916*f)))/Math.PI+1),z:0}}unproject(e,o){e=(2*e-.5)*Math.PI;let l=o=(2*(1-o)-1)*Math.PI,f=25,_=0,y=l*l;do{y=l*l;const D=y*y;_=(l*(1.007226+y*(.015085+D*(.028874*y-.044475-.005916*D)))-o)/(1.007226+y*(.045255+D*(.259866*y-.311325-.005916*11*D))),l=Xe(l-_,-c_,c_)}while(Math.abs(_)>1e-6&&--f>0);y=l*l;const w=Xe(Ee(e/(.8707+y*(y*(y*y*y*(.003971-.001529*y)-.013791)-.131979))),-180,180),E=Ee(l);return new Gr(w,E)}}const ym=ne(ys);class d_ extends Mu{project(e,o){o=ne(o),e=ne(e);const l=Math.cos(o),f=2/Math.PI,_=Math.acos(l*Math.cos(e/2)),y=Math.sin(_)/_,w=.5*(e*f+2*l*Math.sin(e/2)/y)||0,E=.5*(o+Math.sin(o)/y)||0;return{x:.5*(w/Math.PI+.5),y:1-.5*(E/Math.PI+1),z:0}}unproject(e,o){let l=e=(2*e-.5)*Math.PI,f=o=(2*(1-o)-1)*Math.PI,_=25;const y=1e-6;let w=0,E=0;do{const D=Math.cos(f),L=Math.sin(f),B=2*L*D,V=L*L,Y=D*D,Q=Math.cos(l/2),he=Math.sin(l/2),Ue=2*Q*he,ot=he*he,bt=1-Y*Q*Q,st=bt?1/bt:0,vt=bt?Math.acos(D*Q)*Math.sqrt(1/bt):0,St=.5*(2*vt*D*he+2*l/Math.PI)-e,At=.5*(vt*L+f)-o,un=.5*st*(Y*ot+vt*D*Q*V)+1/Math.PI,nn=st*(Ue*B/4-vt*L*he),In=.125*st*(B*he-vt*L*Y*Ue),Jn=.5*st*(V*Q+vt*ot*D)+.5,hn=nn*In-Jn*un;w=(At*nn-St*Jn)/hn,E=(St*In-At*un)/hn,l=Xe(l-w,-Math.PI,Math.PI),f=Xe(f-E,-ym,ym)}while((Math.abs(w)>y||Math.abs(E)>y)&&--_>0);return new Gr(Ee(l),Ee(f))}}class h_ extends Mu{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(ne(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,o){const{scale:l,cosPhi:f}=this;return{x:ne(e)*f*l+.5,y:-Math.sin(ne(o))/f*l+.5,z:0}}unproject(e,o){const{scale:l,cosPhi:f}=this,_=-(o-.5)/l,y=Xe(Ee((e-.5)/l)/f,-180,180),w=Math.asin(Xe(_*f,-1,1)),E=Xe(Ee(w),-ys,ys);return new Gr(y,E)}}class uv extends l_{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(e,o,l){const f=qu(e,o,l);return co(f,f,Yu(jl(l))),{x:f[0],y:f[1],z:f[2]}}locationPoint(e,o){const l=Rc(o.lat,o.lng),f=Ks([],l),_=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(o),e._centerAltitude):e._centerAltitude;Hu(l,l,f,Na(1,0)*Ii*_);const y=ka(new Float64Array(16));return Vu(y,e.pixelMatrix,e.globeMatrix),co(l,l,y),new Ae(l[0],l[1])}pixelsPerMeter(e,o){return Na(1,0)*o}pixelSpaceConversion(e,o,l){const f=Na(1,e)*o,_=_i(Na(1,45)*o,f,l);return this.pixelsPerMeter(e,o)/_}createTileMatrix(e,o,l){const f=Ep(jl(l.canonical));return Vu(new Float64Array(16),e.globeMatrix,f)}createInversionMatrix(e,o){const{center:l}=e,f=Yu(jl(o));return Dh(f,f,ne(l.lng)),mp(f,f,ne(l.lat)),uu(f,f,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(f)}pointCoordinate(e,o,l,f){return pu(e,o,l,!0)||new Lc(0,0)}pointCoordinate3D(e,o,l){const f=this.pointCoordinate(e,o,l,0);return[f.x,f.y,f.z]}isPointAboveHorizon(e,o){return!pu(e,o.x,o.y,!1)}farthestPixelDistance(e){const o=function(f,_){const y=f.cameraToCenterDistance,w=f._centerAltitude*_,E=f._camera,D=f._camera.forward(),L=hc([],Js([],D,-y),[0,0,w]),B=f.worldSize/(2*Math.PI),V=[0,0,-B],Y=f.width/f.height,Q=Math.tan(f.fovAboveCenter),he=Js([],E.up(),Q),Ue=Js([],E.right(),Q*Y),ot=Ks([],hc([],hc([],D,he),Ue)),bt=[];let st;if(new xg(L,ot).closestPointOnSphere(V,B,bt)){const vt=hc([],bt,V),St=ol([],vt,L);st=Math.cos(f.fovAboveCenter)*Sd(St)}else{const vt=ol([],L,V),St=ol([],V,L);Ks(St,St);const At=Sd(vt)-B;st=Math.sqrt(At*(At+2*B));const un=Math.acos(st/(B+At))-Math.acos(rl(D,St));st*=Math.cos(un)}return 1.01*st}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),l=Ju(e.zoom);if(l>0){const f=a_(e,Na(1,e.center.lat)*e.worldSize),_=e.worldSize/(2*Math.PI),y=Math.max(e.width,e.height)/e.worldSize*Math.PI;return _i(o,f+_*(1-Math.cos(y)),Math.pow(l,10))}return o}upVector(e,o,l){return qu(o,l,e,1)}upVectorScale(e){return{metersToTile:Fa(Oh(jl(e)))}}}function vm(r){const e=r.parallels,o=!!e&&Math.abs(e[0]+e[1])<.01;switch(r.name){case"mercator":return new l_(r);case"equirectangular":return new _m(r);case"naturalEarth":return new u_(r);case"equalEarth":return new lv(r);case"winkelTripel":return new d_(r);case"albers":return o?new h_(r):new ix(r);case"lambertConformalConic":return o?new h_(r):new cv(r);case"globe":return new uv(r)}throw new Error(`Invalid projection name: ${r.name}`)}const xm=Hl.types,rx=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function ih(r,e,o,l,f,_,y,w,E,D,L,B,V){const Y=w?Math.min(Uc,Math.round(w[0])):0,Q=w?Math.min(Uc,Math.round(w[1])):0;r.emplaceBack(e,o,Math.round(32*l),Math.round(32*f),_,y,(Y<<1)+(E?1:0),Q,16*D,16*L,256*B,256*V)}function yd(r,e,o,l,f,_,y){r.emplaceBack(e,o,l,f,_,y)}function Cf(r,e,o,l,f){r.emplaceBack(e,o,l,f),r.emplaceBack(e,o,l,f),r.emplaceBack(e,o,l,f),r.emplaceBack(e,o,l,f)}function rh(r){for(const e of r.sections)if(Dd(e.text))return!0;return!1}class Ef{constructor(e){this.layoutVertexArray=new jn,this.indexArray=new Di,this.programConfigurations=e,this.segments=new _o,this.dynamicLayoutVertexArray=new Zn,this.opacityVertexArray=new Ai,this.placedSymbolArray=new Eo,this.globeExtVertexArray=new ei}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,o,l,f){this.isEmpty()||(l&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,jg.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,o),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Yy.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,rx,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Vg.members,!0)),this.opacityVertexBuffer.itemSize=1),(l||f)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}yi(Ef,"SymbolBuffers");class Tf{constructor(e,o,l){this.layoutVertexArray=new e,this.layoutAttributes=o,this.indexArray=new l,this.segments=new _o,this.collisionVertexArray=new fr,this.collisionVertexArrayExt=new tr}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Jy.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,Ky.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}yi(Tf,"CollisionBuffers");class Vc{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(y=>y.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ka([]),this.placementViewportMatrix=ka([]);const o=this.layers[0]._unevaluatedLayout._values;this.textSizeData=em(this.zoom,o["text-size"]),this.iconSizeData=em(this.zoom,o["icon-size"]);const l=this.layers[0].layout,f=l.get("symbol-sort-key"),_=l.get("symbol-z-order");this.canOverlap=l.get("text-allow-overlap")||l.get("icon-allow-overlap")||l.get("text-ignore-placement")||l.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==_&&void 0!==f.constantOr(1),this.sortFeaturesByY=("viewport-y"===_||"auto"===_&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=l.get("text-writing-mode").map(y=>za[y]),this.stateDependentLayerIds=this.layers.filter(y=>y.isStateDependent()).map(y=>y.id),this.sourceID=e.sourceID,this.projection=e.projection}createArrays(){this.text=new Ef(new il(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new Ef(new il(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new Ms,this.lineVertexArray=new iu,this.symbolInstances=new io}calculateGlyphDependencies(e,o,l,f,_){for(let y=0;y0)&&("constant"!==E.value.kind||E.value.value.length>0),V="constant"!==L.value.kind||!!L.value.value||Object.keys(L.parameters).length>0,Y=y.get("symbol-sort-key");if(this.features=[],!B&&!V)return;const Q=o.iconDependencies,he=o.glyphDependencies,Ue=o.availableImages,ot=new N(this.zoom);for(const{feature:bt,id:st,index:vt,sourceLayerIndex:St}of e){const At=_._featureFilter.needGeometry,un=ll(bt,At);if(!_._featureFilter.filter(ot,un,l))continue;if(At||(un.geometry=Zl(bt,l,f)),w&&1!==bt.type&&l.z<=5){const hn=un.geometry,On=.98078528056,kn=(Gn,ii)=>rl(qu(Gn.x,Gn.y,l,1),qu(ii.x,ii.y,l,1))=0;for(const kn of nn.sections)if(kn.image)Q[kn.image.name]=!0;else{const Gn=lc(nn.toString()),ii=kn.fontStack||hn,En=he[ii]=he[ii]||{};this.calculateGlyphDependencies(kn.text,En,On,this.allowVerticalPlacement,Gn)}}}"line"===y.get("symbol-placement")&&(this.features=function(bt){const st={},vt={},St=[];let At=0;function un(hn){St.push(bt[hn]),At++}function nn(hn,On,kn){const Gn=vt[hn];return delete vt[hn],vt[On]=Gn,St[Gn].geometry[0].pop(),St[Gn].geometry[0]=St[Gn].geometry[0].concat(kn[0]),Gn}function In(hn,On,kn){const Gn=st[On];return delete st[On],st[hn]=Gn,St[Gn].geometry[0].shift(),St[Gn].geometry[0]=kn[0].concat(St[Gn].geometry[0]),Gn}function Jn(hn,On,kn){const Gn=kn?On[0][On[0].length-1]:On[0][0];return`${hn}:${Gn.x}:${Gn.y}`}for(let hn=0;hnhn.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((bt,st)=>bt.sortKey-st.sortKey)}update(e,o,l,f){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,o,this.layers,l,f),this.icon.programConfigurations.updatePaintArrays(e,o,this.layers,l,f))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=vm(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,o){const l=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:f,y:_}of o)this.lineVertexArray.emplaceBack(f,_);return{lineStartIndex:l,lineLength:this.lineVertexArray.length-l}}addSymbols(e,o,l,f,_,y,w,E,D,L,B,V,Y,Q){const he=e.indexArray,Ue=e.layoutVertexArray,ot=e.globeExtVertexArray,bt=e.segments.prepareSegment(4*o.length,Ue,he,this.canOverlap?y.sortKey:void 0),st=this.glyphOffsetArray.length,vt=bt.vertexLength,St=this.allowVerticalPlacement&&w===za.vertical?Math.PI/2:0,At=y.text&&y.text.sections;for(let nn=0;nn=0?o.rightJustifiedTextSymbolIndex:o.centerJustifiedTextSymbolIndex>=0?o.centerJustifiedTextSymbolIndex:o.leftJustifiedTextSymbolIndex>=0?o.leftJustifiedTextSymbolIndex:o.verticalPlacedTextSymbolIndex>=0?o.verticalPlacedTextSymbolIndex:f),y=tm(this.textSizeData,e,_)/yo;return this.tilePixelRatio*y}getSymbolInstanceIconSize(e,o,l){const f=this.icon.placedSymbolArray.get(l),_=tm(this.iconSizeData,e,f);return this.tilePixelRatio*_}_commitDebugCollisionVertexUpdate(e,o,l){e.emplaceBack(o,-l,-l),e.emplaceBack(o,l,-l),e.emplaceBack(o,l,l),e.emplaceBack(o,-l,l)}_updateTextDebugCollisionBoxes(e,o,l,f,_,y){for(let w=f;w<_;w++){const E=l.get(w),D=this.getSymbolInstanceTextSize(e,y,o,w);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,D,E.padding)}}_updateIconDebugCollisionBoxes(e,o,l,f,_,y){for(let w=f;w<_;w++){const E=l.get(w),D=this.getSymbolInstanceIconSize(e,o,y);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,D,E.padding)}}updateCollisionDebugBuffers(e,o){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const l=qd(this.iconSizeData,e),f=qd(this.textSizeData,e);for(let _=0;_0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,o){const l=e.placedSymbolArray.get(o),f=l.vertexStartIndex+4*l.numGlyphs;for(let _=l.vertexStartIndex;_f[w]-f[E]||_[E]-_[w]),y}addToSortKeyRanges(e,o){const l=this.sortKeyRanges[this.sortKeyRanges.length-1];l&&l.sortKey===o?l.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:o,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const o of this.symbolInstanceIndexes){const l=this.symbolInstances.get(o);this.featureSortOrder.push(l.featureIndex);const{rightJustifiedTextSymbolIndex:f,centerJustifiedTextSymbolIndex:_,leftJustifiedTextSymbolIndex:y,verticalPlacedTextSymbolIndex:w,placedIconSymbolIndex:E,verticalPlacedIconSymbolIndex:D}=l;f>=0&&this.addIndicesForPlacedSymbol(this.text,f),_>=0&&_!==f&&this.addIndicesForPlacedSymbol(this.text,_),y>=0&&y!==_&&y!==f&&this.addIndicesForPlacedSymbol(this.text,y),w>=0&&this.addIndicesForPlacedSymbol(this.text,w),E>=0&&this.addIndicesForPlacedSymbol(this.icon,E),D>=0&&this.addIndicesForPlacedSymbol(this.icon,D)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}yi(Vc,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),Vc.MAX_GLYPHS=65535,Vc.addDynamicAttributes=Cf;const dv=new gt({"symbol-placement":new ce(It.layout_symbol["symbol-placement"]),"symbol-spacing":new ce(It.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ce(It.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new We(It.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ce(It.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ce(It.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ce(It.layout_symbol["icon-ignore-placement"]),"icon-optional":new ce(It.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ce(It.layout_symbol["icon-rotation-alignment"]),"icon-size":new We(It.layout_symbol["icon-size"]),"icon-text-fit":new ce(It.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ce(It.layout_symbol["icon-text-fit-padding"]),"icon-image":new We(It.layout_symbol["icon-image"]),"icon-rotate":new We(It.layout_symbol["icon-rotate"]),"icon-padding":new ce(It.layout_symbol["icon-padding"]),"icon-keep-upright":new ce(It.layout_symbol["icon-keep-upright"]),"icon-offset":new We(It.layout_symbol["icon-offset"]),"icon-anchor":new We(It.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ce(It.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ce(It.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ce(It.layout_symbol["text-rotation-alignment"]),"text-field":new We(It.layout_symbol["text-field"]),"text-font":new We(It.layout_symbol["text-font"]),"text-size":new We(It.layout_symbol["text-size"]),"text-max-width":new We(It.layout_symbol["text-max-width"]),"text-line-height":new We(It.layout_symbol["text-line-height"]),"text-letter-spacing":new We(It.layout_symbol["text-letter-spacing"]),"text-justify":new We(It.layout_symbol["text-justify"]),"text-radial-offset":new We(It.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ce(It.layout_symbol["text-variable-anchor"]),"text-anchor":new We(It.layout_symbol["text-anchor"]),"text-max-angle":new ce(It.layout_symbol["text-max-angle"]),"text-writing-mode":new ce(It.layout_symbol["text-writing-mode"]),"text-rotate":new We(It.layout_symbol["text-rotate"]),"text-padding":new ce(It.layout_symbol["text-padding"]),"text-keep-upright":new ce(It.layout_symbol["text-keep-upright"]),"text-transform":new We(It.layout_symbol["text-transform"]),"text-offset":new We(It.layout_symbol["text-offset"]),"text-allow-overlap":new ce(It.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ce(It.layout_symbol["text-ignore-placement"]),"text-optional":new ce(It.layout_symbol["text-optional"])});var bm={paint:new gt({"icon-opacity":new We(It.paint_symbol["icon-opacity"]),"icon-color":new We(It.paint_symbol["icon-color"]),"icon-halo-color":new We(It.paint_symbol["icon-halo-color"]),"icon-halo-width":new We(It.paint_symbol["icon-halo-width"]),"icon-halo-blur":new We(It.paint_symbol["icon-halo-blur"]),"icon-translate":new ce(It.paint_symbol["icon-translate"]),"icon-translate-anchor":new ce(It.paint_symbol["icon-translate-anchor"]),"text-opacity":new We(It.paint_symbol["text-opacity"]),"text-color":new We(It.paint_symbol["text-color"],{runtimeType:ti,getOverride:r=>r.textColor,hasOverride:r=>!!r.textColor}),"text-halo-color":new We(It.paint_symbol["text-halo-color"]),"text-halo-width":new We(It.paint_symbol["text-halo-width"]),"text-halo-blur":new We(It.paint_symbol["text-halo-blur"]),"text-translate":new ce(It.paint_symbol["text-translate"]),"text-translate-anchor":new ce(It.paint_symbol["text-translate-anchor"])}),layout:dv};class f_{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:ut,this.defaultValue=e}evaluate(e){if(e.formattedSection){const o=this.defaultValue.property.overrides;if(o&&o.hasOverride(e.formattedSection))return o.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}yi(f_,"FormatSectionOverride",{omit:["defaultValue"]});class oh extends Po{constructor(e){super(e,bm)}recalculate(e,o){super.recalculate(e,o),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const l=this.layout.get("text-writing-mode");if(l){const f=[];for(const _ of l)f.indexOf(_)<0&&f.push(_);this.layout._values["text-writing-mode"]=f}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,o,l,f){const _=this.layout.get(e).evaluate(o,{},l,f),y=this._unevaluatedLayout._values[e];return y.isDataDriven()||qo(y.value)||!_?_:(w=o.properties,_.replace(/{([^{}]+)}/g,(D,L)=>L in w?String(w[L]):""));var w}createBucket(e){return new Vc(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of bm.paint.overridableProperties){if(!oh.hasPaintOverride(this.layout,e))continue;const o=this.paint.get(e),l=new f_(o),f=new $s(l,o.property.specification);let _=null;_="constant"===o.value.kind||"source"===o.value.kind?new $o("source",f):new fs("composite",f,o.value.zoomStops,o.value._interpolationType),this.paint._values[e]=new Qe(o.property,_,o.parameters)}}_handleOverridablePaintPropertyUpdate(e,o,l){return!(!this.layout||o.isDataDriven()||l.isDataDriven())&&oh.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,o){const l=e.get("text-field"),f=bm.paint.properties[o];let _=!1;const y=w=>{for(const E of w)if(f.overrides&&f.overrides.hasOverride(E))return void(_=!0)};if("constant"===l.value.kind&&l.value.value instanceof Ze)y(l.value.value.sections);else if("source"===l.value.kind){const w=D=>{_||(D instanceof Ns&&ji(D.value)===J?y(D.value.sections):D instanceof jo?y(D.sections):D.eachChild(w))},E=l.value;E._styleExpression&&w(E._styleExpression.expression)}return _}getProgramConfiguration(e){return new cu(this,e)}}var ox={paint:new gt({"background-color":new ce(It.paint_background["background-color"]),"background-pattern":new ce(It.paint_background["background-pattern"]),"background-opacity":new ce(It.paint_background["background-opacity"])})},wm={paint:new gt({"raster-opacity":new ce(It.paint_raster["raster-opacity"]),"raster-hue-rotate":new ce(It.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ce(It.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ce(It.paint_raster["raster-brightness-max"]),"raster-saturation":new ce(It.paint_raster["raster-saturation"]),"raster-contrast":new ce(It.paint_raster["raster-contrast"]),"raster-resampling":new ce(It.paint_raster["raster-resampling"]),"raster-fade-duration":new ce(It.paint_raster["raster-fade-duration"])})};class $c extends Po{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var Df={paint:new gt({"sky-type":new ce(It.paint_sky["sky-type"]),"sky-atmosphere-sun":new ce(It.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new ce(It.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new ce(It.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new ce(It.paint_sky["sky-gradient-radius"]),"sky-gradient":new pt(It.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new ce(It.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new ce(It.paint_sky["sky-atmosphere-color"]),"sky-opacity":new ce(It.paint_sky["sky-opacity"])})};function If(r,e,o){const l=[0,0,1],f=gp([]);return Pd(f,f,o?-ne(r)+Math.PI:ne(r)),Mh(f,f,-ne(e)),_g(l,l,f),Ks(l,l)}const p_={circle:class extends Po{constructor(r){super(r,Z0)}createBucket(r){return new Ld(r)}queryRadius(r){const e=r;return Qu("circle-radius",this,e)+Qu("circle-stroke-width",this,e)+ed(this.paint.get("circle-translate"))}queryIntersectsFeature(r,e,o,l,f,_,y,w){const E=Sy(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),_.angle,r.pixelToTileUnitsFactor),D=this.paint.get("circle-radius").evaluate(e,o)+this.paint.get("circle-stroke-width").evaluate(e,o);return Py(r,l,_,y,w,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),E,D)}getProgramIds(){return["circle"]}getProgramConfiguration(r){return new cu(this,r)}},heatmap:class extends Po{createBucket(r){return new kd(r)}constructor(r){super(r,Ly),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(r){"heatmap-color"===r&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=kh({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(r){return Qu("heatmap-radius",this,r)}queryIntersectsFeature(r,e,o,l,f,_,y,w){const E=this.paint.get("heatmap-radius").evaluate(e,o);return Py(r,l,_,y,w,!0,!0,new Ae(0,0),E)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(r){return new cu(this,r)}},hillshade:class extends Po{constructor(r){super(r,Ag)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends Po{constructor(r){super(r,Zh)}getProgramIds(){const r=this.paint.get("fill-pattern"),e=r&&r.constantOr(1),o=[e?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&o.push(e&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),o}getProgramConfiguration(r){return new cu(this,r)}recalculate(r,e){super.recalculate(r,e);const o=this.paint._values["fill-outline-color"];"constant"===o.value.kind&&void 0===o.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(r){return new jd(r)}queryRadius(){return ed(this.paint.get("fill-translate"))}queryIntersectsFeature(r,e,o,l,f,_){return!r.queryGeometry.isAboveHorizon&&Ku(Ay(r.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),_.angle,r.pixelToTileUnitsFactor),l)}isTileClipped(){return!0}},"fill-extrusion":class extends Po{constructor(r){super(r,zg)}createBucket(r){return new sd(r)}queryRadius(){return ed(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(r){return new cu(this,r)}queryIntersectsFeature(r,e,o,l,f,_,y,w,E){const D=Sy(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),_.angle,r.pixelToTileUnitsFactor),L=this.paint.get("fill-extrusion-height").evaluate(e,o),B=this.paint.get("fill-extrusion-base").evaluate(e,o),V=[0,0],Y=w&&_.elevation,Q=_.elevation?_.elevation.exaggeration():1,he=r.tile.getBucket(this);if(Y&&he instanceof sd){const vt=he.centroidVertexArray,St=E+1;Stvt.polygon).flat());const Ue=Y?w:null,[ot,bt]=(St=l,At=B,un=L,nn=D,In=y,Jn=Ue,hn=V,On=Q,kn=_.center.lat,"globe"===(vt=_).projection.name?function(ii,En,hi,Ei,mi,Hi,ri,Pi,nr,Mr,Qi){const zi=[],ro=[],ir=ii.projection.upVectorScale(Qi,ii.center.lat,ii.worldSize).metersToTile,rr=[0,0,0,1],Wr=[0,0,0,1],Or=(zr,kr,vo,No)=>{zr[0]=kr,zr[1]=vo,zr[2]=No,zr[3]=1},eo=qp();hi>0&&(hi+=eo),Ei+=eo;for(const zr of En){const kr=[],vo=[];for(const No of zr){const to=No.x+mi.x,xr=No.y+mi.y,Bo=ii.projection.projectTilePoint(to,xr,Qi),uo=ii.projection.upVector(Qi,No.x,No.y);let Rr=hi,zo=Ei;if(ri){const qr=Jp(to,xr,hi,Ei,ri,Pi,nr,Mr);Rr+=qr.base,zo+=qr.top}0!==hi?Or(rr,Bo.x+uo[0]*ir*Rr,Bo.y+uo[1]*ir*Rr,Bo.z+uo[2]*ir*Rr):Or(rr,Bo.x,Bo.y,Bo.z),Or(Wr,Bo.x+uo[0]*ir*zo,Bo.y+uo[1]*ir*zo,Bo.z+uo[2]*ir*zo),co(rr,rr,Hi),co(Wr,Wr,Hi),kr.push(new ld(rr[0],rr[1],rr[2])),vo.push(new ld(Wr[0],Wr[1],Wr[2]))}zi.push(kr),ro.push(vo)}return[zi,ro]}(vt,St,At,un,nn,In,Jn,hn,On,kn,r.tileID.canonical):Jn?function(ii,En,hi,Ei,mi,Hi,ri,Pi,nr){const Mr=[],Qi=[],zi=[0,0,0,1];for(const ro of ii){const ir=[],rr=[];for(const Wr of ro){const Or=Wr.x+Ei.x,eo=Wr.y+Ei.y,zr=Jp(Or,eo,En,hi,Hi,ri,Pi,nr);zi[0]=Or,zi[1]=eo,zi[2]=zr.base,zi[3]=1,hu(zi,zi,mi),zi[3]=Math.max(zi[3],1e-5);const kr=new ld(zi[0]/zi[3],zi[1]/zi[3],zi[2]/zi[3]);zi[0]=Or,zi[1]=eo,zi[2]=zr.top,zi[3]=1,hu(zi,zi,mi),zi[3]=Math.max(zi[3],1e-5);const vo=new ld(zi[0]/zi[3],zi[1]/zi[3],zi[2]/zi[3]);ir.push(kr),rr.push(vo)}Mr.push(ir),Qi.push(rr)}return[Mr,Qi]}(St,At,un,nn,In,Jn,hn,On,kn):function(ii,En,hi,Ei,mi){const Hi=[],ri=[],Pi=mi[8]*En,nr=mi[9]*En,Mr=mi[10]*En,Qi=mi[11]*En,zi=mi[8]*hi,ro=mi[9]*hi,ir=mi[10]*hi,rr=mi[11]*hi;for(const Wr of ii){const Or=[],eo=[];for(const zr of Wr){const kr=zr.x+Ei.x,vo=zr.y+Ei.y,No=mi[0]*kr+mi[4]*vo+mi[12],to=mi[1]*kr+mi[5]*vo+mi[13],xr=mi[2]*kr+mi[6]*vo+mi[14],Bo=mi[3]*kr+mi[7]*vo+mi[15],uo=No+Pi,Rr=to+nr,zo=xr+Mr,qr=Math.max(Bo+Qi,1e-5),Os=No+zi,Oo=to+ro,as=xr+ir,Jo=Math.max(Bo+rr,1e-5);Or.push(new ld(uo/qr,Rr/qr,zo/qr)),eo.push(new ld(Os/Jo,Oo/Jo,as/Jo))}Hi.push(Or),ri.push(eo)}return[Hi,ri]}(St,At,un,nn,In)),st=r.queryGeometry;var vt,St,At,un,nn,In,Jn,hn,On,kn;return function(vt,St,At){let un=1/0;Ku(At,St)&&(un=Yp(At,St[0]));for(let nn=0;nn=3)for(let Q=0;Q{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class fv{constructor(){this.tasks={},this.taskQueue=[],Kt(["process"],this),this.invoker=new hv(this.process),this.nextId=0}add(e,o){const l=this.nextId++,f=function({type:_,isSymbolTile:y,zoom:w}){return w=w||0,"message"===_?0:"maybePrepare"!==_||y?"parseTile"!==_||y?"parseTile"===_&&y?300-w:"maybePrepare"===_&&y?400-w:500:200-w:100-w}(o);if(0===f){on();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[l]={fn:e,metadata:o,priority:f,id:l},this.taskQueue.push(l),this.invoker.trigger(),{cancel:()=>{delete this.tasks[l]}}}process(){on();try{if(this.taskQueue=this.taskQueue.filter(l=>!!this.tasks[l]),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const o=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!o)return;o.fn()}finally{}}pick(){let e=null,o=1/0;for(let f=0;f>=1)>1;){const D=o+f>>1,L=l+_>>1;1&e?(f=o,_=l,o=y,l=w):(o=f,l=_,f=y,_=w),y=D,w=L}const E=4*r;Su[E+0]=o,Su[E+1]=l,Su[E+2]=f,Su[E+3]=_}const Il=new Uint16Array(2178),yc=new Uint8Array(1089),Cm=new Uint16Array(1089);function pr(r){return 0===r?-.03125:32===r?.03125:0}var Em=Wt([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const Tm={type:2,extent:Ii,loadGeometry:()=>[[new Ae(0,0),new Ae(Ii+1,0),new Ae(Ii+1,Ii+1),new Ae(0,Ii+1),new Ae(0,0)]]};class Zc{constructor(e,o,l,f,_){this.tileID=e,this.uid=Oe(),this.uses=0,this.tileSize=o,this.tileZoom=l,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=_,this.expiredRequestCount=0,this.state="loading",f&&f.transform&&(this.projection=f.transform.projection)}registerFadeDuration(e){const o=e+this.timeAdded;o_.getLayer(D)).filter(Boolean);if(0!==E.length){w.layers=E,w.stateDependentLayerIds&&(w.stateDependentLayers=w.stateDependentLayerIds.map(D=>E.filter(L=>L.id===D)[0]));for(const D of E)y[D.id]=w}}return y}(e.buckets,o.style),this.hasSymbolBuckets=!1;for(const f in this.buckets){const _=this.buckets[f];if(_ instanceof Vc){if(this.hasSymbolBuckets=!0,!l)break;_.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const f in this.buckets){const _=this.buckets[f];if(_ instanceof Vc&&_.hasRTLText){this.hasRTLText=!0,M.isLoading()||M.isLoaded()||"deferred"!==b()||I();break}}this.queryPadding=0;for(const f in this.buckets){const _=this.buckets[f];this.queryPadding=Math.max(this.queryPadding,o.style.getLayer(f).queryRadius(_))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas)}else this.collisionBoxArray=new Zr}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.id]}upload(e){for(const l in this.buckets){const f=this.buckets[l];f.uploadPending()&&f.upload(e)}const o=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new sh(e,this.imageAtlas.image,o.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new sh(e,this.glyphAtlasImage,o.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new sh(e,this.lineAtlas.image,o.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,o,l,f,_,y,w,E){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:f,pixelPosMatrix:w,transform:y,params:_,tileTransform:this.tileTransform},e,o,l):{}}querySourceFeatures(e,o){const l=this.latestFeatureIndex;if(!l||!l.rawTileData)return;const f=l.loadVTLayers(),_=o?o.sourceLayer:"",y=f._geojsonTileLayer||f[_];if(!y)return;const w=jr(o&&o.filter),{z:E,x:D,y:L}=this.tileID.canonical,B={z:E,x:D,y:L};for(let V=0;Vl)f=!1;else if(o)if(this.expirationTime=0;Ue--){const ot=4*Ue,bt=Su[ot+0],st=Su[ot+1],vt=Su[ot+2],St=Su[ot+3],At=bt+vt>>1,un=st+St>>1,nn=At+un-st,In=un+bt-At,Jn=33*st+bt,hn=33*St+vt,On=33*un+At,kn=Math.hypot((Il[2*Jn+0]+Il[2*hn+0])/2-Il[2*On+0],(Il[2*Jn+1]+Il[2*hn+1])/2-Il[2*On+1])>=16;yc[On]=yc[On]||(kn?1:0),Ue<1022&&(yc[On]=yc[On]||yc[33*(st+In>>1)+(bt+nn>>1)]||yc[33*(St+In>>1)+(vt+nn>>1)])}const B=new Pn,V=new Di;let Y=0;function Q(Ue,ot){const bt=33*ot+Ue;return 0===Cm[bt]&&(B.emplaceBack(Il[2*bt+0],Il[2*bt+1],Ue*Ii/32,ot*Ii/32),Cm[bt]=++Y),Cm[bt]-1}function he(Ue,ot,bt,st,vt,St){const At=Ue+bt>>1,un=ot+st>>1;if(Math.abs(Ue-vt)+Math.abs(ot-St)>1&&yc[33*un+At])he(vt,St,Ue,ot,At,un),he(bt,st,vt,St,At,un);else{const nn=Q(Ue,ot),In=Q(bt,st),Jn=Q(vt,St);V.emplaceBack(nn,In,Jn)}}return he(0,0,32,32,32,0),he(32,32,0,0,0,32),{vertices:B,indices:V}}(this.tileID.canonical,o);f=y.vertices,_=y.indices}else{f=new Pn,_=new Di;for(const{x:w,y:E}of l)f.emplaceBack(w,E,0,0);const y=jp(f.int16,void 0,4);for(let w=0;w0&&(w=Mc(new Float64Array(16),o.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(e,f,o,_,w,y),this._makeGlobeTileDebugTextBuffer(e,f,o,_,w,y)}_globePoint(e,o,l,f,_,y,w){let E=qu(e,o,l);if(y){const D=1<.5?Y=-1:V<-.5&&(Y=1);let Q=(e/Ii+l.x)/D+Y,he=(o/Ii+l.y)/D;Q=(Q-L)*f._pixelsPerMercatorPixel+L,he=(he-B)*f._pixelsPerMercatorPixel+B;const Ue=[Q*f.worldSize,he*f.worldSize,0];co(Ue,Ue,y),E=Oc(E,Ue,w)}return co(E,E,_)}_makeGlobeTileDebugBorderBuffer(e,o,l,f,_,y){const w=new Yn,E=new wa,D=new tn,L=(V,Y,Q,he,Ue)=>{const ot=(Q-V)/(Ue-1),bt=(he-Y)/(Ue-1),st=w.length;for(let vt=0;vtB*Y+Q;for(let Y=0;Ye[y])return null}else{const w=1/l[y];let E=(r[y]-o[y])*w,D=(e[y]-o[y])*w;if(E>D){const L=E;E=D,D=L}if(E>f&&(f=E),D<_&&(_=D),f>_)return null}return f}function Pu(r,e,o,l,f,_,y,w,E,D,L){const B=l-r,V=f-e,Y=_-o,Q=y-r,he=w-e,Ue=E-o,ot=L[1]*Ue-L[2]*he,bt=L[2]*Q-L[0]*Ue,st=L[0]*he-L[1]*Q,vt=B*ot+V*bt+Y*st;if(Math.abs(vt)<1e-15)return null;const St=1/vt,At=D[0]-r,un=D[1]-e,nn=D[2]-o,In=(At*ot+un*bt+nn*st)*St;if(In<0||In>1)return null;const Jn=un*Y-nn*V,hn=nn*B-At*Y,On=At*V-un*B,kn=(L[0]*Jn+L[1]*hn+L[2]*On)*St;return kn<0||In+kn>1?null:(Q*Jn+he*hn+Ue*On)*St}function Mf(r,e,o){return(r-e)/(o-e)}function vd(r,e,o,l,f,_,y,w,E){const D=1<{const bt=Ue?1:0,st=(Y+1)*he-bt,vt=Q*he,St=(Q+1)*he-bt;ot[0]=Y*he,ot[1]=vt,ot[2]=st,ot[3]=St};let B=new y_(E);const V=[];for(let Y=0;Y=1;E/=2){const Y=w[w.length-1];B=new y_(E);for(let Q=0;Q0;){const{idx:Q,t:he,nodex:Ue,nodey:ot,depth:bt}=Y.pop();if(this.leaves[Q]){vd(Ue,ot,bt,e,o,l,f,B,V);const vt=1<=En[2])return he}continue}let st=0;for(let vt=0;vt=D[L[nn]]&&(L.splice(nn,0,vt),un=!0);un||(L[st]=vt),st++}}for(let vt=0;vt=this.dim+1||o<-1||o>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(o+1)*this.stride+(e+1)}static pack(e,o){const l=[0,0,0,0],f=Pf.getUnpackVector(o);let _=Math.floor((e+f[3])/f[2]);return l[2]=_%256,_=Math.floor(_/256),l[1]=_%256,_=Math.floor(_/256),l[0]=_,l}getPixels(){return new vs({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,o,l){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let f=o*this.dim,_=o*this.dim+this.dim,y=l*this.dim,w=l*this.dim+this.dim;switch(o){case-1:f=_-1;break;case 1:_=f+1}switch(l){case-1:y=w-1;break;case 1:w=y+1}const E=-o*this.dim,D=-l*this.dim;for(let L=y;L{this.remove(e,_)},l)),this.data[f].push(_),this.order.push(f),this.order.length>this.max){const y=this._getAndRemoveByKey(this.order[0]);y&&this.onRemove(y)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const o=this.data[e].shift();return o.timeout&&clearTimeout(o.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),o.value}getByKey(e){const o=this.data[e];return o?o[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,o){if(!this.has(e))return this;const l=e.wrapped().key,f=void 0===o?0:this.data[l].indexOf(o),_=this.data[l][f];return this.data[l].splice(f,1),_.timeout&&clearTimeout(_.timeout),0===this.data[l].length&&delete this.data[l],this.onRemove(_.value),this.order.splice(this.order.indexOf(l),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this}filter(e){const o=[];for(const l in this.data)for(const f of this.data[l])e(f.value)||o.push(f);for(const l of o)this.remove(l.value.tileID,l)}}class xd{constructor(e,o,l){this.func=e,this.mask=o,this.range=l}}xd.ReadOnly=!1,xd.ReadWrite=!0,xd.disabled=new xd(519,xd.ReadOnly,[0,1]);class Mm{constructor(e,o,l,f,_,y){this.test=e,this.ref=o,this.mask=l,this.fail=f,this.depthFail=_,this.pass=y}}Mm.disabled=new Mm({func:519,mask:0},0,0,7680,7680,7680);class Yl{constructor(e,o,l){this.blendFunction=e,this.blendColor=o,this.mask=l}}Yl.Replace=[1,0],Yl.disabled=new Yl(Yl.Replace,R.transparent,[!1,!1,!1,!1]),Yl.unblended=new Yl(Yl.Replace,R.transparent,[!0,!0,!0,!0]),Yl.alphaBlended=new Yl([1,771],R.transparent,[!0,!0,!0,!0]);class ul{constructor(e,o,l){this.enable=e,this.mode=o,this.frontFace=l}}ul.disabled=new ul(!1,1029,2305),ul.backCCW=new ul(!0,1029,2305),ul.backCW=new ul(!0,1029,2304),ul.frontCW=new ul(!0,1028,2304),ul.frontCCW=new ul(!0,1028,2305);class Gc extends wn{constructor(e,o,l){super(),this.id=e,this._onlySymbols=l,o.on("data",f=>{"source"===f.dataType&&"metadata"===f.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===f.dataType&&"content"===f.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),o.on("error",()=>{this._sourceErrored=!0}),this._source=o,this._tiles={},this._cache=new mv(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=o.minTileCacheSize,this._maxTileCacheSize=o.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new __,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(const e in this._tiles){const o=this._tiles[e];if("loaded"!==o.state&&"errored"!==o.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,o){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,o)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,()=>{})}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,()=>{})}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const o in this._tiles){const l=this._tiles[o];l.upload(e),l.prepare(this.map.style.imageManager)}}getIds(){return $t(this._tiles).map(e=>e.tileID).sort(x_).map(e=>e.key)}getRenderableIds(e){const o=[];for(const l in this._tiles)this._isIdRenderable(+l,e)&&o.push(this._tiles[l]);return e?o.sort((l,f)=>{const _=l.tileID,y=f.tileID,w=new Ae(_.canonical.x,_.canonical.y)._rotate(this.transform.angle),E=new Ae(y.canonical.x,y.canonical.y)._rotate(this.transform.angle);return _.overscaledZ-y.overscaledZ||E.y-w.y||E.x-w.x}).map(l=>l.tileID.key):o.map(l=>l.tileID).sort(x_).map(l=>l.key)}hasRenderableParent(e){const o=this.findLoadedParent(e,0);return!!o&&this._isIdRenderable(o.tileID.key)}_isIdRenderable(e,o){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(o||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,o){const l=this._tiles[e];l&&("loading"!==l.state&&(l.state=o),this._loadTile(l,this._tileLoaded.bind(this,l,e,o)))}_tileLoaded(e,o,l,f){if(f)if(e.state="errored",404!==f.status)this._source.fire(new Qt(f,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const _=this.map.painter.terrain;this.update(this.transform,_.getScaledDemTileSize(),!0),_.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=Kr.now(),"expired"===l&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(o,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Mt("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const o=this.getRenderableIds();for(let f=0;f1||(Math.abs(y)>1&&(1===Math.abs(y+E)?y+=E:1===Math.abs(y-E)&&(y-=E)),_.dem&&f.dem&&(f.dem.backfillBorder(_.dem,y,w),f.neighboringTiles&&f.neighboringTiles[D]&&(f.neighboringTiles[D].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,o,l,f){for(const _ in this._tiles){let y=this._tiles[_];if(f[_]||!y.hasData()||y.tileID.overscaledZ<=o||y.tileID.overscaledZ>l)continue;let w=y.tileID;for(;y&&y.tileID.overscaledZ>o+1;){const D=y.tileID.scaledTo(y.tileID.overscaledZ-1);y=this._tiles[D.key],y&&y.hasData()&&(w=D)}let E=w;for(;E.overscaledZ>o;)if(E=E.scaledTo(E.overscaledZ-1),e[E.key]){f[w.key]=w;break}}}findLoadedParent(e,o){if(e.key in this._loadedParentTiles){const l=this._loadedParentTiles[e.key];return l&&l.tileID.overscaledZ>=o?l:null}for(let l=e.overscaledZ-1;l>=o;l--){const f=e.scaledTo(l),_=this._getLoadedTile(f);if(_)return _}}_getLoadedTile(e){const o=this._tiles[e.key];return o&&o.hasData()?o:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,o){o=o||this._source.tileSize;const l=Math.ceil(e.width/o)+1,f=Math.ceil(e.height/o)+1,_=Math.floor(l*f*5),y="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,_):_,w="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,y):y;this._cache.setMaxSize(w)}handleWrapJump(e){const o=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,o){const l={};for(const f in this._tiles){const _=this._tiles[f];_.tileID=_.tileID.unwrapTo(_.tileID.wrap+o),l[_.tileID.key]=_}this._tiles=l;for(const f in this._timers)clearTimeout(this._timers[f]),delete this._timers[f];for(const f in this._tiles)this._setTileReloadTimer(+f,this._tiles[f])}}update(e,o,l){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!l)return;let f;this.updateCacheSize(e,o),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?f=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(w=>new As(w.canonical.z,w.wrap,w.canonical.z,w.canonical.x,w.canonical.y)):(f=e.coveringTiles({tileSize:o||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!l,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(f=f.filter(w=>this._source.hasTile(w)))):f=[];const _=this._updateRetainedTiles(f);if(b_(this._source.type)&&0!==f.length){const w={},E={},D=Object.keys(_);for(const B of D){const V=_[B],Y=this._tiles[B];if(!Y||Y.fadeEndTime&&Y.fadeEndTime<=Kr.now())continue;const Q=this.findLoadedParent(V,Math.max(V.overscaledZ-Gc.maxOverzooming,this._source.minzoom));Q&&(this._addTile(Q.tileID),w[Q.tileID.key]=Q.tileID),E[B]=V}const L=f[f.length-1].overscaledZ;for(const B in this._tiles){const V=this._tiles[B];if(_[B]||!V.hasData())continue;let Y=V.tileID;for(;Y.overscaledZ>L;){Y=Y.scaledTo(Y.overscaledZ-1);const Q=this._tiles[Y.key];if(Q&&Q.hasData()&&E[Y.key]){_[B]=V.tileID;break}}}for(const B in w)_[B]||(this._coveredTiles[B]=!0,_[B]=w[B])}for(const w in _)this._tiles[w].clearFadeHold();const y=function(w,E){const D=[];for(const L in w)L in E||D.push(L);return D}(this._tiles,_);for(const w of y){const E=this._tiles[w];E.hasSymbolBuckets&&!E.holdingForFade()?E.setHoldDuration(this.map._fadeDuration):E.hasSymbolBuckets&&!E.symbolFadeFinished()||this._removeTile(+w)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const o={};if(0===e.length)return o;const l={},f=e.reduce((D,L)=>Math.min(D,L.overscaledZ),1/0),_=e[0].overscaledZ,y=Math.max(_-Gc.maxOverzooming,this._source.minzoom),w=Math.max(_+Gc.maxUnderzooming,this._source.minzoom),E={};for(const D of e){const L=this._addTile(D);o[D.key]=D,L.hasData()||f=this._source.maxzoom){const V=D.children(this._source.maxzoom)[0],Y=this.getTile(V);if(Y&&Y.hasData()){o[V.key]=V;continue}}else{const V=D.children(this._source.maxzoom);if(o[V[0].key]&&o[V[1].key]&&o[V[2].key]&&o[V[3].key])continue}let B=L.wasRequested();for(let V=D.overscaledZ-1;V>=y;--V){const Y=D.scaledTo(V);if(l[Y.key]||(l[Y.key]=!0,L=this.getTile(Y),!L&&B&&(L=this._addTile(Y)),L&&(o[Y.key]=Y,B=L.wasRequested(),L.hasData())))break}}return o}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const o=[];let l,f=this._tiles[e].tileID;for(;f.overscaledZ>0;){if(f.key in this._loadedParentTiles){l=this._loadedParentTiles[f.key];break}o.push(f.key);const _=f.scaledTo(f.overscaledZ-1);if(l=this._getLoadedTile(_),l)break;f=_}for(const _ of o)this._loadedParentTiles[_]=l}}_addTile(e){let o=this._tiles[e.key];if(o)return o;o=this._cache.getAndRemove(e),o&&(this._setTileReloadTimer(e.key,o),o.tileID=e,this._state.initializeTileState(o,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,o)));const l=!!o;if(!l){const f=this.map?this.map.painter:null;o=new Zc(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,f,this._isRaster),this._loadTile(o,this._tileLoaded.bind(this,o,e.key,o.state))}return o?(o.uses++,this._tiles[e.key]=o,l||this._source.fire(new Mt("dataloading",{tile:o,coord:o.tileID,dataType:"source"})),o):null}_setTileReloadTimer(e,o){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const l=o.getExpiryTimeout();l&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},l))}_removeTile(e){const o=this._tiles[e];o&&(o.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),o.uses>0||(o.hasData()&&"reloading"!==o.state?this._cache.add(o.tileID,o,o.getExpiryTimeout()):(o.aborted=!0,this._abortTile(o),this._unloadTile(o))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,o,l){const f=[],_=this.transform;if(!_)return f;const y="globe"===_.projection.name,w=Vl(_.center.lng);for(const E in this._tiles){const D=this._tiles[E];if(l&&D.clearQueryDebugViz(),D.holdingForFade())continue;let L;if(y){const B=D.tileID.canonical;if(0===B.z){const V=[Math.abs(Xe(w,...Ps(B,-1))-w),Math.abs(Xe(w,...Ps(B,1))-w)];L=[0,2*V.indexOf(Math.min(...V))-1]}else{const V=[Math.abs(Xe(w,...Ps(B,-1))-w),Math.abs(Xe(w,...Ps(B,0))-w),Math.abs(Xe(w,...Ps(B,1))-w)];L=[V.indexOf(Math.min(...V))-1]}}else L=[0];for(const B of L){const V=e.containsTile(D,_,o,B);V&&f.push(V)}}return f}getVisibleCoordinates(e){const o=this.getRenderableIds(e).map(l=>this._tiles[l].tileID);for(const l of o)l.projMatrix=this.transform.calculateProjMatrix(l.toUnwrapped());return o}hasTransition(){if(this._source.hasTransition())return!0;if(b_(this._source.type))for(const e in this._tiles){const o=this._tiles[e];if(void 0!==o.fadeEndTime&&o.fadeEndTime>=Kr.now())return!0}return!1}setFeatureState(e,o,l){this._state.updateState(e=e||"_geojsonTileLayer",o,l)}removeFeatureState(e,o,l){this._state.removeFeatureState(e=e||"_geojsonTileLayer",o,l)}getFeatureState(e,o){return this._state.getState(e=e||"_geojsonTileLayer",o)}setDependencies(e,o,l){const f=this._tiles[e];f&&f.setDependencies(o,l)}reloadTilesForDependencies(e,o){for(const l in this._tiles)this._tiles[l].hasDependency(e,o)&&this._reloadTile(+l,"reloading");this._cache.filter(l=>!l.hasDependency(e,o))}_preloadTiles(e,o){if(!this._sourceLoaded){const w=()=>{this._sourceLoaded&&(this._source.off("data",w),this._preloadTiles(e,o))};return void this._source.on("data",w)}const l=new Map,f=Array.isArray(e)?e:[e],_=this.map.painter.terrain,y=this.usedForTerrain&&_?_.getScaledDemTileSize():this._source.tileSize;for(const w of f){const E=w.coveringTiles({tileSize:y,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const D of E)l.set(D.key,D);this.usedForTerrain&&w.updateElevation(!1)}xn(Array.from(l.values()),(w,E)=>{const D=new Zc(w,this._source.tileSize*w.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(D,L=>{"raster-dem"===this._source.type&&D.dem&&this._backfillDEM(D),E(L,D)})},o)}}function x_(r,e){const o=Math.abs(2*r.wrap)-+(r.wrap<0),l=Math.abs(2*e.wrap)-+(e.wrap<0);return r.overscaledZ-e.overscaledZ||l-o||e.canonical.y-r.canonical.y||e.canonical.x-r.canonical.x}function b_(r){return"raster"===r||"image"===r||"video"===r||"custom"===r}function Ps(r,e){const o=1<=0&&B[3]>=0&&E.insert(w,B[0],B[1],B[2],B[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new qh(new bu(this.rawTileData)).layers,this.sourceLayerCoder=new m_(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,o,l,f){this.loadVTLayers();const _=e.params||{},y=jr(_.filter),w=e.tileResult,E=e.transform,D=w.bufferedTilespaceBounds,L=this.grid.query(D.min.x,D.min.y,D.max.x,D.max.y,(Q,he,Ue,ot)=>Iy(w.bufferedTilespaceGeometry,Q,he,Ue,ot));L.sort(Pm);let B=null;E.elevation&&L.length>0&&(B=Rf.create(E.elevation,this.tileID));const V={};let Y;for(let Q=0;Q(ot||(ot=Zl(bt,this.tileID.canonical,e.tileTransform)),st.queryIntersectsFeature(w,bt,vt,ot,this.z,e.transform,e.pixelPosMatrix,B,St)))}return V}loadMatchingFeature(e,o,l,f,_,y,w,E,D){const{featureIndex:L,bucketIndex:B,sourceLayerIndex:V,layoutVertexArrayOffset:Y}=o,Q=this.bucketLayerIDs[B];if(f&&!function(bt,st){for(let vt=0;vt=0)return!0;return!1}(f,Q))return;const he=this.sourceLayerCoder.decode(V),Ue=this.vtLayers[he].feature(L);if(l.needGeometry){const bt=ll(Ue,!0);if(!l.filter(new N(this.tileID.overscaledZ),bt,this.tileID.canonical))return}else if(!l.filter(new N(this.tileID.overscaledZ),Ue))return;const ot=this.getId(Ue,he);for(let bt=0;bt{const w=e instanceof nt?e.get(y):null;return w&&w.evaluate?w.evaluate(o,l,f):w})}function Pm(r,e){return e-r}yi(w_,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class Om{constructor(e,o){this.width=e,this.height=o,this.nextRow=0,this.image=new Gl({width:e,height:o}),this.positions={},this.uploaded=!1}getDash(e,o){const l=this.getKey(e,o);return this.positions[l]}trim(){const e=this.width,o=this.height=it(this.nextRow);this.image.resize({width:e,height:o})}getKey(e,o){return e.join(",")+o}getDashRanges(e,o,l){const f=[];let _=e.length%2==1?-e[e.length-1]*l:0,y=e[0]*l,w=!0;f.push({left:_,right:y,isDash:w,zeroLength:0===e[0]});let E=e[0];for(let D=1;D1&&(E=e[++w]);const L=Math.abs(D-E.left),B=Math.abs(D-E.right),V=Math.min(L,B);let Y;const Q=_/l*(f+1);if(E.isDash){const he=f-Math.abs(Q);Y=Math.sqrt(V*V+he*he)}else Y=f-Math.sqrt(V*V+Q*Q);this.image.data[y+D]=Math.max(0,Math.min(255,Y+128))}}}addRegularDash(e,o){for(let E=e.length-1;E>=0;--E){const D=e[E],L=e[E+1];D.zeroLength?e.splice(E,1):L&&L.isDash===D.isDash&&(L.left=D.left,e.splice(E,1))}const l=e[0],f=e[e.length-1];l.isDash===f.isDash&&(l.left=f.left-this.width,f.right=l.right+this.width);const _=this.width*this.nextRow;let y=0,w=e[y];for(let E=0;E1&&(w=e[++y]);const D=Math.abs(E-w.left),L=Math.abs(E-w.right),B=Math.min(D,L);this.image.data[_+E]=Math.max(0,Math.min(255,(w.isDash?B:-B)+o+128))}}addDash(e,o){const l=this.getKey(e,o);if(this.positions[l])return this.positions[l];const f="round"===o,_=f?7:0,y=2*_+1;if(this.nextRow+y>this.height)return Dt("LineAtlas out of space"),null;0===e.length&&e.push(1);let w=0;for(let L=0;L=On.maxzoom||"none"!==On.visibility&&(Lf(hn,this.zoom,l),(E[On.id]=On.createBucket({index:w.bucketLayerIDs.length,layers:hn,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:In,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:l})).populate(Jn,L,this.tileID.canonical,this.tileTransform),w.bucketLayerIDs.push(hn.map(kn=>kn.id)))}}let V,Y,Q,he;D.trim();const Ue={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},ot=()=>{if(V)return _(V);if(Y&&Q&&he){const St=new E_(Y),At=new Jg(Q,he);for(const un in E){const nn=E[un];nn instanceof Vc?(Lf(nn.layers,this.zoom,l),yf(nn,Y,St.positions,Q,At.iconPositions,this.showCollisionBoxes,l,this.tileID.canonical,this.tileZoom,this.projection)):nn.hasPattern&&(nn instanceof tf||nn instanceof jd||nn instanceof sd)&&(Lf(nn.layers,this.zoom,l),nn.addFeatures(L,this.tileID.canonical,At.patternPositions,l,this.tileTransform))}this.status="done",_(null,{buckets:$t(E).filter(un=>!un.isEmpty()),featureIndex:w,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:St.image,lineAtlas:D,imageAtlas:At,glyphMap:this.returnDependencies?Y:null,iconMap:this.returnDependencies?Q:null,glyphPositions:this.returnDependencies?St.positions:null})}},bt=fn(L.glyphDependencies,St=>Object.keys(St).map(Number));Object.keys(bt).length?f.send("getGlyphs",{uid:this.uid,stacks:bt},(St,At)=>{V||(V=St,Y=At,ot())},void 0,!1,Ue):Y={};const st=Object.keys(L.iconDependencies);st.length?f.send("getImages",{icons:st,source:this.source,tileID:this.tileID,type:"icons"},(St,At)=>{V||(V=St,Q=At,ot())},void 0,!1,Ue):Q={};const vt=Object.keys(L.patternDependencies);vt.length?f.send("getImages",{icons:vt,source:this.source,tileID:this.tileID,type:"patterns"},(St,At)=>{V||(V=St,he=At,ot())},void 0,!1,Ue):he={},ot()}}function Lf(r,e,o){const l=new N(e);for(const f of r)f.recalculate(l,o)}class T_{constructor(e){this.entries={},this.scheduler=e}request(e,o,l,f){const _=this.entries[e]=this.entries[e]||{callbacks:[]};if(_.result){const[y,w]=_.result;return this.scheduler?this.scheduler.add(()=>{f(y,w)},o):f(y,w),()=>{}}return _.callbacks.push(f),_.cancel||(_.cancel=l((y,w)=>{_.result=[y,w];for(const E of _.callbacks)this.scheduler?this.scheduler.add(()=>{E(y,w)},o):E(y,w);setTimeout(()=>delete this.entries[e],3e3)})),()=>{_.result||(_.callbacks=_.callbacks.filter(y=>y!==f),_.callbacks.length||(_.cancel(),delete this.entries[e]))}}}function D_(r,e,o){const l=JSON.stringify(r.request);return r.data&&(this.deduped.entries[l]={result:[null,r.data]}),this.deduped.request(l,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom},f=>{const _=Cn(r.request,(y,w,E,D)=>{y?f(y):w&&f(null,{vectorTile:o?void 0:new qh(new bu(w)),rawData:w,cacheControl:E,expires:D})});return()=>{_.cancel(),f()}},e)}const kf=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class Rm{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[o,l]=new Uint8Array(e,0,2);if(219!==o)throw new Error("Data does not appear to be in a KDBush format.");const f=l>>4;if(1!==f)throw new Error(`Got v${f} data when expected v1.`);const _=kf[15&l];if(!_)throw new Error("Unrecognized array type.");const[y]=new Uint16Array(e,2,1),[w]=new Uint32Array(e,4,1);return new Rm(w,y,_,e)}constructor(e,o=64,l=Float64Array,f){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+o,2),65535),this.ArrayType=l,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const _=kf.indexOf(this.ArrayType),y=2*e*this.ArrayType.BYTES_PER_ELEMENT,w=e*this.IndexArrayType.BYTES_PER_ELEMENT,E=(8-w%8)%8;if(_<0)throw new Error(`Unexpected typed array class: ${l}.`);f&&f instanceof ArrayBuffer?(this.data=f,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+w+E,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+y+w+E),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+w+E,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+_]),new Uint16Array(this.data,2,1)[0]=o,new Uint32Array(this.data,4,1)[0]=e)}add(e,o){const l=this._pos>>1;return this.ids[l]=l,this.coords[this._pos++]=e,this.coords[this._pos++]=o,l}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return Lm(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,o,l,f){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:_,coords:y,nodeSize:w}=this,E=[0,_.length-1,0],D=[];for(;E.length;){const L=E.pop()||0,B=E.pop()||0,V=E.pop()||0;if(B-V<=w){for(let Ue=V;Ue<=B;Ue++){const ot=y[2*Ue],bt=y[2*Ue+1];ot>=e&&ot<=l&&bt>=o&&bt<=f&&D.push(_[Ue])}continue}const Y=V+B>>1,Q=y[2*Y],he=y[2*Y+1];Q>=e&&Q<=l&&he>=o&&he<=f&&D.push(_[Y]),(0===L?e<=Q:o<=he)&&(E.push(V),E.push(Y-1),E.push(1-L)),(0===L?l>=Q:f>=he)&&(E.push(Y+1),E.push(B),E.push(1-L))}return D}within(e,o,l){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:f,coords:_,nodeSize:y}=this,w=[0,f.length-1,0],E=[],D=l*l;for(;w.length;){const L=w.pop()||0,B=w.pop()||0,V=w.pop()||0;if(B-V<=y){for(let Ue=V;Ue<=B;Ue++)Ml(_[2*Ue],_[2*Ue+1],e,o)<=D&&E.push(f[Ue]);continue}const Y=V+B>>1,Q=_[2*Y],he=_[2*Y+1];Ml(Q,he,e,o)<=D&&E.push(f[Y]),(0===L?e-l<=Q:o-l<=he)&&(w.push(V),w.push(Y-1),w.push(1-L)),(0===L?e+l>=Q:o+l>=he)&&(w.push(Y+1),w.push(B),w.push(1-L))}return E}}function Lm(r,e,o,l,f,_){if(f-l<=o)return;const y=l+f>>1;I_(r,e,y,l,f,_),Lm(r,e,o,l,y-1,1-_),Lm(r,e,o,y+1,f,1-_)}function I_(r,e,o,l,f,_){for(;f>l;){if(f-l>600){const D=f-l+1,L=o-l+1,B=Math.log(D),V=.5*Math.exp(2*B/3),Y=.5*Math.sqrt(B*V*(D-V)/D)*(L-D/2<0?-1:1);I_(r,e,o,Math.max(l,Math.floor(o-L*V/D+Y)),Math.min(f,Math.floor(o+(D-L)*V/D+Y)),_)}const y=e[2*o+_];let w=l,E=f;for(lh(r,e,l,o),e[2*f+_]>y&&lh(r,e,l,f);wy;)E--}e[2*l+_]===y?lh(r,e,l,E):(E++,lh(r,e,E,f)),E<=o&&(l=E+1),o<=E&&(f=E-1)}}function lh(r,e,o,l){km(r,o,l),km(e,2*o,2*l),km(e,2*o+1,2*l+1)}function km(r,e,o){const l=r[e];r[e]=r[o],r[o]=l}function Ml(r,e,o,l){const f=r-o,_=e-l;return f*f+_*_}a.ARRAY_TYPE=ua,a.AUTH_ERR_MSG=yt,a.Aabb=_s,a.Actor=class{constructor(r,e,o){this.target=r,this.parent=e,this.mapId=o,this.callbacks={},this.cancelCallbacks={},Kt(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=on()?r:j,this.scheduler=new fv}send(r,e,o,l,f=!1,_){const y=Math.round(1e18*Math.random()).toString(36).substring(0,10);o&&(o.metadata=_,this.callbacks[y]=o);const w=Ut(this.globalScope)?void 0:[];return this.target.postMessage({id:y,type:r,hasCallback:!!o,targetMapId:l,mustQueue:f,sourceMapId:this.mapId,data:nl(e,w)},w),{cancel:()=>{o&&delete this.callbacks[y],this.target.postMessage({id:y,type:"",targetMapId:l,sourceMapId:this.mapId})}}}receive(r){const e=r.data,o=e.id;if(o&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){const l=this.cancelCallbacks[o];delete this.cancelCallbacks[o],l&&l.cancel()}else if(e.mustQueue||on()){const l=this.callbacks[o];this.cancelCallbacks[o]=this.scheduler.add(()=>this.processTask(o,e),l&&l.metadata||{type:"message"})}else this.processTask(o,e)}processTask(r,e){if(""===e.type){const o=this.callbacks[r];delete this.callbacks[r],o&&(e.error?o(wl(e.error)):o(null,wl(e.data)))}else{const o=Ut(this.globalScope)?void 0:[],l=e.hasCallback?(_,y)=>{delete this.cancelCallbacks[r],this.target.postMessage({id:r,type:"",sourceMapId:this.mapId,error:_?nl(_):null,data:nl(y,o)},o)}:_=>{},f=wl(e.data);if(this.parent[e.type])this.parent[e.type](e.sourceMapId,f,l);else if(this.parent.getWorkerSource){const _=e.type.split(".");this.parent.getWorkerSource(e.sourceMapId,_[0],f.source)[_[1]](f,l)}else l(new Error(`Could not find function ${e.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},a.CanonicalTileID=zc,a.Color=R,a.ColorMode=Yl,a.CullFaceMode=ul,a.DEMData=Pf,a.DataConstantProperty=ce,a.DedupedRequest=T_,a.DepthMode=xd,a.EXTENT=Ii,a.Elevation=class{isDataAvailableAtPoint(r){const e=this._source();if(this.isUsingMockSource()||!e||r.y<0||r.y>1)return!1;const o=e.getSource().maxzoom,l=1<1)return e;const f=l.getSource().maxzoom,_=1<{const _=this.getAtTileOffset(r,f.x,f.y),y=l.upVector(r.canonical,f.x,f.y);return Js(y,y,_*l.upVectorScale(r.canonical,e,o).metersToTile),y}}getForTilePoints(r,e,o,l){if(this.isUsingMockSource())return!1;const f=Rf.create(this,r,l);return!!f&&(e.forEach(_=>{_[2]=this.exaggeration()*f.getElevationAt(_[0],_[1],o)}),!0)}getMinMaxForTile(r){if(this.isUsingMockSource())return null;const e=this.findDEMTileFor(r);if(!e||!e.dem)return null;const o=e.dem.tree,l=e.tileID,f=1<{let V=D===_-1?D-2:0===D?D:D-1;return V+=B?24575:0,[V,L]};for(let D=0;D<_;++D)o.emplaceBack(...E(D,0,!0));for(let D=0;Dthis._skuTokenExpiresAt}transformRequest(r,e){return this._transformRequestFn&&this._transformRequestFn(r,e)||{url:r}}normalizeStyleURL(r,e){if(!Ot(r))return r;const o=mn(r);return o.path=`/styles/v1${o.path}`,this._makeAPIURL(o,this._customAccessToken||e)}normalizeGlyphsURL(r,e){if(!Ot(r))return r;const o=mn(r);return o.path=`/fonts/v1${o.path}`,this._makeAPIURL(o,this._customAccessToken||e)}normalizeSourceURL(r,e,o,l){if(!Ot(r))return r;const f=mn(r);return f.path=`/v4/${f.authority}.json`,f.params.push("secure"),o&&f.params.push(`language=${o}`),l&&f.params.push(`worldview=${l}`),this._makeAPIURL(f,this._customAccessToken||e)}normalizeSpriteURL(r,e,o,l){const f=mn(r);return Ot(r)?(f.path=`/styles/v1${f.path}/sprite${e}${o}`,this._makeAPIURL(f,this._customAccessToken||l)):(f.path+=`${e}${o}`,ae(f))}normalizeTileURL(r,e,o){if(this._isSkuTokenExpired()&&this._createSkuToken(),r&&!Ot(r))return r;const l=mn(r);l.path=l.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${e||o&&"raster"!==l.authority&&512===o?"@2x":""}${_e.supported?".webp":"$1"}`),"raster"===l.authority?l.path=`/${oe.RASTER_URL_PREFIX}${l.path}`:(l.path=l.path.replace(/^.+\/v4\//,"/"),l.path=`/${oe.TILE_URL_VERSION}${l.path}`);const f=this._customAccessToken||function(_){for(const y of _){const w=y.match(/^access_token=(.*)$/);if(w)return w[1]}return null}(l.params)||oe.ACCESS_TOKEN;return oe.REQUIRE_ACCESS_TOKEN&&f&&this._skuToken&&l.params.push(`sku=${this._skuToken}`),this._makeAPIURL(l,f)}canonicalizeTileURL(r,e){const o=mn(r);if(!o.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!o.path.match(/\.[\w]+$/))return r;let l="mapbox://";o.path.match(/^\/raster\/v1\//)?l+=`raster/${o.path.replace(`/${oe.RASTER_URL_PREFIX}/`,"")}`:l+=`tiles/${o.path.replace(`/${oe.TILE_URL_VERSION}/`,"")}`;let f=o.params;return e&&(f=f.filter(_=>!_.match(/^access_token=/))),f.length&&(l+=`?${f.join("&")}`),l}canonicalizeTileset(r,e){const o=!!e&&Ot(e),l=[];for(const f of r.tiles||[])Gt(f)?l.push(this.canonicalizeTileURL(f,o)):l.push(f);return l}_makeAPIURL(r,e){const o="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",l=mn(oe.API_URL);if(r.protocol=l.protocol,r.authority=l.authority,"http"===r.protocol){const f=r.params.indexOf("secure");f>=0&&r.params.splice(f,1)}if("/"!==l.path&&(r.path=`${l.path}${r.path}`),!oe.REQUIRE_ACCESS_TOKEN)return ae(r);if(e=e||oe.ACCESS_TOKEN,!this._silenceAuthErrors){if(!e)throw new Error(`An API access token is required to use Mapbox GL. ${o}`);if("s"===e[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${o}`)}return r.params=r.params.filter(f=>-1===f.indexOf("access_token")),r.params.push(`access_token=${e||""}`),ae(r)}},a.ResourceType=_n,a.SegmentVector=_o,a.SourceCache=Gc,a.StencilMode=Mm,a.StructArrayLayout1ui2=wa,a.StructArrayLayout2f1f2i16=Si,a.StructArrayLayout2i4=Yn,a.StructArrayLayout2ui4=oo,a.StructArrayLayout3f12=tr,a.StructArrayLayout3ui6=Di,a.StructArrayLayout4i8=Pn,a.StructArrayLayout5f20=$r,a.Texture=sh,a.Tile=Zc,a.Transitionable=re,a.Uniform1f=uc,a.Uniform1i=class extends Ea{constructor(r){super(r),this.current=0}set(r,e,o){this.fetchUniformLocation(r,e)&&this.current!==o&&(this.current=o,this.gl.uniform1i(this.location,o))}},a.Uniform2f=class extends Ea{constructor(r){super(r),this.current=[0,0]}set(r,e,o){this.fetchUniformLocation(r,e)&&(o[0]===this.current[0]&&o[1]===this.current[1]||(this.current=o,this.gl.uniform2f(this.location,o[0],o[1])))}},a.Uniform3f=class extends Ea{constructor(r){super(r),this.current=[0,0,0]}set(r,e,o){this.fetchUniformLocation(r,e)&&(o[0]===this.current[0]&&o[1]===this.current[1]&&o[2]===this.current[2]||(this.current=o,this.gl.uniform3f(this.location,o[0],o[1],o[2])))}},a.Uniform4f=au,a.UniformColor=dp,a.UniformMatrix2f=class extends Ea{constructor(r){super(r),this.current=j0}set(r,e,o){if(this.fetchUniformLocation(r,e))for(let l=0;l<4;l++)if(o[l]!==this.current[l]){this.current=o,this.gl.uniformMatrix2fv(this.location,!1,o);break}}},a.UniformMatrix3f=class extends Ea{constructor(r){super(r),this.current=zu}set(r,e,o){if(this.fetchUniformLocation(r,e))for(let l=0;l<9;l++)if(o[l]!==this.current[l]){this.current=o,this.gl.uniformMatrix3fv(this.location,!1,o);break}}},a.UniformMatrix4f=class extends Ea{constructor(r){super(r),this.current=hp}set(r,e,o){if(this.fetchUniformLocation(r,e)){if(o[12]!==this.current[12]||o[0]!==this.current[0])return this.current=o,void this.gl.uniformMatrix4fv(this.location,!1,o);for(let l=1;l<16;l++)if(o[l]!==this.current[l]){this.current=o,this.gl.uniformMatrix4fv(this.location,!1,o);break}}}},a.UnwrappedTileID=Ug,a.ValidationError=fi,a.VectorTileFeature=Hl,a.VectorTileWorkerSource=class extends wn{constructor(r,e,o,l,f){super(),this.actor=r,this.layerIndex=e,this.availableImages=o,this.loadVectorData=f||D_,this.loading={},this.loaded={},this.deduped=new T_(r.scheduler),this.isSpriteLoaded=l,this.scheduler=r.scheduler}loadTile(r,e){const o=r.uid,l=r&&r.request,f=l&&l.collectResourceTiming,_=this.loading[o]=new _v(r);_.abort=this.loadVectorData(r,(y,w)=>{const E=!this.loading[o];if(delete this.loading[o],E||y||!w)return _.status="done",E||(this.loaded[o]=_),e(y);const D=w.rawData,L={};w.expires&&(L.expires=w.expires),w.cacheControl&&(L.cacheControl=w.cacheControl),_.vectorTile=w.vectorTile||new qh(new bu(D));const B=()=>{_.parse(_.vectorTile,this.layerIndex,this.availableImages,this.actor,(V,Y)=>{if(V||!Y)return e(V);const Q={};if(f){const he=ao(l);he.length>0&&(Q.resourceTiming=JSON.parse(JSON.stringify(he)))}e(null,ke({rawTileData:D.slice(0)},Y,L,Q))})};this.isSpriteLoaded?B():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(B,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom}):B()}),this.loaded=this.loaded||{},this.loaded[o]=_})}reloadTile(r,e){const o=this.loaded,l=r.uid,f=this;if(o&&o[l]){const _=o[l];_.showCollisionBoxes=r.showCollisionBoxes,_.enableTerrain=!!r.enableTerrain,_.projection=r.projection,_.tileTransform=gc(r.tileID.canonical,r.projection);const y=(w,E)=>{const D=_.reloadCallback;D&&(delete _.reloadCallback,_.parse(_.vectorTile,f.layerIndex,this.availableImages,f.actor,D)),e(w,E)};"parsing"===_.status?_.reloadCallback=y:"done"===_.status&&(_.vectorTile?_.parse(_.vectorTile,this.layerIndex,this.availableImages,this.actor,y):y())}}abortTile(r,e){const o=r.uid,l=this.loading[o];l&&(l.abort&&l.abort(),delete this.loading[o]),e()}removeTile(r,e){const o=this.loaded,l=r.uid;o&&o[l]&&delete o[l],e()}},a.WritingMode=za,a.ZoomDependentExpression=fs,a.add=hc,a.addDynamicAttributes=Cf,a.adjoint=function(r,e){var o=e[0],l=e[1],f=e[2],_=e[3],y=e[4],w=e[5],E=e[6],D=e[7],L=e[8];return r[0]=y*L-w*D,r[1]=f*D-l*L,r[2]=l*w-f*y,r[3]=w*E-_*L,r[4]=o*L-f*E,r[5]=f*_-o*w,r[6]=_*D-y*E,r[7]=l*E-o*D,r[8]=o*y-l*_,r},a.asyncAll=xn,a.bezier=Se,a.bindAll=Kt,a.boundsAttributes=Em,a.bufferConvexPolygon=function(r,e){const o=[];for(let l=0;lTn&&(r.getActor().send("enforceCacheSizeLimit",Xt),Wi=0)},a.calculateGlobeLabelMatrix=function(r,e){const{x:o,y:l}=r.point,f=Tp(o,l,r.worldSize/r._pixelsPerMercatorPixel,0,0);return Vu(f,f,Ep(jl(e)))},a.calculateGlobeMatrix=function(r){const{x:e,y:o}=r.point,{lng:l,lat:f}=r._center;return Tp(e,o,r.worldSize,l,f)},a.calculateGlobeMercatorMatrix=function(r){const e=r.pixelsPerMeter,o=e/Na(1,r.center.lat),l=ka(new Float64Array(16));return $u(l,l,[r.point.x,r.point.y,0]),uu(l,l,[o,o,e]),Float32Array.from(l)},a.circumferenceAtLatitude=_u,a.clamp=Xe,a.clearTileCache=function(r){if(!Oi())return;const e=j.caches.delete(Nt);r&&e.catch(r).then(()=>r())},a.clipLine=fd,a.clone=function(r){var e=new ua(16);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e},a.clone$1=li,a.collisionCircleLayout=Xy,a.config=oe,a.conjugate=function(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r[3]=e[3],r},a.create=function(){var r=new ua(16);return ua!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r},a.create$1=_y,a.createExpression=hs,a.createLayout=Wt,a.createStyleLayer=function(r){return"custom"===r.type?new $c(r):new p_[r.type](r)},a.cross=Ac,a.degToRad=ne,a.distance=function(r,e){return Math.hypot(e[0]-r[0],e[1]-r[1],e[2]-r[2])},a.div=function(r,e,o){return r[0]=e[0]/o[0],r[1]=e[1]/o[1],r[2]=e[2]/o[2],r},a.dot=rl,a.earthRadius=gu,a.ease=Ve,a.easeCubicInOut=je,a.ecefToLatLng=function([r,e,o]){const l=Math.hypot(r,e,o),f=Math.atan2(r,o),_=.5*Math.PI-Math.acos(-e/l);return new Gr(Ee(f),Ee(_))},a.emitValidationErrors=Nn,a.endsWith=Mn,a.enforceCacheSizeLimit=function(r){gr(),oi&&oi.then(e=>{e.keys().then(o=>{for(let l=0;l_&&(l+=(r[f]-_)*(r[f]-_)),e[f]<_&&(l+=(_-e[f])*(_-e[f]))}return l},a.getAnchorAlignment=Kd,a.getAnchorJustification=pm,a.getBounds=function(r){let e=1/0,o=1/0,l=-1/0,f=-1/0;for(const _ of r)e=Math.min(e,_.x),o=Math.min(o,_.y),l=Math.max(l,_.x),f=Math.max(f,_.y);return{min:new Ae(e,o),max:new Ae(l,f)}},a.getColumn=qe,a.getDefaultExportFromCjs=Ye,a.getGridMatrix=function(r,e,o,l){const f=e.getNorth(),_=e.getSouth(),y=e.getWest(),w=e.getEast(),E=1<0){const Q=180/l;Ta(Y,Y,[Q/D+1,0,0,0,Q/L+1,0,-.5*Q/B,.5*Q/V,1])}return Y[2]=E,Y[5]=r.x,Y[8]=r.y,Y},a.getImage=tt,a.getJSON=function(r,e){return sn(ke(r,{type:"json"}),e)},a.getLatitudinalLod=function(r){const e=ys-5;r=Xe(r,-e,e)/e*90;const o=Math.pow(Math.abs(Math.sin(ne(r))),3);return Math.round(o*(Pc.length-1))},a.getMapSessionAPI=Ui,a.getPerformanceMeasurement=ao,a.getProjection=vm,a.getRTLTextPluginStatus=b,a.getReferrer=pn,a.getTilePoint=function(r,{x:e,y:o},l=0){return new Ae(((e-l)*r.scale-r.x)*Ii,(o*r.scale-r.y)*Ii)},a.getTileVec3=function(r,e,o=0){return dc(((e.x-o)*r.scale-r.x)*Ii,(e.y*r.scale-r.y)*Ii,Ip(e.z,e.y))},a.getVideo=function(r,e){const o=j.document.createElement("video");o.muted=!0,o.onloadstart=function(){e(null,o)};for(let l=0;l{}}},a.globeCenterToScreenPoint=function(r){const e=[0,0,0],o=ka(new Float64Array(16));return Vu(o,r.pixelMatrix,r.globeMatrix),co(e,e,o),new Ae(e[0],e[1])},a.globeDenormalizeECEF=Ep,a.globeECEFOrigin=function(r,e){const o=[0,0,0];return co(o,o,Yu(jl(e.canonical))),co(o,o,r),o},a.globeMetersToEcef=Fa,a.globeNormalizeECEF=Yu,a.globePixelsToTileUnits=function(r,e){return Ii/(512*Math.pow(2,r))*Oh(jl(e))},a.globePoleMatrixForTile=function(r,e,o){const l=ka(new Float64Array(16)),f=(e/(1<0;return 0===l&&!f&&!y&&_},a.identity=ka,a.identity$1=gp,a.invert=Mc,a.isFullscreen=function(){return!!j.document.fullscreenElement||!!j.document.webkitFullscreenElement},a.isLngLatBehindGlobe=Eg,a.isMapAuthenticated=function(r){return Fr.has(r)},a.isMapboxURL=Ot,a.isSafariWithAntialiasingBug=function(r){const e=r.navigator?r.navigator.userAgent:null;return!!Ut(r)&&e&&(e.match("Version/15.4")||e.match("Version/15.5")||e.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},a.latFromMercatorY=To,a.latLngToECEF=Rc,a.len=V0,a.length=Sd,a.length$1=function(r){return Math.hypot(r[0],r[1],r[2],r[3])},a.lngFromMercatorX=Ba,a.loadVectorTile=D_,a.makeRequest=sn,a.mapValue=function(r,e,o,l,f){return Xe((r-e)/(o-e)*(f-l)+l,l,f)},a.mercatorScale=Mp,a.mercatorXfromLng=Vl,a.mercatorYfromLat=$l,a.mercatorZfromAltitude=Na,a.mul=yy,a.mul$1=vy,a.multiply=Vu,a.multiply$1=Ta,a.multiply$2=gg,a.nextPowerOfTwo=it,a.normalize=Ks,a.normalize$1=_p,a.normalize$2=vg,a.number=_i,a.ortho=function(r,e,o,l,f,_,y){var w=1/(e-o),E=1/(l-f),D=1/(_-y);return r[0]=-2*w,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*E,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*D,r[11]=0,r[12]=(e+o)*w,r[13]=(f+l)*E,r[14]=(y+_)*D,r[15]=1,r},a.pbf=Gg,a.perspective=function(r,e,o,l,f){var _,y=1/Math.tan(e/2);return r[0]=y/o,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=y,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,null!=f&&f!==1/0?(r[10]=(f+l)*(_=1/(l-f)),r[14]=2*f*l*_):(r[10]=-1,r[14]=-2*l),r},a.pick=function(r,e){const o={};for(let l=0;l0&&o[0]<=r.width&&o[1]>0&&o[1]<=r.height&&!Eg(r,new Gr(r.center.lat,90)),l[0]>0&&l[0]<=r.width&&l[1]>0&&l[1]<=r.height&&!Eg(r,new Gr(r.center.lat,-90))]},a.polygonContainsPoint=Fc,a.polygonIntersectsBox=Iy,a.polygonIntersectsPolygon=Pp,a.polygonizeBounds=function(r,e,o=0,l=!0){const f=new Ae(o,o),_=r.sub(f),y=e.add(f),w=[_,new Ae(y.x,_.y),y,new Ae(_.x,y.y)];return l&&w.push(_.clone()),w},a.posAttributes=Sc,a.postMapLoadEvent=gi,a.postPerformanceEvent=Li,a.postTurnstileEvent=rn,a.potpack=lm,a.prevPowerOfTwo=function(r){return r<=1?1:Math.pow(2,Math.floor(Math.log(r)/Math.LN2))},a.radToDeg=Ee,a.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],a.registerForPluginStateChange=function(r){return r({pluginStatus:d,pluginURL:n}),v.on("pluginStateChange",r),r},a.removeAuthState=function(r){Fr.delete(r)},a.renderColorRamp=kh,a.resample=Cy,a.rotateX=mp,a.rotateX$1=Mh,a.rotateY=Dh,a.rotateY$1=Pd,a.rotateZ=function(r,e,o){var l=Math.sin(o),f=Math.cos(o),_=e[0],y=e[1],w=e[2],E=e[3],D=e[4],L=e[5],B=e[6],V=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=_*f+D*l,r[1]=y*f+L*l,r[2]=w*f+B*l,r[3]=E*f+V*l,r[4]=D*f-_*l,r[5]=L*f-y*l,r[6]=B*f-w*l,r[7]=V*f-E*l,r},a.rotateZ$1=function(r,e,o){o*=.5;var l=e[0],f=e[1],_=e[2],y=e[3],w=Math.sin(o),E=Math.cos(o);return r[0]=l*E+f*w,r[1]=f*E-l*w,r[2]=_*E+y*w,r[3]=y*E-_*w,r},a.scale=uu,a.scale$1=yg,a.scale$2=Js,a.scaleAndAdd=Hu,a.set=function(r,e,o,l){return r[0]=e,r[1]=o,r[2]=l,r},a.setCacheLimits=function(r,e){Xt=r,Tn=e},a.setColumn=function(r,e,o){r[4*e+0]=o[0],r[4*e+1]=o[1],r[4*e+2]=o[2],r[4*e+3]=o[3]},a.setRTLTextPlugin=function(r,e,o=!1){if(d===P||d===U||d===O)throw new Error("setRTLTextPlugin cannot be called multiple times.");n=Kr.resolveURL(r),d=P,z=e,m(),o||I()},a.smoothstep=Ht,a.spec=It,a.squaredLength=function(r){var e=r[0],o=r[1],l=r[2];return e*e+o*o+l*l},a.storeAuthState=function(r,e){e?Fr.add(r):Fr.delete(r)},a.sub=ol,a.subtract=Zu,a.symbolSize=q0,a.tileAABB=function(r,e,o,l,f,_,y,w,E){if("globe"===E.name)return function wy(r,e,o){const l=e/r.worldSize,f=r.globeMatrix;if(o.z<=1){const nn=jl(o).getCorners();return bg(nn,f,l),_s.fromPoints(nn)}const _=Ph(o),y=Rd(_);bg(y,f,l);const w=Number.MAX_VALUE,E=[-w,-w,-w],D=[w,w,w];if(_.contains(r.center)){for(const Jn of y)Gu(D,D,Jn),du(E,E,Jn);E[2]=0;const nn=r.point,In=[nn.x*l,nn.y*l,0];return Gu(D,D,In),du(E,E,In),new _s(D,E)}const L=[f[12]*l,f[13]*l,f[14]*l],B=_.getCenter(),V=Xe(r.center.lat,-ys,ys),Y=Xe(B.lat,-ys,ys),Q=Vl(r.center.lng),he=$l(V);let Ue=Q-Vl(B.lng);const ot=he-$l(Y);Ue>.5?Ue-=1:Ue<-.5&&(Ue+=1);let bt=0;Math.abs(Ue)>Math.abs(ot)?bt=Ue>=0?1:3:(bt=ot>=0?0:2,Hu(L,L,[f[4]*l,f[5]*l,f[6]*l],-Math.sin(ne(ot>=0?_.getSouth():_.getNorth()))*Xs));const st=y[bt],vt=y[(bt+1)%4],St=new wp(st,vt,L),At=[Cp(St,0)||st[0],Cp(St,1)||st[1],Cp(St,2)||st[2]],un=Ju(r.zoom);if(un>0){const nn=function({x:Jn,y:hn,z:On},kn,Gn,ii,En){const hi=1/(1<.5?Pi=-1:nr<-.5&&(Pi=1),Ei=((Ei+Pi)*kn-(ii*=kn))*Gn+ii,mi=((mi+Pi)*kn-ii)*Gn+ii,Hi=(Hi*kn-(En*=kn))*Gn+En,ri=(ri*kn-En)*Gn+En,[[Ei,ri,0],[mi,ri,0],[mi,Hi,0],[Ei,Hi,0]]}(o,e,r._pixelsPerMercatorPixel,Q,he);for(let Jn=0;Jnla(Fl(r)),a.validateFog=r=>la(Tc(r)),a.validateLayer=r=>la(ms(r)),a.validateLight=r=>la(Qc(r)),a.validateSource=r=>la(Fu(r)),a.validateStyle=tu,a.validateTerrain=r=>la(Ec(r)),a.values=$t,a.vectorTile=Hh,a.version=K,a.warnOnce=Dt,a.window=j,a.wrap=cn}),p(0,function(a){function j(ct){if("number"==typeof ct||"boolean"==typeof ct||"string"==typeof ct||null==ct)return JSON.stringify(ct);if(Array.isArray(ct)){let se="[";for(const tt of ct)se+=`${j(tt)},`;return`${se}]`}let ge="{";for(const se of Object.keys(ct).sort())ge+=`${se}:${j(ct[se])},`;return`${ge}}`}function K(ct){let ge="";for(const se of a.refProperties)ge+=`/${j(ct[se])}`;return ge}class C{constructor(ge){this.keyCache={},ge&&this.replace(ge)}replace(ge){this._layerConfigs={},this._layers={},this.update(ge,[])}update(ge,se){for(const yt of ge)this._layerConfigs[yt.id]=yt,(this._layers[yt.id]=a.createStyleLayer(yt)).compileFilter(),this.keyCache[yt.id]&&delete this.keyCache[yt.id];for(const yt of se)delete this.keyCache[yt],delete this._layerConfigs[yt],delete this._layers[yt];this.familiesBySource={};const tt=function(yt,Ot){const Gt={};for(let Et=0;Etthis._layers[mn.id]),Gt=Ot[0];if("none"===Gt.visibility)continue;const Vt=Gt.source||"";let Et=this.familiesBySource[Vt];Et||(Et=this.familiesBySource[Vt]={});const Jt=Gt.sourceLayer||"_geojsonTileLayer";let Bn=Et[Jt];Bn||(Bn=Et[Jt]=[]),Bn.push(Ot)}}}class oe{loadTile(ge,se){const{uid:tt,encoding:yt,rawImageData:Ot,padding:Gt,buildQuadTree:Vt}=ge,Et=a.window.ImageBitmap&&Ot instanceof a.window.ImageBitmap?this.getImageData(Ot,Gt):Ot;se(null,new a.DEMData(tt,Et,yt,Gt<1,Vt))}getImageData(ge,se){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(ge.width,ge.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=ge.width,this.offscreenCanvas.height=ge.height,this.offscreenCanvasContext.drawImage(ge,0,0,ge.width,ge.height);const tt=this.offscreenCanvasContext.getImageData(-se,-se,ge.width+2*se,ge.height+2*se);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),tt}}function _e(ct,ge){if(0!==ct.length){Le(ct[0],ge);for(var se=1;se=Math.abs(Vt)?se-Et+Vt:Vt-Et+se,se=Et}se+tt>=0!=!!ge&&ct.reverse()}var ee=a.getDefaultExportFromCjs(function ct(ge,se){var tt,yt=ge&&ge.type;if("FeatureCollection"===yt)for(tt=0;tt>31}function xe(ct,ge){for(var se=ct.loadGeometry(),tt=ct.type,yt=0,Ot=0,Gt=se.length,Vt=0;Vtct},Xe=Math.fround||(Ht=new Float32Array(1),ct=>(Ht[0]=+ct,Ht[0]));var Ht;const cn=3,xn=5,$t=6;class ke{constructor(ge){this.options=Object.assign(Object.create(Ve),ge),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(ge){const{log:se,minZoom:tt,maxZoom:yt}=this.options;se&&console.time("total time");const Ot=`prepare ${ge.length} points`;se&&console.time(Ot),this.points=ge;const Gt=[];for(let Et=0;Et=tt;Et--){const Jt=+Date.now();Vt=this.trees[Et]=this._createTree(this._cluster(Vt,Et)),se&&console.log("z%d: %d clusters in %dms",Et,Vt.numItems,+Date.now()-Jt)}return se&&console.timeEnd("total time"),this}getClusters(ge,se){let tt=((ge[0]+180)%360+360)%360-180;const yt=Math.max(-90,Math.min(90,ge[1]));let Ot=180===ge[2]?180:((ge[2]+180)%360+360)%360-180;const Gt=Math.max(-90,Math.min(90,ge[3]));if(ge[2]-ge[0]>=360)tt=-180,Ot=180;else if(tt>Ot){const mn=this.getClusters([tt,yt,180,Gt],se),ae=this.getClusters([-180,yt,Ot,Gt],se);return mn.concat(ae)}const Vt=this.trees[this._limitZoom(se)],Et=Vt.range(ie(tt),it(Gt),ie(Ot),it(yt)),Jt=Vt.data,Bn=[];for(const mn of Et){const ae=this.stride*mn;Bn.push(Jt[ae+xn]>1?pe(Jt,ae,this.clusterProps):this.points[Jt[ae+cn]])}return Bn}getChildren(ge){const se=this._getOriginId(ge),tt=this._getOriginZoom(ge),yt="No cluster with the specified id.",Ot=this.trees[tt];if(!Ot)throw new Error(yt);const Gt=Ot.data;if(se*this.stride>=Gt.length)throw new Error(yt);const Vt=this.options.radius/(this.options.extent*Math.pow(2,tt-1)),Et=Ot.within(Gt[se*this.stride],Gt[se*this.stride+1],Vt),Jt=[];for(const Bn of Et){const mn=Bn*this.stride;Gt[mn+4]===ge&&Jt.push(Gt[mn+xn]>1?pe(Gt,mn,this.clusterProps):this.points[Gt[mn+cn]])}if(0===Jt.length)throw new Error(yt);return Jt}getLeaves(ge,se,tt){const yt=[];return this._appendLeaves(yt,ge,se=se||10,tt=tt||0,0),yt}getTile(ge,se,tt){const yt=this.trees[this._limitZoom(ge)],Ot=Math.pow(2,ge),{extent:Gt,radius:Vt}=this.options,Et=Vt/Gt,Jt=(tt-Et)/Ot,Bn=(tt+1+Et)/Ot,mn={features:[]};return this._addTileFeatures(yt.range((se-Et)/Ot,Jt,(se+1+Et)/Ot,Bn),yt.data,se,tt,Ot,mn),0===se&&this._addTileFeatures(yt.range(1-Et/Ot,Jt,1,Bn),yt.data,Ot,tt,Ot,mn),se===Ot-1&&this._addTileFeatures(yt.range(0,Jt,Et/Ot,Bn),yt.data,-1,tt,Ot,mn),mn.features.length?mn:null}getClusterExpansionZoom(ge){let se=this._getOriginZoom(ge)-1;for(;se<=this.options.maxZoom;){const tt=this.getChildren(ge);if(se++,1!==tt.length)break;ge=tt[0].properties.cluster_id}return se}_appendLeaves(ge,se,tt,yt,Ot){const Gt=this.getChildren(se);for(const Vt of Gt){const Et=Vt.properties;if(Et&&Et.cluster?Ot+Et.point_count<=yt?Ot+=Et.point_count:Ot=this._appendLeaves(ge,Et.cluster_id,tt,yt,Ot):Ot1;let Bn,mn,ae;if(Jt)Bn=Oe(se,Et,this.clusterProps),mn=se[Et],ae=se[Et+1];else{const ze=this.points[se[Et+cn]];Bn=ze.properties;const[at,rn]=ze.geometry.coordinates;mn=ie(at),ae=it(rn)}const ht={type:1,geometry:[[Math.round(this.options.extent*(mn*Ot-tt)),Math.round(this.options.extent*(ae*Ot-yt))]],tags:Bn};let G;G=Jt||this.options.generateId?se[Et+cn]:this.points[se[Et+cn]].id,void 0!==G&&(ht.id=G),Gt.features.push(ht)}}_limitZoom(ge){return Math.max(this.options.minZoom,Math.min(Math.floor(+ge),this.options.maxZoom+1))}_cluster(ge,se){const{radius:tt,extent:yt,reduce:Ot,minPoints:Gt}=this.options,Vt=tt/(yt*Math.pow(2,se)),Et=ge.data,Jt=[],Bn=this.stride;for(let mn=0;mnse&&(at+=Et[Dn+xn])}if(at>ze&&at>=Gt){let rn,Dn=ae*ze,gi=ht*ze,Mi=-1;const Li=((mn/Bn|0)<<5)+(se+1)+this.points.length;for(const yr of G){const Ui=yr*Bn;if(Et[Ui+2]<=se)continue;Et[Ui+2]=se;const Fr=Et[Ui+xn];Dn+=Et[Ui]*Fr,gi+=Et[Ui+1]*Fr,Et[Ui+4]=Li,Ot&&(rn||(rn=this._map(Et,mn,!0),Mi=this.clusterProps.length,this.clusterProps.push(rn)),Ot(rn,this._map(Et,Ui)))}Et[mn+4]=Li,Jt.push(Dn/at,gi/at,1/0,Li,-1,at),Ot&&Jt.push(Mi)}else{for(let rn=0;rn1)for(const rn of G){const Dn=rn*Bn;if(!(Et[Dn+2]<=se)){Et[Dn+2]=se;for(let gi=0;gi>5}_getOriginZoom(ge){return(ge-this.points.length)%32}_map(ge,se,tt){if(ge[se+xn]>1){const Gt=this.clusterProps[ge[se+$t]];return tt?Object.assign({},Gt):Gt}const yt=this.points[ge[se+cn]].properties,Ot=this.options.map(yt);return tt&&Ot===yt?Object.assign({},Ot):Ot}}function pe(ct,ge,se){return{type:"Feature",id:ct[ge+cn],properties:Oe(ct,ge,se),geometry:{type:"Point",coordinates:[(tt=ct[ge],360*(tt-.5)),_t(ct[ge+1])]}};var tt}function Oe(ct,ge,se){const tt=ct[ge+xn],yt=tt>=1e4?`${Math.round(tt/1e3)}k`:tt>=1e3?Math.round(tt/100)/10+"k":tt,Ot=ct[ge+$t],Gt=-1===Ot?{}:Object.assign({},se[Ot]);return Object.assign(Gt,{cluster:!0,cluster_id:ct[ge+cn],point_count:tt,point_count_abbreviated:yt})}function ie(ct){return ct/360+.5}function it(ct){const ge=Math.sin(ct*Math.PI/180),se=.5-.25*Math.log((1+ge)/(1-ge))/Math.PI;return se<0?0:se>1?1:se}function _t(ct){const ge=(180-360*ct)*Math.PI/180;return 360*Math.atan(Math.exp(ge))/Math.PI-90}function Kt(ct,ge,se,tt){for(var yt,Ot=tt,Gt=se-ge>>1,Vt=se-ge,Et=ct[ge],Jt=ct[ge+1],Bn=ct[se],mn=ct[se+1],ae=ge+3;aeOt)yt=ae,Ot=ht;else if(ht===Ot){var G=Math.abs(ae-Gt);Gtt&&(yt-ge>3&&Kt(ct,ge,yt,tt),ct[yt+2]=Ot,se-yt>3&&Kt(ct,yt,se,tt))}function Mn(ct,ge,se,tt,yt,Ot){var Gt=yt-se,Vt=Ot-tt;if(0!==Gt||0!==Vt){var Et=((ct-se)*Gt+(ge-tt)*Vt)/(Gt*Gt+Vt*Vt);Et>1?(se=yt,tt=Ot):Et>0&&(se+=Gt*Et,tt+=Vt*Et)}return(Gt=ct-se)*Gt+(Vt=ge-tt)*Vt}function fn(ct,ge,se,tt){var yt={id:void 0===ct?null:ct,type:ge,geometry:se,tags:tt,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Ot){var Gt=Ot.geometry,Vt=Ot.type;if("Point"===Vt||"MultiPoint"===Vt||"LineString"===Vt)qn(Ot,Gt);else if("Polygon"===Vt||"MultiLineString"===Vt)for(var Et=0;Et0&&(Gt+=tt?(yt*Jt-Et*Ot)/2:Math.sqrt(Math.pow(Et-yt,2)+Math.pow(Jt-Ot,2))),yt=Et,Ot=Jt}var Bn=ge.length-3;ge[2]=1,Kt(ge,0,Bn,se),ge[Bn+2]=1,ge.size=Math.abs(Gt),ge.start=0,ge.end=ge.size}function Ie(ct,ge,se,tt){for(var yt=0;yt1?1:se}function Rn(ct,ge,se,tt,yt,Ot,Gt,Vt){if(tt/=ge,Ot>=(se/=ge)&&Gt=tt)return null;for(var Et=[],Jt=0;Jt=se&&G=tt)){var ze=[];if("Point"===ae||"MultiPoint"===ae)Vn(mn,ze,se,tt,yt);else if("LineString"===ae)Ut(mn,ze,se,tt,yt,!1,Vt.lineMetrics);else if("MultiLineString"===ae)qe(mn,ze,se,tt,yt,!1);else if("Polygon"===ae)qe(mn,ze,se,tt,yt,!0);else if("MultiPolygon"===ae)for(var at=0;at=se&&Gt<=tt&&(ge.push(ct[Ot]),ge.push(ct[Ot+1]),ge.push(ct[Ot+2]))}}function Ut(ct,ge,se,tt,yt,Ot,Gt){for(var Vt,Et,Jt=Hn(ct),Bn=0===yt?Xt:Tn,mn=ct.start,ae=0;aese&&(Et=Bn(Jt,ht,G,at,rn,se),Gt&&(Jt.start=mn+Vt*Et)):Dn>tt?gi=se&&(Et=Bn(Jt,ht,G,at,rn,se),Mi=!0),gi>tt&&Dn<=tt&&(Et=Bn(Jt,ht,G,at,rn,tt),Mi=!0),!Ot&&Mi&&(Gt&&(Jt.end=mn+Vt*Et),ge.push(Jt),Jt=Hn(ct)),Gt&&(mn+=Vt)}var Li=ct.length-3;ht=ct[Li],G=ct[Li+1],ze=ct[Li+2],(Dn=0===yt?ht:G)>=se&&Dn<=tt&&Nt(Jt,ht,G,ze),Li=Jt.length-3,Ot&&Li>=3&&(Jt[Li]!==Jt[0]||Jt[Li+1]!==Jt[1])&&Nt(Jt,Jt[0],Jt[1],Jt[2]),Jt.length&&ge.push(Jt)}function Hn(ct){var ge=[];return ge.size=ct.size,ge.start=ct.start,ge.end=ct.end,ge}function qe(ct,ge,se,tt,yt,Ot){for(var Gt=0;GtGt.maxX&&(Gt.maxX=Bn),mn>Gt.maxY&&(Gt.maxY=mn)}return Gt}function Wi(ct,ge,se,tt){var yt=ge.geometry,Ot=ge.type,Gt=[];if("Point"===Ot||"MultiPoint"===Ot)for(var Vt=0;Vt0&&ge.size<(yt?Gt:tt))se.numPoints+=ge.length/3;else{for(var Vt=[],Et=0;EtGt)&&(se.numSimplified++,Vt.push(ge[Et]),Vt.push(ge[Et+1])),se.numPoints++;yt&&function(Jt,Bn){for(var mn=0,ae=0,ht=Jt.length,G=ht-2;ae0===Bn)for(ae=0,ht=Jt.length;ae24)throw new Error("maxZoom should be in the 0-24 range");if(ge.promoteId&&ge.generateId)throw new Error("promoteId and generateId cannot be used together.");var yt,Ot,Gt,Vt,Et,Jt,tt=function(yt,Ot){var Gt=[];if("FeatureCollection"===yt.type)for(var Vt=0;Vt1&&console.time("creation"),ae=this.tiles[mn]=ki(ct,ge,se,tt,Et),this.tileCoords.push({z:ge,x:se,y:tt}),Jt)){Jt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",ge,se,tt,ae.numFeatures,ae.numPoints,ae.numSimplified),console.timeEnd("creation"));var ht="z"+ge;this.stats[ht]=(this.stats[ht]||0)+1,this.total++}if(ae.source=ct,yt){if(ge===Et.maxZoom||ge===yt)continue;var G=1<1&&console.time("clipping");var ze,at,rn,Dn,gi,Mi,Li=.5*Et.buffer/Et.extent,yr=.5-Li,Ui=.5+Li,Fr=1+Li;ze=at=rn=Dn=null,gi=Rn(ct,Bn,se-Li,se+Ui,0,ae.minX,ae.maxX,Et),Mi=Rn(ct,Bn,se+yr,se+Fr,0,ae.minX,ae.maxX,Et),ct=null,gi&&(ze=Rn(gi,Bn,tt-Li,tt+Ui,1,ae.minY,ae.maxY,Et),at=Rn(gi,Bn,tt+yr,tt+Fr,1,ae.minY,ae.maxY,Et),gi=null),Mi&&(rn=Rn(Mi,Bn,tt-Li,tt+Ui,1,ae.minY,ae.maxY,Et),Dn=Rn(Mi,Bn,tt+yr,tt+Fr,1,ae.minY,ae.maxY,Et),Mi=null),Jt>1&&console.timeEnd("clipping"),Vt.push(ze||[],ge+1,2*se,2*tt),Vt.push(at||[],ge+1,2*se,2*tt+1),Vt.push(rn||[],ge+1,2*se+1,2*tt),Vt.push(Dn||[],ge+1,2*se+1,2*tt+1)}}},Bi.prototype.getTile=function(ct,ge,se){var tt=this.options,yt=tt.extent,Ot=tt.debug;if(ct<0||ct>24)return null;var Gt=1<1&&console.log("drilling down to z%d-%d-%d",ct,ge,se);for(var Et,Jt=ct,Bn=ge,mn=se;!Et&&Jt>0;)Jt--,Bn=Math.floor(Bn/2),mn=Math.floor(mn/2),Et=this.tiles[pn(Jt,Bn,mn)];return Et&&Et.source?(Ot>1&&console.log("found parent tile z%d-%d-%d",Jt,Bn,mn),Ot>1&&console.time("drilling down"),this.splitTile(Et.source,Jt,Bn,mn,ct,ge,se),Ot>1&&console.timeEnd("drilling down"),this.tiles[Vt]?Oi(this.tiles[Vt],yt):null):null};class Cn extends a.VectorTileWorkerSource{constructor(ge,se,tt,yt,Ot){super(ge,se,tt,yt,sn),Ot&&(this.loadGeoJSON=Ot)}loadData(ge,se){const tt=ge&&ge.request,yt=tt&&tt.collectResourceTiming;this.loadGeoJSON(ge,(Ot,Gt)=>{if(Ot||!Gt)return se(Ot);if("object"!=typeof Gt)return se(new Error(`Input data given to '${ge.source}' is not a valid GeoJSON object.`));{ee(Gt,!0);try{if(ge.filter){const Et=a.createExpression(ge.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===Et.result)throw new Error(Et.value.map(Bn=>`${Bn.key}: ${Bn.message}`).join(", "));Gt={type:"FeatureCollection",features:Gt.features.filter(Bn=>Et.value.evaluate({zoom:0},Bn))}}this._geoJSONIndex=ge.cluster?new ke(function({superclusterOptions:Et,clusterProperties:Jt}){if(!Jt||!Et)return Et;const Bn={},mn={},ae={accumulated:null,zoom:0},ht={properties:null},G=Object.keys(Jt);for(const ze of G){const[at,rn]=Jt[ze],Dn=a.createExpression(rn),gi=a.createExpression("string"==typeof at?[at,["accumulated"],["get",ze]]:at);Bn[ze]=Dn.value,mn[ze]=gi.value}return Et.map=ze=>{ht.properties=ze;const at={};for(const rn of G)at[rn]=Bn[rn].evaluate(ae,ht);return at},Et.reduce=(ze,at)=>{ht.properties=at;for(const rn of G)ae.accumulated=ze[rn],ze[rn]=mn[rn].evaluate(ae,ht)},Et}(ge)).load(Gt.features):new Bi(Et=Gt,ge.geojsonVtOptions)}catch(Et){return se(Et)}this.loaded={};const Vt={};if(yt){const Et=a.getPerformanceMeasurement(tt);Et&&(Vt.resourceTiming={},Vt.resourceTiming[ge.source]=JSON.parse(JSON.stringify(Et)))}se(null,Vt)}var Et})}reloadTile(ge,se){const tt=this.loaded;return tt&&tt[ge.uid]?super.reloadTile(ge,se):this.loadTile(ge,se)}loadGeoJSON(ge,se){if(ge.request)a.getJSON(ge.request,se);else{if("string"!=typeof ge.data)return se(new Error(`Input data given to '${ge.source}' is not a valid GeoJSON object.`));try{return se(null,JSON.parse(ge.data))}catch{return se(new Error(`Input data given to '${ge.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(ge,se){try{se(null,this._geoJSONIndex.getClusterExpansionZoom(ge.clusterId))}catch(tt){se(tt)}}getClusterChildren(ge,se){try{se(null,this._geoJSONIndex.getChildren(ge.clusterId))}catch(tt){se(tt)}}getClusterLeaves(ge,se){try{se(null,this._geoJSONIndex.getLeaves(ge.clusterId,ge.limit,ge.offset))}catch(tt){se(tt)}}}class $i{constructor(ge){this.self=ge,this.actor=new a.Actor(ge,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=a.getProjection({name:"mercator"}),this.workerSourceTypes={vector:a.VectorTileWorkerSource,geojson:Cn},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(se,tt)=>{if(this.workerSourceTypes[se])throw new Error(`Worker source with name "${se}" already registered.`);this.workerSourceTypes[se]=tt},this.self.registerRTLTextPlugin=se=>{if(a.plugin.isParsed())throw new Error("RTL text plugin already registered.");a.plugin.applyArabicShaping=se.applyArabicShaping,a.plugin.processBidirectionalText=se.processBidirectionalText,a.plugin.processStyledBidirectionalText=se.processStyledBidirectionalText}}clearCaches(ge,se,tt){delete this.layerIndexes[ge],delete this.availableImages[ge],delete this.workerSources[ge],delete this.demWorkerSources[ge],tt()}checkIfReady(ge,se,tt){tt()}setReferrer(ge,se){this.referrer=se}spriteLoaded(ge,se){this.isSpriteLoaded[ge]=se;for(const tt in this.workerSources[ge]){const yt=this.workerSources[ge][tt];for(const Ot in yt)yt[Ot]instanceof a.VectorTileWorkerSource&&(yt[Ot].isSpriteLoaded=se,yt[Ot].fire(new a.Event("isSpriteLoaded")))}}setImages(ge,se,tt){this.availableImages[ge]=se;for(const yt in this.workerSources[ge]){const Ot=this.workerSources[ge][yt];for(const Gt in Ot)Ot[Gt].availableImages=se}tt()}enableTerrain(ge,se,tt){this.terrain=se,tt()}setProjection(ge,se){this.projections[ge]=a.getProjection(se)}setLayers(ge,se,tt){this.getLayerIndex(ge).replace(se),tt()}updateLayers(ge,se,tt){this.getLayerIndex(ge).update(se.layers,se.removedIds),tt()}loadTile(ge,se,tt){const yt=this.enableTerrain?a.extend({enableTerrain:this.terrain},se):se;yt.projection=this.projections[ge]||this.defaultProjection,this.getWorkerSource(ge,se.type,se.source).loadTile(yt,tt)}loadDEMTile(ge,se,tt){const yt=this.enableTerrain?a.extend({buildQuadTree:this.terrain},se):se;this.getDEMWorkerSource(ge,se.source).loadTile(yt,tt)}reloadTile(ge,se,tt){const yt=this.enableTerrain?a.extend({enableTerrain:this.terrain},se):se;yt.projection=this.projections[ge]||this.defaultProjection,this.getWorkerSource(ge,se.type,se.source).reloadTile(yt,tt)}abortTile(ge,se,tt){this.getWorkerSource(ge,se.type,se.source).abortTile(se,tt)}removeTile(ge,se,tt){this.getWorkerSource(ge,se.type,se.source).removeTile(se,tt)}removeSource(ge,se,tt){if(!this.workerSources[ge]||!this.workerSources[ge][se.type]||!this.workerSources[ge][se.type][se.source])return;const yt=this.workerSources[ge][se.type][se.source];delete this.workerSources[ge][se.type][se.source],void 0!==yt.removeSource?yt.removeSource(se,tt):tt()}loadWorkerSource(ge,se,tt){try{this.self.importScripts(se.url),tt()}catch(yt){tt(yt.toString())}}syncRTLPluginState(ge,se,tt){try{a.plugin.setState(se);const yt=a.plugin.getPluginURL();if(a.plugin.isLoaded()&&!a.plugin.isParsed()&&null!=yt){this.self.importScripts(yt);const Ot=a.plugin.isParsed();tt(Ot?void 0:new Error(`RTL Text Plugin failed to import scripts from ${yt}`),Ot)}}catch(yt){tt(yt.toString())}}getAvailableImages(ge){let se=this.availableImages[ge];return se||(se=[]),se}getLayerIndex(ge){let se=this.layerIndexes[ge];return se||(se=this.layerIndexes[ge]=new C),se}getWorkerSource(ge,se,tt){return this.workerSources[ge]||(this.workerSources[ge]={}),this.workerSources[ge][se]||(this.workerSources[ge][se]={}),this.workerSources[ge][se][tt]||(this.workerSources[ge][se][tt]=new this.workerSourceTypes[se]({send:(Ot,Gt,Vt,Et,Jt,Bn)=>{this.actor.send(Ot,Gt,Vt,ge,Jt,Bn)},scheduler:this.actor.scheduler},this.getLayerIndex(ge),this.getAvailableImages(ge),this.isSpriteLoaded[ge])),this.workerSources[ge][se][tt]}getDEMWorkerSource(ge,se){return this.demWorkerSources[ge]||(this.demWorkerSources[ge]={}),this.demWorkerSources[ge][se]||(this.demWorkerSources[ge][se]=new oe),this.demWorkerSources[ge][se]}enforceCacheSizeLimit(ge,se){a.enforceCacheSizeLimit(se)}getWorkerPerformanceMetrics(ge,se,tt){tt(void 0,void 0)}}return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new $i(self)),$i}),p(0,function(a){function j(d,n){if(Array.isArray(d)){if(!Array.isArray(n)||d.length!==n.length)return!1;for(let c=0;c"u"||typeof document>"u"||!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)||!Function.prototype||!Function.prototype.bind||!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)||!("JSON"in window&&"parse"in JSON&&"stringify"in JSON)||!function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var m,v,b=new Blob([""],{type:"text/javascript"}),I=URL.createObjectURL(b);try{v=new Worker(I),m=!0}catch{m=!1}return v&&v.terminate(),URL.revokeObjectURL(I),m}()||!("Uint8ClampedArray"in window)||!ArrayBuffer.isView||!function(){var m=document.createElement("canvas");m.width=m.height=1;var v=m.getContext("2d");if(!v)return!1;var b=v.getImageData(0,0,1,1);return b&&b.width===m.width}()||(void 0===oe[c=n&&n.failIfMajorPerformanceCaveat]&&(oe[c]=function(m){var v,I,M,N,b=(I=m,M=document.createElement("canvas"),(N=Object.create(C.webGLContextAttributes)).failIfMajorPerformanceCaveat=I,M.getContext("webgl",N)||M.getContext("experimental-webgl",N));if(!b)return!1;try{v=b.createShader(b.VERTEX_SHADER)}catch{return!1}return!(!v||b.isContextLost())&&(b.shaderSource(v,"void main() {}"),b.compileShader(v),!0===b.getShaderParameter(v,b.COMPILE_STATUS))}(c)),!oe[c]||document.documentMode));var n,c}var oe={};function _e(d,n,c){const m=a.window.document.createElement(d);return void 0!==n&&(m.className=n),c&&c.appendChild(m),m}function Le(d,n,c){const m=a.window.document.createElementNS("http://www.w3.org/2000/svg",d);for(const v of Object.keys(n))m.setAttributeNS(null,v,n[v]);return c&&c.appendChild(m),m}C.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const ee=a.window.document&&a.window.document.documentElement.style,Te=ee&&void 0!==ee.userSelect?"userSelect":"WebkitUserSelect";let ye;function De(){ee&&Te&&(ye=ee[Te],ee[Te]="none")}function me(){ee&&Te&&(ee[Te]=ye)}function Ye(d){d.preventDefault(),d.stopPropagation(),a.window.removeEventListener("click",Ye,!0)}function Ce(){a.window.addEventListener("click",Ye,!0),a.window.setTimeout(()=>{a.window.removeEventListener("click",Ye,!0)},0)}function de(d,n){const c=d.getBoundingClientRect();return Ne(d,c,n)}function Pe(d,n){const c=d.getBoundingClientRect(),m=[];for(let v=0;v=0?0:d.button}function Ne(d,n,c){const m=d.offsetWidth===n.width?1:d.offsetWidth/n.width;return new a.Point((c.clientX-n.left)*m,(c.clientY-n.top)*m)}function Ae(d,n){var c=n[0],m=n[1],v=n[2],b=n[3],I=c*b-v*m;return I?(d[0]=b*(I=1/I),d[1]=-m*I,d[2]=-v*I,d[3]=c*I,d):null}function Ge(d){const{userImage:n}=d;return!!(n&&n.render&&n.render())&&(d.data.replace(new Uint8Array(n.data.buffer)),!0)}class lt extends a.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new a.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(n){if(this.loaded!==n&&(this.loaded=n,n)){for(const{ids:c,callback:m}of this.requestors)this._notify(c,m);this.requestors=[]}}hasImage(n){return!!this.getImage(n)}getImage(n){return this.images[n]}addImage(n,c){this._validate(n,c)&&(this.images[n]=c)}_validate(n,c){let m=!0;return this._validateStretch(c.stretchX,c.data&&c.data.width)||(this.fire(new a.ErrorEvent(new Error(`Image "${n}" has invalid "stretchX" value`))),m=!1),this._validateStretch(c.stretchY,c.data&&c.data.height)||(this.fire(new a.ErrorEvent(new Error(`Image "${n}" has invalid "stretchY" value`))),m=!1),this._validateContent(c.content,c)||(this.fire(new a.ErrorEvent(new Error(`Image "${n}" has invalid "content" value`))),m=!1),m}_validateStretch(n,c){if(!n)return!0;let m=0;for(const v of n){if(v[0]{this.ready=!0})}broadcast(n,c,m){a.asyncAll(this.actors,(v,b)=>{v.send(n,c,b)},m=m||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(n=>{n.remove()}),this.actors=[],this.workerPool.release(this.id)}}function xn(d,n,c){return n*(a.EXTENT/(d.tileSize*Math.pow(2,c-d.tileID.overscaledZ)))}cn.Actor=a.Actor;class $t{constructor(n,c,m,v){this.screenBounds=n,this.cameraPoint=c,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=m,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,v)}static createFromScreenPoints(n,c){let m,v;if(n instanceof a.Point||"number"==typeof n[0]){const b=a.Point.convert(n);m=[b],v=c.isPointAboveHorizon(b)}else{const b=a.Point.convert(n[0]),I=a.Point.convert(n[1]);m=[b,I],v=a.polygonizeBounds(b,I).every(M=>c.isPointAboveHorizon(M))}return new $t(m,c.getCameraPoint(),v,c)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(n){return a.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],n)}bufferedCameraGeometry(n){const c=this.screenBounds[0],m=1===this.screenBounds.length?this.screenBounds[0].add(new a.Point(1,1)):this.screenBounds[1],v=a.polygonizeBounds(c,m,0,!1);return this.cameraPoint.y>m.y&&(this.cameraPoint.x>c.x&&this.cameraPoint.x=m.x?v[2]=this.cameraPoint:this.cameraPoint.x<=c.x&&(v[3]=this.cameraPoint)),a.bufferConvexPolygon(v,n)}bufferedCameraGeometryGlobe(n){const c=this.screenBounds[0],m=1===this.screenBounds.length?this.screenBounds[0].add(new a.Point(1,1)):this.screenBounds[1],v=a.polygonizeBounds(c,m,n),b=this.cameraPoint.clone();switch(3*((b.y>c.y)+(b.y>m.y))+((b.x>c.x)+(b.x>m.x))){case 0:v[0]=b,v[4]=b.clone();break;case 1:v.splice(1,0,b);break;case 2:v[1]=b;break;case 3:v.splice(4,0,b);break;case 5:v.splice(2,0,b);break;case 6:v[3]=b;break;case 7:v.splice(3,0,b);break;case 8:v[2]=b}return v}containsTile(n,c,m,v=0){const b=n.queryPadding/c._pixelsPerMercatorPixel+1,I=m?this._bufferedCameraMercator(b,c):this._bufferedScreenMercator(b,c);let M=n.tileID.wrap+(I.unwrapped?v:0);const N=I.polygon.map(nt=>a.getTilePoint(n.tileTransform,nt,M));if(!a.polygonIntersectsBox(N,0,0,a.EXTENT,a.EXTENT))return;M=n.tileID.wrap+(this.screenGeometryMercator.unwrapped?v:0);const Z=this.screenGeometryMercator.polygon.map(nt=>a.getTileVec3(n.tileTransform,nt,M)),$=Z.map(nt=>new a.Point(nt[0],nt[1])),re=c.getFreeCameraOptions().position||new a.MercatorCoordinate(0,0,0),Re=a.getTileVec3(n.tileTransform,re,M),Fe=Z.map(nt=>{const ce=a.sub(nt,nt,Re);return a.normalize(ce,ce),new a.Ray(Re,ce)}),et=xn(n,1,c.zoom)*c._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:$,tilespaceRays:Fe,bufferedTilespaceGeometry:N,bufferedTilespaceBounds:(Qe=a.getBounds(N),Qe.min.x=a.clamp(Qe.min.x,0,a.EXTENT),Qe.min.y=a.clamp(Qe.min.y,0,a.EXTENT),Qe.max.x=a.clamp(Qe.max.x,0,a.EXTENT),Qe.max.y=a.clamp(Qe.max.y,0,a.EXTENT),Qe),tile:n,tileID:n.tileID,pixelToTileUnitsFactor:et};var Qe}_bufferedScreenMercator(n,c){const m=Oe(n);if(this._screenRaycastCache[m])return this._screenRaycastCache[m];{let v;return v="globe"===c.projection.name?this._projectAndResample(this.bufferedScreenGeometry(n),c):{polygon:this.bufferedScreenGeometry(n).map(b=>c.pointCoordinate3D(b)),unwrapped:!0},this._screenRaycastCache[m]=v,v}}_bufferedCameraMercator(n,c){const m=Oe(n);if(this._cameraRaycastCache[m])return this._cameraRaycastCache[m];{let v;return v="globe"===c.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(n),c):{polygon:this.bufferedCameraGeometry(n).map(b=>c.pointCoordinate3D(b)),unwrapped:!0},this._cameraRaycastCache[m]=v,v}}_projectAndResample(n,c){const m=function(b,I){const M=a.multiply([],I.pixelMatrix,I.globeMatrix),N=[0,-a.GLOBE_RADIUS,0,1],Z=[0,a.GLOBE_RADIUS,0,1],$=[0,0,0,1];a.transformMat4$1(N,N,M),a.transformMat4$1(Z,Z,M),a.transformMat4$1($,$,M);const re=new a.Point(N[0]/N[3],N[1]/N[3]),Re=new a.Point(Z[0]/Z[3],Z[1]/Z[3]),Fe=a.polygonContainsPoint(b,re)&&N[3]<$[3],et=a.polygonContainsPoint(b,Re)&&Z[3]<$[3];if(!Fe&&!et)return null;const Qe=function(Rt,qt,Wt){for(let an=1;an1?ke(b.slice(0,nt),I):[],pt=ntnew a.Point(pe(Rt.x),Rt.y)),pt=pt.map(Rt=>new a.Point(pe(Rt.x),Rt.y));const gt=[...We];0===gt.length&>.push(pt[pt.length-1]);const Pt=a.number(gt[gt.length-1].y,(0===pt.length?We[0]:pt[0]).y,ce);let Ft;return Ft=Fe?[new a.Point(0,Pt),new a.Point(0,0),new a.Point(1,0),new a.Point(1,Pt)]:[new a.Point(1,Pt),new a.Point(1,1),new a.Point(0,1),new a.Point(0,Pt)],gt.push(...Ft),0===pt.length?gt.push(We[0]):gt.push(...pt),{polygon:gt.map(Rt=>new a.MercatorCoordinate(Rt.x,Rt.y)),unwrapped:!1}}(n,c);if(m)return m;const v=function(b,I){let M=!1,N=-1/0,Z=0;for(let re=0;reN&&(N=b[re].x,Z=re);for(let re=0;re.5&&(Fe.x{re.x-=1}),{polygon:b,unwrapped:M}}(ke(n,c).map(b=>new a.Point(pe(b.x),b.y)),c);return{polygon:v.polygon.map(b=>new a.MercatorCoordinate(b.x,b.y)),unwrapped:v.unwrapped}}}function ke(d,n){return a.resample(d,c=>{const m=n.pointCoordinate3D(c);c.x=m.x,c.y=m.y},1/256)}function pe(d){return d<0?1+d%1:d%1}function Oe(d){return 100*d|0}function ie(d,n,c,m,v){const b=function(I,M){if(I)return v(I);if(M){d.url&&M.tiles&&d.tiles&&delete d.tiles;const N=a.pick(a.extend(M,d),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);M.vector_layers&&(N.vectorLayers=M.vector_layers,N.vectorLayerIds=N.vectorLayers.map(Z=>Z.id)),N.tiles=n.canonicalizeTileset(N,d.url),v(null,N)}};return d.url?a.getJSON(n.transformRequest(n.normalizeSourceURL(d.url,null,c,m),a.ResourceType.Source),b):a.exported.frame(()=>b(null,d))}class it{constructor(n,c,m){this.bounds=a.LngLatBounds.convert(this.validateBounds(n)),this.minzoom=c||0,this.maxzoom=m||24}validateBounds(n){return Array.isArray(n)&&4===n.length?[Math.max(-180,n[0]),Math.max(-90,n[1]),Math.min(180,n[2]),Math.min(90,n[3])]:[-180,-90,180,90]}contains(n){const c=Math.pow(2,n.z),m=Math.floor(a.mercatorXfromLng(this.bounds.getWest())*c),v=Math.floor(a.mercatorYfromLat(this.bounds.getNorth())*c),b=Math.ceil(a.mercatorXfromLng(this.bounds.getEast())*c),I=Math.ceil(a.mercatorYfromLat(this.bounds.getSouth())*c);return n.x>=m&&n.x=v&&n.y{this._tileJSONRequest=null,this._loaded=!0,v?(c&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${c}`),m&&2!==m.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${m}`),this.fire(new a.ErrorEvent(v))):b&&(a.extend(this,b),b.bounds&&(this.tileBounds=new it(b.bounds,this.minzoom,this.maxzoom)),a.postTurnstileEvent(b.tiles,this.map._requestManager._customAccessToken),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"}))),n&&n(v)})}loaded(){return this._loaded}hasTile(n){return!this.tileBounds||this.tileBounds.contains(n.canonical)}onAdd(n){this.map=n,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(n){return this._options.tiles=n,this.reload(),this}setUrl(n){return this.url=n,this._options.url=n,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return a.extend({},this._options)}loadTile(n,c){const m=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme)),v={request:this.map._requestManager.transformRequest(m,a.ResourceType.Tile),data:void 0,uid:n.uid,tileID:n.tileID,tileZoom:n.tileZoom,zoom:n.tileID.overscaledZ,tileSize:this.tileSize*n.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:a.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:n.isSymbolTile};if(v.request.collectResourceTiming=this._collectResourceTiming,n.actor&&"expired"!==n.state)"loading"===n.state?n.reloadCallback=c:n.request=n.actor.send("reloadTile",v,b.bind(this));else if(n.actor=this._tileWorkers[m]=this._tileWorkers[m]||this.dispatcher.getActor(),this.dispatcher.ready)n.request=n.actor.send("loadTile",v,b.bind(this),void 0,!0);else{const I=a.loadVectorTile.call({deduped:this._deduped},v,(M,N)=>{M||!N?b.call(this,M):(v.data={cacheControl:N.cacheControl,expires:N.expires,rawData:N.rawData.slice(0)},n.actor&&n.actor.send("loadTile",v,b.bind(this),void 0,!0))},!0);n.request={cancel:I}}function b(I,M){return delete n.request,n.aborted?c(null):I&&404!==I.status?c(I):(M&&M.resourceTiming&&(n.resourceTiming=M.resourceTiming),this.map._refreshExpiredTiles&&M&&n.setExpiryData(M),n.loadVectorData(M,this.map.painter),a.cacheEntryPossiblyAdded(this.dispatcher),c(null),void(n.reloadCallback&&(this.loadTile(n,n.reloadCallback),n.reloadCallback=null)))}}abortTile(n){n.request&&(n.request.cancel(),delete n.request),n.actor&&n.actor.send("abortTile",{uid:n.uid,type:this.type,source:this.id})}unloadTile(n){n.unloadVectorData(),n.actor&&n.actor.send("removeTile",{uid:n.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class ae extends a.Evented{constructor(n,c,m,v){super(),this.id=n,this.dispatcher=m,this.setEventedParent(v),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=a.extend({type:"raster"},c),a.extend(this,a.pick(c,["url","scheme","tileSize"]))}load(n){this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=ie(this._options,this.map._requestManager,null,null,(c,m)=>{this._tileJSONRequest=null,this._loaded=!0,c?this.fire(new a.ErrorEvent(c)):m&&(a.extend(this,m),m.bounds&&(this.tileBounds=new it(m.bounds,this.minzoom,this.maxzoom)),a.postTurnstileEvent(m.tiles),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"}))),n&&n(c)})}loaded(){return this._loaded}onAdd(n){this.map=n,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(n){return this._options.tiles=n,this.reload(),this}setUrl(n){return this.url=n,this._options.url=n,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return a.extend({},this._options)}hasTile(n){return!this.tileBounds||this.tileBounds.contains(n.canonical)}loadTile(n,c){const m=a.exported.devicePixelRatio>=2,v=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme),m,this.tileSize);n.request=a.getImage(this.map._requestManager.transformRequest(v,a.ResourceType.Tile),(b,I,M,N)=>(delete n.request,n.aborted?(n.state="unloaded",c(null)):b?(n.state="errored",c(b)):I?(this.map._refreshExpiredTiles&&n.setExpiryData({cacheControl:M,expires:N}),n.setTexture(I,this.map.painter),n.state="loaded",a.cacheEntryPossiblyAdded(this.dispatcher),void c(null)):c(null)))}static loadTileData(n,c,m){n.setTexture(c,m)}static unloadTileData(n,c){n.texture&&c.saveTileTexture(n.texture)}abortTile(n,c){n.request&&(n.request.cancel(),delete n.request),c()}unloadTile(n,c){n.texture&&this.map.painter.saveTileTexture(n.texture),c()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function ht(d,n,c,m,v,b,I,M){const N=[d,c,v,n,m,b,1,1,1],Z=[I,M,1],$=a.adjoint([],N),[re,Re,Fe]=a.transformMat3(Z,Z,a.transpose($,$));return a.multiply$1(N,[re,0,0,0,Re,0,0,0,Fe],N)}class G extends a.Evented{constructor(n,c,m,v){super(),this.id=n,this.dispatcher=m,this.coordinates=c.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(v),this.options=c,this._dirty=!1}load(n,c){this._loaded=c||!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=a.getImage(this.map._requestManager.transformRequest(this.url,a.ResourceType.Image),(m,v)=>{if(this._imageRequest=null,this._loaded=!0,m)this.fire(new a.ErrorEvent(m));else if(v){const{HTMLImageElement:b}=a.window;this.image=v instanceof b?a.exported.getImageData(v):v,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,n&&(this.coordinates=n),this._finishLoading()}})}loaded(){return this._loaded}updateImage(n){return this.image&&n.url?(this._imageRequest&&n.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=n.url,this.load(n.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(n){this.map=n,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(n){this.coordinates=n,this._boundsArray=void 0;const c=n.map(a.MercatorCoordinate.fromLngLat);return this.tileID=function(m){let v=1/0,b=1/0,I=-1/0,M=-1/0;for(const re of m)v=Math.min(v,re.x),b=Math.min(b,re.y),I=Math.max(I,re.x),M=Math.max(M,re.y);const N=Math.max(I-v,M-b),Z=Math.max(0,Math.floor(-Math.log(N)/Math.LN2)),$=Math.pow(2,Z);return new a.CanonicalTileID(Z,Math.floor((v+I)/2*$),Math.floor((b+M)/2*$))}(c),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(n){for(const N in this.tiles){const Z=this.tiles[N];"loaded"!==Z.state&&(Z.state="loaded",Z.texture=this.texture)}if(this._boundsArray)return;const c=a.tileTransform(this.tileID,this.map.transform.projection),[m,v,b,I]=this.coordinates.map(N=>{const Z=c.projection.project(N[0],N[1]);return a.getTilePoint(c,Z)._round()});this.perspectiveTransform=function(N,Z,$,re,Re,Fe,et,Qe,nt,ce){const We=ht(0,0,N,0,0,Z,N,Z),pt=ht($,re,Re,Fe,et,Qe,nt,ce);return a.multiply$1(pt,a.adjoint(We,We),pt),[pt[6]/pt[8]*N/a.EXTENT,pt[7]/pt[8]*Z/a.EXTENT]}(this.width,this.height,m.x,m.y,v.x,v.y,I.x,I.y,b.x,b.y);const M=this._boundsArray=new a.StructArrayLayout4i8;M.emplaceBack(m.x,m.y,0,0),M.emplaceBack(v.x,v.y,a.EXTENT,0),M.emplaceBack(I.x,I.y,0,a.EXTENT),M.emplaceBack(b.x,b.y,a.EXTENT,a.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=n.createVertexBuffer(M,a.boundsAttributes.members),this.boundsSegments=a.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const n=this.map.painter.context,c=n.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new a.Texture(n,this.image,c.RGBA),this.texture.bind(c.LINEAR,c.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(n)}loadTile(n,c){this.tileID&&this.tileID.equals(n.tileID.canonical)?(this.tiles[String(n.tileID.wrap)]=n,n.buckets={},c(null)):(n.state="errored",c(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const ze={vector:mn,raster:ae,"raster-dem":class extends ae{constructor(d,n,c,m){super(d,n,c,m),this.type="raster-dem",this.maxzoom=22,this._options=a.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(d,n){const c=this.map._requestManager.normalizeTileURL(d.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function m(v,b){v&&(d.state="errored",n(v)),b&&(d.dem=b,d.dem.onDeserialize(),d.needsHillshadePrepare=!0,d.needsDEMTextureUpload=!0,d.state="loaded",n(null))}d.request=a.getImage(this.map._requestManager.transformRequest(c,a.ResourceType.Tile),function(v,b,I,M){if(delete d.request,d.aborted)d.state="unloaded",n(null);else if(v)d.state="errored",n(v);else if(b){this.map._refreshExpiredTiles&&d.setExpiryData({cacheControl:I,expires:M});const N=a.window.ImageBitmap&&b instanceof a.window.ImageBitmap&&(null==ki&&(ki=a.window.OffscreenCanvas&&new a.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.window.createImageBitmap),ki),Z=1-(b.width-a.prevPowerOfTwo(b.width))/2;Z<1||d.neighboringTiles||(d.neighboringTiles=this._getNeighboringTiles(d.tileID));const $=N?b:a.exported.getImageData(b,Z),re={uid:d.uid,coord:d.tileID,source:this.id,rawImageData:$,encoding:this.encoding,padding:Z};d.actor&&"expired"!==d.state||(d.actor=this.dispatcher.getActor(),d.actor.send("loadDEMTile",re,m.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(d){const n=d.canonical,c=Math.pow(2,n.z),m=(n.x-1+c)%c,v=0===n.x?d.wrap-1:d.wrap,b=(n.x+1+c)%c,I=n.x+1===c?d.wrap+1:d.wrap,M={};return M[new a.OverscaledTileID(d.overscaledZ,v,n.z,m,n.y).key]={backfilled:!1},M[new a.OverscaledTileID(d.overscaledZ,I,n.z,b,n.y).key]={backfilled:!1},n.y>0&&(M[new a.OverscaledTileID(d.overscaledZ,v,n.z,m,n.y-1).key]={backfilled:!1},M[new a.OverscaledTileID(d.overscaledZ,d.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},M[new a.OverscaledTileID(d.overscaledZ,I,n.z,b,n.y-1).key]={backfilled:!1}),n.y+1{if(this._loaded=!0,this._pendingLoad=null,c)this.fire(new a.ErrorEvent(c));else{const v={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&m&&m.resourceTiming&&m.resourceTiming[this.id]&&(v.resourceTiming=m.resourceTiming[this.id]),this.fire(new a.Event("data",v)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(d,n){const c=d.actor?"reloadTile":"loadTile";d.actor=this.actor,d.request=this.actor.send(c,{type:this.type,uid:d.uid,tileID:d.tileID,tileZoom:d.tileZoom,zoom:d.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:a.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(m,v)=>(delete d.request,d.unloadVectorData(),d.aborted?n(null):m?n(m):(d.loadVectorData(v,this.map.painter,"reloadTile"===c),n(null))),void 0,"loadTile"===c)}abortTile(d){d.request&&(d.request.cancel(),delete d.request),d.aborted=!0}unloadTile(d){d.unloadVectorData(),this.actor.send("removeTile",{uid:d.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return a.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends G{constructor(d,n,c,m){super(d,n,c,m),this.roundZoom=!0,this.type="video",this.options=n}load(){this._loaded=!1;const d=this.options;this.urls=[];for(const n of d.urls)this.urls.push(this.map._requestManager.transformRequest(n,a.ResourceType.Source).url);a.getVideo(this.urls,(n,c)=>{this._loaded=!0,n?this.fire(new a.ErrorEvent(n)):c&&(this.video=c,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(d){if(this.video){const n=this.video.seekable;dn.end(0)?this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=d}}getVideo(){return this.video}onAdd(d){this.map||(this.map=d,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const d=this.map.painter.context,n=d.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new a.Texture(d,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(d)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:G,canvas:class extends G{constructor(d,n,c,m){super(d,n,c,m),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(v=>!Array.isArray(v)||2!==v.length||v.some(b=>"number"!=typeof b))||this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${d}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${d}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${d}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof a.window.HTMLCanvasElement||this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${d}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new a.ErrorEvent(new a.ValidationError(`sources.${d}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof a.window.HTMLCanvasElement?this.options.canvas:a.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new a.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(d){this.map=d,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let d=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,d=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,d=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?(d||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new a.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const d of[this.canvas.width,this.canvas.height])if(isNaN(d)||d<=0)return!0;return!1}},custom:class extends a.Evented{constructor(d,n,c,m){super(),this.id=d,this.type="custom",this._dataType="raster",this._dispatcher=c,this._implementation=n,this.setEventedParent(m),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new a.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new a.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new it(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.clearTiles=this._clearTiles.bind(this),n.coveringTiles=this._coveringTiles.bind(this),a.extend(this,a.pick(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return a.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new a.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(d){this._map=d,this._loaded=!1,this.fire(new a.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(d),this.load()}onRemove(d){this._implementation.onRemove&&this._implementation.onRemove(d)}hasTile(d){if(this._implementation.hasTile){const{x:n,y:c,z:m}=d.canonical;return this._implementation.hasTile({x:n,y:c,z:m})}return!this.tileBounds||this.tileBounds.contains(d.canonical)}loadTile(d,n){const{x:c,y:m,z:v}=d.tileID.canonical,b=new a.window.AbortController;d.request=Promise.resolve(this._implementation.loadTile({x:c,y:m,z:v},{signal:b.signal})).then(function(I){return delete d.request,d.aborted?(d.state="unloaded",n(null)):void 0===I?(d.state="errored",n(null)):null===I?(this.loadTileData(d,{width:this.tileSize,height:this.tileSize,data:null}),d.state="loaded",n(null)):(M=I)instanceof a.window.ImageData||M instanceof a.window.HTMLCanvasElement||M instanceof a.window.ImageBitmap||M instanceof a.window.HTMLImageElement?(this.loadTileData(d,I),d.state="loaded",void n(null)):(d.state="errored",n(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)));var M}.bind(this)).catch(I=>{20!==I.code&&(d.state="errored",n(I))}),d.request.cancel=()=>b.abort()}loadTileData(d,n){ae.loadTileData(d,n,this._map.painter)}unloadTileData(d){ae.unloadTileData(d,this._map.painter)}unloadTile(d,n){if(this.unloadTileData(d),this._implementation.unloadTile){const{x:c,y:m,z:v}=d.tileID.canonical;this._implementation.unloadTile({x:c,y:m,z:v})}n()}abortTile(d,n){d.request&&d.request.cancel&&(d.request.cancel(),delete d.request),n()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(d=>({x:d.canonical.x,y:d.canonical.y,z:d.canonical.z}))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new a.Event("data",{dataType:"source",sourceDataType:"content"}))}}},at=function(d,n,c,m){const v=new ze[n.type](d,n,c,m);if(v.id!==d)throw new Error(`Expected Source id to be ${d} instead of ${v.id}`);return a.bindAll(["load","abort","unload","serialize","prepare"],v),v};function rn(d,n){const c=a.identity([]);return a.scale(c,c,[.5*d.width,.5*-d.height,1]),a.translate(c,c,[1,-1,0]),a.multiply(c,c,d.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(c)}function Dn(d,n,c,m,v,b,I,M=!1){const N=d.tilesIn(m,I,M);N.sort(Mi);const Z=[];for(const re of N)Z.push({wrappedTileID:re.tile.tileID.wrapped().key,queryResults:re.tile.queryRenderedFeatures(n,c,d._state,re,v,b,rn(d.transform,re.tile.tileID),M)});const $=function(re){const Re={},Fe={};for(const et of re){const Qe=et.queryResults,nt=et.wrappedTileID,ce=Fe[nt]=Fe[nt]||{};for(const We in Qe){const pt=Qe[We],gt=ce[We]=ce[We]||{},Pt=Re[We]=Re[We]||[];for(const Ft of pt)gt[Ft.featureIndex]||(gt[Ft.featureIndex]=!0,Pt.push(Ft))}}return Re}(Z);for(const re in $)$[re].forEach(Re=>{const Fe=Re.feature,et=Fe.layer;et&&"background"!==et.type&&"sky"!==et.type&&(Fe.source=et.source,et["source-layer"]&&(Fe.sourceLayer=et["source-layer"]),Fe.state=void 0!==Fe.id?d.getFeatureState(et["source-layer"],Fe.id):{})});return $}function gi(d,n){const c=d.getRenderableIds().map(b=>d.getTileByID(b)),m=[],v={};for(let b=0;b{c.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[yr]}numActive(){return Object.keys(this.active).length}}let Fr;function ho(){return Fr||(Fr=new Ui),Fr}function Do(d,n){const c={};for(const m in d)"ref"!==m&&(c[m]=d[m]);return a.refProperties.forEach(m=>{m in n&&(c[m]=n[m])}),c}function Io(d){d=d.slice();const n=Object.create(null);for(let c=0;c0?(v-I)/M:0;return this.points[b].mult(1-N).add(this.points[c].mult(N))}}class Mt{constructor(n,c,m){const v=this.boxCells=[],b=this.circleCells=[];this.xCellCount=Math.ceil(n/m),this.yCellCount=Math.ceil(c/m);for(let I=0;Ithis.width||v<0||c>this.height)return!b&&[];const M=[];if(n<=0&&c<=0&&this.width<=m&&this.height<=v){if(b)return!0;for(let N=0;N0:M}_queryCircle(n,c,m,v,b){const I=n-m,M=n+m,N=c-m,Z=c+m;if(M<0||I>this.width||Z<0||N>this.height)return!v&&[];const $=[];return this._forEachCell(I,N,M,Z,this._queryCellCircle,$,{hitTest:v,circle:{x:n,y:c,radius:m},seenUids:{box:{},circle:{}}},b),v?$.length>0:$}query(n,c,m,v,b){return this._query(n,c,m,v,!1,b)}hitTest(n,c,m,v,b){return this._query(n,c,m,v,!0,b)}hitTestCircle(n,c,m,v){return this._queryCircle(n,c,m,!0,v)}_queryCell(n,c,m,v,b,I,M,N){const Z=M.seenUids,$=this.boxCells[b];if(null!==$){const Re=this.bboxes;for(const Fe of $)if(!Z.box[Fe]){Z.box[Fe]=!0;const et=4*Fe;if(n<=Re[et+2]&&c<=Re[et+3]&&m>=Re[et+0]&&v>=Re[et+1]&&(!N||N(this.boxKeys[Fe]))){if(M.hitTest)return I.push(!0),!0;I.push({key:this.boxKeys[Fe],x1:Re[et],y1:Re[et+1],x2:Re[et+2],y2:Re[et+3]})}}}const re=this.circleCells[b];if(null!==re){const Re=this.circles;for(const Fe of re)if(!Z.circle[Fe]){Z.circle[Fe]=!0;const et=3*Fe;if(this._circleAndRectCollide(Re[et],Re[et+1],Re[et+2],n,c,m,v)&&(!N||N(this.circleKeys[Fe]))){if(M.hitTest)return I.push(!0),!0;{const Qe=Re[et],nt=Re[et+1],ce=Re[et+2];I.push({key:this.circleKeys[Fe],x1:Qe-ce,y1:nt-ce,x2:Qe+ce,y2:nt+ce})}}}}}_queryCellCircle(n,c,m,v,b,I,M,N){const Z=M.circle,$=M.seenUids,re=this.boxCells[b];if(null!==re){const Fe=this.bboxes;for(const et of re)if(!$.box[et]){$.box[et]=!0;const Qe=4*et;if(this._circleAndRectCollide(Z.x,Z.y,Z.radius,Fe[Qe+0],Fe[Qe+1],Fe[Qe+2],Fe[Qe+3])&&(!N||N(this.boxKeys[et])))return I.push(!0),!0}}const Re=this.circleCells[b];if(null!==Re){const Fe=this.circles;for(const et of Re)if(!$.circle[et]){$.circle[et]=!0;const Qe=3*et;if(this._circlesCollide(Fe[Qe],Fe[Qe+1],Fe[Qe+2],Z.x,Z.y,Z.radius)&&(!N||N(this.circleKeys[et])))return I.push(!0),!0}}}_forEachCell(n,c,m,v,b,I,M,N){const Z=this._convertToXCellCoord(n),$=this._convertToYCellCoord(c),re=this._convertToXCellCoord(m),Re=this._convertToYCellCoord(v);for(let Fe=Z;Fe<=re;Fe++)for(let et=$;et<=Re;et++)if(b.call(this,n,c,m,v,this.xCellCount*et+Fe,I,M,N))return}_convertToXCellCoord(n){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(n*this.xScale)))}_convertToYCellCoord(n){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(n*this.yScale)))}_circlesCollide(n,c,m,v,b,I){const M=v-n,N=b-c,Z=m+I;return Z*Z>M*M+N*N}_circleAndRectCollide(n,c,m,v,b,I,M){const N=(I-v)/2,Z=Math.abs(n-(v+N));if(Z>N+m)return!1;const $=(M-b)/2,re=Math.abs(c-(b+$));if(re>$+m)return!1;if(Z<=N||re<=$)return!0;const Re=Z-N,Fe=re-$;return Re*Re+Fe*Fe<=m*m}}const Qt={unknown:0,flipRequired:1,flipNotRequired:2},wn=Math.tan(85*Math.PI/180);function It(d,n,c,m,v,b,I){const M=a.create();if(c)if("globe"===b.name){const N=a.calculateGlobeLabelMatrix(v,n);a.multiply(M,M,N)}else{const N=Ae([],I);M[0]=N[0],M[1]=N[1],M[4]=N[2],M[5]=N[3],m||a.rotateZ(M,M,v.angle)}else a.multiply(M,v.labelPlaneMatrix,d);return M}function Xn(d,n,c,m,v,b,I){const M=It(d,n,c,m,v,b,I);return"globe"===b.name&&c||(M[2]=M[6]=M[10]=M[14]=0),M}function ui(d,n,c,m,v,b,I){if(c){if("globe"===b.name){const M=It(d,n,c,m,v,b,I);return a.invert(M,M),a.multiply(M,d,M),M}{const M=a.clone(d),N=a.identity([]);return N[0]=I[0],N[1]=I[1],N[4]=I[2],N[5]=I[3],a.multiply(M,M,N),m||a.rotateZ(M,M,-v.angle),M}}return v.glCoordMatrix}function Wn(d,n,c,m){const v=[d,n,c,1];c?a.transformMat4$1(v,v,m):Kn(v,v,m);const b=v[3];return v[0]/=b,v[1]/=b,v[2]/=b,v}function lr(d,n){return Math.min(.5+d/n*.5,1.5)}function Je(d,n){const c=d[0]/d[3],m=d[1]/d[3];return c>=-n[0]&&c<=n[0]&&m>=-n[1]&&m<=n[1]}function rt(d,n,c,m,v,b,I,M,N,Z){const $=c.transform,re=m?d.textSizeData:d.iconSizeData,Re=a.evaluateSizeForZoom(re,c.transform.zoom),Fe="globe"===$.projection.name,et=[256/c.width*2+1,256/c.height*2+1],Qe=m?d.text.dynamicLayoutVertexArray:d.icon.dynamicLayoutVertexArray;Qe.clear();let nt=null;Fe&&(nt=m?d.text.globeExtVertexArray:d.icon.globeExtVertexArray);const ce=d.lineVertexArray,We=m?d.text.placedSymbolArray:d.icon.placedSymbolArray,pt=c.transform.width/c.transform.height;let gt,Pt=!1;for(let Ft=0;FtMath.abs(c)?{useVertical:!0}:d===a.WritingMode.vertical?m>0?{needsFlipping:!0}:null:n!==Qt.unknown&&(0===(v=c)||Math.abs(m/v)>wn)?n===Qt.flipRequired?{needsFlipping:!0}:null:c<0?{needsFlipping:!0}:null;var v}function dt(d,n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe,nt,ce,We){const pt=n/24,gt=d.lineOffsetX*pt,Pt=d.lineOffsetY*pt,{lineStartIndex:Ft,glyphStartIndex:Rt,numGlyphs:qt,segment:Wt,writingMode:an,flipState:Yn}=d,tn=Ft+d.lineLength,Pn=dn=>{if($){const[Qn,jn,ei]=dn.up,Ai=Z.length;a.updateGlobeVertexNormal($,Ai+0,Qn,jn,ei),a.updateGlobeVertexNormal($,Ai+1,Qn,jn,ei),a.updateGlobeVertexNormal($,Ai+2,Qn,jn,ei),a.updateGlobeVertexNormal($,Ai+3,Qn,jn,ei)}const[Zn,ln,An]=dn.point;a.addDynamicAttributes(Z,Zn,ln,An,dn.angle)};if(qt>1){const dn=we(pt,M,gt,Pt,c,re,Re,d,N,b,Fe,Qe,!1,nt,ce,We);if(!dn)return{notEnoughRoom:!0};if(m&&!c){let[Zn,ln,An]=dn.first.point,[Qn,jn,ei]=dn.last.point;[Zn,ln]=Wn(Zn,ln,An,I),[Qn,jn]=Wn(Qn,jn,ei,I);const Ai=ut(an,Yn,(Qn-Zn)*et,jn-ln);if(d.flipState=Ai&&Ai.needsFlipping?Qt.flipRequired:Qt.flipNotRequired,Ai)return Ai}Pn(dn.first);for(let Zn=Rt+1;Zn0?Qn:gn(Re,An,Zn,1,v,void 0,nt,ce.canonical),ei=ut(an,Yn,(jn[0]-Zn[0])*et,jn[1]-Zn[1]);if(d.flipState=ei&&ei.needsFlipping?Qt.flipRequired:Qt.flipNotRequired,ei)return ei}const dn=ti(pt*M.getoffsetX(Rt),gt,Pt,c,re,Re,Wt,Ft,tn,N,b,Fe,Qe,!1,!1,nt,ce,We);if(!dn)return{notEnoughRoom:!0};Pn(dn)}return{}}function Lt(d,n,c,m,v){const{x:b,y:I,z:M}=m.projectTilePoint(d.x,d.y,n);if(!v)return Wn(b,I,M,c);const[N,Z,$]=v(d);return Wn(b+N,I+Z,M+$,c)}function gn(d,n,c,m,v,b,I,M){const N=Lt(d.sub(n)._unit()._add(d),M,v,I,b);return a.sub(N,c,N),a.normalize(N,N),a.scaleAndAdd(N,c,N,m)}function ti(d,n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe,nt,ce){const We=m?d-n:d+n;let pt=We>0?1:-1,gt=0;m&&(pt*=-1,gt=Math.PI),pt<0&&(gt+=Math.PI);let Pt=M+I+(pt>0?0:1)|0,Ft=v,Rt=v,qt=0,Wt=0;const an=Math.abs(We),Yn=[],tn=[];let Pn=b,dn=Pn;const Zn=()=>gn(dn,Pn,Rt,an-qt+1,$,Re,Qe,nt.canonical);for(;qt+Wt<=an;){if(Pt+=pt,Pt=N)return null;if(Rt=Ft,dn=Pn,Yn.push(Rt),Fe&&tn.push(dn),Pn=new a.Point(Z.getx(Pt),Z.gety(Pt)),Ft=re[Pt],!Ft){const Si=Lt(Pn,nt.canonical,$,Qe,Re);Ft=Si[3]>0?re[Pt]=Si:Zn()}qt+=Wt,Wt=a.distance(Rt,Ft)}et&&Re&&(re[Pt]&&(Ft=Zn(),Wt=a.distance(Rt,Ft)),re[Pt]=Ft);const ln=(an-qt)/Wt,An=Pn.sub(dn)._mult(ln)._add(dn),Qn=a.sub([],Ft,Rt),jn=a.scaleAndAdd([],Rt,Qn,ln);let ei=[0,0,1],Ai=Qn[0],Ji=Qn[1];if(ce&&(ei=Qe.upVector(nt.canonical,An.x,An.y),0!==ei[0]||0!==ei[1]||1!==ei[2])){const Si=[ei[2],0,-ei[0]],fr=a.cross([],ei,Si);a.normalize(Si,Si),a.normalize(fr,fr),Ai=a.dot(Qn,Si),Ji=a.dot(Qn,fr)}if(c){const Si=a.cross([],ei,Qn);a.normalize(Si,Si),a.scaleAndAdd(jn,jn,Si,c*pt)}const wi=gt+Math.atan2(Ji,Ai);return Yn.push(jn),Fe&&tn.push(An),{point:jn,angle:wi,path:Yn,tilePath:tn,up:ei}}function di(d,n){const c=n.length,m=c+4*d;n.resize(m),n.float32.fill(-1/0,4*c,4*m)}function Kn(d,n,c){const m=n[0],v=n[1];return d[0]=c[0]*m+c[4]*v+c[12],d[1]=c[1]*m+c[5]*v+c[13],d[3]=c[3]*m+c[7]*v+c[15],d}const Xi=100;class J{constructor(n,c,m=new Mt(n.width+200,n.height+200,25),v=new Mt(n.width+200,n.height+200,25)){this.transform=n,this.grid=m,this.ignoredGrid=v,this.pitchfactor=Math.cos(n._pitch)*n.cameraToCenterDistance,this.screenRightBoundary=n.width+Xi,this.screenBottomBoundary=n.height+Xi,this.gridRightBoundary=n.width+200,this.gridBottomBoundary=n.height+200,this.fogState=c}placeCollisionBox(n,c,m,v,b,I,M,N){let Z=m.projectedAnchorX,$=m.projectedAnchorY,re=m.projectedAnchorZ;const Re=m.elevation,Fe=m.tileID,et=n.getProjection();if(Re&&Fe){const[Ft,Rt,qt]=et.upVector(Fe.canonical,m.tileAnchorX,m.tileAnchorY),Wt=et.upVectorScale(Fe.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;Z+=Ft*Re*Wt,$+=Rt*Re*Wt,re+=qt*Re*Wt}const Qe=this.projectAndGetPerspectiveRatio(M,Z,$,re,m.tileID,"globe"===et.name||!!Re||this.transform.pitch>0,et),nt=I*Qe.perspectiveRatio,ce=(m.x1*c+v.x-m.padding)*nt+Qe.point.x,We=(m.y1*c+v.y-m.padding)*nt+Qe.point.y,pt=(m.x2*c+v.x+m.padding)*nt+Qe.point.x,gt=(m.y2*c+v.y+m.padding)*nt+Qe.point.y,Pt=Qe.perspectiveRatio<=.55||Qe.occluded;return!this.isInsideGrid(ce,We,pt,gt)||!b&&this.grid.hitTest(ce,We,pt,gt,N)||Pt?{box:[],offscreen:!1,occluded:Qe.occluded}:{box:[ce,We,pt,gt],offscreen:this.isOffscreen(ce,We,pt,gt),occluded:!1}}placeCollisionCircles(n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe){const nt=[],ce=this.transform.elevation,We=n.getProjection(),pt=ce?ce.getAtTileOffsetFunc(Qe,this.transform.center.lat,this.transform.worldSize,We):null,gt=new a.Point(m.tileAnchorX,m.tileAnchorY);let{x:Pt,y:Ft,z:Rt}=We.projectTilePoint(gt.x,gt.y,Qe.canonical);if(pt){const[An,Qn,jn]=pt(gt);Pt+=An,Ft+=Qn,Rt+=jn}const qt="globe"===We.name,Wt=this.projectAndGetPerspectiveRatio(M,Pt,Ft,Rt,Qe,qt||!!ce||this.transform.pitch>0,We),{perspectiveRatio:an}=Wt,Yn=(re?I/an:I*an)/a.ONE_EM,tn=Wn(Pt,Ft,Rt,N),Pn=Wt.signedDistanceFromCamera>0?we(Yn,b,m.lineOffsetX*Yn,m.lineOffsetY*Yn,!1,tn,gt,m,v,N,{},ce&&!re?pt:null,re&&!!ce,We,Qe,re):null;let dn=!1,Zn=!1,ln=!0;if(Pn&&!Wt.occluded){const An=.5*Fe*an+et,Qn=new a.Point(-100,-100),jn=new a.Point(this.screenRightBoundary,this.screenBottomBoundary),ei=new Tt,{first:Ai,last:Ji}=Pn,wi=Ai.path.length;let Si=[];for(let Di=wi-1;Di>=1;Di--)Si.push(Ai.path[Di]);for(let Di=1;Di(pt&&!qt&&(Qr=pt(VrDi[3]<=0)&&(Si=[]));let tr=[];if(Si.length>0){let Di=1/0,Dr=-1/0,Qr=1/0,Vr=-1/0;for(const $r of Si)Di=Math.min(Di,$r[0]),Qr=Math.min(Qr,$r[1]),Dr=Math.max(Dr,$r[0]),Vr=Math.max(Vr,$r[1]);Dr>=Qn.x&&Di<=jn.x&&Vr>=Qn.y&&Qr<=jn.y&&(tr=[Si.map($r=>new a.Point($r[0],$r[1]))],(Dijn.x||Qrjn.y)&&(tr=a.clipLine(tr,Qn.x,Qn.y,jn.x,jn.y)))}for(const Di of tr){ei.reset(Di,.25*An);let Dr=0;Dr=ei.length<=.5*An?1:Math.ceil(ei.paddedLength/fr)+1;for(let Qr=0;Qr0?(a.transformMat4$1(N,N,n),this.fogState&&b&&"globe"!==M.name&&(Z=function(Re,Fe,et,Qe,nt,ce){const We=ce.calculateFogTileMatrix(nt),pt=[Fe,et,Qe];return a.transformMat4(pt,pt,We),Se(Re,pt,ce.pitch,ce._fov)}(this.fogState,c,m,v,b.toUnwrapped(),this.transform)>.9)):Kn(N,N,n);const $=N[3];return{point:new a.Point((N[0]/$+1)/2*this.transform.width+Xi,(-N[1]/$+1)/2*this.transform.height+Xi),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(M)/$*.5,1.5),signedDistanceFromCamera:$,occluded:I&&N[2]>$||Z}}isOffscreen(n,c,m,v){return m=this.screenRightBoundary||vthis.screenBottomBoundary}isInsideGrid(n,c,m,v){return m>=0&&n=0&&cm.collisionGroupID===c}}return this.collisionGroups[n]}}function ci(d,n,c,m,v){const{horizontalAlign:b,verticalAlign:I}=a.getAnchorAlignment(d),M=-(b-.5)*n,N=-(I-.5)*c,Z=a.evaluateVariableOffset(d,m);return new a.Point(M+Z[0]*v,N+Z[1]*v)}function Ri(d,n,c,m,v){const b=new a.Point(d,n);return c&&b._rotate(m?v:-v),b}class Gi{constructor(n,c,m,v,b){this.transform=n.clone(),this.projection=n.projection.name,this.collisionIndex=new J(this.transform,b),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=c,this.retainedQueryData={},this.collisionGroups=new Ln(m),this.collisionCircleArrays={},this.prevPlacement=v,v&&(v.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(n,c,m,v){const b=m.getBucket(c),I=m.latestFeatureIndex;if(!b||!I||c.id!==b.layerIds[0])return;const M=b.layers[0].layout,N=m.collisionBoxArray,Z=Math.pow(2,this.transform.zoom-m.tileID.overscaledZ),$=m.tileSize/a.EXTENT,re=m.tileID.toUnwrapped();this.transform.setProjection(b.projection);const Re=(Fe=m.tileID,et=b.getProjection(),Qe=this.transform,et.name===this.projection?Qe.calculateProjMatrix(Fe.toUnwrapped()):be(Qe,et,Fe));var Fe,et,Qe;const nt="map"===M.get("text-pitch-alignment"),ce="map"===M.get("text-rotation-alignment");c.compileFilter();const We=c.dynamicFilter(),pt=c.dynamicFilterNeedsFeature(),gt=this.transform.calculatePixelsToTileUnitsMatrix(m),Pt=Xn(Re,m.tileID.canonical,nt,ce,this.transform,b.getProjection(),gt);let Ft=null;if(nt){const Wt=ui(Re,m.tileID.canonical,nt,ce,this.transform,b.getProjection(),gt);Ft=a.multiply([],this.transform.labelPlaneMatrix,Wt)}let Rt=null;We&&m.latestFeatureIndex&&(Rt={unwrappedTileID:re,dynamicFilter:We,dynamicFilterNeedsFeature:pt,featureIndex:m.latestFeatureIndex}),this.retainedQueryData[b.bucketInstanceId]=new Un(b.bucketInstanceId,I,b.sourceLayerIndex,b.index,m.tileID);const qt={bucket:b,layout:M,posMatrix:Re,textLabelPlaneMatrix:Pt,labelToScreenMatrix:Ft,clippingData:Rt,scale:Z,textPixelRatio:$,holdingForFade:m.holdingForFade(),collisionBoxArray:N,partiallyEvaluatedTextSize:a.evaluateSizeForZoom(b.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:a.evaluateSizeForZoom(b.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(b.sourceID)};if(v)for(const Wt of b.sortKeyRanges){const{sortKey:an,symbolInstanceStart:Yn,symbolInstanceEnd:tn}=Wt;n.push({sortKey:an,symbolInstanceStart:Yn,symbolInstanceEnd:tn,parameters:qt})}else n.push({symbolInstanceStart:0,symbolInstanceEnd:b.symbolInstances.length,parameters:qt})}attemptAnchorPlacement(n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe,nt,ce,We){const{textOffset0:pt,textOffset1:gt,crossTileID:Pt}=Re,Ft=[pt,gt],Rt=ci(n,m,v,Ft,b),qt=this.collisionIndex.placeCollisionBox(et,b,c,Ri(Rt.x,Rt.y,I,M,this.transform.angle),re,N,Z,$.predicate);if(nt){const Wt=et.getSymbolInstanceIconSize(We,this.transform.zoom,Re.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(et,Wt,nt,Ri(Rt.x,Rt.y,I,M,this.transform.angle),re,N,Z,$.predicate).box.length)return}if(qt.box.length>0){let Wt;return this.prevPlacement&&this.prevPlacement.variableOffsets[Pt]&&this.prevPlacement.placements[Pt]&&this.prevPlacement.placements[Pt].text&&(Wt=this.prevPlacement.variableOffsets[Pt].anchor),this.variableOffsets[Pt]={textOffset:Ft,width:m,height:v,anchor:n,textScale:b,prevAnchor:Wt},this.markUsedJustification(et,n,Re,Qe),et.allowVerticalPlacement&&(this.markUsedOrientation(et,Qe,Re),this.placedOrientations[Pt]=Qe),{shift:Rt,placedGlyphBoxes:qt}}}placeLayerBucketPart(n,c,m,v){const{bucket:b,layout:I,posMatrix:M,textLabelPlaneMatrix:N,labelToScreenMatrix:Z,clippingData:$,textPixelRatio:re,holdingForFade:Re,collisionBoxArray:Fe,partiallyEvaluatedTextSize:et,partiallyEvaluatedIconSize:Qe,collisionGroup:nt}=n.parameters,ce=I.get("text-optional"),We=I.get("icon-optional"),pt=I.get("text-allow-overlap"),gt=I.get("icon-allow-overlap"),Pt="map"===I.get("text-rotation-alignment"),Ft="map"===I.get("text-pitch-alignment"),Rt="none"!==I.get("icon-text-fit"),qt="viewport-y"===I.get("symbol-z-order");this.transform.setProjection(b.projection);let Wt=pt&&(gt||!b.hasIconData()||We),an=gt&&(pt||!b.hasTextData()||ce);!b.collisionArrays&&Fe&&b.deserializeCollisionBoxes(Fe),m&&v&&b.updateCollisionDebugBuffers(this.transform.zoom,Fe);const Yn=(tn,Pn,dn)=>{const{crossTileID:Zn,numVerticalGlyphVertices:ln}=tn;if($){const no={zoom:this.transform.zoom,pitch:this.transform.pitch};let Zr=null;if($.dynamicFilterNeedsFeature){const br=this.retainedQueryData[b.bucketInstanceId];Zr=$.featureIndex.loadFeature({featureIndex:tn.featureIndex,bucketIndex:br.bucketIndex,sourceLayerIndex:br.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,$.dynamicFilter)(no,Zr,this.retainedQueryData[b.bucketInstanceId].tileID.canonical,new a.Point(tn.tileAnchorX,tn.tileAnchorY),this.transform.calculateDistanceTileData($.unwrappedTileID)))return this.placements[Zn]=new Fn(!1,!1,!1,!0),void c.add(Zn)}if(c.has(Zn))return;if(Re)return void(this.placements[Zn]=new Fn(!1,!1,!1));let An=!1,Qn=!1,jn=!0,ei=!1,Ai=!1,Ji=null,wi={box:null,offscreen:null,occluded:null},Si={box:null,offscreen:null,occluded:null},fr=null,tr=null,Di=null,Dr=0,Qr=0,Vr=0;dn.textFeatureIndex?Dr=dn.textFeatureIndex:tn.useRuntimeCollisionCircles&&(Dr=tn.featureIndex),dn.verticalTextFeatureIndex&&(Qr=dn.verticalTextFeatureIndex);const $r=no=>{no.tileID=this.retainedQueryData[b.bucketInstanceId].tileID;const Zr=this.transform.elevation;(Zr||no.elevation)&&(no.elevation=Zr?Zr.getAtTileOffset(no.tileID,no.tileAnchorX,no.tileAnchorY):0)},gs=dn.textBox;if(gs){$r(gs);const no=br=>{let Eo=a.WritingMode.horizontal;if(b.allowVerticalPlacement&&!br&&this.prevPlacement){const Is=this.prevPlacement.placedOrientations[Zn];Is&&(this.placedOrientations[Zn]=Is,Eo=Is,this.markUsedOrientation(b,Eo,tn))}return Eo},Zr=(br,Eo)=>{if(b.allowVerticalPlacement&&ln>0&&dn.verticalTextBox){for(const Is of b.writingModes)if(Is===a.WritingMode.vertical?(wi=Eo(),Si=wi):wi=br(),wi&&wi.box&&wi.box.length)break}else wi=br()};if(I.get("text-variable-anchor")){let br=I.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[Zn]){const io=this.prevPlacement.variableOffsets[Zn];br.indexOf(io.anchor)>0&&(br=br.filter(Ms=>Ms!==io.anchor),br.unshift(io.anchor))}const Eo=(io,Ms,iu)=>{const Nl=b.getSymbolInstanceTextSize(et,tn,this.transform.zoom,Pn),ru=(io.x2-io.x1)*Nl+2*io.padding,Ca=(io.y2-io.y1)*Nl+2*io.padding,Ys=Rt&&!gt?Ms:null;Ys&&$r(Ys);let cc={box:[],offscreen:!1,occluded:!1};const ou=pt?2*br.length:br.length;for(let Dc=0;Dc=br.length,tn,Pn,b,iu,Ys,et,Qe);if(Bl&&(cc=Bl.placedGlyphBoxes,cc&&cc.box&&cc.box.length)){An=!0,Ji=Bl.shift;break}}return cc};Zr(()=>Eo(gs,dn.iconBox,a.WritingMode.horizontal),()=>{const io=dn.verticalTextBox;return io&&$r(io),b.allowVerticalPlacement&&!(wi&&wi.box&&wi.box.length)&&ln>0&&io?Eo(io,dn.verticalIconBox,a.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),wi&&(An=wi.box,jn=wi.offscreen,ei=wi.occluded);const Is=no(!(!wi||!wi.box));if(!An&&this.prevPlacement){const io=this.prevPlacement.variableOffsets[Zn];io&&(this.variableOffsets[Zn]=io,this.markUsedJustification(b,io.anchor,tn,Is))}}else{const br=(Eo,Is)=>{const io=b.getSymbolInstanceTextSize(et,tn,this.transform.zoom,Pn),Ms=this.collisionIndex.placeCollisionBox(b,io,Eo,new a.Point(0,0),pt,re,M,nt.predicate);return Ms&&Ms.box&&Ms.box.length&&(this.markUsedOrientation(b,Is,tn),this.placedOrientations[Zn]=Is),Ms};Zr(()=>br(gs,a.WritingMode.horizontal),()=>{const Eo=dn.verticalTextBox;return b.allowVerticalPlacement&&ln>0&&Eo?($r(Eo),br(Eo,a.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),no(!!(wi&&wi.box&&wi.box.length))}}if(fr=wi,An=fr&&fr.box&&fr.box.length>0,jn=fr&&fr.offscreen,ei=fr&&fr.occluded,tn.useRuntimeCollisionCircles){const no=b.text.placedSymbolArray.get(tn.centerJustifiedTextSymbolIndex>=0?tn.centerJustifiedTextSymbolIndex:tn.verticalPlacedTextSymbolIndex),Zr=a.evaluateSizeForFeature(b.textSizeData,et,no),br=I.get("text-padding");tr=this.collisionIndex.placeCollisionCircles(b,pt,no,b.lineVertexArray,b.glyphOffsetArray,Zr,M,N,Z,m,Ft,nt.predicate,tn.collisionCircleDiameter*Zr/a.ONE_EM,br,this.retainedQueryData[b.bucketInstanceId].tileID),An=pt||tr.circles.length>0&&!tr.collisionDetected,jn=jn&&tr.offscreen,ei=tr.occluded}if(dn.iconFeatureIndex&&(Vr=dn.iconFeatureIndex),dn.iconBox){const no=Zr=>{$r(Zr);const br=Rt&&Ji?Ri(Ji.x,Ji.y,Pt,Ft,this.transform.angle):new a.Point(0,0),Eo=b.getSymbolInstanceIconSize(Qe,this.transform.zoom,tn.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(b,Eo,Zr,br,gt,re,M,nt.predicate)};Si&&Si.box&&Si.box.length&&dn.verticalIconBox?(Di=no(dn.verticalIconBox),Qn=Di.box.length>0):(Di=no(dn.iconBox),Qn=Di.box.length>0),jn=jn&&Di.offscreen,Ai=Di.occluded}const oo=ce||0===tn.numHorizontalGlyphVertices&&0===ln,wa=We||0===tn.numIconVertices;if(oo||wa?wa?oo||(Qn=Qn&&An):An=Qn&&An:Qn=An=Qn&&An,An&&fr&&fr.box&&this.collisionIndex.insertCollisionBox(fr.box,I.get("text-ignore-placement"),b.bucketInstanceId,Si&&Si.box&&Qr?Qr:Dr,nt.ID),Qn&&Di&&this.collisionIndex.insertCollisionBox(Di.box,I.get("icon-ignore-placement"),b.bucketInstanceId,Vr,nt.ID),tr&&(An&&this.collisionIndex.insertCollisionCircles(tr.circles,I.get("text-ignore-placement"),b.bucketInstanceId,Dr,nt.ID),m)){const no=b.bucketInstanceId;let Zr=this.collisionCircleArrays[no];void 0===Zr&&(Zr=this.collisionCircleArrays[no]=new $n);for(let br=0;br=0;--Pn){const dn=tn[Pn];Yn(b.symbolInstances.get(dn),dn,b.collisionArrays[dn])}}else for(let tn=n.symbolInstanceStart;tn=0&&(n.text.placedSymbolArray.get(b).crossTileID=re>=0&&b!==re?0:Z),I>=0&&(n.text.placedSymbolArray.get(I).crossTileID=re>=0&&I!==re?0:Z),M>=0&&(n.text.placedSymbolArray.get(M).crossTileID=re>=0&&M!==re?0:Z),N>=0&&(n.text.placedSymbolArray.get(N).crossTileID=re>=0&&N!==re?0:Z)}markUsedOrientation(n,c,m){const v=c===a.WritingMode.horizontal||c===a.WritingMode.horizontalOnly?c:0,b=c===a.WritingMode.vertical?c:0,{leftJustifiedTextSymbolIndex:I,centerJustifiedTextSymbolIndex:M,rightJustifiedTextSymbolIndex:N,verticalPlacedTextSymbolIndex:Z}=m,$=n.text.placedSymbolArray;I>=0&&($.get(I).placedOrientation=v),M>=0&&($.get(M).placedOrientation=v),N>=0&&($.get(N).placedOrientation=v),Z>=0&&($.get(Z).placedOrientation=b)}commit(n){this.commitTime=n,this.zoomAtLastRecencyCheck=this.transform.zoom;const c=this.prevPlacement;let m=!1;this.prevZoomAdjustment=c?c.zoomAdjustment(this.transform.zoom):0;const v=c?c.symbolFadeChange(n):1,b=c?c.opacities:{},I=c?c.variableOffsets:{},M=c?c.placedOrientations:{};for(const N in this.placements){const Z=this.placements[N],$=b[N];$?(this.opacities[N]=new jt($,v,Z.text,Z.icon,null,Z.clipped),m=m||Z.text!==$.text.placed||Z.icon!==$.icon.placed):(this.opacities[N]=new jt(null,v,Z.text,Z.icon,Z.skipFade,Z.clipped),m=m||Z.text||Z.icon)}for(const N in b){const Z=b[N];if(!this.opacities[N]){const $=new jt(Z,v,!1,!1);$.isHidden()||(this.opacities[N]=$,m=m||Z.text.placed||Z.icon.placed)}}for(const N in I)this.variableOffsets[N]||!this.opacities[N]||this.opacities[N].isHidden()||(this.variableOffsets[N]=I[N]);for(const N in M)this.placedOrientations[N]||!this.opacities[N]||this.opacities[N].isHidden()||(this.placedOrientations[N]=M[N]);m?this.lastPlacementChangeTime=n:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=c?c.lastPlacementChangeTime:n)}updateLayerOpacities(n,c){const m=new Set;for(const v of c){const b=v.getBucket(n);b&&v.latestFeatureIndex&&n.id===b.layerIds[0]&&this.updateBucketOpacities(b,m,v.collisionBoxArray)}}updateBucketOpacities(n,c,m){n.hasTextData()&&n.text.opacityVertexArray.clear(),n.hasIconData()&&n.icon.opacityVertexArray.clear(),n.hasIconCollisionBoxData()&&n.iconCollisionBox.collisionVertexArray.clear(),n.hasTextCollisionBoxData()&&n.textCollisionBox.collisionVertexArray.clear();const v=n.layers[0].layout,b=!!n.layers[0].dynamicFilter(),I=new jt(null,0,!1,!1,!0),M=v.get("text-allow-overlap"),N=v.get("icon-allow-overlap"),Z=v.get("text-variable-anchor"),$="map"===v.get("text-rotation-alignment"),re="map"===v.get("text-pitch-alignment"),Re="none"!==v.get("icon-text-fit"),Fe=new jt(null,0,M&&(N||!n.hasIconData()||v.get("icon-optional")),N&&(M||!n.hasTextData()||v.get("text-optional")),!0);!n.collisionArrays&&m&&(n.hasIconCollisionBoxData()||n.hasTextCollisionBoxData())&&n.deserializeCollisionBoxes(m);const et=(nt,ce,We)=>{for(let pt=0;pt0||pt>0,Wt=Pt>0,an=this.placedOrientations[gt],Yn=an===a.WritingMode.vertical,tn=an===a.WritingMode.horizontal||an===a.WritingMode.horizontalOnly;if(!qt&&!Wt||Rt.isHidden()||Qe++,qt){const Pn=Tr(Rt.text);et(n.text,We,Yn?ji:Pn),et(n.text,pt,tn?ji:Pn);const dn=Rt.text.isHidden(),{leftJustifiedTextSymbolIndex:Zn,centerJustifiedTextSymbolIndex:ln,rightJustifiedTextSymbolIndex:An,verticalPlacedTextSymbolIndex:Qn}=ce,jn=n.text.placedSymbolArray,ei=dn||Yn?1:0;Zn>=0&&(jn.get(Zn).hidden=ei),ln>=0&&(jn.get(ln).hidden=ei),An>=0&&(jn.get(An).hidden=ei),Qn>=0&&(jn.get(Qn).hidden=dn||tn?1:0);const Ai=this.variableOffsets[gt];Ai&&this.markUsedJustification(n,Ai.anchor,ce,an);const Ji=this.placedOrientations[gt];Ji&&(this.markUsedJustification(n,"left",ce,Ji),this.markUsedOrientation(n,Ji,ce))}if(Wt){const Pn=Tr(Rt.icon),{placedIconSymbolIndex:dn,verticalPlacedIconSymbolIndex:Zn}=ce,ln=n.icon.placedSymbolArray,An=Rt.icon.isHidden()?1:0;dn>=0&&(et(n.icon,Pt,Yn?ji:Pn),ln.get(dn).hidden=An),Zn>=0&&(et(n.icon,ce.numVerticalIconVertices,tn?ji:Pn),ln.get(Zn).hidden=An)}if(n.hasIconCollisionBoxData()||n.hasTextCollisionBoxData()){const Pn=n.collisionArrays[nt];if(Pn){let dn=new a.Point(0,0),Zn=!0;if(Pn.textBox||Pn.verticalTextBox){if(Z){const An=this.variableOffsets[gt];An?(dn=ci(An.anchor,An.width,An.height,An.textOffset,An.textScale),$&&dn._rotate(re?this.transform.angle:-this.transform.angle)):Zn=!1}b&&(Zn=!Rt.clipped),Pn.textBox&&or(n.textCollisionBox.collisionVertexArray,Rt.text.placed,!Zn||Yn,dn.x,dn.y),Pn.verticalTextBox&&or(n.textCollisionBox.collisionVertexArray,Rt.text.placed,!Zn||tn,dn.x,dn.y)}const ln=Zn&&!(tn||!Pn.verticalIconBox);Pn.iconBox&&or(n.iconCollisionBox.collisionVertexArray,Rt.icon.placed,ln,Re?dn.x:0,Re?dn.y:0),Pn.verticalIconBox&&or(n.iconCollisionBox.collisionVertexArray,Rt.icon.placed,!ln,Re?dn.x:0,Re?dn.y:0)}}}if(n.fullyClipped=0===Qe,n.sortFeatures(this.transform.angle),this.retainedQueryData[n.bucketInstanceId]&&(this.retainedQueryData[n.bucketInstanceId].featureSortOrder=n.featureSortOrder),n.hasTextData()&&n.text.opacityVertexBuffer&&n.text.opacityVertexBuffer.updateData(n.text.opacityVertexArray),n.hasIconData()&&n.icon.opacityVertexBuffer&&n.icon.opacityVertexBuffer.updateData(n.icon.opacityVertexArray),n.hasIconCollisionBoxData()&&n.iconCollisionBox.collisionVertexBuffer&&n.iconCollisionBox.collisionVertexBuffer.updateData(n.iconCollisionBox.collisionVertexArray),n.hasTextCollisionBoxData()&&n.textCollisionBox.collisionVertexBuffer&&n.textCollisionBox.collisionVertexBuffer.updateData(n.textCollisionBox.collisionVertexArray),n.bucketInstanceId in this.collisionCircleArrays){const nt=this.collisionCircleArrays[n.bucketInstanceId];n.placementInvProjMatrix=nt.invProjMatrix,n.placementViewportMatrix=nt.viewportMatrix,n.collisionCircleArray=nt.circles,delete this.collisionCircleArrays[n.bucketInstanceId]}}symbolFadeChange(n){return 0===this.fadeDuration?1:(n-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(n){return Math.max(0,(this.transform.zoom-n)/1.5)}hasTransitions(n){return this.stale||n-this.lastPlacementChangeTimen}setStale(){this.stale=!0}}function or(d,n,c,m,v){d.emplaceBack(n?1:0,c?1:0,m||0,v||0),d.emplaceBack(n?1:0,c?1:0,m||0,v||0),d.emplaceBack(n?1:0,c?1:0,m||0,v||0),d.emplaceBack(n?1:0,c?1:0,m||0,v||0)}const ur=Math.pow(2,25),R=Math.pow(2,24),$e=Math.pow(2,17),H=Math.pow(2,16),Ze=Math.pow(2,9),Bt=Math.pow(2,8),Vi=Math.pow(2,1);function Tr(d){if(0===d.opacity&&!d.placed)return 0;if(1===d.opacity&&d.placed)return 4294967295;const n=d.placed?1:0,c=Math.floor(127*d.opacity);return c*ur+n*R+c*$e+n*H+c*Ze+n*Bt+c*Vi+n}const ji=0;class Ko{constructor(n){this._sortAcrossTiles="viewport-y"!==n.layout.get("symbol-z-order")&&void 0!==n.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(n,c,m,v,b){const I=this._bucketParts;for(;this._currentTileIndexM.sortKey-N.sortKey));this._currentPartIndex{const I=a.exported.now()-v;return!this._forceFullPlacement&&I>2};for(;this._currentPlacementIndex>=0;){const I=c[n[this._currentPlacementIndex]],M=this.placement.collisionIndex.transform.zoom;if("symbol"===I.type&&(!I.minzoom||I.minzoom<=M)&&(!I.maxzoom||I.maxzoom>M)){if(this._inProgressLayer||(this._inProgressLayer=new Ko(I)),this._inProgressLayer.continuePlacement(m[I.source],this.placement,this._showCollisionBoxes,I,b))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(n){return this.placement.commit(n),this.placement}}const Ns=512/a.EXTENT/2;class cr{constructor(n,c,m){this.tileID=n,this.bucketInstanceId=m,this.index=new a.KDBush(c.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const v=n.canonical.x*a.EXTENT,b=n.canonical.y*a.EXTENT;for(let I=0;In.overscaledZ)for(const M in I){const N=I[M];N.tileID.isChildOf(n)&&N.findMatches(c.symbolInstances,n,v)}else{const M=I[n.scaledTo(Number(b)).key];M&&M.findMatches(c.symbolInstances,n,v)}}for(let b=0;b{c[m]=!0});for(const m in this.layerIndexes)c[m]||delete this.layerIndexes[m]}}const jo=(d,n)=>a.emitValidationErrors(d,n&&n.filter(c=>"source.canvas"!==c.identifier)),Go=a.pick(Zi,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),Al=a.pick(Zi,["setCenter","setZoom","setBearing","setPitch"]),$a={version:8,layers:[],sources:{}},zs={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class lo extends a.Evented{constructor(n,c={}){super(),this.map=n,this.dispatcher=new cn(ho(),this),this.imageManager=new lt,this.imageManager.setEventedParent(this),this.glyphManager=new a.GlyphManager(n._requestManager,c.localFontFamily?a.LocalGlyphMode.all:c.localIdeographFontFamily?a.LocalGlyphMode.ideographs:a.LocalGlyphMode.none,c.localFontFamily||c.localIdeographFontFamily),this.crossTileSymbolIndex=new Uo,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",a.getReferrer());const m=this;this._rtlTextPluginCallback=lo.registerForPluginStateChange(v=>{m.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:v.pluginStatus,pluginURL:v.pluginURL},(b,I)=>{if(a.triggerPluginCompletionEvent(b),I&&I.every(M=>M))for(const M in m._sourceCaches){const N=m._sourceCaches[M],Z=N.getSource().type;"vector"!==Z&&"geojson"!==Z||N.reload()}})}),this.on("data",v=>{if("source"!==v.dataType||"metadata"!==v.sourceDataType)return;const b=this.getSource(v.sourceId);if(b&&b.vectorLayerIds)for(const I in this._layers){const M=this._layers[I];M.source===b.id&&this._validateLayer(M)}})}loadURL(n,c={}){this.fire(new a.Event("dataloading",{dataType:"style"}));const m="boolean"==typeof c.validate?c.validate:!a.isMapboxURL(n);n=this.map._requestManager.normalizeStyleURL(n,c.accessToken);const v=this.map._requestManager.transformRequest(n,a.ResourceType.Style);this._request=a.getJSON(v,(b,I)=>{this._request=null,b?this.fire(new a.ErrorEvent(b)):I&&this._load(I,m)})}loadJSON(n,c={}){this.fire(new a.Event("dataloading",{dataType:"style"})),this._request=a.exported.frame(()=>{this._request=null,this._load(n,!1!==c.validate)})}loadEmpty(){this.fire(new a.Event("dataloading",{dataType:"style"})),this._load($a,!1)}_updateLayerCount(n,c){const m=c?1:-1;n.is3D()&&(this._num3DLayers+=m),"circle"===n.type&&(this._numCircleLayers+=m),"symbol"===n.type&&(this._numSymbolLayers+=m)}_load(n,c){if(c&&jo(this,a.validateStyle(n)))return;this._loaded=!0,this.stylesheet=a.clone$1(n),this._updateMapProjection();for(const v in n.sources)this.addSource(v,n.sources[v],{validate:!1});this._changed=!1,n.sprite?this._loadSprite(n.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(n.glyphs);const m=Io(this.stylesheet.layers);this._order=m.map(v=>v.id),this._layers={},this._serializedLayers={};for(const v of m){const b=a.createStyleLayer(v);b.setEventedParent(this,{layer:{id:b.id}}),this._layers[b.id]=b,this._serializedLayers[b.id]=b.serialize(),this._updateLayerCount(b,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new Ee(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new a.Event("data",{dataType:"style"})),this.fire(new a.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(n){n?this.stylesheet.projection=n:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(n){this._spriteRequest=function(c,m,v){let b,I,M;const N=a.exported.devicePixelRatio>1?"@2x":"";let Z=a.getJSON(m.transformRequest(m.normalizeSpriteURL(c,N,".json"),a.ResourceType.SpriteJSON),(Re,Fe)=>{Z=null,M||(M=Re,b=Fe,re())}),$=a.getImage(m.transformRequest(m.normalizeSpriteURL(c,N,".png"),a.ResourceType.SpriteImage),(Re,Fe)=>{$=null,M||(M=Re,I=Fe,re())});function re(){if(M)v(M);else if(b&&I){const Re=a.exported.getImageData(I),Fe={};for(const et in b){const{width:Qe,height:nt,x:ce,y:We,sdf:pt,pixelRatio:gt,stretchX:Pt,stretchY:Ft,content:Rt}=b[et],qt=new a.RGBAImage({width:Qe,height:nt});a.RGBAImage.copy(Re,qt,{x:ce,y:We},{x:0,y:0},{width:Qe,height:nt}),Fe[et]={data:qt,pixelRatio:gt,sdf:pt,stretchX:Pt,stretchY:Ft,content:Rt}}v(null,Fe)}}return{cancel(){Z&&(Z.cancel(),Z=null),$&&($.cancel(),$=null)}}}(n,this.map._requestManager,(c,m)=>{if(this._spriteRequest=null,c)this.fire(new a.ErrorEvent(c));else if(m)for(const v in m)this.imageManager.addImage(v,m[v]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new a.Event("data",{dataType:"style"}))})}_validateLayer(n){const c=this.getSource(n.source);if(!c)return;const m=n.sourceLayer;m&&("geojson"===c.type||c.vectorLayerIds&&-1===c.vectorLayerIds.indexOf(m))&&this.fire(new a.ErrorEvent(new Error(`Source layer "${m}" does not exist on source "${c.id}" as specified by style layer "${n.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const n in this._sourceCaches)if(!this._sourceCaches[n].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(n){const c=[];for(const m of n){const v=this._layers[m];"custom"!==v.type&&c.push(v.serialize())}return c}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(const n in this._sourceCaches)if(this._sourceCaches[n].hasTransition())return!0;for(const n in this._layers)if(this._layers[n].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(n){return!!this.terrain&&("function"==typeof n.isLayerDraped?n.isLayerDraped():zs[n.type])}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(n){if(!this._loaded)return;const c=this._changed;if(this._changed){const v=Object.keys(this._updatedLayers),b=Object.keys(this._removedLayers);(v.length||b.length)&&this._updateWorkerLayers(v,b);for(const I in this._updatedSources){const M=this._updatedSources[I];"reload"===M?this._reloadSource(I):"clear"===M&&this._clearSource(I)}this._updateTilesForChangedImages();for(const I in this._updatedPaintProps)this._layers[I].updateTransitions(n);this.light.updateTransitions(n),this.fog&&this.fog.updateTransitions(n),this._resetUpdates()}const m={};for(const v in this._sourceCaches){const b=this._sourceCaches[v];m[v]=b.used,b.used=!1}for(const v of this._order){const b=this._layers[v];if(b.recalculate(n,this._availableImages),!b.isHidden(n.zoom)){const M=this._getLayerSourceCache(b);M&&(M.used=!0)}const I=this.map.painter;if(I){const M=b.getProgramIds();if(!M)continue;const N=b.getProgramConfiguration(n.zoom);for(const Z of M)I.useProgram(Z,N)}}for(const v in m){const b=this._sourceCaches[v];m[v]!==b.used&&b.getSource().fire(new a.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:b.getSource().id}))}this.light.recalculate(n),this.terrain&&this.terrain.recalculate(n),this.fog&&this.fog.recalculate(n),this.z=n.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),c&&this.fire(new a.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const n=Object.keys(this._changedImages);if(n.length){for(const c in this._sourceCaches)this._sourceCaches[c].reloadTilesForDependencies(["icons","patterns"],n);this._changedImages={}}}_updateWorkerLayers(n,c){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(n),removedIds:c})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(n){if(this._checkLoaded(),jo(this,a.validateStyle(n)))return!1;(n=a.clone$1(n)).layers=Io(n.layers);const c=function(v,b){if(!v)return[{command:Zi.setStyle,args:[b]}];let I=[];try{if(!j(v.version,b.version))return[{command:Zi.setStyle,args:[b]}];j(v.center,b.center)||I.push({command:Zi.setCenter,args:[b.center]}),j(v.zoom,b.zoom)||I.push({command:Zi.setZoom,args:[b.zoom]}),j(v.bearing,b.bearing)||I.push({command:Zi.setBearing,args:[b.bearing]}),j(v.pitch,b.pitch)||I.push({command:Zi.setPitch,args:[b.pitch]}),j(v.sprite,b.sprite)||I.push({command:Zi.setSprite,args:[b.sprite]}),j(v.glyphs,b.glyphs)||I.push({command:Zi.setGlyphs,args:[b.glyphs]}),j(v.transition,b.transition)||I.push({command:Zi.setTransition,args:[b.transition]}),j(v.light,b.light)||I.push({command:Zi.setLight,args:[b.light]}),j(v.fog,b.fog)||I.push({command:Zi.setFog,args:[b.fog]}),j(v.projection,b.projection)||I.push({command:Zi.setProjection,args:[b.projection]});const M={},N=[];!function(re,Re,Fe,et){let Qe;for(Qe in Re=Re||{},re=re||{})re.hasOwnProperty(Qe)&&(Re.hasOwnProperty(Qe)||Ro(Qe,Fe,et));for(Qe in Re){if(!Re.hasOwnProperty(Qe))continue;const nt=Re[Qe];re.hasOwnProperty(Qe)?j(re[Qe],nt)||("geojson"===re[Qe].type&&"geojson"===nt.type&&qi(re,Re,Qe)?Fe.push({command:Zi.setGeoJSONSourceData,args:[Qe,nt.data]}):xo(Qe,Re,Fe,et)):ao(Qe,Re,Fe)}}(v.sources,b.sources,N,M);const Z=[];v.layers&&v.layers.forEach(re=>{re.source&&M[re.source]?I.push({command:Zi.removeLayer,args:[re.id]}):Z.push(re)});let $=v.terrain;$&&M[$.source]&&(I.push({command:Zi.setTerrain,args:[void 0]}),$=void 0),I=I.concat(N),j($,b.terrain)||I.push({command:Zi.setTerrain,args:[b.terrain]}),function(re,Re,Fe){Re=Re||[];const et=(re=re||[]).map(Kr),Qe=Re.map(Kr),nt=re.reduce(Yt,{}),ce=Re.reduce(Yt,{}),We=et.slice(),pt=Object.create(null);let gt,Pt,Ft,Rt,qt,Wt,an;for(gt=0,Pt=0;gt!(v.command in Al));if(0===c.length)return!1;const m=c.filter(v=>!(v.command in Go));if(m.length>0)throw new Error(`Unimplemented: ${m.map(v=>v.command).join(", ")}.`);return c.forEach(v=>{"setTransition"!==v.command&&"setProjection"!==v.command&&this[v.command].apply(this,v.args)}),this.stylesheet=n,this._updateMapProjection(),!0}addImage(n,c){return this.getImage(n)?this.fire(new a.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(n,c),this._afterImageUpdated(n),this)}updateImage(n,c){this.imageManager.updateImage(n,c)}getImage(n){return this.imageManager.getImage(n)}removeImage(n){return this.getImage(n)?(this.imageManager.removeImage(n),this._afterImageUpdated(n),this):this.fire(new a.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(n){this._availableImages=this.imageManager.listImages(),this._changedImages[n]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new a.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(n,c,m={}){if(this._checkLoaded(),void 0!==this.getSource(n))throw new Error("There is already a source with this ID");if(!c.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(c).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(c.type)>=0&&this._validate(a.validateSource,`sources.${n}`,c,null,m))return;this.map&&this.map._collectResourceTiming&&(c.collectResourceTiming=!0);const v=at(n,c,this.dispatcher,this);v.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(n),source:v.serialize(),sourceId:n}));const b=I=>{const M=(I?"symbol:":"other:")+n,N=this._sourceCaches[M]=new a.SourceCache(M,v,I);(I?this._symbolSourceCaches:this._otherSourceCaches)[n]=N,N.style=this,N.onAdd(this.map)};b(!1),"vector"!==c.type&&"geojson"!==c.type||b(!0),v.onAdd&&v.onAdd(this.map),this._changed=!0}removeSource(n){this._checkLoaded();const c=this.getSource(n);if(!c)throw new Error("There is no source with this ID");for(const v in this._layers)if(this._layers[v].source===n)return this.fire(new a.ErrorEvent(new Error(`Source "${n}" cannot be removed while layer "${v}" is using it.`)));if(this.terrain&&this.terrain.get().source===n)return this.fire(new a.ErrorEvent(new Error(`Source "${n}" cannot be removed while terrain is using it.`)));const m=this._getSourceCaches(n);for(const v of m)delete this._sourceCaches[v.id],delete this._updatedSources[v.id],v.fire(new a.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:v.getSource().id})),v.setEventedParent(null),v.clearTiles();return delete this._otherSourceCaches[n],delete this._symbolSourceCaches[n],c.setEventedParent(null),c.onRemove&&c.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(n,c){this._checkLoaded(),this.getSource(n).setData(c),this._changed=!0}getSource(n){const c=this._getSourceCache(n);return c&&c.getSource()}_getSources(){const n=[];for(const c in this._otherSourceCaches){const m=this._getSourceCache(c);m&&n.push(m.getSource())}return n}addLayer(n,c,m={}){this._checkLoaded();const v=n.id;if(this.getLayer(v))return void this.fire(new a.ErrorEvent(new Error(`Layer with id "${v}" already exists on this map`)));let b;if("custom"===n.type){if(jo(this,a.validateCustomStyleLayer(n)))return;b=a.createStyleLayer(n)}else{if("object"==typeof n.source&&(this.addSource(v,n.source),n=a.clone$1(n),n=a.extend(n,{source:v})),this._validate(a.validateLayer,`layers.${v}`,n,{arrayIndex:-1},m))return;b=a.createStyleLayer(n),this._validateLayer(b),b.setEventedParent(this,{layer:{id:v}}),this._serializedLayers[b.id]=b.serialize(),this._updateLayerCount(b,!0)}const I=c?this._order.indexOf(c):this._order.length;if(c&&-1===I)return void this.fire(new a.ErrorEvent(new Error(`Layer with id "${c}" does not exist on this map.`)));this._order.splice(I,0,v),this._layerOrderChanged=!0,this._layers[v]=b;const M=this._getLayerSourceCache(b);if(this._removedLayers[v]&&b.source&&M&&"custom"!==b.type){const N=this._removedLayers[v];delete this._removedLayers[v],N.type!==b.type?this._updatedSources[b.source]="clear":(this._updatedSources[b.source]="reload",M.pause())}this._updateLayer(b),b.onAdd&&b.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(n,c){if(this._checkLoaded(),this._changed=!0,!this._layers[n])return void this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be moved.`)));if(n===c)return;const m=this._order.indexOf(n);this._order.splice(m,1);const v=c?this._order.indexOf(c):this._order.length;c&&-1===v?this.fire(new a.ErrorEvent(new Error(`Layer with id "${c}" does not exist on this map.`))):(this._order.splice(v,0,n),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(n){this._checkLoaded();const c=this._layers[n];if(!c)return void this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be removed.`)));c.setEventedParent(null),this._updateLayerCount(c,!1);const m=this._order.indexOf(n);this._order.splice(m,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[n]=c,delete this._layers[n],delete this._serializedLayers[n],delete this._updatedLayers[n],delete this._updatedPaintProps[n],c.onRemove&&c.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(n){return this._layers[n]}hasLayer(n){return n in this._layers}hasLayerType(n){for(const c in this._layers)if(this._layers[c].type===n)return!0;return!1}setLayerZoomRange(n,c,m){this._checkLoaded();const v=this.getLayer(n);v?v.minzoom===c&&v.maxzoom===m||(null!=c&&(v.minzoom=c),null!=m&&(v.maxzoom=m),this._updateLayer(v)):this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(n,c,m={}){this._checkLoaded();const v=this.getLayer(n);if(v){if(!j(v.filter,c))return null==c?(v.filter=void 0,void this._updateLayer(v)):void(this._validate(a.validateFilter,`layers.${v.id}.filter`,c,{layerType:v.type},m)||(v.filter=a.clone$1(c),this._updateLayer(v)))}else this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be filtered.`)))}getFilter(n){const c=this.getLayer(n);return c&&a.clone$1(c.filter)}setLayoutProperty(n,c,m,v={}){this._checkLoaded();const b=this.getLayer(n);b?j(b.getLayoutProperty(c),m)||(b.setLayoutProperty(c,m,v),this._updateLayer(b)):this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(n,c){const m=this.getLayer(n);if(m)return m.getLayoutProperty(c);this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style.`)))}setPaintProperty(n,c,m,v={}){this._checkLoaded();const b=this.getLayer(n);b?j(b.getPaintProperty(c),m)||(b.setPaintProperty(c,m,v)&&this._updateLayer(b),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new a.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(n,c){const m=this.getLayer(n);return m&&m.getPaintProperty(c)}setFeatureState(n,c){this._checkLoaded();const m=n.source,v=n.sourceLayer,b=this.getSource(m);if(!b)return void this.fire(new a.ErrorEvent(new Error(`The source '${m}' does not exist in the map's style.`)));const I=b.type;if("geojson"===I&&v)return void this.fire(new a.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===I&&!v)return void this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===n.id&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided.")));const M=this._getSourceCaches(m);for(const N of M)N.setFeatureState(v,n.id,c)}removeFeatureState(n,c){this._checkLoaded();const m=n.source,v=this.getSource(m);if(!v)return void this.fire(new a.ErrorEvent(new Error(`The source '${m}' does not exist in the map's style.`)));const b=v.type,I="vector"===b?n.sourceLayer:void 0;if("vector"===b&&!I)return void this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(c&&"string"!=typeof n.id&&"number"!=typeof n.id)return void this.fire(new a.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const M=this._getSourceCaches(m);for(const N of M)N.removeFeatureState(I,n.id,c)}getFeatureState(n){this._checkLoaded();const c=n.source,m=n.sourceLayer,v=this.getSource(c);if(v){if("vector"!==v.type||m)return void 0===n.id&&this.fire(new a.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(c)[0].getFeatureState(m,n.id);this.fire(new a.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new a.ErrorEvent(new Error(`The source '${c}' does not exist in the map's style.`)))}getTransition(){return a.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const n={};for(const c in this._sourceCaches){const m=this._sourceCaches[c].getSource();n[m.id]||(n[m.id]=m.serialize())}return a.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:n,layers:this._serializeLayers(this._order)},c=>void 0!==c)}_updateLayer(n){this._updatedLayers[n.id]=!0;const c=this._getLayerSourceCache(n);n.source&&!this._updatedSources[n.source]&&c&&"raster"!==c.getSource().type&&(this._updatedSources[n.source]="reload",c.pause()),this._changed=!0,n.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(n){const c=I=>"fill-extrusion"===this._layers[I].type,m={},v=[];for(let I=this._order.length-1;I>=0;I--){const M=this._order[I];if(c(M)){m[M]=I;for(const N of n){const Z=N[M];if(Z)for(const $ of Z)v.push($)}}}v.sort((I,M)=>M.intersectionZ-I.intersectionZ);const b=[];for(let I=this._order.length-1;I>=0;I--){const M=this._order[I];if(c(M))for(let N=v.length-1;N>=0;N--){const Z=v[N].feature;if(m[Z.layer.id]{const Z=this.getLayer(N);return Z&&Z.is3D()}):this.has3DLayers(),M=$t.createFromScreenPoints(n,m);for(const N in this._sourceCaches){const Z=this._sourceCaches[N].getSource().id;c.layers&&!v[Z]||b.push(Dn(this._sourceCaches[N],this._layers,this._serializedLayers,M,c,m,I,!!this.map._showQueryGeometry))}return this.placement&&b.push(function(N,Z,$,re,Re,Fe,et){const Qe={},nt=Fe.queryRenderedSymbols(re),ce=[];for(const We of Object.keys(nt).map(Number))ce.push(et[We]);ce.sort(Mi);for(const We of ce){const pt=We.featureIndex.lookupSymbolFeatures(nt[We.bucketInstanceId],Z,We.bucketIndex,We.sourceLayerIndex,Re.filter,Re.layers,Re.availableImages,N);for(const gt in pt){const Pt=Qe[gt]=Qe[gt]||[],Ft=pt[gt];Ft.sort((Rt,qt)=>{const Wt=We.featureSortOrder;if(Wt){const an=Wt.indexOf(Rt.featureIndex);return Wt.indexOf(qt.featureIndex)-an}return qt.featureIndex-Rt.featureIndex});for(const Rt of Ft)Pt.push(Rt)}}for(const We in Qe)Qe[We].forEach(pt=>{const gt=pt.feature,Pt=$(N[We]);if(!Pt)return;const Ft=Pt.getFeatureState(gt.layer["source-layer"],gt.id);gt.source=gt.layer.source,gt.layer["source-layer"]&&(gt.sourceLayer=gt.layer["source-layer"]),gt.state=Ft});return Qe}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),M.screenGeometry,c,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(b)}querySourceFeatures(n,c){c&&c.filter&&this._validate(a.validateFilter,"querySourceFeatures.filter",c.filter,null,c);const m=this._getSourceCaches(n);let v=[];for(const b of m)v=v.concat(gi(b,c));return v}addSourceType(n,c,m){return lo.getSourceType(n)?m(new Error(`A source type called "${n}" already exists.`)):(lo.setSourceType(n,c),c.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:n,url:c.workerSourceURL},m):m(null,null))}getLight(){return this.light.getLight()}setLight(n,c={}){this._checkLoaded();const m=this.light.getLight();let v=!1;for(const I in n)if(!j(n[I],m[I])){v=!0;break}if(!v)return;const b=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(n,c),this.light.updateTransitions(b)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(n,c=1){if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let m=n;if(1===c){if("object"==typeof m.source){const v="terrain-dem-src";this.addSource(v,m.source),m=a.clone$1(m),m=a.extend(m,{source:v})}if(this._validate(a.validateTerrain,"terrain",m))return}if(!this.terrain||this.terrain&&c!==this.terrain.drapeRenderMode){if(!m)return;this._createTerrain(m,c)}else{const v=this.terrain,b=v.get();for(const I of Object.keys(a.spec.terrain))!m.hasOwnProperty(I)&&a.spec.terrain[I].default&&(m[I]=a.spec.terrain[I].default);for(const I in m)if(!j(m[I],b[I])){v.set(m),this.stylesheet.terrain=m;const M=this._setTransitionParameters({duration:0});v.updateTransitions(M);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(n){const c=this.fog=new Ht(n,this.map.transform);this.stylesheet.fog=n;const m=this._setTransitionParameters({duration:0});c.updateTransitions(m)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const n of this.map._markers)n._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(n){if(this._checkLoaded(),!n)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const c=this.fog,m=c.get();0===Object.keys(n).length&&c.set(n);for(const v in n)if(!j(n[v],m[v])){c.set(n),this.stylesheet.fog=n;const b=this._setTransitionParameters({duration:0});c.updateTransitions(b);break}}else this._createFog(n);this._markersNeedUpdate=!0}_setTransitionParameters(n){return{now:a.exported.now(),transition:a.extend(n,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const n=this._order.filter(m=>this.isLayerDraped(this._layers[m])),c=this._order.filter(m=>!this.isLayerDraped(this._layers[m]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...n),this._drapedFirstOrder.push(...c)}_createTerrain(n,c){const m=this.terrain=new je(n,c);this.stylesheet.terrain=n,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const v=this._setTransitionParameters({duration:0});m.updateTransitions(v)}_force3DLayerUpdate(){for(const n in this._layers){const c=this._layers[n];"fill-extrusion"===c.type&&this._updateLayer(c)}}_forceSymbolLayerUpdate(){for(const n in this._layers){const c=this._layers[n];"symbol"===c.type&&this._updateLayer(c)}}_validate(n,c,m,v,b={}){return(!b||!1!==b.validate)&&jo(this,n.call(a.validateStyle,a.extend({key:c,style:this.serialize(),value:m,styleSpec:a.spec},v)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),a.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const n in this._layers)this._layers[n].setEventedParent(null);for(const n in this._sourceCaches)this._sourceCaches[n].clearTiles(),this._sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(n){const c=this._getSourceCaches(n);for(const m of c)m.clearTiles()}_reloadSource(n){const c=this._getSourceCaches(n);for(const m of c)m.resume(),m.reload()}_reloadSources(){for(const n of this._getSources())n.reload&&n.reload()}_updateSources(n){for(const c in this._sourceCaches)this._sourceCaches[c].update(n)}_generateCollisionBoxes(){for(const n in this._sourceCaches){const c=this._sourceCaches[n];c.resume(),c.reload()}}_updatePlacement(n,c,m,v,b=!1){let I=!1,M=!1;const N={};for(const Z of this._order){const $=this._layers[Z];if("symbol"!==$.type)continue;if(!N[$.source]){const Re=this._getLayerSourceCache($);if(!Re)continue;N[$.source]=Re.getRenderableIds(!0).map(Fe=>Re.getTileByID(Fe)).sort((Fe,et)=>et.tileID.overscaledZ-Fe.tileID.overscaledZ||(Fe.tileID.isLessThan(et.tileID)?-1:1))}const re=this.crossTileSymbolIndex.addLayer($,N[$.source],n.center.lng,n.projection);I=I||re}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),b=b||this._layerOrderChanged||0===m,this._layerOrderChanged&&this.fire(new a.Event("neworder")),(b||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(a.exported.now(),n.zoom))&&(this.pauseablePlacement=new Mo(n,this._order,b,c,m,v,this.placement,this.fog&&n.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,N),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(a.exported.now()),M=!0),I&&this.pauseablePlacement.placement.setStale()),M||I)for(const Z of this._order){const $=this._layers[Z];"symbol"===$.type&&this.placement.updateLayerOpacities($,N[$.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(a.exported.now())}_releaseSymbolFadeTiles(){for(const n in this._sourceCaches)this._sourceCaches[n].releaseSymbolFadeTiles()}getImages(n,c,m){this.imageManager.getImages(c.icons,m),this._updateTilesForChangedImages();const v=b=>{b&&b.setDependencies(c.tileID.key,c.type,c.icons)};v(this._otherSourceCaches[c.source]),v(this._symbolSourceCaches[c.source])}getGlyphs(n,c,m){this.glyphManager.getGlyphs(c.stacks,m)}getResource(n,c,m){return a.makeRequest(c,m)}_getSourceCache(n){return this._otherSourceCaches[n]}_getLayerSourceCache(n){return"symbol"===n.type?this._symbolSourceCaches[n.source]:this._otherSourceCaches[n.source]}_getSourceCaches(n){const c=[];return this._otherSourceCaches[n]&&c.push(this._otherSourceCaches[n]),this._symbolSourceCaches[n]&&c.push(this._symbolSourceCaches[n]),c}_isSourceCacheLoaded(n){const c=this._getSourceCaches(n);return 0===c.length?(this.fire(new a.ErrorEvent(new Error(`There is no source with ID '${n}'`))),!1):c.every(m=>m.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}lo.getSourceType=function(d){return ze[d]},lo.setSourceType=function(d,n){ze[d]=n},lo.registerForPluginStateChange=a.registerForPluginStateChange;var Aa="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",fo="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",po="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",mr="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",Lo="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let ns={},ha={};const ws=[];cs(Aa,ws),cs(po,ws),cs(mr,ws),cs(Lo,ws),ns=vr("",po),ha=vr(Lo,mr);const na=vr("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),Us=Aa,Za="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var fl={background:vr("uniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform vec4 u_color;varying vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(u_color);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:vr("uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:vr("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:vr("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:vr("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:vr("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:vr("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:vr("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:vr("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:vr("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:vr("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:vr("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:vr("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:vr("varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\nvoid main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvec3 normal=v_normal;\n#endif\nfloat z;vec4 color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\n#else\ncolor=v_color;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef ZERO_ROOF_RADIUS\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#endif\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(color,NdotL);\n#else\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_color*=u_opacity;\n#ifdef ZERO_ROOF_RADIUS\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef LIGHTING_3D_MODE\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\n#else\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:vr("uniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_NdotL=NdotL;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:vr("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:vr("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting(gl_FragColor);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:vr("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nfloat linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\n#ifdef RENDER_LINE_BORDER_AUTO\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\n#else\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\n#endif\n}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:vr("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:vr("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:vr("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:vr("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:vr("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:vr("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=wireframeOffset;\n#endif\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:vr("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:vr("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",fo),skyboxGradient:vr("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",fo),skyboxCapture:vr("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:vr("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\ncolor=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:vr("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function cs(d,n){const c=d.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let m of c)if(m=m.trim(),"#"===m[0]&&m.includes("if")&&!m.includes("endif")){m=m.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const v=m.split(" ");for(const b of v)n.includes(b)||n.push(b)}}function vr(d,n){const c=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,m=n.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),v={},b=[...ws];return cs(d,b),cs(n,b),{fragmentSource:d=d.replace(c,(I,M,N,Z,$)=>(v[$]=!0,"define"===M?`\n#ifndef HAS_UNIFORM_u_${$}\nvarying ${N} ${Z} ${$};\n#else\nuniform ${N} ${Z} u_${$};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${$}\n ${N} ${Z} ${$} = u_${$};\n#endif\n`)),vertexSource:n=n.replace(c,(I,M,N,Z,$)=>{const re="float"===Z?"vec2":"vec4",Re=$.match(/color/)?"color":re;return v[$]?"define"===M?`\n#ifndef HAS_UNIFORM_u_${$}\nuniform lowp float u_${$}_t;\nattribute ${N} ${re} a_${$};\nvarying ${N} ${Z} ${$};\n#else\nuniform ${N} ${Z} u_${$};\n#endif\n`:"vec4"===Re?`\n#ifndef HAS_UNIFORM_u_${$}\n ${$} = a_${$};\n#else\n ${N} ${Z} ${$} = u_${$};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${$}\n ${$} = unpack_mix_${Re}(a_${$}, u_${$}_t);\n#else\n ${N} ${Z} ${$} = u_${$};\n#endif\n`:"define"===M?`\n#ifndef HAS_UNIFORM_u_${$}\nuniform lowp float u_${$}_t;\nattribute ${N} ${re} a_${$};\n#else\nuniform ${N} ${Z} u_${$};\n#endif\n`:"vec4"===Re?`\n#ifndef HAS_UNIFORM_u_${$}\n ${N} ${Z} ${$} = a_${$};\n#else\n ${N} ${Z} ${$} = u_${$};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${$}\n ${N} ${Z} ${$} = unpack_mix_${Re}(a_${$}, u_${$}_t);\n#else\n ${N} ${Z} ${$} = u_${$};\n#endif\n`}),staticAttributes:m,usedDefines:b}}class Sl{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(n,c,m,v,b,I,M){this.context=n;let N=this.boundPaintVertexBuffers.length!==v.length;for(let $=0;!N&&${const pt=ce.paint.get("hillshade-shadow-color"),gt=ce.paint.get("hillshade-highlight-color"),Pt=ce.paint.get("hillshade-accent-color");let Ft=ce.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===ce.paint.get("hillshade-illumination-anchor")&&(Ft-=Qe.transform.angle);const Rt=!Qe.options.moving;return{u_matrix:We||Qe.transform.calculateProjMatrix(nt.tileID.toUnwrapped(),Rt),u_image:0,u_latrange:Xo(0,nt.tileID),u_light:[ce.paint.get("hillshade-exaggeration"),Ft],u_shadow:pt,u_highlight:gt,u_accent:Pt}})(d,c,m,d.terrain?n.projMatrix:null);d.prepareDrawProgram(M,$,n.toUnwrapped());const{tileBoundsBuffer:Re,tileBoundsIndexBuffer:Fe,tileBoundsSegments:et}=d.getTileBoundsBuffers(c);$.draw(M,N.TRIANGLES,v,b,I,a.CullFaceMode.disabled,re,m.id,Re,Fe,et)}function Ga(d,n,c){if(!n.needsDEMTextureUpload)return;const m=d.context,v=m.gl;m.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||d.getTileTexture(c.stride);const b=c.getPixels();n.demTexture?n.demTexture.update(b,{premultiply:!1}):n.demTexture=new a.Texture(m,b,v.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function Pl(d,n,c,m,v,b){const I=d.context,M=I.gl;if(!n.dem)return;const N=n.dem;if(I.activeTexture.set(M.TEXTURE1),Ga(d,n,N),!n.demTexture)return;n.demTexture.bind(M.NEAREST,M.CLAMP_TO_EDGE);const Z=N.dim;I.activeTexture.set(M.TEXTURE0);let $=n.fbo;if(!$){const et=new a.Texture(I,{width:Z,height:Z,data:null},M.RGBA);et.bind(M.LINEAR,M.CLAMP_TO_EDGE),$=n.fbo=I.createFramebuffer(Z,Z,!0),$.colorAttachment.set(et.texture)}I.bindFramebuffer.set($.framebuffer),I.viewport.set([0,0,Z,Z]);const{tileBoundsBuffer:re,tileBoundsIndexBuffer:Re,tileBoundsSegments:Fe}=d.getMercatorTileBoundsBuffers();d.useProgram("hillshadePrepare").draw(I,M.TRIANGLES,m,v,b,a.CullFaceMode.disabled,((et,Qe)=>{const nt=Qe.stride,ce=a.create();return a.ortho(ce,0,a.EXTENT,-a.EXTENT,0,0,1),a.translate(ce,ce,[0,-a.EXTENT,0]),{u_matrix:ce,u_image:1,u_dimension:[nt,nt],u_zoom:et.overscaledZ,u_unpack:Qe.unpackVector}})(n.tileID,N),c.id,re,Re,Fe),n.needsHillshadePrepare=!1}const fa=d=>({u_matrix:new a.UniformMatrix4f(d),u_image0:new a.Uniform1i(d),u_skirt_height:new a.Uniform1f(d)}),pa=(d,n)=>({u_matrix:d,u_image0:0,u_skirt_height:n}),Ha=(d,n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et)=>({u_proj_matrix:Float32Array.from(d),u_globe_matrix:n,u_normalize_matrix:Float32Array.from(m),u_merc_matrix:c,u_zoom_transition:v,u_merc_center:b,u_image0:0,u_frustum_tl:I,u_frustum_tr:M,u_frustum_br:N,u_frustum_bl:Z,u_globe_pos:$,u_globe_radius:re,u_viewport:Re,u_grid_matrix:et?Float32Array.from(et):new Float32Array(9),u_skirt_height:Fe});function js(d,n){return null!=d&&null!=n&&!(!d.hasData()||!n.hasData())&&null!=d.demTexture&&null!=n.demTexture&&d.tileID.key!==n.tileID.key}const bo=new class{constructor(){this.operations={}}newMorphing(d,n,c,m,v){if(d in this.operations){const b=this.operations[d];b.to.tileID.key!==c.tileID.key&&(b.queued=c)}else this.operations[d]={startTime:m,phase:0,duration:v,from:n,to:c,queued:null}}getMorphValuesForProxy(d){if(!(d in this.operations))return null;const n=this.operations[d];return{from:n.from,to:n.to,phase:n.phase}}update(d){for(const n in this.operations){const c=this.operations[n];for(c.phase=(d-c.startTime)/c.duration;c.phase>=1||!this._validOp(c);)if(!this._nextOp(c,d)){delete this.operations[n];break}}}_nextOp(d,n){return!!d.queued&&(d.from=d.to,d.to=d.queued,d.queued=null,d.phase=0,d.startTime=n,!0)}_validOp(d){return d.from.hasData()&&d.to.hasData()}},Sa={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function ia(d){return 6*Math.pow(1.5,22-d)}function Ol(d,n){const c=1<({u_matrix:d});function Rl(d,n,c,m,v){if(v>0){const b=a.exported.now(),I=(b-d.timeAdded)/v,M=n?(b-n.timeAdded)/v:-1,N=c.getSource(),Z=m.coveringZoomLevel({tileSize:N.tileSize,roundZoom:N.roundZoom}),$=!n||Math.abs(n.tileID.overscaledZ-Z)>Math.abs(d.tileID.overscaledZ-Z),re=$&&d.refreshedUponExpiration?1:a.clamp($?I:1-M,0,1);return d.refreshedUponExpiration&&I>=1&&(d.refreshedUponExpiration=!1),n?{opacity:1,mix:1-re}:{opacity:re,mix:0}}return{opacity:1,mix:0}}class qa extends a.SourceCache{constructor(n){const c={type:"raster-dem",maxzoom:n.transform.maxZoom},m=new cn(ho(),null),v=at("mock-dem",c,m,n.style);super("mock-dem",v,!1),v.setEventedParent(this),this._sourceLoaded=!0}_loadTile(n,c){n.state="loaded",c(null)}}class ma extends a.SourceCache{constructor(n){const c=at("proxy",{type:"geojson",maxzoom:n.transform.maxZoom},new cn(ho(),null),n.style);super("proxy",c,!1),c.setEventedParent(this),this.map=this.getSource().map=n,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(n,c,m){if(n.freezeTileCoverage)return;this.transform=n;const v=n.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((b,I)=>{if(b[I.key]="",!this._tiles[I.key]){const M=new a.Tile(I,this._source.tileSize*I.overscaleFactor(),n.tileZoom);M.state="loaded",this._tiles[I.key]=M}return b},{});for(const b in this._tiles)b in v||(this.freeFBO(b),this._tiles[b].unloadVectorData(),delete this._tiles[b])}freeFBO(n){const c=this.proxyCachedFBO[n];if(void 0!==c){const m=Object.values(c);this.renderCachePool.push(...m),delete this.proxyCachedFBO[n]}}deallocRenderCache(){this.renderCache.forEach(n=>n.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class Ya extends a.OverscaledTileID{constructor(n,c,m){super(n.overscaledZ,n.wrap,n.canonical.z,n.canonical.x,n.canonical.y),this.proxyTileKey=c,this.projMatrix=m}}class pl extends a.Elevation{constructor(n,c){super(),this.painter=n,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[m,v,b]=function(N){const Z=new a.StructArrayLayout2i4,$=new a.StructArrayLayout3ui6;Z.reserve(17161),$.reserve(33800);const Re=a.EXTENT/128,Fe=a.EXTENT+Re/2,et=Fe+Re;for(let nt=-Re;ntFe||nt<0||nt>Fe?24575:0,pt=a.clamp(Math.round(ce),0,a.EXTENT),gt=a.clamp(Math.round(nt),0,a.EXTENT);Z.emplaceBack(pt+We,gt)}const Qe=(nt,ce)=>{const We=131*ce+nt;$.emplaceBack(We+1,We,We+131),$.emplaceBack(We+131,We+131+1,We+1)};for(let nt=1;nt<129;nt++)for(let ce=1;ce<129;ce++)Qe(ce,nt);return[0,129].forEach(nt=>{for(let ce=0;ce<130;ce++)Qe(ce,nt),Qe(nt,ce)}),[Z,$,32768]}(),I=n.context;this.gridBuffer=I.createVertexBuffer(m,a.posAttributes.members),this.gridIndexBuffer=I.createIndexBuffer(v),this.gridSegments=a.SegmentVector.simpleSegment(0,0,m.length,v.length),this.gridNoSkirtSegments=a.SegmentVector.simpleSegment(0,0,m.length,b),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new ma(c.map),this.orthoMatrix=a.create(),a.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,a.EXTENT,0,a.EXTENT,0,1);const M=I.gl;this._overlapStencilMode=new a.StencilMode({func:M.GEQUAL,mask:255},0,255,M.KEEP,M.KEEP,M.REPLACE),this._previousZoom=n.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=c,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new qa(c.map)}set style(n){n.on("data",this._onStyleDataEvent.bind(this)),n.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=n,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(n,c,m){if(n&&n.terrain){this._style!==n&&(this.style=n),this.enabled=!0;const v=n.terrain.properties;this.sourceCache=0===n.terrain.drapeRenderMode?this._mockSourceCache:n._getSourceCache(v.get("source")),this._exaggeration=v.get("exaggeration");const b=()=>{this.sourceCache.used&&a.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const I=this.getScaledDemTileSize();this.sourceCache.update(c,I,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,b(),this._initializing=!0),b(),c.updateElevation(!0,m),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(c),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(n){this._findCoveringTileCache[n]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const n=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==n.efficiency&&a.warnOnce(`Terrain render cache efficiency is not optimal (${n.efficiency}%) and performance\n may be affected negatively, consider placing all background, fill and line layers before layer\n with id '${n.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(n){n.coord&&"source"===n.dataType?this._clearRenderCacheForTile(n.sourceCacheId,n.coord):"style"===n.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const n in this._style._sourceCaches)this._style._sourceCaches[n].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(n=>n.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const n=2*this.proxySourceCache.getSource().tileSize;return[n,n]}set useVertexMorphing(n){this._useVertexMorphing=n}updateTileBinding(n){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const c=this.proxySourceCache,m=this.painter.transform;this._initializing&&(this._initializing=0===m._centerAltitude&&-1===this.getAtPointOrZero(a.MercatorCoordinate.fromLngLat(m.center),-1),this._emptyDEMTextureDirty=!this._initializing);const v=this.proxyCoords=c.getIds().map(N=>{const Z=c.getTileByID(N).tileID;return Z.projMatrix=m.calculateProjMatrix(Z.toUnwrapped()),Z});(function(N,Z){const $=Z.transform.pointCoordinate(Z.transform.getCameraPoint()),re=new a.Point($.x,$.y);N.sort((Re,Fe)=>{if(Fe.overscaledZ-Re.overscaledZ)return Fe.overscaledZ-Re.overscaledZ;const et=new a.Point(Re.canonical.x+(1<{this.proxyToSource[N.key]={}}),this.terrainTileForTile={};const I=this._style._sourceCaches;for(const N in I){const Z=I[N];if(!Z.used||(Z!==this.sourceCache&&this.resetTileLookupCache(Z.id),this._setupProxiedCoordsForOrtho(Z,n[N],b),Z.usedForTerrain))continue;const $=n[N];Z.getSource().reparseOverscaled&&this._assignTerrainTiles($)}this.proxiedCoords[c.id]=v.map(N=>new Ya(N,N.key,this.orthoMatrix)),this._assignTerrainTiles(v),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(b),this.renderingToTexture=!1,this._updateTimestamp=a.exported.now();const M={};this._visibleDemTiles=[];for(const N of this.proxyCoords){const Z=this.terrainTileForTile[N.key];if(!Z)continue;const $=Z.tileID.key;$ in M||(this._visibleDemTiles.push(Z),M[$]=$)}}_assignTerrainTiles(n){this._initializing||n.forEach(c=>{if(this.terrainTileForTile[c.key])return;const m=this._findTileCoveringTileID(c,this.sourceCache);m&&(this.terrainTileForTile[c.key]=m)})}_prepareDEMTextures(){const n=this.painter.context,c=n.gl;for(const m in this.terrainTileForTile){const v=this.terrainTileForTile[m],b=v.dem;!b||v.demTexture&&!v.needsDEMTextureUpload||(n.activeTexture.set(c.TEXTURE1),Ga(this.painter,v,b))}}_prepareDemTileUniforms(n,c,m,v){if(!c||null==c.demTexture)return!1;const b=n.tileID.canonical,I=Math.pow(2,c.tileID.canonical.z-b.z),M=v||"";return m[`u_dem_tl${M}`]=[b.x*I%1,b.y*I%1],m[`u_dem_scale${M}`]=I,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const n=this.painter.context,c=n.gl;if(!this._emptyDepthBufferTexture){const m=new a.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new a.Texture(n,m,c.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let n=0;const c=this._visibleDemTiles.reduce((m,v)=>{if(!v.dem)return m;const b=v.dem.tree.minimums[0];return b>0&&n++,m+b},0);return n?c/n:0}_updateEmptyDEMTexture(){const n=this.painter.context,c=n.gl;n.activeTexture.set(c.TEXTURE2);const m=this._getLoadedAreaMinimum(),v=new a.RGBAImage({width:1,height:1},new Uint8Array(a.DEMData.pack(m,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let b=this._emptyDEMTexture;return b?b.update(v,{premultiply:!1}):b=this._emptyDEMTexture=new a.Texture(n,v,c.RGBA,{premultiply:!1}),b}setupElevationDraw(n,c,m){const v=this.painter.context,b=v.gl,I=(M=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:a.DEMData.getUnpackVector(M),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var M;I.u_dem_size=this.sourceCache.getSource().tileSize,I.u_exaggeration=this.exaggeration();let N=null,Z=null,$=1;if(m&&m.morphing&&this._useVertexMorphing){const re=m.morphing.srcDemTile,Re=m.morphing.dstDemTile;$=m.morphing.phase,re&&Re&&(this._prepareDemTileUniforms(n,re,I,"_prev")&&(Z=re),this._prepareDemTileUniforms(n,Re,I)&&(N=Re))}if(Z&&N?(v.activeTexture.set(b.TEXTURE2),N.demTexture.bind(b.NEAREST,b.CLAMP_TO_EDGE,b.NEAREST),v.activeTexture.set(b.TEXTURE4),Z.demTexture.bind(b.NEAREST,b.CLAMP_TO_EDGE,b.NEAREST),I.u_dem_lerp=$):(N=this.terrainTileForTile[n.tileID.key],v.activeTexture.set(b.TEXTURE2),(this._prepareDemTileUniforms(n,N,I)?N.demTexture:this.emptyDEMTexture).bind(b.NEAREST,b.CLAMP_TO_EDGE)),v.activeTexture.set(b.TEXTURE3),m&&m.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(b.NEAREST,b.CLAMP_TO_EDGE),this._depthFBO&&(I.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(b.NEAREST,b.CLAMP_TO_EDGE),I.u_depth_size_inv=[1,1]),m&&m.useMeterToDem&&N){const re=(1<{if(ce===Zn)return;const An=[Sa[Zn],"PROJECTION_GLOBE_VIEW"];gt&&An.push("CUSTOM_ANTIALIASING"),ln&&An.push(Sa[We]),nt=Z.useProgram("globeRaster",null,An),ce=Zn},Ft=Z.colorModeForRenderPass(),Rt=new a.DepthMode(Qe.LEQUAL,a.DepthMode.ReadWrite,Z.depthRangeFor3D);bo.update(Fe);const qt=a.calculateGlobeMercatorMatrix(pt),Wt=[a.mercatorXfromLng(pt.center.lng),a.mercatorYfromLat(pt.center.lat)],an=We?[!1,!0]:[!1],Yn=Z.globeSharedBuffers,tn=[pt.width*a.exported.devicePixelRatio,pt.height*a.exported.devicePixelRatio],Pn=Float32Array.from(pt.globeMatrix),dn={useDenormalizedUpVectorScale:!0};if(an.forEach(Zn=>{const ln=Z.transform,An=ia(ln.zoom)*$.exaggeration();ce=-1;const Qn=Zn?Qe.LINES:Qe.TRIANGLES;for(const jn of Re){const ei=re.getTile(jn),Ai=a.StencilMode.disabled,Ji=$.prevTerrainTileForTile[jn.key],wi=$.terrainTileForTile[jn.key];js(Ji,wi)&&bo.newMorphing(jn.key,Ji,wi,Fe,250),et.activeTexture.set(Qe.TEXTURE0),ei.texture.bind(Qe.LINEAR,Qe.CLAMP_TO_EDGE);const Si=bo.getMorphValuesForProxy(jn.key),fr=Si?1:0;Si&&a.extend$1(dn,{morphing:{srcDemTile:Si.from,dstDemTile:Si.to,phase:a.easeCubicInOut(Si.phase)}});const tr=a.tileCornersToBounds(jn.canonical),Di=a.getLatitudinalLod(tr.getCenter().lat),Dr=a.getGridMatrix(jn.canonical,tr,Di,ln.worldSize/ln._pixelsPerMercatorPixel),Qr=a.globeNormalizeECEF(a.globeTileBounds(jn.canonical)),Vr=Ha(ln.projMatrix,Pn,qt,Qr,a.globeToMercatorTransition(ln.zoom),Wt,ln.frustumCorners.TL,ln.frustumCorners.TR,ln.frustumCorners.BR,ln.frustumCorners.BL,ln.globeCenterInViewSpace,ln.globeRadius,tn,An,Dr);if(Pt(fr,Zn),$.setupElevationDraw(ei,nt,dn),Z.prepareDrawProgram(et,nt,jn.toUnwrapped()),Yn){const[$r,gs,oo]=Zn?Yn.getWirefameBuffers(Z.context,Di):Yn.getGridBuffers(Di,0!==An);nt.draw(et,Qn,Rt,Ai,Ft,a.CullFaceMode.backCCW,Vr,"globe_raster",$r,gs,oo)}}}),Yn){const Zn=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];gt&&Zn.push("CUSTOM_ANTIALIASING"),nt=Z.useProgram("globeRaster",null,Zn);for(const ln of Re){const{x:An,y:Qn,z:jn}=ln.canonical,ei=0===Qn,Ai=Qn===(1<Vr.draw(et,Qe.TRIANGLES,Rt,a.StencilMode.disabled,Ft,a.CullFaceMode.disabled,Ha(pt.projMatrix,Di,Di,Dr,0,Wt,pt.frustumCorners.TL,pt.frustumCorners.TR,pt.frustumCorners.BR,pt.frustumCorners.BL,pt.globeCenterInViewSpace,pt.globeRadius,tn,0),"globe_pole_raster",$r,Si,fr);$.setupElevationDraw(tr,nt,dn),Z.prepareDrawProgram(et,nt,ln.toUnwrapped()),ei&&Qr(nt,Ji),Ai&&(Di=a.scale(a.create(),Di,[1,-1,1]),Qr(nt,wi))}}}}(v,b,I,M,N);else{const Z=v.context,$=Z.gl;let re,Re;const Fe=v.options.showTerrainWireframe?2:0,et=(pt,gt)=>{if(Re===pt)return;const Pt=[Sa[pt]];gt&&Pt.push(Sa[Fe]),re=v.useProgram("terrainRaster",null,Pt),Re=pt},Qe=v.colorModeForRenderPass(),nt=new a.DepthMode($.LEQUAL,a.DepthMode.ReadWrite,v.depthRangeFor3D);bo.update(N);const ce=v.transform,We=ia(ce.zoom)*b.exaggeration();(Fe?[!1,!0]:[!1]).forEach(pt=>{Re=-1;const gt=pt?$.LINES:$.TRIANGLES,[Pt,Ft]=pt?b.getWirefameBuffer():[b.gridIndexBuffer,b.gridSegments];for(const Rt of M){const qt=I.getTile(Rt),Wt=a.StencilMode.disabled,an=b.prevTerrainTileForTile[Rt.key],Yn=b.terrainTileForTile[Rt.key];js(an,Yn)&&bo.newMorphing(Rt.key,an,Yn,N,250),Z.activeTexture.set($.TEXTURE0),qt.texture.bind($.LINEAR,$.CLAMP_TO_EDGE,$.LINEAR_MIPMAP_NEAREST);const tn=bo.getMorphValuesForProxy(Rt.key),Pn=tn?1:0;let dn;tn&&(dn={morphing:{srcDemTile:tn.from,dstDemTile:tn.to,phase:a.easeCubicInOut(tn.phase)}});const Zn=pa(Rt.projMatrix,Ol(Rt.canonical,ce.renderWorldCopies)?We/10:We);et(Pn,pt),b.setupElevationDraw(qt,re,dn),v.prepareDrawProgram(Z,re,Rt.toUnwrapped()),re.draw(Z,gt,nt,Wt,Qe,a.CullFaceMode.backCCW,Zn,"terrain_raster",b.gridBuffer,Pt,Ft)}})}}(c,this,this.proxySourceCache,n,this._updateTimestamp),this.renderingToTexture=!0,c.gpuTimingDeferredRenderEnd(),n.splice(0,n.length))}renderBatch(n){if(0===this._drapedRenderBatches.length)return n+1;this.renderingToTexture=!0;const c=this.painter,m=this.painter.context,v=this.proxySourceCache,b=this.proxiedCoords[v.id],I=this._drapedRenderBatches.shift(),M=[],N=c.style.order;let Z=0;for(const $ of b){const re=v.getTileByID($.proxyTileKey),Re=v.proxyCachedFBO[$.key]?v.proxyCachedFBO[$.key][n]:void 0,Fe=void 0!==Re?v.renderCache[Re]:this.pool[Z++],et=void 0!==Re;if(re.texture=Fe.tex,et&&!Fe.dirty){M.push(re.tileID);continue}let Qe;m.bindFramebuffer.set(Fe.fb.framebuffer),this.renderedToTile=!1,Fe.dirty&&(m.clear({color:a.Color.transparent,stencil:0}),Fe.dirty=!1);for(let nt=I.start;nt<=I.end;++nt){const ce=c.style._layers[N[nt]];if(ce.isHidden(c.transform.zoom))continue;const We=c.style._getLayerSourceCache(ce),pt=We?this.proxyToSource[$.key][We.id]:[$];if(!pt)continue;const gt=pt;m.viewport.set([0,0,Fe.fb.width,Fe.fb.height]),Qe!==(We?We.id:null)&&(this._setupStencil(Fe,pt,ce,We),Qe=We?We.id:null),c.renderLayer(c,We,ce,gt)}this.renderedToTile?(Fe.dirty=!0,M.push(re.tileID)):et||--Z,5===Z&&(Z=0,this.renderToBackBuffer(M))}return this.renderToBackBuffer(M),this.renderingToTexture=!1,m.bindFramebuffer.set(null),m.viewport.set([0,0,c.width,c.height]),I.end+1}postRender(){}renderCacheEfficiency(n){const c=n.order.length;if(0===c)return{efficiency:100};let m,v=0,b=0,I=!1;for(let M=0;Mc.dem).forEach(c=>{n=Math.min(n,c.dem.tree.minimums[0])}),0===n?n:(n-30)*this._exaggeration}raycast(n,c,m){if(!this._visibleDemTiles)return null;const v=this._visibleDemTiles.filter(b=>b.dem).map(b=>{const I=b.tileID,M=1<(null!==b.t?b.t:Number.MAX_VALUE)-(null!==I.t?I.t:Number.MAX_VALUE));for(const b of v){if(null==b.t)return null;const I=b.tile.dem.tree.raycast(b.minx,b.miny,b.maxx,b.maxy,n,c,m);if(null!=I)return I}return null}_createFBO(){const n=this.painter.context,c=n.gl,m=this.drapeBufferSize;n.activeTexture.set(c.TEXTURE0);const v=new a.Texture(n,{width:m[0],height:m[1],data:null},c.RGBA);v.bind(c.LINEAR,c.CLAMP_TO_EDGE);const b=n.createFramebuffer(m[0],m[1],!1);return b.colorAttachment.set(v.texture),b.depthAttachment=new Et(n,b.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=n.createRenderbuffer(n.gl.DEPTH_STENCIL,m[0],m[1]),this._stencilRef=0,b.depthAttachment.set(this._sharedDepthStencil),n.clear({stencil:0})):b.depthAttachment.set(this._sharedDepthStencil),n.extTextureFilterAnisotropic&&!n.extTextureFilterAnisotropicForceOff&&c.texParameterf(c.TEXTURE_2D,n.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,n.extTextureFilterAnisotropicMax),{fb:b,tex:v,dirty:!1}}_initFBOPool(){for(;this.pool.length{const c=this._style._layers[n],m=c.isHidden(this.painter.transform.zoom);return"custom"===c.type?!m&&c.shouldRedrape():!m&&c.hasTransition()})}_clearLineLayersFromRenderCache(){let n=!1;for(const m of this._style._getSources())if(m instanceof mn){n=!0;break}if(!n)return;const c={};for(let m=0;mc.renderCachePool.length){const I=Object.values(c.proxyCachedFBO);c.proxyCachedFBO={};for(let M=0;M=0;I--){const M=m[I];if(c.getTileByID(M.key),void 0!==c.proxyCachedFBO[M.key]){const N=n[M.key],Z=this.proxyToSource[M.key];let $=0;for(const re in Z){const Re=Z[re],Fe=N[re];if(!Fe||Fe.length!==Re.length||Re.some((et,Qe)=>et!==Fe[Qe]||v[re]&&v[re].hasOwnProperty(et.key))){$=-1;break}++$}for(const re in c.proxyCachedFBO[M.key])c.renderCache[c.proxyCachedFBO[M.key][re]].dirty=$<0||$!==Object.values(N).length}}const b=[...this._drapedRenderBatches];b.sort((I,M)=>M.end-M.start-(I.end-I.start));for(const I of b)for(const M of m){if(c.proxyCachedFBO[M.key])continue;let N=c.renderCachePool.pop();void 0===N&&c.renderCache.length<50&&(N=c.renderCache.length,c.renderCache.push(this._createFBO())),void 0!==N&&(c.proxyCachedFBO[M.key]={},c.proxyCachedFBO[M.key][I.start]=N,c.renderCache[N].dirty=!0)}this._tilesDirty={}}_setupStencil(n,c,m,v){if(!v||!this._sourceTilesOverlap[v.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const b=this.painter.context,I=b.gl;if(c.length<=1)return void(this._overlapStencilType=!1);let M;if(m.isTileClipped())M=c.length,this._overlapStencilMode.test={func:I.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(c[0].overscaledZ>c[c.length-1].overscaledZ))return void(this._overlapStencilType=!1);M=1,this._overlapStencilMode.test={func:I.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+M>255&&(b.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=M,this._overlapStencilMode.ref=this._stencilRef,m.isTileClipped()&&this._renderTileClippingMasks(c,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(n){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[n.key]),this._overlapStencilMode):a.StencilMode.disabled}_renderTileClippingMasks(n,c){const m=this.painter,v=this.painter.context,b=v.gl;m._tileClippingMaskIDs={},v.setColorMode(a.ColorMode.disabled),v.setDepthMode(a.DepthMode.disabled);const I=m.useProgram("clippingMask");for(const M of n){const N=m._tileClippingMaskIDs[M.key]=--c;I.draw(v,b.TRIANGLES,a.DepthMode.disabled,new a.StencilMode({func:b.ALWAYS,mask:0},N,255,b.KEEP,b.KEEP,b.REPLACE),a.ColorMode.disabled,a.CullFaceMode.disabled,Wa(M.projMatrix),"$clipping",m.tileExtentBuffer,m.quadTriangleIndexBuffer,m.tileExtentSegments)}}pointCoordinate(n){const c=this.painter.transform;if(n.x<0||n.x>c.width||n.y<0||n.y>c.height)return null;const m=[n.x,n.y,1,1];a.transformMat4$1(m,m,c.pixelMatrixInverse),a.scale$1(m,m,1/m[3]),m[0]/=c.worldSize,m[1]/=c.worldSize;const v=c._camera.position,b=a.mercatorZfromAltitude(1,c.center.lat),I=[v[0],v[1],v[2]/b,0],M=a.subtract([],m.slice(0,3),I);a.normalize(M,M);const N=this.raycast(I,M,this._exaggeration);return null!==N&&N?(a.scaleAndAdd(I,I,M,N),I[3]=I[2],I[2]*=b,I):null}drawDepth(){const n=this.painter,c=n.context,m=this.proxySourceCache,v=Math.ceil(n.width),b=Math.ceil(n.height);if(!this._depthFBO||this._depthFBO.width===v&&this._depthFBO.height===b||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const I=c.gl,M=c.createFramebuffer(v,b,!0);c.activeTexture.set(I.TEXTURE0);const N=new a.Texture(c,{width:v,height:b,data:null},I.RGBA);N.bind(I.NEAREST,I.CLAMP_TO_EDGE),M.colorAttachment.set(N.texture);const Z=c.createRenderbuffer(c.gl.DEPTH_COMPONENT16,v,b);M.depthAttachment.set(Z),this._depthFBO=M,this._depthTexture=N}c.bindFramebuffer.set(this._depthFBO.framebuffer),c.viewport.set([0,0,v,b]),function(I,M,N,Z){if("globe"===I.transform.projection.name)return;const $=I.context,re=$.gl;$.clear({depth:1});const Re=I.useProgram("terrainDepth"),Fe=new a.DepthMode(re.LESS,a.DepthMode.ReadWrite,I.depthRangeFor3D);for(const et of Z){const Qe=N.getTile(et),nt=pa(et.projMatrix,0);M.setupElevationDraw(Qe,Re),Re.draw($,re.TRIANGLES,Fe,a.StencilMode.disabled,a.ColorMode.unblended,a.CullFaceMode.backCCW,nt,"terrain_depth",M.gridBuffer,M.gridIndexBuffer,M.gridNoSkirtSegments)}}(n,this,m,this.proxyCoords)}_setupProxiedCoordsForOrtho(n,c,m){if(n.getSource()instanceof G)return this._setupProxiedCoordsForImageSource(n,c,m);this._findCoveringTileCache[n.id]=this._findCoveringTileCache[n.id]||{};const v=this.proxiedCoords[n.id]=[],b=this.proxyCoords;for(let M=0;M($.min.x=Math.min($.min.x,re.x-M.x),$.min.y=Math.min($.min.y,re.y-M.y),$.max.x=Math.max($.max.x,re.x-M.x),$.max.y=Math.max($.max.y,re.y-M.y),$),{min:new a.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new a.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),Z=($,re)=>{const Re=$.wrap+$.canonical.x/(1<<$.canonical.z),Fe=$.canonical.y/(1<<$.canonical.z),et=a.EXTENT/(1<<$.canonical.z),Qe=re.wrap+re.canonical.x/(1<Qe+N.max.x||Fe+etnt+N.max.y};for(let $=0;$I.key===c.tileID.key);if(b)return b}if(c.tileID.key!==n.key){const b=n.canonical.z-c.tileID.canonical.z;let I,M,N;v=a.create();const Z=c.tileID.wrap-n.wrap<0?(I=a.EXTENT>>b,M=I*((c.tileID.canonical.x<=re){const Re=n.canonical.z-re;c.getSource().reparseOverscaled?(M=Math.max(n.canonical.z+2,c.transform.tileZoom),I=new a.OverscaledTileID(M,n.wrap,re,n.canonical.x>>Re,n.canonical.y>>Re)):0!==Re&&(M=re,I=new a.OverscaledTileID(M,n.wrap,re,n.canonical.x>>Re,n.canonical.y>>Re))}I.key!==n.key&&(Z.push(I.key),m=c.getTile(I))}const $=re=>{Z.forEach(Re=>{v[Re]=re}),Z.length=0};for(M-=1;M>=N&&(!m||!m.hasData());M--){m&&$(m.tileID.key);const re=I.calculateScaledKey(M);if(m=c.getTileByID(re),m&&m.hasData())break;const Re=v[re];if(null===Re)break;void 0===Re?Z.push(re):m=c.getTileByID(Re)}return $(m?m.tileID.key:null),m&&m.hasData()?m:null}findDEMTileFor(n){return this.enabled?this._findTileCoveringTileID(n,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(n,c){let m=this._tilesDirty[n];m||(m=this._tilesDirty[n]={}),m[c.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const n=function(c){let m=0;const v=new a.StructArrayLayout2ui4,b=131;for(let I=1;I<129;I++){for(let M=1;M<129;M++)m=I*b+M,v.emplaceBack(m,m+1),v.emplaceBack(m,m+b),v.emplaceBack(m+1,m+b),128===I&&v.emplaceBack(m+b,m+b+1);v.emplaceBack(m+1,m+1+b)}return v}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(n),this.wireframeSegments=a.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,n.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class _i{static cacheKey(n,c,m,v){let b=`${c}${v?v.cacheKey:""}`;for(const I of m)n.usedDefines.includes(I)&&(b+=`/${I}`);return b}constructor(n,c,m,v,b,I){const M=n.gl;this.program=M.createProgram();const N=function(ce){const We=[];for(let pt=0;pt`#define ${ce}`));const Re=n.isWebGL2?"#version 300 es\n":"",Fe=Re+re.concat(n.extStandardDerivatives&&0===Re.length?"#extension GL_OES_standard_derivatives : enable\n".concat(Za):Za,Za,Us,na.fragmentSource,ha.fragmentSource,m.fragmentSource).join("\n"),et=Re+re.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",Us,na.vertexSource,ha.vertexSource,ns.vertexSource,m.vertexSource).join("\n"),Qe=M.createShader(M.FRAGMENT_SHADER);if(M.isContextLost())return void(this.failedToCreate=!0);M.shaderSource(Qe,Fe),M.compileShader(Qe),M.attachShader(this.program,Qe);const nt=M.createShader(M.VERTEX_SHADER);if(M.isContextLost())this.failedToCreate=!0;else{M.shaderSource(nt,et),M.compileShader(nt),M.attachShader(this.program,nt),this.attributes={},this.numAttributes=$.length;for(let ce=0;ce({u_tile_tl_up:new a.Uniform3f(ce),u_tile_tr_up:new a.Uniform3f(ce),u_tile_br_up:new a.Uniform3f(ce),u_tile_bl_up:new a.Uniform3f(ce),u_tile_up_scale:new a.Uniform1f(ce)}))(n)),I.includes("FOG")&&(this.fogUniforms=(ce=>({u_fog_matrix:new a.UniformMatrix4f(ce),u_fog_range:new a.Uniform2f(ce),u_fog_color:new a.Uniform4f(ce),u_fog_horizon_blend:new a.Uniform1f(ce),u_fog_temporal_offset:new a.Uniform1f(ce),u_frustum_tl:new a.Uniform3f(ce),u_frustum_tr:new a.Uniform3f(ce),u_frustum_br:new a.Uniform3f(ce),u_frustum_bl:new a.Uniform3f(ce),u_globe_pos:new a.Uniform3f(ce),u_globe_radius:new a.Uniform1f(ce),u_globe_transition:new a.Uniform1f(ce),u_is_globe:new a.Uniform1i(ce),u_viewport:new a.Uniform2f(ce)}))(n))}var ce}setTerrainUniformValues(n,c){if(!this.terrainUniforms)return;const m=this.terrainUniforms;if(!this.failedToCreate){n.program.set(this.program);for(const v in c)m[v]&&m[v].set(this.program,v,c[v])}}setGlobeUniformValues(n,c){if(!this.globeUniforms)return;const m=this.globeUniforms;if(!this.failedToCreate){n.program.set(this.program);for(const v in c)m[v]&&m[v].set(this.program,v,c[v])}}setFogUniformValues(n,c){if(!this.fogUniforms)return;const m=this.fogUniforms;if(!this.failedToCreate){n.program.set(this.program);for(const v in c)m[v].set(this.program,v,c[v])}}draw(n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe){const nt=n.gl;if(this.failedToCreate)return;n.program.set(this.program),n.setDepthMode(m),n.setStencilMode(v),n.setColorMode(b),n.setCullFace(I);for(const We of Object.keys(this.fixedUniforms))this.fixedUniforms[We].set(this.program,We,M[We]);et&&et.setUniforms(this.program,n,this.binderUniforms,Re,{zoom:Fe});const ce={[nt.LINES]:2,[nt.TRIANGLES]:3,[nt.LINE_STRIP]:1}[c];for(const We of re.get()){const pt=We.vaos||(We.vaos={});(pt[N]||(pt[N]=new Sl)).bind(n,this,Z,et?et.getPaintVertexBuffers():[],$,We.vertexOffset,Qe||[]),nt.drawElements(c,We.primitiveLength*ce,nt.UNSIGNED_SHORT,We.primitiveOffset*ce*2)}}}function Br(d,n){const c=Math.pow(2,n.tileID.overscaledZ),m=n.tileSize*Math.pow(2,d.transform.tileZoom)/c,v=m*(n.tileID.canonical.x+n.tileID.wrap*c),b=m*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_tile_units_to_pixels:1/xn(n,1,d.transform.tileZoom),u_pixel_coord_upper:[v>>16,b>>16],u_pixel_coord_lower:[65535&v,65535&b]}}const Ao=a.create(),le=(d,n,c,m,v,b,I,M,N,Z,$)=>{const re=n.style.light,Re=re.properties.get("position"),Fe=[Re.x,Re.y,Re.z],et=a.create$1();"viewport"===re.properties.get("anchor")&&(a.fromRotation(et,-n.transform.angle),a.transformMat3(Fe,Fe,et));const Qe=re.properties.get("color"),nt=n.transform,ce={u_matrix:d,u_lightpos:Fe,u_lightintensity:re.properties.get("intensity"),u_lightcolor:[Qe.r,Qe.g,Qe.b],u_vertical_gradient:+c,u_opacity:m,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Ao,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:v,u_edge_radius:b};return"globe"===nt.projection.name&&(ce.u_tile_id=[I.canonical.x,I.canonical.y,1<{const Re=le(d,n,c,m,v,b,I,N,Z,$,re),Fe={u_height_factor:-Math.pow(2,I.overscaledZ)/M.tileSize/8};return a.extend(Re,Br(n,M),Fe)},W=d=>({u_matrix:d}),He=(d,n,c)=>a.extend(W(d),Br(n,c)),zt=(d,n)=>({u_matrix:d,u_world:n}),vi=(d,n,c,m)=>a.extend(He(d,n,c),{u_world:m}),dr=a.create(),wr=(d,n,c,m,v,b)=>{const I=d.transform,M="globe"===I.projection.name;let N;if("map"===b.paint.get("circle-pitch-alignment"))if(M){const $=a.globePixelsToTileUnits(I.zoom,n.canonical)*I._pixelsPerMercatorPixel;N=Float32Array.from([$,0,0,$])}else N=I.calculatePixelsToTileUnitsMatrix(c);else N=new Float32Array([I.pixelsToGLUnits[0],0,0,I.pixelsToGLUnits[1]]);const Z={u_camera_to_center_distance:I.cameraToCenterDistance,u_matrix:d.translatePosMatrix(n.projMatrix,c,b.paint.get("circle-translate"),b.paint.get("circle-translate-anchor")),u_device_pixel_ratio:a.exported.devicePixelRatio,u_extrude_scale:N,u_inv_rot_matrix:dr,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(M){Z.u_inv_rot_matrix=m,Z.u_merc_center=v,Z.u_tile_id=[n.canonical.x,n.canonical.y,1<{const n=[];return"map"===d.paint.get("circle-pitch-alignment")&&n.push("PITCH_WITH_MAP"),"map"===d.paint.get("circle-pitch-scale")&&n.push("SCALE_WITH_MAP"),n},Ni=(d,n,c,m)=>{const v=a.EXTENT/c.tileSize;return{u_matrix:d,u_camera_to_center_distance:n.getCameraToCenterDistance(m),u_extrude_scale:[n.pixelsToGLUnits[0]/v,n.pixelsToGLUnits[1]/v]}},Jr=(d,n,c=1)=>({u_matrix:d,u_color:n,u_overlay:0,u_overlay_scale:c}),us=a.create(),wo=(d,n,c,m,v,b,I)=>{const M=d.transform,N="globe"===M.projection.name,Z=N?a.globePixelsToTileUnits(M.zoom,n.canonical)*M._pixelsPerMercatorPixel:xn(c,1,b),$={u_matrix:n.projMatrix,u_extrude_scale:Z,u_intensity:I,u_inv_rot_matrix:us,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(N){$.u_inv_rot_matrix=m,$.u_merc_center=v,$.u_tile_id=[n.canonical.x,n.canonical.y,1<{const M=d.transform,N=M.calculatePixelsToTileUnitsMatrix(n);return{u_matrix:Vo(d,n,c,m),u_pixels_to_tile_units:N,u_device_pixel_ratio:b,u_units_to_pixels:[1/M.pixelsToGLUnits[0],1/M.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:v,u_texsize:Cs(c)?n.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Ar(n,d.transform),u_alpha_discard_threshold:0,u_trim_offset:I}},ra=(d,n,c,m,v)=>{const b=d.transform;return{u_matrix:Vo(d,n,c,m),u_texsize:n.imageAtlasTexture.size,u_pixels_to_tile_units:b.calculatePixelsToTileUnitsMatrix(n),u_device_pixel_ratio:v,u_image:0,u_tile_units_to_pixels:Ar(n,b),u_units_to_pixels:[1/b.pixelsToGLUnits[0],1/b.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Ar(d,n){return 1/xn(d,1,n.tileZoom)}function Vo(d,n,c,m){return d.translatePosMatrix(m||n.tileID.projMatrix,n,c.paint.get("line-translate"),c.paint.get("line-translate-anchor"))}function Cs(d){const n=d.paint.get("line-dasharray").value;return n.value||"constant"!==n.kind}const Yi=(d,n,c,m,v,b)=>{return{u_matrix:d,u_tl_parent:n,u_scale_parent:c,u_fade_t:m.mix,u_opacity:m.opacity*v.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:v.paint.get("raster-brightness-min"),u_brightness_high:v.paint.get("raster-brightness-max"),u_saturation_factor:(M=v.paint.get("raster-saturation"),M>0?1-1/(1.001-M):-M),u_contrast_factor:(I=v.paint.get("raster-contrast"),I>0?1/(1-I):1+I),u_spin_weights:Qo(v.paint.get("raster-hue-rotate")),u_perspective_transform:b};var I,M};function Qo(d){d*=Math.PI/180;const n=Math.sin(d),c=Math.cos(d);return[(2*c+1)/3,(-Math.sqrt(3)*n-c+1)/3,(Math.sqrt(3)*n-c+1)/3]}const Pa=a.create(),ds=(d,n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe)=>{const nt=v.transform,ce={u_is_size_zoom_constant:+("constant"===d||"source"===d),u_is_size_feature_constant:+("constant"===d||"camera"===d),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:nt.cameraToCenterDistance,u_rotate_symbol:+c,u_aspect_ratio:nt.width/nt.height,u_fade_change:v.options.fadeDuration?v.symbolFadeChange:1,u_matrix:b,u_label_plane_matrix:I,u_coord_matrix:M,u_is_text:+N,u_pitch_with_map:+m,u_texsize:Z,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Pa,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:Pa,u_up_vector:[0,-1,0]};return"globe"===Qe.name&&(ce.u_tile_id=[$.canonical.x,$.canonical.y,1<<$.canonical.z],ce.u_zoom_transition=re,ce.u_inv_rot_matrix=Fe,ce.u_merc_center=Re,ce.u_camera_forward=nt._camera.forward(),ce.u_ecef_origin=a.globeECEFOrigin(nt.globeMatrix,$.toUnwrapped()),ce.u_tile_matrix=Float32Array.from(nt.globeMatrix),ce.u_up_vector=et),ce},Xr=(d,n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe,nt)=>a.extend(ds(d,n,c,m,v,b,I,M,N,Z,re,Re,Fe,et,Qe,nt),{u_gamma_scale:m?v.transform.cameraToCenterDistance*Math.cos(v.terrain?0:v.transform._pitch):1,u_device_pixel_ratio:a.exported.devicePixelRatio,u_is_halo:+$}),Ja=(d,n,c,m,v,b,I,M,N,Z,$,re,Re,Fe,et,Qe)=>a.extend(Xr(d,n,c,m,v,b,I,M,!0,N,!0,$,re,Re,Fe,et,Qe),{u_texsize_icon:Z,u_texture_icon:1}),oa=(d,n,c)=>({u_matrix:d,u_opacity:n,u_color:c}),is=(d,n,c,m,v)=>a.extend(function(b,I,M){const N=I.imageManager.getPattern(b.toString()),{width:Z,height:$}=I.imageManager.getPixelSize(),re=Math.pow(2,M.tileID.overscaledZ),Re=M.tileSize*Math.pow(2,I.transform.tileZoom)/re,Fe=Re*(M.tileID.canonical.x+M.tileID.wrap*re),et=Re*M.tileID.canonical.y;return{u_image:0,u_pattern_tl:N.tl,u_pattern_br:N.br,u_texsize:[Z,$],u_pattern_size:N.displaySize,u_tile_units_to_pixels:1/xn(M,1,I.transform.tileZoom),u_pixel_coord_upper:[Fe>>16,et>>16],u_pixel_coord_lower:[65535&Fe,65535&et]}}(m,c,v),{u_matrix:d,u_opacity:n}),ga={fillExtrusion:d=>({u_matrix:new a.UniformMatrix4f(d),u_lightpos:new a.Uniform3f(d),u_lightintensity:new a.Uniform1f(d),u_lightcolor:new a.Uniform3f(d),u_vertical_gradient:new a.Uniform1f(d),u_opacity:new a.Uniform1f(d),u_edge_radius:new a.Uniform1f(d),u_ao:new a.Uniform2f(d),u_tile_id:new a.Uniform3f(d),u_zoom_transition:new a.Uniform1f(d),u_inv_rot_matrix:new a.UniformMatrix4f(d),u_merc_center:new a.Uniform2f(d),u_up_dir:new a.Uniform3f(d),u_height_lift:new a.Uniform1f(d)}),fillExtrusionPattern:d=>({u_matrix:new a.UniformMatrix4f(d),u_lightpos:new a.Uniform3f(d),u_lightintensity:new a.Uniform1f(d),u_lightcolor:new a.Uniform3f(d),u_vertical_gradient:new a.Uniform1f(d),u_height_factor:new a.Uniform1f(d),u_edge_radius:new a.Uniform1f(d),u_ao:new a.Uniform2f(d),u_tile_id:new a.Uniform3f(d),u_zoom_transition:new a.Uniform1f(d),u_inv_rot_matrix:new a.UniformMatrix4f(d),u_merc_center:new a.Uniform2f(d),u_up_dir:new a.Uniform3f(d),u_height_lift:new a.Uniform1f(d),u_image:new a.Uniform1i(d),u_texsize:new a.Uniform2f(d),u_pixel_coord_upper:new a.Uniform2f(d),u_pixel_coord_lower:new a.Uniform2f(d),u_tile_units_to_pixels:new a.Uniform1f(d),u_opacity:new a.Uniform1f(d)}),fill:d=>({u_matrix:new a.UniformMatrix4f(d)}),fillPattern:d=>({u_matrix:new a.UniformMatrix4f(d),u_image:new a.Uniform1i(d),u_texsize:new a.Uniform2f(d),u_pixel_coord_upper:new a.Uniform2f(d),u_pixel_coord_lower:new a.Uniform2f(d),u_tile_units_to_pixels:new a.Uniform1f(d)}),fillOutline:d=>({u_matrix:new a.UniformMatrix4f(d),u_world:new a.Uniform2f(d)}),fillOutlinePattern:d=>({u_matrix:new a.UniformMatrix4f(d),u_world:new a.Uniform2f(d),u_image:new a.Uniform1i(d),u_texsize:new a.Uniform2f(d),u_pixel_coord_upper:new a.Uniform2f(d),u_pixel_coord_lower:new a.Uniform2f(d),u_tile_units_to_pixels:new a.Uniform1f(d)}),circle:d=>({u_camera_to_center_distance:new a.Uniform1f(d),u_extrude_scale:new a.UniformMatrix2f(d),u_device_pixel_ratio:new a.Uniform1f(d),u_matrix:new a.UniformMatrix4f(d),u_inv_rot_matrix:new a.UniformMatrix4f(d),u_merc_center:new a.Uniform2f(d),u_tile_id:new a.Uniform3f(d),u_zoom_transition:new a.Uniform1f(d),u_up_dir:new a.Uniform3f(d)}),collisionBox:d=>({u_matrix:new a.UniformMatrix4f(d),u_camera_to_center_distance:new a.Uniform1f(d),u_extrude_scale:new a.Uniform2f(d)}),collisionCircle:d=>({u_matrix:new a.UniformMatrix4f(d),u_inv_matrix:new a.UniformMatrix4f(d),u_camera_to_center_distance:new a.Uniform1f(d),u_viewport_size:new a.Uniform2f(d)}),debug:d=>({u_color:new a.UniformColor(d),u_matrix:new a.UniformMatrix4f(d),u_overlay:new a.Uniform1i(d),u_overlay_scale:new a.Uniform1f(d)}),clippingMask:d=>({u_matrix:new a.UniformMatrix4f(d)}),heatmap:d=>({u_extrude_scale:new a.Uniform1f(d),u_intensity:new a.Uniform1f(d),u_matrix:new a.UniformMatrix4f(d),u_inv_rot_matrix:new a.UniformMatrix4f(d),u_merc_center:new a.Uniform2f(d),u_tile_id:new a.Uniform3f(d),u_zoom_transition:new a.Uniform1f(d),u_up_dir:new a.Uniform3f(d)}),heatmapTexture:d=>({u_image:new a.Uniform1i(d),u_color_ramp:new a.Uniform1i(d),u_opacity:new a.Uniform1f(d)}),hillshade:d=>({u_matrix:new a.UniformMatrix4f(d),u_image:new a.Uniform1i(d),u_latrange:new a.Uniform2f(d),u_light:new a.Uniform2f(d),u_shadow:new a.UniformColor(d),u_highlight:new a.UniformColor(d),u_accent:new a.UniformColor(d)}),hillshadePrepare:d=>({u_matrix:new a.UniformMatrix4f(d),u_image:new a.Uniform1i(d),u_dimension:new a.Uniform2f(d),u_zoom:new a.Uniform1f(d),u_unpack:new a.Uniform4f(d)}),line:d=>({u_matrix:new a.UniformMatrix4f(d),u_pixels_to_tile_units:new a.UniformMatrix2f(d),u_device_pixel_ratio:new a.Uniform1f(d),u_units_to_pixels:new a.Uniform2f(d),u_dash_image:new a.Uniform1i(d),u_gradient_image:new a.Uniform1i(d),u_image_height:new a.Uniform1f(d),u_texsize:new a.Uniform2f(d),u_tile_units_to_pixels:new a.Uniform1f(d),u_alpha_discard_threshold:new a.Uniform1f(d),u_trim_offset:new a.Uniform2f(d)}),linePattern:d=>({u_matrix:new a.UniformMatrix4f(d),u_texsize:new a.Uniform2f(d),u_pixels_to_tile_units:new a.UniformMatrix2f(d),u_device_pixel_ratio:new a.Uniform1f(d),u_image:new a.Uniform1i(d),u_units_to_pixels:new a.Uniform2f(d),u_tile_units_to_pixels:new a.Uniform1f(d),u_alpha_discard_threshold:new a.Uniform1f(d)}),raster:d=>({u_matrix:new a.UniformMatrix4f(d),u_tl_parent:new a.Uniform2f(d),u_scale_parent:new a.Uniform1f(d),u_fade_t:new a.Uniform1f(d),u_opacity:new a.Uniform1f(d),u_image0:new a.Uniform1i(d),u_image1:new a.Uniform1i(d),u_brightness_low:new a.Uniform1f(d),u_brightness_high:new a.Uniform1f(d),u_saturation_factor:new a.Uniform1f(d),u_contrast_factor:new a.Uniform1f(d),u_spin_weights:new a.Uniform3f(d),u_perspective_transform:new a.Uniform2f(d)}),symbolIcon:d=>({u_is_size_zoom_constant:new a.Uniform1i(d),u_is_size_feature_constant:new a.Uniform1i(d),u_size_t:new a.Uniform1f(d),u_size:new a.Uniform1f(d),u_camera_to_center_distance:new a.Uniform1f(d),u_rotate_symbol:new a.Uniform1i(d),u_aspect_ratio:new a.Uniform1f(d),u_fade_change:new a.Uniform1f(d),u_matrix:new a.UniformMatrix4f(d),u_label_plane_matrix:new a.UniformMatrix4f(d),u_coord_matrix:new a.UniformMatrix4f(d),u_is_text:new a.Uniform1i(d),u_pitch_with_map:new a.Uniform1i(d),u_texsize:new a.Uniform2f(d),u_tile_id:new a.Uniform3f(d),u_zoom_transition:new a.Uniform1f(d),u_inv_rot_matrix:new a.UniformMatrix4f(d),u_merc_center:new a.Uniform2f(d),u_camera_forward:new a.Uniform3f(d),u_tile_matrix:new a.UniformMatrix4f(d),u_up_vector:new a.Uniform3f(d),u_ecef_origin:new a.Uniform3f(d),u_texture:new a.Uniform1i(d)}),symbolSDF:d=>({u_is_size_zoom_constant:new a.Uniform1i(d),u_is_size_feature_constant:new a.Uniform1i(d),u_size_t:new a.Uniform1f(d),u_size:new a.Uniform1f(d),u_camera_to_center_distance:new a.Uniform1f(d),u_rotate_symbol:new a.Uniform1i(d),u_aspect_ratio:new a.Uniform1f(d),u_fade_change:new a.Uniform1f(d),u_matrix:new a.UniformMatrix4f(d),u_label_plane_matrix:new a.UniformMatrix4f(d),u_coord_matrix:new a.UniformMatrix4f(d),u_is_text:new a.Uniform1i(d),u_pitch_with_map:new a.Uniform1i(d),u_texsize:new a.Uniform2f(d),u_texture:new a.Uniform1i(d),u_gamma_scale:new a.Uniform1f(d),u_device_pixel_ratio:new a.Uniform1f(d),u_tile_id:new a.Uniform3f(d),u_zoom_transition:new a.Uniform1f(d),u_inv_rot_matrix:new a.UniformMatrix4f(d),u_merc_center:new a.Uniform2f(d),u_camera_forward:new a.Uniform3f(d),u_tile_matrix:new a.UniformMatrix4f(d),u_up_vector:new a.Uniform3f(d),u_ecef_origin:new a.Uniform3f(d),u_is_halo:new a.Uniform1i(d)}),symbolTextAndIcon:d=>({u_is_size_zoom_constant:new a.Uniform1i(d),u_is_size_feature_constant:new a.Uniform1i(d),u_size_t:new a.Uniform1f(d),u_size:new a.Uniform1f(d),u_camera_to_center_distance:new a.Uniform1f(d),u_rotate_symbol:new a.Uniform1i(d),u_aspect_ratio:new a.Uniform1f(d),u_fade_change:new a.Uniform1f(d),u_matrix:new a.UniformMatrix4f(d),u_label_plane_matrix:new a.UniformMatrix4f(d),u_coord_matrix:new a.UniformMatrix4f(d),u_is_text:new a.Uniform1i(d),u_pitch_with_map:new a.Uniform1i(d),u_texsize:new a.Uniform2f(d),u_texsize_icon:new a.Uniform2f(d),u_texture:new a.Uniform1i(d),u_texture_icon:new a.Uniform1i(d),u_gamma_scale:new a.Uniform1f(d),u_device_pixel_ratio:new a.Uniform1f(d),u_is_halo:new a.Uniform1i(d)}),background:d=>({u_matrix:new a.UniformMatrix4f(d),u_opacity:new a.Uniform1f(d),u_color:new a.UniformColor(d)}),backgroundPattern:d=>({u_matrix:new a.UniformMatrix4f(d),u_opacity:new a.Uniform1f(d),u_image:new a.Uniform1i(d),u_pattern_tl:new a.Uniform2f(d),u_pattern_br:new a.Uniform2f(d),u_texsize:new a.Uniform2f(d),u_pattern_size:new a.Uniform2f(d),u_pixel_coord_upper:new a.Uniform2f(d),u_pixel_coord_lower:new a.Uniform2f(d),u_tile_units_to_pixels:new a.Uniform1f(d)}),terrainRaster:fa,terrainDepth:fa,skybox:d=>({u_matrix:new a.UniformMatrix4f(d),u_sun_direction:new a.Uniform3f(d),u_cubemap:new a.Uniform1i(d),u_opacity:new a.Uniform1f(d),u_temporal_offset:new a.Uniform1f(d)}),skyboxGradient:d=>({u_matrix:new a.UniformMatrix4f(d),u_color_ramp:new a.Uniform1i(d),u_center_direction:new a.Uniform3f(d),u_radius:new a.Uniform1f(d),u_opacity:new a.Uniform1f(d),u_temporal_offset:new a.Uniform1f(d)}),skyboxCapture:d=>({u_matrix_3f:new a.UniformMatrix3f(d),u_sun_direction:new a.Uniform3f(d),u_sun_intensity:new a.Uniform1f(d),u_color_tint_r:new a.Uniform4f(d),u_color_tint_m:new a.Uniform4f(d),u_luminance:new a.Uniform1f(d)}),globeRaster:d=>({u_proj_matrix:new a.UniformMatrix4f(d),u_globe_matrix:new a.UniformMatrix4f(d),u_normalize_matrix:new a.UniformMatrix4f(d),u_merc_matrix:new a.UniformMatrix4f(d),u_zoom_transition:new a.Uniform1f(d),u_merc_center:new a.Uniform2f(d),u_image0:new a.Uniform1i(d),u_grid_matrix:new a.UniformMatrix3f(d),u_skirt_height:new a.Uniform1f(d),u_frustum_tl:new a.Uniform3f(d),u_frustum_tr:new a.Uniform3f(d),u_frustum_br:new a.Uniform3f(d),u_frustum_bl:new a.Uniform3f(d),u_globe_pos:new a.Uniform3f(d),u_globe_radius:new a.Uniform1f(d),u_viewport:new a.Uniform2f(d)}),globeAtmosphere:d=>({u_frustum_tl:new a.Uniform3f(d),u_frustum_tr:new a.Uniform3f(d),u_frustum_br:new a.Uniform3f(d),u_frustum_bl:new a.Uniform3f(d),u_horizon:new a.Uniform1f(d),u_transition:new a.Uniform1f(d),u_fadeout_range:new a.Uniform1f(d),u_color:new a.Uniform4f(d),u_high_color:new a.Uniform4f(d),u_space_color:new a.Uniform4f(d),u_star_intensity:new a.Uniform1f(d),u_star_density:new a.Uniform1f(d),u_star_size:new a.Uniform1f(d),u_temporal_offset:new a.Uniform1f(d),u_horizon_angle:new a.Uniform1f(d),u_rotation_matrix:new a.UniformMatrix4f(d)})};let sa;function Es(d,n,c,m,v,b,I){const M=d.context,N=M.gl,Z=d.transform,$=d.useProgram("collisionBox"),re=[];let Re=0,Fe=0;for(let gt=0;gt0){const tn=a.create(),Pn=Wt;a.mul(tn,Rt.placementInvProjMatrix,Z.glCoordMatrix),a.mul(tn,tn,Rt.placementViewportMatrix),re.push({circleArray:Yn,circleOffset:Fe,transform:Pn,invTransform:tn,projection:Rt.getProjection()}),Re+=Yn.length/4,Fe=Re}an&&(d.terrain&&d.terrain.setupElevationDraw(Ft,$),$.draw(M,N.LINES,a.DepthMode.disabled,a.StencilMode.disabled,d.colorModeForRenderPass(),a.CullFaceMode.disabled,Ni(Wt,Z,Ft,Rt.getProjection()),c.id,an.layoutVertexBuffer,an.indexBuffer,an.segments,null,Z.zoom,null,[an.collisionVertexBuffer,an.collisionVertexBufferExt]))}if(!I||!re.length)return;const et=d.useProgram("collisionCircle"),Qe=new a.StructArrayLayout2f1f2i16;Qe.resize(4*Re),Qe._trim();let nt=0;for(const gt of re)for(let Pt=0;Pt=0&&(et[gt.associatedIconIndex]={x:tn,y:Pn,z:dn,angle:jn})}else di(Rt,Re)}if($){Fe.clear();const pt=d.icon.placedSymbolArray;for(let gt=0;gttn.sortKey-Pn.sortKey);for(const tn of Wt){const Pn=tn.state;if(d.terrain&&d.terrain.setupElevationDraw(Pn.tile,Pn.program,{useDepthForOcclusion:!qt,labelPlaneMatrixInv:Pn.labelPlaneMatrixInv}),Re.activeTexture.set(Fe.TEXTURE0),Pn.atlasTexture.bind(Pn.atlasInterpolation,Fe.CLAMP_TO_EDGE),Pn.atlasTextureIcon&&(Re.activeTexture.set(Fe.TEXTURE1),Pn.atlasTextureIcon&&Pn.atlasTextureIcon.bind(Pn.atlasInterpolationIcon,Fe.CLAMP_TO_EDGE)),Pn.isSDF){const dn=Pn.uniformValues;Pn.hasHalo&&(dn.u_is_halo=1,Wo(Pn.buffers,tn.segments,c,d,Pn.program,Pt,$,re,dn)),dn.u_is_halo=0}Wo(Pn.buffers,tn.segments,c,d,Pn.program,Pt,$,re,Pn.uniformValues)}}function Wo(d,n,c,m,v,b,I,M,N){const Z=m.context,$=[d.dynamicLayoutVertexBuffer,d.opacityVertexBuffer,d.globeExtVertexBuffer];v.draw(Z,Z.gl.TRIANGLES,b,I,M,a.CullFaceMode.disabled,N,c.id,d.layoutVertexBuffer,d.indexBuffer,n,c.paint,m.transform.zoom,d.programConfigurations.get(c.id),$)}function gl(d,n,c,m,v,b,I){const M=d.context.gl,N=c.paint.get("fill-pattern"),Z=N&&N.constantOr(1);let $,re,Re,Fe,et;I?(re=Z&&!c.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",$=M.LINES):(re=Z?"fillPattern":"fill",$=M.TRIANGLES);for(const Qe of m){const nt=n.getTile(Qe);if(Z&&!nt.patternsLoaded())continue;const ce=nt.getBucket(c);if(!ce)continue;d.prepareDrawTile();const We=ce.programConfigurations.get(c.id),pt=d.useProgram(re,We);Z&&(d.context.activeTexture.set(M.TEXTURE0),nt.imageAtlasTexture.bind(M.LINEAR,M.CLAMP_TO_EDGE),We.updatePaintBuffers());const gt=N.constantOr(null);if(gt&&nt.imageAtlas){const Ft=nt.imageAtlas.patternPositions[gt.toString()];Ft&&We.setConstantPatternPositions(Ft)}const Pt=d.translatePosMatrix(Qe.projMatrix,nt,c.paint.get("fill-translate"),c.paint.get("fill-translate-anchor"));if(I){Fe=ce.indexBuffer2,et=ce.segments2;const Ft=d.terrain&&d.terrain.renderingToTexture?d.terrain.drapeBufferSize:[M.drawingBufferWidth,M.drawingBufferHeight];Re="fillOutlinePattern"===re&&Z?vi(Pt,d,nt,Ft):zt(Pt,Ft)}else Fe=ce.indexBuffer,et=ce.segments,Re=Z?He(Pt,d,nt):W(Pt);d.prepareDrawProgram(d.context,pt,Qe.toUnwrapped()),pt.draw(d.context,$,v,d.stencilModeForClipping(Qe),b,a.CullFaceMode.disabled,Re,c.id,ce.layoutVertexBuffer,Fe,et,c.paint,d.transform.zoom,We)}}function aa(d,n,c,m,v,b,I){const M=d.context,N=M.gl,Z=d.transform,$=c.paint.get("fill-extrusion-pattern"),re=$.constantOr(1),Re=c.paint.get("fill-extrusion-opacity"),Fe=[c.paint.get("fill-extrusion-ambient-occlusion-intensity"),c.paint.get("fill-extrusion-ambient-occlusion-radius")],et=c.layout.get("fill-extrusion-edge-radius"),Qe=et>0&&!c.paint.get("fill-extrusion-rounded-roof"),nt=Qe?0:et,ce="globe"===Z.projection.name?a.fillExtrusionHeightLift():0,We="globe"===Z.projection.name,pt=We?a.globeToMercatorTransition(Z.zoom):0,gt=[a.mercatorXfromLng(Z.center.lng),a.mercatorYfromLat(Z.center.lat)],Pt=[];We&&Pt.push("PROJECTION_GLOBE_VIEW"),Fe[0]>0&&Pt.push("FAUX_AO"),Qe&&Pt.push("ZERO_ROOF_RADIUS");for(const Ft of m){const Rt=n.getTile(Ft),qt=Rt.getBucket(c);if(!qt||qt.projection.name!==Z.projection.name)continue;const Wt=qt.programConfigurations.get(c.id),an=d.useProgram(re?"fillExtrusionPattern":"fillExtrusion",Wt,Pt);if(d.terrain){const An=d.terrain;if(d.style.terrainSetForDrapingOnly())An.setupElevationDraw(Rt,an,{useMeterToDem:!0});else{if(!qt.enableTerrain)continue;if(An.setupElevationDraw(Rt,an,{useMeterToDem:!0}),mo(M,n,Ft,qt,c,An),!qt.centroidVertexBuffer){const Qn=an.attributes.a_centroid_pos;void 0!==Qn&&N.vertexAttrib2f(Qn,0,0)}}}re&&(d.context.activeTexture.set(N.TEXTURE0),Rt.imageAtlasTexture.bind(N.LINEAR,N.CLAMP_TO_EDGE),Wt.updatePaintBuffers());const Yn=$.constantOr(null);if(Yn&&Rt.imageAtlas){const An=Rt.imageAtlas.patternPositions[Yn.toString()];An&&Wt.setConstantPatternPositions(An)}const tn=d.translatePosMatrix(Ft.projMatrix,Rt,c.paint.get("fill-extrusion-translate"),c.paint.get("fill-extrusion-translate-anchor")),Pn=Z.projection.createInversionMatrix(Z,Ft.canonical),dn=c.paint.get("fill-extrusion-vertical-gradient"),Zn=re?ue(tn,d,dn,Re,Fe,nt,Ft,Rt,ce,pt,gt,Pn):le(tn,d,dn,Re,Fe,nt,Ft,ce,pt,gt,Pn);d.prepareDrawProgram(M,an,Ft.toUnwrapped());const ln=[];d.terrain&&ln.push(qt.centroidVertexBuffer),We&&ln.push(qt.layoutVertexExtBuffer),an.draw(M,M.gl.TRIANGLES,v,b,I,a.CullFaceMode.backCCW,Zn,c.id,qt.layoutVertexBuffer,qt.indexBuffer,qt.segments,c.paint,d.transform.zoom,Wt,ln)}}function mo(d,n,c,m,v,b){const I=[ce=>{let We=ce.canonical.x-1,pt=ce.wrap;return We<0&&(We=(1<{let We=ce.canonical.x+1,pt=ce.wrap;return We===1<new a.OverscaledTileID(ce.overscaledZ,ce.wrap,ce.canonical.z,ce.canonical.x,(0===ce.canonical.y?1<new a.OverscaledTileID(ce.overscaledZ,ce.wrap,ce.canonical.z,ce.canonical.x,ce.canonical.y===(1<{const We=n.getSource().minzoom,pt=Pt=>{const Ft=n.getTileByID(Pt);if(Ft&&Ft.hasData())return Ft.getBucket(v)},gt=[0,-1,1];for(const Pt of gt){if(ce.overscaledZ+Pt(N[0]=Math.min(ce.min.y,We.min.y),N[1]=Math.max(ce.max.y,We.max.y),N[2]=a.EXTENT-We.min.x>ce.max.x?We.min.x-a.EXTENT:ce.max.x,N),$=(ce,We)=>(N[0]=Math.min(ce.min.x,We.min.x),N[1]=Math.max(ce.max.x,We.max.x),N[2]=a.EXTENT-We.min.y>ce.max.y?We.min.y-a.EXTENT:ce.max.y,N),re=[(ce,We)=>Z(ce,We),(ce,We)=>Z(We,ce),(ce,We)=>$(ce,We),(ce,We)=>$(We,ce)],Re=new a.Point(0,0);let Fe,et,Qe;const nt=(ce,We,pt,gt,Pt)=>{const Ft=[[gt?pt:ce,gt?ce:pt,0],[gt?pt:We,gt?We:pt,0]],Rt=Pt<0?a.EXTENT+Pt:Pt,qt=[gt?Rt:(ce+We)/2,gt?(ce+We)/2:Rt,0];return 0===pt&&Pt<0||0!==pt&&Pt>0?b.getForTilePoints(Qe,[qt],!0,et):Ft.push(qt),b.getForTilePoints(c,Ft,!0,Fe),Math.max(Ft[0][2],Ft[1][2],qt[2])/b.exaggeration()};for(let ce=0;ce<4;ce++){const We=(ce<2?1:5)-ce,pt=m.borders[ce];if(0===pt.length)continue;const gt=Qe=I[ce](c),Pt=M(gt);if(!(Pt&&Pt instanceof a.FillExtrusionBucket&&Pt.enableTerrain)||m.borderDoneWithNeighborZ[ce]===Pt.canonical.z&&Pt.borderDoneWithNeighborZ[We]===m.canonical.z||(et=b.findDEMTileFor(gt),!et||!et.dem))continue;if(!Fe){const Wt=b.findDEMTileFor(c);if(!Wt||!Wt.dem)return;Fe=Wt}const Ft=Pt.borders[We];let Rt=0;const qt=Pt.borderDoneWithNeighborZ[We]!==m.canonical.z;if(m.canonical.z===Pt.canonical.z){for(let Wt=0;WtYn[0]+3));)qt&&Pt.encodeCentroid(void 0,tn,!1),Rt++;if(tn&&RtYn[1]-3)&&(dn++,++Rt!==Ft.length);)tn=Pt.featuresOnBorder[Ft[Rt]];if(tn=Pt.featuresOnBorder[Ft[Pn]],an.intersectsCount()>1||tn.intersectsCount()>1||1!==dn){1!==dn&&(Rt=Pn),m.encodeCentroid(void 0,an,!1),qt&&Pt.encodeCentroid(void 0,tn,!1);continue}const Zn=re[ce](an,tn),ln=ce%2?a.EXTENT-1:0;Re.x=nt(Zn[0],Math.min(a.EXTENT-1,Zn[1]),ln,ce<2,Zn[2]),Re.y=0,m.encodeCentroid(Re,an,!1),qt&&Pt.encodeCentroid(Re,tn,!1)}else m.encodeCentroid(void 0,an,!1)}m.borderDoneWithNeighborZ[ce]=Pt.canonical.z,m.needsCentroidUpdate=!0,qt&&(Pt.borderDoneWithNeighborZ[We]=m.canonical.z,Pt.needsCentroidUpdate=!0)}else{for(const Wt of pt)m.encodeCentroid(void 0,m.featuresOnBorder[Wt],!1);if(qt){for(const Wt of Ft)Pt.encodeCentroid(void 0,Pt.featuresOnBorder[Wt],!1);Pt.borderDoneWithNeighborZ[We]=m.canonical.z,Pt.needsCentroidUpdate=!0}m.borderDoneWithNeighborZ[ce]=Pt.canonical.z,m.needsCentroidUpdate=!0}}(m.needsCentroidUpdate||!m.centroidVertexBuffer&&0!==m.centroidVertexArray.length)&&m.uploadCentroid(d)}const Ts=new a.Color(1,0,0,1),ko=new a.Color(0,1,0,1),go=new a.Color(0,0,1,1),bc=new a.Color(1,0,1,1),Xa=new a.Color(0,1,1,1);function ec(d,n,c){const m=d.context,v=d.transform,b=m.gl,I="globe"===v.projection.name,M=I?["PROJECTION_GLOBE_VIEW"]:null;let N=c.projMatrix;if(I&&a.globeToMercatorTransition(v.zoom)>0){const an=a.transitionTileAABBinECEF(c.canonical,v),Yn=a.globeDenormalizeECEF(an);N=a.multiply(new Float32Array(16),v.globeMatrix,Yn),a.multiply(N,v.projMatrix,N)}const Z=d.useProgram("debug",null,M),$=n.getTileByID(c.key);d.terrain&&d.terrain.setupElevationDraw($,Z);const re=a.DepthMode.disabled,Re=a.StencilMode.disabled,Fe=d.colorModeForRenderPass();m.activeTexture.set(b.TEXTURE0),d.emptyTexture.bind(b.LINEAR,b.CLAMP_TO_EDGE),I?$._makeGlobeTileDebugBuffers(d.context,v):$._makeDebugTileBoundsBuffers(d.context,v.projection);const Qe=$._tileDebugBuffer||d.debugBuffer,nt=$._tileDebugIndexBuffer||d.debugIndexBuffer,ce=$._tileDebugSegments||d.debugSegments;Z.draw(m,b.LINE_STRIP,re,Re,Fe,a.CullFaceMode.disabled,Jr(N,a.Color.red),"$debug",Qe,nt,ce,null,null,null,[$._globeTileDebugBorderBuffer]);const We=$.latestRawTileData,pt=Math.floor((We&&We.byteLength||0)/1024),gt=n.getTile(c).tileSize,Pt=512/Math.min(gt,512)*(c.overscaledZ/v.zoom)*.5;let Ft=c.canonical.toString();c.overscaledZ!==c.canonical.z&&(Ft+=` => ${c.overscaledZ}`),Ft+=` ${pt}kb`,function(an,Yn){an.initDebugOverlayCanvas();const tn=an.debugOverlayCanvas,Pn=an.context.gl,dn=an.debugOverlayCanvas.getContext("2d");dn.clearRect(0,0,tn.width,tn.height),dn.shadowColor="white",dn.shadowBlur=2,dn.lineWidth=1.5,dn.strokeStyle="white",dn.textBaseline="top",dn.font="bold 36px Open Sans, sans-serif",dn.fillText(Yn,5,5),dn.strokeText(Yn,5,5),an.debugOverlayTexture.update(tn),an.debugOverlayTexture.bind(Pn.LINEAR,Pn.CLAMP_TO_EDGE)}(d,Ft);const Rt=$._tileDebugTextBuffer||d.debugBuffer,qt=$._tileDebugTextIndexBuffer||d.quadTriangleIndexBuffer,Wt=$._tileDebugTextSegments||d.debugSegments;Z.draw(m,b.TRIANGLES,re,Re,a.ColorMode.alphaBlended,a.CullFaceMode.disabled,Jr(N,a.Color.transparent,Pt),"$debug",Rt,qt,Wt,null,null,null,[$._globeTileDebugTextBuffer])}function Ds(d,n,c,m){yl(d,0,n+c/2,d.transform.width,c,m)}function _l(d,n,c,m){yl(d,n-c/2,0,c,d.transform.height,m)}function yl(d,n,c,m,v,b){const I=d.context,M=I.gl;M.enable(M.SCISSOR_TEST),M.scissor(n*a.exported.devicePixelRatio,c*a.exported.devicePixelRatio,m*a.exported.devicePixelRatio,v*a.exported.devicePixelRatio),I.clear({color:b}),M.disable(M.SCISSOR_TEST)}const Jc=a.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:tc}=Jc;function Vs(d,n,c,m){d.emplaceBack(n,c,m)}class Qa{constructor(n){this.vertexArray=new a.StructArrayLayout3f12,this.indices=new a.StructArrayLayout3ui6,Vs(this.vertexArray,-1,-1,1),Vs(this.vertexArray,1,-1,1),Vs(this.vertexArray,-1,1,1),Vs(this.vertexArray,1,1,1),Vs(this.vertexArray,-1,-1,-1),Vs(this.vertexArray,1,-1,-1),Vs(this.vertexArray,-1,1,-1),Vs(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=n.createVertexBuffer(this.vertexArray,tc),this.indexBuffer=n.createIndexBuffer(this.indices),this.segment=a.SegmentVector.simpleSegment(0,0,36,12)}}function rs(d,n,c,m,v,b){const I=d.gl,M=n.paint.get("sky-atmosphere-color"),N=n.paint.get("sky-atmosphere-halo-color"),Z=n.paint.get("sky-atmosphere-sun-intensity"),$={u_matrix_3f:a.fromMat4(a.create$1(),m),u_sun_direction:v,u_sun_intensity:Z,u_color_tint_r:[(et=M).r,et.g,et.b,et.a],u_color_tint_m:[(Qe=N).r,Qe.g,Qe.b,Qe.a],u_luminance:5e-5};var et,Qe;I.framebufferTexture2D(I.FRAMEBUFFER,I.COLOR_ATTACHMENT0,I.TEXTURE_CUBE_MAP_POSITIVE_X+b,n.skyboxTexture,0),c.draw(d,I.TRIANGLES,a.DepthMode.disabled,a.StencilMode.disabled,a.ColorMode.unblended,a.CullFaceMode.frontCW,$,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}const F=a.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class Me{constructor(n){const c=new a.StructArrayLayout5f20;c.emplaceBack(-1,1,1,0,0),c.emplaceBack(1,1,1,1,0),c.emplaceBack(1,-1,1,1,1),c.emplaceBack(-1,-1,1,0,1);const m=new a.StructArrayLayout3ui6;m.emplaceBack(0,1,2),m.emplaceBack(2,3,0),this.vertexBuffer=n.createVertexBuffer(c,F.members),this.indexBuffer=n.createIndexBuffer(m),this.segments=a.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const q={symbol:function(d,n,c,m,v){if("translucent"!==d.renderPass)return;const b=a.StencilMode.disabled,I=d.colorModeForRenderPass();c.layout.get("text-variable-anchor")&&function(M,N,Z,$,re,Re,Fe){const et=N.transform,Qe="map"===re,nt="map"===Re;for(const ce of M){const We=$.getTile(ce),pt=We.getBucket(Z);if(!pt||!pt.text||!pt.text.segments.get().length)continue;const gt=a.evaluateSizeForZoom(pt.textSizeData,et.zoom),Pt=mt(ce,pt.getProjection(),et),Ft=et.calculatePixelsToTileUnitsMatrix(We),Rt=It(Pt,We.tileID.canonical,nt,Qe,et,pt.getProjection(),Ft),qt="none"!==Z.layout.get("icon-text-fit")&&pt.hasIconData();if(gt){const Wt=Math.pow(2,et.zoom-We.tileID.overscaledZ);er(pt,Qe,nt,Fe,a.symbolSize,et,Rt,ce,Wt,gt,qt)}}}(m,d,c,n,c.layout.get("text-rotation-alignment"),c.layout.get("text-pitch-alignment"),v),0!==c.paint.get("icon-opacity").constantOr(1)&&ml(d,n,c,m,!1,c.paint.get("icon-translate"),c.paint.get("icon-translate-anchor"),c.layout.get("icon-rotation-alignment"),c.layout.get("icon-pitch-alignment"),c.layout.get("icon-keep-upright"),b,I),0!==c.paint.get("text-opacity").constantOr(1)&&ml(d,n,c,m,!0,c.paint.get("text-translate"),c.paint.get("text-translate-anchor"),c.layout.get("text-rotation-alignment"),c.layout.get("text-pitch-alignment"),c.layout.get("text-keep-upright"),b,I),n.map.showCollisionBoxes&&(Es(d,n,c,m,c.paint.get("text-translate"),c.paint.get("text-translate-anchor"),!0),Es(d,n,c,m,c.paint.get("icon-translate"),c.paint.get("icon-translate-anchor"),!1))},circle:function(d,n,c,m){if("translucent"!==d.renderPass)return;const v=c.paint.get("circle-opacity"),b=c.paint.get("circle-stroke-width"),I=c.paint.get("circle-stroke-opacity"),M=void 0!==c.layout.get("circle-sort-key").constantOr(1);if(0===v.constantOr(1)&&(0===b.constantOr(1)||0===I.constantOr(1)))return;const N=d.context,Z=N.gl,$=d.transform,re=d.depthModeForSublayer(0,a.DepthMode.ReadOnly),Re=a.StencilMode.disabled,Fe=d.colorModeForRenderPass(),et="globe"===$.projection.name,Qe=[a.mercatorXfromLng($.center.lng),a.mercatorYfromLat($.center.lat)],nt=[];for(let We=0;WeWe.sortKey-pt.sortKey);const ce={useDepthForOcclusion:!et};for(const We of nt){const{programConfiguration:pt,program:gt,layoutVertexBuffer:Pt,globeExtVertexBuffer:Ft,indexBuffer:Rt,uniformValues:qt,tile:Wt}=We.state,an=We.segments;d.terrain&&d.terrain.setupElevationDraw(Wt,gt,ce),d.prepareDrawProgram(N,gt,Wt.tileID.toUnwrapped()),gt.draw(N,Z.TRIANGLES,re,Re,Fe,a.CullFaceMode.disabled,qt,c.id,Pt,Rt,an,c.paint,$.zoom,pt,[Ft])}},heatmap:function(d,n,c,m){if(0!==c.paint.get("heatmap-opacity"))if("offscreen"===d.renderPass){const v=d.context,b=v.gl,I=a.StencilMode.disabled,M=new a.ColorMode([b.ONE,b.ONE],a.Color.transparent,[!0,!0,!0,!0]);(function(Fe,et,Qe,nt){const ce=Fe.gl,We=et.width*nt,pt=et.height*nt;Fe.activeTexture.set(ce.TEXTURE1),Fe.viewport.set([0,0,We,pt]);let gt=Qe.heatmapFbo;if(!gt||gt&&(gt.width!==We||gt.height!==pt)){gt&>.destroy();const Pt=ce.createTexture();ce.bindTexture(ce.TEXTURE_2D,Pt),ce.texParameteri(ce.TEXTURE_2D,ce.TEXTURE_WRAP_S,ce.CLAMP_TO_EDGE),ce.texParameteri(ce.TEXTURE_2D,ce.TEXTURE_WRAP_T,ce.CLAMP_TO_EDGE),ce.texParameteri(ce.TEXTURE_2D,ce.TEXTURE_MIN_FILTER,ce.LINEAR),ce.texParameteri(ce.TEXTURE_2D,ce.TEXTURE_MAG_FILTER,ce.LINEAR),gt=Qe.heatmapFbo=Fe.createFramebuffer(We,pt,!1),function(Ft,Rt,qt,Wt,an,Yn){const tn=Ft.gl;tn.texImage2D(tn.TEXTURE_2D,0,Ft.isWebGL2&&Ft.extRenderToTextureHalfFloat?tn.RGBA16F:tn.RGBA,an,Yn,0,tn.RGBA,Ft.extRenderToTextureHalfFloat?Ft.isWebGL2?tn.HALF_FLOAT:Ft.extTextureHalfFloat.HALF_FLOAT_OES:tn.UNSIGNED_BYTE,null),Wt.colorAttachment.set(qt)}(Fe,0,Pt,gt,We,pt)}else ce.bindTexture(ce.TEXTURE_2D,gt.colorAttachment.get()),Fe.bindFramebuffer.set(gt.framebuffer)})(v,d,c,"globe"===d.transform.projection.name?.5:.25),v.clear({color:a.Color.transparent});const N=d.transform,Z="globe"===N.projection.name,$=Z?["PROJECTION_GLOBE_VIEW"]:null,re=Z?a.CullFaceMode.frontCCW:a.CullFaceMode.disabled,Re=[a.mercatorXfromLng(N.center.lng),a.mercatorYfromLat(N.center.lat)];for(let Fe=0;Fe{const Pt=[];Cs(gt)&&Pt.push("RENDER_LINE_DASH"),gt.paint.get("line-gradient")&&Pt.push("RENDER_LINE_GRADIENT");const Ft=gt.paint.get("line-trim-offset");0===Ft[0]&&0===Ft[1]||Pt.push("RENDER_LINE_TRIM_OFFSET");const Rt=gt.paint.get("line-pattern").constantOr(1),qt=1!==gt.paint.get("line-opacity").constantOr(1);return!Rt&&qt&&Pt.push("RENDER_LINE_ALPHA_DISCARD"),Pt})(c);let pt=We.includes("RENDER_LINE_ALPHA_DISCARD");d.terrain&&d.terrain.clipOrMaskOverlapStencilType()&&(pt=!1);for(const gt of m){const Pt=n.getTile(gt);if(Fe&&!Pt.patternsLoaded())continue;const Ft=Pt.getBucket(c);if(!Ft)continue;d.prepareDrawTile();const Rt=Ft.programConfigurations.get(c.id),qt=d.useProgram(Qe,Rt,We),Wt=Re.constantOr(null);if(Wt&&Pt.imageAtlas){const An=Pt.imageAtlas.patternPositions[Wt.toString()];An&&Rt.setConstantPatternPositions(An)}const an=Z.constantOr(null),Yn=re.constantOr(null);if(!Fe&&an&&Yn&&Pt.lineAtlas){const An=Pt.lineAtlas.getDash(an,Yn);An&&Rt.setConstantPatternPositions(An)}let[tn,Pn]=c.paint.get("line-trim-offset");("round"===Yn||"square"===Yn)&&tn!==Pn&&(0===tn&&(tn-=1),1===Pn&&(Pn+=1));const dn=d.terrain?gt.projMatrix:null,Zn=Fe?ra(d,Pt,c,dn,N):Ho(d,Pt,c,dn,Ft.lineClipsArray.length,N,[tn,Pn]);if(et){const An=Ft.gradients[c.id];let Qn=An.texture;if(c.gradientVersion!==An.version){let jn=256;if(c.stepInterpolant){const ei=n.getSource().maxzoom,Ai=gt.canonical.z===ei?Math.ceil(1<{qt.draw(nt,ce.TRIANGLES,I,An,M,a.CullFaceMode.disabled,Zn,c.id,Ft.layoutVertexBuffer,Ft.indexBuffer,Ft.segments,c.paint,d.transform.zoom,Rt,[Ft.layoutVertexBuffer2])};if(pt){const An=d.stencilModeForClipping(gt).ref;0===An&&d.terrain&&nt.clear({stencil:0});const Qn={func:ce.EQUAL,mask:255};Zn.u_alpha_discard_threshold=.8,ln(new a.StencilMode(Qn,An,255,ce.KEEP,ce.KEEP,ce.INVERT)),Zn.u_alpha_discard_threshold=0,ln(new a.StencilMode(Qn,An,255,ce.KEEP,ce.KEEP,ce.KEEP))}else ln(d.stencilModeForClipping(gt))}pt&&(d.resetStencilClippingMasks(),d.terrain&&nt.clear({stencil:0}))},fill:function(d,n,c,m){const v=c.paint.get("fill-color"),b=c.paint.get("fill-opacity");if(0===b.constantOr(1))return;const I=d.colorModeForRenderPass(),M=c.paint.get("fill-pattern"),N=d.opaquePassEnabledForLayer()&&!M.constantOr(1)&&1===v.constantOr(a.Color.transparent).a&&1===b.constantOr(0)?"opaque":"translucent";if(d.renderPass===N){const Z=d.depthModeForSublayer(1,"opaque"===d.renderPass?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly);gl(d,n,c,m,Z,I,!1)}if("translucent"===d.renderPass&&c.paint.get("fill-antialias")){const Z=d.depthModeForSublayer(c.getPaintProperty("fill-outline-color")?2:0,a.DepthMode.ReadOnly);gl(d,n,c,m,Z,I,!0)}},"fill-extrusion":function(d,n,c,m){const v=c.paint.get("fill-extrusion-opacity");if(0!==v&&"translucent"===d.renderPass){const b=new a.DepthMode(d.context.gl.LEQUAL,a.DepthMode.ReadWrite,d.depthRangeFor3D);if(1!==v||c.paint.get("fill-extrusion-pattern").constantOr(1))aa(d,n,c,m,b,a.StencilMode.disabled,a.ColorMode.disabled),aa(d,n,c,m,b,d.stencilModeFor3D(),d.colorModeForRenderPass()),d.resetStencilClippingMasks();else{const I=d.colorModeForRenderPass();aa(d,n,c,m,b,a.StencilMode.disabled,I)}}},hillshade:function(d,n,c,m){if("offscreen"!==d.renderPass&&"translucent"!==d.renderPass)return;const v=d.context,b=d.depthModeForSublayer(0,a.DepthMode.ReadOnly),I=d.colorModeForRenderPass(),M=d.terrain&&d.terrain.renderingToTexture,[N,Z]="translucent"!==d.renderPass||M?[{},m]:d.stencilConfigForOverlap(m);for(const $ of Z){const re=n.getTile($);if(re.needsHillshadePrepare&&"offscreen"===d.renderPass)Pl(d,re,c,b,a.StencilMode.disabled,I);else if("translucent"===d.renderPass){const Re=M&&d.terrain?d.terrain.stencilModeForRTTOverlap($):N[$.overscaledZ];Ql(d,$,re,c,b,Re,I)}}v.viewport.set([0,0,d.width,d.height]),d.resetStencilClippingMasks()},raster:function(d,n,c,m,v,b){if("translucent"!==d.renderPass||0===c.paint.get("raster-opacity")||!m.length)return;const I=d.context,M=I.gl,N=n.getSource(),Z=d.useProgram("raster"),$=d.colorModeForRenderPass(),re=d.terrain&&d.terrain.renderingToTexture,[Re,Fe]=N instanceof G||re?[{},m]:d.stencilConfigForOverlap(m),et=Fe[Fe.length-1].overscaledZ,Qe=!d.options.moving;for(const nt of Fe){const ce=re?a.DepthMode.disabled:d.depthModeForSublayer(nt.overscaledZ-et,1===c.paint.get("raster-opacity")?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly,M.LESS),We=nt.toUnwrapped(),pt=n.getTile(nt);if(re&&(!pt||!pt.hasData()))continue;const gt=re?nt.projMatrix:d.transform.calculateProjMatrix(We,Qe),Pt=d.terrain&&re?d.terrain.stencilModeForRTTOverlap(nt):Re[nt.overscaledZ],Ft=b?0:c.paint.get("raster-fade-duration");pt.registerFadeDuration(Ft);const Rt=n.findLoadedParent(nt,0),qt=Rl(pt,Rt,n,d.transform,Ft);let Wt,an;d.terrain&&d.terrain.prepareDrawTile();const Yn="nearest"===c.paint.get("raster-resampling")?M.NEAREST:M.LINEAR;I.activeTexture.set(M.TEXTURE0),pt.texture.bind(Yn,M.CLAMP_TO_EDGE),I.activeTexture.set(M.TEXTURE1),Rt?(Rt.texture.bind(Yn,M.CLAMP_TO_EDGE),Wt=Math.pow(2,Rt.tileID.overscaledZ-pt.tileID.overscaledZ),an=[pt.tileID.canonical.x*Wt%1,pt.tileID.canonical.y*Wt%1]):pt.texture.bind(Yn,M.CLAMP_TO_EDGE),pt.texture.useMipmap&&I.extTextureFilterAnisotropic&&d.transform.pitch>20&&M.texParameterf(M.TEXTURE_2D,I.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,I.extTextureFilterAnisotropicMax);const tn=Yi(gt,an||[0,0],Wt||1,qt,c,N instanceof G?N.perspectiveTransform:[0,0]);if(d.prepareDrawProgram(I,Z,We),N instanceof G)N.boundsBuffer&&N.boundsSegments&&Z.draw(I,M.TRIANGLES,ce,a.StencilMode.disabled,$,a.CullFaceMode.disabled,tn,c.id,N.boundsBuffer,d.quadTriangleIndexBuffer,N.boundsSegments);else{const{tileBoundsBuffer:Pn,tileBoundsIndexBuffer:dn,tileBoundsSegments:Zn}=d.getTileBoundsBuffers(pt);Z.draw(I,M.TRIANGLES,ce,Pt,$,a.CullFaceMode.disabled,tn,c.id,Pn,dn,Zn)}}d.resetStencilClippingMasks()},background:function(d,n,c,m){const v=c.paint.get("background-color"),b=c.paint.get("background-opacity");if(0===b)return;const I=d.context,M=I.gl,N=d.transform,Z=N.tileSize,$=c.paint.get("background-pattern");if(d.isPatternMissing($))return;const re=!$&&1===v.a&&1===b&&d.opaquePassEnabledForLayer()?"opaque":"translucent";if(d.renderPass!==re)return;const Re=a.StencilMode.disabled,Fe=d.depthModeForSublayer(0,"opaque"===re?a.DepthMode.ReadWrite:a.DepthMode.ReadOnly),et=d.colorModeForRenderPass(),Qe=d.useProgram($?"backgroundPattern":"background");let nt,ce=m;ce||(nt=d.getBackgroundTiles(),ce=Object.values(nt).map(We=>We.tileID)),$&&(I.activeTexture.set(M.TEXTURE0),d.imageManager.bind(d.context));for(const We of ce){const pt=We.toUnwrapped(),gt=m?We.projMatrix:d.transform.calculateProjMatrix(pt);d.prepareDrawTile();const Pt=n?n.getTile(We):nt?nt[We.key]:new a.Tile(We,Z,N.zoom,d),Ft=$?is(gt,b,d,$,{tileID:We,tileSize:Z}):oa(gt,b,v);d.prepareDrawProgram(I,Qe,pt);const{tileBoundsBuffer:Rt,tileBoundsIndexBuffer:qt,tileBoundsSegments:Wt}=d.getTileBoundsBuffers(Pt);Qe.draw(I,M.TRIANGLES,Fe,Re,et,a.CullFaceMode.disabled,Ft,c.id,Rt,qt,Wt)}},sky:function(d,n,c){const m=d.transform,v="mercator"===m.projection.name||"globe"===m.projection.name?1:a.smoothstep(7,8,m.zoom),b=c.paint.get("sky-opacity")*v;if(0===b)return;const I=d.context,M=c.paint.get("sky-type"),N=new a.DepthMode(I.gl.LEQUAL,a.DepthMode.ReadOnly,[0,1]),Z=d.frameCounter/1e3%1;"atmosphere"===M?"offscreen"===d.renderPass?c.needsSkyboxCapture(d)&&(function($,re,Re,Fe){const et=$.context,Qe=et.gl;let nt=re.skyboxFbo;if(!nt){nt=re.skyboxFbo=et.createFramebuffer(32,32,!1),re.skyboxGeometry=new Qa(et),re.skyboxTexture=et.gl.createTexture(),Qe.bindTexture(Qe.TEXTURE_CUBE_MAP,re.skyboxTexture),Qe.texParameteri(Qe.TEXTURE_CUBE_MAP,Qe.TEXTURE_WRAP_S,Qe.CLAMP_TO_EDGE),Qe.texParameteri(Qe.TEXTURE_CUBE_MAP,Qe.TEXTURE_WRAP_T,Qe.CLAMP_TO_EDGE),Qe.texParameteri(Qe.TEXTURE_CUBE_MAP,Qe.TEXTURE_MIN_FILTER,Qe.LINEAR),Qe.texParameteri(Qe.TEXTURE_CUBE_MAP,Qe.TEXTURE_MAG_FILTER,Qe.LINEAR);for(let gt=0;gt<6;++gt)Qe.texImage2D(Qe.TEXTURE_CUBE_MAP_POSITIVE_X+gt,0,Qe.RGBA,32,32,0,Qe.RGBA,Qe.UNSIGNED_BYTE,null)}et.bindFramebuffer.set(nt.framebuffer),et.viewport.set([0,0,32,32]);const ce=re.getCenter($,!0),We=$.useProgram("skyboxCapture"),pt=new Float64Array(16);a.identity(pt),a.rotateY(pt,pt,.5*-Math.PI),rs(et,re,We,pt,ce,0),a.identity(pt),a.rotateY(pt,pt,.5*Math.PI),rs(et,re,We,pt,ce,1),a.identity(pt),a.rotateX(pt,pt,.5*-Math.PI),rs(et,re,We,pt,ce,2),a.identity(pt),a.rotateX(pt,pt,.5*Math.PI),rs(et,re,We,pt,ce,3),a.identity(pt),rs(et,re,We,pt,ce,4),a.identity(pt),a.rotateY(pt,pt,Math.PI),rs(et,re,We,pt,ce,5),et.viewport.set([0,0,$.width,$.height])}(d,c),c.markSkyboxValid(d)):"sky"===d.renderPass&&function($,re,Re,Fe,et){const Qe=$.context,nt=Qe.gl,ce=$.transform,We=$.useProgram("skybox");Qe.activeTexture.set(nt.TEXTURE0),nt.bindTexture(nt.TEXTURE_CUBE_MAP,re.skyboxTexture);const pt={u_matrix:ce.skyboxMatrix,u_sun_direction:re.getCenter($,!1),u_cubemap:0,u_opacity:Fe,u_temporal_offset:et};$.prepareDrawProgram(Qe,We),We.draw(Qe,nt.TRIANGLES,Re,a.StencilMode.disabled,$.colorModeForRenderPass(),a.CullFaceMode.backCW,pt,"skybox",re.skyboxGeometry.vertexBuffer,re.skyboxGeometry.indexBuffer,re.skyboxGeometry.segment)}(d,c,N,b,Z):"gradient"===M&&"sky"===d.renderPass&&function($,re,Re,Fe,et){const Qe=$.context,nt=Qe.gl,ce=$.transform,We=$.useProgram("skyboxGradient");re.skyboxGeometry||(re.skyboxGeometry=new Qa(Qe)),Qe.activeTexture.set(nt.TEXTURE0);let pt=re.colorRampTexture;pt||(pt=re.colorRampTexture=new a.Texture(Qe,re.colorRamp,nt.RGBA)),pt.bind(nt.LINEAR,nt.CLAMP_TO_EDGE);const gt=(Pt=ce.skyboxMatrix,Ft=re.getCenter($,!1),Rt=re.paint.get("sky-gradient-radius"),qt=Fe,Wt=et,{u_matrix:Pt,u_color_ramp:0,u_center_direction:Ft,u_radius:a.degToRad(Rt),u_opacity:qt,u_temporal_offset:Wt});var Pt,Ft,Rt,qt,Wt;$.prepareDrawProgram(Qe,We),We.draw(Qe,nt.TRIANGLES,Re,a.StencilMode.disabled,$.colorModeForRenderPass(),a.CullFaceMode.backCW,gt,"skyboxGradient",re.skyboxGeometry.vertexBuffer,re.skyboxGeometry.indexBuffer,re.skyboxGeometry.segment)}(d,c,N,b,Z)},debug:function(d,n,c){for(let m=0;mv)return void(this.transform.fogCullDistSq=null);const b=m+.78*(v-m);this.transform.fogCullDistSq=b*b}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(n,c){if(this.width=n*a.exported.devicePixelRatio,this.height=c*a.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const m of this.style.order)this.style._layers[m].resize()}setup(){const n=this.context,c=new a.StructArrayLayout2i4;c.emplaceBack(0,0),c.emplaceBack(a.EXTENT,0),c.emplaceBack(0,a.EXTENT),c.emplaceBack(a.EXTENT,a.EXTENT),this.tileExtentBuffer=n.createVertexBuffer(c,a.posAttributes.members),this.tileExtentSegments=a.SegmentVector.simpleSegment(0,0,4,2);const m=new a.StructArrayLayout2i4;m.emplaceBack(0,0),m.emplaceBack(a.EXTENT,0),m.emplaceBack(0,a.EXTENT),m.emplaceBack(a.EXTENT,a.EXTENT),this.debugBuffer=n.createVertexBuffer(m,a.posAttributes.members),this.debugSegments=a.SegmentVector.simpleSegment(0,0,4,5);const v=new a.StructArrayLayout2i4;v.emplaceBack(-1,-1),v.emplaceBack(1,-1),v.emplaceBack(-1,1),v.emplaceBack(1,1),this.viewportBuffer=n.createVertexBuffer(v,a.posAttributes.members),this.viewportSegments=a.SegmentVector.simpleSegment(0,0,4,2);const b=new a.StructArrayLayout4i8;b.emplaceBack(0,0,0,0),b.emplaceBack(a.EXTENT,0,a.EXTENT,0),b.emplaceBack(0,a.EXTENT,0,a.EXTENT),b.emplaceBack(a.EXTENT,a.EXTENT,a.EXTENT,a.EXTENT),this.mercatorBoundsBuffer=n.createVertexBuffer(b,a.boundsAttributes.members),this.mercatorBoundsSegments=a.SegmentVector.simpleSegment(0,0,4,2);const I=new a.StructArrayLayout3ui6;I.emplaceBack(0,1,2),I.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=n.createIndexBuffer(I);const M=new a.StructArrayLayout1ui2;for(const Z of[0,1,3,2,0])M.emplaceBack(Z);this.debugIndexBuffer=n.createIndexBuffer(M),this.emptyTexture=new a.Texture(n,new a.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),n.gl.RGBA),this.identityMat=a.create();const N=this.context.gl;this.stencilClearMode=new a.StencilMode({func:N.ALWAYS,mask:0},0,255,N.ZERO,N.ZERO,N.ZERO),this.loadTimeStamps.push(a.window.performance.now()),this.atmosphereBuffer=new Me(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(n){return n._makeTileBoundsBuffers(this.context,this.transform.projection),n._tileBoundsBuffer?{tileBoundsBuffer:n._tileBoundsBuffer,tileBoundsIndexBuffer:n._tileBoundsIndexBuffer,tileBoundsSegments:n._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const n=this.context,c=n.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(n,c.TRIANGLES,a.DepthMode.disabled,this.stencilClearMode,a.ColorMode.disabled,a.CullFaceMode.disabled,Wa(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(n,c,m){if(!c||this.currentStencilSource===c.id||!n.isTileClipped()||!m||0===m.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let M=!1;for(const N of m)if(void 0===this._tileClippingMaskIDs[N.key]){M=!0;break}if(!M)return}this.currentStencilSource=c.id;const v=this.context,b=v.gl;this.nextStencilID+m.length>256&&this.clearStencil(),v.setColorMode(a.ColorMode.disabled),v.setDepthMode(a.DepthMode.disabled);const I=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const M of m){const N=c.getTile(M),Z=this._tileClippingMaskIDs[M.key]=this.nextStencilID++,{tileBoundsBuffer:$,tileBoundsIndexBuffer:re,tileBoundsSegments:Re}=this.getTileBoundsBuffers(N);I.draw(v,b.TRIANGLES,a.DepthMode.disabled,new a.StencilMode({func:b.ALWAYS,mask:0},Z,255,b.KEEP,b.KEEP,b.REPLACE),a.ColorMode.disabled,a.CullFaceMode.disabled,Wa(M.projMatrix),"$clipping",$,re,Re)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const n=this.nextStencilID++,c=this.context.gl;return new a.StencilMode({func:c.NOTEQUAL,mask:255},n,255,c.KEEP,c.KEEP,c.REPLACE)}stencilModeForClipping(n){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(n);const c=this.context.gl;return new a.StencilMode({func:c.EQUAL,mask:255},this._tileClippingMaskIDs[n.key],0,c.KEEP,c.KEEP,c.REPLACE)}stencilConfigForOverlap(n){const c=this.context.gl,m=n.sort((I,M)=>M.overscaledZ-I.overscaledZ),v=m[m.length-1].overscaledZ,b=m[0].overscaledZ-v+1;if(b>1){this.currentStencilSource=void 0,this.nextStencilID+b>256&&this.clearStencil();const I={};for(let M=0;M=0;this.currentLayer--){const Z=this.style._layers[m[this.currentLayer]],$=n._getLayerSourceCache(Z);if(Z.isSky())continue;const re=$?I[$.id]:void 0;this._renderTileClippingMasks(Z,$,re),this.renderLayer(this,$,Z,re)}if(this.style.fog&&this.transform.projection.supportsFog&&function(Z,$){const re=Z.context,Re=re.gl,Fe=Z.transform,et=new a.DepthMode(Re.LEQUAL,a.DepthMode.ReadOnly,[0,1]),Qe=Z.useProgram("globeAtmosphere",null,"globe"===Fe.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),nt=a.globeToMercatorTransition(Fe.zoom),ce=$.properties.get("color").toArray01(),We=$.properties.get("high-color").toArray01(),pt=$.properties.get("space-color").toArray01PremultipliedAlpha(),gt=a.identity$1([]);a.rotateY$1(gt,gt,-a.degToRad(Fe._center.lng)),a.rotateX$1(gt,gt,a.degToRad(Fe._center.lat)),a.rotateZ$1(gt,gt,Fe.angle),a.rotateX$1(gt,gt,-Fe._pitch);const Pt=a.fromQuat(new Float32Array(16),gt),Ft=a.mapValue($.properties.get("star-intensity"),0,1,0,.25),qt=a.mapValue($.properties.get("horizon-blend"),0,1,5e-4,.25),Wt=a.globeUseCustomAntiAliasing(Z,re,Fe)&&5e-4===qt?Fe.worldSize/(2*Math.PI*1.025)-1:Fe.globeRadius,an=Z.frameCounter/1e3%1,Yn=a.length(Fe.globeCenterInViewSpace),tn=Math.sqrt(Math.pow(Yn,2)-Math.pow(Wt,2)),Pn=Math.acos(tn/Yn),dn={u_frustum_tl:Fe.frustumCorners.TL,u_frustum_tr:Fe.frustumCorners.TR,u_frustum_br:Fe.frustumCorners.BR,u_frustum_bl:Fe.frustumCorners.BL,u_horizon:Fe.frustumCorners.horizon,u_transition:nt,u_fadeout_range:qt,u_color:ce,u_high_color:We,u_space_color:pt,u_star_intensity:Ft,u_star_size:5*a.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:an,u_horizon_angle:Pn,u_rotation_matrix:Pt};Z.prepareDrawProgram(re,Qe);const Zn=Z.atmosphereBuffer;Zn&&Qe.draw(re,Re.TRIANGLES,et,a.StencilMode.disabled,a.ColorMode.alphaBlended,a.CullFaceMode.backCW,dn,"skybox",Zn.vertexBuffer,Zn.indexBuffer,Zn.segments)}(this,this.style.fog),this.renderPass="sky",(a.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer{const re=n._getLayerSourceCache($);re&&!$.isHidden(this.transform.zoom)&&(!Z||Z.getSource().maxzoom0?c.pop():null}isPatternMissing(n){return null===n||void 0!==n&&!this.imageManager.getPattern(n.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){const n=this.terrain&&this.terrain.renderingToTexture,c=this.terrain&&0===this.terrain.exaggeration(),m=this.style&&this.style.fog,v=[];return this.terrainRenderModeElevated()&&v.push("TERRAIN"),"globe"===this.transform.projection.name&&v.push("GLOBE"),c&&v.push("ZERO_EXAGGERATION"),m&&!n&&0!==m.getOpacity(this.transform.pitch)&&v.push("FOG"),n&&v.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&v.push("OVERDRAW_INSPECTOR"),v}useProgram(n,c,m){this.cache=this.cache||{};const v=m||[],b=this.currentGlobalDefines().concat(v),I=_i.cacheKey(fl[n],n,b,c);return this.cache[I]||(this.cache[I]=new _i(this.context,n,fl[n],c,ga[n],b)),this.cache[I]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const n=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(n.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=a.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new a.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(n,c,m){if(this.terrain&&this.terrain.renderingToTexture)return;const v=this.style.fog;if(v){const b=v.getOpacity(this.transform.pitch),I=((M,N,Z,$,re,Re,Fe,et,Qe,nt,ce)=>{const We=M.transform,pt=N.properties.get("color").toArray01();pt[3]=$;const gt=M.frameCounter/1e3%1;return{u_fog_matrix:Z?We.calculateFogTileMatrix(Z):M.identityMat,u_fog_range:N.getFovAdjustedRange(We._fov),u_fog_color:pt,u_fog_horizon_blend:N.properties.get("horizon-blend"),u_fog_temporal_offset:gt,u_frustum_tl:re,u_frustum_tr:Re,u_frustum_br:Fe,u_frustum_bl:et,u_globe_pos:Qe,u_globe_radius:nt,u_viewport:ce,u_globe_transition:a.globeToMercatorTransition(We.zoom),u_is_globe:+("globe"===We.projection.name)}})(this,v,m,b,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*a.exported.devicePixelRatio,this.transform.height*a.exported.devicePixelRatio]);c.setFogUniformValues(n,I)}}setTileLoadedFlag(n){this.tileLoaded=n}saveCanvasCopy(){const n=this.canvasCopy();n&&(this.frameCopies.push(n),this.tileLoaded=!1)}canvasCopy(){const n=this.context.gl,c=n.createTexture();return n.bindTexture(n.TEXTURE_2D,c),n.copyTexImage2D(n.TEXTURE_2D,0,n.RGBA,0,0,n.drawingBufferWidth,n.drawingBufferHeight,0),c}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const n=this.style&&this.style.fog;return!!n&&0!==n.getOpacity(this.transform.pitch)}getBackgroundTiles(){const n=this._backgroundTiles,c=this._backgroundTiles={},m=this.transform.coveringTiles({tileSize:512});for(const v of m)c[v.key]=n[v.key]||new a.Tile(v,512,this.transform.tileZoom,this);return c}clearBackgroundTiles(){this._backgroundTiles={}}}class xt{constructor(n=0,c=0,m=0,v=0){if(isNaN(n)||n<0||isNaN(c)||c<0||isNaN(m)||m<0||isNaN(v)||v<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=n,this.bottom=c,this.left=m,this.right=v}interpolate(n,c,m){return null!=c.top&&null!=n.top&&(this.top=a.number(n.top,c.top,m)),null!=c.bottom&&null!=n.bottom&&(this.bottom=a.number(n.bottom,c.bottom,m)),null!=c.left&&null!=n.left&&(this.left=a.number(n.left,c.left,m)),null!=c.right&&null!=n.right&&(this.right=a.number(n.right,c.right,m)),this}getCenter(n,c){const m=a.clamp((this.left+n-this.right)/2,0,n),v=a.clamp((this.top+c-this.bottom)/2,0,c);return new a.Point(m,v)}equals(n){return this.top===n.top&&this.bottom===n.bottom&&this.left===n.left&&this.right===n.right}clone(){return new xt(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function vn(d,n){const c=a.getColumn(d,3);a.fromQuat(d,n),a.setColumn(d,3,c)}function bn(d,n){const c=a.identity$1([]);return a.rotateZ$1(c,c,-n),a.rotateX$1(c,c,-d),c}function Ti(d,n){const c=[d[0],d[1],0],m=[n[0],n[1],0];if(a.length(c)>=1e-15){const I=a.normalize([],c);a.scale$2(m,I,a.dot(m,I)),n[0]=m[0],n[1]=m[1]}const v=a.cross([],n,d);if(a.len(v)<1e-15)return null;const b=Math.atan2(-v[1],v[0]);return bn(Math.atan2(Math.sqrt(d[0]*d[0]+d[1]*d[1]),-d[2]),b)}class Ur{constructor(n,c){this.position=n,this.orientation=c}get position(){return this._position}set position(n){if(n){const c=n instanceof a.MercatorCoordinate?n:new a.MercatorCoordinate(n[0],n[1],n[2]);this._renderWorldCopies&&(c.x=a.wrap(c.x,0,1)),this._position=c}else this._position=null}lookAtPoint(n,c){if(this.orientation=null,!this.position)return;const m=this.position,v=this._elevation?this._elevation.getAtPointOrZero(a.MercatorCoordinate.fromLngLat(n)):0,b=a.MercatorCoordinate.fromLngLat(n,v),I=[b.x-m.x,b.y-m.y,b.z-m.z];c||(c=[0,0,1]),c[2]=Math.abs(c[2]),this.orientation=Ti(I,c)}setPitchBearing(n,c){this.orientation=bn(a.degToRad(n),a.degToRad(-c))}}class Lr{constructor(n,c){this._transform=a.identity([]),this.orientation=c,this.position=n}get mercatorPosition(){const n=this.position;return new a.MercatorCoordinate(n[0],n[1],n[2])}get position(){const n=a.getColumn(this._transform,3);return[n[0],n[1],n[2]]}set position(n){var c;n&&a.setColumn(this._transform,3,[(c=n)[0],c[1],c[2],1])}get orientation(){return this._orientation}set orientation(n){this._orientation=n||a.identity$1([]),n&&vn(this._transform,this._orientation)}getPitchBearing(){const n=this.forward(),c=this.right();return{bearing:Math.atan2(-c[1],c[0]),pitch:Math.atan2(Math.sqrt(n[0]*n[0]+n[1]*n[1]),-n[2])}}setPitchBearing(n,c){this._orientation=bn(n,c),vn(this._transform,this._orientation)}forward(){const n=a.getColumn(this._transform,2);return[-n[0],-n[1],-n[2]]}up(){const n=a.getColumn(this._transform,1);return[-n[0],-n[1],-n[2]]}right(){const n=a.getColumn(this._transform,0);return[n[0],n[1],n[2]]}getCameraToWorld(n,c){const m=new Float64Array(16);return a.invert(m,this.getWorldToCamera(n,c)),m}getWorldToCameraPosition(n,c,m){const v=this.position;a.scale$2(v,v,-n);const b=new Float64Array(16);return a.fromScaling(b,[m,m,m]),a.translate(b,b,v),b[10]*=c,b}getWorldToCamera(n,c){const m=new Float64Array(16),v=new Float64Array(4),b=this.position;return a.conjugate(v,this._orientation),a.scale$2(b,b,-n),a.fromQuat(m,v),a.translate(m,m,b),m[1]*=-1,m[5]*=-1,m[9]*=-1,m[13]*=-1,m[8]*=c,m[9]*=c,m[10]*=c,m[11]*=c,m}getCameraToClipPerspective(n,c,m,v){const b=new Float64Array(16);return a.perspective(b,n,c,m,v),b}getDistanceToElevation(n,c=!1){const m=0===n?0:a.mercatorZfromAltitude(n,c?a.latFromMercatorY(this.position[1]):this.position[1]),v=this.forward();return(m-this.position[2])/v[2]}clone(){return new Lr([...this.position],[...this.orientation])}}function Sr(d,n){const c=Pr(d.projection,d.zoom,d.width,d.height),m=function(b,I,M,N,Z){const $=new a.LngLat(M.lng-180*hr,M.lat),re=new a.LngLat(M.lng+180*hr,M.lat),Re=b.project($.lng,$.lat),Fe=b.project(re.lng,re.lat),et=-Math.atan2(Fe.y-Re.y,Fe.x-Re.x),Qe=a.MercatorCoordinate.fromLngLat(M);Qe.y=a.clamp(Qe.y,-1+hr,1-hr);const nt=Qe.toLngLat(),ce=b.project(nt.lng,nt.lat),We=a.MercatorCoordinate.fromLngLat(nt);We.x+=hr;const pt=We.toLngLat(),gt=b.project(pt.lng,pt.lat),Pt=$s(gt.x-ce.x,gt.y-ce.y,et),Ft=a.MercatorCoordinate.fromLngLat(nt);Ft.y+=hr;const Rt=Ft.toLngLat(),qt=b.project(Rt.lng,Rt.lat),Wt=$s(qt.x-ce.x,qt.y-ce.y,et),an=Math.abs(Pt.x)/Math.abs(Wt.y),Yn=a.identity([]);a.rotateZ(Yn,Yn,-et*(1-(Z?0:N)));const tn=a.identity([]);return a.scale(tn,tn,[1,1-(1-an)*N,1]),tn[4]=-Wt.x/Wt.y*N,a.rotateZ(tn,tn,et),a.multiply(tn,Yn,tn),tn}(d.projection,0,d.center,c,n),v=sr(d);return a.scale(m,m,[v,v,1]),m}function sr(d){const n=d.projection,c=Pr(d.projection,d.zoom,d.width,d.height),m=So(n,d.center),v=So(n,a.LngLat.convert(n.center));return Math.pow(2,m*c+(1-c)*v)}function Pr(d,n,c,m,v=1/0){const b=d.range;if(!b)return 0;const I=Math.min(v,Math.max(c,m)),M=Math.log(I/1024)/Math.LN2;return a.smoothstep(b[0]+M,b[1]+M,n)}const hr=1/4e4;function So(d,n){const c=a.clamp(n.lat,-a.MAX_MERCATOR_LATITUDE,a.MAX_MERCATOR_LATITUDE),m=new a.LngLat(n.lng-180*hr,c),v=new a.LngLat(n.lng+180*hr,c),b=d.project(m.lng,c),I=d.project(v.lng,c),M=a.MercatorCoordinate.fromLngLat(m),N=a.MercatorCoordinate.fromLngLat(v),Z=I.x-b.x,$=I.y-b.y,re=N.x-M.x,Re=N.y-M.y,Fe=Math.sqrt((re*re+Re*Re)/(Z*Z+$*$));return Math.log(Fe)/Math.LN2}function $s(d,n,c){const m=Math.cos(c),v=Math.sin(c);return{x:d*m-n*v,y:d*v+n*m}}class qo{constructor(n,c,m,v,b,I,M){this.tileSize=512,this._renderWorldCopies=void 0===b||b,this._minZoom=n||0,this._maxZoom=c||22,this._minPitch=m??0,this._maxPitch=v??60,this.setProjection(I),this.setMaxBounds(M),this.width=0,this.height=0,this._center=new a.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new xt,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Lr,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const n=new qo(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return n._elevation=this._elevation,n._centerAltitude=this._centerAltitude,n._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,n.tileSize=this.tileSize,n.mercatorFromTransition=this.mercatorFromTransition,n.width=this.width,n.height=this.height,n.cameraElevationReference=this.cameraElevationReference,n._center=this._center,n._setZoom(this.zoom),n._seaLevelZoom=this._seaLevelZoom,n.angle=this.angle,n._fov=this._fov,n._pitch=this._pitch,n._nearZ=this._nearZ,n._farZ=this._farZ,n._averageElevation=this._averageElevation,n._unmodified=this._unmodified,n._edgeInsets=this._edgeInsets.clone(),n._camera=this._camera.clone(),n._calcMatrices(),n.freezeTileCoverage=this.freezeTileCoverage,n.frustumCorners=this.frustumCorners,n}get elevation(){return this._elevation}set elevation(n){this._elevation!==n&&(this._elevation=n,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(n,c=!1){const m=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||m)&&this._updateCameraOnTerrain(),(n||m)&&this._constrainCamera(c),this._calcMatrices()}getProjection(){return a.pick(this.projection,["name","center","parallels"])}setProjection(n){this.projectionOptions=n||{name:"mercator"};const c=this.projection?this.getProjection():void 0;this.projection=a.getProjection(this.projectionOptions);const m=!j(c,this.getProjection());return m&&this._calcMatrices(),this.mercatorFromTransition=!1,m}setMercatorFromTransition(){const n=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=a.getProjection({name:"mercator"});const c=n!==this.projection.name;return c&&this._calcMatrices(),c}get minZoom(){return this._minZoom}set minZoom(n){this._minZoom!==n&&(this._minZoom=n,this.zoom=Math.max(this.zoom,n))}get maxZoom(){return this._maxZoom}set maxZoom(n){this._maxZoom!==n&&(this._maxZoom=n,this.zoom=Math.min(this.zoom,n))}get minPitch(){return this._minPitch}set minPitch(n){this._minPitch!==n&&(this._minPitch=n,this.pitch=Math.max(this.pitch,n))}get maxPitch(){return this._maxPitch}set maxPitch(n){this._maxPitch!==n&&(this._maxPitch=n,this.pitch=Math.min(this.pitch,n))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(n){void 0===n?n=!0:null===n&&(n=!1),this._renderWorldCopies=n}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const n=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(n))}get cameraWorldSize(){const n=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(n))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return a.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new a.Point(this.width,this.height)}get bearing(){return a.wrap(this.rotation,-180,180)}set bearing(n){this.rotation=n}get rotation(){return-this.angle/Math.PI*180}set rotation(n){const c=-n*Math.PI/180;var m,v,b,I,M,N,Z,$,re,Re;this.angle!==c&&(this._unmodified=!1,this.angle=c,this._calcMatrices(),this.rotationMatrix=(m=new a.ARRAY_TYPE(4),a.ARRAY_TYPE!=Float32Array&&(m[1]=0,m[2]=0),m[0]=1,m[3]=1,m),v=this.rotationMatrix,I=this.angle,M=(b=this.rotationMatrix)[0],N=b[1],Z=b[2],$=b[3],re=Math.sin(I),Re=Math.cos(I),v[0]=M*Re+Z*re,v[1]=N*Re+$*re,v[2]=M*-re+Z*Re,v[3]=N*-re+$*Re)}get pitch(){return this._pitch/Math.PI*180}set pitch(n){const c=a.clamp(n,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==c&&(this._unmodified=!1,this._pitch=c,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const n=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/n)}set fov(n){n=Math.max(.01,Math.min(60,n)),this._fov!==n&&(this._unmodified=!1,this._fov=a.degToRad(n),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(n){this._averageElevation=n,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(n){const c=Math.min(Math.max(n,this.minZoom),this.maxZoom);this._zoom!==c&&(this._unmodified=!1,this._setZoom(c),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(n){this._zoom=n,this.scale=this.zoomScale(n),this.tileZoom=Math.floor(n),this.zoomFraction=n-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const n=this._elevation;this._centerAltitude=n.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=n.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const n=this._elevation,c=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],m=this.horizonLineFromTop();let v=0,b=0;for(let I=0;In.maxzoom&&(c=n.maxzoom);const I=this.locationCoordinate(this.center),M=this.center.lat,N=1<{const Qn=new a.MercatorCoordinate(ln.x+25e-6,ln.y,ln.z),jn=new a.MercatorCoordinate(ln.x,ln.y+25e-6,ln.z),ei=ln.toLngLat(),Ai=Qn.toLngLat(),Ji=jn.toLngLat(),wi=this.locationCoordinate(ei),Si=this.locationCoordinate(Ai),fr=this.locationCoordinate(Ji),tr=Math.hypot(Si.x-wi.x,Si.y-wi.y),Di=Math.hypot(fr.x-wi.x,fr.y-wi.y);return Math.sqrt(tr*Di)*Pt/25e-6},Rt=ln=>{const An=pt,Qn=gt;return{aabb:a.tileAABB(this,N,0,0,0,ln,Qn,An,this.projection),zoom:0,x:0,y:0,minZ:Qn,maxZ:An,wrap:ln,fullyVisible:!1}},qt=[];let Wt=[];const an=c,Yn=n.reparseOverscaled?m:c,tn=ln=>ln*ln,Pn=tn((Qe-this._centerAltitude)*et),dn=ln=>{if(!this._elevation||!ln.tileID||!b)return;const An=this._elevation.getMinMaxForTile(ln.tileID),Qn=ln.aabb;An?(Qn.min[2]=An.min,Qn.max[2]=An.max,Qn.center[2]=(Qn.min[2]+Qn.max[2])/2):(ln.shouldSplit=Zn(ln),ln.shouldSplit||(Qn.min[2]=Qn.max[2]=Qn.center[2]=this._centerAltitude))},Zn=ln=>{if(ln.zoom=.9)return!0}else if(v&&(jn=tn(ln.aabb.distanceZ(nt)*et)),this.projection.isReprojectedInTileSpace&&m<=5){const wi=Math.pow(2,ln.zoom),Si=Ft(new a.MercatorCoordinate((ln.x+.5)/wi,(ln.y+.5)/wi));ei=Si>.85?1:Si}const Ai=An*An+Qn*Qn+jn;return Ai{if(Si*tn(.707)0;){const ln=qt.pop(),An=ln.x,Qn=ln.y;let jn=ln.fullyVisible;if(!jn){const ei=ln.aabb.intersects(Re);if(0===ei)continue;jn=2===ei}if(ln.zoom!==an&&Zn(ln))for(let ei=0;ei<4;ei++){const Ai=(An<<1)+ei%2,Ji=(Qn<<1)+(ei>>1),wi={aabb:b?ln.aabb.quadrant(ei):a.tileAABB(this,N,ln.zoom+1,Ai,Ji,ln.wrap,ln.minZ,ln.maxZ,this.projection),zoom:ln.zoom+1,x:Ai,y:Ji,wrap:ln.wrap,fullyVisible:jn,tileID:void 0,shouldSplit:void 0,minZ:ln.minZ,maxZ:ln.maxZ};v&&!$&&(wi.tileID=new a.OverscaledTileID(ln.zoom+1===an?Yn:ln.zoom+1,ln.wrap,ln.zoom+1,Ai,Ji),dn(wi)),qt.push(wi)}else{const ei=ln.zoom===an?Yn:ln.zoom;if(n.minzoom&&n.minzoom>ei)continue;const Ai=Z[0]-(.5+An+(ln.wrap<{const jn=[0,0,0,1],ei=[a.EXTENT,a.EXTENT,0,1],Ai=this.calculateFogTileMatrix(Qn.tileID.toUnwrapped());a.transformMat4$1(jn,jn,Ai),a.transformMat4$1(ei,ei,Ai);const Ji=a.getAABBPointSquareDist(jn,ei);if(0===Ji)return!0;let wi=!1;const Si=this._elevation;if(Si&&Ji>ln&&0!==An){const fr=this.calculateProjMatrix(Qn.tileID.toUnwrapped());let tr;n.isTerrainDEM||(tr=Si.getMinMaxForTile(Qn.tileID)),tr||(tr={min:gt,max:pt});const Di=a.furthestTileCorner(this.rotation),Dr=[Di[0]*a.EXTENT,Di[1]*a.EXTENT,tr.max];a.transformMat4(Dr,Dr,fr),wi=(1-Dr[1])*this.height*.5ln.distanceSq-An.distanceSq).map(ln=>ln.tileID)}resize(n,c){this.width=n,this.height=c,this.pixelsToGLUnits=[2/n,-2/c],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(n){return Math.pow(2,n)}scaleZoom(n){return Math.log(n)/Math.LN2}project(n){const c=a.clamp(n.lat,-a.MAX_MERCATOR_LATITUDE,a.MAX_MERCATOR_LATITUDE),m=this.projection.project(n.lng,c);return new a.Point(m.x*this.worldSize,m.y*this.worldSize)}unproject(n){return this.projection.unproject(n.x/this.worldSize,n.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/a.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(n,c){let m,v;const b=this.centerPoint;if("globe"===this.projection.name){const M=this.worldSize;m=(c.x-b.x)/M,v=(c.y-b.y)/M}else{const M=this.pointCoordinate(c),N=this.pointCoordinate(b);m=M.x-N.x,v=M.y-N.y}const I=this.locationCoordinate(n);this.setLocation(new a.MercatorCoordinate(I.x-m,I.y-v))}setLocation(n){this.center=this.coordinateLocation(n),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(n){return this.projection.locationPoint(this,n)}locationPoint3D(n){return this.projection.locationPoint(this,n,!0)}pointLocation(n){return this.coordinateLocation(this.pointCoordinate(n))}pointLocation3D(n){return this.coordinateLocation(this.pointCoordinate3D(n))}locationCoordinate(n,c){const m=c?a.mercatorZfromAltitude(c,n.lat):void 0,v=this.projection.project(n.lng,n.lat);return new a.MercatorCoordinate(v.x,v.y,m)}coordinateLocation(n){return this.projection.unproject(n.x,n.y)}pointRayIntersection(n,c){const m=c??this._centerAltitude,v=[n.x,n.y,0,1],b=[n.x,n.y,1,1];a.transformMat4$1(v,v,this.pixelMatrixInverse),a.transformMat4$1(b,b,this.pixelMatrixInverse);const I=b[3];a.scale$1(v,v,1/v[3]),a.scale$1(b,b,1/I);const M=v[2],N=b[2];return{p0:v,p1:b,t:M===N?0:(m-M)/(N-M)}}screenPointToMercatorRay(n){const c=[n.x,n.y,0,1],m=[n.x,n.y,1,1];return a.transformMat4$1(c,c,this.pixelMatrixInverse),a.transformMat4$1(m,m,this.pixelMatrixInverse),a.scale$1(c,c,1/c[3]),a.scale$1(m,m,1/m[3]),c[2]=a.mercatorZfromAltitude(c[2],this._center.lat)*this.worldSize,m[2]=a.mercatorZfromAltitude(m[2],this._center.lat)*this.worldSize,a.scale$1(c,c,1/this.worldSize),a.scale$1(m,m,1/this.worldSize),new a.Ray([c[0],c[1],c[2]],a.normalize([],a.sub([],m,c)))}rayIntersectionCoordinate(n){const{p0:c,p1:m,t:v}=n,b=a.mercatorZfromAltitude(c[2],this._center.lat),I=a.mercatorZfromAltitude(m[2],this._center.lat);return new a.MercatorCoordinate(a.number(c[0],m[0],v)/this.worldSize,a.number(c[1],m[1],v)/this.worldSize,a.number(b,I,v))}pointCoordinate(n,c=this._centerAltitude){return this.projection.pointCoordinate(this,n.x,n.y,c)}pointCoordinate3D(n){if(!this.elevation)return this.pointCoordinate(n);let c=this.projection.pointCoordinate3D(this,n.x,n.y);if(c)return new a.MercatorCoordinate(c[0],c[1],c[2]);let m=0,v=this.horizonLineFromTop();if(n.y>v)return this.pointCoordinate(n);const b=.02*v,I=n.clone();for(let M=0;M<10&&v-m>b;M++){I.y=a.number(m,v,.66);const N=this.projection.pointCoordinate3D(this,I.x,I.y);N?(v=I.y,c=N):m=I.y}return c?new a.MercatorCoordinate(c[0],c[1],c[2]):this.pointCoordinate(n)}isPointAboveHorizon(n){return this.projection.isPointAboveHorizon(this,n)}isPointOnSurface(n){if(n.y<0||n.y>this.height||n.x<0||n.x>this.width)return!1;if(this.elevation||this.zoom>=a.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(n);const c=this.pointCoordinate(n);return c.y>=0&&c.y<=1}_coordinatePoint(n,c){const m=c&&this.elevation?this.elevation.getAtPointOrZero(n,this._centerAltitude):this._centerAltitude,v=[n.x*this.worldSize,n.y*this.worldSize,m+n.toAltitude(),1];return a.transformMat4$1(v,v,this.pixelMatrix),v[3]>0?new a.Point(v[0]/v[3],v[1]/v[3]):new a.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:n,left:c}=this._edgeInsets,m=this.height-this._edgeInsets.bottom,v=this.width-this._edgeInsets.right,b=this.pointLocation3D(new a.Point(c,n)),I=this.pointLocation3D(new a.Point(v,n)),M=this.pointLocation3D(new a.Point(v,m)),N=this.pointLocation3D(new a.Point(c,m));let Z=Math.min(b.lng,I.lng,M.lng,N.lng),$=Math.max(b.lng,I.lng,M.lng,N.lng),re=Math.min(b.lat,I.lat,M.lat,N.lat),Re=Math.max(b.lat,I.lat,M.lat,N.lat);const Fe=Math.pow(2,-this.zoom)/16*270,et="globe"===this.projection.name?1:4,Qe=(nt,ce,We,pt,gt)=>{const Pt=(nt+We)/2,Ft=(ce+pt)/2,Rt=new a.Point(Pt,Ft),{lng:qt,lat:Wt}=this.pointLocation3D(Rt),an=Math.max(0,Z-qt,re-Wt,qt-$,Wt-Re);Z=Math.min(Z,qt),$=Math.max($,qt),re=Math.min(re,Wt),Re=Math.max(Re,Wt),(gtFe)&&(Qe(nt,ce,Pt,Ft,gt+1),Qe(Pt,Ft,We,pt,gt+1))};if(Qe(c,n,v,n,1),Qe(v,n,v,m,1),Qe(v,m,c,m,1),Qe(c,m,c,n,1),"globe"===this.projection.name){const[nt,ce]=a.polesInViewport(this);nt?(Re=90,$=180,Z=-180):ce&&(re=-90,$=180,Z=-180)}return new a.LngLatBounds(new a.LngLat(Z,re),new a.LngLat($,Re))}_getBoundsRectangular(n,c){const{top:m,left:v}=this._edgeInsets,b=this.height-this._edgeInsets.bottom,I=this.width-this._edgeInsets.right,M=new a.Point(v,m),N=new a.Point(I,m),Z=new a.Point(I,b),$=new a.Point(v,b);let re=this.pointCoordinate(M,n),Re=this.pointCoordinate(N,n);const Fe=this.pointCoordinate(Z,c),et=this.pointCoordinate($,c),Qe=(nt,ce)=>(ce.y-nt.y)/(ce.x-nt.x);return re.y>1&&Re.y>=0?re=new a.MercatorCoordinate((1-et.y)/Qe(et,re)+et.x,1):re.y<0&&Re.y<=1&&(re=new a.MercatorCoordinate(-et.y/Qe(et,re)+et.x,0)),Re.y>1&&re.y>=0?Re=new a.MercatorCoordinate((1-Fe.y)/Qe(Fe,Re)+Fe.x,1):Re.y<0&&re.y<=1&&(Re=new a.MercatorCoordinate(-Fe.y/Qe(Fe,Re)+Fe.x,0)),(new a.LngLatBounds).extend(this.coordinateLocation(re)).extend(this.coordinateLocation(Re)).extend(this.coordinateLocation(et)).extend(this.coordinateLocation(Fe))}_getBoundsRectangularTerrain(){const n=this.elevation;if(!n.visibleDemTiles.length||n.isUsingMockSource())return this._getBoundsRectangular(0,0);const c=n.visibleDemTiles.reduce((m,v)=>{if(v.dem){const b=v.dem.tree;m.min=Math.min(m.min,b.minimums[0]),m.max=Math.max(m.max,b.maximums[0])}return m},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(c.min*n.exaggeration(),c.max*n.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(n=!0){const c=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,m=this.height/2-c*(1-this._horizonShift);return n?Math.max(0,m):m}getMaxBounds(){return this.maxBounds}setMaxBounds(n){this.maxBounds=n,this.minLat=-a.MAX_MERCATOR_LATITUDE,this.maxLat=a.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,n&&(this.minLat=n.getSouth(),this.maxLat=n.getNorth(),this.minLng=n.getWest(),this.maxLng=n.getEast(),this.maxLngre&&(M=re-Z),re-$Fe&&(I=Fe-N),Fe-Re.5?pt-1:pt,gt>.5?gt-1:gt,0]),this.alignedProjMatrix=Pt,M=a.create(),a.scale(M,M,[this.width/2,-this.height/2,1]),a.translate(M,M,[1,-1,0]),this.labelPlaneMatrix=M,M=a.create(),a.scale(M,M,[1,-1,1]),a.translate(M,M,[-1,-1,0]),a.scale(M,M,[2/this.width,2/this.height,1]),this.glCoordMatrix=M,this.pixelMatrix=a.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},M=a.invert(new Float64Array(16),this.pixelMatrix),!M)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=M,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=a.calculateGlobeMatrix(this);const Ft=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=a.transformMat4(Ft,Ft,b),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=M;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const n=this.cameraWorldSizeForFog,c=this.cameraPixelsPerMeter,m=this._camera.position,v=1/this.height/this._pixelsPerMercatorPixel,b=[n,n,c];a.scale$2(b,b,v),a.scale$2(m,m,-1),a.multiply$2(m,m,b);const I=a.create();a.translate(I,I,m),a.scale(I,I,b),this.mercatorFogMatrix=I,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(n,c,v)}_computeCameraPosition(n){const c=(n=n||this.pixelsPerMeter)/this.pixelsPerMeter,m=this._camera.forward(),v=this.point,b=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*c-n/this.worldSize*this._centerAltitude;return[v.x/this.worldSize-m[0]*b,v.y/this.worldSize-m[1]*b,n/this.worldSize*this._centerAltitude-m[2]*b]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(n){const c=this._maxCameraBoundsDistance()*Math.cos(this._pitch),m=this._camera.position[2],v=n[2];let b=1;this.projection.wrap&&(this.center=this.center.wrap()),v>0&&(b=Math.min((c-m)/v,1)),this._camera.position=a.scaleAndAdd([],this._camera.position,n,b),this._updateStateFromCamera()}_updateStateFromCamera(){const n=this._camera.position,c=this._camera.forward(),{pitch:m,bearing:v}=this._camera.getPitchBearing(),b=a.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,I=this._mercatorZfromZoom(this._maxZoom)*Math.cos(a.degToRad(this._maxPitch)),M=Math.max((n[2]-b)/Math.cos(m),I),N=this._zoomFromMercatorZ(M);a.scaleAndAdd(n,n,c,M),this._pitch=a.clamp(m,a.degToRad(this.minPitch),a.degToRad(this.maxPitch)),this.angle=a.wrap(v,-Math.PI,Math.PI),this._setZoom(a.clamp(N,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new a.MercatorCoordinate(n[0],n[1],n[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(n){return Math.pow(2,n)*this.tileSize}_mercatorZfromZoom(n){return this.cameraToCenterDistance/this._worldSizeFromZoom(n)}_minimumHeightOverTerrain(){const n=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(n)}_zoomFromMercatorZ(n){return this.scaleZoom(this.cameraToCenterDistance/(n*this.tileSize))}zoomFromMercatorZAdjusted(n){let c=0,m=a.GLOBE_ZOOM_THRESHOLD_MAX,v=0,b=1/0;for(;m-c>1e-6&&m>c;){const I=c+.5*(m-c),M=this.tileSize*Math.pow(2,I),N=this.getCameraToCenterDistance(this.projection,I,M),Z=this.scaleZoom(N/(n*this.tileSize)),$=Math.abs(I-Z);$Z||Re.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+a.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new a.Point(0,0),new a.Point(this.width,this.height))}zoomDeltaToMovement(n,c){const m=a.length(a.sub([],this._camera.position,n)),v=this._zoomFromMercatorZ(m)+c;return m-this._mercatorZfromZoom(v)}getCameraPoint(){if("globe"===this.projection.name){const n=function([c,m,v],b){const I=[c,m,v,1];a.transformMat4$1(I,I,b);const M=I[3]=Math.max(I[3],1e-6);return I[0]/=M,I[1]/=M,I[2]/=M,I}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new a.Point(n[0],n[1])}{const n=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new a.Point(0,n))}}getCameraToCenterDistance(n,c=this.zoom,m=this.worldSize){const v=Pr(n,c,this.width,this.height,1024),b=n.pixelSpaceConversion(this.center.lat,m,v);return.5/Math.tan(.5*this._fov)*this.height*b}getWorldToCameraMatrix(){const n=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&a.multiply(n,n,this.globeMatrix),n}}function hs(d,n){let c=!1,m=null;const v=()=>{m=null,c&&(d(),m=setTimeout(v,n),c=!1)};return()=>(c=!0,m||v(),m)}class $o{constructor(n){this._hashName=n&&encodeURIComponent(n),a.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=hs(this._updateHashUnthrottled.bind(this),300)}addTo(n){return this._map=n,a.window.addEventListener("hashchange",this._onHashChange,!1),n.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),a.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const n=this._map;if(!n)return"";const c=fs(n);if(this._hashName){const m=this._hashName;let v=!1;const b=a.window.location.hash.slice(1).split("&").map(I=>{const M=I.split("=")[0];return M===m?(v=!0,`${M}=${c}`):I}).filter(I=>I);return v||b.push(`${m}=${c}`),`#${b.join("&")}`}return`#${c}`}_getCurrentHash(){const n=a.window.location.hash.replace("#","");if(this._hashName){let c;return n.split("&").map(m=>m.split("=")).forEach(m=>{m[0]===this._hashName&&(c=m)}),(c&&c[1]||"").split("/")}return n.split("/")}_onHashChange(){const n=this._map;if(!n)return!1;const c=this._getCurrentHash();if(c.length>=3&&!c.some(m=>isNaN(m))){const m=n.dragRotate.isEnabled()&&n.touchZoomRotate.isEnabled()?+(c[3]||0):n.getBearing();return n.jumpTo({center:[+c[2],+c[1]],zoom:+c[0],bearing:m,pitch:+(c[4]||0)}),!0}return!1}_updateHashUnthrottled(){const n=a.window.location.href.replace(/(#.+)?$/,this.getHashString());a.window.history.replaceState(a.window.history.state,null,n)}}function fs(d,n){const c=d.getCenter(),m=Math.round(100*d.getZoom())/100,v=Math.ceil((m*Math.LN2+Math.log(512/360/.5))/Math.LN10),b=Math.pow(10,v),I=Math.round(c.lng*b)/b,M=Math.round(c.lat*b)/b,N=d.getBearing(),Z=d.getPitch();let $=n?`/${I}/${M}/${m}`:`${m}/${M}/${I}`;return(N||Z)&&($+="/"+Math.round(10*N)/10),Z&&($+=`/${Math.round(Z)}`),$}const Yo={linearity:.3,easing:a.bezier(0,0,.3,1)},Zs=a.extend({deceleration:2500,maxSpeed:1400},Yo),el=a.extend({deceleration:20,maxSpeed:1400},Yo),fi=a.extend({deceleration:1e3,maxSpeed:360},Yo),Gs=a.extend({deceleration:1e3,maxSpeed:90},Yo);class wc{constructor(n){this._map=n,this.clear()}clear(){this._inertiaBuffer=[]}record(n){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:a.exported.now(),settings:n})}_drainInertiaBuffer(){const n=this._inertiaBuffer,c=a.exported.now();for(;n.length>0&&c-n[0].time>160;)n.shift()}_onMoveEnd(n){if(this._map._prefersReducedMotion()||(this._drainInertiaBuffer(),this._inertiaBuffer.length<2))return;const c={zoom:0,bearing:0,pitch:0,pan:new a.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:b}of this._inertiaBuffer)c.zoom+=b.zoomDelta||0,c.bearing+=b.bearingDelta||0,c.pitch+=b.pitchDelta||0,b.panDelta&&c.pan._add(b.panDelta),b.around&&(c.around=b.around),b.pinchAround&&(c.pinchAround=b.pinchAround);const m=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,v={};if(c.pan.mag()){const b=vl(c.pan.mag(),m,a.extend({},Zs,n||{}));v.offset=c.pan.mult(b.amount/c.pan.mag()),v.center=this._map.transform.center,nc(v,b)}if(c.zoom){const b=vl(c.zoom,m,el);v.zoom=this._map.transform.zoom+b.amount,nc(v,b)}if(c.bearing){const b=vl(c.bearing,m,fi);v.bearing=this._map.transform.bearing+a.clamp(b.amount,-179,179),nc(v,b)}if(c.pitch){const b=vl(c.pitch,m,Gs);v.pitch=this._map.transform.pitch+b.amount,nc(v,b)}if(v.zoom||v.bearing){const b=void 0===c.pinchAround?c.around:c.pinchAround;v.around=b?this._map.unproject(b):this._map.getCenter()}return this.clear(),v.noMoveStart=!0,v}}function nc(d,n){(!d.duration||d.durationc.unproject(N)),M=b.reduce((N,Z,$,re)=>N.add(Z.div(re.length)),new a.Point(0,0));super(n,{points:b,point:M,lngLats:I,lngLat:c.unproject(M),originalEvent:m}),this._defaultPrevented=!1}}class Oa extends a.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(n,c,m){super(n,{originalEvent:m}),this._defaultPrevented=!1}}class ic{constructor(n,c){this._map=n,this._clickTolerance=c.clickTolerance}reset(){this._mousedownPos=void 0}wheel(n){return this._firePreventable(new Oa(n.type,this._map,n))}mousedown(n,c){return this._mousedownPos=c,this._firePreventable(new Fo(n.type,this._map,n))}mouseup(n){this._map.fire(new Fo(n.type,this._map,n))}preclick(n){const c=a.extend({},n);c.type="preclick",this._map.fire(new Fo(c.type,this._map,c))}click(n,c){this._mousedownPos&&this._mousedownPos.dist(c)>=this._clickTolerance||(this.preclick(n),this._map.fire(new Fo(n.type,this._map,n)))}dblclick(n){return this._firePreventable(new Fo(n.type,this._map,n))}mouseover(n){this._map.fire(new Fo(n.type,this._map,n))}mouseout(n){this._map.fire(new Fo(n.type,this._map,n))}touchstart(n){return this._firePreventable(new ps(n.type,this._map,n))}touchmove(n){this._map.fire(new ps(n.type,this._map,n))}touchend(n){this._map.fire(new ps(n.type,this._map,n))}touchcancel(n){this._map.fire(new ps(n.type,this._map,n))}_firePreventable(n){if(this._map.fire(n),n.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class jr{constructor(n){this._map=n}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(n){this._map.fire(new Fo(n.type,this._map,n))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Fo("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(n){this._delayContextMenu?this._contextMenuEvent=n:this._map.fire(new Fo(n.type,this._map,n)),this._map.listens("contextmenu")&&n.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Cc{constructor(n,c){this._map=n,this._el=n.getCanvasContainer(),this._container=n.getContainer(),this._clickTolerance=c.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(n,c){this.isEnabled()&&n.shiftKey&&0===n.button&&(De(),this._startPos=this._lastPos=c,this._active=!0)}mousemoveWindow(n,c){if(!this._active)return;const m=c,v=this._startPos,b=this._lastPos;if(!v||!b||b.equals(m)||!this._box&&m.dist(v){this._box&&(this._box.style.transform=`translate(${I}px,${N}px)`,this._box.style.width=M-I+"px",this._box.style.height=Z-N+"px")})}mouseupWindow(n,c){if(!this._active)return;const m=this._startPos,v=c;if(m&&0===n.button){if(this.reset(),Ce(),m.x!==v.x||m.y!==v.y)return this._map.fire(new a.Event("boxzoomend",{originalEvent:n})),{cameraAnimation:b=>b.fitScreenCoordinates(m,v,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",n)}}keydown(n){this._active&&27===n.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",n))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),me(),delete this._startPos,delete this._lastPos}_fireEvent(n,c){return this._map.fire(new a.Event(n,{originalEvent:c}))}}function tl(d,n){const c={};for(let m=0;mthis.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=n.timeStamp),m.length===this.numTouches&&(this.centroid=function(v){const b=new a.Point(0,0);for(const I of v)b._add(I);return b.div(v.length)}(c),this.touches=tl(m,c)))}touchmove(n,c,m){if(this.aborted||!this.centroid)return;const v=tl(m,c);for(const b in this.touches){const I=v[b];(!I||I.dist(this.touches[b])>30)&&(this.aborted=!0)}}touchend(n,c,m){if((!this.centroid||n.timeStamp-this.startTime>500)&&(this.aborted=!0),0===m.length){const v=!this.aborted&&this.centroid;if(this.reset(),v)return v}}}class Kc{constructor(n){this.singleTap=new Nr(n),this.numTaps=n.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(n,c,m){this.singleTap.touchstart(n,c,m)}touchmove(n,c,m){this.singleTap.touchmove(n,c,m)}touchend(n,c,m){const v=this.singleTap.touchend(n,c,m);if(v){const b=n.timeStamp-this.lastTime<500,I=!this.lastTap||this.lastTap.dist(v)<30;if(b&&I||this.reset(),this.count++,this.lastTime=n.timeStamp,this.lastTap=v,this.count===this.numTaps)return this.reset(),v}}}class rc{constructor(){this._zoomIn=new Kc({numTouches:1,numTaps:2}),this._zoomOut=new Kc({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(n,c,m){this._zoomIn.touchstart(n,c,m),this._zoomOut.touchstart(n,c,m)}touchmove(n,c,m){this._zoomIn.touchmove(n,c,m),this._zoomOut.touchmove(n,c,m)}touchend(n,c,m){const v=this._zoomIn.touchend(n,c,m),b=this._zoomOut.touchend(n,c,m);return v?(this._active=!0,n.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:I=>I.easeTo({duration:300,zoom:I.getZoom()+1,around:I.unproject(v)},{originalEvent:n})}):b?(this._active=!0,n.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:I=>I.easeTo({duration:300,zoom:I.getZoom()-1,around:I.unproject(b)},{originalEvent:n})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const ya={0:1,2:2};class Zo{constructor(n){this.reset(),this._clickTolerance=n.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(n,c){return!1}_move(n,c){return{}}mousedown(n,c){if(this._lastPoint)return;const m=Be(n);this._correctButton(n,m)&&(this._lastPoint=c,this._eventButton=m)}mousemoveWindow(n,c){const m=this._lastPoint;if(m)if(n.preventDefault(),null!=this._eventButton&&function(v,b){const I=ya[b];return void 0===v.buttons||(v.buttons&I)!==I}(n,this._eventButton))this.reset();else if(this._moved||!(c.dist(m)0&&(this._active=!0);const v=tl(m,c),b=new a.Point(0,0),I=new a.Point(0,0);let M=0;for(const Z in v){const $=v[Z],re=this._touches[Z];re&&(b._add($),I._add($.sub(re)),M++,v[Z]=$)}if(this._touches=v,M{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")},500)}}class Fl{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(n){}_move(n,c,m){return{}}touchstart(n,c,m){this._firstTwoTouches||m.length<2||(this._firstTwoTouches=[m[0].identifier,m[1].identifier],this._start([c[0],c[1]]))}touchmove(n,c,m){const v=this._firstTwoTouches;if(!v)return;n.preventDefault();const[b,I]=v,M=xl(m,c,b),N=xl(m,c,I);if(!M||!N)return;const Z=this._aroundCenter?null:M.add(N).div(2);return this._move([M,N],Z,n)}touchend(n,c,m){if(!this._firstTwoTouches)return;const[v,b]=this._firstTwoTouches,I=xl(m,c,v),M=xl(m,c,b);I&&M||(this._active&&Ce(),this.reset())}touchcancel(){this.reset()}enable(n){this._enabled=!0,this._aroundCenter=!!n&&"center"===n.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function xl(d,n,c){for(let m=0;mMath.abs(d.x)}class Ki extends Fl{constructor(n){super(),this._map=n}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(n){this._lastPoints=n,va(n[0].sub(n[1]))&&(this._valid=!1)}_move(n,c,m){const v=this._lastPoints;if(!v)return;const b=n[0].sub(v[0]),I=n[1].sub(v[1]);return this._map._cooperativeGestures&&!a.isFullscreen()&&m.touches.length<3||(this._valid=this.gestureBeginsVertically(b,I,m.timeStamp),!this._valid)?void 0:(this._lastPoints=n,this._active=!0,{pitchDelta:(b.y+I.y)/2*-.5})}gestureBeginsVertically(n,c,m){if(void 0!==this._valid)return this._valid;const v=n.mag()>=2,b=c.mag()>=2;if(!v&&!b)return;if(!v||!b)return null==this._firstMove&&(this._firstMove=m),m-this._firstMove<100&&void 0;const I=n.y>0==c.y>0;return va(n)&&va(c)&&I}}const Fu={panStep:100,bearingStep:15,pitchStep:10};class up{constructor(){const n=Fu;this._panStep=n.panStep,this._bearingStep=n.bearingStep,this._pitchStep=n.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(n){if(n.altKey||n.ctrlKey||n.metaKey)return;let c=0,m=0,v=0,b=0,I=0;switch(n.keyCode){case 61:case 107:case 171:case 187:c=1;break;case 189:case 109:case 173:c=-1;break;case 37:n.shiftKey?m=-1:(n.preventDefault(),b=-1);break;case 39:n.shiftKey?m=1:(n.preventDefault(),b=1);break;case 38:n.shiftKey?v=1:(n.preventDefault(),I=-1);break;case 40:n.shiftKey?v=-1:(n.preventDefault(),I=1);break;default:return}return this._rotationDisabled&&(m=0,v=0),{cameraAnimation:M=>{const N=M.getZoom();M.easeTo({duration:300,easeId:"keyboardHandler",easing:Qc,zoom:c?Math.round(N)+c*(n.shiftKey?2:1):N,bearing:M.getBearing()+m*this._bearingStep,pitch:M.getPitch()+v*this._pitchStep,offset:[-b*this._panStep,-I*this._panStep],center:M.getCenter()},{originalEvent:n})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function Qc(d){return d*(2-d)}const Ec=4.000244140625;class Tc{constructor(n,c){this._map=n,this._el=n.getCanvasContainer(),this._handler=c,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,a.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(n){this._defaultZoomRate=n}setWheelZoomRate(n){this._wheelZoomRate=n}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(n){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!n&&"center"===n.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(n){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(n.ctrlKey||n.metaKey||this.isZooming()||a.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let c=n.deltaMode===a.window.WheelEvent.DOM_DELTA_LINE?40*n.deltaY:n.deltaY;const m=a.exported.now(),v=m-(this._lastWheelEventTime||0);this._lastWheelEventTime=m,0!==c&&c%Ec==0?this._type="wheel":0!==c&&Math.abs(c)<4?this._type="trackpad":v>400?(this._type=null,this._lastValue=c,this._timeout=setTimeout(this._onTimeout,40,n)):this._type||(this._type=Math.abs(v*c)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,c+=this._lastValue)),n.shiftKey&&c&&(c/=4),this._type&&(this._lastWheelEvent=n,this._delta-=c,this._active||this._start(n)),n.preventDefault()}_onTimeout(n){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(n)}_start(n){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const c=de(this._el,n);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:c,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const n=this._map.transform;"wheel"===this._type&&n.projection.wrap&&(n._center.lng>=180||n._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const c=()=>n._terrainEnabled()&&this._aroundCoord?n.computeZoomRelativeTo(this._aroundCoord):n.zoom;if(0!==this._delta){const N="wheel"===this._type&&Math.abs(this._delta)>Ec?this._wheelZoomRate:this._defaultZoomRate;let Z=2/(1+Math.exp(-Math.abs(this._delta*N)));this._delta<0&&0!==Z&&(Z=1/Z);const $=c(),re=Math.pow(2,$),Re="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):re;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(Re*Z))),"wheel"===this._type&&(this._startZoom=$,this._easing=this._smoothOutEasing(200)),this._delta=0}const m="number"==typeof this._targetZoom?this._targetZoom:c(),v=this._startZoom,b=this._easing;let I,M=!1;if("wheel"===this._type&&v&&b){const N=Math.min((a.exported.now()-this._lastWheelEventTime)/200,1),Z=b(N);I=a.number(v,m,Z),N<1?this._frameId||(this._frameId=!0):M=!0}else I=m,M=!0;return this._active=!0,M&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!M,zoomDelta:I-c(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(n){let c=a.ease;if(this._prevEase){const m=this._prevEase,v=(a.exported.now()-m.start)/m.duration,b=m.easing(v+.01)-m.easing(v),I=.27/Math.sqrt(b*b+1e-4)*.01,M=Math.sqrt(.0729-I*I);c=a.bezier(I,M,.25,1)}return this._prevEase={start:a.exported.now(),duration:n,easing:c},c}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=_e("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(a.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")},200)}}class eu{constructor(n,c){this._clickZoom=n,this._tapZoom=c}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Co{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(n,c){return n.preventDefault(),{cameraAnimation:m=>{m.easeTo({duration:300,zoom:m.getZoom()+(n.shiftKey?-1:1),around:m.unproject(c)},{originalEvent:n})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class xh{constructor(){this._tap=new Kc({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(n,c,m){this._swipePoint||(this._tapTime&&n.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?m.length>0&&(this._swipePoint=c[0],this._swipeTouch=m[0].identifier):this._tap.touchstart(n,c,m))}touchmove(n,c,m){if(this._tapTime){if(this._swipePoint){if(m[0].identifier!==this._swipeTouch)return;const v=c[0],b=v.y-this._swipePoint.y;return this._swipePoint=v,n.preventDefault(),this._active=!0,{zoomDelta:b/128}}}else this._tap.touchmove(n,c,m)}touchend(n,c,m){this._tapTime?this._swipePoint&&0===m.length&&this.reset():this._tap.touchend(n,c,m)&&(this._tapTime=n.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class tu{constructor(n,c,m){this._el=n,this._mousePan=c,this._touchPan=m}enable(n){this._inertiaOptions=n||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Td{constructor(n,c,m){this._pitchWithRotate=n.pitchWithRotate,this._mouseRotate=c,this._mousePitch=m}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class bh{constructor(n,c,m,v){this._el=n,this._touchZoom=c,this._touchRotate=m,this._tapDragZoom=v,this._rotationDisabled=!1,this._enabled=!0}enable(n){this._touchZoom.enable(n),this._rotationDisabled||this._touchRotate.enable(n),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const la=d=>d.zoom||d.drag||d.pitch||d.rotate;class Nn extends a.Event{}class Cr{constructor(){this.constants=[1,1,.01],this.radius=0}setup(n,c){const m=a.sub([],c,n);this.radius=a.length(m[2]<0?a.div([],m,this.constants):[m[0],m[1],0])}projectRay(n){a.div(n,n,this.constants),a.normalize(n,n),a.mul$1(n,n,this.constants);const c=a.scale$2([],n,this.radius);if(c[2]>0){const m=a.scale$2([],[0,0,1],a.dot(c,[0,0,1])),v=a.scale$2([],a.normalize([],[c[0],c[1],0]),this.radius),b=a.add([],c,a.scale$2([],a.sub([],a.add([],v,m),c),2));c[0]=b[0],c[1]=b[1]}return c}}function Ws(d){return d.panDelta&&d.panDelta.mag()||d.zoomDelta||d.bearingDelta||d.pitchDelta}class xa{constructor(n,c){this._map=n,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new wc(n),this._bearingSnap=c.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Cr,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(c),a.bindAll(["handleEvent","handleWindowEvent"],this);const m=this._el;this._listeners=[[m,"touchstart",{passive:!0}],[m,"touchmove",{passive:!1}],[m,"touchend",void 0],[m,"touchcancel",void 0],[m,"mousedown",void 0],[m,"mousemove",void 0],[m,"mouseup",void 0],[a.window.document,"mousemove",{capture:!0}],[a.window.document,"mouseup",void 0],[m,"mouseover",void 0],[m,"mouseout",void 0],[m,"dblclick",void 0],[m,"click",void 0],[m,"keydown",{capture:!1}],[m,"keyup",void 0],[m,"wheel",{passive:!1}],[m,"contextmenu",void 0],[a.window,"blur",void 0]];for(const[v,b,I]of this._listeners)v.addEventListener(b,v===a.window.document?this.handleWindowEvent:this.handleEvent,I)}destroy(){for(const[n,c,m]of this._listeners)n.removeEventListener(c,n===a.window.document?this.handleWindowEvent:this.handleEvent,m)}_addDefaultHandlers(n){const c=this._map,m=c.getCanvasContainer();this._add("mapEvent",new ic(c,n));const v=c.boxZoom=new Cc(c,n);this._add("boxZoom",v);const b=new rc,I=new Co;c.doubleClickZoom=new eu(I,b),this._add("tapZoom",b),this._add("clickZoom",I);const M=new xh;this._add("tapDragZoom",M);const N=c.touchPitch=new Ki(c);this._add("touchPitch",N);const Z=new kl(n),$=new Lu(n);c.dragRotate=new Td(n,Z,$),this._add("mouseRotate",Z,["mousePitch"]),this._add("mousePitch",$,["mouseRotate"]);const re=new Xc(n),Re=new Hs(c,n);c.dragPan=new tu(m,re,Re),this._add("mousePan",re),this._add("touchPan",Re,["touchZoom","touchRotate"]);const Fe=new ms,et=new ku;c.touchZoomRotate=new bh(m,et,Fe,M),this._add("touchRotate",Fe,["touchPan","touchZoom"]),this._add("touchZoom",et,["touchPan","touchRotate"]),this._add("blockableMapEvent",new jr(c));const Qe=c.scrollZoom=new Tc(c,this);this._add("scrollZoom",Qe,["mousePan"]);const nt=c.keyboard=new up;this._add("keyboard",nt);for(const ce of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])n.interactive&&n[ce]&&c[ce].enable(n[ce])}_add(n,c,m){this._handlers.push({handlerName:n,handler:c,allowed:m}),this._handlersById[n]=c}stop(n){if(!this._updatingCamera){for(const{handler:c}of this._handlers)c.reset();this._inertia.clear(),this._fireEvents({},{},n),this._changes=[]}}isActive(){for(const{handler:n}of this._handlers)if(n.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!la(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(n,c,m){for(const v in n)if(v!==m&&(!c||c.indexOf(v)<0))return!0;return!1}handleWindowEvent(n){this.handleEvent(n,`${n.type}Window`)}_getMapTouches(n){const c=[];for(const m of n)this._el.contains(m.target)&&c.push(m);return c}handleEvent(n,c){this._updatingCamera=!0;const m="renderFrame"===n.type,v=m?void 0:n,b={needsRenderFrame:!1},I={},M={},N=n.touches?this._getMapTouches(n.touches):void 0,Z=N?Pe(this._el,N):m?void 0:de(this._el,n);for(const{handlerName:Re,handler:Fe,allowed:et}of this._handlers){if(!Fe.isEnabled())continue;let Qe;this._blockedByActive(M,et,Re)?Fe.reset():Fe[c||n.type]&&(Qe=Fe[c||n.type](n,Z,N),this.mergeHandlerResult(b,I,Qe,Re,v),Qe&&Qe.needsRenderFrame&&this._triggerRenderFrame()),(Qe||Fe.isActive())&&(M[Re]=Fe)}const $={};for(const Re in this._previousActiveHandlers)M[Re]||($[Re]=v);this._previousActiveHandlers=M,(Object.keys($).length||Ws(b))&&(this._changes.push([b,I,$]),this._triggerRenderFrame()),(Object.keys(M).length||Ws(b))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:re}=b;re&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],re(this._map))}mergeHandlerResult(n,c,m,v,b){if(!m)return;a.extend(n,m);const I={handlerName:v,originalEvent:m.originalEvent||b};void 0!==m.zoomDelta&&(c.zoom=I),void 0!==m.panDelta&&(c.drag=I),void 0!==m.pitchDelta&&(c.pitch=I),void 0!==m.bearingDelta&&(c.rotate=I)}_applyChanges(){const n={},c={},m={};for(const[v,b,I]of this._changes)v.panDelta&&(n.panDelta=(n.panDelta||new a.Point(0,0))._add(v.panDelta)),v.zoomDelta&&(n.zoomDelta=(n.zoomDelta||0)+v.zoomDelta),v.bearingDelta&&(n.bearingDelta=(n.bearingDelta||0)+v.bearingDelta),v.pitchDelta&&(n.pitchDelta=(n.pitchDelta||0)+v.pitchDelta),void 0!==v.around&&(n.around=v.around),void 0!==v.aroundCoord&&(n.aroundCoord=v.aroundCoord),void 0!==v.pinchAround&&(n.pinchAround=v.pinchAround),v.noInertia&&(n.noInertia=v.noInertia),a.extend(c,b),a.extend(m,I);this._updateMapTransform(n,c,m),this._changes=[]}_updateMapTransform(n,c,m){const v=this._map,b=v.transform,I=We=>[We.x,We.y,We.z];if((We=>{const pt=this._eventsInProgress.drag;return pt&&!this._handlersById[pt.handlerName].isActive()})()&&!Ws(n)){const We=b.zoom;b.cameraElevationReference="sea",b.recenterOnTerrain(),b.cameraElevationReference="ground",We!==b.zoom&&this._map._update(!0)}if(b._isCameraConstrained&&v._stop(!0),!Ws(n))return void this._fireEvents(c,m,!0);let{panDelta:M,zoomDelta:N,bearingDelta:Z,pitchDelta:$,around:re,aroundCoord:Re,pinchAround:Fe}=n;b._isCameraConstrained&&(N>0&&(N=0),b._isCameraConstrained=!1),void 0!==Fe&&(re=Fe),(N||(We=>c.drag&&!this._eventsInProgress.drag)())&&re&&(this._dragOrigin=I(b.pointCoordinate3D(re)),this._trackingEllipsoid.setup(b._camera.position,this._dragOrigin)),b.cameraElevationReference="sea",v._stop(!0),re=re||v.transform.centerPoint,Z&&(b.bearing+=Z),$&&(b.pitch+=$),b._updateCameraState();const et=[0,0,0];if(M)if("mercator"===b.projection.name){const We=this._trackingEllipsoid.projectRay(b.screenPointToMercatorRay(re).dir),pt=this._trackingEllipsoid.projectRay(b.screenPointToMercatorRay(re.sub(M)).dir);et[0]=pt[0]-We[0],et[1]=pt[1]-We[1]}else{const We=b.pointCoordinate(re);if("globe"===b.projection.name){M=M.rotate(-b.angle);const pt=b._pixelsPerMercatorPixel/b.worldSize;et[0]=-M.x*a.mercatorScale(a.latFromMercatorY(We.y))*pt,et[1]=-M.y*a.mercatorScale(b.center.lat)*pt}else{const pt=b.pointCoordinate(re.sub(M));We&&pt&&(et[0]=pt.x-We.x,et[1]=pt.y-We.y)}}const Qe=b.zoom,nt=[0,0,0];if(N){const We=I(Re||b.pointCoordinate3D(re)),pt={dir:a.normalize([],a.sub([],We,b._camera.position))};if(pt.dir[2]<0){const gt=b.zoomDeltaToMovement(We,N);a.scale$2(nt,pt.dir,gt)}}const ce=a.add(et,et,nt);b._translateCameraConstrained(ce),N&&Math.abs(b.zoom-Qe)>1e-4&&b.recenterOnTerrain(),b.cameraElevationReference="ground",this._map._update(),n.noInertia||this._inertia.record(n),this._fireEvents(c,m,!0)}_fireEvents(n,c,m){const v=la(this._eventsInProgress),b=la(n),I={};for(const $ in n){const{originalEvent:re}=n[$];this._eventsInProgress[$]||(I[`${$}start`]=re),this._eventsInProgress[$]=n[$]}!v&&b&&this._fireEvent("movestart",b.originalEvent);for(const $ in I)this._fireEvent($,I[$]);b&&this._fireEvent("move",b.originalEvent);for(const $ in n){const{originalEvent:re}=n[$];this._fireEvent($,re)}const M={};let N;for(const $ in this._eventsInProgress){const{handlerName:re,originalEvent:Re}=this._eventsInProgress[$];this._handlersById[re].isActive()||(delete this._eventsInProgress[$],N=c[re]||Re,M[`${$}end`]=N)}for(const $ in M)this._fireEvent($,M[$]);const Z=la(this._eventsInProgress);if(m&&(v||b)&&!Z){this._updatingCamera=!0;const $=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),re=Re=>0!==Re&&-this._bearingSnap{this._frameId=void 0,this.handleEvent(new Nn("renderFrame",{timeStamp:n})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Er="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class sc extends a.Evented{constructor(n,c){super(),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=c.bearingSnap,this._respectPrefersReducedMotion=!1!==c.respectPrefersReducedMotion,a.bindAll(["_renderFrameCallback"],this)}getCenter(){return new a.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(n,c){return this.jumpTo({center:n},c)}panBy(n,c,m){return n=a.Point.convert(n).mult(-1),this.panTo(this.transform.center,a.extend({offset:n},c),m)}panTo(n,c,m){return this.easeTo(a.extend({center:n},c),m)}getZoom(){return this.transform.zoom}setZoom(n,c){return this.jumpTo({zoom:n},c),this}zoomTo(n,c,m){return this.easeTo(a.extend({zoom:n},c),m)}zoomIn(n,c){return this.zoomTo(this.getZoom()+1,n,c),this}zoomOut(n,c){return this.zoomTo(this.getZoom()-1,n,c),this}getBearing(){return this.transform.bearing}setBearing(n,c){return this.jumpTo({bearing:n},c),this}getPadding(){return this.transform.padding}setPadding(n,c){return this.jumpTo({padding:n},c),this}rotateTo(n,c,m){return this.easeTo(a.extend({bearing:n},c),m)}resetNorth(n,c){return this.rotateTo(0,a.extend({duration:1e3},n),c),this}resetNorthPitch(n,c){return this.easeTo(a.extend({bearing:0,pitch:0,duration:1e3},n),c),this}snapToNorth(n,c){return Math.abs(this.getBearing())n.aspect?m/(2*Math.tan(.5*n.fovX)*n.aspect):v/(2*Math.tan(.5*n.fovY)*n.aspect)}_cameraForBoundsOnGlobe(n,c,m,v,b,I){const M=n.clone(),N=this._extendCameraOptions(I);M.bearing=v,M.pitch=b;const Z=a.LngLat.convert(c),$=a.LngLat.convert(m),re=.5*(Z.lat+$.lat),Re=.5*(Z.lng+$.lng),Fe=a.latLngToECEF(re,Re),et=a.normalize([],Fe),Qe=a.normalize([],a.cross([],et,[0,1,0])),nt=a.cross([],Qe,et),ce=[Qe[0],Qe[1],Qe[2],0,nt[0],nt[1],nt[2],0,et[0],et[1],et[2],0,0,0,0,1],We=[Fe,a.latLngToECEF(Z.lat,Z.lng),a.latLngToECEF($.lat,Z.lng),a.latLngToECEF($.lat,$.lng),a.latLngToECEF(Z.lat,$.lng),a.latLngToECEF(re,Z.lng),a.latLngToECEF(re,$.lng),a.latLngToECEF(Z.lat,Re),a.latLngToECEF($.lat,Re)];let pt=a.Aabb.fromPoints(We.map(jn=>[a.dot(Qe,jn),a.dot(nt,jn),a.dot(et,jn)]));const gt=a.transformMat4([],pt.center,ce);0===a.squaredLength(gt)&&a.set(gt,0,0,1),a.normalize(gt,gt),a.scale$2(gt,gt,a.GLOBE_RADIUS),M.center=a.ecefToLatLng(gt);const Pt=M.getWorldToCameraMatrix(),Ft=a.invert(new Float64Array(16),Pt);pt=a.Aabb.applyTransform(pt,a.multiply([],Pt,ce)),a.transformMat4(gt,gt,Pt);const Rt=.5*(pt.max[2]-pt.min[2]),qt=this._minimumAABBFrustumDistance(M,pt),Wt=a.scale$2([],[0,0,1],Rt),an=a.add(Wt,gt,Wt),Yn=qt+(0===M.pitch?0:a.distance(gt,an)),tn=M.globeCenterInViewSpace,Pn=a.sub([],gt,[tn[0],tn[1],tn[2]]);a.normalize(Pn,Pn),a.scale$2(Pn,Pn,Yn);const dn=a.add([],gt,Pn);a.transformMat4(dn,dn,Ft);const Zn=a.earthRadius/a.GLOBE_RADIUS,ln=a.length(dn),An=a.mercatorZfromAltitude(Math.max(ln*Zn-a.earthRadius,Number.EPSILON),0),Qn=Math.min(M.zoomFromMercatorZAdjusted(An),N.maxZoom);return Qn>.5*(a.GLOBE_ZOOM_THRESHOLD_MIN+a.GLOBE_ZOOM_THRESHOLD_MAX)?(M.setProjection({name:"mercator"}),M.zoom=Qn,this._cameraForBounds(M,c,m,v,b,I)):{center:M.center,zoom:Qn,bearing:v,pitch:b}}queryTerrainElevation(n,c){const m=this.transform.elevation;return m?(c=a.extend({},{exaggerated:!0},c),m.getAtPoint(a.MercatorCoordinate.fromLngLat(n),null,c.exaggerated)):null}_cameraForBounds(n,c,m,v,b,I){if("globe"===n.projection.name)return this._cameraForBoundsOnGlobe(n,c,m,v,b,I);const M=n.clone(),N=this._extendCameraOptions(I),Z=M.padding;M.bearing=v,M.pitch=b;const $=a.LngLat.convert(c),re=a.LngLat.convert(m),Re=new a.LngLat($.lng,re.lat),Fe=new a.LngLat(re.lng,$.lat),et=M.project($),Qe=M.project(re),nt=this.queryTerrainElevation($),ce=this.queryTerrainElevation(re),We=this.queryTerrainElevation(Re),pt=this.queryTerrainElevation(Fe),gt=[[et.x,et.y,Math.min(nt||0,ce||0,We||0,pt||0)],[Qe.x,Qe.y,Math.max(nt||0,ce||0,We||0,pt||0)]];let Pt=a.Aabb.fromPoints(gt);const Ft=M.getWorldToCameraMatrix(),Rt=a.invert(new Float64Array(16),Ft);Pt=a.Aabb.applyTransform(Pt,Ft);const qt=a.sub([],Pt.max,Pt.min),Wt=Z.left||0,an=Z.right||0,Yn=Z.bottom||0,tn=Z.top||0,{left:Pn,right:dn,top:Zn,bottom:ln}=N.padding,An=.5*(Wt+an),Qn=.5*(tn+Yn),jn=Math.min(M.scaleZoom(M.scale*Math.min((M.width-(Wt+an+Pn+dn))/qt[0],(M.height-(Yn+tn+ln+Zn))/qt[1])),N.maxZoom),ei=M.scale/M.zoomScale(jn);Pt=new a.Aabb([Pt.min[0]-(Pn+An)*ei,Pt.min[1]-(ln+Qn)*ei,Pt.min[2]],[Pt.max[0]+(dn+An)*ei,Pt.max[1]+(Zn+Qn)*ei,Pt.max[2]]);const Ai=.5*qt[2],Ji=this._minimumAABBFrustumDistance(M,Pt),wi=[0,0,1,0];a.transformMat4$1(wi,wi,Ft),a.normalize$2(wi,wi);const Si=a.scale$2([],wi,Ji+Ai),fr=a.add([],Pt.center,Si),tr=("number"==typeof N.offset.x&&"number"==typeof N.offset.y?new a.Point(N.offset.x,N.offset.y):a.Point.convert(N.offset)).rotate(-a.degToRad(v));Pt.center[0]-=tr.x*ei,Pt.center[1]+=tr.y*ei,a.transformMat4(Pt.center,Pt.center,Rt),a.transformMat4(fr,fr,Rt);const Di=[Pt.center[0],Pt.center[1],fr[2]*M.pixelsPerMeter];a.scale$2(Di,Di,1/M.worldSize);const Dr=a.lngFromMercatorX(Di[0]),Qr=a.latFromMercatorY(Di[1]),Vr=Math.min(M._zoomFromMercatorZ(Di[2]),N.maxZoom),$r=new a.LngLat(Dr,Qr);return M.mercatorFromTransition&&Vr<.5*(a.GLOBE_ZOOM_THRESHOLD_MIN+a.GLOBE_ZOOM_THRESHOLD_MAX)?(M.setProjection({name:"globe"}),M.zoom=Vr,this._cameraForBounds(M,c,m,v,b,I)):{center:$r,zoom:Vr,bearing:v,pitch:b}}fitBounds(n,c,m){const v=this.cameraForBounds(n,c);return this._fitInternal(v,c,m)}fitScreenCoordinates(n,c,m,v,b){const I=a.Point.convert(n),M=a.Point.convert(c),N=new a.Point(Math.min(I.x,M.x),Math.min(I.y,M.y)),Z=new a.Point(Math.max(I.x,M.x),Math.max(I.y,M.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(I,M))return this;const $=this.transform.pointLocation3D(N),re=this.transform.pointLocation3D(Z),Re=this.transform.pointLocation3D(new a.Point(N.x,Z.y)),Fe=this.transform.pointLocation3D(new a.Point(Z.x,N.y)),et=[Math.min($.lng,re.lng,Re.lng,Fe.lng),Math.min($.lat,re.lat,Re.lat,Fe.lat)],Qe=[Math.max($.lng,re.lng,Re.lng,Fe.lng),Math.max($.lat,re.lat,Re.lat,Fe.lat)],nt=v&&v.pitch?v.pitch:this.getPitch(),ce=this._cameraForBounds(this.transform,et,Qe,m,nt,v);return this._fitInternal(ce,v,b)}_fitInternal(n,c,m){return n?(delete(c=a.extend(n,c)).padding,c.linear?this.easeTo(c,m):this.flyTo(c,m)):this}jumpTo(n,c){this.stop();const m=n.preloadOnly?this.transform.clone():this.transform;let v=!1,b=!1,I=!1;return"zoom"in n&&m.zoom!==+n.zoom&&(v=!0,m.zoom=+n.zoom),void 0!==n.center&&(m.center=a.LngLat.convert(n.center)),"bearing"in n&&m.bearing!==+n.bearing&&(b=!0,m.bearing=+n.bearing),"pitch"in n&&m.pitch!==+n.pitch&&(I=!0,m.pitch=+n.pitch),null==n.padding||m.isPaddingEqual(n.padding)||(m.padding=n.padding),n.preloadOnly?(this._preloadTiles(m),this):(this.fire(new a.Event("movestart",c)).fire(new a.Event("move",c)),v&&this.fire(new a.Event("zoomstart",c)).fire(new a.Event("zoom",c)).fire(new a.Event("zoomend",c)),b&&this.fire(new a.Event("rotatestart",c)).fire(new a.Event("rotate",c)).fire(new a.Event("rotateend",c)),I&&this.fire(new a.Event("pitchstart",c)).fire(new a.Event("pitch",c)).fire(new a.Event("pitchend",c)),this.fire(new a.Event("moveend",c)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||a.warnOnce(Er),this.transform.getFreeCameraOptions()}setFreeCameraOptions(n,c){const m=this.transform;if(!m.projection.supportsFreeCamera)return a.warnOnce(Er),this;this.stop();const v=m.zoom,b=m.pitch,I=m.bearing;m.setFreeCameraOptions(n);const M=v!==m.zoom,N=b!==m.pitch,Z=I!==m.bearing;return this.fire(new a.Event("movestart",c)).fire(new a.Event("move",c)),M&&this.fire(new a.Event("zoomstart",c)).fire(new a.Event("zoom",c)).fire(new a.Event("zoomend",c)),Z&&this.fire(new a.Event("rotatestart",c)).fire(new a.Event("rotate",c)).fire(new a.Event("rotateend",c)),N&&this.fire(new a.Event("pitchstart",c)).fire(new a.Event("pitch",c)).fire(new a.Event("pitchend",c)),this.fire(new a.Event("moveend",c)),this}easeTo(n,c){this._stop(!1,n.easeId),(!1===(n=a.extend({offset:[0,0],duration:500,easing:a.ease},n)).animate||this._prefersReducedMotion(n))&&(n.duration=0);const m=this.transform,v=this.getZoom(),b=this.getBearing(),I=this.getPitch(),M=this.getPadding(),N="zoom"in n?+n.zoom:v,Z="bearing"in n?this._normalizeBearing(n.bearing,b):b,$="pitch"in n?+n.pitch:I,re="padding"in n?n.padding:m.padding,Re=a.Point.convert(n.offset);let Fe,et,Qe;if("globe"===m.projection.name){const Wt=a.MercatorCoordinate.fromLngLat(m.center),an=Re.rotate(-m.angle);Wt.x+=an.x/m.worldSize,Wt.y+=an.y/m.worldSize;const Yn=Wt.toLngLat(),tn=a.LngLat.convert(n.center||Yn);this._normalizeCenter(tn),Fe=m.centerPoint.add(an),et=new a.Point(Wt.x,Wt.y).mult(m.worldSize),Qe=new a.Point(a.mercatorXfromLng(tn.lng),a.mercatorYfromLat(tn.lat)).mult(m.worldSize).sub(et)}else{Fe=m.centerPoint.add(Re);const Wt=m.pointLocation(Fe),an=a.LngLat.convert(n.center||Wt);this._normalizeCenter(an),et=m.project(Wt),Qe=m.project(an).sub(et)}const nt=m.zoomScale(N-v);let ce,We;n.around&&(ce=a.LngLat.convert(n.around),We=m.locationPoint(ce));const pt=this._zooming||N!==v,gt=this._rotating||b!==Z,Pt=this._pitching||$!==I,Ft=!m.isPaddingEqual(re),Rt=Wt=>an=>{if(pt&&(Wt.zoom=a.number(v,N,an)),gt&&(Wt.bearing=a.number(b,Z,an)),Pt&&(Wt.pitch=a.number(I,$,an)),Ft&&(Wt.interpolatePadding(M,re,an),Fe=Wt.centerPoint.add(Re)),ce)Wt.setLocationAtPoint(ce,We);else{const Yn=Wt.zoomScale(Wt.zoom-v),tn=N>v?Math.min(2,nt):Math.max(.5,nt),Pn=Math.pow(tn,1-an),dn=Wt.unproject(et.add(Qe.mult(an*Pn)).mult(Yn));Wt.setLocationAtPoint(Wt.renderWorldCopies?dn.wrap():dn,Fe)}return n.preloadOnly||this._fireMoveEvents(c),Wt};if(n.preloadOnly){const Wt=this._emulate(Rt,n.duration,m);return this._preloadTiles(Wt),this}const qt={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=pt,this._rotating=gt,this._pitching=Pt,this._padding=Ft,this._easeId=n.easeId,this._prepareEase(c,n.noMoveStart,qt),this._ease(Rt(m),Wt=>{m.recenterOnTerrain(),this._afterEase(c,Wt)},n),this}_prepareEase(n,c,m={}){this._moving=!0,this.transform.cameraElevationReference="sea",c||m.moving||this.fire(new a.Event("movestart",n)),this._zooming&&!m.zooming&&this.fire(new a.Event("zoomstart",n)),this._rotating&&!m.rotating&&this.fire(new a.Event("rotatestart",n)),this._pitching&&!m.pitching&&this.fire(new a.Event("pitchstart",n))}_fireMoveEvents(n){this.fire(new a.Event("move",n)),this._zooming&&this.fire(new a.Event("zoom",n)),this._rotating&&this.fire(new a.Event("rotate",n)),this._pitching&&this.fire(new a.Event("pitch",n))}_afterEase(n,c){if(this._easeId&&c&&this._easeId===c)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const m=this._zooming,v=this._rotating,b=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,m&&this.fire(new a.Event("zoomend",n)),v&&this.fire(new a.Event("rotateend",n)),b&&this.fire(new a.Event("pitchend",n)),this.fire(new a.Event("moveend",n))}flyTo(n,c){if(this._prefersReducedMotion(n)){const jn=a.pick(n,["center","zoom","bearing","pitch","around"]);return this.jumpTo(jn,c)}this.stop(),n=a.extend({offset:[0,0],speed:1.2,curve:1.42,easing:a.ease},n);const m=this.transform,v=this.getZoom(),b=this.getBearing(),I=this.getPitch(),M=this.getPadding(),N="zoom"in n?a.clamp(+n.zoom,m.minZoom,m.maxZoom):v,Z="bearing"in n?this._normalizeBearing(n.bearing,b):b,$="pitch"in n?+n.pitch:I,re="padding"in n?n.padding:m.padding,Re=m.zoomScale(N-v),Fe=a.Point.convert(n.offset);let et=m.centerPoint.add(Fe);const Qe=m.pointLocation(et),nt=a.LngLat.convert(n.center||Qe);this._normalizeCenter(nt);const ce=m.project(Qe),We=m.project(nt).sub(ce);let pt=n.curve;const gt=Math.max(m.width,m.height),Pt=gt/Re,Ft=We.mag();if("minZoom"in n){const jn=a.clamp(Math.min(n.minZoom,v,N),m.minZoom,m.maxZoom),ei=gt/m.zoomScale(jn-v);pt=Math.sqrt(ei/Ft*2)}const Rt=pt*pt;function qt(jn){const ei=(Pt*Pt-gt*gt+(jn?-1:1)*Rt*Rt*Ft*Ft)/(2*(jn?Pt:gt)*Rt*Ft);return Math.log(Math.sqrt(ei*ei+1)-ei)}function Wt(jn){return(Math.exp(jn)-Math.exp(-jn))/2}function an(jn){return(Math.exp(jn)+Math.exp(-jn))/2}const Yn=qt(0);let tn=function(jn){return an(Yn)/an(Yn+pt*jn)},Pn=function(jn){return gt*((an(Yn)*(Wt(ei=Yn+pt*jn)/an(ei))-Wt(Yn))/Rt)/Ft;var ei},dn=(qt(1)-Yn)/pt;if(Math.abs(Ft)<1e-6||!isFinite(dn)){if(Math.abs(gt-Pt)<1e-6)return this.easeTo(n,c);const jn=Ptn.maxDuration&&(n.duration=0);const Zn=b!==Z,ln=$!==I,An=!m.isPaddingEqual(re),Qn=jn=>ei=>{const Ai=ei*dn,Ji=1/tn(Ai);jn.zoom=1===ei?N:v+jn.scaleZoom(Ji),Zn&&(jn.bearing=a.number(b,Z,ei)),ln&&(jn.pitch=a.number(I,$,ei)),An&&(jn.interpolatePadding(M,re,ei),et=jn.centerPoint.add(Fe));const wi=1===ei?nt:jn.unproject(ce.add(We.mult(Pn(Ai))).mult(Ji));return jn.setLocationAtPoint(jn.renderWorldCopies?wi.wrap():wi,et),jn._updateCameraOnTerrain(),n.preloadOnly||this._fireMoveEvents(c),jn};if(n.preloadOnly){const jn=this._emulate(Qn,n.duration,m);return this._preloadTiles(jn),this}return this._zooming=!0,this._rotating=Zn,this._pitching=ln,this._padding=An,this._prepareEase(c,!1),this._ease(Qn(m),()=>this._afterEase(c),n),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(n,c){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const m=this._onEaseEnd;this._onEaseEnd=void 0,m.call(this,c)}if(!n){const m=this.handlers;m&&m.stop(!1)}return this}_ease(n,c,m){!1===m.animate||0===m.duration?(n(1),c()):(this._easeStart=a.exported.now(),this._easeOptions=m,this._onEaseFrame=n,this._onEaseEnd=c,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const n=Math.min((a.exported.now()-this._easeStart)/this._easeOptions.duration,1),c=this._onEaseFrame;c&&c(this._easeOptions.easing(n)),n<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(n,c){n=a.wrap(n,-180,180);const m=Math.abs(n-c);return Math.abs(n-360-c)180?-360:m<-180?360:0}_prefersReducedMotion(n){return this._respectPrefersReducedMotion&&a.exported.prefersReducedMotion&&!(n&&n.essential)}_emulate(n,c,m){const v=Math.ceil(15*c/1e3),b=[],I=n(m.clone());for(let M=0;M<=v;M++){const N=I(M/v);b.push(N.clone())}return b}}class yi{constructor(n={}){this.options=n,a.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(n){const c=this.options&&this.options.compact;return this._map=n,this._container=_e("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=_e("button","mapboxgl-ctrl-attrib-button",this._container),_e("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=_e("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),c&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===c&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(n,c){const m=this._map._getUIString(`AttributionControl.${c}`);n.setAttribute("aria-label",m),n.removeAttribute("title"),n.firstElementChild&&n.firstElementChild.setAttribute("title",m)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let n=this._editLink;n||(n=this._editLink=this._container.querySelector(".mapbox-improve-map"));const c=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||a.config.ACCESS_TOKEN}];if(n){const m=c.reduce((v,b,I)=>(b.value&&(v+=`${b.key}=${b.value}${Iv.length-b.length),n=n.filter((v,b)=>{for(let I=b+1;I=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?n=[...this.options.customAttribution,...n]:n.unshift(this.options.customAttribution));const m=n.join(" | ");m!==this._attribHTML&&(this._attribHTML=m,n.length?(this._innerContainer.innerHTML=m,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class qs{constructor(){a.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(n){this._map=n,this._container=_e("div","mapboxgl-ctrl");const c=_e("a","mapboxgl-ctrl-logo");return c.target="_blank",c.rel="noopener nofollow",c.href="https://www.mapbox.com/",c.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),c.setAttribute("rel","noopener nofollow"),this._container.appendChild(c),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(n){n&&"metadata"!==n.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const n=this._map.style._sourceCaches;if(0===Object.entries(n).length)return!0;for(const c in n){const m=n[c].getSource();if(m.hasOwnProperty("mapbox_logo")&&!m.mapbox_logo)return!1}return!0}_updateCompact(){const n=this._container.children;if(n.length){const c=n[0];this._map.getCanvasContainer().offsetWidth<250?c.classList.add("mapboxgl-compact"):c.classList.remove("mapboxgl-compact")}}}class ac{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(n){const c=++this._id;return this._queue.push({callback:n,id:c,cancelled:!1}),c}remove(n){const c=this._currentlyRunning,m=c?this._queue.concat(c):this._queue;for(const v of m)if(v.id===n)return void(v.cancelled=!0)}run(n=0){const c=this._currentlyRunning=this._queue;this._queue=[];for(const m of c)if(!m.cancelled&&(m.callback(n),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function nl(d,n,c){if(d=new a.LngLat(d.lng,d.lat),n){const m=new a.LngLat(d.lng-360,d.lat),v=new a.LngLat(d.lng+360,d.lat),b=360*Math.ceil(Math.abs(d.lng-c.center.lng)/360),I=c.locationPoint(d).distSqr(n),M=n.x<0||n.y<0||n.x>c.width||n.y>c.height;c.locationPoint(m).distSqr(n)180;){const m=c.locationPoint(d);if(m.x>=0&&m.y>=0&&m.x<=c.width&&m.y<=c.height)break;d.lng>c.center.lng?d.lng-=360:d.lng+=360}return d}const wl={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class pi extends a.Evented{constructor(n,c){if(super(),(n instanceof a.window.HTMLElement||c)&&(n=a.extend({element:n},c)),a.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._scale=n&&n.scale||1,this._draggable=n&&n.draggable||!1,this._clickTolerance=n&&n.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=n&&n.rotation||0,this._rotationAlignment=n&&n.rotationAlignment||"auto",this._pitchAlignment=n&&n.pitchAlignment&&n.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=n&&n.occludedOpacity||.2,n&&n.element)this._element=n.element,this._offset=a.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=_e("div");const v=41,b=27,I=Le("svg",{display:"block",height:v*this._scale+"px",width:b*this._scale+"px",viewBox:`0 0 ${b} ${v}`},this._element),M=Le("radialGradient",{id:"shadowGradient"},Le("defs",{},I));Le("stop",{offset:"10%","stop-opacity":.4},M),Le("stop",{offset:"100%","stop-opacity":.05},M),Le("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},I),Le("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},I),Le("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},I),Le("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},I),this._offset=a.Point.convert(n&&n.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",v=>{v.preventDefault()}),this._element.addEventListener("mousedown",v=>{v.preventDefault()});const m=this._element.classList;for(const v in wl)m.remove(`mapboxgl-marker-anchor-${v}`);m.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(n){return n===this._map||(this.remove(),this._map=n,n.getCanvasContainer().appendChild(this._element),n.on("move",this._updateMoving),n.on("moveend",this._update),n.on("remove",this._clearFadeTimer),n._addMarker(this),this.setDraggable(this._draggable),this._update(),n.on("click",this._onMapClick)),this}remove(){const n=this._map;return n&&(n.off("click",this._onMapClick),n.off("move",this._updateMoving),n.off("moveend",this._update),n.off("mousedown",this._addDragHandler),n.off("touchstart",this._addDragHandler),n.off("mouseup",this._onUp),n.off("touchend",this._onUp),n.off("mousemove",this._onMove),n.off("touchmove",this._onMove),n.off("remove",this._clearFadeTimer),n._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(n){return this._lngLat=a.LngLat.convert(n),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(n){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),n){if(!("offset"in n.options)){const v=Math.sqrt(Math.pow(13.5,2)/2);n.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[v,-1*(24.6+v)],"bottom-right":[-v,-1*(24.6+v)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=n,n._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(n){const c=n.code,m=n.charCode||n.keyCode;"Space"!==c&&"Enter"!==c&&32!==m&&13!==m||this.togglePopup()}_onMapClick(n){const c=n.originalEvent.target,m=this._element;this._popup&&(c===m||m.contains(c))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const n=this._popup;return n?(n.isOpen()?(n.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(n.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const n=this._map,c=this._pos;if(!n||!c)return!1;const m=n.unproject(c),v=n.getFreeCameraOptions();if(!v.position)return!1;const b=v.position.toLngLat();return b.distanceTo(m)<.9*b.distanceTo(this._lngLat)}_evaluateOpacity(){const n=this._map;if(!n)return;const c=this._pos;if(!c||c.x<0||c.x>n.transform.width||c.y<0||c.y>n.transform.height)return void this._clearFadeTimer();const m=n.unproject(c);let v;n._showingGlobe()&&a.isLngLatBehindGlobe(n.transform,this._lngLat)?v=0:(v=1-n._queryFogOpacity(m),n.transform._terrainEnabled()&&n.getTerrain()&&this._behindTerrain()&&(v*=this._occludedOpacity)),this._element.style.opacity=`${v}`,this._element.style.pointerEvents=v>0?"auto":"none",this._popup&&this._popup._setOpacity(v),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const n=this._pos;if(!n||!this._map)return;const c=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${n.x}px,${n.y}px)\n ${wl[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${c.x}px,${c.y}px)\n `}_calculateXYTransform(){const n=this._pos,c=this._map,m=this.getPitchAlignment();if(!c||!n||"map"!==m)return"";if(!c._showingGlobe()){const N=c.getPitch();return N?`rotateX(${N}deg)`:""}const v=a.radToDeg(a.globeTiltAtLngLat(c.transform,this._lngLat)),b=n.sub(a.globeCenterToScreenPoint(c.transform)),I=Math.abs(b.x)+Math.abs(b.y);if(0===I)return"";const M=v/I;return`rotateX(${-b.y*M}deg) rotateY(${b.x*M}deg)`}_calculateZTransform(){const n=this._pos,c=this._map;if(!c||!n)return"";let m=0;const v=this.getRotationAlignment();if("map"===v)if(c._showingGlobe()){const b=c.project(new a.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),I=c.project(new a.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(b);m=a.radToDeg(Math.atan2(I.y,I.x))-90}else m=-c.getBearing();else if("horizon"===v){const b=a.smoothstep(4,6,c.getZoom()),I=a.globeCenterToScreenPoint(c.transform);I.y+=b*c.transform.height;const M=n.sub(I),N=a.radToDeg(Math.atan2(M.y,M.x));m=(N>90?N-270:N+90)*(1-b)}return m+=this._rotation,m?`rotateZ(${m}deg)`:""}_update(n){a.window.cancelAnimationFrame(this._updateFrameId);const c=this._map;c&&(c.transform.renderWorldCopies&&(this._lngLat=nl(this._lngLat,this._pos,c.transform)),this._pos=c.project(this._lngLat),!0===n?this._updateFrameId=a.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),c._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(c._showingGlobe()||c.getTerrain()||c.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(n){return this._offset=a.Point.convert(n),this._update(),this}_onMove(n){const c=this._map;if(!c)return;const m=this._pointerdownPos,v=this._positionDelta;if(m&&v){if(!this._isDragging){const b=this._clickTolerance||c._clickTolerance;if(n.point.dist(m)=this._endTime)return this._end;const c=a.easeCubicInOut((n-this._startTime)/(this._endTime-this._startTime));return this._start*(1-c)+this._end*c}isEasing(n){return n>=this._startTime&&n<=this._endTime}jumpTo(n){this._startTime=-1/0,this._endTime=-1/0,this._start=n,this._end=n}easeTo(n,c,m){this._start=this.getValue(c),this._end=n,this._startTime=c,this._endTime=c+m}}const ba={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},La={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},wh={showCompass:!0,showZoom:!0,visualizePitch:!1};class Dd{constructor(n,c,m=!1){this._clickTolerance=10,this.element=c,this.mouseRotate=new kl({clickTolerance:n.dragRotate._mouseRotate._clickTolerance}),this.map=n,m&&(this.mousePitch=new Lu({clickTolerance:n.dragRotate._mousePitch._clickTolerance})),a.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),c.addEventListener("mousedown",this.mousedown),c.addEventListener("touchstart",this.touchstart,{passive:!1}),c.addEventListener("touchmove",this.touchmove),c.addEventListener("touchend",this.touchend),c.addEventListener("touchcancel",this.reset)}down(n,c){this.mouseRotate.mousedown(n,c),this.mousePitch&&this.mousePitch.mousedown(n,c),De()}move(n,c){const m=this.map,v=this.mouseRotate.mousemoveWindow(n,c),b=v&&v.bearingDelta;if(b&&m.setBearing(m.getBearing()+b),this.mousePitch){const I=this.mousePitch.mousemoveWindow(n,c),M=I&&I.pitchDelta;M&&m.setPitch(m.getPitch()+M)}}off(){const n=this.element;n.removeEventListener("mousedown",this.mousedown),n.removeEventListener("touchstart",this.touchstart,{passive:!1}),n.removeEventListener("touchmove",this.touchmove),n.removeEventListener("touchend",this.touchend),n.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){me(),a.window.removeEventListener("mousemove",this.mousemove),a.window.removeEventListener("mouseup",this.mouseup)}mousedown(n){this.down(a.extend({},n,{ctrlKey:!0,preventDefault:()=>n.preventDefault()}),de(this.element,n)),a.window.addEventListener("mousemove",this.mousemove),a.window.addEventListener("mouseup",this.mouseup)}mousemove(n){this.move(n,de(this.element,n))}mouseup(n){this.mouseRotate.mouseupWindow(n),this.mousePitch&&this.mousePitch.mouseupWindow(n),this.offTemp()}touchstart(n){1!==n.targetTouches.length?this.reset():(this._startPos=this._lastPos=Pe(this.element,n.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>n.preventDefault()},this._startPos))}touchmove(n){1!==n.targetTouches.length?this.reset():(this._lastPos=Pe(this.element,n.targetTouches)[0],this.move({preventDefault:()=>n.preventDefault()},this._lastPos))}touchend(n){0===n.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)d.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=d.minPitch&&null!=d.maxPitch&&d.minPitch>d.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=d.minPitch&&d.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=d.maxPitch&&d.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(d.antialias&&a.isSafariWithAntialiasingBug(a.window)&&(d.antialias=!1,a.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new qo(d.minZoom,d.maxZoom,d.minPitch,d.maxPitch,d.renderWorldCopies),d),this._interactive=d.interactive,this._minTileCacheSize=d.minTileCacheSize,this._maxTileCacheSize=d.maxTileCacheSize,this._failIfMajorPerformanceCaveat=d.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=d.preserveDrawingBuffer,this._antialias=d.antialias,this._useWebGL2=d.useWebGL2,this._trackResize=d.trackResize,this._bearingSnap=d.bearingSnap,this._refreshExpiredTiles=d.refreshExpiredTiles,this._fadeDuration=d.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=d.crossSourceCollisions,this._collectResourceTiming=d.collectResourceTiming,this._optimizeForTerrain=d.optimizeForTerrain,this._language=this._parseLanguage(d.language),this._worldview=d.worldview,this._renderTaskQueue=new ac,this._domRenderTaskQueue=new ac,this._controls=[],this._markers=[],this._popups=[],this._mapId=a.uniqueId(),this._locale=a.extend({},ba,d.locale),this._clickTolerance=d.clickTolerance,this._cooperativeGestures=d.cooperativeGestures,this._performanceMetricsCollection=d.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new nu(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new a.RequestManager(d.transformRequest,d.accessToken,d.testMode),this._silenceAuthErrors=!!d.testMode,"string"==typeof d.container){if(this._container=a.window.document.getElementById(d.container),!this._container)throw new Error(`Container '${d.container}' not found.`)}else{if(!(d.container instanceof a.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=d.container}if(this._container.childNodes.length>0&&a.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),d.maxBounds&&this.setMaxBounds(d.maxBounds),a.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==a.window&&(a.window.addEventListener("online",this._onWindowOnline,!1),a.window.addEventListener("resize",this._onWindowResize,!1),a.window.addEventListener("orientationchange",this._onWindowResize,!1),a.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),a.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new xa(this,d),this._localFontFamily=d.localFontFamily,this._localIdeographFontFamily=d.localIdeographFontFamily,d.style&&this.setStyle(d.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),d.projection&&this.setProjection(d.projection),this._hash=d.hash&&new $o("string"==typeof d.hash&&d.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:d.center,zoom:d.zoom,bearing:d.bearing,pitch:d.pitch}),d.bounds&&(this.resize(),this.fitBounds(d.bounds,a.extend({},d.fitBoundsOptions,{duration:0})))),this.resize(),d.attributionControl&&this.addControl(new yi({customAttribution:d.customAttribution})),this._logoControl=new qs,this.addControl(this._logoControl,d.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",n=>{this._update("style"===n.dataType),this.fire(new a.Event(`${n.dataType}data`,n))}),this.on("dataloading",n=>{this.fire(new a.Event(`${n.dataType}dataloading`,n))})}_getMapId(){return this._mapId}addControl(d,n){if(void 0===n&&(n=d.getDefaultPosition?d.getDefaultPosition():"top-right"),!d||!d.onAdd)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const c=d.onAdd(this);this._controls.push(d);const m=this._controlPositions[n];return-1!==n.indexOf("bottom")?m.insertBefore(c,m.firstChild):m.appendChild(c),this}removeControl(d){if(!d||!d.onRemove)return this.fire(new a.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(d);return n>-1&&this._controls.splice(n,1),d.onRemove(this),this}hasControl(d){return this._controls.indexOf(d)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(d){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new a.Event("movestart",d)).fire(new a.Event("move",d)),this.fire(new a.Event("resize",d)),n&&this.fire(new a.Event("moveend",d)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(d){return this.transform.setMaxBounds(a.LngLatBounds.convert(d)),this._update()}setMinZoom(d){if((d=d??-2)>=-2&&d<=this.transform.maxZoom)return this.transform.minZoom=d,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=d,this._update(),this.getZoom()>d?this.setZoom(d):this.fire(new a.Event("zoomstart")).fire(new a.Event("zoom")).fire(new a.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(d){if((d=d??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(d>=0&&d<=this.transform.maxPitch)return this.transform.minPitch=d,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(d>=this.transform.minPitch)return this.transform.maxPitch=d,this._update(),this.getPitch()>d?this.setPitch(d):this.fire(new a.Event("pitchstart")).fire(new a.Event("pitch")).fire(new a.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(d){return this.transform.renderWorldCopies=d,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(d){return"auto"===d?a.window.navigator.language:Array.isArray(d)?0===d.length?void 0:d.map(n=>"auto"===n?a.window.navigator.language:n):d}setLanguage(d){const n=this._parseLanguage(d);if(!this.style||n===this._language)return this;this._language=n,this.style._reloadSources();for(const c of this._controls)c._setLanguage&&c._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(d){return this.style&&d!==this._worldview?(this._worldview=d,this.style._reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(d){return this._lazyInitEmptyStyle(),d?"string"==typeof d&&(d={name:d}):d=null,this._useExplicitProjection=!!d,this._prioritizeAndUpdateProjection(d,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const d=this.transform,n=d.projection.name;let c;"globe"===n&&d.zoom>=a.GLOBE_ZOOM_THRESHOLD_MAX?(d.setMercatorFromTransition(),c=!0):"mercator"===n&&d.zoom=a.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(d),this.style.applyProjectionUpdate(),n){this.painter.clearBackgroundTiles();for(const c in this.style._sourceCaches)this.style._sourceCaches[c].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(d){return this.transform.locationPoint3D(a.LngLat.convert(d))}unproject(d){return this.transform.pointLocation3D(a.Point.convert(d))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(d,n,c){if("mouseenter"===d||"mouseover"===d){let m=!1;const v=I=>{const M=n.filter(Z=>this.getLayer(Z)),N=M.length?this.queryRenderedFeatures(I.point,{layers:M}):[];N.length?m||(m=!0,c.call(this,new Fo(d,this,I.originalEvent,{features:N}))):m=!1},b=()=>{m=!1};return{layers:new Set(n),listener:c,delegates:{mousemove:v,mouseout:b}}}if("mouseleave"===d||"mouseout"===d){let m=!1;const v=I=>{const M=n.filter(N=>this.getLayer(N));(M.length?this.queryRenderedFeatures(I.point,{layers:M}):[]).length?m=!0:m&&(m=!1,c.call(this,new Fo(d,this,I.originalEvent)))},b=I=>{m&&(m=!1,c.call(this,new Fo(d,this,I.originalEvent)))};return{layers:new Set(n),listener:c,delegates:{mousemove:v,mouseout:b}}}{const m=v=>{const b=n.filter(M=>this.getLayer(M)),I=b.length?this.queryRenderedFeatures(v.point,{layers:b}):[];I.length&&(v.features=I,c.call(this,v),delete v.features)};return{layers:new Set(n),listener:c,delegates:{[d]:m}}}}on(d,n,c){if(void 0===c)return super.on(d,n);Array.isArray(n)||(n=[n]);const m=this._createDelegatedListener(d,n,c);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[d]=this._delegatedListeners[d]||[],this._delegatedListeners[d].push(m);for(const v in m.delegates)this.on(v,m.delegates[v]);return this}once(d,n,c){if(void 0===c)return super.once(d,n);Array.isArray(n)||(n=[n]);const m=this._createDelegatedListener(d,n,c);for(const v in m.delegates)this.once(v,m.delegates[v]);return this}off(d,n,c){if(void 0===c)return super.off(d,n);n=new Set(Array.isArray(n)?n:[n]);const m=(b,I)=>{if(b.size!==I.size)return!1;for(const M of b)if(!I.has(M))return!1;return!0},v=this._delegatedListeners?this._delegatedListeners[d]:void 0;return v&&(b=>{for(let I=0;I{v?this.fire(new a.ErrorEvent(v)):b&&this._updateDiff(b,n)})}else"object"==typeof d&&this._updateDiff(d,n)}_updateDiff(d,n){try{this.style.setState(d)&&this._update(!0)}catch(c){a.warnOnce(`Unable to perform style diff: ${c.message||c.error||c}. Rebuilding the style from scratch.`),this._updateStyle(d,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(a.warnOnce("There is no style added to the map."),!1)}addSource(d,n){return this._lazyInitEmptyStyle(),this.style.addSource(d,n),this._update(!0)}isSourceLoaded(d){return!!this.style&&this.style._isSourceCacheLoaded(d)}areTilesLoaded(){const d=this.style&&this.style._sourceCaches;for(const n in d){const c=d[n]._tiles;for(const m in c){const v=c[m];if("loaded"!==v.state&&"errored"!==v.state)return!1}}return!0}addSourceType(d,n,c){this._lazyInitEmptyStyle(),this.style.addSourceType(d,n,c)}removeSource(d){return this.style.removeSource(d),this._updateTerrain(),this._update(!0)}getSource(d){return this.style.getSource(d)}addImage(d,n,{pixelRatio:c=1,sdf:m=!1,stretchX:v,stretchY:b,content:I}={}){if(this._lazyInitEmptyStyle(),n instanceof a.window.HTMLImageElement||a.window.ImageBitmap&&n instanceof a.window.ImageBitmap){const{width:M,height:N,data:Z}=a.exported.getImageData(n);this.style.addImage(d,{data:new a.RGBAImage({width:M,height:N},Z),pixelRatio:c,stretchX:v,stretchY:b,content:I,sdf:m,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new a.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:M,height:N}=n,Z=n;this.style.addImage(d,{data:new a.RGBAImage({width:M,height:N},new Uint8Array(Z.data)),pixelRatio:c,stretchX:v,stretchY:b,content:I,sdf:m,version:0,userImage:Z}),Z.onAdd&&Z.onAdd(this,d)}}updateImage(d,n){const c=this.style.getImage(d);if(!c)return void this.fire(new a.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const m=n instanceof a.window.HTMLImageElement||a.window.ImageBitmap&&n instanceof a.window.ImageBitmap?a.exported.getImageData(n):n,{width:v,height:b}=m;void 0!==v&&void 0!==b?v===c.data.width&&b===c.data.height?(c.data.replace(m.data,!(n instanceof a.window.HTMLImageElement||a.window.ImageBitmap&&n instanceof a.window.ImageBitmap)),this.style.updateImage(d,c)):this.fire(new a.ErrorEvent(new Error(`The width and height of the updated image (${v}, ${b})\n must be that same as the previous version of the image\n (${c.data.width}, ${c.data.height})`))):this.fire(new a.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(d){return d?!!this.style.getImage(d):(this.fire(new a.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(d){this.style.removeImage(d)}loadImage(d,n){a.getImage(this._requestManager.transformRequest(d,a.ResourceType.Image),(c,m)=>{n(c,m instanceof a.window.HTMLImageElement?a.exported.getImageData(m):m)})}listImages(){return this.style.listImages()}addLayer(d,n){return this._lazyInitEmptyStyle(),this.style.addLayer(d,n),this._update(!0)}moveLayer(d,n){return this.style.moveLayer(d,n),this._update(!0)}removeLayer(d){return this.style.removeLayer(d),this._update(!0)}getLayer(d){return this.style.getLayer(d)}setLayerZoomRange(d,n,c){return this.style.setLayerZoomRange(d,n,c),this._update(!0)}setFilter(d,n,c={}){return this.style.setFilter(d,n,c),this._update(!0)}getFilter(d){return this.style.getFilter(d)}setPaintProperty(d,n,c,m={}){return this.style.setPaintProperty(d,n,c,m),this._update(!0)}getPaintProperty(d,n){return this.style.getPaintProperty(d,n)}setLayoutProperty(d,n,c,m={}){return this.style.setLayoutProperty(d,n,c,m),this._update(!0)}getLayoutProperty(d,n){return this.style.getLayoutProperty(d,n)}setLight(d,n={}){return this._lazyInitEmptyStyle(),this.style.setLight(d,n),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(d){return this._lazyInitEmptyStyle(),!d&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(d),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(d){return this._lazyInitEmptyStyle(),this.style.setFog(d),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(d){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(a.LngLat.convert(d),this.transform):0}setFeatureState(d,n){return this.style.setFeatureState(d,n),this._update()}removeFeatureState(d,n){return this.style.removeFeatureState(d,n),this._update()}getFeatureState(d){return this.style.getFeatureState(d)}_updateContainerDimensions(){if(!this._container)return;const d=this._container.getBoundingClientRect().width||400,n=this._container.getBoundingClientRect().height||300;let c,m,v,b=this._container;for(;b&&(!m||!v);){const I=a.window.getComputedStyle(b).transform;I&&"none"!==I&&(c=I.match(/matrix.*\((.+)\)/)[1].split(", "),c[0]&&"0"!==c[0]&&"1"!==c[0]&&(m=c[0]),c[3]&&"0"!==c[3]&&"1"!==c[3]&&(v=c[3])),b=b.parentElement}this._containerWidth=m?Math.abs(d/m):d,this._containerHeight=v?Math.abs(n/v):n}_detectMissingCSS(){"rgb(250, 128, 114)"!==a.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&a.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const d=this._container;d.classList.add("mapboxgl-map"),(this._missingCSSCanary=_e("div","mapboxgl-canary",d)).style.visibility="hidden",this._detectMissingCSS();const n=this._canvasContainer=_e("div","mapboxgl-canvas-container",d);this._interactive&&n.classList.add("mapboxgl-interactive"),this._canvas=_e("canvas","mapboxgl-canvas",n),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const c=this._controlContainer=_e("div","mapboxgl-control-container",d),m=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(v=>{m[v]=_e("div",`mapboxgl-ctrl-${v}`,c)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(d,n){const c=a.exported.devicePixelRatio||1;this._canvas.width=c*Math.ceil(d),this._canvas.height=c*Math.ceil(n),this._canvas.style.width=`${d}px`,this._canvas.style.height=`${n}px`}_addMarker(d){this._markers.push(d)}_removeMarker(d){const n=this._markers.indexOf(d);-1!==n&&this._markers.splice(n,1)}_addPopup(d){this._popups.push(d)}_removePopup(d){const n=this._popups.indexOf(d);-1!==n&&this._popups.splice(n,1)}_setupPainter(){const d=a.extend({},K.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._useWebGL2&&this._canvas.getContext("webgl2",d),c=n||this._canvas.getContext("webgl",d)||this._canvas.getContext("experimental-webgl",d);c?(this._useWebGL2&&!n&&a.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),a.storeAuthState(c,!0),this.painter=new fe(c,this.transform,!!n),this.on("data",m=>{"source"===m.dataType&&this.painter.setTileLoadedFlag(!0)}),a.exported$1.testSupport(c)):this.fire(new a.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(d){d.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new a.Event("webglcontextlost",{originalEvent:d}))}_contextRestored(d){this._setupPainter(),this.resize(),this._update(),this.fire(new a.Event("webglcontextrestored",{originalEvent:d}))}_onMapScroll(d){if(d.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(d){return this.style?(this._styleDirty=this._styleDirty||d,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(d){return this._update(),this._renderTaskQueue.add(d)}_cancelRenderFrame(d){this._renderTaskQueue.remove(d)}_requestDomTask(d){!this.loaded()||this.loaded()&&!this.isMoving()?d():this._domRenderTaskQueue.add(d)}_render(d){let n;const c=this.painter.context.extTimerQuery,m=a.exported.now();if(this.listens("gpu-timing-frame")&&(n=c.createQueryEXT(),c.beginQueryEXT(c.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],a.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],a.window.performance.now())),this._renderTaskQueue.run(d),this._domRenderTaskQueue.run(d),this._removed)return;this._updateProjectionTransition();const v=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const M=this.transform.zoom,N=this.transform.pitch,Z=a.exported.now(),$=new a.EvaluationParameters(M,{now:Z,fadeDuration:v,pitch:N,transition:this.style.getTransition()});this.style.update($)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let b=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),b=this._updateAverageElevation(m),this.style._updateSources(this.transform),this._forceMarkerAndPopupUpdate()):b=this._updateAverageElevation(m),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,v,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:v,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new a.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new a.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const M=a.exported.now()-m;c.endQueryEXT(c.TIME_ELAPSED_EXT,n),setTimeout(()=>{const N=c.getQueryObjectEXT(n,c.QUERY_RESULT_EXT)/1e6;c.deleteQueryEXT(n),this.fire(new a.Event("gpu-timing-frame",{cpuTime:M,gpuTime:N})),a.window.performance.mark("frame-gpu",{startTime:m,detail:{gpuTime:N}})},50)}if(this.listens("gpu-timing-layer")){const M=this.painter.collectGpuTimers();setTimeout(()=>{const N=this.painter.queryGpuTimers(M);this.fire(new a.Event("gpu-timing-layer",{layerTimes:N}))},50)}if(this.listens("gpu-timing-deferred-render")){const M=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const N=this.painter.queryGpuTimeDeferredRender(M);this.fire(new a.Event("gpu-timing-deferred-render",{gpuTime:N}))},50)}const I=this._sourcesDirty||this._styleDirty||this._placementDirty||b;if(I||this._repaint)this.triggerRepaint();else{const M=!this.isMoving()&&this.loaded();if(M&&(b=this._updateAverageElevation(m,!0)),b)this.triggerRepaint();else if(this._triggerFrame(!1),M&&(this.fire(new a.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const N=this._calculateSpeedIndex();this.fire(new a.Event("speedindexcompleted",{speedIndex:N})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||I||(this._fullyLoaded=!0,a.LivePerformanceUtils.mark(a.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&a.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(d){for(const n of this._markers)d&&!this.getRenderWorldCopies()&&(n._lngLat=n._lngLat.wrap()),n._update();for(const n of this._popups)!d||this.getRenderWorldCopies()||n._trackPointer||(n._lngLat=n._lngLat.wrap()),n._update()}_updateAverageElevation(d,n=!1){const c=m=>(this.transform.averageElevation=m,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&c(0);if((n||d-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(d)){const m=this.transform.averageElevation;let v=this.transform.sampleAverageElevation(),b=!1;this.transform.elevation&&(b=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(v)?v=0:this._averageElevationLastSampledAt=d;const I=Math.abs(m-v);if(I>1){if(this._isInitialLoad||b)return this._averageElevation.jumpTo(v),c(v);this._averageElevation.easeTo(v,d,300)}else if(I>1e-4)return this._averageElevation.jumpTo(v),c(v)}return!!this._averageElevation.isEasing(d)&&c(this._averageElevation.getValue(d))}_authenticate(){a.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,d=>{if(d&&(d.message===a.AUTH_ERR_MSG||401===d.status)){const n=this.painter.context.gl;a.storeAuthState(n,!1),this._logoControl instanceof qs&&this._logoControl._updateLogo(),n&&n.clear(n.DEPTH_BUFFER_BIT|n.COLOR_BUFFER_BIT|n.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new a.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),a.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const d=this._isDragging();this.painter.updateTerrain(this.style,d)}_calculateSpeedIndex(){const d=this.painter.canvasCopy(),n=this.painter.getCanvasCopiesAndTimestamps();n.timeStamps.push(performance.now());const c=this.painter.context.gl,m=c.createFramebuffer();function v(b){c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,b,0);const I=new Uint8Array(c.drawingBufferWidth*c.drawingBufferHeight*4);return c.readPixels(0,0,c.drawingBufferWidth,c.drawingBufferHeight,c.RGBA,c.UNSIGNED_BYTE,I),I}return c.bindFramebuffer(c.FRAMEBUFFER,m),this._canvasPixelComparison(v(d),n.canvasCopies.map(v),n.timeStamps)}_canvasPixelComparison(d,n,c){let m=c[1]-c[0];const v=d.length/4;for(let b=0;b{const c=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,c&&this._render(n)}))}_preloadTiles(d){const n=this.style?Object.values(this.style._sourceCaches):[];return a.asyncAll(n,(c,m)=>c._preloadTiles(d,m),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(d){this._trackResize&&this.resize({originalEvent:d})._update()}_onVisibilityChange(){"hidden"===a.window.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(d){this._showTileBoundaries!==d&&(this._showTileBoundaries=d,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(d){this._showTerrainWireframe!==d&&(this._showTerrainWireframe=d,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(d){this._speedIndexTiming!==d&&(this._speedIndexTiming=d,this._update())}get showPadding(){return!!this._showPadding}set showPadding(d){this._showPadding!==d&&(this._showPadding=d,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(d){this._showCollisionBoxes!==d&&(this._showCollisionBoxes=d,d?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(d){this._showOverdrawInspector!==d&&(this._showOverdrawInspector=d,this._update())}get repaint(){return!!this._repaint}set repaint(d){this._repaint!==d&&(this._repaint=d,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(d){this._vertices=d,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(d){this._showTileAABBs!==d&&(this._showTileAABBs=d,d&&this._update())}_setCacheLimits(d,n){a.setCacheLimits(d,n)}get version(){return a.version}},NavigationControl:class{constructor(d){this.options=a.extend({},wh,d),this._container=_e("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",n=>n.preventDefault()),this.options.showZoom&&(a.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",n=>{this._map&&this._map.zoomIn({},{originalEvent:n})}),_e("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",n=>{this._map&&this._map.zoomOut({},{originalEvent:n})}),_e("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(a.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",n=>{const c=this._map;c&&(this.options.visualizePitch?c.resetNorthPitch({},{originalEvent:n}):c.resetNorth({},{originalEvent:n}))}),this._compassIcon=_e("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const d=this._map;if(!d)return;const n=d.getZoom(),c=n===d.getMaxZoom(),m=n===d.getMinZoom();this._zoomInButton.disabled=c,this._zoomOutButton.disabled=m,this._zoomInButton.setAttribute("aria-disabled",c.toString()),this._zoomOutButton.setAttribute("aria-disabled",m.toString())}_rotateCompassArrow(){const d=this._map;if(!d)return;const n=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(d.transform.pitch*(Math.PI/180)),.5)}) rotateX(${d.transform.pitch}deg) rotateZ(${d.transform.angle*(180/Math.PI)}deg)`:`rotate(${d.transform.angle*(180/Math.PI)}deg)`;d._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=n)})}onAdd(d){return this._map=d,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),d.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&d.on("pitch",this._rotateCompassArrow),d.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Dd(d,this._compass,this.options.visualizePitch)),this._container}onRemove(){const d=this._map;d&&(this._container.remove(),this.options.showZoom&&d.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&d.off("pitch",this._rotateCompassArrow),d.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(d,n){const c=_e("button",d,this._container);return c.type="button",c.addEventListener("click",n),c}_setButtonTitle(d,n){if(!this._map)return;const c=this._map._getUIString(`NavigationControl.${n}`);d.setAttribute("aria-label",c),d.firstElementChild&&d.firstElementChild.setAttribute("title",c)}},GeolocateControl:class extends a.Evented{constructor(d){super(),this.options=a.extend({geolocation:a.window.navigator.geolocation},P,d),a.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=hs(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(d){return this._map=d,this._container=_e("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(d){const n=(c=!!this.options.geolocation)=>{this._supportsGeolocation=c,d(c)};void 0!==this._supportsGeolocation?d(this._supportsGeolocation):void 0!==a.window.navigator.permissions?a.window.navigator.permissions.query({name:"geolocation"}).then(c=>n("denied"!==c.state)).catch(()=>n()):n()}_isOutOfMapMaxBounds(d){const n=this._map.getMaxBounds(),c=d.coords;return!!n&&(c.longituden.getEast()||c.latituden.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(d){if(this._map){if(this._isOutOfMapMaxBounds(d))return this._setErrorState(),this.fire(new a.Event("outofmaxbounds",d)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=d,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(d),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(d),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("geolocate",d)),this._finish()}}_updateCamera(d){const n=new a.LngLat(d.coords.longitude,d.coords.latitude),c=d.coords.accuracy,m=this._map.getBearing(),v=a.extend({bearing:m},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(c),v,{geolocateSource:!0})}_updateMarker(d){if(d){const n=new a.LngLat(d.coords.longitude,d.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=d.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const d=this._map.transform,n=a.mercatorZfromAltitude(1,d._center.lat)*d.worldSize,c=Math.ceil(2*this._accuracy*n);this._circleElement.style.width=`${c}px`,this._circleElement.style.height=`${c}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(d){if(this._map){if(this.options.trackUserLocation)if(1===d.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===d.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new a.Event("error",d)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(d){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",n=>n.preventDefault()),this._geolocateButton=_e("button","mapboxgl-ctrl-geolocate",this._container),_e("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===d){a.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n)}else{const n=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=_e("div","mapboxgl-user-location"),this._dotElement.appendChild(_e("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(_e("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new pi({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=_e("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new pi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",n=>{n.geolocateSource||"ACTIVE_LOCK"!==this._watchState||n.originalEvent&&"resize"===n.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new a.Event("trackuserlocationend")))})}}_onDeviceOrientation(d){this._userLocationDotMarker&&(d.webkitCompassHeading?this._heading=d.webkitCompassHeading:!0===d.absolute&&(this._heading=-1*d.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return a.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new a.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new a.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new a.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let d;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(d={maximumAge:6e5,timeout:0},this._noTimeout=!0):(d=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,d),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const d=()=>{a.window.addEventListener("ondeviceorientationabsolute"in a.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==a.window.DeviceMotionEvent&&"function"==typeof a.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(n=>{"granted"===n&&d()}).catch(console.error):d()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),a.window.removeEventListener("deviceorientation",this._onDeviceOrientation),a.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:yi,ScaleControl:class{constructor(d){this.options=a.extend({},U,d),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),a.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const d=this.options.maxWidth||100,n=this._map,c=n._containerHeight/2,m=n._containerWidth/2-d/2,v=n.unproject([m,c]),b=n.unproject([m+d,c]),I=v.distanceTo(b);if("imperial"===this.options.unit){const M=3.2808*I;M>5280?this._setScale(d,M/5280,"mile"):this._setScale(d,M,"foot")}else"nautical"===this.options.unit?this._setScale(d,I/1852,"nautical-mile"):I>=1e3?this._setScale(d,I/1e3,"kilometer"):this._setScale(d,I,"meter")}_setScale(d,n,c){this._map._requestDomTask(()=>{const m=function(b){const I=Math.pow(10,`${Math.floor(b)}`.length-1);let M=b/I;return M=M>=10?10:M>=5?5:M>=3?3:M>=2?2:M>=1?1:function(N){const Z=Math.pow(10,Math.ceil(-Math.log(N)/Math.LN10));return Math.round(N*Z)/Z}(M),I*M}(n),v=m/n;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==c?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:c}).format(m):`${m} ${O[c]}`,this._container.style.width=d*v+"px"})}onAdd(d){return this._map=d,this._language=d.getLanguage(),this._container=_e("div","mapboxgl-ctrl mapboxgl-ctrl-scale",d.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(d){this._language=d,this._update()}setUnit(d){this.options.unit=d,this._update()}},FullscreenControl:class{constructor(d){this._fullscreen=!1,d&&d.container&&(d.container instanceof a.window.HTMLElement?this._container=d.container:a.warnOnce("Full screen control 'container' must be a DOM element.")),a.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in a.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in a.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(d){return this._map=d,this._container||(this._container=this._map.getContainer()),this._controlContainer=_e("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",a.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,a.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!a.window.document.fullscreenEnabled&&!a.window.document.webkitFullscreenEnabled)}_setupUI(){const d=this._fullscreenButton=_e("button","mapboxgl-ctrl-fullscreen",this._controlContainer);_e("span","mapboxgl-ctrl-icon",d).setAttribute("aria-hidden","true"),d.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),a.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const d=this._getTitle();this._fullscreenButton.setAttribute("aria-label",d),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",d)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(a.window.document.fullscreenElement||a.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?a.window.document.exitFullscreen?a.window.document.exitFullscreen():a.window.document.webkitCancelFullScreen&&a.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends a.Evented{constructor(d){super(),this.options=a.extend(Object.create(lc),d),a.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(d&&d.className?d.className.trim().split(/\s+/):[])}addTo(d){return this._map&&this.remove(),this._map=d,this.options.closeOnClick&&d.on("preclick",this._onClose),this.options.closeOnMove&&d.on("move",this._onClose),d.on("remove",this.remove),this._update(),d._addPopup(this),this._focusFirstElement(),this._trackPointer?(d.on("mousemove",this._onMouseEvent),d.on("mouseup",this._onMouseEvent),d._canvasContainer.classList.add("mapboxgl-track-pointer")):d.on("move",this._update),this.fire(new a.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const d=this._map;return d&&(d.off("move",this._update),d.off("move",this._onClose),d.off("preclick",this._onClose),d.off("click",this._onClose),d.off("remove",this.remove),d.off("mousemove",this._onMouseEvent),d.off("mouseup",this._onMouseEvent),d.off("drag",this._onMouseEvent),d._canvasContainer&&d._canvasContainer.classList.remove("mapboxgl-track-pointer"),d._removePopup(this),this._map=void 0),this.fire(new a.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(d){this._lngLat=a.LngLat.convert(d),this._pos=null,this._trackPointer=!1,this._update();const n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const d=this._map;return d&&(d.off("move",this._update),d.on("mousemove",this._onMouseEvent),d.on("drag",this._onMouseEvent),d._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(d){return this.setDOMContent(a.window.document.createTextNode(d))}setHTML(d){const n=a.window.document.createDocumentFragment(),c=a.window.document.createElement("body");let m;for(c.innerHTML=d;m=c.firstChild,m;)n.appendChild(m);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(d){return this.options.maxWidth=d,this._update(),this}setDOMContent(d){let n=this._content;if(n)for(;n.hasChildNodes();)n.firstChild&&n.removeChild(n.firstChild);else n=this._content=_e("div","mapboxgl-popup-content",this._container||void 0);if(n.appendChild(d),this.options.closeButton){const c=this._closeButton=_e("button","mapboxgl-popup-close-button",n);c.type="button",c.setAttribute("aria-label","Close popup"),c.setAttribute("aria-hidden","true"),c.innerHTML="×",c.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(d){return this._classList.add(d),this._updateClassList(),this}removeClassName(d){return this._classList.delete(d),this._updateClassList(),this}setOffset(d){return this.options.offset=d,this._update(),this}toggleClassName(d){let n;return this._classList.delete(d)?n=!1:(this._classList.add(d),n=!0),this._updateClassList(),n}_onMouseEvent(d){this._update(d.point)}_getAnchor(d){if(this.options.anchor)return this.options.anchor;const n=this._map,c=this._container,m=this._pos;if(!n||!c||!m)return"bottom";const v=c.offsetWidth,b=c.offsetHeight,I=m.xn.transform.width-v/2;if(m.y+dn.transform.height-b){if(I)return"bottom-left";if(M)return"bottom-right"}return I?"left":M?"right":"bottom"}_updateClassList(){const d=this._container;if(!d)return;const n=[...this._classList];n.push("mapboxgl-popup"),this._anchor&&n.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&n.push("mapboxgl-popup-track-pointer"),d.className=n.join(" ")}_update(d){const n=this._map,c=this._content;if(!n||!this._lngLat&&!this._trackPointer||!c)return;let m=this._container;if(m||(m=this._container=_e("div","mapboxgl-popup",n.getContainer()),this._tip=_e("div","mapboxgl-popup-tip",m),m.appendChild(c)),this.options.maxWidth&&m.style.maxWidth!==this.options.maxWidth&&(m.style.maxWidth=this.options.maxWidth),n.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=nl(this._lngLat,this._pos,n.transform)),!this._trackPointer||d){const v=this._pos=this._trackPointer&&d?d:n.project(this._lngLat),b=Ra(this.options.offset),I=this._anchor=this._getAnchor(b.y),M=Ra(this.options.offset,I),N=v.add(M).round();n._requestDomTask(()=>{this._container&&I&&(this._container.style.transform=`${wl[I]} translate(${N.x}px,${N.y}px)`)})}if(!this._marker&&n._showingGlobe()){const v=a.isLngLatBehindGlobe(n.transform,this._lngLat)?0:1;this._setOpacity(v)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const d=this._container.querySelector(os);d&&d.focus()}_onClose(){this.remove()}_setOpacity(d){this._container&&(this._container.style.opacity=`${d}`),this._content&&(this._content.style.pointerEvents=d?"auto":"none")}},Marker:pi,Style:lo,LngLat:a.LngLat,LngLatBounds:a.LngLatBounds,Point:a.Point,MercatorCoordinate:a.MercatorCoordinate,FreeCameraOptions:Ur,Evented:a.Evented,config:a.config,prewarm:function(){ho().acquire(yr)},clearPrewarmedResources:function(){const d=Fr;d&&(d.isPreloaded()&&1===d.numActive()?(d.release(yr),Fr=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return a.config.ACCESS_TOKEN},set accessToken(d){a.config.ACCESS_TOKEN=d},get baseApiUrl(){return a.config.API_URL},set baseApiUrl(d){a.config.API_URL=d},get workerCount(){return Ui.workerCount},set workerCount(d){Ui.workerCount=d},get maxParallelImageRequests(){return a.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(d){a.config.MAX_PARALLEL_IMAGE_REQUESTS=d},clearStorage(d){a.clearTileCache(d)},workerUrl:"",workerClass:null,setNow:a.exported.setNow,restoreNow:a.exported.restoreNow};return z}),h}()},5619:(zn,wt,S)=>{"use strict";S.d(wt,{X:()=>p});var h=S(8645);class p extends h.x{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const j=super._subscribe(a);return!j.closed&&a.next(this._value),j}getValue(){const{hasError:a,thrownError:j,_value:K}=this;if(a)throw j;return this._throwIfClosed(),K}next(a){super.next(this._value=a)}}},5592:(zn,wt,S)=>{"use strict";S.d(wt,{y:()=>oe});var h=S(305),p=S(7394),X=S(4850),a=S(8407),j=S(2653),K=S(4674),C=S(1441);let oe=(()=>{class Te{constructor(De){De&&(this._subscribe=De)}lift(De){const me=new Te;return me.source=this,me.operator=De,me}subscribe(De,me,Ye){const Ce=function ee(Te){return Te&&Te instanceof h.Lv||function Le(Te){return Te&&(0,K.m)(Te.next)&&(0,K.m)(Te.error)&&(0,K.m)(Te.complete)}(Te)&&(0,p.Nn)(Te)}(De)?De:new h.Hp(De,me,Ye);return(0,C.x)(()=>{const{operator:de,source:Pe}=this;Ce.add(de?de.call(Ce,Pe):Pe?this._subscribe(Ce):this._trySubscribe(Ce))}),Ce}_trySubscribe(De){try{return this._subscribe(De)}catch(me){De.error(me)}}forEach(De,me){return new(me=_e(me))((Ye,Ce)=>{const de=new h.Hp({next:Pe=>{try{De(Pe)}catch(Be){Ce(Be),de.unsubscribe()}},error:Ce,complete:Ye});this.subscribe(de)})}_subscribe(De){var me;return null===(me=this.source)||void 0===me?void 0:me.subscribe(De)}[X.L](){return this}pipe(...De){return(0,a.U)(De)(this)}toPromise(De){return new(De=_e(De))((me,Ye)=>{let Ce;this.subscribe(de=>Ce=de,de=>Ye(de),()=>me(Ce))})}}return Te.create=ye=>new Te(ye),Te})();function _e(Te){var ye;return null!==(ye=Te??j.config.Promise)&&void 0!==ye?ye:Promise}},8645:(zn,wt,S)=>{"use strict";S.d(wt,{x:()=>C});var h=S(5592),p=S(7394);const a=(0,S(2306).d)(_e=>function(){_e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var j=S(9039),K=S(1441);let C=(()=>{class _e extends h.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(ee){const Te=new oe(this,this);return Te.operator=ee,Te}_throwIfClosed(){if(this.closed)throw new a}next(ee){(0,K.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const Te of this.currentObservers)Te.next(ee)}})}error(ee){(0,K.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=ee;const{observers:Te}=this;for(;Te.length;)Te.shift().error(ee)}})}complete(){(0,K.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:ee}=this;for(;ee.length;)ee.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var ee;return(null===(ee=this.observers)||void 0===ee?void 0:ee.length)>0}_trySubscribe(ee){return this._throwIfClosed(),super._trySubscribe(ee)}_subscribe(ee){return this._throwIfClosed(),this._checkFinalizedStatuses(ee),this._innerSubscribe(ee)}_innerSubscribe(ee){const{hasError:Te,isStopped:ye,observers:De}=this;return Te||ye?p.Lc:(this.currentObservers=null,De.push(ee),new p.w0(()=>{this.currentObservers=null,(0,j.P)(De,ee)}))}_checkFinalizedStatuses(ee){const{hasError:Te,thrownError:ye,isStopped:De}=this;Te?ee.error(ye):De&&ee.complete()}asObservable(){const ee=new h.y;return ee.source=this,ee}}return _e.create=(Le,ee)=>new oe(Le,ee),_e})();class oe extends C{constructor(Le,ee){super(),this.destination=Le,this.source=ee}next(Le){var ee,Te;null===(Te=null===(ee=this.destination)||void 0===ee?void 0:ee.next)||void 0===Te||Te.call(ee,Le)}error(Le){var ee,Te;null===(Te=null===(ee=this.destination)||void 0===ee?void 0:ee.error)||void 0===Te||Te.call(ee,Le)}complete(){var Le,ee;null===(ee=null===(Le=this.destination)||void 0===Le?void 0:Le.complete)||void 0===ee||ee.call(Le)}_subscribe(Le){var ee,Te;return null!==(Te=null===(ee=this.source)||void 0===ee?void 0:ee.subscribe(Le))&&void 0!==Te?Te:p.Lc}}},305:(zn,wt,S)=>{"use strict";S.d(wt,{Hp:()=>Ye,Lv:()=>Te});var h=S(4674),p=S(7394),X=S(2653),a=S(3894),j=S(2420);const K=_e("C",void 0,void 0);function _e(Ne,Ae,Ge){return{kind:Ne,value:Ae,error:Ge}}var Le=S(7599),ee=S(1441);class Te extends p.w0{constructor(Ae){super(),this.isStopped=!1,Ae?(this.destination=Ae,(0,p.Nn)(Ae)&&Ae.add(this)):this.destination=Be}static create(Ae,Ge,lt){return new Ye(Ae,Ge,lt)}next(Ae){this.isStopped?Pe(function oe(Ne){return _e("N",Ne,void 0)}(Ae),this):this._next(Ae)}error(Ae){this.isStopped?Pe(function C(Ne){return _e("E",void 0,Ne)}(Ae),this):(this.isStopped=!0,this._error(Ae))}complete(){this.isStopped?Pe(K,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ae){this.destination.next(Ae)}_error(Ae){try{this.destination.error(Ae)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const ye=Function.prototype.bind;function De(Ne,Ae){return ye.call(Ne,Ae)}class me{constructor(Ae){this.partialObserver=Ae}next(Ae){const{partialObserver:Ge}=this;if(Ge.next)try{Ge.next(Ae)}catch(lt){Ce(lt)}}error(Ae){const{partialObserver:Ge}=this;if(Ge.error)try{Ge.error(Ae)}catch(lt){Ce(lt)}else Ce(Ae)}complete(){const{partialObserver:Ae}=this;if(Ae.complete)try{Ae.complete()}catch(Ge){Ce(Ge)}}}class Ye extends Te{constructor(Ae,Ge,lt){let ne;if(super(),(0,h.m)(Ae)||!Ae)ne={next:Ae??void 0,error:Ge??void 0,complete:lt??void 0};else{let Ee;this&&X.config.useDeprecatedNextContext?(Ee=Object.create(Ae),Ee.unsubscribe=()=>this.unsubscribe(),ne={next:Ae.next&&De(Ae.next,Ee),error:Ae.error&&De(Ae.error,Ee),complete:Ae.complete&&De(Ae.complete,Ee)}):ne=Ae}this.destination=new me(ne)}}function Ce(Ne){X.config.useDeprecatedSynchronousErrorHandling?(0,ee.O)(Ne):(0,a.h)(Ne)}function Pe(Ne,Ae){const{onStoppedNotification:Ge}=X.config;Ge&&Le.z.setTimeout(()=>Ge(Ne,Ae))}const Be={closed:!0,next:j.Z,error:function de(Ne){throw Ne},complete:j.Z}},7394:(zn,wt,S)=>{"use strict";S.d(wt,{Lc:()=>K,w0:()=>j,Nn:()=>C});var h=S(4674);const X=(0,S(2306).d)(_e=>function(ee){_e(this),this.message=ee?`${ee.length} errors occurred during unsubscription:\n${ee.map((Te,ye)=>`${ye+1}) ${Te.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=ee});var a=S(9039);class j{constructor(Le){this.initialTeardown=Le,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Le;if(!this.closed){this.closed=!0;const{_parentage:ee}=this;if(ee)if(this._parentage=null,Array.isArray(ee))for(const De of ee)De.remove(this);else ee.remove(this);const{initialTeardown:Te}=this;if((0,h.m)(Te))try{Te()}catch(De){Le=De instanceof X?De.errors:[De]}const{_finalizers:ye}=this;if(ye){this._finalizers=null;for(const De of ye)try{oe(De)}catch(me){Le=Le??[],me instanceof X?Le=[...Le,...me.errors]:Le.push(me)}}if(Le)throw new X(Le)}}add(Le){var ee;if(Le&&Le!==this)if(this.closed)oe(Le);else{if(Le instanceof j){if(Le.closed||Le._hasParent(this))return;Le._addParent(this)}(this._finalizers=null!==(ee=this._finalizers)&&void 0!==ee?ee:[]).push(Le)}}_hasParent(Le){const{_parentage:ee}=this;return ee===Le||Array.isArray(ee)&&ee.includes(Le)}_addParent(Le){const{_parentage:ee}=this;this._parentage=Array.isArray(ee)?(ee.push(Le),ee):ee?[ee,Le]:Le}_removeParent(Le){const{_parentage:ee}=this;ee===Le?this._parentage=null:Array.isArray(ee)&&(0,a.P)(ee,Le)}remove(Le){const{_finalizers:ee}=this;ee&&(0,a.P)(ee,Le),Le instanceof j&&Le._removeParent(this)}}j.EMPTY=(()=>{const _e=new j;return _e.closed=!0,_e})();const K=j.EMPTY;function C(_e){return _e instanceof j||_e&&"closed"in _e&&(0,h.m)(_e.remove)&&(0,h.m)(_e.add)&&(0,h.m)(_e.unsubscribe)}function oe(_e){(0,h.m)(_e)?_e():_e.unsubscribe()}},2653:(zn,wt,S)=>{"use strict";S.d(wt,{config:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(zn,wt,S)=>{"use strict";S.d(wt,{a:()=>Le});var h=S(5592),p=S(7453),X=S(7715),a=S(2737),j=S(7400),K=S(4564),C=S(2714),oe=S(8251),_e=S(7103);function Le(...ye){const De=(0,K.yG)(ye),me=(0,K.jO)(ye),{args:Ye,keys:Ce}=(0,p.D)(ye);if(0===Ye.length)return(0,X.D)([],De);const de=new h.y(function ee(ye,De,me=a.y){return Ye=>{Te(De,()=>{const{length:Ce}=ye,de=new Array(Ce);let Pe=Ce,Be=Ce;for(let Ne=0;Ne{const Ae=(0,X.D)(ye[Ne],De);let Ge=!1;Ae.subscribe((0,oe.x)(Ye,lt=>{de[Ne]=lt,Ge||(Ge=!0,Be--),Be||Ye.next(me(de.slice()))},()=>{--Pe||Ye.complete()}))},Ye)},Ye)}}(Ye,De,Ce?Pe=>(0,C.n)(Ce,Pe):a.y));return me?de.pipe((0,j.Z)(me)):de}function Te(ye,De,me){ye?(0,_e.f)(me,ye,De):De()}},5211:(zn,wt,S)=>{"use strict";S.d(wt,{z:()=>j});var h=S(7537),X=S(4564),a=S(7715);function j(...K){return function p(){return(0,h.J)(1)}()((0,a.D)(K,(0,X.yG)(K)))}},4911:(zn,wt,S)=>{"use strict";S.d(wt,{P:()=>X});var h=S(5592),p=S(4829);function X(a){return new h.y(j=>{(0,p.Xf)(a()).subscribe(j)})}},6232:(zn,wt,S)=>{"use strict";S.d(wt,{E:()=>p});const p=new(S(5592).y)(j=>j.complete())},9315:(zn,wt,S)=>{"use strict";S.d(wt,{D:()=>oe});var h=S(5592),p=S(7453),X=S(4829),a=S(4564),j=S(8251),K=S(7400),C=S(2714);function oe(..._e){const Le=(0,a.jO)(_e),{args:ee,keys:Te}=(0,p.D)(_e),ye=new h.y(De=>{const{length:me}=ee;if(!me)return void De.complete();const Ye=new Array(me);let Ce=me,de=me;for(let Pe=0;Pe{Be||(Be=!0,de--),Ye[Pe]=Ne},()=>Ce--,void 0,()=>{(!Ce||!Be)&&(de||De.next(Te?(0,C.n)(Te,Ye):Ye),De.complete())}))}});return Le?ye.pipe((0,K.Z)(Le)):ye}},7715:(zn,wt,S)=>{"use strict";S.d(wt,{D:()=>lt});var h=S(4829),p=S(7103),X=S(9360),a=S(8251);function j(ne,Ee=0){return(0,X.e)((xe,je)=>{xe.subscribe((0,a.x)(je,Se=>(0,p.f)(je,ne,()=>je.next(Se),Ee),()=>(0,p.f)(je,ne,()=>je.complete(),Ee),Se=>(0,p.f)(je,ne,()=>je.error(Se),Ee)))})}function K(ne,Ee=0){return(0,X.e)((xe,je)=>{je.add(ne.schedule(()=>xe.subscribe(je),Ee))})}var _e=S(5592),ee=S(4971),Te=S(4674);function De(ne,Ee){if(!ne)throw new Error("Iterable cannot be null");return new _e.y(xe=>{(0,p.f)(xe,Ee,()=>{const je=ne[Symbol.asyncIterator]();(0,p.f)(xe,Ee,()=>{je.next().then(Se=>{Se.done?xe.complete():xe.next(Se.value)})},0,!0)})})}var me=S(8382),Ye=S(4026),Ce=S(4266),de=S(3664),Pe=S(5726),Be=S(9853),Ne=S(541);function lt(ne,Ee){return Ee?function Ge(ne,Ee){if(null!=ne){if((0,me.c)(ne))return function C(ne,Ee){return(0,h.Xf)(ne).pipe(K(Ee),j(Ee))}(ne,Ee);if((0,Ce.z)(ne))return function Le(ne,Ee){return new _e.y(xe=>{let je=0;return Ee.schedule(function(){je===ne.length?xe.complete():(xe.next(ne[je++]),xe.closed||this.schedule())})})}(ne,Ee);if((0,Ye.t)(ne))return function oe(ne,Ee){return(0,h.Xf)(ne).pipe(K(Ee),j(Ee))}(ne,Ee);if((0,Pe.D)(ne))return De(ne,Ee);if((0,de.T)(ne))return function ye(ne,Ee){return new _e.y(xe=>{let je;return(0,p.f)(xe,Ee,()=>{je=ne[ee.h](),(0,p.f)(xe,Ee,()=>{let Se,Ve;try{({value:Se,done:Ve}=je.next())}catch(Xe){return void xe.error(Xe)}Ve?xe.complete():xe.next(Se)},0,!0)}),()=>(0,Te.m)(je?.return)&&je.return()})}(ne,Ee);if((0,Ne.L)(ne))return function Ae(ne,Ee){return De((0,Ne.Q)(ne),Ee)}(ne,Ee)}throw(0,Be.z)(ne)}(ne,Ee):(0,h.Xf)(ne)}},2438:(zn,wt,S)=>{"use strict";S.d(wt,{R:()=>Le});var h=S(4829),p=S(5592),X=S(1631),a=S(4266),j=S(4674),K=S(7400);const C=["addListener","removeListener"],oe=["addEventListener","removeEventListener"],_e=["on","off"];function Le(me,Ye,Ce,de){if((0,j.m)(Ce)&&(de=Ce,Ce=void 0),de)return Le(me,Ye,Ce).pipe((0,K.Z)(de));const[Pe,Be]=function De(me){return(0,j.m)(me.addEventListener)&&(0,j.m)(me.removeEventListener)}(me)?oe.map(Ne=>Ae=>me[Ne](Ye,Ae,Ce)):function Te(me){return(0,j.m)(me.addListener)&&(0,j.m)(me.removeListener)}(me)?C.map(ee(me,Ye)):function ye(me){return(0,j.m)(me.on)&&(0,j.m)(me.off)}(me)?_e.map(ee(me,Ye)):[];if(!Pe&&(0,a.z)(me))return(0,X.z)(Ne=>Le(Ne,Ye,Ce))((0,h.Xf)(me));if(!Pe)throw new TypeError("Invalid event target");return new p.y(Ne=>{const Ae=(...Ge)=>Ne.next(1Be(Ae)})}function ee(me,Ye){return Ce=>de=>me[Ce](Ye,de)}},4829:(zn,wt,S)=>{"use strict";S.d(wt,{Xf:()=>ye});var h=S(7582),p=S(4266),X=S(4026),a=S(5592),j=S(8382),K=S(5726),C=S(9853),oe=S(3664),_e=S(541),Le=S(4674),ee=S(3894),Te=S(4850);function ye(Ne){if(Ne instanceof a.y)return Ne;if(null!=Ne){if((0,j.c)(Ne))return function De(Ne){return new a.y(Ae=>{const Ge=Ne[Te.L]();if((0,Le.m)(Ge.subscribe))return Ge.subscribe(Ae);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ne);if((0,p.z)(Ne))return function me(Ne){return new a.y(Ae=>{for(let Ge=0;Ge{Ne.then(Ge=>{Ae.closed||(Ae.next(Ge),Ae.complete())},Ge=>Ae.error(Ge)).then(null,ee.h)})}(Ne);if((0,K.D)(Ne))return de(Ne);if((0,oe.T)(Ne))return function Ce(Ne){return new a.y(Ae=>{for(const Ge of Ne)if(Ae.next(Ge),Ae.closed)return;Ae.complete()})}(Ne);if((0,_e.L)(Ne))return function Pe(Ne){return de((0,_e.Q)(Ne))}(Ne)}throw(0,C.z)(Ne)}function de(Ne){return new a.y(Ae=>{(function Be(Ne,Ae){var Ge,lt,ne,Ee;return(0,h.mG)(this,void 0,void 0,function*(){try{for(Ge=(0,h.KL)(Ne);!(lt=yield Ge.next()).done;)if(Ae.next(lt.value),Ae.closed)return}catch(xe){ne={error:xe}}finally{try{lt&&!lt.done&&(Ee=Ge.return)&&(yield Ee.call(Ge))}finally{if(ne)throw ne.error}}Ae.complete()})})(Ne,Ae).catch(Ge=>Ae.error(Ge))})}},2096:(zn,wt,S)=>{"use strict";S.d(wt,{of:()=>X});var h=S(4564),p=S(7715);function X(...a){const j=(0,h.yG)(a);return(0,p.D)(a,j)}},8251:(zn,wt,S)=>{"use strict";S.d(wt,{x:()=>p});var h=S(305);function p(a,j,K,C,oe){return new X(a,j,K,C,oe)}class X extends h.Lv{constructor(j,K,C,oe,_e,Le){super(j),this.onFinalize=_e,this.shouldUnsubscribe=Le,this._next=K?function(ee){try{K(ee)}catch(Te){j.error(Te)}}:super._next,this._error=oe?function(ee){try{oe(ee)}catch(Te){j.error(Te)}finally{this.unsubscribe()}}:super._error,this._complete=C?function(){try{C()}catch(ee){j.error(ee)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var j;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:K}=this;super.unsubscribe(),!K&&(null===(j=this.onFinalize)||void 0===j||j.call(this))}}}},6328:(zn,wt,S)=>{"use strict";S.d(wt,{b:()=>X});var h=S(1631),p=S(4674);function X(a,j){return(0,p.m)(j)?(0,h.z)(a,j,1):(0,h.z)(a,1)}},3997:(zn,wt,S)=>{"use strict";S.d(wt,{x:()=>a});var h=S(2737),p=S(9360),X=S(8251);function a(K,C=h.y){return K=K??j,(0,p.e)((oe,_e)=>{let Le,ee=!0;oe.subscribe((0,X.x)(_e,Te=>{const ye=C(Te);(ee||!K(Le,ye))&&(ee=!1,Le=ye,_e.next(Te))}))})}function j(K,C){return K===C}},2181:(zn,wt,S)=>{"use strict";S.d(wt,{h:()=>X});var h=S(9360),p=S(8251);function X(a,j){return(0,h.e)((K,C)=>{let oe=0;K.subscribe((0,p.x)(C,_e=>a.call(j,_e,oe++)&&C.next(_e)))})}},4716:(zn,wt,S)=>{"use strict";S.d(wt,{x:()=>p});var h=S(9360);function p(X){return(0,h.e)((a,j)=>{try{a.subscribe(j)}finally{j.add(X)}})}},7398:(zn,wt,S)=>{"use strict";S.d(wt,{U:()=>X});var h=S(9360),p=S(8251);function X(a,j){return(0,h.e)((K,C)=>{let oe=0;K.subscribe((0,p.x)(C,_e=>{C.next(a.call(j,_e,oe++))}))})}},7537:(zn,wt,S)=>{"use strict";S.d(wt,{J:()=>X});var h=S(1631),p=S(2737);function X(a=1/0){return(0,h.z)(p.y,a)}},1631:(zn,wt,S)=>{"use strict";S.d(wt,{z:()=>oe});var h=S(7398),p=S(4829),X=S(9360),a=S(7103),j=S(8251),C=S(4674);function oe(_e,Le,ee=1/0){return(0,C.m)(Le)?oe((Te,ye)=>(0,h.U)((De,me)=>Le(Te,De,ye,me))((0,p.Xf)(_e(Te,ye))),ee):("number"==typeof Le&&(ee=Le),(0,X.e)((Te,ye)=>function K(_e,Le,ee,Te,ye,De,me,Ye){const Ce=[];let de=0,Pe=0,Be=!1;const Ne=()=>{Be&&!Ce.length&&!de&&Le.complete()},Ae=lt=>de{De&&Le.next(lt),de++;let ne=!1;(0,p.Xf)(ee(lt,Pe++)).subscribe((0,j.x)(Le,Ee=>{ye?.(Ee),De?Ae(Ee):Le.next(Ee)},()=>{ne=!0},void 0,()=>{if(ne)try{for(de--;Ce.length&&deGe(Ee)):Ge(Ee)}Ne()}catch(Ee){Le.error(Ee)}}))};return _e.subscribe((0,j.x)(Le,Ae,()=>{Be=!0,Ne()})),()=>{Ye?.()}}(Te,ye,_e,ee)))}},3020:(zn,wt,S)=>{"use strict";S.d(wt,{B:()=>j});var h=S(4829),p=S(8645),X=S(305),a=S(9360);function j(C={}){const{connector:oe=(()=>new p.x),resetOnError:_e=!0,resetOnComplete:Le=!0,resetOnRefCountZero:ee=!0}=C;return Te=>{let ye,De,me,Ye=0,Ce=!1,de=!1;const Pe=()=>{De?.unsubscribe(),De=void 0},Be=()=>{Pe(),ye=me=void 0,Ce=de=!1},Ne=()=>{const Ae=ye;Be(),Ae?.unsubscribe()};return(0,a.e)((Ae,Ge)=>{Ye++,!de&&!Ce&&Pe();const lt=me=me??oe();Ge.add(()=>{Ye--,0===Ye&&!de&&!Ce&&(De=K(Ne,ee))}),lt.subscribe(Ge),!ye&&Ye>0&&(ye=new X.Hp({next:ne=>lt.next(ne),error:ne=>{de=!0,Pe(),De=K(Be,_e,ne),lt.error(ne)},complete:()=>{Ce=!0,Pe(),De=K(Be,Le),lt.complete()}}),(0,h.Xf)(Ae).subscribe(ye))})(Te)}}function K(C,oe,..._e){if(!0===oe)return void C();if(!1===oe)return;const Le=new X.Hp({next:()=>{Le.unsubscribe(),C()}});return(0,h.Xf)(oe(..._e)).subscribe(Le)}},4664:(zn,wt,S)=>{"use strict";S.d(wt,{w:()=>a});var h=S(4829),p=S(9360),X=S(8251);function a(j,K){return(0,p.e)((C,oe)=>{let _e=null,Le=0,ee=!1;const Te=()=>ee&&!_e&&oe.complete();C.subscribe((0,X.x)(oe,ye=>{_e?.unsubscribe();let De=0;const me=Le++;(0,h.Xf)(j(ye,me)).subscribe(_e=(0,X.x)(oe,Ye=>oe.next(K?K(ye,Ye,me,De++):Ye),()=>{_e=null,Te()}))},()=>{ee=!0,Te()}))})}},8180:(zn,wt,S)=>{"use strict";S.d(wt,{q:()=>a});var h=S(6232),p=S(9360),X=S(8251);function a(j){return j<=0?()=>h.E:(0,p.e)((K,C)=>{let oe=0;K.subscribe((0,X.x)(C,_e=>{++oe<=j&&(C.next(_e),j<=oe&&C.complete())}))})}},4552:(zn,wt,S)=>{"use strict";S.d(wt,{l:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},7599:(zn,wt,S)=>{"use strict";S.d(wt,{z:()=>h});const h={setTimeout(p,X,...a){const{delegate:j}=h;return j?.setTimeout?j.setTimeout(p,X,...a):setTimeout(p,X,...a)},clearTimeout(p){const{delegate:X}=h;return(X?.clearTimeout||clearTimeout)(p)},delegate:void 0}},4971:(zn,wt,S)=>{"use strict";S.d(wt,{h:()=>p});const p=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(zn,wt,S)=>{"use strict";S.d(wt,{L:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},4564:(zn,wt,S)=>{"use strict";S.d(wt,{_6:()=>K,jO:()=>a,yG:()=>j});var h=S(4674);function X(C){return C[C.length-1]}function a(C){return(0,h.m)(X(C))?C.pop():void 0}function j(C){return function p(C){return C&&(0,h.m)(C.schedule)}(X(C))?C.pop():void 0}function K(C,oe){return"number"==typeof X(C)?C.pop():oe}},7453:(zn,wt,S)=>{"use strict";S.d(wt,{D:()=>j});const{isArray:h}=Array,{getPrototypeOf:p,prototype:X,keys:a}=Object;function j(C){if(1===C.length){const oe=C[0];if(h(oe))return{args:oe,keys:null};if(function K(C){return C&&"object"==typeof C&&p(C)===X}(oe)){const _e=a(oe);return{args:_e.map(Le=>oe[Le]),keys:_e}}}return{args:C,keys:null}}},9039:(zn,wt,S)=>{"use strict";function h(p,X){if(p){const a=p.indexOf(X);0<=a&&p.splice(a,1)}}S.d(wt,{P:()=>h})},2306:(zn,wt,S)=>{"use strict";function h(p){const a=p(j=>{Error.call(j),j.stack=(new Error).stack});return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}S.d(wt,{d:()=>h})},2714:(zn,wt,S)=>{"use strict";function h(p,X){return p.reduce((a,j,K)=>(a[j]=X[K],a),{})}S.d(wt,{n:()=>h})},1441:(zn,wt,S)=>{"use strict";S.d(wt,{O:()=>a,x:()=>X});var h=S(2653);let p=null;function X(j){if(h.config.useDeprecatedSynchronousErrorHandling){const K=!p;if(K&&(p={errorThrown:!1,error:null}),j(),K){const{errorThrown:C,error:oe}=p;if(p=null,C)throw oe}}else j()}function a(j){h.config.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=j)}},7103:(zn,wt,S)=>{"use strict";function h(p,X,a,j=0,K=!1){const C=X.schedule(function(){a(),K?p.add(this.schedule(null,j)):this.unsubscribe()},j);if(p.add(C),!K)return C}S.d(wt,{f:()=>h})},2737:(zn,wt,S)=>{"use strict";function h(p){return p}S.d(wt,{y:()=>h})},4266:(zn,wt,S)=>{"use strict";S.d(wt,{z:()=>h});const h=p=>p&&"number"==typeof p.length&&"function"!=typeof p},5726:(zn,wt,S)=>{"use strict";S.d(wt,{D:()=>p});var h=S(4674);function p(X){return Symbol.asyncIterator&&(0,h.m)(X?.[Symbol.asyncIterator])}},4674:(zn,wt,S)=>{"use strict";function h(p){return"function"==typeof p}S.d(wt,{m:()=>h})},8382:(zn,wt,S)=>{"use strict";S.d(wt,{c:()=>X});var h=S(4850),p=S(4674);function X(a){return(0,p.m)(a[h.L])}},3664:(zn,wt,S)=>{"use strict";S.d(wt,{T:()=>X});var h=S(4971),p=S(4674);function X(a){return(0,p.m)(a?.[h.h])}},2664:(zn,wt,S)=>{"use strict";S.d(wt,{b:()=>X});var h=S(5592),p=S(4674);function X(a){return!!a&&(a instanceof h.y||(0,p.m)(a.lift)&&(0,p.m)(a.subscribe))}},4026:(zn,wt,S)=>{"use strict";S.d(wt,{t:()=>p});var h=S(4674);function p(X){return(0,h.m)(X?.then)}},541:(zn,wt,S)=>{"use strict";S.d(wt,{L:()=>a,Q:()=>X});var h=S(7582),p=S(4674);function X(j){return(0,h.FC)(this,arguments,function*(){const C=j.getReader();try{for(;;){const{value:oe,done:_e}=yield(0,h.qq)(C.read());if(_e)return yield(0,h.qq)(void 0);yield yield(0,h.qq)(oe)}}finally{C.releaseLock()}})}function a(j){return(0,p.m)(j?.getReader)}},9360:(zn,wt,S)=>{"use strict";S.d(wt,{A:()=>p,e:()=>X});var h=S(4674);function p(a){return(0,h.m)(a?.lift)}function X(a){return j=>{if(p(j))return j.lift(function(K){try{return a(K,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(zn,wt,S)=>{"use strict";S.d(wt,{Z:()=>a});var h=S(7398);const{isArray:p}=Array;function a(j){return(0,h.U)(K=>function X(j,K){return p(K)?j(...K):j(K)}(j,K))}},2420:(zn,wt,S)=>{"use strict";function h(){}S.d(wt,{Z:()=>h})},8407:(zn,wt,S)=>{"use strict";S.d(wt,{U:()=>X,z:()=>p});var h=S(2737);function p(...a){return X(a)}function X(a){return 0===a.length?h.y:1===a.length?a[0]:function(K){return a.reduce((C,oe)=>oe(C),K)}}},3894:(zn,wt,S)=>{"use strict";S.d(wt,{h:()=>X});var h=S(2653),p=S(7599);function X(a){p.z.setTimeout(()=>{const{onUnhandledError:j}=h.config;if(!j)throw a;j(a)})}},9853:(zn,wt,S)=>{"use strict";function h(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}S.d(wt,{z:()=>h})},863:(zn,wt,S)=>{var h={"./ion-accordion_2.entry.js":[8484,8592,8484],"./ion-action-sheet.entry.js":[9882,8592,9882],"./ion-alert.entry.js":[6304,8592,6304],"./ion-app_8.entry.js":[5860,8592,5860],"./ion-avatar_3.entry.js":[3544,3544],"./ion-back-button.entry.js":[505,8592,505],"./ion-backdrop.entry.js":[469,469],"./ion-breadcrumb_2.entry.js":[9857,8592,9857],"./ion-button_2.entry.js":[1372,1372],"./ion-card_5.entry.js":[3150,3150],"./ion-checkbox.entry.js":[7635,8592,7635],"./ion-chip.entry.js":[6673,6673],"./ion-col_3.entry.js":[1315,1315],"./ion-datetime-button.entry.js":[433,9302,433],"./ion-datetime_3.entry.js":[7059,9302,8592,7059],"./ion-fab_3.entry.js":[4087,8592,4087],"./ion-img.entry.js":[1745,1745],"./ion-infinite-scroll_2.entry.js":[9352,8592,9352],"./ion-input.entry.js":[4530,8592,4530],"./ion-item-option_3.entry.js":[8633,8592,8633],"./ion-item_8.entry.js":[5962,8592,5962],"./ion-loading.entry.js":[3483,8592,3483],"./ion-menu_3.entry.js":[2939,8592,8382],"./ion-modal.entry.js":[8577,8592,8577],"./ion-nav_2.entry.js":[5675,8592,5675],"./ion-picker-column-internal.entry.js":[9992,8592,9992],"./ion-picker-internal.entry.js":[9820,9820],"./ion-popover.entry.js":[185,8592,185],"./ion-progress-bar.entry.js":[5454,5454],"./ion-radio_2.entry.js":[4458,8592,4458],"./ion-range.entry.js":[7666,8592,7666],"./ion-refresher_2.entry.js":[7219,8592,7219],"./ion-reorder_2.entry.js":[2975,8592,2975],"./ion-ripple-effect.entry.js":[7465,7465],"./ion-route_4.entry.js":[4764,4764],"./ion-searchbar.entry.js":[3998,8592,3998],"./ion-segment_2.entry.js":[3672,8592,3672],"./ion-select_3.entry.js":[6754,8592,6754],"./ion-spinner.entry.js":[9588,8592,9588],"./ion-split-pane.entry.js":[9793,9793],"./ion-tab-bar_2.entry.js":[4090,8592,4090],"./ion-tab_2.entry.js":[2841,2841],"./ion-text.entry.js":[8811,8811],"./ion-textarea.entry.js":[3734,8592,3734],"./ion-toast.entry.js":[6642,8592,6642],"./ion-toggle.entry.js":[8866,8592,8866]};function p(X){if(!S.o(h,X))return Promise.resolve().then(()=>{var K=new Error("Cannot find module '"+X+"'");throw K.code="MODULE_NOT_FOUND",K});var a=h[X],j=a[0];return Promise.all(a.slice(1).map(S.e)).then(()=>S(j))}p.keys=()=>Object.keys(h),p.id=863,zn.exports=p},6814:(zn,wt,S)=>{"use strict";S.d(wt,{Do:()=>Ye,EM:()=>na,HT:()=>a,JF:()=>cs,JJ:()=>Bs,K0:()=>K,Mx:()=>Mt,O5:()=>we,PM:()=>Lo,S$:()=>ye,V_:()=>oe,Ye:()=>Ce,b0:()=>me,bD:()=>lo,ez:()=>zs,q:()=>X,sg:()=>lr,tP:()=>yn,uU:()=>Bt,w_:()=>j});var h=S(8564);let p=null;function X(){return p}function a(F){p||(p=F)}class j{}const K=new h.OlP("DocumentToken");let C=(()=>{class F{historyGo(q){throw new Error("Not implemented")}static#e=this.\u0275fac=function(fe){return new(fe||F)};static#t=this.\u0275prov=h.Yz7({token:F,factory:()=>(0,h.f3M)(_e),providedIn:"platform"})}return F})();const oe=new h.OlP("Location Initialized");let _e=(()=>{class F extends C{constructor(){super(),this._doc=(0,h.f3M)(K),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return X().getBaseHref(this._doc)}onPopState(q){const fe=X().getGlobalEventTarget(this._doc,"window");return fe.addEventListener("popstate",q,!1),()=>fe.removeEventListener("popstate",q)}onHashChange(q){const fe=X().getGlobalEventTarget(this._doc,"window");return fe.addEventListener("hashchange",q,!1),()=>fe.removeEventListener("hashchange",q)}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(q){this._location.pathname=q}pushState(q,fe,xt){this._history.pushState(q,fe,xt)}replaceState(q,fe,xt){this._history.replaceState(q,fe,xt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(q=0){this._history.go(q)}getState(){return this._history.state}static#e=this.\u0275fac=function(fe){return new(fe||F)};static#t=this.\u0275prov=h.Yz7({token:F,factory:()=>new F,providedIn:"platform"})}return F})();function Le(F,Me){if(0==F.length)return Me;if(0==Me.length)return F;let q=0;return F.endsWith("/")&&q++,Me.startsWith("/")&&q++,2==q?F+Me.substring(1):1==q?F+Me:F+"/"+Me}function ee(F){const Me=F.match(/#|\?|$/),q=Me&&Me.index||F.length;return F.slice(0,q-("/"===F[q-1]?1:0))+F.slice(q)}function Te(F){return F&&"?"!==F[0]?"?"+F:F}let ye=(()=>{class F{historyGo(q){throw new Error("Not implemented")}static#e=this.\u0275fac=function(fe){return new(fe||F)};static#t=this.\u0275prov=h.Yz7({token:F,factory:()=>(0,h.f3M)(me),providedIn:"root"})}return F})();const De=new h.OlP("appBaseHref");let me=(()=>{class F extends ye{constructor(q,fe){super(),this._platformLocation=q,this._removeListenerFns=[],this._baseHref=fe??this._platformLocation.getBaseHrefFromDOM()??(0,h.f3M)(K).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}prepareExternalUrl(q){return Le(this._baseHref,q)}path(q=!1){const fe=this._platformLocation.pathname+Te(this._platformLocation.search),xt=this._platformLocation.hash;return xt&&q?`${fe}${xt}`:fe}pushState(q,fe,xt,vn){const bn=this.prepareExternalUrl(xt+Te(vn));this._platformLocation.pushState(q,fe,bn)}replaceState(q,fe,xt,vn){const bn=this.prepareExternalUrl(xt+Te(vn));this._platformLocation.replaceState(q,fe,bn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static#e=this.\u0275fac=function(fe){return new(fe||F)(h.LFG(C),h.LFG(De,8))};static#t=this.\u0275prov=h.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),Ye=(()=>{class F extends ye{constructor(q,fe){super(),this._platformLocation=q,this._baseHref="",this._removeListenerFns=[],null!=fe&&(this._baseHref=fe)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(q){this._removeListenerFns.push(this._platformLocation.onPopState(q),this._platformLocation.onHashChange(q))}getBaseHref(){return this._baseHref}path(q=!1){let fe=this._platformLocation.hash;return null==fe&&(fe="#"),fe.length>0?fe.substring(1):fe}prepareExternalUrl(q){const fe=Le(this._baseHref,q);return fe.length>0?"#"+fe:fe}pushState(q,fe,xt,vn){let bn=this.prepareExternalUrl(xt+Te(vn));0==bn.length&&(bn=this._platformLocation.pathname),this._platformLocation.pushState(q,fe,bn)}replaceState(q,fe,xt,vn){let bn=this.prepareExternalUrl(xt+Te(vn));0==bn.length&&(bn=this._platformLocation.pathname),this._platformLocation.replaceState(q,fe,bn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(q=0){this._platformLocation.historyGo?.(q)}static#e=this.\u0275fac=function(fe){return new(fe||F)(h.LFG(C),h.LFG(De,8))};static#t=this.\u0275prov=h.Yz7({token:F,factory:F.\u0275fac})}return F})(),Ce=(()=>{class F{constructor(q){this._subject=new h.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=q;const fe=this._locationStrategy.getBaseHref();this._basePath=function Ne(F){if(new RegExp("^(https?:)?//").test(F)){const[,q]=F.split(/\/\/[^\/]+/);return q}return F}(ee(Be(fe))),this._locationStrategy.onPopState(xt=>{this._subject.emit({url:this.path(!0),pop:!0,state:xt.state,type:xt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(q=!1){return this.normalize(this._locationStrategy.path(q))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(q,fe=""){return this.path()==this.normalize(q+Te(fe))}normalize(q){return F.stripTrailingSlash(function Pe(F,Me){if(!F||!Me.startsWith(F))return Me;const q=Me.substring(F.length);return""===q||["/",";","?","#"].includes(q[0])?q:Me}(this._basePath,Be(q)))}prepareExternalUrl(q){return q&&"/"!==q[0]&&(q="/"+q),this._locationStrategy.prepareExternalUrl(q)}go(q,fe="",xt=null){this._locationStrategy.pushState(xt,"",q,fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+Te(fe)),xt)}replaceState(q,fe="",xt=null){this._locationStrategy.replaceState(xt,"",q,fe),this._notifyUrlChangeListeners(this.prepareExternalUrl(q+Te(fe)),xt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(q=0){this._locationStrategy.historyGo?.(q)}onUrlChange(q){return this._urlChangeListeners.push(q),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(fe=>{this._notifyUrlChangeListeners(fe.url,fe.state)})),()=>{const fe=this._urlChangeListeners.indexOf(q);this._urlChangeListeners.splice(fe,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(q="",fe){this._urlChangeListeners.forEach(xt=>xt(q,fe))}subscribe(q,fe,xt){return this._subject.subscribe({next:q,error:fe,complete:xt})}static#e=this.normalizeQueryParams=Te;static#t=this.joinWithSlash=Le;static#n=this.stripTrailingSlash=ee;static#i=this.\u0275fac=function(fe){return new(fe||F)(h.LFG(ye))};static#r=this.\u0275prov=h.Yz7({token:F,factory:()=>function de(){return new Ce((0,h.LFG)(ye))}(),providedIn:"root"})}return F})();function Be(F){return F.replace(/\/index.html$/,"")}var Ge=function(F){return F[F.Decimal=0]="Decimal",F[F.Percent=1]="Percent",F[F.Currency=2]="Currency",F[F.Scientific=3]="Scientific",F}(Ge||{}),ne=function(F){return F[F.Format=0]="Format",F[F.Standalone=1]="Standalone",F}(ne||{}),Ee=function(F){return F[F.Narrow=0]="Narrow",F[F.Abbreviated=1]="Abbreviated",F[F.Wide=2]="Wide",F[F.Short=3]="Short",F}(Ee||{}),xe=function(F){return F[F.Short=0]="Short",F[F.Medium=1]="Medium",F[F.Long=2]="Long",F[F.Full=3]="Full",F}(xe||{}),je=function(F){return F[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F}(je||{});function pe(F,Me){return on((0,h.cg1)(F)[h.wAp.DateFormat],Me)}function Oe(F,Me){return on((0,h.cg1)(F)[h.wAp.TimeFormat],Me)}function ie(F,Me){return on((0,h.cg1)(F)[h.wAp.DateTimeFormat],Me)}function it(F,Me){const q=(0,h.cg1)(F),fe=q[h.wAp.NumberSymbols][Me];if(typeof fe>"u"){if(Me===je.CurrencyDecimal)return q[h.wAp.NumberSymbols][je.Decimal];if(Me===je.CurrencyGroup)return q[h.wAp.NumberSymbols][je.Group]}return fe}function en(F){if(!F[h.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${F[h.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function on(F,Me){for(let q=Me;q>-1;q--)if(typeof F[q]<"u")return F[q];throw new Error("Locale data API: locale data undefined")}function Rn(F){const[Me,q]=F.split(":");return{hours:+Me,minutes:+q}}const qe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Nt={},Xt=/((?:[^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]*)/;var Tn=function(F){return F[F.Short=0]="Short",F[F.ShortGMT=1]="ShortGMT",F[F.Long=2]="Long",F[F.Extended=3]="Extended",F}(Tn||{}),oi=function(F){return F[F.FullYear=0]="FullYear",F[F.Month=1]="Month",F[F.Date=2]="Date",F[F.Hours=3]="Hours",F[F.Minutes=4]="Minutes",F[F.Seconds=5]="Seconds",F[F.FractionalSeconds=6]="FractionalSeconds",F[F.Day=7]="Day",F}(oi||{}),xi=function(F){return F[F.DayPeriods=0]="DayPeriods",F[F.Days=1]="Days",F[F.Months=2]="Months",F[F.Eras=3]="Eras",F}(xi||{});function Oi(F,Me,q,fe){let xt=function ae(F){if(G(F))return F;if("number"==typeof F&&!isNaN(F))return new Date(F);if("string"==typeof F){if(F=F.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(F)){const[xt,vn=1,bn=1]=F.split("-").map(Ti=>+Ti);return gr(xt,vn-1,bn)}const q=parseFloat(F);if(!isNaN(F-q))return new Date(q);let fe;if(fe=F.match(qe))return function ht(F){const Me=new Date(0);let q=0,fe=0;const xt=F[8]?Me.setUTCFullYear:Me.setFullYear,vn=F[8]?Me.setUTCHours:Me.setHours;F[9]&&(q=Number(F[9]+F[10]),fe=Number(F[9]+F[11])),xt.call(Me,Number(F[1]),Number(F[2])-1,Number(F[3]));const bn=Number(F[4]||0)-q,Ti=Number(F[5]||0)-fe,Ur=Number(F[6]||0),Lr=Math.floor(1e3*parseFloat("0."+(F[7]||0)));return vn.call(Me,bn,Ti,Ur,Lr),Me}(fe)}const Me=new Date(F);if(!G(Me))throw new Error(`Unable to convert "${F}" into a date`);return Me}(F);Me=ki(q,Me)||Me;let Ti,bn=[];for(;Me;){if(Ti=Xt.exec(Me),!Ti){bn.push(Me);break}{bn=bn.concat(Ti.slice(1));const Sr=bn.pop();if(!Sr)break;Me=Sr}}let Ur=xt.getTimezoneOffset();fe&&(Ur=Jt(fe,Ur),xt=function mn(F,Me,q){const fe=q?-1:1,xt=F.getTimezoneOffset();return function Bn(F,Me){return(F=new Date(F.getTime())).setMinutes(F.getMinutes()+Me),F}(F,fe*(Jt(Me,xt)-xt))}(xt,fe,!0));let Lr="";return bn.forEach(Sr=>{const sr=function Et(F){if(Vt[F])return Vt[F];let Me;switch(F){case"G":case"GG":case"GGG":Me=Cn(xi.Eras,Ee.Abbreviated);break;case"GGGG":Me=Cn(xi.Eras,Ee.Wide);break;case"GGGGG":Me=Cn(xi.Eras,Ee.Narrow);break;case"y":Me=pn(oi.FullYear,1,0,!1,!0);break;case"yy":Me=pn(oi.FullYear,2,0,!0,!0);break;case"yyy":Me=pn(oi.FullYear,3,0,!1,!0);break;case"yyyy":Me=pn(oi.FullYear,4,0,!1,!0);break;case"Y":Me=Gt(1);break;case"YY":Me=Gt(2,!0);break;case"YYY":Me=Gt(3);break;case"YYYY":Me=Gt(4);break;case"M":case"L":Me=pn(oi.Month,1,1);break;case"MM":case"LL":Me=pn(oi.Month,2,1);break;case"MMM":Me=Cn(xi.Months,Ee.Abbreviated);break;case"MMMM":Me=Cn(xi.Months,Ee.Wide);break;case"MMMMM":Me=Cn(xi.Months,Ee.Narrow);break;case"LLL":Me=Cn(xi.Months,Ee.Abbreviated,ne.Standalone);break;case"LLLL":Me=Cn(xi.Months,Ee.Wide,ne.Standalone);break;case"LLLLL":Me=Cn(xi.Months,Ee.Narrow,ne.Standalone);break;case"w":Me=Ot(1);break;case"ww":Me=Ot(2);break;case"W":Me=Ot(1,!0);break;case"d":Me=pn(oi.Date,1);break;case"dd":Me=pn(oi.Date,2);break;case"c":case"cc":Me=pn(oi.Day,1);break;case"ccc":Me=Cn(xi.Days,Ee.Abbreviated,ne.Standalone);break;case"cccc":Me=Cn(xi.Days,Ee.Wide,ne.Standalone);break;case"ccccc":Me=Cn(xi.Days,Ee.Narrow,ne.Standalone);break;case"cccccc":Me=Cn(xi.Days,Ee.Short,ne.Standalone);break;case"E":case"EE":case"EEE":Me=Cn(xi.Days,Ee.Abbreviated);break;case"EEEE":Me=Cn(xi.Days,Ee.Wide);break;case"EEEEE":Me=Cn(xi.Days,Ee.Narrow);break;case"EEEEEE":Me=Cn(xi.Days,Ee.Short);break;case"a":case"aa":case"aaa":Me=Cn(xi.DayPeriods,Ee.Abbreviated);break;case"aaaa":Me=Cn(xi.DayPeriods,Ee.Wide);break;case"aaaaa":Me=Cn(xi.DayPeriods,Ee.Narrow);break;case"b":case"bb":case"bbb":Me=Cn(xi.DayPeriods,Ee.Abbreviated,ne.Standalone,!0);break;case"bbbb":Me=Cn(xi.DayPeriods,Ee.Wide,ne.Standalone,!0);break;case"bbbbb":Me=Cn(xi.DayPeriods,Ee.Narrow,ne.Standalone,!0);break;case"B":case"BB":case"BBB":Me=Cn(xi.DayPeriods,Ee.Abbreviated,ne.Format,!0);break;case"BBBB":Me=Cn(xi.DayPeriods,Ee.Wide,ne.Format,!0);break;case"BBBBB":Me=Cn(xi.DayPeriods,Ee.Narrow,ne.Format,!0);break;case"h":Me=pn(oi.Hours,1,-12);break;case"hh":Me=pn(oi.Hours,2,-12);break;case"H":Me=pn(oi.Hours,1);break;case"HH":Me=pn(oi.Hours,2);break;case"m":Me=pn(oi.Minutes,1);break;case"mm":Me=pn(oi.Minutes,2);break;case"s":Me=pn(oi.Seconds,1);break;case"ss":Me=pn(oi.Seconds,2);break;case"S":Me=pn(oi.FractionalSeconds,1);break;case"SS":Me=pn(oi.FractionalSeconds,2);break;case"SSS":Me=pn(oi.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Me=ct(Tn.Short);break;case"ZZZZZ":Me=ct(Tn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Me=ct(Tn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Me=ct(Tn.Long);break;default:return null}return Vt[F]=Me,Me}(Sr);Lr+=sr?sr(xt,q,Ur):"''"===Sr?"'":Sr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Lr}function gr(F,Me,q){const fe=new Date(0);return fe.setFullYear(F,Me,q),fe.setHours(0,0,0),fe}function ki(F,Me){const q=function Ve(F){return(0,h.cg1)(F)[h.wAp.LocaleId]}(F);if(Nt[q]=Nt[q]||{},Nt[q][Me])return Nt[q][Me];let fe="";switch(Me){case"shortDate":fe=pe(F,xe.Short);break;case"mediumDate":fe=pe(F,xe.Medium);break;case"longDate":fe=pe(F,xe.Long);break;case"fullDate":fe=pe(F,xe.Full);break;case"shortTime":fe=Oe(F,xe.Short);break;case"mediumTime":fe=Oe(F,xe.Medium);break;case"longTime":fe=Oe(F,xe.Long);break;case"fullTime":fe=Oe(F,xe.Full);break;case"short":const xt=ki(F,"shortTime"),vn=ki(F,"shortDate");fe=Wi(ie(F,xe.Short),[xt,vn]);break;case"medium":const bn=ki(F,"mediumTime"),Ti=ki(F,"mediumDate");fe=Wi(ie(F,xe.Medium),[bn,Ti]);break;case"long":const Ur=ki(F,"longTime"),Lr=ki(F,"longDate");fe=Wi(ie(F,xe.Long),[Ur,Lr]);break;case"full":const Sr=ki(F,"fullTime"),sr=ki(F,"fullDate");fe=Wi(ie(F,xe.Full),[Sr,sr])}return fe&&(Nt[q][Me]=fe),fe}function Wi(F,Me){return Me&&(F=F.replace(/\{([^}]+)}/g,function(q,fe){return null!=Me&&fe in Me?Me[fe]:q})),F}function _n(F,Me,q="-",fe,xt){let vn="";(F<0||xt&&F<=0)&&(xt?F=1-F:(F=-F,vn=q));let bn=String(F);for(;bn.length0||Ti>-q)&&(Ti+=q),F===oi.Hours)0===Ti&&-12===q&&(Ti=12);else if(F===oi.FractionalSeconds)return function Bi(F,Me){return _n(F,3).substring(0,Me)}(Ti,Me);const Ur=it(bn,je.MinusSign);return _n(Ti,Me,Ur,fe,xt)}}function Cn(F,Me,q=ne.Format,fe=!1){return function(xt,vn){return function $i(F,Me,q,fe,xt,vn){switch(q){case xi.Months:return function cn(F,Me,q){const fe=(0,h.cg1)(F),vn=on([fe[h.wAp.MonthsFormat],fe[h.wAp.MonthsStandalone]],Me);return on(vn,q)}(Me,xt,fe)[F.getMonth()];case xi.Days:return function Ht(F,Me,q){const fe=(0,h.cg1)(F),vn=on([fe[h.wAp.DaysFormat],fe[h.wAp.DaysStandalone]],Me);return on(vn,q)}(Me,xt,fe)[F.getDay()];case xi.DayPeriods:const bn=F.getHours(),Ti=F.getMinutes();if(vn){const Lr=function Dt(F){const Me=(0,h.cg1)(F);return en(Me),(Me[h.wAp.ExtraData][2]||[]).map(fe=>"string"==typeof fe?Rn(fe):[Rn(fe[0]),Rn(fe[1])])}(Me),Sr=function Ie(F,Me,q){const fe=(0,h.cg1)(F);en(fe);const vn=on([fe[h.wAp.ExtraData][0],fe[h.wAp.ExtraData][1]],Me)||[];return on(vn,q)||[]}(Me,xt,fe),sr=Lr.findIndex(Pr=>{if(Array.isArray(Pr)){const[hr,So]=Pr,$s=bn>=hr.hours&&Ti>=hr.minutes,qo=bn0?Math.floor(xt/60):Math.ceil(xt/60);switch(F){case Tn.Short:return(xt>=0?"+":"")+_n(bn,2,vn)+_n(Math.abs(xt%60),2,vn);case Tn.ShortGMT:return"GMT"+(xt>=0?"+":"")+_n(bn,1,vn);case Tn.Long:return"GMT"+(xt>=0?"+":"")+_n(bn,2,vn)+":"+_n(Math.abs(xt%60),2,vn);case Tn.Extended:return 0===fe?"Z":(xt>=0?"+":"")+_n(bn,2,vn)+":"+_n(Math.abs(xt%60),2,vn);default:throw new Error(`Unknown zone width "${F}"`)}}}const ge=0,se=4;function yt(F){return gr(F.getFullYear(),F.getMonth(),F.getDate()+(se-F.getDay()))}function Ot(F,Me=!1){return function(q,fe){let xt;if(Me){const vn=new Date(q.getFullYear(),q.getMonth(),1).getDay()-1,bn=q.getDate();xt=1+Math.floor((bn+vn)/7)}else{const vn=yt(q),bn=function tt(F){const Me=gr(F,ge,1).getDay();return gr(F,0,1+(Me<=se?se:se+7)-Me)}(vn.getFullYear()),Ti=vn.getTime()-bn.getTime();xt=1+Math.round(Ti/6048e5)}return _n(xt,F,it(fe,je.MinusSign))}}function Gt(F,Me=!1){return function(q,fe){return _n(yt(q).getFullYear(),F,it(fe,je.MinusSign),Me)}}const Vt={};function Jt(F,Me){F=F.replace(/:/g,"");const q=Date.parse("Jan 01, 1970 00:00:00 "+F)/6e4;return isNaN(q)?Me:q}function G(F){return F instanceof Date&&!isNaN(F.valueOf())}const ze=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function qi(F){const Me=parseInt(F);if(isNaN(Me))throw new Error("Invalid integer literal when parsing "+F);return Me}function Mt(F,Me){Me=encodeURIComponent(Me);for(const q of F.split(";")){const fe=q.indexOf("="),[xt,vn]=-1==fe?[q,""]:[q.slice(0,fe),q.slice(fe+1)];if(xt.trim()===Me)return decodeURIComponent(vn)}return null}class Wn{constructor(Me,q,fe,xt){this.$implicit=Me,this.ngForOf=q,this.index=fe,this.count=xt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let lr=(()=>{class F{set ngForOf(q){this._ngForOf=q,this._ngForOfDirty=!0}set ngForTrackBy(q){this._trackByFn=q}get ngForTrackBy(){return this._trackByFn}constructor(q,fe,xt){this._viewContainer=q,this._template=fe,this._differs=xt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(q){q&&(this._template=q)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const q=this._ngForOf;!this._differ&&q&&(this._differ=this._differs.find(q).create(this.ngForTrackBy))}if(this._differ){const q=this._differ.diff(this._ngForOf);q&&this._applyChanges(q)}}_applyChanges(q){const fe=this._viewContainer;q.forEachOperation((xt,vn,bn)=>{if(null==xt.previousIndex)fe.createEmbeddedView(this._template,new Wn(xt.item,this._ngForOf,-1,-1),null===bn?void 0:bn);else if(null==bn)fe.remove(null===vn?void 0:vn);else if(null!==vn){const Ti=fe.get(vn);fe.move(Ti,bn),Je(Ti,xt)}});for(let xt=0,vn=fe.length;xt{Je(fe.get(xt.currentIndex),xt)})}static ngTemplateContextGuard(q,fe){return!0}static#e=this.\u0275fac=function(fe){return new(fe||F)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4))};static#t=this.\u0275dir=h.lG2({type:F,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return F})();function Je(F,Me){F.context.$implicit=Me.item}let we=(()=>{class F{constructor(q,fe){this._viewContainer=q,this._context=new ut,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=fe}set ngIf(q){this._context.$implicit=this._context.ngIf=q,this._updateView()}set ngIfThen(q){dt("ngIfThen",q),this._thenTemplateRef=q,this._thenViewRef=null,this._updateView()}set ngIfElse(q){dt("ngIfElse",q),this._elseTemplateRef=q,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 ngTemplateContextGuard(q,fe){return!0}static#e=this.\u0275fac=function(fe){return new(fe||F)(h.Y36(h.s_b),h.Y36(h.Rgc))};static#t=this.\u0275dir=h.lG2({type:F,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return F})();class ut{constructor(){this.$implicit=null,this.ngIf=null}}function dt(F,Me){if(Me&&!Me.createEmbeddedView)throw new Error(`${F} must be a TemplateRef, but received '${(0,h.AaK)(Me)}'.`)}let yn=(()=>{class F{constructor(q){this._viewContainerRef=q,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(q){if(this._shouldRecreateView(q)){const fe=this._viewContainerRef;if(this._viewRef&&fe.remove(fe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const xt=this._createContextForwardProxy();this._viewRef=fe.createEmbeddedView(this.ngTemplateOutlet,xt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(q){return!!q.ngTemplateOutlet||!!q.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(q,fe,xt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,fe,xt),get:(q,fe,xt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,fe,xt)}})}static#e=this.\u0275fac=function(fe){return new(fe||F)(h.Y36(h.s_b))};static#t=this.\u0275dir=h.lG2({type:F,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.TTD]})}return F})();function Fn(F,Me){return new h.vHH(2100,!1)}const H=new h.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Ze=new h.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Bt=(()=>{class F{constructor(q,fe,xt){this.locale=q,this.defaultTimezone=fe,this.defaultOptions=xt}transform(q,fe,xt,vn){if(null==q||""===q||q!=q)return null;try{return Oi(q,fe??this.defaultOptions?.dateFormat??"mediumDate",vn||this.locale,xt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(bn){throw Fn()}}static#e=this.\u0275fac=function(fe){return new(fe||F)(h.Y36(h.soG,16),h.Y36(H,24),h.Y36(Ze,24))};static#t=this.\u0275pipe=h.Yjl({name:"date",type:F,pure:!0,standalone:!0})}return F})(),Bs=(()=>{class F{constructor(q){this._locale=q}transform(q,fe,xt){if(!function jo(F){return!(null==F||""===F||F!=F)}(q))return null;xt=xt||this._locale;try{return function Io(F,Me,q){return function Fr(F,Me,q,fe,xt,vn,bn=!1){let Ti="",Ur=!1;if(isFinite(F)){let Lr=function Ro(F){let fe,xt,vn,bn,Ti,Me=Math.abs(F)+"",q=0;for((xt=Me.indexOf("."))>-1&&(Me=Me.replace(".","")),(vn=Me.search(/e/i))>0?(xt<0&&(xt=vn),xt+=+Me.slice(vn+1),Me=Me.substring(0,vn)):xt<0&&(xt=Me.length),vn=0;"0"===Me.charAt(vn);vn++);if(vn===(Ti=Me.length))fe=[0],xt=1;else{for(Ti--;"0"===Me.charAt(Ti);)Ti--;for(xt-=vn,fe=[],bn=0;vn<=Ti;vn++,bn++)fe[bn]=Number(Me.charAt(vn))}return xt>22&&(fe=fe.splice(0,21),q=xt-1,xt=1),{digits:fe,exponent:q,integerLen:xt}}(F);bn&&(Lr=function ao(F){if(0===F.digits[0])return F;const Me=F.digits.length-F.integerLen;return F.exponent?F.exponent+=2:(0===Me?F.digits.push(0,0):1===Me&&F.digits.push(0),F.integerLen+=2),F}(Lr));let Sr=Me.minInt,sr=Me.minFrac,Pr=Me.maxFrac;if(vn){const $o=vn.match(ze);if(null===$o)throw new Error(`${vn} is not a valid digit info`);const fs=$o[1],Yo=$o[3],Zs=$o[5];null!=fs&&(Sr=qi(fs)),null!=Yo&&(sr=qi(Yo)),null!=Zs?Pr=qi(Zs):null!=Yo&&sr>Pr&&(Pr=sr)}!function xo(F,Me,q){if(Me>q)throw new Error(`The minimum number of digits after fraction (${Me}) is higher than the maximum (${q}).`);let fe=F.digits,xt=fe.length-F.integerLen;const vn=Math.min(Math.max(Me,xt),q);let bn=vn+F.integerLen,Ti=fe[bn];if(bn>0){fe.splice(Math.max(F.integerLen,bn));for(let sr=bn;sr=5)if(bn-1<0){for(let sr=0;sr>bn;sr--)fe.unshift(0),F.integerLen++;fe.unshift(1),F.integerLen++}else fe[bn-1]++;for(;xt=Lr?So.pop():Ur=!1),Pr>=10?1:0},0);Sr&&(fe.unshift(Sr),F.integerLen++)}(Lr,sr,Pr);let hr=Lr.digits,So=Lr.integerLen;const $s=Lr.exponent;let qo=[];for(Ur=hr.every($o=>!$o);So0?qo=hr.splice(So,hr.length):(qo=hr,hr=[0]);const hs=[];for(hr.length>=Me.lgSize&&hs.unshift(hr.splice(-Me.lgSize,hr.length).join(""));hr.length>Me.gSize;)hs.unshift(hr.splice(-Me.gSize,hr.length).join(""));hr.length&&hs.unshift(hr.join("")),Ti=hs.join(it(q,fe)),qo.length&&(Ti+=it(q,xt)+qo.join("")),$s&&(Ti+=it(q,je.Exponential)+"+"+$s)}else Ti=it(q,je.Infinity);return Ti=F<0&&!Ur?Me.negPre+Ti+Me.negSuf:Me.posPre+Ti+Me.posSuf,Ti}(F,function Zi(F,Me="-"){const q={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},fe=F.split(";"),xt=fe[0],vn=fe[1],bn=-1!==xt.indexOf(".")?xt.split("."):[xt.substring(0,xt.lastIndexOf("0")+1),xt.substring(xt.lastIndexOf("0")+1)],Ti=bn[0],Ur=bn[1]||"";q.posPre=Ti.substring(0,Ti.indexOf("#"));for(let Sr=0;Sr{class F{static#e=this.\u0275fac=function(fe){return new(fe||F)};static#t=this.\u0275mod=h.oAB({type:F});static#n=this.\u0275inj=h.cJS({})}return F})();const lo="browser",Aa="server";function Lo(F){return F===Aa}let na=(()=>{class F{static#e=this.\u0275prov=(0,h.Yz7)({token:F,providedIn:"root",factory:()=>new Us((0,h.LFG)(K),window)})}return F})();class Us{constructor(Me,q){this.document=Me,this.window=q,this.offset=()=>[0,0]}setOffset(Me){this.offset=Array.isArray(Me)?()=>Me:Me}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Me){this.supportsScrolling()&&this.window.scrollTo(Me[0],Me[1])}scrollToAnchor(Me){if(!this.supportsScrolling())return;const q=function Za(F,Me){const q=F.getElementById(Me)||F.getElementsByName(Me)[0];if(q)return q;if("function"==typeof F.createTreeWalker&&F.body&&"function"==typeof F.body.attachShadow){const fe=F.createTreeWalker(F.body,NodeFilter.SHOW_ELEMENT);let xt=fe.currentNode;for(;xt;){const vn=xt.shadowRoot;if(vn){const bn=vn.getElementById(Me)||vn.querySelector(`[name="${Me}"]`);if(bn)return bn}xt=fe.nextNode()}}return null}(this.document,Me);q&&(this.scrollToElement(q),q.focus())}setHistoryScrollRestoration(Me){this.supportsScrolling()&&(this.window.history.scrollRestoration=Me)}scrollToElement(Me){const q=Me.getBoundingClientRect(),fe=q.left+this.window.pageXOffset,xt=q.top+this.window.pageYOffset,vn=this.offset();this.window.scrollTo(fe-vn[0],xt-vn[1])}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}class cs{}},9862:(zn,wt,S)=>{"use strict";S.d(wt,{JF:()=>gi,TP:()=>Dt,WM:()=>De,eN:()=>pe}),S(5861);var p=S(8564),X=S(2096),a=S(5592),j=S(7715),K=S(6328),C=S(2181),oe=S(7398),_e=S(4716),Le=S(4664),ee=S(6814);class Te{}class ye{}class De{constructor(Tt){this.normalizedNames=new Map,this.lazyUpdate=null,Tt?"string"==typeof Tt?this.lazyInit=()=>{this.headers=new Map,Tt.split("\n").forEach(Mt=>{const Qt=Mt.indexOf(":");if(Qt>0){const wn=Mt.slice(0,Qt),It=wn.toLowerCase(),Xn=Mt.slice(Qt+1).trim();this.maybeSetNormalizedName(wn,It),this.headers.has(It)?this.headers.get(It).push(Xn):this.headers.set(It,[Xn])}})}:typeof Headers<"u"&&Tt instanceof Headers?(this.headers=new Map,Tt.forEach((Mt,Qt)=>{this.setHeaderEntries(Qt,Mt)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Tt).forEach(([Mt,Qt])=>{this.setHeaderEntries(Mt,Qt)})}:this.headers=new Map}has(Tt){return this.init(),this.headers.has(Tt.toLowerCase())}get(Tt){this.init();const Mt=this.headers.get(Tt.toLowerCase());return Mt&&Mt.length>0?Mt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Tt){return this.init(),this.headers.get(Tt.toLowerCase())||null}append(Tt,Mt){return this.clone({name:Tt,value:Mt,op:"a"})}set(Tt,Mt){return this.clone({name:Tt,value:Mt,op:"s"})}delete(Tt,Mt){return this.clone({name:Tt,value:Mt,op:"d"})}maybeSetNormalizedName(Tt,Mt){this.normalizedNames.has(Mt)||this.normalizedNames.set(Mt,Tt)}init(){this.lazyInit&&(this.lazyInit instanceof De?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Tt=>this.applyUpdate(Tt)),this.lazyUpdate=null))}copyFrom(Tt){Tt.init(),Array.from(Tt.headers.keys()).forEach(Mt=>{this.headers.set(Mt,Tt.headers.get(Mt)),this.normalizedNames.set(Mt,Tt.normalizedNames.get(Mt))})}clone(Tt){const Mt=new De;return Mt.lazyInit=this.lazyInit&&this.lazyInit instanceof De?this.lazyInit:this,Mt.lazyUpdate=(this.lazyUpdate||[]).concat([Tt]),Mt}applyUpdate(Tt){const Mt=Tt.name.toLowerCase();switch(Tt.op){case"a":case"s":let Qt=Tt.value;if("string"==typeof Qt&&(Qt=[Qt]),0===Qt.length)return;this.maybeSetNormalizedName(Tt.name,Mt);const wn=("a"===Tt.op?this.headers.get(Mt):void 0)||[];wn.push(...Qt),this.headers.set(Mt,wn);break;case"d":const It=Tt.value;if(It){let Xn=this.headers.get(Mt);if(!Xn)return;Xn=Xn.filter(ui=>-1===It.indexOf(ui)),0===Xn.length?(this.headers.delete(Mt),this.normalizedNames.delete(Mt)):this.headers.set(Mt,Xn)}else this.headers.delete(Mt),this.normalizedNames.delete(Mt)}}setHeaderEntries(Tt,Mt){const Qt=(Array.isArray(Mt)?Mt:[Mt]).map(It=>It.toString()),wn=Tt.toLowerCase();this.headers.set(wn,Qt),this.maybeSetNormalizedName(Tt,wn)}forEach(Tt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Mt=>Tt(this.normalizedNames.get(Mt),this.headers.get(Mt)))}}class Ye{encodeKey(Tt){return Be(Tt)}encodeValue(Tt){return Be(Tt)}decodeKey(Tt){return decodeURIComponent(Tt)}decodeValue(Tt){return decodeURIComponent(Tt)}}const de=/%(\d[a-f0-9])/gi,Pe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Be(Yt){return encodeURIComponent(Yt).replace(de,(Tt,Mt)=>Pe[Mt]??Tt)}function Ne(Yt){return`${Yt}`}class Ae{constructor(Tt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Tt.encoder||new Ye,Tt.fromString){if(Tt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Ce(Yt,Tt){const Mt=new Map;return Yt.length>0&&Yt.replace(/^\?/,"").split("&").forEach(wn=>{const It=wn.indexOf("="),[Xn,ui]=-1==It?[Tt.decodeKey(wn),""]:[Tt.decodeKey(wn.slice(0,It)),Tt.decodeValue(wn.slice(It+1))],Wn=Mt.get(Xn)||[];Wn.push(ui),Mt.set(Xn,Wn)}),Mt}(Tt.fromString,this.encoder)}else Tt.fromObject?(this.map=new Map,Object.keys(Tt.fromObject).forEach(Mt=>{const Qt=Tt.fromObject[Mt],wn=Array.isArray(Qt)?Qt.map(Ne):[Ne(Qt)];this.map.set(Mt,wn)})):this.map=null}has(Tt){return this.init(),this.map.has(Tt)}get(Tt){this.init();const Mt=this.map.get(Tt);return Mt?Mt[0]:null}getAll(Tt){return this.init(),this.map.get(Tt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Tt,Mt){return this.clone({param:Tt,value:Mt,op:"a"})}appendAll(Tt){const Mt=[];return Object.keys(Tt).forEach(Qt=>{const wn=Tt[Qt];Array.isArray(wn)?wn.forEach(It=>{Mt.push({param:Qt,value:It,op:"a"})}):Mt.push({param:Qt,value:wn,op:"a"})}),this.clone(Mt)}set(Tt,Mt){return this.clone({param:Tt,value:Mt,op:"s"})}delete(Tt,Mt){return this.clone({param:Tt,value:Mt,op:"d"})}toString(){return this.init(),this.keys().map(Tt=>{const Mt=this.encoder.encodeKey(Tt);return this.map.get(Tt).map(Qt=>Mt+"="+this.encoder.encodeValue(Qt)).join("&")}).filter(Tt=>""!==Tt).join("&")}clone(Tt){const Mt=new Ae({encoder:this.encoder});return Mt.cloneFrom=this.cloneFrom||this,Mt.updates=(this.updates||[]).concat(Tt),Mt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Tt=>this.map.set(Tt,this.cloneFrom.map.get(Tt))),this.updates.forEach(Tt=>{switch(Tt.op){case"a":case"s":const Mt=("a"===Tt.op?this.map.get(Tt.param):void 0)||[];Mt.push(Ne(Tt.value)),this.map.set(Tt.param,Mt);break;case"d":if(void 0===Tt.value){this.map.delete(Tt.param);break}{let Qt=this.map.get(Tt.param)||[];const wn=Qt.indexOf(Ne(Tt.value));-1!==wn&&Qt.splice(wn,1),Qt.length>0?this.map.set(Tt.param,Qt):this.map.delete(Tt.param)}}}),this.cloneFrom=this.updates=null)}}class lt{constructor(){this.map=new Map}set(Tt,Mt){return this.map.set(Tt,Mt),this}get(Tt){return this.map.has(Tt)||this.map.set(Tt,Tt.defaultValue()),this.map.get(Tt)}delete(Tt){return this.map.delete(Tt),this}has(Tt){return this.map.has(Tt)}keys(){return this.map.keys()}}function Ee(Yt){return typeof ArrayBuffer<"u"&&Yt instanceof ArrayBuffer}function xe(Yt){return typeof Blob<"u"&&Yt instanceof Blob}function je(Yt){return typeof FormData<"u"&&Yt instanceof FormData}class Ve{constructor(Tt,Mt,Qt,wn){let It;if(this.url=Mt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Tt.toUpperCase(),function ne(Yt){switch(Yt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||wn?(this.body=void 0!==Qt?Qt:null,It=wn):It=Qt,It&&(this.reportProgress=!!It.reportProgress,this.withCredentials=!!It.withCredentials,It.responseType&&(this.responseType=It.responseType),It.headers&&(this.headers=It.headers),It.context&&(this.context=It.context),It.params&&(this.params=It.params),this.transferCache=It.transferCache),this.headers||(this.headers=new De),this.context||(this.context=new lt),this.params){const Xn=this.params.toString();if(0===Xn.length)this.urlWithParams=Mt;else{const ui=Mt.indexOf("?");this.urlWithParams=Mt+(-1===ui?"?":uirt.set(we,Tt.setHeaders[we]),Wn)),Tt.setParams&&(lr=Object.keys(Tt.setParams).reduce((rt,we)=>rt.set(we,Tt.setParams[we]),lr)),new Ve(Mt,Qt,It,{params:lr,headers:Wn,context:Je,reportProgress:ui,responseType:wn,withCredentials:Xn})}}var Xe=function(Yt){return Yt[Yt.Sent=0]="Sent",Yt[Yt.UploadProgress=1]="UploadProgress",Yt[Yt.ResponseHeader=2]="ResponseHeader",Yt[Yt.DownloadProgress=3]="DownloadProgress",Yt[Yt.Response=4]="Response",Yt[Yt.User=5]="User",Yt}(Xe||{});class Ht{constructor(Tt,Mt=200,Qt="OK"){this.headers=Tt.headers||new De,this.status=void 0!==Tt.status?Tt.status:Mt,this.statusText=Tt.statusText||Qt,this.url=Tt.url||null,this.ok=this.status>=200&&this.status<300}}class cn extends Ht{constructor(Tt={}){super(Tt),this.type=Xe.ResponseHeader}clone(Tt={}){return new cn({headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class xn extends Ht{constructor(Tt={}){super(Tt),this.type=Xe.Response,this.body=void 0!==Tt.body?Tt.body:null}clone(Tt={}){return new xn({body:void 0!==Tt.body?Tt.body:this.body,headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class $t extends Ht{constructor(Tt){super(Tt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Tt.url||"(unknown url)"}`:`Http failure response for ${Tt.url||"(unknown url)"}: ${Tt.status} ${Tt.statusText}`,this.error=Tt.error||null}}function ke(Yt,Tt){return{body:Tt,headers:Yt.headers,context:Yt.context,observe:Yt.observe,params:Yt.params,reportProgress:Yt.reportProgress,responseType:Yt.responseType,withCredentials:Yt.withCredentials,transferCache:Yt.transferCache}}let pe=(()=>{class Yt{constructor(Mt){this.handler=Mt}request(Mt,Qt,wn={}){let It;if(Mt instanceof Ve)It=Mt;else{let Wn,lr;Wn=wn.headers instanceof De?wn.headers:new De(wn.headers),wn.params&&(lr=wn.params instanceof Ae?wn.params:new Ae({fromObject:wn.params})),It=new Ve(Mt,Qt,void 0!==wn.body?wn.body:null,{headers:Wn,context:wn.context,params:lr,reportProgress:wn.reportProgress,responseType:wn.responseType||"json",withCredentials:wn.withCredentials,transferCache:wn.transferCache})}const Xn=(0,X.of)(It).pipe((0,K.b)(Wn=>this.handler.handle(Wn)));if(Mt instanceof Ve||"events"===wn.observe)return Xn;const ui=Xn.pipe((0,C.h)(Wn=>Wn instanceof xn));switch(wn.observe||"body"){case"body":switch(It.responseType){case"arraybuffer":return ui.pipe((0,oe.U)(Wn=>{if(null!==Wn.body&&!(Wn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Wn.body}));case"blob":return ui.pipe((0,oe.U)(Wn=>{if(null!==Wn.body&&!(Wn.body instanceof Blob))throw new Error("Response is not a Blob.");return Wn.body}));case"text":return ui.pipe((0,oe.U)(Wn=>{if(null!==Wn.body&&"string"!=typeof Wn.body)throw new Error("Response is not a string.");return Wn.body}));default:return ui.pipe((0,oe.U)(Wn=>Wn.body))}case"response":return ui;default:throw new Error(`Unreachable: unhandled observe type ${wn.observe}}`)}}delete(Mt,Qt={}){return this.request("DELETE",Mt,Qt)}get(Mt,Qt={}){return this.request("GET",Mt,Qt)}head(Mt,Qt={}){return this.request("HEAD",Mt,Qt)}jsonp(Mt,Qt){return this.request("JSONP",Mt,{params:(new Ae).append(Qt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Mt,Qt={}){return this.request("OPTIONS",Mt,Qt)}patch(Mt,Qt,wn={}){return this.request("PATCH",Mt,ke(wn,Qt))}post(Mt,Qt,wn={}){return this.request("POST",Mt,ke(wn,Qt))}put(Mt,Qt,wn={}){return this.request("PUT",Mt,ke(wn,Qt))}static#e=this.\u0275fac=function(Qt){return new(Qt||Yt)(p.LFG(Te))};static#t=this.\u0275prov=p.Yz7({token:Yt,factory:Yt.\u0275fac})}return Yt})();function qn(Yt,Tt){return Tt(Yt)}function li(Yt,Tt){return(Mt,Qt)=>Tt.intercept(Mt,{handle:wn=>Yt(wn,Qt)})}const Dt=new p.OlP(""),Ie=new p.OlP(""),Ct=new p.OlP(""),on=new p.OlP("");function Rn(){let Yt=null;return(Tt,Mt)=>{null===Yt&&(Yt=((0,p.f3M)(Dt,{optional:!0})??[]).reduceRight(li,qn));const Qt=(0,p.f3M)(p.HDt),wn=Qt.add();return Yt(Tt,Mt).pipe((0,_e.x)(()=>Qt.remove(wn)))}}let Hn=(()=>{class Yt extends Te{constructor(Mt,Qt){super(),this.backend=Mt,this.injector=Qt,this.chain=null,this.pendingTasks=(0,p.f3M)(p.HDt);const wn=(0,p.f3M)(on,{optional:!0});this.backend=wn??Mt}handle(Mt){if(null===this.chain){const wn=Array.from(new Set([...this.injector.get(Ie),...this.injector.get(Ct,[])]));this.chain=wn.reduceRight((It,Xn)=>function en(Yt,Tt,Mt){return(Qt,wn)=>Mt.runInContext(()=>Tt(Qt,It=>Yt(It,wn)))}(It,Xn,this.injector),qn)}const Qt=this.pendingTasks.add();return this.chain(Mt,wn=>this.backend.handle(wn)).pipe((0,_e.x)(()=>this.pendingTasks.remove(Qt)))}static#e=this.\u0275fac=function(Qt){return new(Qt||Yt)(p.LFG(ye),p.LFG(p.lqb))};static#t=this.\u0275prov=p.Yz7({token:Yt,factory:Yt.\u0275fac})}return Yt})();const Bi=/^\)\]\}',?\n/;let sn=(()=>{class Yt{constructor(Mt){this.xhrFactory=Mt}handle(Mt){if("JSONP"===Mt.method)throw new p.vHH(-2800,!1);const Qt=this.xhrFactory;return(Qt.\u0275loadImpl?(0,j.D)(Qt.\u0275loadImpl()):(0,X.of)(null)).pipe((0,Le.w)(()=>new a.y(It=>{const Xn=Qt.build();if(Xn.open(Mt.method,Mt.urlWithParams),Mt.withCredentials&&(Xn.withCredentials=!0),Mt.headers.forEach((Lt,gn)=>Xn.setRequestHeader(Lt,gn.join(","))),Mt.headers.has("Accept")||Xn.setRequestHeader("Accept","application/json, text/plain, */*"),!Mt.headers.has("Content-Type")){const Lt=Mt.detectContentTypeHeader();null!==Lt&&Xn.setRequestHeader("Content-Type",Lt)}if(Mt.responseType){const Lt=Mt.responseType.toLowerCase();Xn.responseType="json"!==Lt?Lt:"text"}const ui=Mt.serializeBody();let Wn=null;const lr=()=>{if(null!==Wn)return Wn;const Lt=Xn.statusText||"OK",gn=new De(Xn.getAllResponseHeaders()),ti=function pn(Yt){return"responseURL"in Yt&&Yt.responseURL?Yt.responseURL:/^X-Request-URL:/m.test(Yt.getAllResponseHeaders())?Yt.getResponseHeader("X-Request-URL"):null}(Xn)||Mt.url;return Wn=new cn({headers:gn,status:Xn.status,statusText:Lt,url:ti}),Wn},Je=()=>{let{headers:Lt,status:gn,statusText:ti,url:di}=lr(),Kn=null;204!==gn&&(Kn=typeof Xn.response>"u"?Xn.responseText:Xn.response),0===gn&&(gn=Kn?200:0);let Xi=gn>=200&&gn<300;if("json"===Mt.responseType&&"string"==typeof Kn){const J=Kn;Kn=Kn.replace(Bi,"");try{Kn=""!==Kn?JSON.parse(Kn):null}catch(be){Kn=J,Xi&&(Xi=!1,Kn={error:be,text:Kn})}}Xi?(It.next(new xn({body:Kn,headers:Lt,status:gn,statusText:ti,url:di||void 0})),It.complete()):It.error(new $t({error:Kn,headers:Lt,status:gn,statusText:ti,url:di||void 0}))},rt=Lt=>{const{url:gn}=lr(),ti=new $t({error:Lt,status:Xn.status||0,statusText:Xn.statusText||"Unknown Error",url:gn||void 0});It.error(ti)};let we=!1;const ut=Lt=>{we||(It.next(lr()),we=!0);let gn={type:Xe.DownloadProgress,loaded:Lt.loaded};Lt.lengthComputable&&(gn.total=Lt.total),"text"===Mt.responseType&&Xn.responseText&&(gn.partialText=Xn.responseText),It.next(gn)},dt=Lt=>{let gn={type:Xe.UploadProgress,loaded:Lt.loaded};Lt.lengthComputable&&(gn.total=Lt.total),It.next(gn)};return Xn.addEventListener("load",Je),Xn.addEventListener("error",rt),Xn.addEventListener("timeout",rt),Xn.addEventListener("abort",rt),Mt.reportProgress&&(Xn.addEventListener("progress",ut),null!==ui&&Xn.upload&&Xn.upload.addEventListener("progress",dt)),Xn.send(ui),It.next({type:Xe.Sent}),()=>{Xn.removeEventListener("error",rt),Xn.removeEventListener("abort",rt),Xn.removeEventListener("load",Je),Xn.removeEventListener("timeout",rt),Mt.reportProgress&&(Xn.removeEventListener("progress",ut),null!==ui&&Xn.upload&&Xn.upload.removeEventListener("progress",dt)),Xn.readyState!==Xn.DONE&&Xn.abort()}})))}static#e=this.\u0275fac=function(Qt){return new(Qt||Yt)(p.LFG(ee.JF))};static#t=this.\u0275prov=p.Yz7({token:Yt,factory:Yt.\u0275fac})}return Yt})();const Cn=new p.OlP("XSRF_ENABLED"),ct=new p.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),se=new p.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class tt{}let yt=(()=>{class Yt{constructor(Mt,Qt,wn){this.doc=Mt,this.platform=Qt,this.cookieName=wn,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Mt=this.doc.cookie||"";return Mt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,ee.Mx)(Mt,this.cookieName),this.lastCookieString=Mt),this.lastToken}static#e=this.\u0275fac=function(Qt){return new(Qt||Yt)(p.LFG(ee.K0),p.LFG(p.Lbi),p.LFG(ct))};static#t=this.\u0275prov=p.Yz7({token:Yt,factory:Yt.\u0275fac})}return Yt})();function Ot(Yt,Tt){const Mt=Yt.url.toLowerCase();if(!(0,p.f3M)(Cn)||"GET"===Yt.method||"HEAD"===Yt.method||Mt.startsWith("http://")||Mt.startsWith("https://"))return Tt(Yt);const Qt=(0,p.f3M)(tt).getToken(),wn=(0,p.f3M)(se);return null!=Qt&&!Yt.headers.has(wn)&&(Yt=Yt.clone({headers:Yt.headers.set(wn,Qt)})),Tt(Yt)}var Vt=function(Yt){return Yt[Yt.Interceptors=0]="Interceptors",Yt[Yt.LegacyInterceptors=1]="LegacyInterceptors",Yt[Yt.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Yt[Yt.NoXsrfProtection=3]="NoXsrfProtection",Yt[Yt.JsonpSupport=4]="JsonpSupport",Yt[Yt.RequestsMadeViaParent=5]="RequestsMadeViaParent",Yt[Yt.Fetch=6]="Fetch",Yt}(Vt||{});function Jt(...Yt){const Tt=[pe,sn,Hn,{provide:Te,useExisting:Hn},{provide:ye,useExisting:sn},{provide:Ie,useValue:Ot,multi:!0},{provide:Cn,useValue:!0},{provide:tt,useClass:yt}];for(const Mt of Yt)Tt.push(...Mt.\u0275providers);return(0,p.MR2)(Tt)}const mn=new p.OlP("LEGACY_INTERCEPTOR_FN");function ae(){return function Et(Yt,Tt){return{\u0275kind:Yt,\u0275providers:Tt}}(Vt.LegacyInterceptors,[{provide:mn,useFactory:Rn},{provide:Ie,useExisting:mn,multi:!0}])}let gi=(()=>{class Yt{static#e=this.\u0275fac=function(Qt){return new(Qt||Yt)};static#t=this.\u0275mod=p.oAB({type:Yt});static#n=this.\u0275inj=p.cJS({providers:[Jt(ae())]})}return Yt})()},8564:(zn,wt,S)=>{"use strict";S.d(wt,{tb:()=>A0,AFp:()=>Ip,ip1:()=>ww,hGG:()=>jM,z2F:()=>lp,Ojb:()=>Ap,sBO:()=>kn,Sil:()=>XI,EJc:()=>HI,Xts:()=>fu,SBq:()=>mc,lqb:()=>Fa,qLn:()=>$c,vpe:()=>kr,XFs:()=>Lt,OlP:()=>mt,zs3:()=>al,ZZ4:()=>xm,aQg:()=>yd,soG:()=>iy,YKP:()=>Ob,h0i:()=>_h,R0b:()=>xr,FiY:()=>dc,Lbi:()=>Lc,g9A:()=>Mp,Qsj:()=>o_,FYo:()=>mm,JOm:()=>td,tp0:()=>Zu,Rgc:()=>sg,dDg:()=>CM,eoX:()=>Ow,GfV:()=>s_,s_b:()=>B_,ifc:()=>fo,T8G:()=>Fm,VuI:()=>lA,LMc:()=>uA,MMx:()=>Lb,Lck:()=>jD,eFA:()=>Fw,G48:()=>kM,Gpc:()=>pn,f3M:()=>_r,$WT:()=>le,MR2:()=>_p,_c5:()=>UM,qFp:()=>dA,r_H:()=>Wu,rg0:()=>nh,c2e:()=>Cw,zSh:()=>fc,HDt:()=>Tw,wAp:()=>rp,vHH:()=>se,lri:()=>Sw,rWj:()=>Pw,cg1:()=>Jv,kuF:()=>tt,kL8:()=>E1,dqk:()=>J,Z0I:()=>ui,eJc:()=>pc,QGY:()=>Qv,F4k:()=>K1,RDi:()=>Ba,AaK:()=>ki,qOj:()=>yv,Xq5:()=>ux,TTD:()=>Yo,_Bn:()=>Pb,jDz:()=>kb,xp6:()=>Em,uIk:()=>vv,ekj:()=>Dv,Suo:()=>nw,Xpm:()=>Ol,lG2:()=>Ya,Yz7:()=>Qt,cJS:()=>It,oAB:()=>qa,Yjl:()=>pl,Y36:()=>Zc,_UZ:()=>qv,GkF:()=>Yv,BQk:()=>W_,ynx:()=>H_,qZA:()=>G_,TgZ:()=>Z_,EpF:()=>b1,n5z:()=>Ch,LFG:()=>cr,$8M:()=>Bu,$Z:()=>__,NdJ:()=>e0,CRH:()=>iw,oxw:()=>nb,ALo:()=>Yb,lcZ:()=>Jb,xi3:()=>Kb,Hsn:()=>rb,F$t:()=>ib,Q6J:()=>Cv,s9C:()=>t0,DdM:()=>$b,iGM:()=>ew,MAs:()=>fb,KtG:()=>xa,CHM:()=>Ws,LSH:()=>Ss,P3R:()=>wu,Udp:()=>Tv,YNc:()=>Jf,_uU:()=>Cb,Oqu:()=>r0,hij:()=>X_,AsE:()=>o0,lnq:()=>s0,HOy:()=>a0,Gf:()=>tw});let p=null,a=1;function K(t){const i=p;return p=t,i}function ye(t){if((!Ge(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==a)){if(!t.producerMustRecompute(t)&&!Pe(t))return t.dirty=!1,void(t.lastCleanEpoch=a);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=a}}function Pe(t){lt(t);for(let i=0;i0}function lt(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Ht=null;var Dt=S(8645),Ie=S(7394),Ct=S(5592),on=S(7537),Rn=S(4829),Vn=S(6232),Ut=S(4564),Hn=S(7715),Nt=S(5619),Xt=S(2096),Tn=S(3020),oi=S(4664),xi=S(3997);function Oi(t){for(let i in t)if(t[i]===Oi)return i;throw Error("Could not find renamed property on target object.")}function gr(t,i){for(const s in i)i.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(t[s]=i[s])}function ki(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(ki).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const s=i.indexOf("\n");return-1===s?i:i.substring(0,s)}function Wi(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const Bi=Oi({__forward_ref__:Oi});function pn(t){return t.__forward_ref__=pn,t.toString=function(){return ki(this())},t}function sn(t){return Cn(t)?t():t}function Cn(t){return"function"==typeof t&&t.hasOwnProperty(Bi)&&t.__forward_ref__===pn}function $i(t){return t&&!!t.\u0275providers}const ge="https://g.co/ng/security#xss";class se extends Error{constructor(i,s){super(tt(i,s)),this.code=i}}function tt(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}const yt=Oi({\u0275cmp:Oi}),Ot=Oi({\u0275dir:Oi}),Gt=Oi({\u0275pipe:Oi}),Vt=Oi({\u0275mod:Oi}),Et=Oi({\u0275fac:Oi}),Jt=Oi({__NG_ELEMENT_ID__:Oi}),Bn=Oi({__NG_ENV_ID__:Oi});function mn(t){return"string"==typeof t?t:null==t?"":String(t)}function Dn(t,i){throw new se(-201,!1)}function qi(t,i){null==t&&function Ci(t,i,s,u){throw new Error(`ASSERTION ERROR: ${t}`+(null==u?"":` [Expected=> ${s} ${u} ${i} <=Actual]`))}(i,t,null,"!=")}function Qt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function It(t){return{providers:t.providers||[],imports:t.imports||[]}}function Xn(t){return Wn(t,rt)||Wn(t,ut)}function ui(t){return null!==Xn(t)}function Wn(t,i){return t.hasOwnProperty(i)?t[i]:null}function Je(t){return t&&(t.hasOwnProperty(we)||t.hasOwnProperty(dt))?t[we]:null}const rt=Oi({\u0275prov:Oi}),we=Oi({\u0275inj:Oi}),ut=Oi({ngInjectableDef:Oi}),dt=Oi({ngInjectorDef:Oi});var Lt=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(Lt||{});let gn;function ti(){return gn}function di(t){const i=gn;return gn=t,i}function Kn(t,i,s){const u=Xn(t);return u&&"root"==u.providedIn?void 0===u.value?u.value=u.factory():u.value:s&Lt.Optional?null:void 0!==i?i:void Dn(ki(t))}const J=globalThis;class mt{constructor(i,s){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof s?this.__NG_ELEMENT_ID__=s:void 0!==s&&(this.\u0275prov=Qt({token:this,providedIn:s.providedIn||"root",factory:s.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const R={},$e="__NG_DI_FLAG__",H="ngTempTokenPath",Bt=/\n/gm,Tr="__source";let ji;function Mo(t){const i=ji;return ji=t,i}function Ns(t,i=Lt.Default){if(void 0===ji)throw new se(-203,!1);return null===ji?Kn(t,void 0,i):ji.get(t,i&Lt.Optional?null:void 0,i)}function cr(t,i=Lt.Default){return(ti()||Ns)(sn(t),i)}function _r(t,i=Lt.Default){return cr(t,Uo(i))}function Uo(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function jo(t){const i=[];for(let s=0;si){T=x-1;break}}}for(;xx?"":g[Ke+1].toLowerCase();const Zt=8&u?kt:null;if(Zt&&-1!==Lo(Zt,te,0)||2&u&&te!==kt){if(Xo(u))return!1;T=!0}}}}else{if(!T&&!Xo(u)&&!Xo(k))return!1;if(T&&Xo(k))continue;T=!1,u=k|1&u}}return Xo(u)||T}function Xo(t){return 0==(1&t)}function Ql(t,i,s,u){if(null===i)return-1;let g=0;if(u||!s){let x=!1;for(;g-1)for(s++;s0?'="'+A+'"':"")+"]"}else 8&u?g+="."+T:4&u&&(g+=" "+T);else""!==g&&!Xo(T)&&(i+=js(x,g),g=""),u=T,x=x||!Xo(u);s++}return""!==g&&(i+=js(x,g)),i}function Ol(t){return lo(()=>{const i=W(t),s={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Aa.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||fo.Emulated,styles:t.styles||mr,_:null,schemas:t.schemas||null,tView:null,id:""};He(s);const u=t.dependencies;return s.directiveDefs=zt(u,!1),s.pipeDefs=zt(u,!0),s.id=function dr(t){let i=0;const s=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const g of s)i=Math.imul(31,i)+g.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(s),s})}function Wa(t){return _i(t)||Br(t)}function Rl(t){return null!==t}function qa(t){return lo(()=>({type:t.type,bootstrap:t.bootstrap||mr,declarations:t.declarations||mr,imports:t.imports||mr,exports:t.exports||mr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ma(t,i){if(null==t)return po;const s={};for(const u in t)if(t.hasOwnProperty(u)){let g=t[u],x=g;Array.isArray(g)&&(x=g[1],g=g[0]),s[g]=u,i&&(i[g]=x)}return s}function Ya(t){return lo(()=>{const i=W(t);return He(i),i})}function pl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function _i(t){return t[yt]||null}function Br(t){return t[Ot]||null}function Ao(t){return t[Gt]||null}function le(t){const i=_i(t)||Br(t)||Ao(t);return null!==i&&i.standalone}function ue(t,i){const s=t[Vt]||null;if(!s&&!0===i)throw new Error(`Type ${ki(t)} does not have '\u0275mod' property.`);return s}function W(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||po,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||mr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ma(t.inputs,i),outputs:ma(t.outputs),debugInfo:null}}function He(t){t.features?.forEach(i=>i(t))}function zt(t,i){if(!t)return null;const s=i?Ao:Wa;return()=>("function"==typeof t?t():t).map(u=>s(u)).filter(Rl)}const wr=0,ai=1,Ni=2,Jr=3,us=4,wo=5,Ho=6,ra=7,Ar=8,Vo=9,Cs=10,Yi=11,Qo=12,Pa=13,ds=14,Xr=15,Ja=16,oa=17,is=18,ga=19,sa=20,Es=21,Ll=22,_a=23,er=25,Ka=1,Wo=7,aa=9,mo=10;var Ts=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t[t.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",t}(Ts||{});function ko(t){return Array.isArray(t)&&"object"==typeof t[Ka]}function go(t){return Array.isArray(t)&&!0===t[Ka]}function bc(t){return 0!=(4&t.flags)}function Xa(t){return t.componentOffset>-1}function ec(t){return 1==(1&t.flags)}function Ds(t){return!!t.template}function _l(t){return 0!=(512&t[Ni])}function $o(t,i){return t.hasOwnProperty(Et)?t[Et]:null}class fs{constructor(i,s,u){this.previousValue=i,this.currentValue=s,this.firstChange=u}isFirstChange(){return this.firstChange}}function Yo(){return Zs}function Zs(t){return t.type.prototype.ngOnChanges&&(t.setInput=fi),el}function el(){const t=wc(this),i=t?.current;if(i){const s=t.previous;if(s===po)t.previous=i;else for(let u in i)s[u]=i[u];t.current=null,this.ngOnChanges(i)}}function fi(t,i,s,u){const g=this.declaredInputs[s],x=wc(t)||function nc(t,i){return t[Gs]=i}(t,{previous:po,current:null}),T=x.current||(x.current={}),A=x.previous,k=A[g];T[g]=new fs(k&&k.currentValue,i,A===po),t[u]=i}Yo.ngInherit=!0;const Gs="__ngSimpleChanges__";function wc(t){return t[Gs]||null}const ps=function(t,i,s){};function jr(t){for(;Array.isArray(t);)t=t[wr];return t}function tl(t,i){return jr(i[t])}function Nr(t,i){return jr(i[t.index])}function rc(t,i){return t.data[i]}function ya(t,i){return t[i]}function Zo(t,i){const s=i[t];return ko(s)?s:s[wr]}function kl(t){return 128==(128&t[Ni])}function Hs(t,i){return null==i?null:t[i]}function Fl(t){t[oa]=0}function xl(t){1024&t[Ni]||(t[Ni]|=1024,kl(t)&&bl(t))}function ku(t){9216&t[Ni]&&bl(t)}function bl(t){let i=t[Jr];for(;null!==i&&!(go(i)&&i[Ni]&Ts.HasChildViewsToRefresh||ko(i)&&8192&i[Ni]);){if(go(i))i[Ni]|=Ts.HasChildViewsToRefresh;else if(i[Ni]|=8192,!kl(i))break;i=i[Jr]}}function ms(t,i){if(256==(256&t[Ni]))throw new se(911,!1);null===t[Es]&&(t[Es]=[]),t[Es].push(i)}const Ki={lFrame:I(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function eu(){return Ki.bindingsEnabled}function Co(){return null!==Ki.skipHydrationRootTNode}function Nn(){return Ki.lFrame.lView}function Cr(){return Ki.lFrame.tView}function Ws(t){return Ki.lFrame.contextLView=t,t[Ar]}function xa(t){return Ki.lFrame.contextLView=null,t}function Er(){let t=sc();for(;null!==t&&64===t.type;)t=t.parent;return t}function sc(){return Ki.lFrame.currentTNode}function qs(t,i){const s=Ki.lFrame;s.currentTNode=t,s.isParent=i}function ac(){return Ki.lFrame.isParent}function nl(){Ki.lFrame.isParent=!1}function os(){const t=Ki.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function Ra(){return Ki.lFrame.bindingIndex}function ba(){return Ki.lFrame.bindingIndex++}function La(t){const i=Ki.lFrame,s=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,s}function P(t,i){const s=Ki.lFrame;s.bindingIndex=s.bindingRootIndex=t,O(i)}function O(t){Ki.lFrame.currentDirectiveIndex=t}function d(){return Ki.lFrame.currentQueryIndex}function n(t){Ki.lFrame.currentQueryIndex=t}function c(t){const i=t[ai];return 2===i.type?i.declTNode:1===i.type?t[wo]:null}function m(t,i,s){if(s&Lt.SkipSelf){let g=i,x=t;for(;!(g=g.parent,null!==g||s&Lt.Host||(g=c(x),null===g||(x=x[ds],10&g.type))););if(null===g)return!1;i=g,t=x}const u=Ki.lFrame=b();return u.currentTNode=i,u.lView=t,!0}function v(t){const i=b(),s=t[ai];Ki.lFrame=i,i.currentTNode=s.firstChild,i.lView=t,i.tView=s,i.contextLView=t,i.bindingIndex=s.bindingStartIndex,i.inI18n=!1}function b(){const t=Ki.lFrame,i=null===t?null:t.child;return null===i?I(t):i}function I(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function M(){const t=Ki.lFrame;return Ki.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const N=M;function Z(){const t=M();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function re(){return Ki.lFrame.selectedIndex}function Re(t){Ki.lFrame.selectedIndex=t}function Fe(){const t=Ki.lFrame;return rc(t.tView,t.selectedIndex)}let pt=!0;function gt(){return pt}function Pt(t){pt=t}function Rt(t,i){for(let s=i.directiveStart,u=i.directiveEnd;s=u)break}else i[k]<0&&(t[oa]+=65536),(A>14>16&&(3&t[Ni])===i&&(t[Ni]+=16384,tn(A,x)):tn(A,x)}const dn=-1;class Zn{constructor(i,s,u){this.factory=i,this.resolving=!1,this.canSeeViewProviders=s,this.injectImpl=u}}function wi(t){return t!==dn}function Si(t){return 32767&t}function tr(t,i){let s=function fr(t){return t>>16}(t),u=i;for(;s>0;)u=u[ds],s--;return u}let Di=!0;function Dr(t){const i=Di;return Di=t,i}const Vr=255,$r=5;let gs=0;const oo={};function ca(t,i){const s=Zr(t,i);if(-1!==s)return s;const u=i[ai];u.firstCreatePass&&(t.injectorIndex=i.length,no(u.data,t),no(i,null),no(u.blueprint,null));const g=br(t,i),x=t.injectorIndex;if(wi(g)){const T=Si(g),A=tr(g,i),k=A[ai].data;for(let te=0;te<8;te++)i[x+te]=A[T+te]|k[T+te]}return i[x+8]=g,x}function no(t,i){t.push(0,0,0,0,0,0,0,0,i)}function Zr(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function br(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let s=0,u=null,g=i;for(;null!==g;){if(u=Eh(g),null===u)return dn;if(s++,g=g[ds],-1!==u.injectorIndex)return u.injectorIndex|s<<16}return dn}function Eo(t,i,s){!function wa(t,i,s){let u;"string"==typeof s?u=s.charCodeAt(0)||0:s.hasOwnProperty(Jt)&&(u=s[Jt]),null==u&&(u=s[Jt]=gs++);const g=u&Vr;i.data[t+(g>>$r)]|=1<=0?i&Vr:fy:i}(s);if("function"==typeof x){if(!m(i,t,u))return u&Lt.Host?io(g,0,u):Ms(i,s,u,g);try{let T;if(T=x(u),null!=T||u&Lt.Optional)return T;Dn()}finally{N()}}else if("number"==typeof x){let T=null,A=Zr(t,i),k=dn,te=u&Lt.Host?i[Xr][wo]:null;for((-1===A||u&Lt.SkipSelf)&&(k=-1===A?br(t,i):i[A+8],k!==dn&&Dc(u,!1)?(T=i[ai],A=Si(k),i=tr(k,i)):A=-1);-1!==A;){const ve=i[ai];if(ou(x,A,ve.data)){const Ke=ru(A,i,s,T,u,te);if(Ke!==oo)return Ke}k=i[A+8],k!==dn&&Dc(u,i[ai].data[A+8]===te)&&ou(x,A,i)?(T=ve,A=Si(k),i=tr(k,i)):A=-1}}return g}function ru(t,i,s,u,g,x){const T=i[ai],A=T.data[t+8],ve=Ca(A,T,s,null==u?Xa(A)&&Di:u!=T&&0!=(3&A.type),g&Lt.Host&&x===A);return null!==ve?Ys(i,T,ve,A):oo}function Ca(t,i,s,u,g){const x=t.providerIndexes,T=i.data,A=1048575&x,k=t.directiveStart,ve=x>>20,kt=g?A+ve:t.directiveEnd;for(let Zt=u?A:A+ve;Zt=k&&Sn.type===s)return Zt}if(g){const Zt=T[k];if(Zt&&Ds(Zt)&&Zt.type===s)return k}return null}function Ys(t,i,s,u){let g=t[s];const x=i.data;if(function ln(t){return t instanceof Zn}(g)){const T=g;T.resolving&&function ze(t,i){const s=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new se(-200,`Circular dependency in DI detected for ${t}${s}`)}(function ae(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():mn(t)}(x[s]));const A=Dr(T.canSeeViewProviders);T.resolving=!0;const te=T.injectImpl?di(T.injectImpl):null;m(t,u,Lt.Default);try{g=t[s]=T.factory(void 0,x,t,u),i.firstCreatePass&&s>=u.directiveStart&&function Ft(t,i,s){const{ngOnChanges:u,ngOnInit:g,ngDoCheck:x}=i.type.prototype;if(u){const T=Zs(i);(s.preOrderHooks??=[]).push(t,T),(s.preOrderCheckHooks??=[]).push(t,T)}g&&(s.preOrderHooks??=[]).push(0-t,g),x&&((s.preOrderHooks??=[]).push(t,x),(s.preOrderCheckHooks??=[]).push(t,x))}(s,x[s],i)}finally{null!==te&&di(te),Dr(A),T.resolving=!1,N()}}return g}function ou(t,i,s){return!!(s[i+(t>>$r)]&1<{const i=t.prototype.constructor,s=i[Et]||Nu(i),u=Object.prototype;let g=Object.getPrototypeOf(t.prototype).constructor;for(;g&&g!==u;){const x=g[Et]||Nu(g);if(x&&x!==s)return x;g=Object.getPrototypeOf(g)}return x=>new x})}function Nu(t){return Cn(t)?()=>{const i=Nu(sn(t));return i&&i()}:$o(t)}function Eh(t){const i=t[ai],s=i.type;return 2===s?i.declTNode:1===s?t[wo]:null}function Bu(t){return function Is(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const s=t.attrs;if(s){const u=s.length;let g=0;for(;g{const u=function hp(t){return function(...s){if(t){const u=t(...s);for(const g in u)this[g]=u[g]}}}(i);function g(...x){if(this instanceof g)return u.apply(this,x),this;const T=new g(...x);return A.annotation=T,A;function A(k,te,ve){const Ke=k.hasOwnProperty(uc)?k[uc]:Object.defineProperty(k,uc,{value:[]})[uc];for(;Ke.length<=ve;)Ke.push(null);return(Ke[ve]=Ke[ve]||[]).push(T),k}}return s&&(g.prototype=Object.create(s.prototype)),g.prototype.ngMetadataName=t,g.annotationCls=g,g})}function ju(t,i){t.forEach(s=>Array.isArray(s)?ju(s,i):i(s))}function fg(t,i,s){i>=t.length?t.push(s):t.splice(i,0,s)}function _o(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Ii(t,i){const s=[];for(let u=0;u=0?t[1|u]=s:(u=~u,function ua(t,i,s,u){let g=t.length;if(g==i)t.push(s,u);else if(1===g)t.push(u,t[0]),t[0]=s;else{for(g--,t.push(t[g-1],t[g]);g>i;)t[g]=t[g-2],g--;t[i]=s,t[i+1]=u}}(t,u,i,s)),u}function ka(t,i){const s=Mc(t,i);if(s>=0)return t[1|s]}function Mc(t,i){return function $u(t,i,s){let u=0,g=t.length>>s;for(;g!==u;){const x=u+(g-u>>1),T=t[x<i?g=x:u=x+1}return~(g<{s.push(T)};return ju(i,T=>{const A=T;Sc(A,x,[],u)&&(g||=[],g.push(A))}),void 0!==g&&vp(g,x),s}function vp(t,i){for(let s=0;s{i(x,u)})}}function Sc(t,i,s,u){if(!(t=sn(t)))return!1;let g=null,x=Je(t);const T=!x&&_i(t);if(x||T){if(T&&!T.standalone)return!1;g=t}else{const k=t.ngModule;if(x=Je(k),!x)return!1;g=k}const A=u.has(g);if(T){if(A)return!1;if(u.add(g),T.dependencies){const k="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const te of k)Sc(te,i,s,u)}}else{if(!x)return!1;{if(null!=x.imports&&!A){let te;u.add(g);try{ju(x.imports,ve=>{Sc(ve,i,s,u)&&(te||=[],te.push(ve))})}finally{}void 0!==te&&vp(te,i)}if(!A){const te=$o(g)||(()=>new g);i({provide:g,useFactory:te,deps:mr},g),i({provide:Mh,useValue:g,multi:!0},g),i({provide:fu,useValue:()=>cr(g),multi:!0},g)}const k=x.providers;if(null!=k&&!A){const te=t;Od(k,ve=>{i(ve,te)})}}}return g!==t&&void 0!==t.providers}function Od(t,i){for(let s of t)$i(s)&&(s=s.\u0275providers),Array.isArray(s)?Od(s,i):i(s)}const xp=Oi({provide:String,useValue:Oi});function _s(t){return null!==t&&"object"==typeof t&&xp in t}function Xs(t){return"function"==typeof t}const fc=new mt("Set Injector scope."),Pc={},sl={};let Da;function Sh(){return void 0===Da&&(Da=new Pd),Da}class Fa{}class pu extends Fa{get destroyed(){return this._destroyed}constructor(i,s,u,g){super(),this.parent=s,this.source=u,this.scopes=g,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rd(i,T=>this.processProvider(T)),this.records.set(gp,mu(void 0,this)),g.has("environment")&&this.records.set(Fa,mu(void 0,this));const x=this.records.get(fc);null!=x&&"string"==typeof x.value&&this.scopes.add(x.value),this.injectorDefTypes=new Set(this.get(Mh,mr,Lt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const s of this._ngOnDestroyHooks)s.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const s of i)s()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const s=Mo(this),u=di(void 0);try{return i()}finally{Mo(s),di(u)}}get(i,s=R,u=Lt.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(Bn))return i[Bn](this);u=Uo(u);const x=Mo(this),T=di(void 0);try{if(!(u&Lt.SkipSelf)){let k=this.records.get(i);if(void 0===k){const te=function Ph(t){return"function"==typeof t||"object"==typeof t&&t instanceof mt}(i)&&Xn(i);k=te&&this.injectableDefInScope(te)?mu(wp(i),Pc):null,this.records.set(i,k)}if(null!=k)return this.hydrate(i,k)}return(u&Lt.Self?Sh():this.parent).get(i,s=u&Lt.Optional&&s===R?null:s)}catch(A){if("NullInjectorError"===A.name){if((A[H]=A[H]||[]).unshift(ki(i)),x)throw A;return function $a(t,i,s,u){const g=t[H];throw i[Tr]&&g.unshift(i[Tr]),t.message=function zs(t,i,s,u=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let g=ki(i);if(Array.isArray(i))g=i.map(ki).join(" -> ");else if("object"==typeof i){let x=[];for(let T in i)if(i.hasOwnProperty(T)){let A=i[T];x.push(T+":"+("string"==typeof A?JSON.stringify(A):ki(A)))}g=`{${x.join(", ")}}`}return`${s}${u?"("+u+")":""}[${g}]: ${t.replace(Bt,"\n ")}`}("\n"+t.message,g,s,u),t.ngTokenPath=g,t[H]=null,t}(A,i,"R3InjectorError",this.source)}throw A}finally{di(T),Mo(x)}}resolveInjectorInitializers(){const i=Mo(this),s=di(void 0);try{const g=this.get(fu,mr,Lt.Self);for(const x of g)x()}finally{Mo(i),di(s)}}toString(){const i=[],s=this.records;for(const u of s.keys())i.push(ki(u));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new se(205,!1)}processProvider(i){let s=Xs(i=sn(i))?i:sn(i&&i.provide);const u=function jl(t){return _s(t)?mu(void 0,t.useValue):mu(Oc(t),Pc)}(i);if(Xs(i)||!0!==i.multi)this.records.get(s);else{let g=this.records.get(s);g||(g=mu(void 0,Pc,!0),g.factory=()=>jo(g.multi),this.records.set(s,g)),s=i,g.multi.push(i)}this.records.set(s,u)}hydrate(i,s){return s.value===Pc&&(s.value=sl,s.value=s.factory()),"object"==typeof s.value&&s.value&&function wy(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(s.value)&&this._ngOnDestroyHooks.add(s.value),s.value}injectableDefInScope(i){if(!i.providedIn)return!1;const s=sn(i.providedIn);return"string"==typeof s?"any"===s||this.scopes.has(s):this.injectorDefTypes.has(s)}removeOnDestroy(i){const s=this._onDestroyHooks.indexOf(i);-1!==s&&this._onDestroyHooks.splice(s,1)}}function wp(t){const i=Xn(t),s=null!==i?i.factory:$o(t);if(null!==s)return s;if(t instanceof mt)throw new se(204,!1);if(t instanceof Function)return function Cp(t){const i=t.length;if(i>0)throw Ii(i,"?"),new se(204,!1);const s=function lr(t){return t&&(t[rt]||t[ut])||null}(t);return null!==s?()=>s.factory(t):()=>new t}(t);throw new se(204,!1)}function Oc(t,i,s){let u;if(Xs(t)){const g=sn(t);return $o(g)||wp(g)}if(_s(t))u=()=>sn(t.useValue);else if(function bp(t){return!(!t||!t.useFactory)}(t))u=()=>t.useFactory(...jo(t.deps||[]));else if(function Ah(t){return!(!t||!t.useExisting)}(t))u=()=>cr(sn(t.useExisting));else{const g=sn(t&&(t.useClass||t.provide));if(!function bg(t){return!!t.deps}(t))return $o(g)||wp(g);u=()=>new g(...jo(t.deps))}return u}function mu(t,i,s=!1){return{factory:t,value:i,multi:s?[]:void 0}}function Rd(t,i){for(const s of t)Array.isArray(s)?Rd(s,i):s&&$i(s)?Rd(s.\u0275providers,i):i(s)}function Wu(t,i){t instanceof pu&&t.assertNotDestroyed();const u=Mo(t),g=di(void 0);try{return i()}finally{Mo(u),di(g)}}function Dp(t,i=null,s=null,u){const g=Tg(t,i,s,u);return g.resolveInjectorInitializers(),g}function Tg(t,i=null,s=null,u,g=new Set){const x=[s||mr,xy(t)];return u=u||("object"==typeof t?void 0:ki(t)),new pu(x,i||Sh(),u||null,g)}let Na,al=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=R;static#t=this.NULL=new Pd;static create(s,u){if(Array.isArray(s))return Dp({name:""},u,s,"");{const g=s.name??"";return Dp({name:g},s.parent,s.providers,g)}}static#n=this.\u0275prov=Qt({token:t,providedIn:"any",factory:()=>cr(gp)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function pc(t){return!!ue(t)}function Ba(t){Na=t}const Ip=new mt("AppId",{providedIn:"root",factory:()=>ys}),ys="ng",Mp=new mt("Platform Initializer"),Lc=new mt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ap=new mt("CSP nonce",{providedIn:"root",factory:()=>function To(){if(void 0!==Na)return Na;if(typeof document<"u")return document;throw new se(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Qs(t){return t instanceof Function?t():t}function Fh(t){return 128==(128&t.flags)}var td=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(td||{});const Bh=/^>|^->||--!>|)/g,yu="\u200b$1\u200b";const kp=new Map;let ky=0;const Np="__ngContext__";function Ir(t,i){ko(i)?(t[Np]=i[ga],function Ny(t){kp.set(t[ga],t)}(i)):t[Np]=i}let Vp;function jh(t,i){return Vp(t,i)}function Ud(t){const i=t[Jr];return go(i)?i[Jr]:i}function Vh(t){return jd(t[Qo])}function $h(t){return jd(t[us])}function jd(t){for(;null!==t&&!go(t);)t=t[us];return t}function rd(t,i,s,u,g){if(null!=u){let x,T=!1;go(u)?x=u:ko(u)&&(T=!0,u=u[wr]);const A=jr(u);0===t&&null!==s?null==g?Zd(i,s,A):Hl(i,s,A,g||null,!0):1===t&&null!==s?Hl(i,s,A,g||null,!0):2===t?function Xh(t,i,s){const u=Bc(t,i);u&&function Hy(t,i,s,u){t.removeChild(i,s,u)}(t,u,i,s)}(i,A,T):3===t&&i.destroyNode(A),null!=x&&function Hd(t,i,s,u,g){const x=s[Wo];x!==jr(s)&&rd(i,t,u,x,g);for(let A=mo;Ai.replace(Sg,yu))}(i))}function Gh(t,i,s){return t.createElement(i,s)}function kg(t,i){const s=t[aa],u=s.indexOf(i);s.splice(u,1)}function Vd(t,i){if(t.length<=mo)return;const s=mo+i,u=t[s];if(u){const g=u[Ja];null!==g&&g!==t&&kg(g,u),i>0&&(t[s-1][us]=u[us]);const x=_o(t,mo+i);!function jy(t,i){zc(t,i,i[Yi],2,null,null),i[wr]=null,i[wo]=null}(u[ai],u);const T=x[is];null!==T&&T.detachView(x[ai]),u[Jr]=null,u[us]=null,u[Ni]&=-129}return u}function $d(t,i){if(!(256&i[Ni])){const s=i[Yi];i[_a]&&function Be(t){if(lt(t),Ge(t))for(let i=0;i=0?u[T]():u[-T].unsubscribe(),x+=2}else s[x].call(u[s[x+1]]);null!==u&&(i[ra]=null);const g=i[Es];if(null!==g){i[Es]=null;for(let x=0;x-1){const{encapsulation:x}=t.data[u.directiveStart+g];if(x===fo.None||x===fo.Emulated)return null}return Nr(u,s)}}(t,i.parent,s)}function Hl(t,i,s,u,g){t.insertBefore(i,s,u,g)}function Zd(t,i,s){t.appendChild(i,s)}function Fg(t,i,s,u,g){null!==u?Hl(t,i,s,u,g):Zd(t,i,s)}function Bc(t,i){return t.parentNode(i)}function sd(t,i,s){return Bg(t,i,s)}let Jh,nf,Bg=function Hp(t,i,s){return 40&t.type?Nr(t,s):null};function Gd(t,i,s,u){const g=Gp(t,u,i),x=i[Yi],A=sd(u.parent||i[wo],u,i);if(null!=g)if(Array.isArray(s))for(let k=0;kt,createScript:t=>t,createScriptURL:t=>t})}catch{}return nf}()?.createScriptURL(t)||t}class Vg{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ge})`}}function yo(t){return t instanceof Vg?t.changingThisBreaksApplicationSecurity:t}function da(t,i){const s=function em(t){return t instanceof Vg&&t.getTypeName()||null}(t);if(null!=s&&s!==i){if("ResourceURL"===s&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${s} (see ${ge})`)}return s===i}const Wg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var hd=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(hd||{});function Ss(t){const i=Jd();return i?i.sanitize(hd.URL,t)||"":da(t,"URL")?yo(t):function Hr(t){return(t=String(t)).match(Wg)?t:"unsafe:"+t}(mn(t))}function lf(t){const i=Jd();if(i)return jg(i.sanitize(hd.RESOURCE_URL,t)||"");if(da(t,"ResourceURL"))return jg(yo(t));throw new se(904,!1)}function wu(t,i,s){return function Yd(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?lf:Ss}(i,s)(t)}function Jd(){const t=Nn();return t&&t[Cs].sanitizer}let dm=(t,i,s)=>null;function eh(t,i,s=!1){return dm(t,i,s)}class av{}class Iu{}class r_{resolveComponentFactory(i){throw function gd(t){const i=Error(`No component factory found for ${ki(t)}.`);return i.ngComponent=t,i}(i)}}let yf=(()=>{class t{static#e=this.NULL=new r_}return t})();function pm(){return _d(Er(),Nn())}function _d(t,i){return new mc(Nr(t,i))}let mc=(()=>{class t{constructor(s){this.nativeElement=s}static#e=this.__NG_ELEMENT_ID__=pm}return t})();function Uc(t){return t instanceof mc?t.nativeElement:t}class mm{}let o_=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function vf(){const t=Nn(),s=Zo(Er().index,t);return(ko(s)?s:t)[Yi]}()}return t})(),gm=(()=>{class t{static#e=this.\u0275prov=Qt({token:t,providedIn:"root",factory:()=>null})}return t})();class s_{constructor(i){this.full=i,this.major=i.split(".")[0],this.minor=i.split(".")[1],this.patch=i.split(".").slice(2).join(".")}}const a_=new s_("17.0.4"),gc={};function nh(t){const i=K(null);try{return t()}finally{K(i)}}function jc(t){return!!_m(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function _m(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class Au{constructor(){}supports(i){return jc(i)}create(i){return new cv(i)}}const wf=(t,i)=>i;class cv{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||wf}forEachItem(i){let s;for(s=this._itHead;null!==s;s=s._next)i(s)}forEachOperation(i){let s=this._itHead,u=this._removalsHead,g=0,x=null;for(;s||u;){const T=!u||s&&s.currentIndex{T=this._trackByFn(g,A),null!==s&&Object.is(s.trackById,T)?(u&&(s=this._verifyReinsertion(s,A,T,g)),Object.is(s.item,A)||this._addIdentityChange(s,A)):(s=this._mismatch(s,A,T,g),u=!0),s=s._next,g++}),this.length=g;return this._truncate(s),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,s,u,g){let x;return null===i?x=this._itTail:(x=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(u,null))?(Object.is(i.item,s)||this._addIdentityChange(i,s),this._reinsertAfter(i,x,g)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(u,g))?(Object.is(i.item,s)||this._addIdentityChange(i,s),this._moveAfter(i,x,g)):i=this._addAfter(new l_(s,u),x,g),i}_verifyReinsertion(i,s,u,g){let x=null===this._unlinkedRecords?null:this._unlinkedRecords.get(u,null);return null!==x?i=this._reinsertAfter(x,i._prev,g):i.currentIndex!=g&&(i.currentIndex=g,this._addToMoves(i,g)),i}_truncate(i){for(;null!==i;){const s=i._next;this._addToRemovals(this._unlink(i)),i=s}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,s,u){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const g=i._prevRemoved,x=i._nextRemoved;return null===g?this._removalsHead=x:g._nextRemoved=x,null===x?this._removalsTail=g:x._prevRemoved=g,this._insertAfter(i,s,u),this._addToMoves(i,u),i}_moveAfter(i,s,u){return this._unlink(i),this._insertAfter(i,s,u),this._addToMoves(i,u),i}_addAfter(i,s,u){return this._insertAfter(i,s,u),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,s,u){const g=null===s?this._itHead:s._next;return i._next=g,i._prev=s,null===g?this._itTail=i:g._prev=i,null===s?this._itHead=i:s._next=i,null===this._linkedRecords&&(this._linkedRecords=new u_),this._linkedRecords.put(i),i.currentIndex=u,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const s=i._prev,u=i._next;return null===s?this._itHead=u:s._next=u,null===u?this._itTail=s:u._prev=s,i}_addToMoves(i,s){return i.previousIndex===s||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new u_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,s){return i.item=s,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class l_{constructor(i,s){this.item=i,this.trackById=s,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class c_{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,s){let u;for(u=this._head;null!==u;u=u._nextDup)if((null===s||s<=u.currentIndex)&&Object.is(u.trackById,i))return u;return null}remove(i){const s=i._prevDup,u=i._nextDup;return null===s?this._head=u:s._nextDup=u,null===u?this._tail=s:u._prevDup=s,null===this._head}}class u_{constructor(){this.map=new Map}put(i){const s=i.trackById;let u=this.map.get(s);u||(u=new c_,this.map.set(s,u)),u.add(i)}get(i,s){const g=this.map.get(i);return g?g.get(i,s):null}remove(i){const s=i.trackById;return this.map.get(s).remove(i)&&this.map.delete(s),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ym(t,i,s){const u=t.previousIndex;if(null===u)return u;let g=0;return s&&u{if(s&&s.key===g)this._maybeAddToChanges(s,u),this._appendAfter=s,s=s._next;else{const x=this._getOrCreateRecordForKey(g,u);s=this._insertBeforeOrAppend(s,x)}}),s){s._prev&&(s._prev._next=null),this._removalsHead=s;for(let u=s;null!==u;u=u._nextRemoved)u===this._mapHead&&(this._mapHead=null),this._records.delete(u.key),u._nextRemoved=u._next,u.previousValue=u.currentValue,u.currentValue=null,u._prev=null,u._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,s){if(i){const u=i._prev;return s._next=i,s._prev=u,i._prev=s,u&&(u._next=s),i===this._mapHead&&(this._mapHead=s),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=s,s._prev=this._appendAfter):this._mapHead=s,this._appendAfter=s,null}_getOrCreateRecordForKey(i,s){if(this._records.has(i)){const g=this._records.get(i);this._maybeAddToChanges(g,s);const x=g._prev,T=g._next;return x&&(x._next=T),T&&(T._prev=x),g._next=null,g._prev=null,g}const u=new uv(i);return this._records.set(i,u),u.currentValue=s,this._addToAdditions(u),u}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,s){Object.is(s,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=s,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,s){i instanceof Map?i.forEach(s):Object.keys(i).forEach(u=>s(i[u],u))}}class uv{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vm(){return new xm([new Au])}let xm=(()=>{class t{static#e=this.\u0275prov=Qt({token:t,providedIn:"root",factory:vm});constructor(s){this.factories=s}static create(s,u){if(null!=u){const g=u.factories.slice();s=s.concat(g)}return new t(s)}static extend(s){return{provide:t,useFactory:u=>t.create(s,u||vm()),deps:[[t,new Zu,new dc]]}}find(s){const u=this.factories.find(g=>g.supports(s));if(null!=u)return u;throw new se(901,!1)}}return t})();function ih(){return new yd([new d_])}let yd=(()=>{class t{static#e=this.\u0275prov=Qt({token:t,providedIn:"root",factory:ih});constructor(s){this.factories=s}static create(s,u){if(u){const g=u.factories.slice();s=s.concat(g)}return new t(s)}static extend(s){return{provide:t,useFactory:u=>t.create(s,u||ih()),deps:[[t,new Zu,new dc]]}}find(s){const u=this.factories.find(g=>g.supports(s));if(u)return u;throw new se(901,!1)}}return t})();function rh(t,i,s,u,g=!1){for(;null!==s;){const x=i[s.index];null!==x&&u.push(jr(x)),go(x)&&Ef(x,u);const T=s.type;if(8&T)rh(t,i,s.child,u);else if(32&T){const A=jh(s,i);let k;for(;k=A();)u.push(k)}else if(16&T){const A=qp(i,s);if(Array.isArray(A))u.push(...A);else{const k=Ud(i[Xr]);rh(k[ai],k,A,u,!0)}}s=g?s.projectionNext:s.next}return u}function Ef(t,i){for(let s=mo;s!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{bl(t.lView)},consumerOnSignalRead(){this.lView[_a]=this}};function wm(t){return t.ngOriginalError}class $c{constructor(){this._console=console}handleError(i){const s=this._findOriginalError(i);this._console.error("ERROR",i),s&&this._console.error("ORIGINAL ERROR",s)}_findOriginalError(i){let s=i&&wm(i);for(;s&&wm(s);)s=wm(s);return s||null}}const p_=new mt("",{providedIn:"root",factory:()=>!1}),pr={};function Em(t){Tm(Cr(),Nn(),re()+t,!1)}function Tm(t,i,s,u){if(!u)if(3==(3&i[Ni])){const x=t.preOrderCheckHooks;null!==x&&qt(i,x,s)}else{const x=t.preOrderHooks;null!==x&&Wt(i,x,0,s)}Re(s)}function Zc(t,i=Lt.Default){const s=Nn();return null===s?cr(t,i):iu(Er(),s,sn(t),i)}function __(){throw new Error("invalid")}function ah(t,i,s,u,g,x,T,A,k,te,ve){const Ke=i.blueprint.slice();return Ke[wr]=g,Ke[Ni]=140|u,(null!==te||t&&2048&t[Ni])&&(Ke[Ni]|=2048),Fl(Ke),Ke[Jr]=Ke[ds]=t,Ke[Ar]=s,Ke[Cs]=T||t&&t[Cs],Ke[Yi]=A||t&&t[Yi],Ke[Vo]=k||t&&t[Vo]||null,Ke[wo]=x,Ke[ga]=function Fy(){return ky++}(),Ke[Ho]=ve,Ke[sa]=te,Ke[Xr]=2==i.type?t[Xr]:Ke,Ke}function Pu(t,i,s,u,g){let x=t.data[i];if(null===x)x=function Mf(t,i,s,u,g){const x=sc(),T=ac(),k=t.data[i]=function Sm(t,i,s,u,g,x){let T=i?i.injectorIndex:-1,A=0;return Co()&&(A|=128),{type:s,index:u,insertBeforeIndex:null,injectorIndex:T,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:A,providerIndexes:0,value:g,attrs:x,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,T?x:x&&x.parent,s,i,u,g);return null===t.firstChild&&(t.firstChild=k),null!==x&&(T?null==x.child&&null!==k.parent&&(x.child=k):null===x.next&&(x.next=k,k.prev=x)),k}(t,i,s,u,g),function wh(){return Ki.lFrame.inI18n}()&&(x.flags|=32);else if(64&x.type){x.type=s,x.value=u,x.attrs=g;const T=function yi(){const t=Ki.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();x.injectorIndex=null===T?-1:T.injectorIndex}return qs(x,!0),x}function vd(t,i,s,u){if(0===s)return-1;const g=i.length;for(let x=0;xer&&Tm(t,i,er,!1),ps(T?2:0,g),s(u,g)}finally{Re(x),ps(T?3:1,g)}}function Af(t,i,s){if(bc(i)){const u=K(null);try{const x=i.directiveEnd;for(let T=i.directiveStart;Tnull;function ul(t,i,s,u){for(let g in t)if(t.hasOwnProperty(g)){s=null===s?{}:s;const x=t[g];null===u?Gc(s,i,g,x):u.hasOwnProperty(g)&&Gc(s,i,u[g],x)}return s}function Gc(t,i,s,u){t.hasOwnProperty(s)?t[s].push(i,u):t[s]=[i,u]}function Ps(t,i,s,u,g,x,T,A){const k=Nr(i,s);let ve,te=i.inputs;!A&&null!=te&&(ve=te[u])?(Y(t,s,ve,u,g),Xa(i)&&function Rf(t,i){const s=Zo(i,t);16&s[Ni]||(s[Ni]|=64)}(s,i.index)):3&i.type&&(u=function b_(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(u),g=null!=T?T(g,i.value||"",u):g,x.setProperty(k,u,g))}function Pm(t,i,s,u){if(eu()){const g=null===u?null:{"":-1},x=function D_(t,i){const s=t.directiveRegistry;let u=null,g=null;if(s)for(let x=0;x0;){const s=t[--i];if("number"==typeof s&&s<0)return s}return 0})(T)!=A&&T.push(A),T.push(s,u,x)}}(t,i,u,vd(t,s,g.hostVars,pr),g)}function Ml(t,i,s,u,g,x){const T=Nr(t,i);!function r(t,i,s,u,g,x,T){if(null==x)t.removeAttribute(i,g,s);else{const A=null==T?mn(x):T(x,u||"",g);t.setAttribute(i,g,A,s)}}(i[Yi],T,x,t.value,s,u,g)}function e(t,i,s,u,g,x){const T=x[i];if(null!==T)for(let A=0;At.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(A,T),function bm(t){t.lView[_a]!==t&&(t.lView=null,Tf.push(t))}(A)),Z()}}function St(t,i){for(let s=Vh(t);null!==s;s=$h(s)){s[Ni]&=~Ts.HasChildViewsToRefresh;for(let u=mo;u-1&&(Vd(i,u),_o(s,u))}this._attachedToViewContainer=!1}$d(this._lView[ai],this._lView)}onDestroy(i){ms(this._lView,i)}markForCheck(){hn(this._cdRefInjectingView||this._lView)}detach(){this._lView[Ni]&=-129}reattach(){ku(this._lView),this._lView[Ni]|=128}detectChanges(){!function Ue(t,i=!0){const s=t[Cs],u=s.rendererFactory,g=s.afterRenderEventManager;u.begin?.(),g?.begin();try{const T=t[ai];st(T,t,T.template,t[Ar]),function ot(t){let i=0;for(;9216&t[Ni]||t[_a]?.dirty;){if(100===i)throw new se(103,!1);i++,In(t,1)}}(t)}catch(T){throw i&&V(t,T),T}finally{u.end?.(),s.inlineEffectRunner?.flush(),g?.end()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new se(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Vy(t,i){zc(t,i,i[Yi],2,null,null)}(this._lView[ai],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new se(902,!1);this._appRef=i}}let kn=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Gn}return t})();function Gn(t){return function ii(t,i,s){if(Xa(t)&&!s){const u=Zo(t.index,i);return new On(u,u)}return 47&t.type?new On(i[Xr],i):null}(Er(),Nn(),16==(16&t))}let Hi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Pi;static#t=this.__NG_ENV_ID__=s=>s}return t})();class ri extends Hi{constructor(i){super(),this._lView=i}onDestroy(i){return ms(this._lView,i),()=>function va(t,i){if(null===t[Es])return;const s=t[Es].indexOf(i);-1!==s&&t[Es].splice(s,1)}(this._lView,i)}}function Pi(){return new ri(Nn())}const Wr=new Set;function Or(t){Wr.has(t)||(Wr.add(t),performance?.mark?.("mark_use_counter",{detail:{feature:t}}))}function zr(t){return i=>{setTimeout(t,void 0,i)}}const kr=class eo extends Dt.x{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,s,u){let g=i,x=s||(()=>null),T=u;if(i&&"object"==typeof i){const k=i;g=k.next?.bind(k),x=k.error?.bind(k),T=k.complete?.bind(k)}this.__isAsync&&(x=zr(x),g&&(g=zr(g)),T&&(T=zr(T)));const A=super.subscribe({next:g,error:x,complete:T});return i instanceof Ie.w0&&i.add(A),A}};function vo(...t){}class xr{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:s=!1,shouldCoalesceRunChangeDetection:u=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new kr(!1),this.onMicrotaskEmpty=new kr(!1),this.onStable=new kr(!1),this.onError=new kr(!1),typeof Zone>"u")throw new se(908,!1);Zone.assertZonePatched();const g=this;g._nesting=0,g._outer=g._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(g._inner=g._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(g._inner=g._inner.fork(Zone.longStackTraceZoneSpec)),g.shouldCoalesceEventChangeDetection=!u&&s,g.shouldCoalesceRunChangeDetection=u,g.lastRequestAnimationFrameId=-1,g.nativeRequestAnimationFrame=function No(){const t="function"==typeof J.requestAnimationFrame;let i=J[t?"requestAnimationFrame":"setTimeout"],s=J[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&s){const u=i[Zone.__symbol__("OriginalDelegate")];u&&(i=u);const g=s[Zone.__symbol__("OriginalDelegate")];g&&(s=g)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:s}}().nativeRequestAnimationFrame,function zo(t){const i=()=>{!function Rr(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(J,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,qr(t),t.isCheckStableRunning=!0,uo(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),qr(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(s,u,g,x,T,A)=>{if(function ts(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(A))return s.invokeTask(g,x,T,A);try{return Os(t),s.invokeTask(g,x,T,A)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===x.type||t.shouldCoalesceRunChangeDetection)&&i(),Oo(t)}},onInvoke:(s,u,g,x,T,A,k)=>{try{return Os(t),s.invoke(g,x,T,A,k)}finally{t.shouldCoalesceRunChangeDetection&&i(),Oo(t)}},onHasTask:(s,u,g,x)=>{s.hasTask(g,x),u===g&&("microTask"==x.change?(t._hasPendingMicrotasks=x.microTask,qr(t),uo(t)):"macroTask"==x.change&&(t.hasPendingMacrotasks=x.macroTask))},onHandleError:(s,u,g,x)=>(s.handleError(g,x),t.runOutsideAngular(()=>t.onError.emit(x)),!1)})}(g)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!xr.isInAngularZone())throw new se(909,!1)}static assertNotInAngularZone(){if(xr.isInAngularZone())throw new se(909,!1)}run(i,s,u){return this._inner.run(i,s,u)}runTask(i,s,u,g){const x=this._inner,T=x.scheduleEventTask("NgZoneEvent: "+g,i,Bo,vo,vo);try{return x.runTask(T,s,u)}finally{x.cancelTask(T)}}runGuarded(i,s,u){return this._inner.runGuarded(i,s,u)}runOutsideAngular(i){return this._outer.run(i)}}const Bo={};function uo(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function qr(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Os(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Oo(t){t._nesting--,uo(t)}class as{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new kr,this.onMicrotaskEmpty=new kr,this.onStable=new kr,this.onError=new kr}run(i,s,u){return i.apply(s,u)}runGuarded(i,s,u){return i.apply(s,u)}runOutsideAngular(i){return i()}runTask(i,s,u,g){return i.apply(s,u)}}const Jo=new mt("",{providedIn:"root",factory:Rs});function Rs(){const t=_r(xr);let i=!0;return function qe(...t){const i=(0,Ut.yG)(t),s=(0,Ut._6)(t,1/0),u=t;return u.length?1===u.length?(0,Rn.Xf)(u[0]):(0,on.J)(s)((0,Hn.D)(u,i)):Vn.E}(new Ct.y(g=>{i=t.isStable&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks,t.runOutsideAngular(()=>{g.next(i),g.complete()})}),new Ct.y(g=>{let x;t.runOutsideAngular(()=>{x=t.onStable.subscribe(()=>{xr.assertNotInAngularZone(),queueMicrotask(()=>{!i&&!t.hasPendingMacrotasks&&!t.hasPendingMicrotasks&&(i=!0,g.next(!0))})})});const T=t.onUnstable.subscribe(()=>{xr.assertInAngularZone(),i&&(i=!1,t.runOutsideAngular(()=>{g.next(!1)}))});return()=>{x.unsubscribe(),T.unsubscribe()}}).pipe((0,Tn.B)()))}var Ls=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(Ls||{});const Ou={destroy(){}};function Fm(t,i){!i&&function Rc(t){if(!ti()&&!function Ko(){return ji}())throw new se(-203,!1)}();const s=i?.injector??_r(al);if(!function El(t){return"browser"===(t??_r(al)).get(Lc)}(s))return Ou;Or("NgAfterNextRender");const u=s.get(uh),g=u.handler??=new Bm,x=i?.phase??Ls.MixedReadWrite,T=()=>{g.unregister(k),A()},A=s.get(Hi).onDestroy(T),k=new Nm(s,x,()=>{T(),t()});return g.register(k),{destroy:T}}class Nm{constructor(i,s,u){this.phase=s,this.callbackFn=u,this.zone=i.get(xr),this.errorHandler=i.get($c,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(i){this.errorHandler?.handleError(i)}}}class Bm{constructor(){this.executingCallbacks=!1,this.buckets={[Ls.EarlyRead]:new Set,[Ls.Write]:new Set,[Ls.MixedReadWrite]:new Set,[Ls.Read]:new Set},this.deferredCallbacks=new Set}validateBegin(){if(this.executingCallbacks)throw new se(102,!1)}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){this.executingCallbacks=!0;for(const i of Object.values(this.buckets))for(const s of i)s.invoke();this.executingCallbacks=!1;for(const i of this.deferredCallbacks)this.buckets[i.phase].add(i);this.deferredCallbacks.clear()}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let uh=(()=>{class t{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth){for(const s of this.internalCallbacks)s();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Qt({token:t,providedIn:"root",factory:()=>new t})}return t})();function zm(t,i){const s=Zo(i,t),u=s[ai];!function Um(t,i){for(let s=i.length;s0&&Yp(t,s,x.join(" "))}}(Ke,ta,Zt,u),void 0!==s&&function pC(t,i,s){const u=t.projection=[];for(let g=0;g=0;u--){const g=t[u];g.hostVars=i+=g.hostVars,g.hostAttrs=na(g.hostAttrs,s=na(s,g.hostAttrs))}}(u)}function S_(t){return t===po?{}:t===mr?[]:t}function _C(t,i){const s=t.viewQuery;t.viewQuery=s?(u,g)=>{i(u,g),s(u,g)}:i}function yC(t,i){const s=t.contentQueries;t.contentQueries=s?(u,g,x)=>{i(u,g,x),s(u,g,x)}:i}function vC(t,i){const s=t.hostBindings;t.hostBindings=s?(u,g)=>{i(u,g),s(u,g)}:i}function ux(t){const i=t.inputConfig,s={};for(const u in i)if(i.hasOwnProperty(u)){const g=i[u];Array.isArray(g)&&g[2]&&(s[u]=g[2])}t.inputTransforms=s}function Wc(t,i,s){return t[i]=s}function xs(t,i,s){return!Object.is(t[i],s)&&(t[i]=s,!0)}function fh(t,i,s,u){const g=xs(t,i,s);return xs(t,i+1,u)||g}function vv(t,i,s,u){const g=Nn();return xs(g,ba(),i)&&(Cr(),Ml(Fe(),g,t,i,s,u)),vv}function zf(t,i,s,u){return xs(t,ba(),s)?i+mn(s)+u:pr}function jf(t,i,s,u,g,x,T,A){const te=function P_(t,i,s,u,g){const x=fh(t,i,s,u);return xs(t,i+2,g)||x}(t,Ra(),s,g,T);return La(3),te?i+mn(s)+u+mn(g)+x+mn(T)+A:pr}function Vf(t,i,s,u,g,x,T,A,k,te){const Ke=function Kl(t,i,s,u,g,x){const T=fh(t,i,s,u);return fh(t,i+2,g,x)||T}(t,Ra(),s,g,T,k);return La(4),Ke?i+mn(s)+u+mn(g)+x+mn(T)+A+mn(k)+te:pr}function O_(t,i){return t<<17|i<<2}function wd(t){return t>>17&32767}function xv(t){return 2|t}function ph(t){return(131068&t)>>2}function bv(t,i){return-131069&t|i<<2}function wv(t){return 1|t}function xx(t,i,s,u,g){const x=t[s+1],T=null===i;let A=u?wd(x):ph(x),k=!1;for(;0!==A&&(!1===k||T);){const ve=t[A+1];SC(t[A],i)&&(k=!0,t[A+1]=u?wv(ve):xv(ve)),A=u?wd(ve):ph(ve)}k&&(t[s+1]=u?xv(x):wv(x))}function SC(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Mc(t,i)>=0}function Cv(t,i,s){const u=Nn();return xs(u,ba(),i)&&Ps(Cr(),Fe(),u,t,i,u[Yi],s,!1),Cv}function Ev(t,i,s,u,g){const T=g?"class":"style";Y(t,s,i.inputs[T],T,u)}function Tv(t,i,s){return vc(t,i,s,!1),Tv}function Dv(t,i){return vc(t,i,null,!0),Dv}function vc(t,i,s,u){const g=Nn(),x=Cr(),T=La(2);x.firstUpdatePass&&function Mx(t,i,s,u){const g=t.data;if(null===g[s+1]){const x=g[re()],T=function Ix(t,i){return i>=t.expandoStartIndex}(t,s);(function Ox(t,i){return 0!=(t.flags&(i?8:16))})(x,u)&&null===i&&!T&&(i=!1),i=function zC(t,i,s,u){const g=function z(t){const i=Ki.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let x=u?i.residualClasses:i.residualStyles;if(null===g)0===(u?i.classBindings:i.styleBindings)&&(s=Zm(s=Iv(null,t,i,s,u),i.attrs,u),x=null);else{const T=i.directiveStylingLast;if(-1===T||t[T]!==g)if(s=Iv(g,t,i,s,u),null===x){let k=function UC(t,i,s){const u=s?i.classBindings:i.styleBindings;if(0!==ph(u))return t[wd(u)]}(t,i,u);void 0!==k&&Array.isArray(k)&&(k=Iv(null,t,i,k[1],u),k=Zm(k,i.attrs,u),function jC(t,i,s,u){t[wd(s?i.classBindings:i.styleBindings)]=u}(t,i,u,k))}else x=function VC(t,i,s){let u;const g=i.directiveEnd;for(let x=1+i.directiveStylingLast;x0)&&(te=!0)):ve=s,g)if(0!==k){const kt=wd(t[A+1]);t[u+1]=O_(kt,A),0!==kt&&(t[kt+1]=bv(t[kt+1],u)),t[A+1]=function DC(t,i){return 131071&t|i<<17}(t[A+1],u)}else t[u+1]=O_(A,0),0!==A&&(t[A+1]=bv(t[A+1],u)),A=u;else t[u+1]=O_(k,0),0===A?A=u:t[k+1]=bv(t[k+1],u),k=u;te&&(t[u+1]=xv(t[u+1])),xx(t,ve,u,!0),xx(t,ve,u,!1),function AC(t,i,s,u,g){const x=g?t.residualClasses:t.residualStyles;null!=x&&"string"==typeof i&&Mc(x,i)>=0&&(s[u+1]=wv(s[u+1]))}(i,ve,t,u,x),T=O_(A,k),x?i.classBindings=T:i.styleBindings=T}(g,x,i,s,T,u)}}(x,t,T,u),i!==pr&&xs(g,T,i)&&function Sx(t,i,s,u,g,x,T,A){if(!(3&i.type))return;const k=t.data,te=k[A+1],ve=function IC(t){return 1==(1&t)}(te)?Px(k,i,s,g,ph(te),T):void 0;R_(ve)||(R_(x)||function TC(t){return 2==(2&t)}(te)&&(x=Px(k,null,s,g,A,T)),function ld(t,i,s,u,g){if(i)g?t.addClass(s,u):t.removeClass(s,u);else{let x=-1===u.indexOf("-")?void 0:td.DashCase;null==g?t.removeStyle(s,u,x):("string"==typeof g&&g.endsWith("!important")&&(g=g.slice(0,-10),x|=td.Important),t.setStyle(s,u,g,x))}}(u,T,tl(re(),s),g,x))}(x,x.data[re()],g,g[Yi],t,g[T+1]=function HC(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=ki(yo(t)))),t}(i,s),u,T)}function Iv(t,i,s,u,g){let x=null;const T=s.directiveEnd;let A=s.directiveStylingLast;for(-1===A?A=s.directiveStart:A++;A0;){const k=t[g],te=Array.isArray(k),ve=te?k[1]:k,Ke=null===ve;let kt=s[g+1];kt===pr&&(kt=Ke?mr:void 0);let Zt=Ke?ka(kt,u):ve===u?kt:void 0;if(te&&!R_(Zt)&&(Zt=ka(k,u)),R_(Zt)&&(A=Zt,T))return A;const Sn=t[g+1];g=T?wd(Sn):ph(Sn)}if(null!==i){let k=x?i.residualClasses:i.residualStyles;null!=k&&(A=ka(k,u))}return A}function R_(t){return void 0!==t}function Yf(t,i){return!i||Fh(t)}function Ym(t,i,s,u=!0){const g=i[ai];if(function od(t,i,s,u){const g=mo+u,x=s.length;u>0&&(s[g-1][us]=i),u{class t{static#e=this.__NG_ELEMENT_ID__=DE}return t})();function DE(){return Gx(Er(),Nn())}const IE=B_,$x=class extends IE{constructor(i,s,u){super(),this._lContainer=i,this._hostTNode=s,this._hostLView=u}get element(){return _d(this._hostTNode,this._hostLView)}get injector(){return new es(this._hostTNode,this._hostLView)}get parentInjector(){const i=br(this._hostTNode,this._hostLView);if(wi(i)){const s=tr(i,this._hostLView),u=Si(i);return new es(s[ai].data[u+8],s)}return new es(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const s=Zx(this._lContainer);return null!==s&&s[i]||null}get length(){return this._lContainer.length-mo}createEmbeddedView(i,s,u){let g,x;"number"==typeof u?g=u:null!=u&&(g=u.index,x=u.injector);const A=i.createEmbeddedViewImpl(s||{},x,null);return this.insertImpl(A,g,Yf(this._hostTNode,null)),A}createComponent(i,s,u,g,x){const T=i&&!function Uu(t){return"function"==typeof t}(i);let A;if(T)A=s;else{const Sn=s||{};A=Sn.index,u=Sn.injector,g=Sn.projectableNodes,x=Sn.environmentInjector||Sn.ngModuleRef}const k=T?i:new dh(_i(i)),te=u||this.parentInjector;if(!x&&null==k.ngModule){const si=(T?te:this.parentInjector).get(Fa,null);si&&(x=si)}_i(k.componentType??{});const Zt=k.create(te,g,null,x);return this.insertImpl(Zt.hostView,A,Yf(this._hostTNode,null)),Zt}insert(i,s){return this.insertImpl(i,s,!0)}insertImpl(i,s,u){const g=i._lView;if(function Lu(t){return go(t[Jr])}(g)){const A=this.indexOf(i);if(-1!==A)this.detach(A);else{const k=g[Jr],te=new $x(k,k[wo],k[Jr]);te.detach(te.indexOf(i))}}const x=this._adjustIndex(s),T=this._lContainer;return Ym(T,g,x,u),i.attachToViewContainerRef(),fg(Fv(T),x,i),i}move(i,s){return this.insert(i,s)}indexOf(i){const s=Zx(this._lContainer);return null!==s?s.indexOf(i):-1}remove(i){const s=this._adjustIndex(i,-1),u=Vd(this._lContainer,s);u&&(_o(Fv(this._lContainer),s),$d(u[ai],u))}detach(i){const s=this._adjustIndex(i,-1),u=Vd(this._lContainer,s);return u&&null!=_o(Fv(this._lContainer),s)?new On(u):null}_adjustIndex(i,s=0){return i??this.length+s}};function Zx(t){return t[8]}function Fv(t){return t[8]||(t[8]=[])}function Gx(t,i){let s;const u=i[t.index];return go(u)?s=u:(s=f(u,i,null,t),i[t.index]=s,y(i,s)),Hx(s,i,t,u),new $x(s,t,i)}let Hx=function qx(t,i,s,u){if(t[Wo])return;let g;g=8&s.type?jr(u):function ME(t,i){const s=t[Yi],u=s.createComment(""),g=Nr(i,t);return Hl(s,Bc(s,g),u,function Ng(t,i){return t.nextSibling(i)}(s,g),!1),u}(i,s),t[Wo]=g},Nv=(t,i,s)=>!1;function Jf(t,i,s,u,g,x,T,A){const k=Nn(),te=Cr(),ve=t+er,Ke=te.firstCreatePass?function OE(t,i,s,u,g,x,T,A,k){const te=i.consts,ve=Pu(i,t,4,T||null,Hs(te,A));Pm(i,s,ve,Hs(te,k)),Rt(i,ve);const Ke=ve.tView=Im(2,ve,u,g,x,i.directiveRegistry,i.pipeRegistry,null,i.schemas,te,null);return null!==i.queries&&(i.queries.template(i,ve),Ke.queries=i.queries.embeddedTView(ve)),ve}(ve,te,k,i,s,u,g,x,T):te.data[ve];qs(Ke,!1);const kt=Yx(te,k,Ke,t);gt()&&Gd(te,k,kt,Ke),Ir(kt,k);const Zt=f(kt,k,kt,Ke);return k[ve]=Zt,y(k,Zt),function Wx(t,i,s){return Nv(t,i,s)}(Zt,Ke,k),ec(Ke)&&ql(te,k,Ke),null!=T&&Sf(k,Ke,A),Jf}let Yx=function Jx(t,i,s,u){return Pt(!0),i[Yi].createComment("")};function Z_(t,i,s,u){const g=Nn(),x=Cr(),T=er+t,A=g[Yi],k=x.firstCreatePass?function bT(t,i,s,u,g,x){const T=i.consts,k=Pu(i,t,2,u,Hs(T,g));return Pm(i,s,k,Hs(T,x)),null!==k.attrs&&Jl(k,k.attrs,!1),null!==k.mergedAttrs&&Jl(k,k.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,k),k}(T,x,g,i,s,u):x.data[T],te=v1(x,g,k,A,i,t);g[T]=te;const ve=ec(k);return qs(k,!0),Jp(A,te,k),32!=(32&k.flags)&>()&&Gd(x,g,te,k),0===function Qc(){return Ki.lFrame.elementDepthCount}()&&Ir(te,g),function Ec(){Ki.lFrame.elementDepthCount++}(),ve&&(ql(x,g,k),Af(x,k,g)),null!==u&&Sf(g,k),Z_}function G_(){let t=Er();ac()?nl():(t=t.parent,qs(t,!1));const i=t;(function xh(t){return Ki.skipHydrationRootTNode===t})(i)&&function la(){Ki.skipHydrationRootTNode=null}(),function Tc(){Ki.lFrame.elementDepthCount--}();const s=Cr();return s.firstCreatePass&&(Rt(s,t),bc(t)&&s.queries.elementEnd(t)),null!=i.classesWithoutHost&&function jn(t){return 0!=(8&t.flags)}(i)&&Ev(s,i,Nn(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function ei(t){return 0!=(16&t.flags)}(i)&&Ev(s,i,Nn(),i.stylesWithoutHost,!1),G_}function qv(t,i,s,u){return Z_(t,i,s,u),G_(),qv}let v1=(t,i,s,u,g,x)=>(Pt(!0),Gh(u,g,function We(){return Ki.lFrame.currentNamespace}()));function H_(t,i,s){const u=Nn(),g=Cr(),x=t+er,T=g.firstCreatePass?function ET(t,i,s,u,g){const x=i.consts,T=Hs(x,u),A=Pu(i,t,8,"ng-container",T);return null!==T&&Jl(A,T,!0),Pm(i,s,A,Hs(x,g)),null!==i.queries&&i.queries.elementStart(i,A),A}(x,g,u,i,s):g.data[x];qs(T,!0);const A=x1(g,u,T,t);return u[x]=A,gt()&&Gd(g,u,A,T),Ir(A,u),ec(T)&&(ql(g,u,T),Af(g,T,u)),null!=s&&Sf(u,T),H_}function W_(){let t=Er();const i=Cr();return ac()?nl():(t=t.parent,qs(t,!1)),i.firstCreatePass&&(Rt(i,t),bc(t)&&i.queries.elementEnd(t)),W_}function Yv(t,i,s){return H_(t,i,s),W_(),Yv}let x1=(t,i,s,u)=>(Pt(!0),Zp(i[Yi],""));function b1(){return Nn()}const gh=void 0;var MT=["en",[["a","p"],["AM","PM"],gh],[["AM","PM"],gh,gh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],gh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],gh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",gh,"{1} 'at' {0}",gh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function IT(t){const s=Math.floor(Math.abs(t)),u=t.toString().replace(/^[^.]*\.?/,"").length;return 1===s&&0===u?1:5}];let ip={};function Jv(t){const i=function AT(t){return t.toLowerCase().replace(/_/g,"-")}(t);let s=T1(i);if(s)return s;const u=i.split("-")[0];if(s=T1(u),s)return s;if("en"===u)return MT;throw new se(701,!1)}function E1(t){return Jv(t)[rp.PluralCase]}function T1(t){return t in ip||(ip[t]=J.ng&&J.ng.common&&J.ng.common.locales&&J.ng.common.locales[t]),ip[t]}var rp=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(rp||{});const op="en-US";let D1=op;function Qv(t){return!!t&&"function"==typeof t.then}function K1(t){return!!t&&"function"==typeof t.subscribe}function e0(t,i,s,u){const g=Nn(),x=Cr(),T=Er();return function Q1(t,i,s,u,g,x,T){const A=ec(u),te=t.firstCreatePass&&L(t),ve=i[Ar],Ke=D(i);let kt=!0;if(3&u.type||T){const si=Nr(u,i),bi=T?T(si):si,Fi=Ke.length,ni=T?Yr=>T(jr(Yr[u.index])):u.index;let ar=null;if(!T&&A&&(ar=function CD(t,i,s,u){const g=t.cleanup;if(null!=g)for(let x=0;xk?A[k]:null}"string"==typeof T&&(x+=2)}return null}(t,i,g,u.index)),null!==ar)(ar.__ngLastListenerFn__||ar).__ngNextListenerFn__=x,ar.__ngLastListenerFn__=x,kt=!1;else{x=tb(u,i,ve,x,!1);const Yr=s.listen(bi,g,x);Ke.push(x,Yr),te&&te.push(g,ni,Fi,Fi+1)}}else x=tb(u,i,ve,x,!1);const Zt=u.outputs;let Sn;if(kt&&null!==Zt&&(Sn=Zt[g])){const si=Sn.length;if(si)for(let bi=0;bi-1?Zo(t.index,i):i);let k=eb(i,s,u,T),te=x.__ngNextListenerFn__;for(;te;)k=eb(i,s,te,T)&&k,te=te.__ngNextListenerFn__;return g&&!1===k&&T.preventDefault(),k}}function nb(t=1){return function $(t){return(Ki.lFrame.contextLView=function oc(t,i){for(;t>0;)i=i[ds],t--;return i}(t,Ki.lFrame.contextLView))[Ar]}(t)}function ED(t,i){let s=null;const u=function Pl(t){const i=t.attrs;if(null!=i){const s=i.indexOf(5);if(!(1&s))return i[s+1]}return null}(t);for(let g=0;g(Pt(!0),function Zh(t,i){return t.createText(i)}(i[Yi],u));function r0(t){return X_("",t,""),r0}function X_(t,i,s){const u=Nn(),g=zf(u,t,i,s);return g!==pr&&Q(u,re(),g),X_}function o0(t,i,s,u,g){const x=Nn(),T=function Uf(t,i,s,u,g,x){const A=fh(t,Ra(),s,g);return La(2),A?i+mn(s)+u+mn(g)+x:pr}(x,t,i,s,u,g);return T!==pr&&Q(x,re(),T),o0}function s0(t,i,s,u,g,x,T){const A=Nn(),k=jf(A,t,i,s,u,g,x,T);return k!==pr&&Q(A,re(),k),s0}function a0(t,i,s,u,g,x,T,A,k){const te=Nn(),ve=Vf(te,t,i,s,u,g,x,T,A,k);return ve!==pr&&Q(te,re(),ve),a0}function l0(t,i,s,u,g){if(t=sn(t),Array.isArray(t))for(let x=0;x>20;if(Xs(t)||!t.multi){const Zt=new Zn(te,g,Zc),Sn=u0(k,i,g?ve:ve+kt,Ke);-1===Sn?(Eo(ca(A,T),x,k),c0(x,t,i.length),i.push(k),A.directiveStart++,A.directiveEnd++,g&&(A.providerIndexes+=1048576),s.push(Zt),T.push(Zt)):(s[Sn]=Zt,T[Sn]=Zt)}else{const Zt=u0(k,i,ve+kt,Ke),Sn=u0(k,i,ve,ve+kt),bi=Sn>=0&&s[Sn];if(g&&!bi||!g&&!(Zt>=0&&s[Zt])){Eo(ca(A,T),x,k);const Fi=function UD(t,i,s,u,g){const x=new Zn(t,s,Zc);return x.multi=[],x.index=i,x.componentProviders=0,Sb(x,g,u&&!s),x}(g?zD:BD,s.length,g,u,te);!g&&bi&&(s[Sn].providerFactory=Fi),c0(x,t,i.length,0),i.push(k),A.directiveStart++,A.directiveEnd++,g&&(A.providerIndexes+=1048576),s.push(Fi),T.push(Fi)}else c0(x,t,Zt>-1?Zt:Sn,Sb(s[g?Sn:Zt],te,!g&&u));!g&&u&&bi&&s[Sn].componentProviders++}}}function c0(t,i,s,u){const g=Xs(i),x=function by(t){return!!t.useClass}(i);if(g||x){const k=(x?sn(i.useClass):i).prototype.ngOnDestroy;if(k){const te=t.destroyHooks||(t.destroyHooks=[]);if(!g&&i.multi){const ve=te.indexOf(s);-1===ve?te.push(s,[u,k]):te[ve+1].push(u,k)}else te.push(s,k)}}}function Sb(t,i,s){return s&&t.componentProviders++,t.multi.push(i)-1}function u0(t,i,s,u){for(let g=s;g{s.providersResolver=(u,g)=>function ND(t,i,s){const u=Cr();if(u.firstCreatePass){const g=Ds(t);l0(s,u.data,u.blueprint,g,!0),l0(i,u.data,u.blueprint,g,!1)}}(u,g?g(t):t,i)}}class _h{}class Ob{}function jD(t,i){return new h0(t,i??null,[])}class h0 extends _h{constructor(i,s,u){super(),this._parent=s,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Ff(this);const g=ue(i);this._bootstrapComponents=Qs(g.bootstrap),this._r3Injector=Tg(i,s,[{provide:_h,useValue:this},{provide:yf,useValue:this.componentFactoryResolver},...u],ki(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(s=>s()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class f0 extends Ob{constructor(i){super(),this.moduleType=i}create(i){return new h0(this.moduleType,i,[])}}class Rb extends _h{constructor(i){super(),this.componentFactoryResolver=new Ff(this),this.instance=null;const s=new pu([...i.providers,{provide:_h,useValue:this},{provide:yf,useValue:this.componentFactoryResolver}],i.parent||Sh(),i.debugName,new Set(["environment"]));this.injector=s,i.runEnvironmentInitializers&&s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function Lb(t,i,s=null){return new Rb({providers:t,parent:i,debugName:s,runEnvironmentInitializers:!0}).injector}let $D=(()=>{class t{constructor(s){this._injector=s,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(s){if(!s.standalone)return null;if(!this.cachedInjectors.has(s)){const u=yp(0,s.type),g=u.length>0?Lb([u],this._injector,`Standalone[${s.type.name}]`):null;this.cachedInjectors.set(s,g)}return this.cachedInjectors.get(s)}ngOnDestroy(){try{for(const s of this.cachedInjectors.values())null!==s&&s.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Qt({token:t,providedIn:"environment",factory:()=>new t(cr(Fa))})}return t})();function kb(t){Or("NgStandalone"),t.getStandaloneInjector=i=>i.get($D).getOrCreateStandaloneInjector(t)}function $b(t,i,s){const u=os()+t,g=Nn();return g[u]===pr?Wc(g,u,s?i.call(s):i()):function $m(t,i){return t[i]}(g,u)}function rg(t,i){const s=t[i];return s===pr?void 0:s}function Yb(t,i){const s=Cr();let u;const g=t+er;s.firstCreatePass?(u=function cI(t,i){if(i)for(let s=i.length-1;s>=0;s--){const u=i[s];if(t===u.name)return u}}(i,s.pipeRegistry),s.data[g]=u,u.onDestroy&&(s.destroyHooks??=[]).push(g,u.onDestroy)):u=s.data[g];const x=u.factory||(u.factory=$o(u.type)),A=di(Zc);try{const k=Dr(!1),te=x();return Dr(k),function TD(t,i,s,u){s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),i[s]=u}(s,Nn(),g,te),te}finally{di(A)}}function Jb(t,i,s){const u=t+er,g=Nn(),x=ya(g,u);return og(g,u)?function Zb(t,i,s,u,g,x){const T=i+s;return xs(t,T,g)?Wc(t,T+1,x?u.call(x,g):u(g)):rg(t,T+1)}(g,os(),i,x.transform,s,x):x.transform(s)}function Kb(t,i,s,u){const g=t+er,x=Nn(),T=ya(x,g);return og(x,g)?function Gb(t,i,s,u,g,x,T){const A=i+s;return fh(t,A,g,x)?Wc(t,A+2,T?u.call(T,g,x):u(g,x)):rg(t,A+2)}(x,os(),i,T.transform,s,u,T):T.transform(s,u)}function og(t,i){return t[ai].data[i].pure}function fI(){return this._results[Symbol.iterator]()}class m0{static#e=Symbol.iterator;get changes(){return this._changes||(this._changes=new kr)}constructor(i=!1){this._emitDistinctChangesOnly=i,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const s=m0.prototype;s[Symbol.iterator]||(s[Symbol.iterator]=fI)}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,s){return this._results.reduce(i,s)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,s){this.dirty=!1;const u=function Po(t){return t.flat(Number.POSITIVE_INFINITY)}(i);(this._changesDetected=!function hg(t,i,s){if(t.length!==i.length)return!1;for(let u=0;u{class t{static#e=this.__NG_ELEMENT_ID__=gI}return t})();const pI=sg,mI=class extends pI{constructor(i,s,u){super(),this._declarationLView=i,this._declarationTContainer=s,this.elementRef=u}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,s){return this.createEmbeddedViewImpl(i,s)}createEmbeddedViewImpl(i,s,u){const g=function qm(t,i,s,u){const g=i.tView,A=ah(t,g,s,4096&t[Ni]?4096:16,null,i,null,null,null,u?.injector??null,u?.dehydratedView??null);A[Ja]=t[i.index];const te=t[is];return null!==te&&(A[is]=te.createEmbeddedView(g)),dl(g,A,s),A}(this._declarationLView,this._declarationTContainer,i,{injector:s,dehydratedView:u});return new On(g)}};function gI(){return ty(Er(),Nn())}function ty(t,i){return 4&t.type?new mI(i,t,_d(t,i)):null}class g0{constructor(i){this.queryList=i,this.matches=null}clone(){return new g0(this.queryList)}setDirty(){this.queryList.setDirty()}}class _0{constructor(i=[]){this.queries=i}createEmbeddedView(i){const s=i.queries;if(null!==s){const u=null!==i.contentQueries?i.contentQueries[0]:s.length,g=[];for(let x=0;x0)u.push(T[A/2]);else{const te=x[A+1],ve=i[-k];for(let Ke=mo;Ke{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,u)=>{this.resolve=s,this.reject=u}),this.appInits=_r(ww,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const s=[];for(const g of this.appInits){const x=g();if(Qv(x))s.push(x);else if(K1(x)){const T=new Promise((A,k)=>{x.subscribe({complete:A,error:k})});s.push(T)}}const u=()=>{this.done=!0,this.resolve()};Promise.all(s).then(()=>{u()}).catch(g=>{this.reject(g)}),0===s.length&&u(),this.initialized=!0}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cw=(()=>{class t{log(s){console.log(s)}warn(s){console.warn(s)}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const iy=new mt("LocaleId",{providedIn:"root",factory:()=>_r(iy,Lt.Optional|Lt.SkipSelf)||function GI(){return typeof $localize<"u"&&$localize.locale||op}()}),HI=new mt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});let Tw=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Nt.X(!1)}add(){this.hasPendingTasks.next(!0);const s=this.taskId++;return this.pendingTasks.add(s),s}remove(s){this.pendingTasks.delete(s),0===this.pendingTasks.size&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();class KI{constructor(i,s){this.ngModuleFactory=i,this.componentFactories=s}}let XI=(()=>{class t{compileModuleSync(s){return new f0(s)}compileModuleAsync(s){return Promise.resolve(this.compileModuleSync(s))}compileModuleAndAllComponentsSync(s){const u=this.compileModuleSync(s),x=Qs(ue(s).declarations).reduce((T,A)=>{const k=_i(A);return k&&T.push(new dh(k)),T},[]);return new KI(u,x)}compileModuleAndAllComponentsAsync(s){return Promise.resolve(this.compileModuleAndAllComponentsSync(s))}clearCache(){}clearCacheFor(s){}getModuleId(s){}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Sw=new mt(""),Pw=new mt("");let I0,CM=(()=>{class t{constructor(s,u,g){this._ngZone=s,this.registry=u,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,I0||(function EM(t){I0=t}(g),g.addToWindow(u)),this._watchAngularEvents(),s.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{xr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let s=this._callbacks.pop();clearTimeout(s.timeoutId),s.doneCb(this._didWork)}this._didWork=!1});else{let s=this.getPendingTasks();this._callbacks=this._callbacks.filter(u=>!u.updateCb||!u.updateCb(s)||(clearTimeout(u.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(s=>({source:s.source,creationLocation:s.creationLocation,data:s.data})):[]}addCallback(s,u,g){let x=-1;u&&u>0&&(x=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==x),s(this._didWork,this.getPendingTasks())},u)),this._callbacks.push({doneCb:s,timeoutId:x,updateCb:g})}whenStable(s,u,g){if(g&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(s,u,g),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(s){this.registry.registerApplication(s,this)}unregisterApplication(s){this.registry.unregisterApplication(s)}findProviders(s,u,g){return[]}static#e=this.\u0275fac=function(u){return new(u||t)(cr(xr),cr(Ow),cr(Pw))};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac})}return t})(),Ow=(()=>{class t{constructor(){this._applications=new Map}registerApplication(s,u){this._applications.set(s,u)}unregisterApplication(s){this._applications.delete(s)}unregisterAllApplications(){this._applications.clear()}getTestability(s){return this._applications.get(s)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(s,u=!0){return I0?.findTestabilityInTree(this,s,u)??null}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Ed=null;const Rw=new mt("AllowMultipleToken"),M0=new mt("PlatformDestroyListeners"),A0=new mt("appBootstrapListener");function Fw(t,i,s=[]){const u=`Platform: ${i}`,g=new mt(u);return(x=[])=>{let T=S0();if(!T||T.injector.get(Rw,!1)){const A=[...s,...x,{provide:g,useValue:!0}];t?t(A):function IM(t){if(Ed&&!Ed.get(Rw,!1))throw new se(400,!1);(function Lw(){!function xn(t){Ht=t}(()=>{throw new se(600,!1)})})(),Ed=t;const i=t.get(Bw);(function kw(t){t.get(Mp,null)?.forEach(s=>s())})(t)}(function Nw(t=[],i){return al.create({name:i,providers:[{provide:fc,useValue:"platform"},{provide:M0,useValue:new Set([()=>Ed=null])},...t]})}(A,u))}return function AM(t){const i=S0();if(!i)throw new se(401,!1);return i}()}}function S0(){return Ed?.get(Bw)??null}let Bw=(()=>{class t{constructor(s){this._injector=s,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(s,u){const g=function SM(t="zone.js",i){return"noop"===t?new as:"zone.js"===t?new xr(i):t}(u?.ngZone,function zw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:u?.ngZoneEventCoalescing,runCoalescing:u?.ngZoneRunCoalescing}));return g.run(()=>{const x=function VD(t,i,s){return new h0(t,i,s)}(s.moduleType,this.injector,function Zw(t){return[{provide:xr,useFactory:t},{provide:fu,multi:!0,useFactory:()=>{const i=_r(OM,{optional:!0});return()=>i.initialize()}},{provide:$w,useFactory:PM},{provide:Jo,useFactory:Rs}]}(()=>g)),T=x.injector.get($c,null);return g.runOutsideAngular(()=>{const A=g.onError.subscribe({next:k=>{T.handleError(k)}});x.onDestroy(()=>{oy(this._modules,x),A.unsubscribe()})}),function Uw(t,i,s){try{const u=s();return Qv(u)?u.catch(g=>{throw i.runOutsideAngular(()=>t.handleError(g)),g}):u}catch(u){throw i.runOutsideAngular(()=>t.handleError(u)),u}}(T,g,()=>{const A=x.injector.get(T0);return A.runInitializers(),A.donePromise.then(()=>(function I1(t){qi(t,"Expected localeId to be defined"),"string"==typeof t&&(D1=t.toLowerCase().replace(/_/g,"-"))}(x.injector.get(iy,op)||op),this._moduleDoBootstrap(x),x))})})}bootstrapModule(s,u=[]){const g=jw({},u);return function TM(t,i,s){const u=new f0(s);return Promise.resolve(u)}(0,0,s).then(x=>this.bootstrapModuleFactory(x,g))}_moduleDoBootstrap(s){const u=s.injector.get(lp);if(s._bootstrapComponents.length>0)s._bootstrapComponents.forEach(g=>u.bootstrap(g));else{if(!s.instance.ngDoBootstrap)throw new se(-403,!1);s.instance.ngDoBootstrap(u)}this._modules.push(s)}onDestroy(s){this._destroyListeners.push(s)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new se(404,!1);this._modules.slice().forEach(u=>u.destroy()),this._destroyListeners.forEach(u=>u());const s=this._injector.get(M0,null);s&&(s.forEach(u=>u()),s.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(u){return new(u||t)(cr(al))};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function jw(t,i){return Array.isArray(i)?i.reduce(jw,t):{...t,...i}}let lp=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=_r($w),this.zoneIsStable=_r(Jo),this.componentTypes=[],this.components=[],this.isStable=_r(Tw).hasPendingTasks.pipe((0,oi.w)(s=>s?(0,Xt.of)(!1):this.zoneIsStable),(0,xi.x)(),(0,Tn.B)()),this._injector=_r(Fa)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(s,u){const g=s instanceof Iu;if(!this._injector.get(T0).done)throw!g&&le(s),new se(405,!1);let T;T=g?s:this._injector.get(yf).resolveComponentFactory(s),this.componentTypes.push(T.componentType);const A=function DM(t){return t.isBoundToModule}(T)?void 0:this._injector.get(_h),te=T.create(al.NULL,[],u||T.selector,A),ve=te.location.nativeElement,Ke=te.injector.get(Sw,null);return Ke?.registerApplication(ve),te.onDestroy(()=>{this.detachView(te.hostView),oy(this.components,te),Ke?.unregisterApplication(ve)}),this._loadComponent(te),te}tick(){if(this._runningTick)throw new se(101,!1);try{this._runningTick=!0;for(let s of this._views)s.detectChanges()}catch(s){this.internalErrorHandler(s)}finally{this._runningTick=!1}}attachView(s){const u=s;this._views.push(u),u.attachToAppRef(this)}detachView(s){const u=s;oy(this._views,u),u.detachFromAppRef()}_loadComponent(s){this.attachView(s.hostView),this.tick(),this.components.push(s);const u=this._injector.get(A0,[]);[...this._bootstrapListeners,...u].forEach(g=>g(s))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(s=>s()),this._views.slice().forEach(s=>s.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(s){return this._destroyListeners.push(s),()=>oy(this._destroyListeners,s)}destroy(){if(this._destroyed)throw new se(406,!1);const s=this._injector;s.destroy&&!s.destroyed&&s.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function oy(t,i){const s=t.indexOf(i);s>-1&&t.splice(s,1)}const $w=new mt("",{providedIn:"root",factory:()=>_r($c).handleError.bind(void 0)});function PM(){const t=_r(xr),i=_r($c);return s=>t.runOutsideAngular(()=>i.handleError(s))}let OM=(()=>{class t{constructor(){this.zone=_r(xr),this.applicationRef=_r(lp)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(u){return new(u||t)};static#t=this.\u0275prov=Qt({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kM(){}const UM=Fw(null,"core",[]);let jM=(()=>{class t{constructor(s){}static#e=this.\u0275fac=function(u){return new(u||t)(cr(lp))};static#t=this.\u0275mod=qa({type:t});static#n=this.\u0275inj=It({})}return t})();function lA(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function uA(t,i){const s=_i(t),u=i.elementInjector||Sh();return new dh(s).create(u,i.projectableNodes,i.hostElement,i.environmentInjector)}function dA(t){const i=_i(t);if(!i)return null;const s=new dh(i);return{get selector(){return s.selector},get type(){return s.componentType},get inputs(){return s.inputs},get outputs(){return s.outputs},get ngContentSelectors(){return s.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},6223:(zn,wt,S)=>{"use strict";S.d(wt,{Cf:()=>Ce,Fd:()=>ws,Fj:()=>De,JJ:()=>Vn,JU:()=>oe,On:()=>jt,a5:()=>Ie,qQ:()=>Us,u5:()=>Br,wV:()=>Un});var h=S(8564),p=S(6814),X=S(7715),a=S(9315),j=S(7398);let K=(()=>{class le{constructor(W,He){this._renderer=W,this._elementRef=He,this.onChange=zt=>{},this.onTouched=()=>{}}setProperty(W,He){this._renderer.setProperty(this._elementRef.nativeElement,W,He)}registerOnTouched(W){this.onTouched=W}registerOnChange(W){this.onChange=W}setDisabledState(W){this.setProperty("disabled",W)}static#e=this.\u0275fac=function(He){return new(He||le)(h.Y36(h.Qsj),h.Y36(h.SBq))};static#t=this.\u0275dir=h.lG2({type:le})}return le})(),C=(()=>{class le extends K{static#e=this.\u0275fac=(()=>{let W;return function(zt){return(W||(W=h.n5z(le)))(zt||le)}})();static#t=this.\u0275dir=h.lG2({type:le,features:[h.qOj]})}return le})();const oe=new h.OlP("NgValueAccessor"),ee={provide:oe,useExisting:(0,h.Gpc)(()=>De),multi:!0},ye=new h.OlP("CompositionEventMode");let De=(()=>{class le extends K{constructor(W,He,zt){super(W,He),this._compositionMode=zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function Te(){const le=(0,p.q)()?(0,p.q)().getUserAgent():"";return/android (\d+)/.test(le.toLowerCase())}())}writeValue(W){this.setProperty("value",W??"")}_handleInput(W){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(W)}_compositionStart(){this._composing=!0}_compositionEnd(W){this._composing=!1,this._compositionMode&&this.onChange(W)}static#e=this.\u0275fac=function(He){return new(He||le)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(ye,8))};static#t=this.\u0275dir=h.lG2({type:le,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(He,zt){1&He&&h.NdJ("input",function(dr){return zt._handleInput(dr.target.value)})("blur",function(){return zt.onTouched()})("compositionstart",function(){return zt._compositionStart()})("compositionend",function(dr){return zt._compositionEnd(dr.target.value)})},features:[h._Bn([ee]),h.qOj]})}return le})();function me(le){return null==le||("string"==typeof le||Array.isArray(le))&&0===le.length}const Ce=new h.OlP("NgValidators"),de=new h.OlP("NgAsyncValidators");function Se(le){return null}function Ve(le){return null!=le}function Xe(le){return(0,h.QGY)(le)?(0,X.D)(le):le}function Ht(le){let ue={};return le.forEach(W=>{ue=null!=W?{...ue,...W}:ue}),0===Object.keys(ue).length?null:ue}function cn(le,ue){return ue.map(W=>W(le))}function $t(le){return le.map(ue=>function xn(le){return!le.validate}(ue)?ue:W=>ue.validate(W))}function pe(le){return null!=le?function ke(le){if(!le)return null;const ue=le.filter(Ve);return 0==ue.length?null:function(W){return Ht(cn(W,ue))}}($t(le)):null}function ie(le){return null!=le?function Oe(le){if(!le)return null;const ue=le.filter(Ve);return 0==ue.length?null:function(W){const He=cn(W,ue).map(Xe);return(0,a.D)(He).pipe((0,j.U)(Ht))}}($t(le)):null}function it(le,ue){return null===le?[ue]:Array.isArray(le)?[...le,ue]:[le,ue]}function Mn(le){return le?Array.isArray(le)?le:[le]:[]}function fn(le,ue){return Array.isArray(le)?le.includes(ue):le===ue}function qn(le,ue){const W=Mn(ue);return Mn(le).forEach(zt=>{fn(W,zt)||W.push(zt)}),W}function li(le,ue){return Mn(ue).filter(W=>!fn(le,W))}class en{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(ue){this._rawValidators=ue||[],this._composedValidatorFn=pe(this._rawValidators)}_setAsyncValidators(ue){this._rawAsyncValidators=ue||[],this._composedAsyncValidatorFn=ie(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ue){this._onDestroyCallbacks.push(ue)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ue=>ue()),this._onDestroyCallbacks=[]}reset(ue=void 0){this.control&&this.control.reset(ue)}hasError(ue,W){return!!this.control&&this.control.hasError(ue,W)}getError(ue,W){return this.control?this.control.getError(ue,W):null}}class Dt extends en{get formDirective(){return null}get path(){return null}}class Ie extends en{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ct{constructor(ue){this._cd=ue}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Vn=(()=>{class le extends Ct{constructor(W){super(W)}static#e=this.\u0275fac=function(He){return new(He||le)(h.Y36(Ie,2))};static#t=this.\u0275dir=h.lG2({type:le,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(He,zt){2&He&&h.ekj("ng-untouched",zt.isUntouched)("ng-touched",zt.isTouched)("ng-pristine",zt.isPristine)("ng-dirty",zt.isDirty)("ng-valid",zt.isValid)("ng-invalid",zt.isInvalid)("ng-pending",zt.isPending)},features:[h.qOj]})}return le})();const ct="VALID",ge="INVALID",se="PENDING",tt="DISABLED";function Et(le){return null!=le&&!Array.isArray(le)&&"object"==typeof le}class mn{constructor(ue,W){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ue),this._assignAsyncValidators(W)}get validator(){return this._composedValidatorFn}set validator(ue){this._rawValidators=this._composedValidatorFn=ue}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ue){this._rawAsyncValidators=this._composedAsyncValidatorFn=ue}get parent(){return this._parent}get valid(){return this.status===ct}get invalid(){return this.status===ge}get pending(){return this.status==se}get disabled(){return this.status===tt}get enabled(){return this.status!==tt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ue){this._assignValidators(ue)}setAsyncValidators(ue){this._assignAsyncValidators(ue)}addValidators(ue){this.setValidators(qn(ue,this._rawValidators))}addAsyncValidators(ue){this.setAsyncValidators(qn(ue,this._rawAsyncValidators))}removeValidators(ue){this.setValidators(li(ue,this._rawValidators))}removeAsyncValidators(ue){this.setAsyncValidators(li(ue,this._rawAsyncValidators))}hasValidator(ue){return fn(this._rawValidators,ue)}hasAsyncValidator(ue){return fn(this._rawAsyncValidators,ue)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ue={}){this.touched=!0,this._parent&&!ue.onlySelf&&this._parent.markAsTouched(ue)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ue=>ue.markAllAsTouched())}markAsUntouched(ue={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(W=>{W.markAsUntouched({onlySelf:!0})}),this._parent&&!ue.onlySelf&&this._parent._updateTouched(ue)}markAsDirty(ue={}){this.pristine=!1,this._parent&&!ue.onlySelf&&this._parent.markAsDirty(ue)}markAsPristine(ue={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(W=>{W.markAsPristine({onlySelf:!0})}),this._parent&&!ue.onlySelf&&this._parent._updatePristine(ue)}markAsPending(ue={}){this.status=se,!1!==ue.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ue.onlySelf&&this._parent.markAsPending(ue)}disable(ue={}){const W=this._parentMarkedDirty(ue.onlySelf);this.status=tt,this.errors=null,this._forEachChild(He=>{He.disable({...ue,onlySelf:!0})}),this._updateValue(),!1!==ue.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ue,skipPristineCheck:W}),this._onDisabledChange.forEach(He=>He(!0))}enable(ue={}){const W=this._parentMarkedDirty(ue.onlySelf);this.status=ct,this._forEachChild(He=>{He.enable({...ue,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ue.emitEvent}),this._updateAncestors({...ue,skipPristineCheck:W}),this._onDisabledChange.forEach(He=>He(!1))}_updateAncestors(ue){this._parent&&!ue.onlySelf&&(this._parent.updateValueAndValidity(ue),ue.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ue){this._parent=ue}getRawValue(){return this.value}updateValueAndValidity(ue={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ct||this.status===se)&&this._runAsyncValidator(ue.emitEvent)),!1!==ue.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ue.onlySelf&&this._parent.updateValueAndValidity(ue)}_updateTreeValidity(ue={emitEvent:!0}){this._forEachChild(W=>W._updateTreeValidity(ue)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ue.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?tt:ct}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ue){if(this.asyncValidator){this.status=se,this._hasOwnPendingAsyncValidator=!0;const W=Xe(this.asyncValidator(this));this._asyncValidationSubscription=W.subscribe(He=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(He,{emitEvent:ue})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ue,W={}){this.errors=ue,this._updateControlsErrors(!1!==W.emitEvent)}get(ue){let W=ue;return null==W||(Array.isArray(W)||(W=W.split(".")),0===W.length)?null:W.reduce((He,zt)=>He&&He._find(zt),this)}getError(ue,W){const He=W?this.get(W):this;return He&&He.errors?He.errors[ue]:null}hasError(ue,W){return!!this.getError(ue,W)}get root(){let ue=this;for(;ue._parent;)ue=ue._parent;return ue}_updateControlsErrors(ue){this.status=this._calculateStatus(),ue&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ue)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?tt:this.errors?ge:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(se)?se:this._anyControlsHaveStatus(ge)?ge:ct}_anyControlsHaveStatus(ue){return this._anyControls(W=>W.status===ue)}_anyControlsDirty(){return this._anyControls(ue=>ue.dirty)}_anyControlsTouched(){return this._anyControls(ue=>ue.touched)}_updatePristine(ue={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ue.onlySelf&&this._parent._updatePristine(ue)}_updateTouched(ue={}){this.touched=this._anyControlsTouched(),this._parent&&!ue.onlySelf&&this._parent._updateTouched(ue)}_registerOnCollectionChange(ue){this._onCollectionChange=ue}_setUpdateStrategy(ue){Et(ue)&&null!=ue.updateOn&&(this._updateOn=ue.updateOn)}_parentMarkedDirty(ue){return!ue&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ue){return null}_assignValidators(ue){this._rawValidators=Array.isArray(ue)?ue.slice():ue,this._composedValidatorFn=function Ot(le){return Array.isArray(le)?pe(le):le||null}(this._rawValidators)}_assignAsyncValidators(ue){this._rawAsyncValidators=Array.isArray(ue)?ue.slice():ue,this._composedAsyncValidatorFn=function Vt(le){return Array.isArray(le)?ie(le):le||null}(this._rawAsyncValidators)}}const Dn=new h.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>gi}),gi="always";function Li(le,ue,W=gi){(function ho(le,ue){const W=function _t(le){return le._rawValidators}(le);null!==ue.validator?le.setValidators(it(W,ue.validator)):"function"==typeof W&&le.setValidators([W]);const He=function Kt(le){return le._rawAsyncValidators}(le);null!==ue.asyncValidator?le.setAsyncValidators(it(He,ue.asyncValidator)):"function"==typeof He&&le.setAsyncValidators([He]);const zt=()=>le.updateValueAndValidity();Ui(ue._rawValidators,zt),Ui(ue._rawAsyncValidators,zt)})(le,ue),ue.valueAccessor.writeValue(le.value),(le.disabled||"always"===W)&&ue.valueAccessor.setDisabledState?.(le.disabled),function Io(le,ue){ue.valueAccessor.registerOnChange(W=>{le._pendingValue=W,le._pendingChange=!0,le._pendingDirty=!0,"change"===le.updateOn&&ao(le,ue)})}(le,ue),function Ro(le,ue){const W=(He,zt)=>{ue.valueAccessor.writeValue(He),zt&&ue.viewToModelUpdate(He)};le.registerOnChange(W),ue._registerOnDestroy(()=>{le._unregisterOnChange(W)})}(le,ue),function Zi(le,ue){ue.valueAccessor.registerOnTouched(()=>{le._pendingTouched=!0,"blur"===le.updateOn&&le._pendingChange&&ao(le,ue),"submit"!==le.updateOn&&le.markAsTouched()})}(le,ue),function Fr(le,ue){if(ue.valueAccessor.setDisabledState){const W=He=>{ue.valueAccessor.setDisabledState(He)};le.registerOnDisabledChange(W),ue._registerOnDestroy(()=>{le._unregisterOnDisabledChange(W)})}}(le,ue)}function Ui(le,ue){le.forEach(W=>{W.registerOnValidatorChange&&W.registerOnValidatorChange(ue)})}function ao(le,ue){le._pendingDirty&&le.markAsDirty(),le.setValue(le._pendingValue,{emitModelToViewChange:!1}),ue.viewToModelUpdate(le._pendingValue),le._pendingChange=!1}function we(le,ue){const W=le.indexOf(ue);W>-1&&le.splice(W,1)}function ut(le){return"object"==typeof le&&null!==le&&2===Object.keys(le).length&&"value"in le&&"disabled"in le}const dt=class extends mn{constructor(ue=null,W,He){super(function yt(le){return(Et(le)?le.validators:le)||null}(W),function Gt(le,ue){return(Et(ue)?ue.asyncValidators:le)||null}(He,W)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ue),this._setUpdateStrategy(W),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Et(W)&&(W.nonNullable||W.initialValueIsDefault)&&(this.defaultValue=ut(ue)?ue.value:ue)}setValue(ue,W={}){this.value=this._pendingValue=ue,this._onChange.length&&!1!==W.emitModelToViewChange&&this._onChange.forEach(He=>He(this.value,!1!==W.emitViewToModelChange)),this.updateValueAndValidity(W)}patchValue(ue,W={}){this.setValue(ue,W)}reset(ue=this.defaultValue,W={}){this._applyFormState(ue),this.markAsPristine(W),this.markAsUntouched(W),this.setValue(this.value,W),this._pendingChange=!1}_updateValue(){}_anyControls(ue){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ue){this._onChange.push(ue)}_unregisterOnChange(ue){we(this._onChange,ue)}registerOnDisabledChange(ue){this._onDisabledChange.push(ue)}_unregisterOnDisabledChange(ue){we(this._onDisabledChange,ue)}_forEachChild(ue){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ue){ut(ue)?(this.value=this._pendingValue=ue.value,ue.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ue}},mt={provide:Ie,useExisting:(0,h.Gpc)(()=>jt)},yn=(()=>Promise.resolve())();let jt=(()=>{class le extends Ie{constructor(W,He,zt,vi,dr,wr){super(),this._changeDetectorRef=dr,this.callSetDisabledState=wr,this.control=new dt,this._registered=!1,this.name="",this.update=new h.vpe,this._parent=W,this._setValidators(He),this._setAsyncValidators(zt),this.valueAccessor=function Xn(le,ue){if(!ue)return null;let W,He,zt;return Array.isArray(ue),ue.forEach(vi=>{vi.constructor===De?W=vi:function wn(le){return Object.getPrototypeOf(le.constructor)===C}(vi)?He=vi:zt=vi}),zt||He||W||null}(0,vi)}ngOnChanges(W){if(this._checkForErrors(),!this._registered||"name"in W){if(this._registered&&(this._checkName(),this.formDirective)){const He=W.name.previousValue;this.formDirective.removeControl({name:He,path:this._getPath(He)})}this._setUpControl()}"isDisabled"in W&&this._updateDisabled(W),function Qt(le,ue){if(!le.hasOwnProperty("model"))return!1;const W=le.model;return!!W.isFirstChange()||!Object.is(ue,W.currentValue)}(W,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(W){this.viewModel=W,this.update.emit(W)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Li(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(W){yn.then(()=>{this.control.setValue(W,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(W){const He=W.isDisabled.currentValue,zt=0!==He&&(0,h.VuI)(He);yn.then(()=>{zt&&!this.control.disabled?this.control.disable():!zt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(W){return this._parent?function Mi(le,ue){return[...ue.path,le]}(W,this._parent):[W]}static#e=this.\u0275fac=function(He){return new(He||le)(h.Y36(Dt,9),h.Y36(Ce,10),h.Y36(de,10),h.Y36(oe,10),h.Y36(h.sBO,8),h.Y36(Dn,8))};static#t=this.\u0275dir=h.lG2({type:le,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([mt]),h.qOj,h.TTD]})}return le})();const $n={provide:oe,useExisting:(0,h.Gpc)(()=>Un),multi:!0};let Un=(()=>{class le extends C{writeValue(W){this.setProperty("value",W??"")}registerOnChange(W){this.onChange=He=>{W(""==He?null:parseFloat(He))}}static#e=this.\u0275fac=(()=>{let W;return function(zt){return(W||(W=h.n5z(le)))(zt||le)}})();static#t=this.\u0275dir=h.lG2({type:le,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(He,zt){1&He&&h.NdJ("input",function(dr){return zt.onChange(dr.target.value)})("blur",function(){return zt.onTouched()})},features:[h._Bn([$n]),h.qOj]})}return le})(),Ri=(()=>{class le{static#e=this.\u0275fac=function(He){return new(He||le)};static#t=this.\u0275mod=h.oAB({type:le});static#n=this.\u0275inj=h.cJS({})}return le})();function Lo(le){return"number"==typeof le?le:parseFloat(le)}let ns=(()=>{class le{constructor(){this._validator=Se}ngOnChanges(W){if(this.inputName in W){const He=this.normalizeInput(W[this.inputName].currentValue);this._enabled=this.enabled(He),this._validator=this._enabled?this.createValidator(He):Se,this._onChange&&this._onChange()}}validate(W){return this._validator(W)}registerOnValidatorChange(W){this._onChange=W}enabled(W){return null!=W}static#e=this.\u0275fac=function(He){return new(He||le)};static#t=this.\u0275dir=h.lG2({type:le,features:[h.TTD]})}return le})();const ha={provide:Ce,useExisting:(0,h.Gpc)(()=>ws),multi:!0};let ws=(()=>{class le extends ns{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=W=>Lo(W),this.createValidator=W=>function Ae(le){return ue=>{if(me(ue.value)||me(le))return null;const W=parseFloat(ue.value);return!isNaN(W)&&W>le?{max:{max:le,actual:ue.value}}:null}}(W)}static#e=this.\u0275fac=(()=>{let W;return function(zt){return(W||(W=h.n5z(le)))(zt||le)}})();static#t=this.\u0275dir=h.lG2({type:le,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(He,zt){2&He&&h.uIk("max",zt._enabled?zt.max:null)},inputs:{max:"max"},features:[h._Bn([ha]),h.qOj]})}return le})();const na={provide:Ce,useExisting:(0,h.Gpc)(()=>Us),multi:!0};let Us=(()=>{class le extends ns{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=W=>Lo(W),this.createValidator=W=>function Ne(le){return ue=>{if(me(ue.value)||me(le))return null;const W=parseFloat(ue.value);return!isNaN(W)&&W{let W;return function(zt){return(W||(W=h.n5z(le)))(zt||le)}})();static#t=this.\u0275dir=h.lG2({type:le,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(He,zt){2&He&&h.uIk("min",zt._enabled?zt.min:null)},inputs:{min:"min"},features:[h._Bn([na]),h.qOj]})}return le})(),ia=(()=>{class le{static#e=this.\u0275fac=function(He){return new(He||le)};static#t=this.\u0275mod=h.oAB({type:le});static#n=this.\u0275inj=h.cJS({imports:[Ri]})}return le})(),Br=(()=>{class le{static withConfig(W){return{ngModule:le,providers:[{provide:Dn,useValue:W.callSetDisabledState??gi}]}}static#e=this.\u0275fac=function(He){return new(He||le)};static#t=this.\u0275mod=h.oAB({type:le});static#n=this.\u0275inj=h.cJS({imports:[ia]})}return le})()},6593:(zn,wt,S)=>{"use strict";S.d(wt,{Dx:()=>qe,b2:()=>on,q6:()=>en});var h=S(8564),p=S(6814);class X extends p.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class a extends X{static makeCurrent(){(0,p.HT)(new a)}onAndCancel(ht,G,ze){return ht.addEventListener(G,ze),()=>{ht.removeEventListener(G,ze)}}dispatchEvent(ht,G){ht.dispatchEvent(G)}remove(ht){ht.parentNode&&ht.parentNode.removeChild(ht)}createElement(ht,G){return(G=G||this.getDefaultDocument()).createElement(ht)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ht){return ht.nodeType===Node.ELEMENT_NODE}isShadowRoot(ht){return ht instanceof DocumentFragment}getGlobalEventTarget(ht,G){return"window"===G?window:"document"===G?ht:"body"===G?ht.body:null}getBaseHref(ht){const G=function K(){return j=j||document.querySelector("base"),j?j.getAttribute("href"):null}();return null==G?null:function oe(ae){C=C||document.createElement("a"),C.setAttribute("href",ae);const ht=C.pathname;return"/"===ht.charAt(0)?ht:`/${ht}`}(G)}resetBaseElement(){j=null}getUserAgent(){return window.navigator.userAgent}getCookie(ht){return(0,p.Mx)(document.cookie,ht)}}let C,j=null,Le=(()=>{class ae{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(ze){return new(ze||ae)};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const ee=new h.OlP("EventManagerPlugins");let Te=(()=>{class ae{constructor(G,ze){this._zone=ze,this._eventNameToPlugin=new Map,G.forEach(at=>{at.manager=this}),this._plugins=G.slice().reverse()}addEventListener(G,ze,at){return this._findPluginFor(ze).addEventListener(G,ze,at)}getZone(){return this._zone}_findPluginFor(G){let ze=this._eventNameToPlugin.get(G);if(ze)return ze;if(ze=this._plugins.find(rn=>rn.supports(G)),!ze)throw new h.vHH(5101,!1);return this._eventNameToPlugin.set(G,ze),ze}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(ee),h.LFG(h.R0b))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();class ye{constructor(ht){this._doc=ht}}const De="ng-app-id";let me=(()=>{class ae{constructor(G,ze,at,rn={}){this.doc=G,this.appId=ze,this.nonce=at,this.platformId=rn,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,p.PM)(rn),this.resetHostNodes()}addStyles(G){for(const ze of G)1===this.changeUsageCount(ze,1)&&this.onStyleAdded(ze)}removeStyles(G){for(const ze of G)this.changeUsageCount(ze,-1)<=0&&this.onStyleRemoved(ze)}ngOnDestroy(){const G=this.styleNodesInDOM;G&&(G.forEach(ze=>ze.remove()),G.clear());for(const ze of this.getAllStyles())this.onStyleRemoved(ze);this.resetHostNodes()}addHost(G){this.hostNodes.add(G);for(const ze of this.getAllStyles())this.addStyleToHost(G,ze)}removeHost(G){this.hostNodes.delete(G)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(G){for(const ze of this.hostNodes)this.addStyleToHost(ze,G)}onStyleRemoved(G){const ze=this.styleRef;ze.get(G)?.elements?.forEach(at=>at.remove()),ze.delete(G)}collectServerRenderedStyles(){const G=this.doc.head?.querySelectorAll(`style[${De}="${this.appId}"]`);if(G?.length){const ze=new Map;return G.forEach(at=>{null!=at.textContent&&ze.set(at.textContent,at)}),ze}return null}changeUsageCount(G,ze){const at=this.styleRef;if(at.has(G)){const rn=at.get(G);return rn.usage+=ze,rn.usage}return at.set(G,{usage:ze,elements:[]}),ze}getStyleElement(G,ze){const at=this.styleNodesInDOM,rn=at?.get(ze);if(rn?.parentNode===G)return at.delete(ze),rn.removeAttribute(De),rn;{const Dn=this.doc.createElement("style");return this.nonce&&Dn.setAttribute("nonce",this.nonce),Dn.textContent=ze,this.platformIsServer&&Dn.setAttribute(De,this.appId),G.appendChild(Dn),Dn}}addStyleToHost(G,ze){const at=this.getStyleElement(G,ze),rn=this.styleRef,Dn=rn.get(ze)?.elements;Dn?Dn.push(at):rn.set(ze,{elements:[at],usage:1})}resetHostNodes(){const G=this.hostNodes;G.clear(),G.add(this.doc.head)}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(p.K0),h.LFG(h.AFp),h.LFG(h.Ojb,8),h.LFG(h.Lbi))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const Ye={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Ce=/%COMP%/g,Ae=new h.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function ne(ae,ht){return ht.map(G=>G.replace(Ce,ae))}let Ee=(()=>{class ae{constructor(G,ze,at,rn,Dn,gi,Mi,Li=null){this.eventManager=G,this.sharedStylesHost=ze,this.appId=at,this.removeStylesOnCompDestroy=rn,this.doc=Dn,this.platformId=gi,this.ngZone=Mi,this.nonce=Li,this.rendererByCompId=new Map,this.platformIsServer=(0,p.PM)(gi),this.defaultRenderer=new xe(G,Dn,Mi,this.platformIsServer)}createRenderer(G,ze){if(!G||!ze)return this.defaultRenderer;this.platformIsServer&&ze.encapsulation===h.ifc.ShadowDom&&(ze={...ze,encapsulation:h.ifc.Emulated});const at=this.getOrCreateRenderer(G,ze);return at instanceof cn?at.applyToHost(G):at instanceof Ht&&at.applyStyles(),at}getOrCreateRenderer(G,ze){const at=this.rendererByCompId;let rn=at.get(ze.id);if(!rn){const Dn=this.doc,gi=this.ngZone,Mi=this.eventManager,Li=this.sharedStylesHost,yr=this.removeStylesOnCompDestroy,Ui=this.platformIsServer;switch(ze.encapsulation){case h.ifc.Emulated:rn=new cn(Mi,Li,ze,this.appId,yr,Dn,gi,Ui);break;case h.ifc.ShadowDom:return new Xe(Mi,Li,G,ze,Dn,gi,this.nonce,Ui);default:rn=new Ht(Mi,Li,ze,yr,Dn,gi,Ui)}at.set(ze.id,rn)}return rn}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(Te),h.LFG(me),h.LFG(h.AFp),h.LFG(Ae),h.LFG(p.K0),h.LFG(h.Lbi),h.LFG(h.R0b),h.LFG(h.Ojb))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();class xe{constructor(ht,G,ze,at){this.eventManager=ht,this.doc=G,this.ngZone=ze,this.platformIsServer=at,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(ht,G){return G?this.doc.createElementNS(Ye[G]||G,ht):this.doc.createElement(ht)}createComment(ht){return this.doc.createComment(ht)}createText(ht){return this.doc.createTextNode(ht)}appendChild(ht,G){(Ve(ht)?ht.content:ht).appendChild(G)}insertBefore(ht,G,ze){ht&&(Ve(ht)?ht.content:ht).insertBefore(G,ze)}removeChild(ht,G){ht&&ht.removeChild(G)}selectRootElement(ht,G){let ze="string"==typeof ht?this.doc.querySelector(ht):ht;if(!ze)throw new h.vHH(-5104,!1);return G||(ze.textContent=""),ze}parentNode(ht){return ht.parentNode}nextSibling(ht){return ht.nextSibling}setAttribute(ht,G,ze,at){if(at){G=at+":"+G;const rn=Ye[at];rn?ht.setAttributeNS(rn,G,ze):ht.setAttribute(G,ze)}else ht.setAttribute(G,ze)}removeAttribute(ht,G,ze){if(ze){const at=Ye[ze];at?ht.removeAttributeNS(at,G):ht.removeAttribute(`${ze}:${G}`)}else ht.removeAttribute(G)}addClass(ht,G){ht.classList.add(G)}removeClass(ht,G){ht.classList.remove(G)}setStyle(ht,G,ze,at){at&(h.JOm.DashCase|h.JOm.Important)?ht.style.setProperty(G,ze,at&h.JOm.Important?"important":""):ht.style[G]=ze}removeStyle(ht,G,ze){ze&h.JOm.DashCase?ht.style.removeProperty(G):ht.style[G]=""}setProperty(ht,G,ze){null!=ht&&(ht[G]=ze)}setValue(ht,G){ht.nodeValue=G}listen(ht,G,ze){if("string"==typeof ht&&!(ht=(0,p.q)().getGlobalEventTarget(this.doc,ht)))throw new Error(`Unsupported event target ${ht} for event ${G}`);return this.eventManager.addEventListener(ht,G,this.decoratePreventDefault(ze))}decoratePreventDefault(ht){return G=>{if("__ngUnwrap__"===G)return ht;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ht(G)):ht(G))&&G.preventDefault()}}}function Ve(ae){return"TEMPLATE"===ae.tagName&&void 0!==ae.content}class Xe extends xe{constructor(ht,G,ze,at,rn,Dn,gi,Mi){super(ht,rn,Dn,Mi),this.sharedStylesHost=G,this.hostEl=ze,this.shadowRoot=ze.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Li=ne(at.id,at.styles);for(const yr of Li){const Ui=document.createElement("style");gi&&Ui.setAttribute("nonce",gi),Ui.textContent=yr,this.shadowRoot.appendChild(Ui)}}nodeOrShadowRoot(ht){return ht===this.hostEl?this.shadowRoot:ht}appendChild(ht,G){return super.appendChild(this.nodeOrShadowRoot(ht),G)}insertBefore(ht,G,ze){return super.insertBefore(this.nodeOrShadowRoot(ht),G,ze)}removeChild(ht,G){return super.removeChild(this.nodeOrShadowRoot(ht),G)}parentNode(ht){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ht)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ht extends xe{constructor(ht,G,ze,at,rn,Dn,gi,Mi){super(ht,rn,Dn,gi),this.sharedStylesHost=G,this.removeStylesOnCompDestroy=at,this.styles=Mi?ne(Mi,ze.styles):ze.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class cn extends Ht{constructor(ht,G,ze,at,rn,Dn,gi,Mi){const Li=at+"-"+ze.id;super(ht,G,ze,rn,Dn,gi,Mi,Li),this.contentAttr=function Ge(ae){return"_ngcontent-%COMP%".replace(Ce,ae)}(Li),this.hostAttr=function lt(ae){return"_nghost-%COMP%".replace(Ce,ae)}(Li)}applyToHost(ht){this.applyStyles(),this.setAttribute(ht,this.hostAttr,"")}createElement(ht,G){const ze=super.createElement(ht,G);return super.setAttribute(ze,this.contentAttr,""),ze}}let xn=(()=>{class ae extends ye{constructor(G){super(G)}supports(G){return!0}addEventListener(G,ze,at){return G.addEventListener(ze,at,!1),()=>this.removeEventListener(G,ze,at)}removeEventListener(G,ze,at){return G.removeEventListener(ze,at)}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(p.K0))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const $t=["alt","control","meta","shift"],ke={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pe={alt:ae=>ae.altKey,control:ae=>ae.ctrlKey,meta:ae=>ae.metaKey,shift:ae=>ae.shiftKey};let Oe=(()=>{class ae extends ye{constructor(G){super(G)}supports(G){return null!=ae.parseEventName(G)}addEventListener(G,ze,at){const rn=ae.parseEventName(ze),Dn=ae.eventCallback(rn.fullKey,at,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,p.q)().onAndCancel(G,rn.domEventName,Dn))}static parseEventName(G){const ze=G.toLowerCase().split("."),at=ze.shift();if(0===ze.length||"keydown"!==at&&"keyup"!==at)return null;const rn=ae._normalizeKey(ze.pop());let Dn="",gi=ze.indexOf("code");if(gi>-1&&(ze.splice(gi,1),Dn="code."),$t.forEach(Li=>{const yr=ze.indexOf(Li);yr>-1&&(ze.splice(yr,1),Dn+=Li+".")}),Dn+=rn,0!=ze.length||0===rn.length)return null;const Mi={};return Mi.domEventName=at,Mi.fullKey=Dn,Mi}static matchEventFullKeyCode(G,ze){let at=ke[G.key]||G.key,rn="";return ze.indexOf("code.")>-1&&(at=G.code,rn="code."),!(null==at||!at)&&(at=at.toLowerCase()," "===at?at="space":"."===at&&(at="dot"),$t.forEach(Dn=>{Dn!==at&&(0,pe[Dn])(G)&&(rn+=Dn+".")}),rn+=at,rn===ze)}static eventCallback(G,ze,at){return rn=>{ae.matchEventFullKeyCode(rn,G)&&at.runGuarded(()=>ze(rn))}}static _normalizeKey(G){return"esc"===G?"escape":G}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(p.K0))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const en=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:p.bD},{provide:h.g9A,useValue:function Mn(){a.makeCurrent()},multi:!0},{provide:p.K0,useFactory:function qn(){return(0,h.RDi)(document),document},deps:[]}]),Dt=new h.OlP(""),Ie=[{provide:h.rWj,useClass:class _e{addToWindow(ht){h.dqk.getAngularTestability=(ze,at=!0)=>{const rn=ht.findTestabilityInTree(ze,at);if(null==rn)throw new h.vHH(5103,!1);return rn},h.dqk.getAllAngularTestabilities=()=>ht.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>ht.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(ze=>{const at=h.dqk.getAllAngularTestabilities();let rn=at.length,Dn=!1;const gi=function(Mi){Dn=Dn||Mi,rn--,0==rn&&ze(Dn)};at.forEach(Mi=>{Mi.whenStable(gi)})})}findTestabilityInTree(ht,G,ze){return null==G?null:ht.getTestability(G)??(ze?(0,p.q)().isShadowRoot(G)?this.findTestabilityInTree(ht,G.host,!0):this.findTestabilityInTree(ht,G.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],Ct=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function fn(){return new h.qLn},deps:[]},{provide:ee,useClass:xn,multi:!0,deps:[p.K0,h.R0b,h.Lbi]},{provide:ee,useClass:Oe,multi:!0,deps:[p.K0]},Ee,me,Te,{provide:h.FYo,useExisting:Ee},{provide:p.JF,useClass:Le,deps:[]},[]];let on=(()=>{class ae{constructor(G){}static withServerTransition(G){return{ngModule:ae,providers:[{provide:h.AFp,useValue:G.appId}]}}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(Dt,12))};static#t=this.\u0275mod=h.oAB({type:ae});static#n=this.\u0275inj=h.cJS({providers:[...Ct,...Ie],imports:[p.ez,h.hGG]})}return ae})(),qe=(()=>{class ae{constructor(G){this._doc=G}getTitle(){return this._doc.title}setTitle(G){this._doc.title=G||""}static#e=this.\u0275fac=function(ze){return new(ze||ae)(h.LFG(p.K0))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:function(ze){let at=null;return at=ze?new ze:function Hn(){return new qe((0,h.LFG)(p.K0))}(),at},providedIn:"root"})}return ae})();typeof window<"u"&&window},6800:(zn,wt,S)=>{"use strict";S.d(wt,{gz:()=>cr,y6:()=>H,OD:()=>ti,eC:()=>Ie,wN:()=>wc,F0:()=>Nr,rH:()=>ya,Bz:()=>yi,Hx:()=>tt});var h=S(8564),p=S(2664),X=S(7715),a=S(2096),j=S(5619),K=S(2572);const oe=(0,S(2306).d)(P=>function(){P(this),this.name="EmptyError",this.message="no elements in sequence"});var _e=S(5211),Le=S(4911),ee=S(8407),Te=S(5592),ye=S(4674);function De(P,U){const O=(0,ye.m)(P)?P:()=>P,z=d=>d.error(O());return new Te.y(U?d=>U.schedule(z,0,d):z)}var me=S(6232),Ye=S(7394),Ce=S(9360),de=S(8251);function Pe(){return(0,Ce.e)((P,U)=>{let O=null;P._refCount++;const z=(0,de.x)(U,void 0,void 0,void 0,()=>{if(!P||P._refCount<=0||0<--P._refCount)return void(O=null);const d=P._connection,n=O;O=null,d&&(!n||d===n)&&d.unsubscribe(),U.unsubscribe()});P.subscribe(z),z.closed||(O=P.connect())})}class Be extends Te.y{constructor(U,O){super(),this.source=U,this.subjectFactory=O,this._subject=null,this._refCount=0,this._connection=null,(0,Ce.A)(U)&&(this.lift=U.lift)}_subscribe(U){return this.getSubject().subscribe(U)}getSubject(){const U=this._subject;return(!U||U.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:U}=this;this._subject=this._connection=null,U?.unsubscribe()}connect(){let U=this._connection;if(!U){U=this._connection=new Ye.w0;const O=this.getSubject();U.add(this.source.subscribe((0,de.x)(O,void 0,()=>{this._teardown(),O.complete()},z=>{this._teardown(),O.error(z)},()=>this._teardown()))),U.closed&&(this._connection=null,U=Ye.w0.EMPTY)}return U}refCount(){return Pe()(this)}}var Ne=S(8645),Ae=S(6814),Ge=S(7398),lt=S(4664),ne=S(8180),Ee=S(4564),je=S(2181),Se=S(1631);function Ve(P){return(0,Ce.e)((U,O)=>{let z=!1;U.subscribe((0,de.x)(O,d=>{z=!0,O.next(d)},()=>{z||O.next(P),O.complete()}))})}function Xe(P=Ht){return(0,Ce.e)((U,O)=>{let z=!1;U.subscribe((0,de.x)(O,d=>{z=!0,O.next(d)},()=>z?O.complete():O.error(P())))})}function Ht(){return new oe}var cn=S(2737);function xn(P,U){const O=arguments.length>=2;return z=>z.pipe(P?(0,je.h)((d,n)=>P(d,n,z)):cn.y,(0,ne.q)(1),O?Ve(U):Xe(()=>new oe))}var $t=S(6328);function ke(P,U,O){const z=(0,ye.m)(P)||U||O?{next:P,error:U,complete:O}:P;return z?(0,Ce.e)((d,n)=>{var c;null===(c=z.subscribe)||void 0===c||c.call(z);let m=!0;d.subscribe((0,de.x)(n,v=>{var b;null===(b=z.next)||void 0===b||b.call(z,v),n.next(v)},()=>{var v;m=!1,null===(v=z.complete)||void 0===v||v.call(z),n.complete()},v=>{var b;m=!1,null===(b=z.error)||void 0===b||b.call(z,v),n.error(v)},()=>{var v,b;m&&(null===(v=z.unsubscribe)||void 0===v||v.call(z)),null===(b=z.finalize)||void 0===b||b.call(z)}))}):cn.y}var pe=S(4829);function Oe(P){return(0,Ce.e)((U,O)=>{let n,z=null,d=!1;z=U.subscribe((0,de.x)(O,void 0,void 0,c=>{n=(0,pe.Xf)(P(c,Oe(P)(U))),z?(z.unsubscribe(),z=null,n.subscribe(O)):d=!0})),d&&(z.unsubscribe(),z=null,n.subscribe(O))})}function _t(P){return P<=0?()=>me.E:(0,Ce.e)((U,O)=>{let z=[];U.subscribe((0,de.x)(O,d=>{z.push(d),P{for(const d of z)O.next(d);O.complete()},void 0,()=>{z=null}))})}var fn=S(4716),qn=S(2420),en=S(7537),Dt=S(6593);const Ie="primary",Ct=Symbol("RouteTitle");class on{constructor(U){this.params=U||{}}has(U){return Object.prototype.hasOwnProperty.call(this.params,U)}get(U){if(this.has(U)){const O=this.params[U];return Array.isArray(O)?O[0]:O}return null}getAll(U){if(this.has(U)){const O=this.params[U];return Array.isArray(O)?O:[O]}return[]}get keys(){return Object.keys(this.params)}}function Rn(P){return new on(P)}function Vn(P,U,O){const z=O.path.split("/");if(z.length>P.length||"full"===O.pathMatch&&(U.hasChildren()||z.lengthz[n]===d)}return P===U}function Xt(P){return P.length>0?P[P.length-1]:null}function Tn(P){return(0,p.b)(P)?P:(0,h.QGY)(P)?(0,X.D)(Promise.resolve(P)):(0,a.of)(P)}const oi={exact:function ki(P,U,O){if(!ge(P.segments,U.segments)||!pn(P.segments,U.segments,O)||P.numberOfChildren!==U.numberOfChildren)return!1;for(const z in U.children)if(!P.children[z]||!ki(P.children[z],U.children[z],O))return!1;return!0},subset:_n},xi={exact:function gr(P,U){return Hn(P,U)},subset:function Wi(P,U){return Object.keys(U).length<=Object.keys(P).length&&Object.keys(U).every(O=>Nt(P[O],U[O]))},ignored:()=>!0};function Oi(P,U,O){return oi[O.paths](P.root,U.root,O.matrixParams)&&xi[O.queryParams](P.queryParams,U.queryParams)&&!("exact"===O.fragment&&P.fragment!==U.fragment)}function _n(P,U,O){return Bi(P,U,U.segments,O)}function Bi(P,U,O,z){if(P.segments.length>O.length){const d=P.segments.slice(0,O.length);return!(!ge(d,O)||U.hasChildren()||!pn(d,O,z))}if(P.segments.length===O.length){if(!ge(P.segments,O)||!pn(P.segments,O,z))return!1;for(const d in U.children)if(!P.children[d]||!_n(P.children[d],U.children[d],z))return!1;return!0}{const d=O.slice(0,P.segments.length),n=O.slice(P.segments.length);return!!(ge(P.segments,d)&&pn(P.segments,d,z)&&P.children[Ie])&&Bi(P.children[Ie],U,n,z)}}function pn(P,U,O){return U.every((z,d)=>xi[O](P[d].parameters,z.parameters))}class sn{constructor(U=new Cn([],{}),O={},z=null){this.root=U,this.queryParams=O,this.fragment=z}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Rn(this.queryParams)),this._queryParamMap}toString(){return Ot.serialize(this)}}class Cn{constructor(U,O){this.segments=U,this.children=O,this.parent=null,Object.values(O).forEach(z=>z.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gt(this)}}class $i{constructor(U,O){this.path=U,this.parameters=O}get parameterMap(){return this._parameterMap||(this._parameterMap=Rn(this.parameters)),this._parameterMap}toString(){return G(this)}}function ge(P,U){return P.length===U.length&&P.every((O,z)=>O.path===U[z].path)}let tt=(()=>{class P{static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:()=>new yt,providedIn:"root"})}return P})();class yt{parse(U){const O=new ho(U);return new sn(O.parseRootSegment(),O.parseQueryParams(),O.parseFragment())}serialize(U){const O=`/${Vt(U.root,!0)}`,z=function at(P){const U=Object.keys(P).map(O=>{const z=P[O];return Array.isArray(z)?z.map(d=>`${Jt(O)}=${Jt(d)}`).join("&"):`${Jt(O)}=${Jt(z)}`}).filter(O=>!!O);return U.length?`?${U.join("&")}`:""}(U.queryParams);return`${O}${z}${"string"==typeof U.fragment?`#${function Bn(P){return encodeURI(P)}(U.fragment)}`:""}`}}const Ot=new yt;function Gt(P){return P.segments.map(U=>G(U)).join("/")}function Vt(P,U){if(!P.hasChildren())return Gt(P);if(U){const O=P.children[Ie]?Vt(P.children[Ie],!1):"",z=[];return Object.entries(P.children).forEach(([d,n])=>{d!==Ie&&z.push(`${d}:${Vt(n,!1)}`)}),z.length>0?`${O}(${z.join("//")})`:O}{const O=function se(P,U){let O=[];return Object.entries(P.children).forEach(([z,d])=>{z===Ie&&(O=O.concat(U(d,z)))}),Object.entries(P.children).forEach(([z,d])=>{z!==Ie&&(O=O.concat(U(d,z)))}),O}(P,(z,d)=>d===Ie?[Vt(P.children[Ie],!1)]:[`${d}:${Vt(z,!1)}`]);return 1===Object.keys(P.children).length&&null!=P.children[Ie]?`${Gt(P)}/${O[0]}`:`${Gt(P)}/(${O.join("//")})`}}function Et(P){return encodeURIComponent(P).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jt(P){return Et(P).replace(/%3B/gi,";")}function mn(P){return Et(P).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ae(P){return decodeURIComponent(P)}function ht(P){return ae(P.replace(/\+/g,"%20"))}function G(P){return`${mn(P.path)}${function ze(P){return Object.keys(P).map(U=>`;${mn(U)}=${mn(P[U])}`).join("")}(P.parameters)}`}const rn=/^[^\/()?;#]+/;function Dn(P){const U=P.match(rn);return U?U[0]:""}const gi=/^[^\/()?;=#]+/,Li=/^[^=?&#]+/,Ui=/^[^&#]+/;class ho{constructor(U){this.url=U,this.remaining=U}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Cn([],{}):new Cn([],this.parseChildren())}parseQueryParams(){const U={};if(this.consumeOptional("?"))do{this.parseQueryParam(U)}while(this.consumeOptional("&"));return U}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const U=[];for(this.peekStartsWith("(")||U.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),U.push(this.parseSegment());let O={};this.peekStartsWith("/(")&&(this.capture("/"),O=this.parseParens(!0));let z={};return this.peekStartsWith("(")&&(z=this.parseParens(!1)),(U.length>0||Object.keys(O).length>0)&&(z[Ie]=new Cn(U,O)),z}parseSegment(){const U=Dn(this.remaining);if(""===U&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(U),new $i(ae(U),this.parseMatrixParams())}parseMatrixParams(){const U={};for(;this.consumeOptional(";");)this.parseParam(U);return U}parseParam(U){const O=function Mi(P){const U=P.match(gi);return U?U[0]:""}(this.remaining);if(!O)return;this.capture(O);let z="";if(this.consumeOptional("=")){const d=Dn(this.remaining);d&&(z=d,this.capture(z))}U[ae(O)]=ae(z)}parseQueryParam(U){const O=function yr(P){const U=P.match(Li);return U?U[0]:""}(this.remaining);if(!O)return;this.capture(O);let z="";if(this.consumeOptional("=")){const c=function Fr(P){const U=P.match(Ui);return U?U[0]:""}(this.remaining);c&&(z=c,this.capture(z))}const d=ht(O),n=ht(z);if(U.hasOwnProperty(d)){let c=U[d];Array.isArray(c)||(c=[c],U[d]=c),c.push(n)}else U[d]=n}parseParens(U){const O={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const z=Dn(this.remaining),d=this.remaining[z.length];if("/"!==d&&")"!==d&&";"!==d)throw new h.vHH(4010,!1);let n;z.indexOf(":")>-1?(n=z.slice(0,z.indexOf(":")),this.capture(n),this.capture(":")):U&&(n=Ie);const c=this.parseChildren();O[n]=1===Object.keys(c).length?c[Ie]:new Cn([],c),this.consumeOptional("//")}return O}peekStartsWith(U){return this.remaining.startsWith(U)}consumeOptional(U){return!!this.peekStartsWith(U)&&(this.remaining=this.remaining.substring(U.length),!0)}capture(U){if(!this.consumeOptional(U))throw new h.vHH(4011,!1)}}function Do(P){return P.segments.length>0?new Cn([],{[Ie]:P}):P}function Io(P){const U={};for(const z of Object.keys(P.children)){const n=Io(P.children[z]);if(z===Ie&&0===n.segments.length&&n.hasChildren())for(const[c,m]of Object.entries(n.children))U[c]=m;else(n.segments.length>0||n.hasChildren())&&(U[z]=n)}return function Zi(P){if(1===P.numberOfChildren&&P.children[Ie]){const U=P.children[Ie];return new Cn(P.segments.concat(U.segments),U.children)}return P}(new Cn(P.segments,U))}function ao(P){return P instanceof sn}function xo(P){let U;const d=Do(function O(n){const c={};for(const v of n.children){const b=O(v);c[v.outlet]=b}const m=new Cn(n.url,c);return n===P&&(U=m),m}(P.root));return U??d}function qi(P,U,O,z){let d=P;for(;d.parent;)d=d.parent;if(0===U.length)return Yt(d,d,d,O,z);const n=function Qt(P){if("string"==typeof P[0]&&1===P.length&&"/"===P[0])return new Mt(!0,0,P);let U=0,O=!1;const z=P.reduce((d,n,c)=>{if("object"==typeof n&&null!=n){if(n.outlets){const m={};return Object.entries(n.outlets).forEach(([v,b])=>{m[v]="string"==typeof b?b.split("/"):b}),[...d,{outlets:m}]}if(n.segmentPath)return[...d,n.segmentPath]}return"string"!=typeof n?[...d,n]:0===c?(n.split("/").forEach((m,v)=>{0==v&&"."===m||(0==v&&""===m?O=!0:".."===m?U++:""!=m&&d.push(m))}),d):[...d,n]},[]);return new Mt(O,U,z)}(U);if(n.toRoot())return Yt(d,d,new Cn([],{}),O,z);const c=function It(P,U,O){if(P.isAbsolute)return new wn(U,!0,0);if(!O)return new wn(U,!1,NaN);if(null===O.parent)return new wn(O,!0,0);const z=Ci(P.commands[0])?0:1;return function Xn(P,U,O){let z=P,d=U,n=O;for(;n>d;){if(n-=d,z=z.parent,!z)throw new h.vHH(4005,!1);d=z.segments.length}return new wn(z,!1,d-n)}(O,O.segments.length-1+z,P.numberOfDoubleDots)}(n,d,P),m=c.processChildren?lr(c.segmentGroup,c.index,n.commands):Wn(c.segmentGroup,c.index,n.commands);return Yt(d,c.segmentGroup,m,O,z)}function Ci(P){return"object"==typeof P&&null!=P&&!P.outlets&&!P.segmentPath}function Kr(P){return"object"==typeof P&&null!=P&&P.outlets}function Yt(P,U,O,z,d){let c,n={};z&&Object.entries(z).forEach(([v,b])=>{n[v]=Array.isArray(b)?b.map(I=>`${I}`):`${b}`}),c=P===U?O:Tt(P,U,O);const m=Do(Io(c));return new sn(m,n,d)}function Tt(P,U,O){const z={};return Object.entries(P.children).forEach(([d,n])=>{z[d]=n===U?O:Tt(n,U,O)}),new Cn(P.segments,z)}class Mt{constructor(U,O,z){if(this.isAbsolute=U,this.numberOfDoubleDots=O,this.commands=z,U&&z.length>0&&Ci(z[0]))throw new h.vHH(4003,!1);const d=z.find(Kr);if(d&&d!==Xt(z))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wn{constructor(U,O,z){this.segmentGroup=U,this.processChildren=O,this.index=z}}function Wn(P,U,O){if(P||(P=new Cn([],{})),0===P.segments.length&&P.hasChildren())return lr(P,U,O);const z=function Je(P,U,O){let z=0,d=U;const n={match:!1,pathIndex:0,commandIndex:0};for(;d=O.length)return n;const c=P.segments[d],m=O[z];if(Kr(m))break;const v=`${m}`,b=z0&&void 0===v)break;if(v&&b&&"object"==typeof b&&void 0===b.outlets){if(!dt(v,b,c))return n;z+=2}else{if(!dt(v,{},c))return n;z++}d++}return{match:!0,pathIndex:d,commandIndex:z}}(P,U,O),d=O.slice(z.commandIndex);if(z.match&&z.pathIndexn!==Ie)&&P.children[Ie]&&1===P.numberOfChildren&&0===P.children[Ie].segments.length){const n=lr(P.children[Ie],U,O);return new Cn(P.segments,n.children)}return Object.entries(z).forEach(([n,c])=>{"string"==typeof c&&(c=[c]),null!==c&&(d[n]=Wn(P.children[n],U,c))}),Object.entries(P.children).forEach(([n,c])=>{void 0===z[n]&&(d[n]=c)}),new Cn(P.segments,d)}}function rt(P,U,O){const z=P.segments.slice(0,U);let d=0;for(;d{"string"==typeof z&&(z=[z]),null!==z&&(U[O]=rt(new Cn([],{}),0,z))}),U}function ut(P){const U={};return Object.entries(P).forEach(([O,z])=>U[O]=`${z}`),U}function dt(P,U,O){return P==O.path&&Hn(U,O.parameters)}const Lt="imperative";class gn{constructor(U,O){this.id=U,this.url=O}}class ti extends gn{constructor(U,O,z="imperative",d=null){super(U,O),this.type=0,this.navigationTrigger=z,this.restoredState=d}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class di extends gn{constructor(U,O,z){super(U,O),this.urlAfterRedirects=z,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Kn extends gn{constructor(U,O,z,d){super(U,O),this.reason=z,this.code=d,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xi extends gn{constructor(U,O,z,d){super(U,O),this.reason=z,this.code=d,this.type=16}}class J extends gn{constructor(U,O,z,d){super(U,O),this.error=z,this.target=d,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class be extends gn{constructor(U,O,z,d){super(U,O),this.urlAfterRedirects=z,this.state=d,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ft extends gn{constructor(U,O,z,d){super(U,O),this.urlAfterRedirects=z,this.state=d,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mt extends gn{constructor(U,O,z,d,n){super(U,O),this.urlAfterRedirects=z,this.state=d,this.shouldActivate=n,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class yn extends gn{constructor(U,O,z,d){super(U,O),this.urlAfterRedirects=z,this.state=d,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class jt extends gn{constructor(U,O,z,d){super(U,O),this.urlAfterRedirects=z,this.state=d,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Fn{constructor(U){this.route=U,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class $n{constructor(U){this.route=U,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Un{constructor(U){this.snapshot=U,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ln{constructor(U){this.snapshot=U,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ci{constructor(U){this.snapshot=U,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ri{constructor(U){this.snapshot=U,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Gi{constructor(U,O,z){this.routerEvent=U,this.position=O,this.anchor=z,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class or{}class ur{constructor(U){this.url=U}}class $e{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new H,this.attachRef=null}}let H=(()=>{class P{constructor(){this.contexts=new Map}onChildOutletCreated(O,z){const d=this.getOrCreateContext(O);d.outlet=z,this.contexts.set(O,d)}onChildOutletDestroyed(O){const z=this.getContext(O);z&&(z.outlet=null,z.attachRef=null)}onOutletDeactivated(){const O=this.contexts;return this.contexts=new Map,O}onOutletReAttached(O){this.contexts=O}getOrCreateContext(O){let z=this.getContext(O);return z||(z=new $e,this.contexts.set(O,z)),z}getContext(O){return this.contexts.get(O)||null}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();class Ze{constructor(U){this._root=U}get root(){return this._root.value}parent(U){const O=this.pathFromRoot(U);return O.length>1?O[O.length-2]:null}children(U){const O=Bt(U,this._root);return O?O.children.map(z=>z.value):[]}firstChild(U){const O=Bt(U,this._root);return O&&O.children.length>0?O.children[0].value:null}siblings(U){const O=Vi(U,this._root);return O.length<2?[]:O[O.length-2].children.map(d=>d.value).filter(d=>d!==U)}pathFromRoot(U){return Vi(U,this._root).map(O=>O.value)}}function Bt(P,U){if(P===U.value)return U;for(const O of U.children){const z=Bt(P,O);if(z)return z}return null}function Vi(P,U){if(P===U.value)return[U];for(const O of U.children){const z=Vi(P,O);if(z.length)return z.unshift(U),z}return[]}class Tr{constructor(U,O){this.value=U,this.children=O}toString(){return`TreeNode(${this.value})`}}function ji(P){const U={};return P&&P.children.forEach(O=>U[O.value.outlet]=O),U}class Ko extends Ze{constructor(U,O){super(U),this.snapshot=O,jo(this,U)}toString(){return this.snapshot.toString()}}function Mo(P,U){const O=function Ns(P,U){const c=new _r([],{},{},"",{},Ie,U,null,{});return new Uo("",new Tr(c,[]))}(0,U),z=new j.X([new $i("",{})]),d=new j.X({}),n=new j.X({}),c=new j.X({}),m=new j.X(""),v=new cr(z,d,c,m,n,Ie,U,O.root);return v.snapshot=O.root,new Ko(new Tr(v,[]),O)}class cr{constructor(U,O,z,d,n,c,m,v){this.urlSubject=U,this.paramsSubject=O,this.queryParamsSubject=z,this.fragmentSubject=d,this.dataSubject=n,this.outlet=c,this.component=m,this._futureSnapshot=v,this.title=this.dataSubject?.pipe((0,Ge.U)(b=>b[Ct]))??(0,a.of)(void 0),this.url=U,this.params=O,this.queryParams=z,this.fragment=d,this.data=n}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._paramMap=this.params.pipe((0,Ge.U)(U=>Rn(U)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Ge.U)(U=>Rn(U)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Bs(P,U,O="emptyOnly"){let z;const{routeConfig:d}=P;return z=null===U||"always"!==O&&""!==d?.path&&(U.component||U.routeConfig?.loadComponent)?{params:P.params,data:P.data,resolve:{...P.data,...P._resolvedData??{}}}:{params:{...U.params,...P.params},data:{...U.data,...P.data},resolve:{...P.data,...U.data,...d?.data,...P._resolvedData}},d&&zs(d)&&(z.resolve[Ct]=d.title),z}class _r{get title(){return this.data?.[Ct]}constructor(U,O,z,d,n,c,m,v,b){this.url=U,this.params=O,this.queryParams=z,this.fragment=d,this.data=n,this.outlet=c,this.component=m,this.routeConfig=v,this._resolve=b}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._paramMap=Rn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Rn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(z=>z.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Uo extends Ze{constructor(U,O){super(O),this.url=U,jo(this,O)}toString(){return Go(this._root)}}function jo(P,U){U.value._routerState=P,U.children.forEach(O=>jo(P,O))}function Go(P){const U=P.children.length>0?` { ${P.children.map(Go).join(", ")} } `:"";return`${P.value}${U}`}function Al(P){if(P.snapshot){const U=P.snapshot,O=P._futureSnapshot;P.snapshot=O,Hn(U.queryParams,O.queryParams)||P.queryParamsSubject.next(O.queryParams),U.fragment!==O.fragment&&P.fragmentSubject.next(O.fragment),Hn(U.params,O.params)||P.paramsSubject.next(O.params),function Ut(P,U){if(P.length!==U.length)return!1;for(let O=0;OHn(O.parameters,U[z].parameters))}(P.url,U.url);return O&&!(!P.parent!=!U.parent)&&(!P.parent||$a(P.parent,U.parent))}function zs(P){return"string"==typeof P.title||null===P.title}let lo=(()=>{class P{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ie,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.parentContexts=(0,h.f3M)(H),this.location=(0,h.f3M)(h.s_b),this.changeDetector=(0,h.f3M)(h.sBO),this.environmentInjector=(0,h.f3M)(h.lqb),this.inputBinder=(0,h.f3M)(fo,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(O){if(O.name){const{firstChange:z,previousValue:d}=O.name;if(z)return;this.isTrackedInParentContexts(d)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(d)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(O){return this.parentContexts.getContext(O)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const O=this.parentContexts.getContext(this.name);O?.route&&(O.attachRef?this.attach(O.attachRef,O.route):this.activateWith(O.route,O.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,!1);this.location.detach();const O=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(O.instance),O}attach(O,z){this.activated=O,this._activatedRoute=z,this.location.insert(O.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(O.instance)}deactivate(){if(this.activated){const O=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(O)}}activateWith(O,z){if(this.isActivated)throw new h.vHH(4013,!1);this._activatedRoute=O;const d=this.location,c=O.snapshot.component,m=this.parentContexts.getOrCreateContext(this.name).children,v=new Aa(O,m,d.injector);this.activated=d.createComponent(c,{index:d.length,injector:v,environmentInjector:z??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275dir=h.lG2({type:P,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[h.TTD]})}return P})();class Aa{constructor(U,O,z){this.route=U,this.childContexts=O,this.parent=z}get(U,O){return U===cr?this.route:U===H?this.childContexts:this.parent.get(U,O)}}const fo=new h.OlP("");let po=(()=>{class P{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(O){this.unsubscribeFromRouteData(O),this.subscribeToRouteData(O)}unsubscribeFromRouteData(O){this.outletDataSubscriptions.get(O)?.unsubscribe(),this.outletDataSubscriptions.delete(O)}subscribeToRouteData(O){const{activatedRoute:z}=O,d=(0,K.a)([z.queryParams,z.params,z.data]).pipe((0,lt.w)(([n,c,m],v)=>(m={...n,...c,...m},0===v?(0,a.of)(m):Promise.resolve(m)))).subscribe(n=>{if(!O.isActivated||!O.activatedComponentRef||O.activatedRoute!==z||null===z.component)return void this.unsubscribeFromRouteData(O);const c=(0,h.qFp)(z.component);if(c)for(const{templateName:m}of c.inputs)O.activatedComponentRef.setInput(m,n[m]);else this.unsubscribeFromRouteData(O)});this.outletDataSubscriptions.set(O,d)}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac})}return P})();function Lo(P,U,O){if(O&&P.shouldReuseRoute(U.value,O.value.snapshot)){const z=O.value;z._futureSnapshot=U.value;const d=function ns(P,U,O){return U.children.map(z=>{for(const d of O.children)if(P.shouldReuseRoute(z.value,d.value.snapshot))return Lo(P,z,d);return Lo(P,z)})}(P,U,O);return new Tr(z,d)}{if(P.shouldAttach(U.value)){const n=P.retrieve(U.value);if(null!==n){const c=n.route;return c.value._futureSnapshot=U.value,c.children=U.children.map(m=>Lo(P,m)),c}}const z=function ha(P){return new cr(new j.X(P.url),new j.X(P.params),new j.X(P.queryParams),new j.X(P.fragment),new j.X(P.data),P.outlet,P.component,P)}(U.value),d=U.children.map(n=>Lo(P,n));return new Tr(z,d)}}const ws="ngNavigationCancelingError";function na(P,U){const{redirectTo:O,navigationBehaviorOptions:z}=ao(U)?{redirectTo:U,navigationBehaviorOptions:void 0}:U,d=Us(!1,0,U);return d.url=O,d.navigationBehaviorOptions=z,d}function Us(P,U,O){const z=new Error("NavigationCancelingError: "+(P||""));return z[ws]=!0,z.cancellationCode=U,O&&(z.url=O),z}function fl(P){return P&&P[ws]}let cs=(()=>{class P{static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275cmp=h.Xpm({type:P,selectors:[["ng-component"]],standalone:!0,features:[h.jDz],decls:1,vars:0,template:function(z,d){1&z&&h._UZ(0,"router-outlet")},dependencies:[lo],encapsulation:2})}return P})();function js(P){const U=P.children&&P.children.map(js),O=U?{...P,children:U}:{...P};return!O.component&&!O.loadComponent&&(U||O.loadChildren)&&O.outlet&&O.outlet!==Ie&&(O.component=cs),O}function bo(P){return P.outlet||Ie}function ia(P){if(!P)return null;if(P.routeConfig?._injector)return P.routeConfig._injector;for(let U=P.parent;U;U=U.parent){const O=U.routeConfig;if(O?._loadedInjector)return O._loadedInjector;if(O?._injector)return O._injector}return null}class Rl{constructor(U,O,z,d,n){this.routeReuseStrategy=U,this.futureState=O,this.currState=z,this.forwardEvent=d,this.inputBindingEnabled=n}activate(U){const O=this.futureState._root,z=this.currState?this.currState._root:null;this.deactivateChildRoutes(O,z,U),Al(this.futureState.root),this.activateChildRoutes(O,z,U)}deactivateChildRoutes(U,O,z){const d=ji(O);U.children.forEach(n=>{const c=n.value.outlet;this.deactivateRoutes(n,d[c],z),delete d[c]}),Object.values(d).forEach(n=>{this.deactivateRouteAndItsChildren(n,z)})}deactivateRoutes(U,O,z){const d=U.value,n=O?O.value:null;if(d===n)if(d.component){const c=z.getContext(d.outlet);c&&this.deactivateChildRoutes(U,O,c.children)}else this.deactivateChildRoutes(U,O,z);else n&&this.deactivateRouteAndItsChildren(O,z)}deactivateRouteAndItsChildren(U,O){U.value.component&&this.routeReuseStrategy.shouldDetach(U.value.snapshot)?this.detachAndStoreRouteSubtree(U,O):this.deactivateRouteAndOutlet(U,O)}detachAndStoreRouteSubtree(U,O){const z=O.getContext(U.value.outlet),d=z&&U.value.component?z.children:O,n=ji(U);for(const c of Object.keys(n))this.deactivateRouteAndItsChildren(n[c],d);if(z&&z.outlet){const c=z.outlet.detach(),m=z.children.onOutletDeactivated();this.routeReuseStrategy.store(U.value.snapshot,{componentRef:c,route:U,contexts:m})}}deactivateRouteAndOutlet(U,O){const z=O.getContext(U.value.outlet),d=z&&U.value.component?z.children:O,n=ji(U);for(const c of Object.keys(n))this.deactivateRouteAndItsChildren(n[c],d);z&&(z.outlet&&(z.outlet.deactivate(),z.children.onOutletDeactivated()),z.attachRef=null,z.route=null)}activateChildRoutes(U,O,z){const d=ji(O);U.children.forEach(n=>{this.activateRoutes(n,d[n.value.outlet],z),this.forwardEvent(new Ri(n.value.snapshot))}),U.children.length&&this.forwardEvent(new Ln(U.value.snapshot))}activateRoutes(U,O,z){const d=U.value,n=O?O.value:null;if(Al(d),d===n)if(d.component){const c=z.getOrCreateContext(d.outlet);this.activateChildRoutes(U,O,c.children)}else this.activateChildRoutes(U,O,z);else if(d.component){const c=z.getOrCreateContext(d.outlet);if(this.routeReuseStrategy.shouldAttach(d.snapshot)){const m=this.routeReuseStrategy.retrieve(d.snapshot);this.routeReuseStrategy.store(d.snapshot,null),c.children.onOutletReAttached(m.contexts),c.attachRef=m.componentRef,c.route=m.route.value,c.outlet&&c.outlet.attach(m.componentRef,m.route.value),Al(m.route.value),this.activateChildRoutes(U,null,c.children)}else{const m=ia(d.snapshot);c.attachRef=null,c.route=d,c.injector=m,c.outlet&&c.outlet.activateWith(d,c.injector),this.activateChildRoutes(U,null,c.children)}}else this.activateChildRoutes(U,null,z)}}class qa{constructor(U){this.path=U,this.route=this.path[this.path.length-1]}}class ma{constructor(U,O){this.component=U,this.route=O}}function Ya(P,U,O){const z=P._root;return Br(z,U?U._root:null,O,[z.value])}function _i(P,U){const O=Symbol(),z=U.get(P,O);return z===O?"function"!=typeof P||(0,h.Z0I)(P)?U.get(P):P:z}function Br(P,U,O,z,d={canDeactivateChecks:[],canActivateChecks:[]}){const n=ji(U);return P.children.forEach(c=>{(function Ao(P,U,O,z,d={canDeactivateChecks:[],canActivateChecks:[]}){const n=P.value,c=U?U.value:null,m=O?O.getContext(P.value.outlet):null;if(c&&n.routeConfig===c.routeConfig){const v=function le(P,U,O){if("function"==typeof O)return O(P,U);switch(O){case"pathParamsChange":return!ge(P.url,U.url);case"pathParamsOrQueryParamsChange":return!ge(P.url,U.url)||!Hn(P.queryParams,U.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$a(P,U)||!Hn(P.queryParams,U.queryParams);default:return!$a(P,U)}}(c,n,n.routeConfig.runGuardsAndResolvers);v?d.canActivateChecks.push(new qa(z)):(n.data=c.data,n._resolvedData=c._resolvedData),Br(P,U,n.component?m?m.children:null:O,z,d),v&&m&&m.outlet&&m.outlet.isActivated&&d.canDeactivateChecks.push(new ma(m.outlet.component,c))}else c&&ue(U,m,d),d.canActivateChecks.push(new qa(z)),Br(P,null,n.component?m?m.children:null:O,z,d)})(c,n[c.value.outlet],O,z.concat([c.value]),d),delete n[c.value.outlet]}),Object.entries(n).forEach(([c,m])=>ue(m,O.getContext(c),d)),d}function ue(P,U,O){const z=ji(P),d=P.value;Object.entries(z).forEach(([n,c])=>{ue(c,d.component?U?U.children.getContext(n):null:U,O)}),O.canDeactivateChecks.push(new ma(d.component&&U&&U.outlet&&U.outlet.isActivated?U.outlet.component:null,d))}function W(P){return"function"==typeof P}function us(P){return P instanceof oe||"EmptyError"===P?.name}const wo=Symbol("INITIAL_VALUE");function Ho(){return(0,lt.w)(P=>(0,K.a)(P.map(U=>U.pipe((0,ne.q)(1),function xe(...P){const U=(0,Ee.yG)(P);return(0,Ce.e)((O,z)=>{(U?(0,_e.z)(P,O,U):(0,_e.z)(P,O)).subscribe(z)})}(wo)))).pipe((0,Ge.U)(U=>{for(const O of U)if(!0!==O){if(O===wo)return wo;if(!1===O||O instanceof sn)return O}return!0}),(0,je.h)(U=>U!==wo),(0,ne.q)(1)))}function Ja(P){return(0,ee.z)(ke(U=>{if(ao(U))throw na(0,U)}),(0,Ge.U)(U=>!0===U))}class is{constructor(U){this.segmentGroup=U||null}}class ga extends Error{constructor(U){super(),this.urlTree=U}}function sa(P){return De(new is(P))}class er{constructor(U,O){this.urlSerializer=U,this.urlTree=O}noMatchError(U){return new h.vHH(4002,!1)}lineralizeSegments(U,O){let z=[],d=O.root;for(;;){if(z=z.concat(d.segments),0===d.numberOfChildren)return(0,a.of)(z);if(d.numberOfChildren>1||!d.children[Ie])return De(new h.vHH(4e3,!1));d=d.children[Ie]}}applyRedirectCommands(U,O,z){const d=this.applyRedirectCreateUrlTree(O,this.urlSerializer.parse(O),U,z);if(O.startsWith("/"))throw new ga(d);return d}applyRedirectCreateUrlTree(U,O,z,d){const n=this.createSegmentGroup(U,O.root,z,d);return new sn(n,this.createQueryParams(O.queryParams,this.urlTree.queryParams),O.fragment)}createQueryParams(U,O){const z={};return Object.entries(U).forEach(([d,n])=>{if("string"==typeof n&&n.startsWith(":")){const m=n.substring(1);z[d]=O[m]}else z[d]=n}),z}createSegmentGroup(U,O,z,d){const n=this.createSegments(U,O.segments,z,d);let c={};return Object.entries(O.children).forEach(([m,v])=>{c[m]=this.createSegmentGroup(U,v,z,d)}),new Cn(n,c)}createSegments(U,O,z,d){return O.map(n=>n.path.startsWith(":")?this.findPosParam(U,n,d):this.findOrReturn(n,z))}findPosParam(U,O,z){const d=z[O.path.substring(1)];if(!d)throw new h.vHH(4001,!1);return d}findOrReturn(U,O){let z=0;for(const d of O){if(d.path===U.path)return O.splice(z),d;z++}return U}}const Ka={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ml(P,U,O,z,d){const n=Wo(P,U,O);return n.matched?(z=function vr(P,U){return P.providers&&!P._injector&&(P._injector=(0,h.MMx)(P.providers,U,`Route: ${P.path}`)),P._injector??U}(U,z),function oa(P,U,O,z){const d=U.canMatch;if(!d||0===d.length)return(0,a.of)(!0);const n=d.map(c=>{const m=_i(c,P);return Tn(function ai(P){return P&&W(P.canMatch)}(m)?m.canMatch(U,O):P.runInContext(()=>m(U,O)))});return(0,a.of)(n).pipe(Ho(),Ja())}(z,U,O).pipe((0,Ge.U)(c=>!0===c?n:{...Ka}))):(0,a.of)(n)}function Wo(P,U,O){if(""===U.path)return"full"===U.pathMatch&&(P.hasChildren()||O.length>0)?{...Ka}:{matched:!0,consumedSegments:[],remainingSegments:O,parameters:{},positionalParamSegments:{}};const d=(U.matcher||Vn)(O,P,U);if(!d)return{...Ka};const n={};Object.entries(d.posParams??{}).forEach(([m,v])=>{n[m]=v.path});const c=d.consumed.length>0?{...n,...d.consumed[d.consumed.length-1].parameters}:n;return{matched:!0,consumedSegments:d.consumed,remainingSegments:O.slice(d.consumed.length),parameters:c,positionalParamSegments:d.posParams??{}}}function gl(P,U,O,z){return O.length>0&&function Ts(P,U,O){return O.some(z=>go(P,U,z)&&bo(z)!==Ie)}(P,O,z)?{segmentGroup:new Cn(U,mo(z,new Cn(O,P.children))),slicedSegments:[]}:0===O.length&&function ko(P,U,O){return O.some(z=>go(P,U,z))}(P,O,z)?{segmentGroup:new Cn(P.segments,aa(P,0,O,z,P.children)),slicedSegments:O}:{segmentGroup:new Cn(P.segments,P.children),slicedSegments:O}}function aa(P,U,O,z,d){const n={};for(const c of z)if(go(P,O,c)&&!d[bo(c)]){const m=new Cn([],{});n[bo(c)]=m}return{...d,...n}}function mo(P,U){const O={};O[Ie]=U;for(const z of P)if(""===z.path&&bo(z)!==Ie){const d=new Cn([],{});O[bo(z)]=d}return O}function go(P,U,O){return(!(P.hasChildren()||U.length>0)||"full"!==O.pathMatch)&&""===O.path}class ec{}class yl{constructor(U,O,z,d,n,c,m){this.injector=U,this.configLoader=O,this.rootComponentType=z,this.config=d,this.urlTree=n,this.paramsInheritanceStrategy=c,this.urlSerializer=m,this.applyRedirects=new er(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(U){return new h.vHH(4002,!1)}recognize(){const U=gl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(U).pipe((0,Ge.U)(O=>{const z=new _r([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ie,this.rootComponentType,null,{}),d=new Tr(z,O),n=new Uo("",d),c=function Ro(P,U,O=null,z=null){return qi(xo(P),U,O,z)}(z,[],this.urlTree.queryParams,this.urlTree.fragment);return c.queryParams=this.urlTree.queryParams,n.url=this.urlSerializer.serialize(c),this.inheritParamsAndData(n._root,null),{state:n,tree:c}}))}match(U){return this.processSegmentGroup(this.injector,this.config,U,Ie).pipe(Oe(z=>{if(z instanceof ga)return this.urlTree=z.urlTree,this.match(z.urlTree.root);throw z instanceof is?this.noMatchError(z):z}))}inheritParamsAndData(U,O){const z=U.value,d=Bs(z,O,this.paramsInheritanceStrategy);z.params=Object.freeze(d.params),z.data=Object.freeze(d.data),U.children.forEach(n=>this.inheritParamsAndData(n,z))}processSegmentGroup(U,O,z,d){return 0===z.segments.length&&z.hasChildren()?this.processChildren(U,O,z):this.processSegment(U,O,z,z.segments,d,!0).pipe((0,Ge.U)(n=>n instanceof Tr?[n]:[]))}processChildren(U,O,z){const d=[];for(const n of Object.keys(z.children))"primary"===n?d.unshift(n):d.push(n);return(0,X.D)(d).pipe((0,$t.b)(n=>{const c=z.children[n],m=function Sa(P,U){const O=P.filter(z=>bo(z)===U);return O.push(...P.filter(z=>bo(z)!==U)),O}(O,n);return this.processSegmentGroup(U,m,c,n)}),function it(P,U){return(0,Ce.e)(function ie(P,U,O,z,d){return(n,c)=>{let m=O,v=U,b=0;n.subscribe((0,de.x)(c,I=>{const M=b++;v=m?P(v,I,M):(m=!0,I),z&&c.next(v)},d&&(()=>{m&&c.next(v),c.complete()})))}}(P,U,arguments.length>=2,!0))}((n,c)=>(n.push(...c),n)),Ve(null),function Kt(P,U){const O=arguments.length>=2;return z=>z.pipe(P?(0,je.h)((d,n)=>P(d,n,z)):cn.y,_t(1),O?Ve(U):Xe(()=>new oe))}(),(0,Se.z)(n=>{if(null===n)return sa(z);const c=Vs(n);return function Jc(P){P.sort((U,O)=>U.value.outlet===Ie?-1:O.value.outlet===Ie?1:U.value.outlet.localeCompare(O.value.outlet))}(c),(0,a.of)(c)}))}processSegment(U,O,z,d,n,c){return(0,X.D)(O).pipe((0,$t.b)(m=>this.processSegmentAgainstRoute(m._injector??U,O,m,z,d,n,c).pipe(Oe(v=>{if(v instanceof is)return(0,a.of)(null);throw v}))),xn(m=>!!m),Oe(m=>{if(us(m))return function Xa(P,U,O){return 0===U.length&&!P.children[O]}(z,d,n)?(0,a.of)(new ec):sa(z);throw m}))}processSegmentAgainstRoute(U,O,z,d,n,c,m){return function bc(P,U,O,z){return!!(bo(P)===z||z!==Ie&&go(U,O,P))&&("**"===P.path||Wo(U,P,O).matched)}(z,d,n,c)?void 0===z.redirectTo?this.matchSegmentAgainstRoute(U,d,z,n,c):this.allowRedirects&&m?this.expandSegmentAgainstRouteUsingRedirect(U,d,O,z,n,c):sa(d):sa(d)}expandSegmentAgainstRouteUsingRedirect(U,O,z,d,n,c){const{matched:m,consumedSegments:v,positionalParamSegments:b,remainingSegments:I}="**"===d.path?Me(n):Wo(O,d,n);if(!m)return sa(O);d.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const M=this.applyRedirects.applyRedirectCommands(v,d.redirectTo,b);return this.applyRedirects.lineralizeSegments(d,M).pipe((0,Se.z)(N=>this.processSegment(U,z,O,N.concat(I),c,!1)))}matchSegmentAgainstRoute(U,O,z,d,n){let c;return"**"===z.path?(c=(0,a.of)(Me(d)),O.children={}):c=ml(O,z,d,U),c.pipe((0,lt.w)(m=>m.matched?this.getChildConfig(U=z._injector??U,z,d).pipe((0,lt.w)(({routes:v})=>{const b=z._loadedInjector??U,{consumedSegments:I,remainingSegments:M,parameters:N}=m,Z=new _r(I,N,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function rs(P){return P.data||{}}(z),bo(z),z.component??z._loadedComponent??null,z,function F(P){return P.resolve||{}}(z)),{segmentGroup:$,slicedSegments:re}=gl(O,I,M,v);if(0===re.length&&$.hasChildren())return this.processChildren(b,v,$).pipe((0,Ge.U)(Fe=>null===Fe?null:new Tr(Z,Fe)));if(0===v.length&&0===re.length)return(0,a.of)(new Tr(Z,[]));const Re=bo(z)===n;return this.processSegment(b,v,$,re,Re?Ie:n,!0).pipe((0,Ge.U)(Fe=>new Tr(Z,Fe instanceof Tr?[Fe]:[])))})):sa(O)))}getChildConfig(U,O,z){return O.children?(0,a.of)({routes:O.children,injector:U}):O.loadChildren?void 0!==O._loadedRoutes?(0,a.of)({routes:O._loadedRoutes,injector:O._loadedInjector}):function Xr(P,U,O,z){const d=U.canLoad;if(void 0===d||0===d.length)return(0,a.of)(!0);const n=d.map(c=>{const m=_i(c,P);return Tn(function zt(P){return P&&W(P.canLoad)}(m)?m.canLoad(U,O):P.runInContext(()=>m(U,O)))});return(0,a.of)(n).pipe(Ho(),Ja())}(U,O,z).pipe((0,Se.z)(d=>d?this.configLoader.loadChildren(U,O).pipe(ke(n=>{O._loadedRoutes=n.routes,O._loadedInjector=n.injector})):function _a(P){return De(Us(!1,3))}())):(0,a.of)({routes:[],injector:U})}}function tc(P){const U=P.value.routeConfig;return U&&""===U.path}function Vs(P){const U=[],O=new Set;for(const z of P){if(!tc(z)){U.push(z);continue}const d=U.find(n=>z.value.routeConfig===n.value.routeConfig);void 0!==d?(d.children.push(...z.children),O.add(d)):U.push(z)}for(const z of O){const d=Vs(z.children);U.push(new Tr(z.value,d))}return U.filter(z=>!O.has(z))}function Me(P){return{matched:!0,parameters:P.length>0?Xt(P).parameters:{},consumedSegments:P,remainingSegments:[],positionalParamSegments:{}}}function fe(P,U){return(0,Se.z)(O=>{const{targetSnapshot:z,guards:{canActivateChecks:d}}=O;if(!d.length)return(0,a.of)(O);const n=d.map(b=>b.route),c=new Set(n),m=xt(n[0].parent).slice(1);let v=0;return(0,X.D)(m).pipe((0,$t.b)(b=>c.has(b)?function vn(P,U,O,z){const d=P.routeConfig,n=P._resolve;return void 0!==d?.title&&!zs(d)&&(n[Ct]=d.title),function bn(P,U,O,z){const d=qe(P);if(0===d.length)return(0,a.of)({});const n={};return(0,X.D)(d).pipe((0,Se.z)(c=>function Ti(P,U,O,z){const d=ia(U)??z,n=_i(P,d);return Tn(n.resolve?n.resolve(U,O):d.runInContext(()=>n(U,O)))}(P[c],U,O,z).pipe(xn(),ke(m=>{n[c]=m}))),_t(1),function Mn(P){return(0,Ge.U)(()=>P)}(n),Oe(c=>us(c)?me.E:De(c)))}(n,P,U,z).pipe((0,Ge.U)(c=>(P._resolvedData=c,P.data=Bs(P,P.parent,O).resolve,null)))}(b,z,P,U):(b.data=Bs(b,b.parent,P).resolve,(0,a.of)(void 0))),ke(()=>v++),_t(1),(0,Se.z)(b=>v===m.length?(0,a.of)(O):me.E))})}function xt(P){const U=P.children.map(O=>xt(O)).flat();return[P,...U]}function Ur(P){return(0,lt.w)(U=>{const O=P(U);return O?(0,X.D)(O).pipe((0,Ge.U)(()=>U)):(0,a.of)(U)})}let Lr=(()=>{class P{buildTitle(O){let z,d=O.root;for(;void 0!==d;)z=this.getResolvedTitleForRoute(d)??z,d=d.children.find(n=>n.outlet===Ie);return z}getResolvedTitleForRoute(O){return O.data[Ct]}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:()=>(0,h.f3M)(Sr),providedIn:"root"})}return P})(),Sr=(()=>{class P extends Lr{constructor(O){super(),this.title=O}updateTitle(O){const z=this.buildTitle(O);void 0!==z&&this.title.setTitle(z)}static#e=this.\u0275fac=function(z){return new(z||P)(h.LFG(Dt.Dx))};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const sr=new h.OlP("",{providedIn:"root",factory:()=>({})}),Pr=new h.OlP("ROUTES");let hr=(()=>{class P{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,h.f3M)(h.Sil)}loadComponent(O){if(this.componentLoaders.get(O))return this.componentLoaders.get(O);if(O._loadedComponent)return(0,a.of)(O._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(O);const z=Tn(O.loadComponent()).pipe((0,Ge.U)(qo),ke(n=>{this.onLoadEndListener&&this.onLoadEndListener(O),O._loadedComponent=n}),(0,fn.x)(()=>{this.componentLoaders.delete(O)})),d=new Be(z,()=>new Ne.x).pipe(Pe());return this.componentLoaders.set(O,d),d}loadChildren(O,z){if(this.childrenLoaders.get(z))return this.childrenLoaders.get(z);if(z._loadedRoutes)return(0,a.of)({routes:z._loadedRoutes,injector:z._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(z);const n=function So(P,U,O,z){return Tn(P.loadChildren()).pipe((0,Ge.U)(qo),(0,Se.z)(d=>d instanceof h.YKP||Array.isArray(d)?(0,a.of)(d):(0,X.D)(U.compileModuleAsync(d))),(0,Ge.U)(d=>{z&&z(P);let n,c,m=!1;return Array.isArray(d)?(c=d,!0):(n=d.create(O).injector,c=n.get(Pr,[],{optional:!0,self:!0}).flat()),{routes:c.map(js),injector:n}}))}(z,this.compiler,O,this.onLoadEndListener).pipe((0,fn.x)(()=>{this.childrenLoaders.delete(z)})),c=new Be(n,()=>new Ne.x).pipe(Pe());return this.childrenLoaders.set(z,c),c}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function qo(P){return function $s(P){return P&&"object"==typeof P&&"default"in P}(P)?P.default:P}let hs=(()=>{class P{static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:()=>(0,h.f3M)($o),providedIn:"root"})}return P})(),$o=(()=>{class P{shouldProcessUrl(O){return!0}extract(O){return O}merge(O,z){return O}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const fs=new h.OlP(""),Yo=new h.OlP("");function Zs(P,U,O){const z=P.get(Yo),d=P.get(Ae.K0);return P.get(h.R0b).runOutsideAngular(()=>{if(!d.startViewTransition||z.skipNextTransition)return z.skipNextTransition=!1,Promise.resolve();let n;const c=new Promise(b=>{n=b}),m=d.startViewTransition(()=>(n(),function el(P){return new Promise(U=>{(0,h.T8G)(U,{injector:P})})}(P))),{onViewTransitionCreated:v}=z;return v&&(0,h.r_H)(P,()=>v({transition:m,from:U,to:O})),c})}let fi=(()=>{class P{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ne.x,this.transitionAbortSubject=new Ne.x,this.configLoader=(0,h.f3M)(hr),this.environmentInjector=(0,h.f3M)(h.lqb),this.urlSerializer=(0,h.f3M)(tt),this.rootContexts=(0,h.f3M)(H),this.location=(0,h.f3M)(Ae.Ye),this.inputBindingEnabled=null!==(0,h.f3M)(fo,{optional:!0}),this.titleStrategy=(0,h.f3M)(Lr),this.options=(0,h.f3M)(sr,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,h.f3M)(hs),this.createViewTransition=(0,h.f3M)(fs,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,a.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=d=>this.events.next(new $n(d)),this.configLoader.onLoadStartListener=d=>this.events.next(new Fn(d))}complete(){this.transitions?.complete()}handleNavigationRequest(O){const z=++this.navigationId;this.transitions?.next({...this.transitions.value,...O,id:z})}setupNavigations(O,z,d){return this.transitions=new j.X({id:0,currentUrlTree:z,currentRawUrl:z,extractedUrl:this.urlHandlingStrategy.extract(z),urlAfterRedirects:this.urlHandlingStrategy.extract(z),rawUrl:z,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Lt,restoredState:null,currentSnapshot:d.snapshot,targetSnapshot:null,currentRouterState:d,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,je.h)(n=>0!==n.id),(0,Ge.U)(n=>({...n,extractedUrl:this.urlHandlingStrategy.extract(n.rawUrl)})),(0,lt.w)(n=>{this.currentTransition=n;let c=!1,m=!1;return(0,a.of)(n).pipe(ke(v=>{this.currentNavigation={id:v.id,initialUrl:v.rawUrl,extractedUrl:v.extractedUrl,trigger:v.source,extras:v.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,lt.w)(v=>{const b=!O.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!b&&"reload"!==(v.extras.onSameUrlNavigation??O.onSameUrlNavigation)){const M="";return this.events.next(new Xi(v.id,this.urlSerializer.serialize(v.rawUrl),M,0)),v.resolve(null),me.E}if(this.urlHandlingStrategy.shouldProcessUrl(v.rawUrl))return(0,a.of)(v).pipe((0,lt.w)(M=>{const N=this.transitions?.getValue();return this.events.next(new ti(M.id,this.urlSerializer.serialize(M.extractedUrl),M.source,M.restoredState)),N!==this.transitions?.getValue()?me.E:Promise.resolve(M)}),function q(P,U,O,z,d,n){return(0,Se.z)(c=>function Ds(P,U,O,z,d,n,c="emptyOnly"){return new yl(P,U,O,z,d,c,n).recognize()}(P,U,O,z,c.extractedUrl,d,n).pipe((0,Ge.U)(({state:m,tree:v})=>({...c,targetSnapshot:m,urlAfterRedirects:v}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,O.config,this.urlSerializer,this.paramsInheritanceStrategy),ke(M=>{n.targetSnapshot=M.targetSnapshot,n.urlAfterRedirects=M.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:M.urlAfterRedirects};const N=new be(M.id,this.urlSerializer.serialize(M.extractedUrl),this.urlSerializer.serialize(M.urlAfterRedirects),M.targetSnapshot);this.events.next(N)}));if(b&&this.urlHandlingStrategy.shouldProcessUrl(v.currentRawUrl)){const{id:M,extractedUrl:N,source:Z,restoredState:$,extras:re}=v,Re=new ti(M,this.urlSerializer.serialize(N),Z,$);this.events.next(Re);const Fe=Mo(0,this.rootComponentType).snapshot;return this.currentTransition=n={...v,targetSnapshot:Fe,urlAfterRedirects:N,extras:{...re,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=N,(0,a.of)(n)}{const M="";return this.events.next(new Xi(v.id,this.urlSerializer.serialize(v.extractedUrl),M,1)),v.resolve(null),me.E}}),ke(v=>{const b=new ft(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot);this.events.next(b)}),(0,Ge.U)(v=>(this.currentTransition=n={...v,guards:Ya(v.targetSnapshot,v.currentSnapshot,this.rootContexts)},n)),function ra(P,U){return(0,Se.z)(O=>{const{targetSnapshot:z,currentSnapshot:d,guards:{canActivateChecks:n,canDeactivateChecks:c}}=O;return 0===c.length&&0===n.length?(0,a.of)({...O,guardsResult:!0}):function Ar(P,U,O,z){return(0,X.D)(P).pipe((0,Se.z)(d=>function ds(P,U,O,z,d){const n=U&&U.routeConfig?U.routeConfig.canDeactivate:null;if(!n||0===n.length)return(0,a.of)(!0);const c=n.map(m=>{const v=ia(U)??d,b=_i(m,v);return Tn(function wr(P){return P&&W(P.canDeactivate)}(b)?b.canDeactivate(P,U,O,z):v.runInContext(()=>b(P,U,O,z))).pipe(xn())});return(0,a.of)(c).pipe(Ho())}(d.component,d.route,O,U,z)),xn(d=>!0!==d,!0))}(c,z,d,P).pipe((0,Se.z)(m=>m&&function He(P){return"boolean"==typeof P}(m)?function Vo(P,U,O,z){return(0,X.D)(U).pipe((0,$t.b)(d=>(0,_e.z)(function Yi(P,U){return null!==P&&U&&U(new Un(P)),(0,a.of)(!0)}(d.route.parent,z),function Cs(P,U){return null!==P&&U&&U(new ci(P)),(0,a.of)(!0)}(d.route,z),function Pa(P,U,O){const z=U[U.length-1],n=U.slice(0,U.length-1).reverse().map(c=>function pl(P){const U=P.routeConfig?P.routeConfig.canActivateChild:null;return U&&0!==U.length?{node:P,guards:U}:null}(c)).filter(c=>null!==c).map(c=>(0,Le.P)(()=>{const m=c.guards.map(v=>{const b=ia(c.node)??O,I=_i(v,b);return Tn(function dr(P){return P&&W(P.canActivateChild)}(I)?I.canActivateChild(z,P):b.runInContext(()=>I(z,P))).pipe(xn())});return(0,a.of)(m).pipe(Ho())}));return(0,a.of)(n).pipe(Ho())}(P,d.path,O),function Qo(P,U,O){const z=U.routeConfig?U.routeConfig.canActivate:null;if(!z||0===z.length)return(0,a.of)(!0);const d=z.map(n=>(0,Le.P)(()=>{const c=ia(U)??O,m=_i(n,c);return Tn(function vi(P){return P&&W(P.canActivate)}(m)?m.canActivate(U,P):c.runInContext(()=>m(U,P))).pipe(xn())}));return(0,a.of)(d).pipe(Ho())}(P,d.route,O))),xn(d=>!0!==d,!0))}(z,n,P,U):(0,a.of)(m)),(0,Ge.U)(m=>({...O,guardsResult:m})))})}(this.environmentInjector,v=>this.events.next(v)),ke(v=>{if(n.guardsResult=v.guardsResult,ao(v.guardsResult))throw na(0,v.guardsResult);const b=new mt(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects),v.targetSnapshot,!!v.guardsResult);this.events.next(b)}),(0,je.h)(v=>!!v.guardsResult||(this.cancelNavigationTransition(v,"",3),!1)),Ur(v=>{if(v.guards.canActivateChecks.length)return(0,a.of)(v).pipe(ke(b=>{const I=new yn(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects),b.targetSnapshot);this.events.next(I)}),(0,lt.w)(b=>{let I=!1;return(0,a.of)(b).pipe(fe(this.paramsInheritanceStrategy,this.environmentInjector),ke({next:()=>I=!0,complete:()=>{I||this.cancelNavigationTransition(b,"",2)}}))}),ke(b=>{const I=new jt(b.id,this.urlSerializer.serialize(b.extractedUrl),this.urlSerializer.serialize(b.urlAfterRedirects),b.targetSnapshot);this.events.next(I)}))}),Ur(v=>{const b=I=>{const M=[];I.routeConfig?.loadComponent&&!I.routeConfig._loadedComponent&&M.push(this.configLoader.loadComponent(I.routeConfig).pipe(ke(N=>{I.component=N}),(0,Ge.U)(()=>{})));for(const N of I.children)M.push(...b(N));return M};return(0,K.a)(b(v.targetSnapshot.root)).pipe(Ve(),(0,ne.q)(1))}),Ur(()=>this.afterPreactivation()),(0,lt.w)(()=>{const{currentSnapshot:v,targetSnapshot:b}=n,I=this.createViewTransition?.(this.environmentInjector,v.root,b.root);return I?(0,X.D)(I).pipe((0,Ge.U)(()=>n)):(0,a.of)(n)}),(0,Ge.U)(v=>{const b=function mr(P,U,O){const z=Lo(P,U._root,O?O._root:void 0);return new Ko(z,U)}(O.routeReuseStrategy,v.targetSnapshot,v.currentRouterState);return this.currentTransition=n={...v,targetRouterState:b},this.currentNavigation.targetRouterState=b,n}),ke(()=>{this.events.next(new or)}),((P,U,O,z)=>(0,Ge.U)(d=>(new Rl(U,d.targetRouterState,d.currentRouterState,O,z).activate(P),d)))(this.rootContexts,O.routeReuseStrategy,v=>this.events.next(v),this.inputBindingEnabled),(0,ne.q)(1),ke({next:v=>{c=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new di(v.id,this.urlSerializer.serialize(v.extractedUrl),this.urlSerializer.serialize(v.urlAfterRedirects))),this.titleStrategy?.updateTitle(v.targetRouterState.snapshot),v.resolve(!0)},complete:()=>{c=!0}}),function li(P){return(0,Ce.e)((U,O)=>{(0,pe.Xf)(P).subscribe((0,de.x)(O,()=>O.complete(),qn.Z)),!O.closed&&U.subscribe(O)})}(this.transitionAbortSubject.pipe(ke(v=>{throw v}))),(0,fn.x)(()=>{c||m||this.cancelNavigationTransition(n,"",1),this.currentNavigation?.id===n.id&&(this.currentNavigation=null)}),Oe(v=>{if(m=!0,fl(v))this.events.next(new Kn(n.id,this.urlSerializer.serialize(n.extractedUrl),v.message,v.cancellationCode)),function Za(P){return fl(P)&&ao(P.url)}(v)?this.events.next(new ur(v.url)):n.resolve(!1);else{this.events.next(new J(n.id,this.urlSerializer.serialize(n.extractedUrl),v,n.targetSnapshot??void 0));try{n.resolve(O.errorHandler(v))}catch(b){n.reject(b)}}return me.E}))}))}cancelNavigationTransition(O,z,d){const n=new Kn(O.id,this.urlSerializer.serialize(O.extractedUrl),z,d);this.events.next(n),O.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();function Gs(P){return P!==Lt}let wc=(()=>{class P{static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:()=>(0,h.f3M)(vl),providedIn:"root"})}return P})();class nc{shouldDetach(U){return!1}store(U,O){}shouldAttach(U){return!1}retrieve(U){return null}shouldReuseRoute(U,O){return U.routeConfig===O.routeConfig}}let vl=(()=>{class P extends nc{static#e=this.\u0275fac=(()=>{let O;return function(d){return(O||(O=h.n5z(P)))(d||P)}})();static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),Fo=(()=>{class P{static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:()=>(0,h.f3M)(ps),providedIn:"root"})}return P})(),ps=(()=>{class P extends Fo{constructor(){super(...arguments),this.location=(0,h.f3M)(Ae.Ye),this.urlSerializer=(0,h.f3M)(tt),this.options=(0,h.f3M)(sr,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,h.f3M)(hs),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new sn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Mo(0,null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(O){return this.location.subscribe(z=>{"popstate"===z.type&&O(z.url,z.state)})}handleRouterEvent(O,z){if(O instanceof ti)this.stateMemento=this.createStateMemento();else if(O instanceof Xi)this.rawUrlTree=z.initialUrl;else if(O instanceof be){if("eager"===this.urlUpdateStrategy&&!z.extras.skipLocationChange){const d=this.urlHandlingStrategy.merge(z.finalUrl,z.initialUrl);this.setBrowserUrl(d,z)}}else O instanceof or?(this.currentUrlTree=z.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(z.finalUrl,z.initialUrl),this.routerState=z.targetRouterState,"deferred"===this.urlUpdateStrategy&&(z.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,z))):O instanceof Kn&&(3===O.code||2===O.code)?this.restoreHistory(z):O instanceof J?this.restoreHistory(z,!0):O instanceof di&&(this.lastSuccessfulId=O.id,this.currentPageId=this.browserPageId)}setBrowserUrl(O,z){const d=this.urlSerializer.serialize(O);if(this.location.isCurrentPathEqualTo(d)||z.extras.replaceUrl){const c={...z.extras.state,...this.generateNgRouterState(z.id,this.browserPageId)};this.location.replaceState(d,"",c)}else{const n={...z.extras.state,...this.generateNgRouterState(z.id,this.browserPageId+1)};this.location.go(d,"",n)}}restoreHistory(O,z=!1){if("computed"===this.canceledNavigationResolution){const n=this.currentPageId-this.browserPageId;0!==n?this.location.historyGo(n):this.currentUrlTree===O.finalUrl&&0===n&&(this.resetState(O),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(z&&this.resetState(O),this.resetUrlToCurrentUrlTree())}resetState(O){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,O.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(O,z){return"computed"===this.canceledNavigationResolution?{navigationId:O,\u0275routerPageId:z}:{navigationId:O}}static#e=this.\u0275fac=(()=>{let O;return function(d){return(O||(O=h.n5z(P)))(d||P)}})();static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();var Oa=function(P){return P[P.COMPLETE=0]="COMPLETE",P[P.FAILED=1]="FAILED",P[P.REDIRECTING=2]="REDIRECTING",P}(Oa||{});function ic(P,U){P.events.pipe((0,je.h)(O=>O instanceof di||O instanceof Kn||O instanceof J||O instanceof Xi),(0,Ge.U)(O=>O instanceof di||O instanceof Xi?Oa.COMPLETE:O instanceof Kn&&(0===O.code||1===O.code)?Oa.REDIRECTING:Oa.FAILED),(0,je.h)(O=>O!==Oa.REDIRECTING),(0,ne.q)(1)).subscribe(()=>{U()})}function jr(P){throw P}const Cc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},tl={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Nr=(()=>{class P{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,h.f3M)(h.c2e),this.stateManager=(0,h.f3M)(Fo),this.options=(0,h.f3M)(sr,{optional:!0})||{},this.pendingTasks=(0,h.f3M)(h.HDt),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,h.f3M)(fi),this.urlSerializer=(0,h.f3M)(tt),this.location=(0,h.f3M)(Ae.Ye),this.urlHandlingStrategy=(0,h.f3M)(hs),this._events=new Ne.x,this.errorHandler=this.options.errorHandler||jr,this.navigated=!1,this.routeReuseStrategy=(0,h.f3M)(wc),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,h.f3M)(Pr,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,h.f3M)(fo,{optional:!0}),this.eventsSubscription=new Ye.w0,this.isNgZoneEnabled=(0,h.f3M)(h.R0b)instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:O=>{this.console.warn(O)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const O=this.navigationTransitions.events.subscribe(z=>{try{const d=this.navigationTransitions.currentTransition,n=this.navigationTransitions.currentNavigation;if(null!==d&&null!==n)if(this.stateManager.handleRouterEvent(z,n),z instanceof Kn&&0!==z.code&&1!==z.code)this.navigated=!0;else if(z instanceof di)this.navigated=!0;else if(z instanceof ur){const c=this.urlHandlingStrategy.merge(z.url,d.currentRawUrl),m={skipLocationChange:d.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Gs(d.source)};this.scheduleNavigation(c,Lt,null,m,{resolve:d.resolve,reject:d.reject,promise:d.promise})}(function rc(P){return!(P instanceof or||P instanceof ur)})(z)&&this._events.next(z)}catch(d){this.navigationTransitions.transitionAbortSubject.next(d)}});this.eventsSubscription.add(O)}resetRootComponentType(O){this.routerState.root.component=O,this.navigationTransitions.rootComponentType=O}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Lt,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((O,z)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(O,"popstate",z)},0)}))}navigateToSyncWithBrowser(O,z,d){const n={replaceUrl:!0},c=d?.navigationId?d:null;if(d){const v={...d};delete v.navigationId,delete v.\u0275routerPageId,0!==Object.keys(v).length&&(n.state=v)}const m=this.parseUrl(O);this.scheduleNavigation(m,z,c,n)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(O){this.config=O.map(js),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(O,z={}){const{relativeTo:d,queryParams:n,fragment:c,queryParamsHandling:m,preserveFragment:v}=z,b=v?this.currentUrlTree.fragment:c;let M,I=null;switch(m){case"merge":I={...this.currentUrlTree.queryParams,...n};break;case"preserve":I=this.currentUrlTree.queryParams;break;default:I=n||null}null!==I&&(I=this.removeEmptyProps(I));try{M=xo(d?d.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof O[0]||!O[0].startsWith("/"))&&(O=[]),M=this.currentUrlTree.root}return qi(M,O,I,b??null)}navigateByUrl(O,z={skipLocationChange:!1}){const d=ao(O)?O:this.parseUrl(O),n=this.urlHandlingStrategy.merge(d,this.rawUrlTree);return this.scheduleNavigation(n,Lt,null,z)}navigate(O,z={skipLocationChange:!1}){return function Kc(P){for(let U=0;U{const n=O[d];return null!=n&&(z[d]=n),z},{})}scheduleNavigation(O,z,d,n,c){if(this.disposed)return Promise.resolve(!1);let m,v,b;c?(m=c.resolve,v=c.reject,b=c.promise):b=new Promise((M,N)=>{m=M,v=N});const I=this.pendingTasks.add();return ic(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(I))}),this.navigationTransitions.handleNavigationRequest({source:z,restoredState:d,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:O,extras:n,resolve:m,reject:v,promise:b,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),b.catch(M=>Promise.reject(M))}static#e=this.\u0275fac=function(z){return new(z||P)};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})(),ya=(()=>{class P{constructor(O,z,d,n,c,m){this.router=O,this.route=z,this.tabIndexAttribute=d,this.renderer=n,this.el=c,this.locationStrategy=m,this.href=null,this.commands=null,this.onChanges=new Ne.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const v=c.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===v||"area"===v,this.isAnchorElement?this.subscription=O.events.subscribe(b=>{b instanceof di&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(O){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",O)}ngOnChanges(O){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(O){null!=O?(this.commands=Array.isArray(O)?O:[O],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(O,z,d,n,c){return!!(null===this.urlTree||this.isAnchorElement&&(0!==O||z||d||n||c||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const O=null===this.href?null:(0,h.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",O)}applyAttributeValue(O,z){const d=this.renderer,n=this.el.nativeElement;null!==z?d.setAttribute(n,O,z):d.removeAttribute(n,O)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(z){return new(z||P)(h.Y36(Nr),h.Y36(cr),h.$8M("tabindex"),h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(Ae.S$))};static#t=this.\u0275dir=h.lG2({type:P,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(z,d){1&z&&h.NdJ("click",function(c){return d.onClick(c.button,c.ctrlKey,c.shiftKey,c.altKey,c.metaKey)}),2&z&&h.uIk("target",d.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:["preserveFragment","preserveFragment",h.VuI],skipLocationChange:["skipLocationChange","skipLocationChange",h.VuI],replaceUrl:["replaceUrl","replaceUrl",h.VuI],routerLink:"routerLink"},standalone:!0,features:[h.Xq5,h.TTD]})}return P})();class kl{}let Fl=(()=>{class P{constructor(O,z,d,n,c){this.router=O,this.injector=d,this.preloadingStrategy=n,this.loader=c}setUpPreloading(){this.subscription=this.router.events.pipe((0,je.h)(O=>O instanceof di),(0,$t.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(O,z){const d=[];for(const n of z){n.providers&&!n._injector&&(n._injector=(0,h.MMx)(n.providers,O,`Route: ${n.path}`));const c=n._injector??O,m=n._loadedInjector??c;(n.loadChildren&&!n._loadedRoutes&&void 0===n.canLoad||n.loadComponent&&!n._loadedComponent)&&d.push(this.preloadConfig(c,n)),(n.children||n._loadedRoutes)&&d.push(this.processRoutes(m,n.children??n._loadedRoutes))}return(0,X.D)(d).pipe((0,en.J)())}preloadConfig(O,z){return this.preloadingStrategy.preload(z,()=>{let d;d=z.loadChildren&&void 0===z.canLoad?this.loader.loadChildren(O,z):(0,a.of)(null);const n=d.pipe((0,Se.z)(c=>null===c?(0,a.of)(void 0):(z._loadedRoutes=c.routes,z._loadedInjector=c.injector,this.processRoutes(c.injector??O,c.routes))));if(z.loadComponent&&!z._loadedComponent){const c=this.loader.loadComponent(z);return(0,X.D)([n,c]).pipe((0,en.J)())}return n})}static#e=this.\u0275fac=function(z){return new(z||P)(h.LFG(Nr),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(kl),h.LFG(hr))};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac,providedIn:"root"})}return P})();const xl=new h.OlP("");let oc=(()=>{class P{constructor(O,z,d,n,c={}){this.urlSerializer=O,this.transitions=z,this.viewportScroller=d,this.zone=n,this.options=c,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},c.scrollPositionRestoration=c.scrollPositionRestoration||"disabled",c.anchorScrolling=c.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(O=>{O instanceof ti?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=O.navigationTrigger,this.restoredId=O.restoredState?O.restoredState.navigationId:0):O instanceof di?(this.lastId=O.id,this.scheduleScrollEvent(O,this.urlSerializer.parse(O.urlAfterRedirects).fragment)):O instanceof Xi&&0===O.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(O,this.urlSerializer.parse(O.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(O=>{O instanceof Gi&&(O.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(O.position):O.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(O.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(O,z){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Gi(O,"popstate"===this.lastSource?this.store[this.restoredId]:null,z))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(z){h.$Z()};static#t=this.\u0275prov=h.Yz7({token:P,factory:P.\u0275fac})}return P})();function ms(P,U){return{\u0275kind:P,\u0275providers:U}}function Qc(){const P=(0,h.f3M)(h.zs3);return U=>{const O=P.get(h.z2F);if(U!==O.components[0])return;const z=P.get(Nr),d=P.get(Ec);1===P.get(Tc)&&z.initialNavigation(),P.get(tu,null,h.XFs.Optional)?.setUpPreloading(),P.get(xl,null,h.XFs.Optional)?.init(),z.resetRootComponentType(O.componentTypes[0]),d.closed||(d.next(),d.complete(),d.unsubscribe())}}const Ec=new h.OlP("",{factory:()=>new Ne.x}),Tc=new h.OlP("",{providedIn:"root",factory:()=>1}),tu=new h.OlP("");function Td(P){return ms(0,[{provide:tu,useExisting:Fl},{provide:kl,useExisting:P}])}function Ws(P){return ms(9,[{provide:fs,useValue:Zs},{provide:Yo,useValue:{skipNextTransition:!!P?.skipInitialTransition,...P}}])}const Er=new h.OlP("ROUTER_FORROOT_GUARD"),sc=[Ae.Ye,{provide:tt,useClass:yt},Nr,H,{provide:cr,useFactory:function bl(P){return P.routerState.root},deps:[Nr]},hr,[]];let yi=(()=>{class P{constructor(O){}static forRoot(O,z){return{ngModule:P,providers:[sc,[],{provide:Pr,multi:!0,useValue:O},{provide:Er,useFactory:wl,deps:[[Nr,new h.FiY,new h.tp0]]},{provide:sr,useValue:z||{}},z?.useHash?{provide:Ae.S$,useClass:Ae.Do}:{provide:Ae.S$,useClass:Ae.b0},{provide:xl,useFactory:()=>{const P=(0,h.f3M)(Ae.EM),U=(0,h.f3M)(h.R0b),O=(0,h.f3M)(sr),z=(0,h.f3M)(fi),d=(0,h.f3M)(tt);return O.scrollOffset&&P.setOffset(O.scrollOffset),new oc(d,z,P,U,O)}},z?.preloadingStrategy?Td(z.preloadingStrategy).\u0275providers:[],z?.initialNavigation?pi(z):[],z?.bindToComponentInputs?ms(8,[po,{provide:fo,useExisting:po}]).\u0275providers:[],z?.enableViewTransitions?Ws().\u0275providers:[],[{provide:lc,useFactory:Qc},{provide:h.tb,multi:!0,useExisting:lc}]]}}static forChild(O){return{ngModule:P,providers:[{provide:Pr,multi:!0,useValue:O}]}}static#e=this.\u0275fac=function(z){return new(z||P)(h.LFG(Er,8))};static#t=this.\u0275mod=h.oAB({type:P});static#n=this.\u0275inj=h.cJS({})}return P})();function wl(P){return"guarded"}function pi(P){return["disabled"===P.initialNavigation?ms(3,[{provide:h.ip1,multi:!0,useFactory:()=>{const U=(0,h.f3M)(Nr);return()=>{U.setUpLocationChangeListener()}}},{provide:Tc,useValue:2}]).\u0275providers:[],"enabledBlocking"===P.initialNavigation?ms(2,[{provide:Tc,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:U=>{const O=U.get(Ae.V_,Promise.resolve());return()=>O.then(()=>new Promise(z=>{const d=U.get(Nr),n=U.get(Ec);ic(d,()=>{z(!0)}),U.get(fi).afterPreactivation=()=>(z(!0),n.closed?(0,a.of)(void 0):n),d.initialNavigation()}))}}]).\u0275providers:[]]}const lc=new h.OlP("")},703:(zn,wt,S)=>{"use strict";S.d(wt,{Ar:()=>Te,N0:()=>_e});var h=S(8564),p=S(6814),X=S(7398),a=S(1631),j=S(4911),K=S(2096),C=S(9862);const oe=new h.OlP("JWT_OPTIONS");let _e=(()=>{class ye{constructor(me=null){this.tokenGetter=me&&me.tokenGetter||function(){}}urlBase64Decode(me){let Ye=me.replace(/-/g,"+").replace(/_/g,"/");switch(Ye.length%4){case 0:break;case 2:Ye+="==";break;case 3:Ye+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(Ye)}b64decode(me){let Ce="";if((me=String(me).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let Pe,Be,de=0,Ne=0;Be=me.charAt(Ne++);~Be&&(Pe=de%4?64*Pe+Be:Be,de++%4)?Ce+=String.fromCharCode(255&Pe>>(-2*de&6)):0)Be="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Be);return Ce}b64DecodeUnicode(me){return decodeURIComponent(Array.prototype.map.call(this.b64decode(me),Ye=>"%"+("00"+Ye.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(me=this.tokenGetter()){return me instanceof Promise?me.then(Ye=>this._decodeToken(Ye)):this._decodeToken(me)}_decodeToken(me){if(!me||""===me)return null;const Ye=me.split(".");if(3!==Ye.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const Ce=this.urlBase64Decode(Ye[1]);if(!Ce)throw new Error("Cannot decode the token.");return JSON.parse(Ce)}getTokenExpirationDate(me=this.tokenGetter()){return me instanceof Promise?me.then(Ye=>this._getTokenExpirationDate(Ye)):this._getTokenExpirationDate(me)}_getTokenExpirationDate(me){let Ye;if(Ye=this.decodeToken(me),!Ye||!Ye.hasOwnProperty("exp"))return null;const Ce=new Date(0);return Ce.setUTCSeconds(Ye.exp),Ce}isTokenExpired(me=this.tokenGetter(),Ye){return me instanceof Promise?me.then(Ce=>this._isTokenExpired(Ce,Ye)):this._isTokenExpired(me,Ye)}_isTokenExpired(me,Ye){if(!me||""===me)return!0;const Ce=this.getTokenExpirationDate(me);return Ye=Ye||0,null!==Ce&&!(Ce.valueOf()>(new Date).valueOf()+1e3*Ye)}getAuthScheme(me,Ye){return"function"==typeof me?me(Ye):me}}return ye.\u0275fac=function(me){return new(me||ye)(h.LFG(oe))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})();const Le=ye=>ye instanceof Promise?(0,j.P)(()=>ye):(0,K.of)(ye);let ee=(()=>{class ye{constructor(me,Ye,Ce){this.jwtHelper=Ye,this.document=Ce,this.standardPorts=["80","443"],this.tokenGetter=me.tokenGetter,this.headerName=me.headerName||"Authorization",this.authScheme=me.authScheme||""===me.authScheme?me.authScheme:"Bearer ",this.allowedDomains=me.allowedDomains||[],this.disallowedRoutes=me.disallowedRoutes||[],this.throwNoTokenError=me.throwNoTokenError||!1,this.skipWhenExpired=me.skipWhenExpired}isAllowedDomain(me){const Ye=new URL(me.url,this.document.location.origin);if(Ye.host===this.document.location.host)return!0;const Ce=`${Ye.hostname}${Ye.port&&!this.standardPorts.includes(Ye.port)?":"+Ye.port:""}`;return this.allowedDomains.findIndex(de=>"string"==typeof de?de===Ce:de instanceof RegExp&&de.test(Ce))>-1}isDisallowedRoute(me){const Ye=new URL(me.url,this.document.location.origin);return this.disallowedRoutes.findIndex(Ce=>{if("string"==typeof Ce){const de=new URL(Ce,this.document.location.origin);return de.hostname===Ye.hostname&&de.pathname===Ye.pathname}return Ce instanceof RegExp&&Ce.test(me.url)})>-1}handleInterception(me,Ye,Ce){const de=this.jwtHelper.getAuthScheme(this.authScheme,Ye);if(!me&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let Pe=(0,K.of)(!1);return this.skipWhenExpired&&(Pe=me?Le(this.jwtHelper.isTokenExpired(me)):(0,K.of)(!0)),me?Pe.pipe((0,X.U)(Be=>Be&&this.skipWhenExpired?Ye.clone():Ye.clone({setHeaders:{[this.headerName]:`${de}${me}`}})),(0,a.z)(Be=>Ce.handle(Be))):Ce.handle(Ye)}intercept(me,Ye){if(!this.isAllowedDomain(me)||this.isDisallowedRoute(me))return Ye.handle(me);const Ce=this.tokenGetter(me);return Le(Ce).pipe((0,a.z)(de=>this.handleInterception(de,me,Ye)))}}return ye.\u0275fac=function(me){return new(me||ye)(h.LFG(oe),h.LFG(_e),h.LFG(p.K0))},ye.\u0275prov=h.Yz7({token:ye,factory:ye.\u0275fac}),ye})(),Te=(()=>{class ye{constructor(me){if(me)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(me){return{ngModule:ye,providers:[{provide:C.TP,useClass:ee,multi:!0},me.jwtOptionsProvider||{provide:oe,useValue:me.config},_e]}}}return ye.\u0275fac=function(me){return new(me||ye)(h.LFG(ye,12))},ye.\u0275mod=h.oAB({type:ye}),ye.\u0275inj=h.cJS({}),ye})()},5472:(zn,wt,S)=>{"use strict";S.d(wt,{y4:()=>Wi,De:()=>xi,dy:()=>Oi,oU:()=>Ro,ki:()=>Bn,O1:()=>Yt,d8:()=>Vt,jP:()=>Ui,UN:()=>Tt,r4:()=>Wn,SH:()=>Nt,X1:()=>ki,xs:()=>lr,t4:()=>Ut,j:()=>xo,H:()=>qi,bk:()=>Qt,DN:()=>Io,Wn:()=>Mt,vk:()=>wn});var h=S(5861),p=S(8564),X=S(6800),a=S(6814);class j{constructor(){this.m=new Map}reset(rt){this.m=new Map(Object.entries(rt))}get(rt,we){const ut=this.m.get(rt);return void 0!==ut?ut:we}getBoolean(rt,we=!1){const ut=this.m.get(rt);return void 0===ut?we:"string"==typeof ut?"true"===ut:!!ut}getNumber(rt,we){const ut=parseFloat(this.m.get(rt));return isNaN(ut)?void 0!==we?we:NaN:ut}set(rt,we){this.m.set(rt,we)}}const K=new j,ye=Je=>me(Je),me=(Je=window)=>{if(typeof Je>"u")return[];Je.Ionic=Je.Ionic||{};let rt=Je.Ionic.platforms;return null==rt&&(rt=Je.Ionic.platforms=Ye(Je),rt.forEach(we=>Je.document.documentElement.classList.add(`plt-${we}`))),rt},Ye=Je=>{const rt=K.get("platform");return Object.keys(xn).filter(we=>{const ut=rt?.[we];return"function"==typeof ut?ut(Je):xn[we](Je)})},de=Je=>!!(Ht(Je,/iPad/i)||Ht(Je,/Macintosh/i)&&ne(Je)),Ne=Je=>Ht(Je,/android|sink/i),ne=Je=>cn(Je,"(any-pointer:coarse)"),xe=Je=>je(Je)||Se(Je),je=Je=>!!(Je.cordova||Je.phonegap||Je.PhoneGap),Se=Je=>{const rt=Je.Capacitor;return!!rt?.isNative},Ht=(Je,rt)=>rt.test(Je.navigator.userAgent),cn=(Je,rt)=>{var we;return null===(we=Je.matchMedia)||void 0===we?void 0:we.call(Je,rt).matches},xn={ipad:de,iphone:Je=>Ht(Je,/iPhone/i),ios:Je=>Ht(Je,/iPhone|iPod/i)||de(Je),android:Ne,phablet:Je=>{const rt=Je.innerWidth,we=Je.innerHeight,ut=Math.min(rt,we),dt=Math.max(rt,we);return ut>390&&ut<520&&dt>620&&dt<800},tablet:Je=>{const rt=Je.innerWidth,we=Je.innerHeight,ut=Math.min(rt,we),dt=Math.max(rt,we);return de(Je)||(Je=>Ne(Je)&&!Ht(Je,/mobile/i))(Je)||ut>460&&ut<820&&dt>780&&dt<1400},cordova:je,capacitor:Se,electron:Je=>Ht(Je,/electron/i),pwa:Je=>{var rt;return!!(null!==(rt=Je.matchMedia)&&void 0!==rt&&rt.call(Je,"(display-mode: standalone)").matches||Je.navigator.standalone)},mobile:ne,mobileweb:Je=>ne(Je)&&!xe(Je),desktop:Je=>!ne(Je),hybrid:xe};var Oe=S(191),ie=S(3630),it=S(8645),_t=S(2438),Kt=S(5619),Mn=S(2572),fn=S(2096),qn=S(7582),li=S(2181),en=S(4664),Dt=S(3997),Ie=S(6223);const Ct=["tabsInner"];let Ut=(()=>{class Je{constructor(we,ut){this.doc=we,this.backButton=new it.x,this.keyboardDidShow=new it.x,this.keyboardDidHide=new it.x,this.pause=new it.x,this.resume=new it.x,this.resize=new it.x,ut.run(()=>{let dt;this.win=we.defaultView,this.backButton.subscribeWithPriority=function(Lt,gn){return this.subscribe(ti=>ti.register(Lt,di=>ut.run(()=>gn(di))))},qe(this.pause,we,"pause",ut),qe(this.resume,we,"resume",ut),qe(this.backButton,we,"ionBackButton",ut),qe(this.resize,this.win,"resize",ut),qe(this.keyboardDidShow,this.win,"ionKeyboardDidShow",ut),qe(this.keyboardDidHide,this.win,"ionKeyboardDidHide",ut),this._readyPromise=new Promise(Lt=>{dt=Lt}),this.win?.cordova?we.addEventListener("deviceready",()=>{dt("cordova")},{once:!0}):dt("dom")})}is(we){return((Je,rt)=>("string"==typeof Je&&(rt=Je,Je=void 0),ye(Je).includes(rt)))(this.win,we)}platforms(){return ye(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(we){return Hn(this.win.location.href,we)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia?.("(orientation: portrait)").matches}testUserAgent(we){const ut=this.win.navigator;return!!(ut?.userAgent&&ut.userAgent.indexOf(we)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Je.\u0275fac=function(we){return new(we||Je)(p.LFG(a.K0),p.LFG(p.R0b))},Je.\u0275prov=p.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const Hn=(Je,rt)=>{rt=rt.replace(/[[\]\\]/g,"\\$&");const ut=new RegExp("[\\?&]"+rt+"=([^&#]*)").exec(Je);return ut?decodeURIComponent(ut[1].replace(/\+/g," ")):null},qe=(Je,rt,we,ut)=>{rt&&rt.addEventListener(we,dt=>{ut.run(()=>{const Lt=dt?.detail;Je.next(Lt)})})};let Nt=(()=>{class Je{constructor(we,ut,dt,Lt){this.location=ut,this.serializer=dt,this.router=Lt,this.direction=Tn,this.animated=oi,this.guessDirection="forward",this.lastNavId=-1,Lt&&Lt.events.subscribe(gn=>{if(gn instanceof X.OD){const ti=gn.restoredState?gn.restoredState.navigationId:gn.id;this.guessDirection=ti{this.pop(),gn()})}navigateForward(we,ut={}){return this.setDirection("forward",ut.animated,ut.animationDirection,ut.animation),this.navigate(we,ut)}navigateBack(we,ut={}){return this.setDirection("back",ut.animated,ut.animationDirection,ut.animation),this.navigate(we,ut)}navigateRoot(we,ut={}){return this.setDirection("root",ut.animated,ut.animationDirection,ut.animation),this.navigate(we,ut)}back(we={animated:!0,animationDirection:"back"}){return this.setDirection("back",we.animated,we.animationDirection,we.animation),this.location.back()}pop(){var we=this;return(0,h.Z)(function*(){let ut=we.topOutlet;for(;ut;){if(yield ut.pop())return!0;ut=ut.parentOutlet}return!1})()}setDirection(we,ut,dt,Lt){this.direction=we,this.animated=Xt(we,ut,dt),this.animationBuilder=Lt}setTopOutlet(we){this.topOutlet=we}consumeTransition(){let ut,we="root";const dt=this.animationBuilder;return"auto"===this.direction?(we=this.guessDirection,ut=this.guessAnimation):(ut=this.animated,we=this.direction),this.direction=Tn,this.animated=oi,this.animationBuilder=void 0,{direction:we,animation:ut,animationBuilder:dt}}navigate(we,ut){if(Array.isArray(we))return this.router.navigate(we,ut);{const dt=this.serializer.parse(we.toString());return void 0!==ut.queryParams&&(dt.queryParams={...ut.queryParams}),void 0!==ut.fragment&&(dt.fragment=ut.fragment),this.router.navigateByUrl(dt,ut)}}}return Je.\u0275fac=function(we){return new(we||Je)(p.LFG(Ut),p.LFG(a.Ye),p.LFG(X.Hx),p.LFG(X.F0,8))},Je.\u0275prov=p.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const Xt=(Je,rt,we)=>{if(!1!==rt){if(void 0!==we)return we;if("forward"===Je||"back"===Je)return Je;if("root"===Je&&!0===rt)return"forward"}},Tn="auto",oi=void 0;let xi=(()=>{class Je{get(we,ut){const dt=gr();return dt?dt.get(we,ut):null}getBoolean(we,ut){const dt=gr();return!!dt&&dt.getBoolean(we,ut)}getNumber(we,ut){const dt=gr();return dt?dt.getNumber(we,ut):0}}return Je.\u0275fac=function(we){return new(we||Je)},Je.\u0275prov=p.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"}),Je})();const Oi=new p.OlP("USERCONFIG"),gr=()=>{if(typeof window<"u"){const Je=window.Ionic;if(Je?.config)return Je.config}return null};class ki{constructor(rt={}){this.data=rt}get(rt){return this.data[rt]}}let Wi=(()=>{class Je{constructor(){this.zone=(0,p.f3M)(p.R0b),this.applicationRef=(0,p.f3M)(p.z2F)}create(we,ut,dt){return new _n(we,ut,this.applicationRef,this.zone,dt)}}return Je.\u0275fac=function(we){return new(we||Je)},Je.\u0275prov=p.Yz7({token:Je,factory:Je.\u0275fac}),Je})();class _n{constructor(rt,we,ut,dt,Lt){this.environmentInjector=rt,this.injector=we,this.applicationRef=ut,this.zone=dt,this.elementReferenceKey=Lt,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(rt,we,ut,dt){return this.zone.run(()=>new Promise(Lt=>{const gn={...ut};void 0!==this.elementReferenceKey&&(gn[this.elementReferenceKey]=rt),Lt(Bi(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,rt,we,gn,dt,this.elementReferenceKey))}))}removeViewFromDom(rt,we){return this.zone.run(()=>new Promise(ut=>{const dt=this.elRefMap.get(we);if(dt){dt.destroy(),this.elRefMap.delete(we);const Lt=this.elEventsMap.get(we);Lt&&(Lt(),this.elEventsMap.delete(we))}ut()}))}}const Bi=(Je,rt,we,ut,dt,Lt,gn,ti,di,Kn,Xi)=>{const J=p.zs3.create({providers:$i(di),parent:we}),be=(0,p.LMc)(ti,{environmentInjector:rt,elementInjector:J}),ft=be.instance,mt=be.location.nativeElement;if(di&&(Xi&&void 0!==ft[Xi]&&console.error(`[Ionic Error]: ${Xi} is a reserved property when using ${gn.tagName.toLowerCase()}. Rename or remove the "${Xi}" property from ${ti.name}.`),Object.assign(ft,di)),Kn)for(const jt of Kn)mt.classList.add(jt);const yn=sn(Je,ft,mt);return gn.appendChild(mt),ut.attachView(be.hostView),dt.set(mt,be),Lt.set(mt,yn),mt},pn=[Oe.L,Oe.a,Oe.b,Oe.c,Oe.d],sn=(Je,rt,we)=>Je.run(()=>{const ut=pn.filter(dt=>"function"==typeof rt[dt]).map(dt=>{const Lt=gn=>rt[dt](gn.detail);return we.addEventListener(dt,Lt),()=>we.removeEventListener(dt,Lt)});return()=>ut.forEach(dt=>dt())}),Cn=new p.OlP("NavParamsToken"),$i=Je=>[{provide:Cn,useValue:Je},{provide:ki,useFactory:ct,deps:[Cn]}],ct=Je=>new ki(Je),ge=(Je,rt)=>{const we=Je.prototype;rt.forEach(ut=>{Object.defineProperty(we,ut,{get(){return this.el[ut]},set(dt){this.z.runOutsideAngular(()=>this.el[ut]=dt)}})})},se=(Je,rt)=>{const we=Je.prototype;rt.forEach(ut=>{we[ut]=function(){const dt=arguments;return this.z.runOutsideAngular(()=>this.el[ut].apply(this.el,dt))}})},tt=(Je,rt,we)=>{we.forEach(ut=>Je[ut]=(0,_t.R)(rt,ut))};function yt(Je){return function(we){const{defineCustomElementFn:ut,inputs:dt,methods:Lt}=Je;return void 0!==ut&&ut(),dt&&ge(we,dt),Lt&&se(we,Lt),we}}const Ot=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Gt=["present","dismiss","onDidDismiss","onWillDismiss"];let Vt=(()=>{let Je=class{constructor(we,ut,dt){this.z=dt,this.isCmpOpen=!1,this.el=ut.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,we.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,we.detectChanges()}),tt(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}};return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(p.sBO),p.Y36(p.SBq),p.Y36(p.R0b))},Je.\u0275dir=p.lG2({type:Je,selectors:[["ion-popover"]],contentQueries:function(we,ut,dt){if(1&we&&p.Suo(dt,p.Rgc,5),2&we){let Lt;p.iGM(Lt=p.CRH())&&(ut.template=Lt.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}}),Je=(0,qn.gn)([yt({inputs:Ot,methods:Gt})],Je),Je})();const Et=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],Jt=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Bn=(()=>{let Je=class{constructor(we,ut,dt){this.z=dt,this.isCmpOpen=!1,this.el=ut.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,we.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,we.detectChanges()}),tt(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(p.sBO),p.Y36(p.SBq),p.Y36(p.R0b))},Je.\u0275dir=p.lG2({type:Je,selectors:[["ion-modal"]],contentQueries:function(we,ut,dt){if(1&we&&p.Suo(dt,p.Rgc,5),2&we){let Lt;p.iGM(Lt=p.CRH())&&(ut.template=Lt.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}}),Je=(0,qn.gn)([yt({inputs:Et,methods:Jt})],Je),Je})();const ae=(Je,rt)=>((Je=Je.filter(we=>we.stackId!==rt.stackId)).push(rt),Je),ze=(Je,rt)=>{const we=Je.createUrlTree(["."],{relativeTo:rt});return Je.serializeUrl(we)},at=(Je,rt)=>!rt||Je.stackId!==rt.stackId,rn=(Je,rt)=>{if(!Je)return;const we=Dn(rt);for(let ut=0;ut=Je.length)return we[ut];if(we[ut]!==Je[ut])return}},Dn=Je=>Je.split("/").map(rt=>rt.trim()).filter(rt=>""!==rt),gi=Je=>{Je&&(Je.ref.destroy(),Je.unlistenEvents())};class Mi{constructor(rt,we,ut,dt,Lt,gn){this.containerEl=we,this.router=ut,this.navCtrl=dt,this.zone=Lt,this.location=gn,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==rt?Dn(rt):void 0}createView(rt,we){const ut=ze(this.router,we),dt=rt?.location?.nativeElement,Lt=sn(this.zone,rt.instance,dt);return{id:this.nextId++,stackId:rn(this.tabsPrefix,ut),unlistenEvents:Lt,element:dt,ref:rt,url:ut}}getExistingView(rt){const we=ze(this.router,rt),ut=this.views.find(dt=>dt.url===we);return ut&&ut.ref.changeDetectorRef.reattach(),ut}setActive(rt){const we=this.navCtrl.consumeTransition();let{direction:ut,animation:dt,animationBuilder:Lt}=we;const gn=this.activeView,ti=at(rt,gn);ti&&(ut="back",dt=void 0);const di=this.views.slice();let Kn;const Xi=this.router;Xi.getCurrentNavigation?Kn=Xi.getCurrentNavigation():Xi.navigations?.value&&(Kn=Xi.navigations.value),Kn?.extras?.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const J=this.views.includes(rt),be=this.insertView(rt,ut);J||rt.ref.changeDetectorRef.detectChanges();const ft=rt.animationBuilder;return void 0===Lt&&"back"===ut&&!ti&&void 0!==ft&&(Lt=ft),gn&&(gn.animationBuilder=Lt),this.zone.runOutsideAngular(()=>this.wait(()=>(gn&&gn.ref.changeDetectorRef.detach(),rt.ref.changeDetectorRef.reattach(),this.transition(rt,gn,dt,this.canGoBack(1),!1,Lt).then(()=>Li(rt,be,di,this.location,this.zone)).then(()=>({enteringView:rt,direction:ut,animation:dt,tabSwitch:ti})))))}canGoBack(rt,we=this.getActiveStackId()){return this.getStack(we).length>rt}pop(rt,we=this.getActiveStackId()){return this.zone.run(()=>{const ut=this.getStack(we);if(ut.length<=rt)return Promise.resolve(!1);const dt=ut[ut.length-rt-1];let Lt=dt.url;const gn=dt.savedData;if(gn){const di=gn.get("primary");di?.route?._routerState?.snapshot.url&&(Lt=di.route._routerState.snapshot.url)}const{animationBuilder:ti}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(Lt,{...dt.savedExtras,animation:ti}).then(()=>!0)})}startBackTransition(){const rt=this.activeView;if(rt){const we=this.getStack(rt.stackId),ut=we[we.length-2],dt=ut.animationBuilder;return this.wait(()=>this.transition(ut,rt,"back",this.canGoBack(2),!0,dt))}return Promise.resolve()}endBackTransition(rt){rt?(this.skipTransition=!0,this.pop(1)):this.activeView&&yr(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(rt){const we=this.getStack(rt);return we.length>0?we[we.length-1]:void 0}getRootUrl(rt){const we=this.getStack(rt);return we.length>0?we[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(gi),this.activeView=void 0,this.views=[]}getStack(rt){return this.views.filter(we=>we.stackId===rt)}insertView(rt,we){return this.activeView=rt,this.views=((Je,rt,we)=>"root"===we?ae(Je,rt):"forward"===we?((Je,rt)=>(Je.indexOf(rt)>=0?Je=Je.filter(ut=>ut.stackId!==rt.stackId||ut.id<=rt.id):Je.push(rt),Je))(Je,rt):((Je,rt)=>Je.indexOf(rt)>=0?Je.filter(ut=>ut.stackId!==rt.stackId||ut.id<=rt.id):ae(Je,rt))(Je,rt))(this.views,rt,we),this.views.slice()}transition(rt,we,ut,dt,Lt,gn){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(we===rt)return Promise.resolve(!1);const ti=rt?rt.element:void 0,di=we?we.element:void 0,Kn=this.containerEl;return ti&&ti!==di&&(ti.classList.add("ion-page"),ti.classList.add("ion-page-invisible"),ti.parentElement!==Kn&&Kn.appendChild(ti),Kn.commit)?Kn.commit(ti,di,{duration:void 0===ut?0:void 0,direction:ut,showGoBack:dt,progressAnimation:Lt,animationBuilder:gn}):Promise.resolve(!1)}wait(rt){var we=this;return(0,h.Z)(function*(){void 0!==we.runningTask&&(yield we.runningTask,we.runningTask=void 0);const ut=we.runningTask=rt();return ut.finally(()=>we.runningTask=void 0),ut})()}}const Li=(Je,rt,we,ut,dt)=>"function"==typeof requestAnimationFrame?new Promise(Lt=>{requestAnimationFrame(()=>{yr(Je,rt,we,ut,dt),Lt()})}):Promise.resolve(),yr=(Je,rt,we,ut,dt)=>{dt.run(()=>we.filter(Lt=>!rt.includes(Lt)).forEach(gi)),rt.forEach(Lt=>{const ti=ut.path().split("?")[0].split("#")[0];if(Lt!==Je&&Lt.url!==ti){const di=Lt.element;di.setAttribute("aria-hidden","true"),di.classList.add("ion-page-hidden"),Lt.ref.changeDetectorRef.detach()}})};let Ui=(()=>{class Je{constructor(we,ut,dt,Lt,gn,ti,di,Kn){this.parentOutlet=Kn,this.activatedView=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new Kt.X(null),this.activated=null,this._activatedRoute=null,this.name=X.eC,this.stackWillChange=new p.vpe,this.stackDidChange=new p.vpe,this.activateEvents=new p.vpe,this.deactivateEvents=new p.vpe,this.parentContexts=(0,p.f3M)(X.y6),this.location=(0,p.f3M)(p.s_b),this.environmentInjector=(0,p.f3M)(p.lqb),this.inputBinder=(0,p.f3M)(ho,{optional:!0}),this.supportsBindingToComponentInputs=!0,this.config=(0,p.f3M)(xi),this.navCtrl=(0,p.f3M)(Nt),this.nativeEl=Lt.nativeElement,this.name=we||X.eC,this.tabsPrefix="true"===ut?ze(gn,di):void 0,this.stackCtrl=new Mi(this.tabsPrefix,this.nativeEl,gn,this.navCtrl,ti,dt),this.parentContexts.onChildOutletCreated(this.name,this)}get activatedComponentRef(){return this.activated}set animation(we){this.nativeEl.animation=we}set animated(we){this.nativeEl.animated=we}set swipeGesture(we){this._swipeGesture=we,this.nativeEl.swipeHandler=we?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:ut=>this.stackCtrl.endBackTransition(ut)}:void 0}ngOnDestroy(){this.stackCtrl.destroy(),this.inputBinder?.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const we=this.getContext();we?.route&&this.activateWith(we.route,we.injector)}new Promise(we=>(0,ie.c)(this.nativeEl,we)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(we,ut){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const ut=this.getContext();this.activatedView.savedData=new Map(ut.children.contexts);const dt=this.activatedView.savedData.get("primary");if(dt&&ut.route&&(dt.route={...ut.route}),this.activatedView.savedExtras={},ut.route){const Lt=ut.route.snapshot;this.activatedView.savedExtras.queryParams=Lt.queryParams,this.activatedView.savedExtras.fragment=Lt.fragment}}const we=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(we)}}activateWith(we,ut){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=we;let dt,Lt=this.stackCtrl.getExistingView(we);if(Lt){dt=this.activated=Lt.ref;const ti=Lt.savedData;ti&&(this.getContext().children.contexts=ti),this.updateActivatedRouteProxy(dt.instance,we)}else{const ti=we._futureSnapshot,di=this.parentContexts.getOrCreateContext(this.name).children,Kn=new Kt.X(null),Xi=this.createActivatedRouteProxy(Kn,we),J=new Fr(Xi,di,this.location.injector);dt=this.activated=this.location.createComponent(ti.routeConfig.component??ti.component,{index:this.location.length,injector:J,environmentInjector:ut??this.environmentInjector}),Kn.next(dt.instance),Lt=this.stackCtrl.createView(this.activated,we),this.proxyMap.set(dt.instance,Xi),this.currentActivatedRoute$.next({component:dt.instance,activatedRoute:we})}this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activatedView=Lt,this.navCtrl.setTopOutlet(this);const gn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:Lt,tabSwitch:at(Lt,gn)}),this.stackCtrl.setActive(Lt).then(ti=>{this.activateEvents.emit(dt.instance),this.stackDidChange.emit(ti)})}canGoBack(we=1,ut){return this.stackCtrl.canGoBack(we,ut)}pop(we=1,ut){return this.stackCtrl.pop(we,ut)}getLastUrl(we){const ut=this.stackCtrl.getLastUrl(we);return ut?ut.url:void 0}getLastRouteView(we){return this.stackCtrl.getLastUrl(we)}getRootView(we){return this.stackCtrl.getRootUrl(we)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(we,ut){const dt=new X.gz;return dt._futureSnapshot=ut._futureSnapshot,dt._routerState=ut._routerState,dt.snapshot=ut.snapshot,dt.outlet=ut.outlet,dt.component=ut.component,dt._paramMap=this.proxyObservable(we,"paramMap"),dt._queryParamMap=this.proxyObservable(we,"queryParamMap"),dt.url=this.proxyObservable(we,"url"),dt.params=this.proxyObservable(we,"params"),dt.queryParams=this.proxyObservable(we,"queryParams"),dt.fragment=this.proxyObservable(we,"fragment"),dt.data=this.proxyObservable(we,"data"),dt}proxyObservable(we,ut){return we.pipe((0,li.h)(dt=>!!dt),(0,en.w)(dt=>this.currentActivatedRoute$.pipe((0,li.h)(Lt=>null!==Lt&&Lt.component===dt),(0,en.w)(Lt=>Lt&&Lt.activatedRoute[ut]),(0,Dt.x)())))}updateActivatedRouteProxy(we,ut){const dt=this.proxyMap.get(we);if(!dt)throw new Error("Could not find activated route proxy for view");dt._futureSnapshot=ut._futureSnapshot,dt._routerState=ut._routerState,dt.snapshot=ut.snapshot,dt.outlet=ut.outlet,dt.component=ut.component,this.currentActivatedRoute$.next({component:we,activatedRoute:ut})}}return Je.\u0275fac=function(we){return new(we||Je)(p.$8M("name"),p.$8M("tabs"),p.Y36(a.Ye),p.Y36(p.SBq),p.Y36(X.F0),p.Y36(p.R0b),p.Y36(X.gz),p.Y36(Je,12))},Je.\u0275dir=p.lG2({type:Je,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Je})();class Fr{constructor(rt,we,ut){this.route=rt,this.childContexts=we,this.parent=ut}get(rt,we){return rt===X.gz?this.route:rt===X.y6?this.childContexts:this.parent.get(rt,we)}}const ho=new p.OlP("");let Do=(()=>{class Je{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(we){this.unsubscribeFromRouteData(we),this.subscribeToRouteData(we)}unsubscribeFromRouteData(we){this.outletDataSubscriptions.get(we)?.unsubscribe(),this.outletDataSubscriptions.delete(we)}subscribeToRouteData(we){const{activatedRoute:ut}=we,dt=(0,Mn.a)([ut.queryParams,ut.params,ut.data]).pipe((0,en.w)(([Lt,gn,ti],di)=>(ti={...Lt,...gn,...ti},0===di?(0,fn.of)(ti):Promise.resolve(ti)))).subscribe(Lt=>{if(!we.isActivated||!we.activatedComponentRef||we.activatedRoute!==ut||null===ut.component)return void this.unsubscribeFromRouteData(we);const gn=(0,p.qFp)(ut.component);if(gn)for(const{templateName:ti}of gn.inputs)we.activatedComponentRef.setInput(ti,Lt[ti]);else this.unsubscribeFromRouteData(we)});this.outletDataSubscriptions.set(we,dt)}}return Je.\u0275fac=function(we){return new(we||Je)},Je.\u0275prov=p.Yz7({token:Je,factory:Je.\u0275fac}),Je})();const Io=()=>({provide:ho,useFactory:Zi,deps:[X.F0]});function Zi(Je){return Je?.componentInputBindingEnabled?new Do:null}const ao=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Ro=(()=>{let Je=class{constructor(we,ut,dt,Lt,gn,ti){this.routerOutlet=we,this.navCtrl=ut,this.config=dt,this.r=Lt,this.z=gn,ti.detach(),this.el=this.r.nativeElement}onClick(we){const ut=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet?.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),we.preventDefault()):null!=ut&&(this.navCtrl.navigateBack(ut,{animation:this.routerAnimation}),we.preventDefault())}};return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(Ui,8),p.Y36(Nt),p.Y36(xi),p.Y36(p.SBq),p.Y36(p.R0b),p.Y36(p.sBO))},Je.\u0275dir=p.lG2({type:Je,hostBindings:function(we,ut){1&we&&p.NdJ("click",function(Lt){return ut.onClick(Lt)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}}),Je=(0,qn.gn)([yt({inputs:ao})],Je),Je})(),xo=(()=>{class Je{constructor(we,ut,dt,Lt,gn){this.locationStrategy=we,this.navCtrl=ut,this.elementRef=dt,this.router=Lt,this.routerLink=gn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){if(this.routerLink?.urlTree){const we=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=we}}onClick(we){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),we.preventDefault()}}return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(a.S$),p.Y36(Nt),p.Y36(p.SBq),p.Y36(X.F0),p.Y36(X.rH,8))},Je.\u0275dir=p.lG2({type:Je,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(we,ut){1&we&&p.NdJ("click",function(Lt){return ut.onClick(Lt)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[p.TTD]}),Je})(),qi=(()=>{class Je{constructor(we,ut,dt,Lt,gn){this.locationStrategy=we,this.navCtrl=ut,this.elementRef=dt,this.router=Lt,this.routerLink=gn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){if(this.routerLink?.urlTree){const we=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=we}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(a.S$),p.Y36(Nt),p.Y36(p.SBq),p.Y36(X.F0),p.Y36(X.rH,8))},Je.\u0275dir=p.lG2({type:Je,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(we,ut){1&we&&p.NdJ("click",function(){return ut.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[p.TTD]}),Je})();const Ci=["animated","animation","root","rootParams","swipeGesture"],Kr=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let Yt=(()=>{let Je=class{constructor(we,ut,dt,Lt,gn,ti){this.z=gn,ti.detach(),this.el=we.nativeElement,we.nativeElement.delegate=Lt.create(ut,dt),tt(this,this.el,["ionNavDidChange","ionNavWillChange"])}};return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(p.SBq),p.Y36(p.lqb),p.Y36(p.zs3),p.Y36(Wi),p.Y36(p.R0b),p.Y36(p.sBO))},Je.\u0275dir=p.lG2({type:Je,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}}),Je=(0,qn.gn)([yt({inputs:Ci,methods:Kr})],Je),Je})(),Tt=(()=>{class Je{constructor(we){this.navCtrl=we,this.ionTabsWillChange=new p.vpe,this.ionTabsDidChange=new p.vpe,this.tabBarSlot="bottom"}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:we,tabSwitch:ut}){const dt=we.stackId;ut&&void 0!==dt&&this.ionTabsWillChange.emit({tab:dt})}onStackDidChange({enteringView:we,tabSwitch:ut}){const dt=we.stackId;ut&&void 0!==dt&&(this.tabBar&&(this.tabBar.selectedTab=dt),this.ionTabsDidChange.emit({tab:dt}))}select(we){const ut="string"==typeof we,dt=ut?we:we.detail.tab,Lt=this.outlet.getActiveStackId()===dt,gn=`${this.outlet.tabsPrefix}/${dt}`;if(ut||we.stopPropagation(),Lt){const ti=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(ti)?.url===gn)return;const Kn=this.outlet.getRootView(dt);return this.navCtrl.navigateRoot(gn,{...Kn&&gn===Kn.url&&Kn.savedExtras,animated:!0,animationDirection:"back"})}{const ti=this.outlet.getLastRouteView(dt),di=ti?.url||gn,Kn=ti?.savedExtras;return this.navCtrl.navigateRoot(di,{...Kn,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(we=>{const ut=we.el.getAttribute("slot");ut!==this.tabBarSlot&&(this.tabBarSlot=ut,this.relocateTabBar())})}relocateTabBar(){const we=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(we):this.tabsInner.nativeElement.after(we)}}return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(Nt))},Je.\u0275dir=p.lG2({type:Je,selectors:[["ion-tabs"]],viewQuery:function(we,ut){if(1&we&&p.Gf(Ct,7,p.SBq),2&we){let dt;p.iGM(dt=p.CRH())&&(ut.tabsInner=dt.first)}},hostBindings:function(we,ut){1&we&&p.NdJ("ionTabButtonClick",function(Lt){return ut.select(Lt)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}}),Je})();const Mt=Je=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Je):"function"==typeof requestAnimationFrame?requestAnimationFrame(Je):setTimeout(Je);let Qt=(()=>{class Je{constructor(we,ut){this.injector=we,this.elementRef=ut,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(we){this.elementRef.nativeElement.value=this.lastValue=we,wn(this.elementRef)}handleValueChange(we,ut){we===this.elementRef.nativeElement&&(ut!==this.lastValue&&(this.lastValue=ut,this.onChange(ut)),wn(this.elementRef))}_handleBlurEvent(we){we===this.elementRef.nativeElement&&(this.onTouched(),wn(this.elementRef))}registerOnChange(we){this.onChange=we}registerOnTouched(we){this.onTouched=we}setDisabledState(we){this.elementRef.nativeElement.disabled=we}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let we;try{we=this.injector.get(Ie.a5)}catch{}if(!we)return;we.statusChanges&&(this.statusChanges=we.statusChanges.subscribe(()=>wn(this.elementRef)));const ut=we.control;ut&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(Lt=>{if(typeof ut[Lt]<"u"){const gn=ut[Lt].bind(ut);ut[Lt]=(...ti)=>{gn(...ti),wn(this.elementRef)}}})}}return Je.\u0275fac=function(we){return new(we||Je)(p.Y36(p.zs3),p.Y36(p.SBq))},Je.\u0275dir=p.lG2({type:Je,hostBindings:function(we,ut){1&we&&p.NdJ("ionBlur",function(Lt){return ut._handleBlurEvent(Lt.target)})}}),Je})();const wn=Je=>{Mt(()=>{const rt=Je.nativeElement,we=null!=rt.value&&rt.value.toString().length>0,ut=It(rt);Xn(rt,ut);const dt=rt.closest("ion-item");dt&&Xn(dt,we?[...ut,"item-has-value"]:ut)})},It=Je=>{const rt=Je.classList,we=[];for(let ut=0;ut{const we=Je.classList;we.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),we.add(...rt)},ui=(Je,rt)=>Je.substring(0,rt.length)===rt;class Wn{shouldDetach(rt){return!1}shouldAttach(rt){return!1}store(rt,we){}retrieve(rt){return null}shouldReuseRoute(rt,we){if(rt.routeConfig!==we.routeConfig)return!1;const ut=rt.params,dt=we.params,Lt=Object.keys(ut),gn=Object.keys(dt);if(Lt.length!==gn.length)return!1;for(const ti of Lt)if(dt[ti]!==ut[ti])return!1;return!0}}class lr{constructor(rt){this.ctrl=rt}create(rt){return this.ctrl.create(rt||{})}dismiss(rt,we,ut){return this.ctrl.dismiss(rt,we,ut)}getTop(){return this.ctrl.getTop()}}},6728:(zn,wt,S)=>{"use strict";S.d(wt,{BX:()=>mt,Br:()=>be,w:()=>Ve,dr:()=>fn,BJ:()=>qn,oU:()=>we,yp:()=>en,YG:()=>Ct,Sm:()=>on,PM:()=>Rn,FN:()=>Vn,Zi:()=>Ut,tO:()=>Hn,hM:()=>Xt,wI:()=>Tn,W2:()=>oi,IJ:()=>gr,W4:()=>ki,zq:()=>Wi,fr:()=>_n,jY:()=>Bi,Gu:()=>pn,gu:()=>sn,pK:()=>ge,Ie:()=>se,Q$:()=>Et,q_:()=>Jt,yh:()=>Bn,Uj:()=>Kn,z0:()=>ae,fG:()=>ht,zc:()=>G,yf:()=>J,uN:()=>at,I_:()=>Li,nJ:()=>yr,Wo:()=>Ui,jP:()=>Je,Nd:()=>Io,VI:()=>Zi,cJ:()=>ao,GO:()=>Ro,t9:()=>xo,n0:()=>qi,PQ:()=>Kr,jI:()=>Yt,g2:()=>wn,Bs:()=>It,wd:()=>Xn,ho:()=>Wn,sr:()=>lr,Pc:()=>ur,HT:()=>jt,IN:()=>$n,as:()=>Xe,YI:()=>dt,QI:()=>cn,j9:()=>xn,yF:()=>ci});var h=S(8564),p=S(6223),X=S(5472),a=S(7582),j=S(2438),K=S(6814),C=S(6800),ye=(S(6410),S(448),S(2619),S(9023),S(9203),S(3882)),De=S(3365),Ye=(S(1783),S(7612)),de=(S(6225),S(5349));S(619);const Ae=ye.i,lt=["*"];let Ve=(()=>{class R extends X.bk{constructor(H,Ze){super(H,Ze)}writeValue(H){this.elementRef.nativeElement.checked=this.lastValue=H,(0,X.vk)(this.elementRef)}_handleIonChange(H){this.handleValueChange(H,H.checked)}}return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.zs3),h.Y36(h.SBq))},R.\u0275dir=h.lG2({type:R,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(H,Ze){1&H&&h.NdJ("ionChange",function(Vi){return Ze._handleIonChange(Vi.target)})},features:[h._Bn([{provide:p.JU,useExisting:R,multi:!0}]),h.qOj]}),R})(),Xe=(()=>{class R extends X.bk{constructor(H,Ze){super(H,Ze)}handleInputEvent(H){this.handleValueChange(H,H.value)}registerOnChange(H){super.registerOnChange(Ze=>{H(""===Ze?null:parseFloat(Ze))})}}return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.zs3),h.Y36(h.SBq))},R.\u0275dir=h.lG2({type:R,selectors:[["ion-input","type","number"]],hostBindings:function(H,Ze){1&H&&h.NdJ("ionInput",function(Vi){return Ze.handleInputEvent(Vi.target)})},features:[h._Bn([{provide:p.JU,useExisting:R,multi:!0}]),h.qOj]}),R})(),cn=(()=>{class R extends X.bk{constructor(H,Ze){super(H,Ze)}_handleChangeEvent(H){this.handleValueChange(H,H.value)}}return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.zs3),h.Y36(h.SBq))},R.\u0275dir=h.lG2({type:R,selectors:[["ion-range"],["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(H,Ze){1&H&&h.NdJ("ionChange",function(Vi){return Ze._handleChangeEvent(Vi.target)})},features:[h._Bn([{provide:p.JU,useExisting:R,multi:!0}]),h.qOj]}),R})(),xn=(()=>{class R extends X.bk{constructor(H,Ze){super(H,Ze)}_handleInputEvent(H){this.handleValueChange(H,H.value)}}return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.zs3),h.Y36(h.SBq))},R.\u0275dir=h.lG2({type:R,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(H,Ze){1&H&&h.NdJ("ionInput",function(Vi){return Ze._handleInputEvent(Vi.target)})},features:[h._Bn([{provide:p.JU,useExisting:R,multi:!0}]),h.qOj]}),R})();const $t=(R,$e)=>{const H=R.prototype;$e.forEach(Ze=>{Object.defineProperty(H,Ze,{get(){return this.el[Ze]},set(Bt){this.z.runOutsideAngular(()=>this.el[Ze]=Bt)},configurable:!0})})},ke=(R,$e)=>{const H=R.prototype;$e.forEach(Ze=>{H[Ze]=function(){const Bt=arguments;return this.z.runOutsideAngular(()=>this.el[Ze].apply(this.el,Bt))}})},pe=(R,$e,H)=>{H.forEach(Ze=>R[Ze]=(0,j.R)($e,Ze))};function ie(R){return function(H){const{defineCustomElementFn:Ze,inputs:Bt,methods:Vi}=R;return void 0!==Ze&&Ze(),Bt&&$t(H,Bt),Vi&&ke(H,Vi),H}}let fn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-app"]],ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({})],R),R})(),qn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-avatar"]],ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({})],R),R})(),en=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","mode"]})],R),R})(),Ct=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionFocus","ionBlur"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],R),R})(),on=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["collapse"]})],R),R})(),Rn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],R),R})(),Vn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["mode"]})],R),R})(),Ut=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","mode","translucent"]})],R),R})(),Hn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","mode"]})],R),R})(),Xt=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","disabled","mode","outline"]})],R),R})(),Tn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],R),R})(),oi=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],R),R})(),gr=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],R),R})(),ki=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionFocus","ionBlur"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],R),R})(),Wi=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["activated","side"]})],R),R})(),_n=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["collapse","mode","translucent"]})],R),R})(),Bi=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["fixed"]})],R),R})(),pn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["collapse","mode","translucent"]})],R),R})(),sn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],R),R})(),ge=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","legacy","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],R),R})(),se=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],R),R})(),Et=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","mode","position"]})],R),R})(),Jt=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],R),R})(),Bn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","lines","mode"]})],R),R})(),ae=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],R),R})(),ht=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["autoHide","color","disabled","menu","mode","type"]})],R),R})(),G=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["autoHide","menu"]})],R),R})(),at=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","mode"]})],R),R})(),Li=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionChange","ionInput","ionFocus","ionBlur","ionKnobMoveStart","ionKnobMoveEnd"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-range"]],inputs:{activeBarStart:"activeBarStart",color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",pinFormatter:"pinFormatter",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["activeBarStart","color","debounce","disabled","dualKnobs","label","labelPlacement","legacy","max","min","mode","name","pin","pinFormatter","snaps","step","ticks","value"]})],R),R})(),yr=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionRefresh","ionPull","ionStart"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["closeDuration","disabled","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],R),R})(),Ui=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],R),R})(),Io=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-row"]],ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({})],R),R})(),Zi=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",name:"name",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","name","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],R),R})(),ao=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionChange"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],R),R})(),Ro=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["disabled","layout","mode","type","value"]})],R),R})(),xo=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","legacy","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],R),R})(),qi=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["disabled","value"]})],R),R})(),Kr=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","duration","name","paused"]})],R),R})(),Yt=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionSplitPaneVisible"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["contentId","disabled","when"]})],R),R})(),wn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","legacy","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],R),R})(),It=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-thumbnail"]],ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({})],R),R})(),Xn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","size"]})],R),R})(),Wn=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement,pe(this,this.el,["ionChange","ionFocus","ionBlur"])}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-toggle"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",enableOnOffLabels:"enableOnOffLabels",justify:"justify",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",name:"name",value:"value"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["alignment","checked","color","disabled","enableOnOffLabels","justify","labelPlacement","legacy","mode","name","value"]})],R),R})(),lr=(()=>{let R=class{constructor(H,Ze,Bt){this.z=Bt,H.detach(),this.el=Ze.nativeElement}};return R.\u0275fac=function(H){return new(H||R)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R=(0,a.gn)([ie({inputs:["color","mode"]})],R),R})(),Je=(()=>{class R extends X.jP{constructor(H,Ze,Bt,Vi,Tr,ji,Ko,Mo){super(H,Ze,Bt,Vi,Tr,ji,Ko,Mo),this.parentOutlet=Mo}}return R.\u0275fac=function(H){return new(H||R)(h.$8M("name"),h.$8M("tabs"),h.Y36(K.Ye),h.Y36(h.SBq),h.Y36(C.F0),h.Y36(h.R0b),h.Y36(C.gz),h.Y36(R,12))},R.\u0275dir=h.lG2({type:R,selectors:[["ion-router-outlet"]],features:[h.qOj]}),R})(),we=(()=>{class R extends X.oU{constructor(H,Ze,Bt,Vi,Tr,ji){super(H,Ze,Bt,Vi,Tr,ji)}}return R.\u0275fac=function(H){return new(H||R)(h.Y36(Je,8),h.Y36(X.SH),h.Y36(X.De),h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(h.sBO))},R.\u0275cmp=h.Xpm({type:R,selectors:[["ion-back-button"]],features:[h.qOj],ngContentSelectors:lt,decls:1,vars:0,template:function(H,Ze){1&H&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),R})(),dt=(()=>{class R extends X.j{}return R.\u0275fac=(()=>{let $e;return function(Ze){return($e||($e=h.n5z(R)))(Ze||R)}})(),R.\u0275dir=h.lG2({type:R,selectors:[["","routerLink","",5,"a",5,"area"]],features:[h.qOj]}),R})();const di={provide:p.Cf,useExisting:(0,h.Gpc)(()=>Kn),multi:!0};let Kn=(()=>{class R extends p.Fd{}return R.\u0275fac=(()=>{let $e;return function(Ze){return($e||($e=h.n5z(R)))(Ze||R)}})(),R.\u0275dir=h.lG2({type:R,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(H,Ze){2&H&&h.uIk("max",Ze._enabled?Ze.max:null)},features:[h._Bn([di]),h.qOj]}),R})();const Xi={provide:p.Cf,useExisting:(0,h.Gpc)(()=>J),multi:!0};let J=(()=>{class R extends p.qQ{}return R.\u0275fac=(()=>{let $e;return function(Ze){return($e||($e=h.n5z(R)))(Ze||R)}})(),R.\u0275dir=h.lG2({type:R,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(H,Ze){2&H&&h.uIk("min",Ze._enabled?Ze.min:null)},features:[h._Bn([Xi]),h.qOj]}),R})(),be=(()=>{class R extends X.xs{constructor(){super(Ye.a)}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275prov=h.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),mt=(()=>{class R extends X.xs{constructor(){super(Ye.b)}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275prov=h.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),jt=(()=>{class R extends X.xs{constructor(){super(Ye.l)}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275prov=h.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),$n=(()=>{class R extends X.xs{constructor(){super(Ye.m),this.angularDelegate=(0,h.f3M)(X.y4),this.injector=(0,h.f3M)(h.zs3),this.environmentInjector=(0,h.f3M)(h.lqb)}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275prov=h.Yz7({token:R,factory:R.\u0275fac}),R})();class Ln extends X.xs{constructor(){super(Ye.c),this.angularDelegate=(0,h.f3M)(X.y4),this.injector=(0,h.f3M)(h.zs3),this.environmentInjector=(0,h.f3M)(h.lqb)}create($e){return super.create({...$e,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}let ci=(()=>{class R extends X.xs{constructor(){super(Ye.t)}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275prov=h.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})();const Ri=(R,$e,H)=>()=>{if($e.defaultView&&typeof window<"u"){(0,De.s)({...R,_zoneGate:Vi=>H.run(Vi)});const Bt="__zone_symbol__addEventListener"in $e.body?"__zone_symbol__addEventListener":"addEventListener";return function Ne(){var R=[];if(typeof window<"u"){var $e=window;(!$e.customElements||$e.Element&&(!$e.Element.prototype.closest||!$e.Element.prototype.matches||!$e.Element.prototype.remove||!$e.Element.prototype.getRootNode))&&R.push(S.e(6748).then(S.t.bind(S,3342,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||$e.NodeList&&!$e.NodeList.prototype.forEach||!$e.fetch||!function(){try{var Ze=new URL("b","http://a");return Ze.pathname="c%20d","http://a/c%20d"===Ze.href&&Ze.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&R.push(S.e(2214).then(S.t.bind(S,2668,23)))}return Promise.all(R)}().then(()=>((R,$e)=>{if(!(typeof window>"u"))return Ae(),(0,de.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"legacy":[4],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"counterFormatter":["counterFormatterChanged"]}],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[33,"ion-note",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"],"checked":["styleChanged"],"color":["styleChanged"],"disabled":["styleChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]},null,{"value":["valueChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"legacy":[4]},null,{"checked":["styleChanged"],"disabled":["styleChanged"]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]]]'),$e)})(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:X.Wn,jmp:Vi=>H.runOutsideAngular(Vi),ael(Vi,Tr,ji,Ko){Vi[Bt](Tr,ji,Ko)},rel(Vi,Tr,ji,Ko){Vi.removeEventListener(Tr,ji,Ko)}}))}};let ur=(()=>{class R{static forRoot(H){return{ngModule:R,providers:[{provide:X.dy,useValue:H},{provide:h.ip1,useFactory:Ri,multi:!0,deps:[X.dy,K.K0,h.R0b]},(0,X.DN)()]}}}return R.\u0275fac=function(H){return new(H||R)},R.\u0275mod=h.oAB({type:R}),R.\u0275inj=h.cJS({providers:[X.y4,$n,Ln],imports:[K.ez]}),R})()},3999:(zn,wt,S)=>{"use strict";S.d(wt,{Zw:()=>Ye,aw:()=>ke,X$:()=>$t,sK:()=>cn});var h=S(8564),p=S(2096),X=S(2664),a=S(9315),j=S(5211),K=S(4911),C=S(8180),oe=S(8645),_e=S(4552);class Le extends oe.x{constructor(Oe=1/0,ie=1/0,it=_e.l){super(),this._bufferSize=Oe,this._windowTime=ie,this._timestampProvider=it,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=ie===1/0,this._bufferSize=Math.max(1,Oe),this._windowTime=Math.max(1,ie)}next(Oe){const{isStopped:ie,_buffer:it,_infiniteTimeWindow:_t,_timestampProvider:Kt,_windowTime:Mn}=this;ie||(it.push(Oe),!_t&&it.push(Kt.now()+Mn)),this._trimBuffer(),super.next(Oe)}_subscribe(Oe){this._throwIfClosed(),this._trimBuffer();const ie=this._innerSubscribe(Oe),{_infiniteTimeWindow:it,_buffer:_t}=this,Kt=_t.slice();for(let Mn=0;Mnnew Le(it,Oe,ie),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:_t})}var ye=S(7398),De=S(6328),me=S(4664);class Ye{}let Ce=(()=>{class pe extends Ye{getTranslation(ie){return(0,p.of)({})}static \u0275fac=(()=>{let ie;return function(_t){return(ie||(ie=h.n5z(pe)))(_t||pe)}})();static \u0275prov=h.Yz7({token:pe,factory:pe.\u0275fac})}return pe})();class de{}let Pe=(()=>{class pe{handle(ie){return ie.key}static \u0275fac=function(it){return new(it||pe)};static \u0275prov=h.Yz7({token:pe,factory:pe.\u0275fac})}return pe})();function Be(pe,Oe){if(pe===Oe)return!0;if(null===pe||null===Oe)return!1;if(pe!=pe&&Oe!=Oe)return!0;let _t,Kt,Mn,ie=typeof pe;if(ie==typeof Oe&&"object"==ie){if(!Array.isArray(pe)){if(Array.isArray(Oe))return!1;for(Kt in Mn=Object.create(null),pe){if(!Be(pe[Kt],Oe[Kt]))return!1;Mn[Kt]=!0}for(Kt in Oe)if(!(Kt in Mn)&&typeof Oe[Kt]<"u")return!1;return!0}if(!Array.isArray(Oe))return!1;if((_t=pe.length)==Oe.length){for(Kt=0;Kt<_t;Kt++)if(!Be(pe[Kt],Oe[Kt]))return!1;return!0}}return!1}function Ne(pe){return typeof pe<"u"&&null!==pe}function Ae(pe){return pe&&"object"==typeof pe&&!Array.isArray(pe)}function Ge(pe,Oe){let ie=Object.assign({},pe);return Ae(pe)&&Ae(Oe)&&Object.keys(Oe).forEach(it=>{Ae(Oe[it])?it in pe?ie[it]=Ge(pe[it],Oe[it]):Object.assign(ie,{[it]:Oe[it]}):Object.assign(ie,{[it]:Oe[it]})}),ie}class lt{}let ne=(()=>{class pe extends lt{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(ie,it){let _t;return _t="string"==typeof ie?this.interpolateString(ie,it):"function"==typeof ie?this.interpolateFunction(ie,it):ie,_t}getValue(ie,it){let _t="string"==typeof it?it.split("."):[it];it="";do{it+=_t.shift(),!Ne(ie)||!Ne(ie[it])||"object"!=typeof ie[it]&&_t.length?_t.length?it+=".":ie=void 0:(ie=ie[it],it="")}while(_t.length);return ie}interpolateFunction(ie,it){return ie(it)}interpolateString(ie,it){return it?ie.replace(this.templateMatcher,(_t,Kt)=>{let Mn=this.getValue(it,Kt);return Ne(Mn)?Mn:_t}):ie}static \u0275fac=(()=>{let ie;return function(_t){return(ie||(ie=h.n5z(pe)))(_t||pe)}})();static \u0275prov=h.Yz7({token:pe,factory:pe.\u0275fac})}return pe})();class Ee{}let xe=(()=>{class pe extends Ee{compile(ie,it){return ie}compileTranslations(ie,it){return ie}static \u0275fac=(()=>{let ie;return function(_t){return(ie||(ie=h.n5z(pe)))(_t||pe)}})();static \u0275prov=h.Yz7({token:pe,factory:pe.\u0275fac})}return pe})();class je{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new h.vpe;onLangChange=new h.vpe;onDefaultLangChange=new h.vpe}const Se=new h.OlP("USE_STORE"),Ve=new h.OlP("USE_DEFAULT_LANG"),Xe=new h.OlP("DEFAULT_LANGUAGE"),Ht=new h.OlP("USE_EXTEND");let cn=(()=>{class pe{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new h.vpe;_onLangChange=new h.vpe;_onDefaultLangChange=new h.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(ie){this.isolate?this._defaultLang=ie:this.store.defaultLang=ie}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(ie){this.isolate?this._currentLang=ie:this.store.currentLang=ie}get langs(){return this.isolate?this._langs:this.store.langs}set langs(ie){this.isolate?this._langs=ie:this.store.langs=ie}get translations(){return this.isolate?this._translations:this.store.translations}set translations(ie){this.isolate?this._translations=ie:this.store.translations=ie}constructor(ie,it,_t,Kt,Mn,fn=!0,qn=!1,li=!1,en){this.store=ie,this.currentLoader=it,this.compiler=_t,this.parser=Kt,this.missingTranslationHandler=Mn,this.useDefaultLang=fn,this.isolate=qn,this.extend=li,en&&this.setDefaultLang(en)}setDefaultLang(ie){if(ie===this.defaultLang)return;let it=this.retrieveTranslations(ie);typeof it<"u"?(null==this.defaultLang&&(this.defaultLang=ie),it.pipe((0,C.q)(1)).subscribe(_t=>{this.changeDefaultLang(ie)})):this.changeDefaultLang(ie)}getDefaultLang(){return this.defaultLang}use(ie){if(ie===this.currentLang)return(0,p.of)(this.translations[ie]);let it=this.retrieveTranslations(ie);return typeof it<"u"?(this.currentLang||(this.currentLang=ie),it.pipe((0,C.q)(1)).subscribe(_t=>{this.changeLang(ie)}),it):(this.changeLang(ie),(0,p.of)(this.translations[ie]))}retrieveTranslations(ie){let it;return(typeof this.translations[ie]>"u"||this.extend)&&(this._translationRequests[ie]=this._translationRequests[ie]||this.getTranslation(ie),it=this._translationRequests[ie]),it}getTranslation(ie){this.pending=!0;const it=this.currentLoader.getTranslation(ie).pipe(Te(1),(0,C.q)(1));return this.loadingTranslations=it.pipe((0,ye.U)(_t=>this.compiler.compileTranslations(_t,ie)),Te(1),(0,C.q)(1)),this.loadingTranslations.subscribe({next:_t=>{this.translations[ie]=this.extend&&this.translations[ie]?{..._t,...this.translations[ie]}:_t,this.updateLangs(),this.pending=!1},error:_t=>{this.pending=!1}}),it}setTranslation(ie,it,_t=!1){it=this.compiler.compileTranslations(it,ie),this.translations[ie]=(_t||this.extend)&&this.translations[ie]?Ge(this.translations[ie],it):it,this.updateLangs(),this.onTranslationChange.emit({lang:ie,translations:this.translations[ie]})}getLangs(){return this.langs}addLangs(ie){ie.forEach(it=>{-1===this.langs.indexOf(it)&&this.langs.push(it)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(ie,it,_t){let Kt;if(it instanceof Array){let Mn={},fn=!1;for(let qn of it)Mn[qn]=this.getParsedResult(ie,qn,_t),(0,X.b)(Mn[qn])&&(fn=!0);if(fn){const qn=it.map(li=>(0,X.b)(Mn[li])?Mn[li]:(0,p.of)(Mn[li]));return(0,a.D)(qn).pipe((0,ye.U)(li=>{let en={};return li.forEach((Dt,Ie)=>{en[it[Ie]]=Dt}),en}))}return Mn}if(ie&&(Kt=this.parser.interpolate(this.parser.getValue(ie,it),_t)),typeof Kt>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(Kt=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],it),_t)),typeof Kt>"u"){let Mn={key:it,translateService:this};typeof _t<"u"&&(Mn.interpolateParams=_t),Kt=this.missingTranslationHandler.handle(Mn)}return typeof Kt<"u"?Kt:it}get(ie,it){if(!Ne(ie)||!ie.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,De.b)(_t=>(_t=this.getParsedResult(_t,ie,it),(0,X.b)(_t)?_t:(0,p.of)(_t))));{let _t=this.getParsedResult(this.translations[this.currentLang],ie,it);return(0,X.b)(_t)?_t:(0,p.of)(_t)}}getStreamOnTranslationChange(ie,it){if(!Ne(ie)||!ie.length)throw new Error('Parameter "key" required');return(0,j.z)((0,K.P)(()=>this.get(ie,it)),this.onTranslationChange.pipe((0,me.w)(_t=>{const Kt=this.getParsedResult(_t.translations,ie,it);return"function"==typeof Kt.subscribe?Kt:(0,p.of)(Kt)})))}stream(ie,it){if(!Ne(ie)||!ie.length)throw new Error('Parameter "key" required');return(0,j.z)((0,K.P)(()=>this.get(ie,it)),this.onLangChange.pipe((0,me.w)(_t=>{const Kt=this.getParsedResult(_t.translations,ie,it);return(0,X.b)(Kt)?Kt:(0,p.of)(Kt)})))}instant(ie,it){if(!Ne(ie)||!ie.length)throw new Error('Parameter "key" required');let _t=this.getParsedResult(this.translations[this.currentLang],ie,it);if((0,X.b)(_t)){if(ie instanceof Array){let Kt={};return ie.forEach((Mn,fn)=>{Kt[ie[fn]]=ie[fn]}),Kt}return ie}return _t}set(ie,it,_t=this.currentLang){this.translations[_t][ie]=this.compiler.compile(it,_t),this.updateLangs(),this.onTranslationChange.emit({lang:_t,translations:this.translations[_t]})}changeLang(ie){this.currentLang=ie,this.onLangChange.emit({lang:ie,translations:this.translations[ie]}),null==this.defaultLang&&this.changeDefaultLang(ie)}changeDefaultLang(ie){this.defaultLang=ie,this.onDefaultLangChange.emit({lang:ie,translations:this.translations[ie]})}reloadLang(ie){return this.resetLang(ie),this.getTranslation(ie)}resetLang(ie){this._translationRequests[ie]=void 0,this.translations[ie]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ie=window.navigator.languages?window.navigator.languages[0]:null;return ie=ie||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof ie>"u"?void 0:(-1!==ie.indexOf("-")&&(ie=ie.split("-")[0]),-1!==ie.indexOf("_")&&(ie=ie.split("_")[0]),ie)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let ie=window.navigator.languages?window.navigator.languages[0]:null;return ie=ie||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,ie}static \u0275fac=function(it){return new(it||pe)(h.LFG(je),h.LFG(Ye),h.LFG(Ee),h.LFG(lt),h.LFG(de),h.LFG(Ve),h.LFG(Se),h.LFG(Ht),h.LFG(Xe))};static \u0275prov=h.Yz7({token:pe,factory:pe.\u0275fac})}return pe})(),$t=(()=>{class pe{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(ie,it){this.translate=ie,this._ref=it}updateValue(ie,it,_t){let Kt=Mn=>{this.value=void 0!==Mn?Mn:ie,this.lastKey=ie,this._ref.markForCheck()};if(_t){let Mn=this.translate.getParsedResult(_t,ie,it);(0,X.b)(Mn.subscribe)?Mn.subscribe(Kt):Kt(Mn)}this.translate.get(ie,it).subscribe(Kt)}transform(ie,...it){if(!ie||!ie.length)return ie;if(Be(ie,this.lastKey)&&Be(it,this.lastParams))return this.value;let _t;if(Ne(it[0])&&it.length)if("string"==typeof it[0]&&it[0].length){let Kt=it[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{_t=JSON.parse(Kt)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${it[0]}`)}}else"object"==typeof it[0]&&!Array.isArray(it[0])&&(_t=it[0]);return this.lastKey=ie,this.lastParams=it,this.updateValue(ie,_t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(Kt=>{this.lastKey&&Kt.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(ie,_t,Kt.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(Kt=>{this.lastKey&&(this.lastKey=null,this.updateValue(ie,_t,Kt.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(ie,_t))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(it){return new(it||pe)(h.Y36(cn,16),h.Y36(h.sBO,16))};static \u0275pipe=h.Yjl({name:"translate",type:pe,pure:!1});static \u0275prov=h.Yz7({token:pe,factory:pe.\u0275fac})}return pe})(),ke=(()=>{class pe{static forRoot(ie={}){return{ngModule:pe,providers:[ie.loader||{provide:Ye,useClass:Ce},ie.compiler||{provide:Ee,useClass:xe},ie.parser||{provide:lt,useClass:ne},ie.missingTranslationHandler||{provide:de,useClass:Pe},je,{provide:Se,useValue:ie.isolate},{provide:Ve,useValue:ie.useDefaultLang},{provide:Ht,useValue:ie.extend},{provide:Xe,useValue:ie.defaultLanguage},cn]}}static forChild(ie={}){return{ngModule:pe,providers:[ie.loader||{provide:Ye,useClass:Ce},ie.compiler||{provide:Ee,useClass:xe},ie.parser||{provide:lt,useClass:ne},ie.missingTranslationHandler||{provide:de,useClass:Pe},{provide:Se,useValue:ie.isolate},{provide:Ve,useValue:ie.useDefaultLang},{provide:Ht,useValue:ie.extend},{provide:Xe,useValue:ie.defaultLanguage},cn]}}static \u0275fac=function(it){return new(it||pe)};static \u0275mod=h.oAB({type:pe});static \u0275inj=h.cJS({})}return pe})()},5861:(zn,wt,S)=>{"use strict";function h(X,a,j,K,C,oe,_e){try{var Le=X[oe](_e),ee=Le.value}catch(Te){return void j(Te)}Le.done?a(ee):Promise.resolve(ee).then(K,C)}function p(X){return function(){var a=this,j=arguments;return new Promise(function(K,C){var oe=X.apply(a,j);function _e(ee){h(oe,K,C,_e,Le,"next",ee)}function Le(ee){h(oe,K,C,_e,Le,"throw",ee)}_e(void 0)})}}S.d(wt,{Z:()=>p})},7582:(zn,wt,S)=>{"use strict";function j(ke,pe,Oe,ie){var Kt,it=arguments.length,_t=it<3?pe:null===ie?ie=Object.getOwnPropertyDescriptor(pe,Oe):ie;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_t=Reflect.decorate(ke,pe,Oe,ie);else for(var Mn=ke.length-1;Mn>=0;Mn--)(Kt=ke[Mn])&&(_t=(it<3?Kt(_t):it>3?Kt(pe,Oe,_t):Kt(pe,Oe))||_t);return it>3&&_t&&Object.defineProperty(pe,Oe,_t),_t}function Te(ke,pe,Oe,ie){return new(Oe||(Oe=Promise))(function(_t,Kt){function Mn(li){try{qn(ie.next(li))}catch(en){Kt(en)}}function fn(li){try{qn(ie.throw(li))}catch(en){Kt(en)}}function qn(li){li.done?_t(li.value):function it(_t){return _t instanceof Oe?_t:new Oe(function(Kt){Kt(_t)})}(li.value).then(Mn,fn)}qn((ie=ie.apply(ke,pe||[])).next())})}function Ne(ke){return this instanceof Ne?(this.v=ke,this):new Ne(ke)}function Ae(ke,pe,Oe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var it,ie=Oe.apply(ke,pe||[]),_t=[];return it={},Kt("next"),Kt("throw"),Kt("return"),it[Symbol.asyncIterator]=function(){return this},it;function Kt(Dt){ie[Dt]&&(it[Dt]=function(Ie){return new Promise(function(Ct,on){_t.push([Dt,Ie,Ct,on])>1||Mn(Dt,Ie)})})}function Mn(Dt,Ie){try{!function fn(Dt){Dt.value instanceof Ne?Promise.resolve(Dt.value.v).then(qn,li):en(_t[0][2],Dt)}(ie[Dt](Ie))}catch(Ct){en(_t[0][3],Ct)}}function qn(Dt){Mn("next",Dt)}function li(Dt){Mn("throw",Dt)}function en(Dt,Ie){Dt(Ie),_t.shift(),_t.length&&Mn(_t[0][0],_t[0][1])}}function lt(ke){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Oe,pe=ke[Symbol.asyncIterator];return pe?pe.call(ke):(ke=function Ye(ke){var pe="function"==typeof Symbol&&Symbol.iterator,Oe=pe&&ke[pe],ie=0;if(Oe)return Oe.call(ke);if(ke&&"number"==typeof ke.length)return{next:function(){return ke&&ie>=ke.length&&(ke=void 0),{value:ke&&ke[ie++],done:!ke}}};throw new TypeError(pe?"Object is not iterable.":"Symbol.iterator is not defined.")}(ke),Oe={},ie("next"),ie("throw"),ie("return"),Oe[Symbol.asyncIterator]=function(){return this},Oe);function ie(_t){Oe[_t]=ke[_t]&&function(Kt){return new Promise(function(Mn,fn){!function it(_t,Kt,Mn,fn){Promise.resolve(fn).then(function(qn){_t({value:qn,done:Mn})},Kt)}(Mn,fn,(Kt=ke[_t](Kt)).done,Kt.value)})}}}S.d(wt,{FC:()=>Ae,KL:()=>lt,gn:()=>j,mG:()=>Te,qq:()=>Ne}),"function"==typeof SuppressedError&&SuppressedError}},zn=>{zn(zn.s=3108)}]); \ No newline at end of file diff --git a/main.778056336ac5de0e.js b/main.778056336ac5de0e.js new file mode 100644 index 00000000..22d51b5e --- /dev/null +++ b/main.778056336ac5de0e.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[179],{2726:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Uw:()=>Ce,fo:()=>Me});var h=P(5861);typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"&&global;var ie=function(De){return De.Unimplemented="UNIMPLEMENTED",De.Unavailable="UNAVAILABLE",De}(ie||{});class fe extends Error{constructor(ze,Ke,Ht){super(ze),this.message=ze,this.code=Ke,this.data=Ht}}const K=De=>{var ze,Ke,Ht,dn,_n;const Ut=De.CapacitorCustomPlatform||null,We=De.Capacitor||{},Ne=We.Plugins=We.Plugins||{},ke=De.CapacitorPlatforms,Qt=(null===(ze=ke?.currentPlatform)||void 0===ze?void 0:ze.getPlatform)||(()=>null!==Ut?Ut.name:(De=>{var ze,Ke;return De?.androidBridge?"android":null!==(Ke=null===(ze=De?.webkit)||void 0===ze?void 0:ze.messageHandlers)&&void 0!==Ke&&Ke.bridge?"ios":"web"})(De)),an=(null===(Ke=ke?.currentPlatform)||void 0===Ke?void 0:Ke.isNativePlatform)||(()=>"web"!==Qt()),pt=(null===(Ht=ke?.currentPlatform)||void 0===Ht?void 0:Ht.isPluginAvailable)||(hn=>{const Yt=pe.get(hn);return!(!Yt?.platforms.has(Qt())&&!bn(hn))}),bn=(null===(dn=ke?.currentPlatform)||void 0===dn?void 0:dn.getPluginHeader)||(hn=>{var Yt;return null===(Yt=We.PluginHeaders)||void 0===Yt?void 0:Yt.find(Ft=>Ft.name===hn)}),pe=new Map,Zt=(null===(_n=ke?.currentPlatform)||void 0===_n?void 0:_n.registerPlugin)||((hn,Yt={})=>{const Ft=pe.get(hn);if(Ft)return console.warn(`Capacitor plugin "${hn}" already registered. Cannot register plugins twice.`),Ft.proxy;const Un=Qt(),Ve=bn(hn);let Pt;const Kt=function(){var Ei=(0,h.Z)(function*(){return!Pt&&Un in Yt?Pt=Pt="function"==typeof Yt[Un]?yield Yt[Un]():Yt[Un]:null!==Ut&&!Pt&&"web"in Yt&&(Pt=Pt="function"==typeof Yt.web?yield Yt.web():Yt.web),Pt});return function(){return Ei.apply(this,arguments)}}(),ei=Ei=>{let fn;const Li=(...gn)=>{const Fn=Kt().then(Jt=>{const Bi=((Ei,fn)=>{var Li,gn;if(!Ve){if(Ei)return null===(gn=Ei[fn])||void 0===gn?void 0:gn.bind(Ei);throw new fe(`"${hn}" plugin is not implemented on ${Un}`,ie.Unimplemented)}{const Fn=Ve?.methods.find(Jt=>fn===Jt.name);if(Fn)return"promise"===Fn.rtype?Jt=>We.nativePromise(hn,fn.toString(),Jt):(Jt,Bi)=>We.nativeCallback(hn,fn.toString(),Jt,Bi);if(Ei)return null===(Li=Ei[fn])||void 0===Li?void 0:Li.bind(Ei)}})(Jt,Ei);if(Bi){const ut=Bi(...gn);return fn=ut?.remove,ut}throw new fe(`"${hn}.${Ei}()" is not implemented on ${Un}`,ie.Unimplemented)});return"addListener"===Ei&&(Fn.remove=(0,h.Z)(function*(){return fn()})),Fn};return Li.toString=()=>`${Ei.toString()}() { [capacitor code] }`,Object.defineProperty(Li,"name",{value:Ei,writable:!1,configurable:!1}),Li},di=ei("addListener"),Lr=ei("removeListener"),Mi=(Ei,fn)=>{const Li=di({eventName:Ei},fn),gn=function(){var Jt=(0,h.Z)(function*(){const Bi=yield Li;Lr({eventName:Ei,callbackId:Bi},fn)});return function(){return Jt.apply(this,arguments)}}(),Fn=new Promise(Jt=>Li.then(()=>Jt({remove:gn})));return Fn.remove=(0,h.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield gn()}),Fn},dr=new Proxy({},{get(Ei,fn){switch(fn){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return Ve?Mi:di;case"removeListener":return Lr;default:return ei(fn)}}});return Ne[hn]=dr,pe.set(hn,{name:hn,proxy:dr,platforms:new Set([...Object.keys(Yt),...Ve?[Un]:[]])}),dr});return We.convertFileSrc||(We.convertFileSrc=hn=>hn),We.getPlatform=Qt,We.handleError=hn=>De.console.error(hn),We.isNativePlatform=an,We.isPluginAvailable=pt,We.pluginMethodNoop=(hn,Yt,Ft)=>Promise.reject(`${Ft} does not have an implementation of "${Yt}".`),We.registerPlugin=Zt,We.Exception=fe,We.DEBUG=!!We.DEBUG,We.isLoggingEnabled=!!We.isLoggingEnabled,We.platform=We.getPlatform(),We.isNative=We.isNativePlatform(),We},Te=(De=>De.Capacitor=K(De))(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Me=Te.registerPlugin;class Ce{constructor(ze){this.listeners={},this.windowListeners={},ze&&(console.warn(`Capacitor WebPlugin "${ze.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=ze)}addListener(ze,Ke){var Ht=this;this.listeners[ze]||(this.listeners[ze]=[]),this.listeners[ze].push(Ke);const _n=this.windowListeners[ze];_n&&!_n.registered&&this.addWindowListener(_n);const Ut=function(){var Ne=(0,h.Z)(function*(){return Ht.removeListener(ze,Ke)});return function(){return Ne.apply(this,arguments)}}(),We=Promise.resolve({remove:Ut});return Object.defineProperty(We,"remove",{value:(Ne=(0,h.Z)(function*(){console.warn("Using addListener() without 'await' is deprecated."),yield Ut()}),function(){return Ne.apply(this,arguments)})}),We;var Ne}removeAllListeners(){var ze=this;return(0,h.Z)(function*(){ze.listeners={};for(const Ke in ze.windowListeners)ze.removeWindowListener(ze.windowListeners[Ke]);ze.windowListeners={}})()}notifyListeners(ze,Ke){const Ht=this.listeners[ze];Ht&&Ht.forEach(dn=>dn(Ke))}hasListeners(ze){return!!this.listeners[ze].length}registerWindowListener(ze,Ke){this.windowListeners[Ke]={registered:!1,windowEventName:ze,pluginEventName:Ke,handler:Ht=>{this.notifyListeners(Ke,Ht)}}}unimplemented(ze="not implemented"){return new Te.Exception(ze,ie.Unimplemented)}unavailable(ze="not available"){return new Te.Exception(ze,ie.Unavailable)}removeListener(ze,Ke){var Ht=this;return(0,h.Z)(function*(){const dn=Ht.listeners[ze];if(!dn)return;const _n=dn.indexOf(Ke);Ht.listeners[ze].splice(_n,1),Ht.listeners[ze].length||Ht.removeWindowListener(Ht.windowListeners[ze])})()}addWindowListener(ze){window.addEventListener(ze.windowEventName,ze.handler),ze.registered=!0}removeWindowListener(ze){ze&&(window.removeEventListener(ze.windowEventName,ze.handler),ze.registered=!1)}}const xe=De=>encodeURIComponent(De).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),Ie=De=>De.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class Ae extends Ce{getCookies(){return(0,h.Z)(function*(){const ze=document.cookie,Ke={};return ze.split(";").forEach(Ht=>{if(Ht.length<=0)return;let[dn,_n]=Ht.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");dn=Ie(dn).trim(),_n=Ie(_n).trim(),Ke[dn]=_n}),Ke})()}setCookie(ze){return(0,h.Z)(function*(){try{const Ke=xe(ze.key),Ht=xe(ze.value),dn=`; expires=${(ze.expires||"").replace("expires=","")}`,_n=(ze.path||"/").replace("path=",""),Ut=null!=ze.url&&ze.url.length>0?`domain=${ze.url}`:"";document.cookie=`${Ke}=${Ht||""}${dn}; path=${_n}; ${Ut};`}catch(Ke){return Promise.reject(Ke)}})()}deleteCookie(ze){return(0,h.Z)(function*(){try{document.cookie=`${ze.key}=; Max-Age=0`}catch(Ke){return Promise.reject(Ke)}})()}clearCookies(){return(0,h.Z)(function*(){try{const ze=document.cookie.split(";")||[];for(const Ke of ze)document.cookie=Ke.replace(/^ +/,"").replace(/=.*/,`=;expires=${(new Date).toUTCString()};path=/`)}catch(ze){return Promise.reject(ze)}})()}clearAllCookies(){var ze=this;return(0,h.Z)(function*(){try{yield ze.clearCookies()}catch(Ke){return Promise.reject(Ke)}})()}}Me("CapacitorCookies",{web:()=>new Ae});const Ue=function(){var De=(0,h.Z)(function*(ze){return new Promise((Ke,Ht)=>{const dn=new FileReader;dn.onload=()=>{const _n=dn.result;Ke(_n.indexOf(",")>=0?_n.split(",")[1]:_n)},dn.onerror=_n=>Ht(_n),dn.readAsDataURL(ze)})});return function(Ke){return De.apply(this,arguments)}}();class me extends Ce{request(ze){return(0,h.Z)(function*(){const Ke=((De,ze={})=>{const Ke=Object.assign({method:De.method||"GET",headers:De.headers},ze),dn=((De={})=>{const ze=Object.keys(De);return Object.keys(De).map(dn=>dn.toLocaleLowerCase()).reduce((dn,_n,Ut)=>(dn[_n]=De[ze[Ut]],dn),{})})(De.headers)["content-type"]||"";if("string"==typeof De.data)Ke.body=De.data;else if(dn.includes("application/x-www-form-urlencoded")){const _n=new URLSearchParams;for(const[Ut,We]of Object.entries(De.data||{}))_n.set(Ut,We);Ke.body=_n.toString()}else if(dn.includes("multipart/form-data")){const _n=new FormData;if(De.data instanceof FormData)De.data.forEach((We,Ne)=>{_n.append(Ne,We)});else for(const We of Object.keys(De.data))_n.append(We,De.data[We]);Ke.body=_n;const Ut=new Headers(Ke.headers);Ut.delete("content-type"),Ke.headers=Ut}else(dn.includes("application/json")||"object"==typeof De.data)&&(Ke.body=JSON.stringify(De.data));return Ke})(ze,ze.webFetchExtra),Ht=((De,ze=!0)=>De?Object.entries(De).reduce((Ht,dn)=>{const[_n,Ut]=dn;let We,Ne;return Array.isArray(Ut)?(Ne="",Ut.forEach(ke=>{We=ze?encodeURIComponent(ke):ke,Ne+=`${_n}=${We}&`}),Ne.slice(0,-1)):(We=ze?encodeURIComponent(Ut):Ut,Ne=`${_n}=${We}`),`${Ht}&${Ne}`},"").substr(1):null)(ze.params,ze.shouldEncodeUrlParams),dn=Ht?`${ze.url}?${Ht}`:ze.url,_n=yield fetch(dn,Ke),Ut=_n.headers.get("content-type")||"";let Ne,ke,{responseType:We="text"}=_n.ok?ze:{};switch(Ut.includes("application/json")&&(We="json"),We){case"arraybuffer":case"blob":ke=yield _n.blob(),Ne=yield Ue(ke);break;case"json":Ne=yield _n.json();break;default:Ne=yield _n.text()}const it={};return _n.headers.forEach((Qt,mt)=>{it[mt]=Qt}),{data:Ne,headers:it,status:_n.status,url:_n.url}})()}get(ze){var Ke=this;return(0,h.Z)(function*(){return Ke.request(Object.assign(Object.assign({},ze),{method:"GET"}))})()}post(ze){var Ke=this;return(0,h.Z)(function*(){return Ke.request(Object.assign(Object.assign({},ze),{method:"POST"}))})()}put(ze){var Ke=this;return(0,h.Z)(function*(){return Ke.request(Object.assign(Object.assign({},ze),{method:"PUT"}))})()}patch(ze){var Ke=this;return(0,h.Z)(function*(){return Ke.request(Object.assign(Object.assign({},ze),{method:"PATCH"}))})()}delete(ze){var Ke=this;return(0,h.Z)(function*(){return Ke.request(Object.assign(Object.assign({},ze),{method:"DELETE"}))})()}}Me("CapacitorHttp",{web:()=>new me})},3630:(Bn,Ct,P)=>{"use strict";P.d(Ct,{c:()=>te,r:()=>K});const te=(X,ve)=>{X.componentOnReady?X.componentOnReady().then(me=>ve(me)):K(()=>ve(X))},K=X=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(X):"function"==typeof requestAnimationFrame?requestAnimationFrame(X):setTimeout(X)},191:(Bn,Ct,P)=>{"use strict";P.d(Ct,{L:()=>h,a:()=>m,b:()=>te,c:()=>l,d:()=>B,g:()=>X});const h="ionViewWillEnter",m="ionViewDidEnter",te="ionViewWillLeave",l="ionViewDidLeave",B="ionViewWillUnload",X=ve=>ve.classList.contains("ion-page")?ve:ve.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||ve},4913:(Bn,Ct,P)=>{"use strict";P.d(Ct,{c:()=>nt});var h=P(1848),m=P(512);let te;const B=Ce=>Ce.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y=Ce=>(void 0===te&&(te=void 0===Ce.style.animationName&&void 0!==Ce.style.webkitAnimationName?"-webkit-":""),te),C=(Ce,oe,xe)=>{const Ie=oe.startsWith("animation")?Y(Ce):"";Ce.style.setProperty(Ie+oe,xe)},ie=(Ce,oe)=>{const xe=oe.startsWith("animation")?Y(Ce):"";Ce.style.removeProperty(xe+oe)},K=[],de=(Ce=[],oe)=>{if(void 0!==oe){const xe=Array.isArray(oe)?oe:[oe];return[...Ce,...xe]}return Ce},nt=Ce=>{let oe,xe,Ie,Ae,ye,Ue,Fe,We,Ne,ke,it,tt,pt,ct=[],X=[],ve=[],me=!1,De={},ze=[],Ke=[],Ht={},dn=0,_n=!1,Ut=!1,Qt=!0,mt=!1,an=!0,Xt=!1;const bn=Ce,Cn=[],It=[],pe=[],lt=[],Zt=[],hn=[],Yt=[],Ft=[],Un=[],Ve=[],Pt=[],Kt="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,wn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Kt,di=()=>Pt,fn=(V,ue)=>{const Xe=ue.findIndex(_t=>_t.c===V);Xe>-1&&ue.splice(Xe,1)},gn=(V,ue)=>((ue?.oneTimeCallback?It:Cn).push({c:V,o:ue}),pt),Jt=()=>{if(wn)Pt.forEach(V=>{V.cancel()}),Pt.length=0;else{const V=lt.slice();(0,m.r)(()=>{V.forEach(ue=>{ie(ue,"animation-name"),ie(ue,"animation-duration"),ie(ue,"animation-timing-function"),ie(ue,"animation-iteration-count"),ie(ue,"animation-delay"),ie(ue,"animation-play-state"),ie(ue,"animation-fill-mode"),ie(ue,"animation-direction")})})}},Bi=()=>{hn.forEach(V=>{V?.parentNode&&V.parentNode.removeChild(V)}),hn.length=0},ae=()=>void 0!==ye?ye:Fe?Fe.getFill():"both",ft=()=>void 0!==Ne?Ne:void 0!==Ue?Ue:Fe?Fe.getDirection():"normal",Z=()=>_n?"linear":void 0!==Ie?Ie:Fe?Fe.getEasing():"linear",Re=()=>Ut?0:void 0!==ke?ke:void 0!==xe?xe:Fe?Fe.getDuration():0,st=()=>void 0!==Ae?Ae:Fe?Fe.getIterations():1,on=()=>void 0!==it?it:void 0!==oe?oe:Fe?Fe.getDelay():0,vr=()=>{0!==dn&&(dn--,0===dn&&((()=>{rr(),Un.forEach(Wt=>Wt()),Ve.forEach(Wt=>Wt());const V=Qt?1:0,ue=ze,Xe=Ke,_t=Ht;lt.forEach(Wt=>{const tn=Wt.classList;ue.forEach(vn=>tn.add(vn)),Xe.forEach(vn=>tn.remove(vn));for(const vn in _t)_t.hasOwnProperty(vn)&&C(Wt,vn,_t[vn])}),ke=void 0,Ne=void 0,it=void 0,Cn.forEach(Wt=>Wt.c(V,pt)),It.forEach(Wt=>Wt.c(V,pt)),It.length=0,an=!0,Qt&&(mt=!0),Qt=!0})(),Fe&&Fe.animationFinish()))},Vr=(V=!0)=>{Bi();const ue=(Ce=>(Ce.forEach(oe=>{for(const xe in oe)if(oe.hasOwnProperty(xe)){const Ie=oe[xe];if("easing"===xe)oe["animation-timing-function"]=Ie,delete oe[xe];else{const Ae=B(xe);Ae!==xe&&(oe[Ae]=Ie,delete oe[xe])}}}),Ce))(ct);lt.forEach(Xe=>{if(ue.length>0){const _t=((Ce=[])=>Ce.map(oe=>{const xe=oe.offset,Ie=[];for(const Ae in oe)oe.hasOwnProperty(Ae)&&"offset"!==Ae&&Ie.push(`${Ae}: ${oe[Ae]};`);return`${100*xe}% { ${Ie.join(" ")} }`}).join(" "))(ue);tt=void 0!==Ce?Ce:(Ce=>{let oe=K.indexOf(Ce);return oe<0&&(oe=K.push(Ce)-1),`ion-animation-${oe}`})(_t);const Wt=((Ce,oe,xe)=>{var Ie;const Ae=(Ce=>{const oe=void 0!==Ce.getRootNode?Ce.getRootNode():Ce;return oe.head||oe})(xe),ye=Y(xe),Ue=Ae.querySelector("#"+Ce);if(Ue)return Ue;const ct=(null!==(Ie=xe.ownerDocument)&&void 0!==Ie?Ie:document).createElement("style");return ct.id=Ce,ct.textContent=`@${ye}keyframes ${Ce} { ${oe} } @${ye}keyframes ${Ce}-alt { ${oe} }`,Ae.appendChild(ct),ct})(tt,_t,Xe);hn.push(Wt),C(Xe,"animation-duration",`${Re()}ms`),C(Xe,"animation-timing-function",Z()),C(Xe,"animation-delay",`${on()}ms`),C(Xe,"animation-fill-mode",ae()),C(Xe,"animation-direction",ft());const tn=st()===1/0?"infinite":st().toString();C(Xe,"animation-iteration-count",tn),C(Xe,"animation-play-state","paused"),V&&C(Xe,"animation-name",`${Wt.id}-alt`),(0,m.r)(()=>{C(Xe,"animation-name",Wt.id||null)})}})},qi=(V=!0)=>{(()=>{Yt.forEach(_t=>_t()),Ft.forEach(_t=>_t());const V=X,ue=ve,Xe=De;lt.forEach(_t=>{const Wt=_t.classList;V.forEach(tn=>Wt.add(tn)),ue.forEach(tn=>Wt.remove(tn));for(const tn in Xe)Xe.hasOwnProperty(tn)&&C(_t,tn,Xe[tn])})})(),ct.length>0&&(wn?(lt.forEach(V=>{const ue=V.animate(ct,{id:bn,delay:on(),duration:Re(),easing:Z(),iterations:st(),fill:ae(),direction:ft()});ue.pause(),Pt.push(ue)}),Pt.length>0&&(Pt[0].onfinish=()=>{vr()})):Vr(V)),me=!0},Qe=V=>{if(V=Math.min(Math.max(V,0),.9999),wn)Pt.forEach(ue=>{ue.currentTime=ue.effect.getComputedTiming().delay+Re()*V,ue.pause()});else{const ue=`-${Re()*V}ms`;lt.forEach(Xe=>{ct.length>0&&(C(Xe,"animation-delay",ue),C(Xe,"animation-play-state","paused"))})}},Tt=V=>{Pt.forEach(ue=>{ue.effect.updateTiming({delay:on(),duration:Re(),easing:Z(),iterations:st(),fill:ae(),direction:ft()})}),void 0!==V&&Qe(V)},Et=(V=!0,ue)=>{(0,m.r)(()=>{lt.forEach(Xe=>{C(Xe,"animation-name",tt||null),C(Xe,"animation-duration",`${Re()}ms`),C(Xe,"animation-timing-function",Z()),C(Xe,"animation-delay",void 0!==ue?`-${ue*Re()}ms`:`${on()}ms`),C(Xe,"animation-fill-mode",ae()||null),C(Xe,"animation-direction",ft()||null);const _t=st()===1/0?"infinite":st().toString();C(Xe,"animation-iteration-count",_t),V&&C(Xe,"animation-name",`${tt}-alt`),(0,m.r)(()=>{C(Xe,"animation-name",tt||null)})})})},ln=(V=!1,ue=!0,Xe)=>(V&&Zt.forEach(_t=>{_t.update(V,ue,Xe)}),wn?Tt(Xe):Et(ue,Xe),pt),Kn=()=>{me&&(wn?Pt.forEach(V=>{V.pause()}):lt.forEach(V=>{C(V,"animation-play-state","paused")}),Xt=!0)},ki=()=>{We=void 0,vr()},rr=()=>{We&&clearTimeout(We)},ee=V=>new Promise(ue=>{V?.sync&&(Ut=!0,gn(()=>Ut=!1,{oneTimeCallback:!0})),me||qi(),mt&&(wn?(Qe(0),Tt()):Et(),mt=!1),an&&(dn=Zt.length+1,an=!1);const Xe=()=>{fn(_t,It),ue()},_t=()=>{fn(Xe,pe),ue()};gn(_t,{oneTimeCallback:!0}),((V,ue)=>{pe.push({c:V,o:{oneTimeCallback:!0}})})(Xe),Zt.forEach(Wt=>{Wt.play()}),wn?(Pt.forEach(V=>{V.play()}),(0===ct.length||0===lt.length)&&vr()):(()=>{if(rr(),(0,m.r)(()=>{lt.forEach(V=>{ct.length>0&&C(V,"animation-play-state","running")})}),0===ct.length||0===lt.length)vr();else{const V=on()||0,ue=Re()||0,Xe=st()||1;isFinite(Xe)&&(We=setTimeout(ki,V+ue*Xe+100)),((Ce,oe)=>{let xe;const Ie={passive:!0},ye=Ue=>{Ce===Ue.target&&(xe&&xe(),rr(),(0,m.r)(()=>{lt.forEach(V=>{ie(V,"animation-duration"),ie(V,"animation-delay"),ie(V,"animation-play-state")}),(0,m.r)(vr)}))};Ce&&(Ce.addEventListener("webkitAnimationEnd",ye,Ie),Ce.addEventListener("animationend",ye,Ie),xe=()=>{Ce.removeEventListener("webkitAnimationEnd",ye,Ie),Ce.removeEventListener("animationend",ye,Ie)})})(lt[0])}})(),Xt=!1}),St=(V,ue)=>{const Xe=ct[0];return void 0===Xe||void 0!==Xe.offset&&0!==Xe.offset?ct=[{offset:0,[V]:ue},...ct]:Xe[V]=ue,pt};return pt={parentAnimation:Fe,elements:lt,childAnimations:Zt,id:bn,animationFinish:vr,from:St,to:(V,ue)=>{const Xe=ct[ct.length-1];return void 0===Xe||void 0!==Xe.offset&&1!==Xe.offset?ct=[...ct,{offset:1,[V]:ue}]:Xe[V]=ue,pt},fromTo:(V,ue,Xe)=>St(V,ue).to(V,Xe),parent:V=>(Fe=V,pt),play:ee,pause:()=>(Zt.forEach(V=>{V.pause()}),Kn(),pt),stop:()=>{Zt.forEach(V=>{V.stop()}),me&&(Jt(),me=!1),_n=!1,Ut=!1,an=!0,Ne=void 0,ke=void 0,it=void 0,dn=0,mt=!1,Qt=!0,Xt=!1,pe.forEach(V=>V.c(0,pt)),pe.length=0},destroy:V=>(Zt.forEach(ue=>{ue.destroy(V)}),(V=>{Jt(),V&&Bi()})(V),lt.length=0,Zt.length=0,ct.length=0,Cn.length=0,It.length=0,me=!1,an=!0,pt),keyframes:V=>{const ue=ct!==V;return ct=V,ue&&(V=>{wn?di().forEach(ue=>{const Xe=ue.effect;if(Xe.setKeyframes)Xe.setKeyframes(V);else{const _t=new KeyframeEffect(Xe.target,V,Xe.getTiming());ue.effect=_t}}):Vr()})(ct),pt},addAnimation:V=>{if(null!=V)if(Array.isArray(V))for(const ue of V)ue.parent(pt),Zt.push(ue);else V.parent(pt),Zt.push(V);return pt},addElement:V=>{if(null!=V)if(1===V.nodeType)lt.push(V);else if(V.length>=0)for(let ue=0;ue(ye=V,ln(!0),pt),direction:V=>(Ue=V,ln(!0),pt),iterations:V=>(Ae=V,ln(!0),pt),duration:V=>(!wn&&0===V&&(V=1),xe=V,ln(!0),pt),easing:V=>(Ie=V,ln(!0),pt),delay:V=>(oe=V,ln(!0),pt),getWebAnimations:di,getKeyframes:()=>ct,getFill:ae,getDirection:ft,getDelay:on,getIterations:st,getEasing:Z,getDuration:Re,afterAddRead:V=>(Un.push(V),pt),afterAddWrite:V=>(Ve.push(V),pt),afterClearStyles:(V=[])=>{for(const ue of V)Ht[ue]="";return pt},afterStyles:(V={})=>(Ht=V,pt),afterRemoveClass:V=>(Ke=de(Ke,V),pt),afterAddClass:V=>(ze=de(ze,V),pt),beforeAddRead:V=>(Yt.push(V),pt),beforeAddWrite:V=>(Ft.push(V),pt),beforeClearStyles:(V=[])=>{for(const ue of V)De[ue]="";return pt},beforeStyles:(V={})=>(De=V,pt),beforeRemoveClass:V=>(ve=de(ve,V),pt),beforeAddClass:V=>(X=de(X,V),pt),onFinish:gn,isRunning:()=>0!==dn&&!Xt,progressStart:(V=!1,ue)=>(Zt.forEach(Xe=>{Xe.progressStart(V,ue)}),Kn(),_n=V,me||qi(),ln(!1,!0,ue),pt),progressStep:V=>(Zt.forEach(ue=>{ue.progressStep(V)}),Qe(V),pt),progressEnd:(V,ue,Xe)=>(_n=!1,Zt.forEach(_t=>{_t.progressEnd(V,ue,Xe)}),void 0!==Xe&&(ke=Xe),mt=!1,Qt=!0,0===V?(Ne="reverse"===ft()?"normal":"reverse","reverse"===Ne&&(Qt=!1),wn?(ln(),Qe(1-ue)):(it=(1-ue)*Re()*-1,ln(!1,!1))):1===V&&(wn?(ln(),Qe(ue)):(it=ue*Re()*-1,ln(!1,!1))),void 0!==V&&!Fe&&ee(),pt)}}},8958:(Bn,Ct,P)=>{"use strict";P.d(Ct,{E:()=>Pe,a:()=>h,s:()=>ie});const h=K=>{try{if(K instanceof C)return K.value;if(!l()||"string"!=typeof K||""===K)return K;if(K.includes("onload="))return"";const be=document.createDocumentFragment(),Te=document.createElement("div");be.appendChild(Te),Te.innerHTML=K,Y.forEach(Ce=>{const oe=be.querySelectorAll(Ce);for(let xe=oe.length-1;xe>=0;xe--){const Ie=oe[xe];Ie.parentNode?Ie.parentNode.removeChild(Ie):be.removeChild(Ie);const Ae=te(Ie);for(let ye=0;ye{if(K.nodeType&&1!==K.nodeType)return;if(typeof NamedNodeMap<"u"&&!(K.attributes instanceof NamedNodeMap))return void K.remove();for(let Te=K.attributes.length-1;Te>=0;Te--){const Me=K.attributes.item(Te),de=Me.name;if(!B.includes(de.toLowerCase())){K.removeAttribute(de);continue}const nt=Me.value,Ce=K[de];(null!=nt&&nt.toLowerCase().includes("javascript:")||null!=Ce&&Ce.toLowerCase().includes("javascript:"))&&K.removeAttribute(de)}const be=te(K);for(let Te=0;Tenull!=K.children?K.children:K.childNodes,l=()=>{var K;const be=window,Te=null===(K=be?.Ionic)||void 0===K?void 0:K.config;return!Te||(Te.get?Te.get("sanitizerEnabled",!0):!0===Te.sanitizerEnabled||void 0===Te.sanitizerEnabled)},B=["class","id","href","src","name","slot"],Y=["script","style","iframe","meta","link","object","embed"];class C{constructor(be){this.value=be}}const ie=K=>{const be=window,Te=be.Ionic;if(!Te||!Te.config||"Object"===Te.config.constructor.name)return be.Ionic=be.Ionic||{},be.Ionic.config=Object.assign(Object.assign({},be.Ionic.config),K),be.Ionic.config},Pe=!1},3254:(Bn,Ct,P)=>{"use strict";P.d(Ct,{C:()=>B,a:()=>te,d:()=>l});var h=P(5861),m=P(512);const te=function(){var Y=(0,h.Z)(function*(C,ie,fe,Pe,K,be){var Te;if(C)return C.attachViewToDom(ie,fe,K,Pe);if(!(be||"string"==typeof fe||fe instanceof HTMLElement))throw new Error("framework delegate is missing");const Me="string"==typeof fe?null===(Te=ie.ownerDocument)||void 0===Te?void 0:Te.createElement(fe):fe;return Pe&&Pe.forEach(de=>Me.classList.add(de)),K&&Object.assign(Me,K),ie.appendChild(Me),yield new Promise(de=>(0,m.c)(Me,de)),Me});return function(ie,fe,Pe,K,be,Te){return Y.apply(this,arguments)}}(),l=(Y,C)=>{if(C){if(Y)return Y.removeViewFromDom(C.parentElement,C);C.remove()}return Promise.resolve()},B=()=>{let Y,C;return{attachViewToDom:function(){var Pe=(0,h.Z)(function*(K,be,Te={},Me=[]){var de,nt;let Ce;if(Y=K,be){const xe="string"==typeof be?null===(de=Y.ownerDocument)||void 0===de?void 0:de.createElement(be):be;Me.forEach(Ie=>xe.classList.add(Ie)),Object.assign(xe,Te),Y.appendChild(xe),Ce=xe,yield new Promise(Ie=>(0,m.c)(xe,Ie))}else if(Y.children.length>0&&("ION-MODAL"===Y.tagName||"ION-POPOVER"===Y.tagName)&&!(Ce=Y.children[0]).classList.contains("ion-delegate-host")){const Ie=null===(nt=Y.ownerDocument)||void 0===nt?void 0:nt.createElement("div");Ie.classList.add("ion-delegate-host"),Me.forEach(Ae=>Ie.classList.add(Ae)),Ie.append(...Y.children),Y.appendChild(Ie),Ce=Ie}const oe=document.querySelector("ion-app")||document.body;return C=document.createComment("ionic teleport"),Y.parentNode.insertBefore(C,Y),oe.appendChild(Y),Ce??Y});return function(be,Te){return Pe.apply(this,arguments)}}(),removeViewFromDom:()=>(Y&&C&&(C.parentNode.insertBefore(Y,C),C.remove()),Promise.resolve())}}},2019:(Bn,Ct,P)=>{"use strict";P.d(Ct,{G:()=>B});class m{constructor(C,ie,fe,Pe,K){this.id=ie,this.name=fe,this.disableScroll=K,this.priority=1e6*Pe+ie,this.ctrl=C}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const C=this.ctrl.capture(this.name,this.id,this.priority);return C&&this.disableScroll&&this.ctrl.disableScroll(this.id),C}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class te{constructor(C,ie,fe,Pe){this.id=ie,this.disable=fe,this.disableScroll=Pe,this.ctrl=C}block(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.disableGesture(C,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const C of this.disable)this.ctrl.enableGesture(C,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const l="backdrop-no-scroll",B=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(C){var ie;return new m(this,this.newID(),C.name,null!==(ie=C.priority)&&void 0!==ie?ie:0,!!C.disableScroll)}createBlocker(C={}){return new te(this,this.newID(),C.disable,!!C.disableScroll)}start(C,ie,fe){return this.canStart(C)?(this.requestedStart.set(ie,fe),!0):(this.requestedStart.delete(ie),!1)}capture(C,ie,fe){if(!this.start(C,ie,fe))return!1;const Pe=this.requestedStart;let K=-1e4;if(Pe.forEach(be=>{K=Math.max(K,be)}),K===fe){this.capturedId=ie,Pe.clear();const be=new CustomEvent("ionGestureCaptured",{detail:{gestureName:C}});return document.dispatchEvent(be),!0}return Pe.delete(ie),!1}release(C){this.requestedStart.delete(C),this.capturedId===C&&(this.capturedId=void 0)}disableGesture(C,ie){let fe=this.disabledGestures.get(C);void 0===fe&&(fe=new Set,this.disabledGestures.set(C,fe)),fe.add(ie)}enableGesture(C,ie){const fe=this.disabledGestures.get(C);void 0!==fe&&fe.delete(ie)}disableScroll(C){this.disabledScroll.add(C),1===this.disabledScroll.size&&document.body.classList.add(l)}enableScroll(C){this.disabledScroll.delete(C),0===this.disabledScroll.size&&document.body.classList.remove(l)}canStart(C){return!(void 0!==this.capturedId||this.isDisabled(C))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(C){const ie=this.disabledGestures.get(C);return!!(ie&&ie.size>0)}newID(){return this.gestureId++,this.gestureId}}},4393:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{MENU_BACK_BUTTON_PRIORITY:()=>B,OVERLAY_BACK_BUTTON_PRIORITY:()=>l,blockHardwareBackButton:()=>m,startHardwareBackButton:()=>te});var h=P(5861);const m=()=>{document.addEventListener("backbutton",()=>{})},te=()=>{const Y=document;let C=!1;Y.addEventListener("backbutton",()=>{if(C)return;let ie=0,fe=[];const Pe=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(Te,Me){fe.push({priority:Te,handler:Me,id:ie++})}}});Y.dispatchEvent(Pe);const K=function(){var Te=(0,h.Z)(function*(Me){try{if(Me?.handler){const de=Me.handler(be);null!=de&&(yield de)}}catch(de){console.error(de)}});return function(de){return Te.apply(this,arguments)}}(),be=()=>{if(fe.length>0){let Te={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};fe.forEach(Me=>{Me.priority>=Te.priority&&(Te=Me)}),C=!0,fe=fe.filter(Me=>Me.id!==Te.id),K(Te).then(()=>C=!1)}};be()})},l=100,B=99},512:(Bn,Ct,P)=>{"use strict";P.d(Ct,{a:()=>ie,b:()=>fe,c:()=>te,d:()=>nt,e:()=>de,f:()=>Me,g:()=>Pe,h:()=>Te,i:()=>C,j:()=>ye,k:()=>B,l:()=>Ce,m:()=>l,n:()=>be,o:()=>oe,p:()=>Ae,q:()=>Ue,r:()=>K,s:()=>ct,t:()=>h,u:()=>xe,v:()=>Ie});const h=(X,ve=0)=>new Promise(me=>{m(X,ve,me)}),m=(X,ve=0,me)=>{let Fe,De;const ze={passive:!0},Ht=()=>{Fe&&Fe()},dn=_n=>{(void 0===_n||X===_n.target)&&(Ht(),me(_n))};return X&&(X.addEventListener("webkitTransitionEnd",dn,ze),X.addEventListener("transitionend",dn,ze),De=setTimeout(dn,ve+500),Fe=()=>{De&&(clearTimeout(De),De=void 0),X.removeEventListener("webkitTransitionEnd",dn,ze),X.removeEventListener("transitionend",dn,ze)}),Ht},te=(X,ve)=>{X.componentOnReady?X.componentOnReady().then(me=>ve(me)):K(()=>ve(X))},l=X=>void 0!==X.componentOnReady,B=(X,ve=[])=>{const me={};return ve.forEach(Fe=>{X.hasAttribute(Fe)&&(null!==X.getAttribute(Fe)&&(me[Fe]=X.getAttribute(Fe)),X.removeAttribute(Fe))}),me},Y=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],C=(X,ve)=>{let me=Y;return ve&&ve.length>0&&(me=me.filter(Fe=>!ve.includes(Fe))),B(X,me)},ie=(X,ve,me,Fe)=>{var De;if(typeof window<"u"){const ze=window,Ke=null===(De=ze?.Ionic)||void 0===De?void 0:De.config;if(Ke){const Ht=Ke.get("_ael");if(Ht)return Ht(X,ve,me,Fe);if(Ke._ael)return Ke._ael(X,ve,me,Fe)}}return X.addEventListener(ve,me,Fe)},fe=(X,ve,me,Fe)=>{var De;if(typeof window<"u"){const ze=window,Ke=null===(De=ze?.Ionic)||void 0===De?void 0:De.config;if(Ke){const Ht=Ke.get("_rel");if(Ht)return Ht(X,ve,me,Fe);if(Ke._rel)return Ke._rel(X,ve,me,Fe)}}return X.removeEventListener(ve,me,Fe)},Pe=(X,ve=X)=>X.shadowRoot||ve,K=X=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(X):"function"==typeof requestAnimationFrame?requestAnimationFrame(X):setTimeout(X),be=X=>!!X.shadowRoot&&!!X.attachShadow,Te=X=>{const ve=X.closest("ion-item");return ve?ve.querySelector("ion-label"):null},Me=X=>{if(X.focus(),X.classList.contains("ion-focusable")){const ve=X.closest("ion-app");ve&&ve.setFocus([X])}},de=(X,ve)=>{let me;const Fe=X.getAttribute("aria-labelledby"),De=X.id;let ze=null!==Fe&&""!==Fe.trim()?Fe:ve+"-lbl",Ke=null!==Fe&&""!==Fe.trim()?document.getElementById(Fe):Te(X);return Ke?(null===Fe&&(Ke.id=ze),me=Ke.textContent,Ke.setAttribute("aria-hidden","true")):""!==De.trim()&&(Ke=document.querySelector(`label[for="${De}"]`),Ke&&(""!==Ke.id?ze=Ke.id:Ke.id=ze=`${De}-lbl`,me=Ke.textContent)),{label:Ke,labelId:ze,labelText:me}},nt=(X,ve,me,Fe,De)=>{if(X||be(ve)){let ze=ve.querySelector("input.aux-input");ze||(ze=ve.ownerDocument.createElement("input"),ze.type="hidden",ze.classList.add("aux-input"),ve.appendChild(ze)),ze.disabled=De,ze.name=me,ze.value=Fe||""}},Ce=(X,ve,me)=>Math.max(X,Math.min(ve,me)),oe=(X,ve)=>{if(!X){const me="ASSERT: "+ve;throw console.error(me),new Error(me)}},xe=X=>X.timeStamp||Date.now(),Ie=X=>{if(X){const ve=X.changedTouches;if(ve&&ve.length>0){const me=ve[0];return{x:me.clientX,y:me.clientY}}if(void 0!==X.pageX)return{x:X.pageX,y:X.pageY}}return{x:0,y:0}},Ae=X=>{const ve="rtl"===document.dir;switch(X){case"start":return ve;case"end":return!ve;default:throw new Error(`"${X}" is not a valid value for [side]. Use "start" or "end" instead.`)}},ye=(X,ve)=>{const me=X._original||X;return{_original:X,emit:Ue(me.emit.bind(me),ve)}},Ue=(X,ve=0)=>{let me;return(...Fe)=>{clearTimeout(me),me=setTimeout(X,ve,...Fe)}},ct=(X,ve)=>{if(X??(X={}),ve??(ve={}),X===ve)return!0;const me=Object.keys(X);if(me.length!==Object.keys(ve).length)return!1;for(const Fe of me)if(!(Fe in ve)||X[Fe]!==ve[Fe])return!1;return!0}},2413:(Bn,Ct,P)=>{"use strict";P.d(Ct,{m:()=>Te});var h=P(5861),m=P(1848),te=P(4393),l=P(2400),B=P(512),Y=P(5551),C=P(4913);const ie=Me=>(0,C.c)().duration(Me?400:300),fe=Me=>{let de,nt;const Ce=Me.width+8,oe=(0,C.c)(),xe=(0,C.c)();Me.isEndSide?(de=Ce+"px",nt="0px"):(de=-Ce+"px",nt="0px"),oe.addElement(Me.menuInnerEl).fromTo("transform",`translateX(${de})`,`translateX(${nt})`);const Ae="ios"===(0,Y.b)(Me),ye=Ae?.2:.25;return xe.addElement(Me.backdropEl).fromTo("opacity",.01,ye),ie(Ae).addAnimation([oe,xe])},Pe=Me=>{let de,nt;const Ce=(0,Y.b)(Me),oe=Me.width;Me.isEndSide?(de=-oe+"px",nt=oe+"px"):(de=oe+"px",nt=-oe+"px");const xe=(0,C.c)().addElement(Me.menuInnerEl).fromTo("transform",`translateX(${nt})`,"translateX(0px)"),Ie=(0,C.c)().addElement(Me.contentEl).fromTo("transform","translateX(0px)",`translateX(${de})`),Ae=(0,C.c)().addElement(Me.backdropEl).fromTo("opacity",.01,.32);return ie("ios"===Ce).addAnimation([xe,Ie,Ae])},K=Me=>{const de=(0,Y.b)(Me),nt=Me.width*(Me.isEndSide?-1:1)+"px",Ce=(0,C.c)().addElement(Me.contentEl).fromTo("transform","translateX(0px)",`translateX(${nt})`);return ie("ios"===de).addAnimation(Ce)},Te=(()=>{const Me=new Map,de=[],nt=function(){var Ne=(0,h.Z)(function*(ke){const it=yield Ue(ke,!0);return!!it&&it.open()});return function(it){return Ne.apply(this,arguments)}}(),Ce=function(){var Ne=(0,h.Z)(function*(ke){const it=yield void 0!==ke?Ue(ke,!0):ct();return void 0!==it&&it.close()});return function(it){return Ne.apply(this,arguments)}}(),oe=function(){var Ne=(0,h.Z)(function*(ke){const it=yield Ue(ke,!0);return!!it&&it.toggle()});return function(it){return Ne.apply(this,arguments)}}(),xe=function(){var Ne=(0,h.Z)(function*(ke,it){const Qt=yield Ue(it);return Qt&&(Qt.disabled=!ke),Qt});return function(it,Qt){return Ne.apply(this,arguments)}}(),Ie=function(){var Ne=(0,h.Z)(function*(ke,it){const Qt=yield Ue(it);return Qt&&(Qt.swipeGesture=ke),Qt});return function(it,Qt){return Ne.apply(this,arguments)}}(),Ae=function(){var Ne=(0,h.Z)(function*(ke){if(null!=ke){const it=yield Ue(ke);return void 0!==it&&it.isOpen()}return void 0!==(yield ct())});return function(it){return Ne.apply(this,arguments)}}(),ye=function(){var Ne=(0,h.Z)(function*(ke){const it=yield Ue(ke);return!!it&&!it.disabled});return function(it){return Ne.apply(this,arguments)}}(),Ue=function(){var Ne=(0,h.Z)(function*(ke,it=!1){if(yield We(),"start"===ke||"end"===ke){const mt=de.filter(tt=>tt.side===ke&&!tt.disabled);if(mt.length>=1)return mt.length>1&&it&&(0,l.p)(`menuController queried for a menu on the "${ke}" side, but ${mt.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,mt.map(tt=>tt.el)),mt[0].el;const an=de.filter(tt=>tt.side===ke);if(an.length>=1)return an.length>1&&it&&(0,l.p)(`menuController queried for a menu on the "${ke}" side, but ${an.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,an.map(tt=>tt.el)),an[0].el}else if(null!=ke)return Ut(mt=>mt.menuId===ke);return Ut(mt=>!mt.disabled)||(de.length>0?de[0].el:void 0)});return function(it){return Ne.apply(this,arguments)}}(),ct=function(){var Ne=(0,h.Z)(function*(){return yield We(),Ht()});return function(){return Ne.apply(this,arguments)}}(),X=function(){var Ne=(0,h.Z)(function*(){return yield We(),dn()});return function(){return Ne.apply(this,arguments)}}(),ve=function(){var Ne=(0,h.Z)(function*(){return yield We(),_n()});return function(){return Ne.apply(this,arguments)}}(),me=(Ne,ke)=>{Me.set(Ne,ke)},ze=function(){var Ne=(0,h.Z)(function*(ke,it,Qt){if(_n())return!1;if(it){const mt=yield ct();mt&&ke.el!==mt&&(yield mt.setOpen(!1,!1))}return ke._setOpen(it,Qt)});return function(it,Qt,mt){return Ne.apply(this,arguments)}}(),Ht=()=>Ut(Ne=>Ne._isOpen),dn=()=>de.map(Ne=>Ne.el),_n=()=>de.some(Ne=>Ne.isAnimating),Ut=Ne=>{const ke=de.find(Ne);if(void 0!==ke)return ke.el},We=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(Ne=>new Promise(ke=>(0,B.c)(Ne,ke))));return me("reveal",K),me("push",Pe),me("overlay",fe),null==m.d||m.d.addEventListener("ionBackButton",Ne=>{const ke=Ht();ke&&Ne.detail.register(te.MENU_BACK_BUTTON_PRIORITY,()=>ke.close())}),{registerAnimation:me,get:Ue,getMenus:X,getOpen:ct,isEnabled:ye,swipeGesture:Ie,isAnimating:ve,isOpen:Ae,enable:xe,toggle:oe,close:Ce,open:nt,_getOpenSync:Ht,_createAnimation:(Ne,ke)=>{const it=Me.get(Ne);if(!it)throw new Error("animation not registered");return it(ke)},_register:Ne=>{de.indexOf(Ne)<0&&de.push(Ne)},_unregister:Ne=>{const ke=de.indexOf(Ne);ke>-1&&de.splice(ke,1)},_setOpen:ze}})()},9942:(Bn,Ct,P)=>{"use strict";P.d(Ct,{B:()=>be,H:()=>_n,a:()=>pi,b:()=>uo,c:()=>tt,d:()=>Cn,e:()=>en,f:()=>bn,g:()=>pt,h:()=>Ht,i:()=>ae,j:()=>Te,r:()=>Vr,w:()=>jn});var h=P(5861);let l,B,Y,C=!1,ie=!1,fe=!1,Pe=!1,K=!1;const be={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},Te=V=>{const ue=new URL(V,Kn.$resourcesUrl$);return ue.origin!==Hn.location.origin?ue.href:ue.pathname},Ie="s-id",Ae="sty-id",ct="slot-fb{display:contents}slot-fb[hidden]{display:none}",X="http://www.w3.org/1999/xlink",ve={},ze=V=>"object"==(V=typeof V)||"function"===V;function Ke(V){var ue,Xe,_t;return null!==(_t=null===(Xe=null===(ue=V.head)||void 0===ue?void 0:ue.querySelector('meta[name="csp-nonce"]'))||void 0===Xe?void 0:Xe.getAttribute("content"))&&void 0!==_t?_t:void 0}const Ht=(V,ue,...Xe)=>{let _t=null,Wt=null,tn=null,vn=!1,Vn=!1;const $n=[],Xn=fi=>{for(let yi=0;yifi[yi]).join(" "))}}if("function"==typeof V)return V(null===ue?{}:ue,$n,We);const si=dn(V,null);return si.$attrs$=ue,$n.length>0&&(si.$children$=$n),si.$key$=Wt,si.$name$=tn,si},dn=(V,ue)=>({$flags$:0,$tag$:V,$text$:ue,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),_n={},We={forEach:(V,ue)=>V.map(Ne).forEach(ue),map:(V,ue)=>V.map(Ne).map(ue).map(ke)},Ne=V=>({vattrs:V.$attrs$,vchildren:V.$children$,vkey:V.$key$,vname:V.$name$,vtag:V.$tag$,vtext:V.$text$}),ke=V=>{if("function"==typeof V.vtag){const Xe=Object.assign({},V.vattrs);return V.vkey&&(Xe.key=V.vkey),V.vname&&(Xe.name=V.vname),Ht(V.vtag,Xe,...V.vchildren||[])}const ue=dn(V.vtag,V.vtext);return ue.$attrs$=V.vattrs,ue.$children$=V.vchildren,ue.$key$=V.vkey,ue.$name$=V.vname,ue},Qt=(V,ue,Xe,_t,Wt,tn,vn)=>{let Vn,$n,Xn,si;if(1===tn.nodeType){for(Vn=tn.getAttribute("c-id"),Vn&&($n=Vn.split("."),($n[0]===vn||"0"===$n[0])&&(Xn={$flags$:0,$hostId$:$n[0],$nodeId$:$n[1],$depth$:$n[2],$index$:$n[3],$tag$:tn.tagName.toLowerCase(),$elm$:tn,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ue.push(Xn),tn.removeAttribute("c-id"),V.$children$||(V.$children$=[]),V.$children$[Xn.$index$]=Xn,V=Xn,_t&&"0"===Xn.$depth$&&(_t[Xn.$index$]=Xn.$elm$))),si=tn.childNodes.length-1;si>=0;si--)Qt(V,ue,Xe,_t,Wt,tn.childNodes[si],vn);if(tn.shadowRoot)for(si=tn.shadowRoot.childNodes.length-1;si>=0;si--)Qt(V,ue,Xe,_t,Wt,tn.shadowRoot.childNodes[si],vn)}else if(8===tn.nodeType)$n=tn.nodeValue.split("."),($n[1]===vn||"0"===$n[1])&&(Vn=$n[0],Xn={$flags$:0,$hostId$:$n[1],$nodeId$:$n[2],$depth$:$n[3],$index$:$n[4],$elm$:tn,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===Vn?(Xn.$elm$=tn.nextSibling,Xn.$elm$&&3===Xn.$elm$.nodeType&&(Xn.$text$=Xn.$elm$.textContent,ue.push(Xn),tn.remove(),V.$children$||(V.$children$=[]),V.$children$[Xn.$index$]=Xn,_t&&"0"===Xn.$depth$&&(_t[Xn.$index$]=Xn.$elm$))):Xn.$hostId$===vn&&("s"===Vn?(Xn.$tag$="slot",tn["s-sn"]=$n[5]?Xn.$name$=$n[5]:"",tn["s-sr"]=!0,_t&&(Xn.$elm$=On.createElement(Xn.$tag$),Xn.$name$&&Xn.$elm$.setAttribute("name",Xn.$name$),tn.parentNode.insertBefore(Xn.$elm$,tn),tn.remove(),"0"===Xn.$depth$&&(_t[Xn.$index$]=Xn.$elm$)),Xe.push(Xn),V.$children$||(V.$children$=[]),V.$children$[Xn.$index$]=Xn):"r"===Vn&&(_t?tn.remove():(Wt["s-cr"]=tn,tn["s-cn"]=!0))));else if(V&&"style"===V.$tag$){const fi=dn(null,tn.textContent);fi.$elm$=tn,fi.$index$="0",V.$children$=[fi]}},mt=(V,ue)=>{if(1===V.nodeType){let Xe=0;for(;Xevt.push(V),pt=V=>vr(V).$modeName$,bn=V=>vr(V).$hostElement$,Cn=(V,ue,Xe)=>{const _t=bn(V);return{emit:Wt=>It(_t,ue,{bubbles:!!(4&Xe),composed:!!(2&Xe),cancelable:!!(1&Xe),detail:Wt})}},It=(V,ue,Xe)=>{const _t=Kn.ce(ue,Xe);return V.dispatchEvent(_t),_t},pe=new WeakMap,lt=(V,ue,Xe)=>{let _t=ln.get(V);_i&&Xe?(_t=_t||new CSSStyleSheet,"string"==typeof _t?_t=ue:_t.replaceSync(ue)):_t=ue,ln.set(V,_t)},Zt=(V,ue,Xe)=>{var _t;const Wt=Yt(ue,Xe),tn=ln.get(Wt);if(V=11===V.nodeType?V:On,tn)if("string"==typeof tn){let Vn,vn=pe.get(V=V.head||V);if(vn||pe.set(V,vn=new Set),!vn.has(Wt)){if(V.host&&(Vn=V.querySelector(`[${Ae}="${Wt}"]`)))Vn.innerHTML=tn;else{Vn=On.createElement("style"),Vn.innerHTML=tn;const $n=null!==(_t=Kn.$nonce$)&&void 0!==_t?_t:Ke(On);null!=$n&&Vn.setAttribute("nonce",$n),V.insertBefore(Vn,V.querySelector("link"))}4&ue.$flags$&&(Vn.innerHTML+=ct),vn&&vn.add(Wt)}}else V.adoptedStyleSheets.includes(tn)||(V.adoptedStyleSheets=[...V.adoptedStyleSheets,tn]);return Wt},Yt=(V,ue)=>"sc-"+(ue&&32&V.$flags$?V.$tagName$+"-"+ue:V.$tagName$),Ft=V=>V.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Un=(V,ue,Xe,_t,Wt,tn)=>{if(Xe!==_t){let vn=qi(V,ue),Vn=ue.toLowerCase();if("class"===ue){const $n=V.classList,Xn=Pt(Xe),si=Pt(_t);$n.remove(...Xn.filter(fi=>fi&&!si.includes(fi))),$n.add(...si.filter(fi=>fi&&!Xn.includes(fi)))}else if("style"===ue){for(const $n in Xe)(!_t||null==_t[$n])&&($n.includes("-")?V.style.removeProperty($n):V.style[$n]="");for(const $n in _t)(!Xe||_t[$n]!==Xe[$n])&&($n.includes("-")?V.style.setProperty($n,_t[$n]):V.style[$n]=_t[$n])}else if("key"!==ue)if("ref"===ue)_t&&_t(V);else if(vn||"o"!==ue[0]||"n"!==ue[1]){const $n=ze(_t);if((vn||$n&&null!==_t)&&!Wt)try{if(V.tagName.includes("-"))V[ue]=_t;else{const si=_t??"";"list"===ue?vn=!1:(null==Xe||V[ue]!=si)&&(V[ue]=si)}}catch{}let Xn=!1;Vn!==(Vn=Vn.replace(/^xlink\:?/,""))&&(ue=Vn,Xn=!0),null==_t||!1===_t?(!1!==_t||""===V.getAttribute(ue))&&(Xn?V.removeAttributeNS(X,ue):V.removeAttribute(ue)):(!vn||4&tn||Wt)&&!$n&&(_t=!0===_t?"":_t,Xn?V.setAttributeNS(X,ue,_t):V.setAttribute(ue,_t))}else if(ue="-"===ue[2]?ue.slice(3):qi(Hn,Vn)?Vn.slice(2):Vn[2]+ue.slice(3),Xe||_t){const $n=ue.endsWith(Kt);ue=ue.replace(wn,""),Xe&&Kn.rel(V,ue,Xe,$n),_t&&Kn.ael(V,ue,_t,$n)}}},Ve=/\s/,Pt=V=>V?V.split(Ve):[],Kt="Capture",wn=new RegExp(Kt+"$"),ei=(V,ue,Xe,_t)=>{const Wt=11===ue.$elm$.nodeType&&ue.$elm$.host?ue.$elm$.host:ue.$elm$,tn=V&&V.$attrs$||ve,vn=ue.$attrs$||ve;for(_t in tn)_t in vn||Un(Wt,_t,tn[_t],void 0,Xe,ue.$flags$);for(_t in vn)Un(Wt,_t,tn[_t],vn[_t],Xe,ue.$flags$)},di=(V,ue,Xe,_t)=>{const Wt=ue.$children$[Xe];let vn,Vn,$n,tn=0;if(C||(fe=!0,"slot"===Wt.$tag$&&(l&&_t.classList.add(l+"-s"),Wt.$flags$|=Wt.$children$?2:1)),null!==Wt.$text$)vn=Wt.$elm$=On.createTextNode(Wt.$text$);else if(1&Wt.$flags$)vn=Wt.$elm$=On.createTextNode("");else{if(Pe||(Pe="svg"===Wt.$tag$),vn=Wt.$elm$=On.createElementNS(Pe?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&Wt.$flags$?"slot-fb":Wt.$tag$),Pe&&"foreignObject"===Wt.$tag$&&(Pe=!1),ei(null,Wt,Pe),(V=>null!=V)(l)&&vn["s-si"]!==l&&vn.classList.add(vn["s-si"]=l),Wt.$children$)for(tn=0;tn{Kn.$flags$|=1;const Xe=V.childNodes;for(let _t=Xe.length-1;_t>=0;_t--){const Wt=Xe[_t];Wt["s-hn"]!==Y&&Wt["s-ol"]&&(gn(Wt).insertBefore(Wt,Li(Wt)),Wt["s-ol"].remove(),Wt["s-ol"]=void 0,Wt["s-sh"]=void 0,fe=!0),ue&&Lr(Wt,ue)}Kn.$flags$&=-2},Mi=(V,ue,Xe,_t,Wt,tn)=>{let Vn,vn=V["s-cr"]&&V["s-cr"].parentNode||V;for(vn.shadowRoot&&vn.tagName===Y&&(vn=vn.shadowRoot);Wt<=tn;++Wt)_t[Wt]&&(Vn=di(null,Xe,Wt,V),Vn&&(_t[Wt].$elm$=Vn,vn.insertBefore(Vn,Li(ue))))},dr=(V,ue,Xe)=>{for(let _t=ue;_t<=Xe;++_t){const Wt=V[_t];if(Wt){const tn=Wt.$elm$;_e(Wt),tn&&(ie=!0,tn["s-ol"]?tn["s-ol"].remove():Lr(tn,!0),tn.remove())}}},fn=(V,ue,Xe=!1)=>V.$tag$===ue.$tag$&&("slot"===V.$tag$?V.$name$===ue.$name$:!!Xe||V.$key$===ue.$key$),Li=V=>V&&V["s-ol"]||V,gn=V=>(V["s-ol"]?V["s-ol"]:V).parentNode,Fn=(V,ue,Xe=!1)=>{const _t=ue.$elm$=V.$elm$,Wt=V.$children$,tn=ue.$children$,vn=ue.$tag$,Vn=ue.$text$;let $n;null===Vn?(Pe="svg"===vn||"foreignObject"!==vn&&Pe,"slot"===vn||ei(V,ue,Pe),null!==Wt&&null!==tn?((V,ue,Xe,_t,Wt=!1)=>{let O,Oe,tn=0,vn=0,Vn=0,$n=0,Xn=ue.length-1,si=ue[0],fi=ue[Xn],yi=_t.length-1,Vi=_t[0],Yi=_t[yi];for(;tn<=Xn&&vn<=yi;)if(null==si)si=ue[++tn];else if(null==fi)fi=ue[--Xn];else if(null==Vi)Vi=_t[++vn];else if(null==Yi)Yi=_t[--yi];else if(fn(si,Vi,Wt))Fn(si,Vi,Wt),si=ue[++tn],Vi=_t[++vn];else if(fn(fi,Yi,Wt))Fn(fi,Yi,Wt),fi=ue[--Xn],Yi=_t[--yi];else if(fn(si,Yi,Wt))("slot"===si.$tag$||"slot"===Yi.$tag$)&&Lr(si.$elm$.parentNode,!1),Fn(si,Yi,Wt),V.insertBefore(si.$elm$,fi.$elm$.nextSibling),si=ue[++tn],Yi=_t[--yi];else if(fn(fi,Vi,Wt))("slot"===si.$tag$||"slot"===Yi.$tag$)&&Lr(fi.$elm$.parentNode,!1),Fn(fi,Vi,Wt),V.insertBefore(fi.$elm$,si.$elm$),fi=ue[--Xn],Vi=_t[++vn];else{for(Vn=-1,$n=tn;$n<=Xn;++$n)if(ue[$n]&&null!==ue[$n].$key$&&ue[$n].$key$===Vi.$key$){Vn=$n;break}Vn>=0?(Oe=ue[Vn],Oe.$tag$!==Vi.$tag$?O=di(ue&&ue[vn],Xe,Vn,V):(Fn(Oe,Vi,Wt),ue[Vn]=void 0,O=Oe.$elm$),Vi=_t[++vn]):(O=di(ue&&ue[vn],Xe,vn,V),Vi=_t[++vn]),O&&gn(si.$elm$).insertBefore(O,Li(si.$elm$))}tn>Xn?Mi(V,null==_t[yi+1]?null:_t[yi+1].$elm$,Xe,_t,vn,yi):vn>yi&&dr(ue,tn,Xn)})(_t,Wt,ue,tn,Xe):null!==tn?(null!==V.$text$&&(_t.textContent=""),Mi(_t,null,ue,tn,0,tn.length-1)):null!==Wt&&dr(Wt,0,Wt.length-1),Pe&&"svg"===vn&&(Pe=!1)):($n=_t["s-cr"])?$n.parentNode.textContent=Vn:V.$text$!==Vn&&(_t.data=Vn)},Jt=V=>{const ue=V.childNodes;for(const Xe of ue)if(1===Xe.nodeType){if(Xe["s-sr"]){const _t=Xe["s-sn"];Xe.hidden=!1;for(const Wt of ue)if(Wt!==Xe)if(Wt["s-hn"]!==Xe["s-hn"]||""!==_t){if(1===Wt.nodeType&&(_t===Wt.getAttribute("slot")||_t===Wt["s-sn"])){Xe.hidden=!0;break}}else if(1===Wt.nodeType||3===Wt.nodeType&&""!==Wt.textContent.trim()){Xe.hidden=!0;break}}Jt(Xe)}},Bi=[],ut=V=>{let ue,Xe,_t;for(const Wt of V.childNodes){if(Wt["s-sr"]&&(ue=Wt["s-cr"])&&ue.parentNode){Xe=ue.parentNode.childNodes;const tn=Wt["s-sn"];for(_t=Xe.length-1;_t>=0;_t--)if(ue=Xe[_t],!ue["s-cn"]&&!ue["s-nr"]&&ue["s-hn"]!==Wt["s-hn"])if(he(ue,tn)){let vn=Bi.find(Vn=>Vn.$nodeToRelocate$===ue);ie=!0,ue["s-sn"]=ue["s-sn"]||tn,vn?(vn.$nodeToRelocate$["s-sh"]=Wt["s-hn"],vn.$slotRefNode$=Wt):(ue["s-sh"]=Wt["s-hn"],Bi.push({$slotRefNode$:Wt,$nodeToRelocate$:ue})),ue["s-sr"]&&Bi.map(Vn=>{he(Vn.$nodeToRelocate$,ue["s-sn"])&&(vn=Bi.find($n=>$n.$nodeToRelocate$===ue),vn&&!Vn.$slotRefNode$&&(Vn.$slotRefNode$=vn.$slotRefNode$))})}else Bi.some(vn=>vn.$nodeToRelocate$===ue)||Bi.push({$nodeToRelocate$:ue})}1===Wt.nodeType&&ut(Wt)}},he=(V,ue)=>1===V.nodeType?null===V.getAttribute("slot")&&""===ue||V.getAttribute("slot")===ue:V["s-sn"]===ue||""===ue,_e=V=>{V.$attrs$&&V.$attrs$.ref&&V.$attrs$.ref(null),V.$children$&&V.$children$.map(_e)},yt=(V,ue)=>{ue&&!V.$onRenderResolve$&&ue["s-p"]&&ue["s-p"].push(new Promise(Xe=>V.$onRenderResolve$=Xe))},Dt=(V,ue)=>{if(V.$flags$|=16,!(4&V.$flags$))return yt(V,V.$ancestorComponent$),jn(()=>jt(V,ue));V.$flags$|=512},jt=(V,ue)=>{const _t=V.$lazyInstance$;let Wt;return ue&&(V.$flags$|=256,V.$queuedListeners$&&(V.$queuedListeners$.map(([tn,vn])=>Z(_t,tn,vn)),V.$queuedListeners$=void 0),Wt=Z(_t,"componentWillLoad")),Wt=Vt(Wt,()=>Z(_t,"componentWillRender")),Vt(Wt,()=>Bt(V,_t,ue))},Vt=(V,ue)=>dt(V)?V.then(ue):ue(),dt=V=>V instanceof Promise||V&&V.then&&"function"==typeof V.then,Bt=function(){var V=(0,h.Z)(function*(ue,Xe,_t){var Wt;const tn=ue.$hostElement$,Vn=tn["s-rc"];_t&&(V=>{const ue=V.$cmpMeta$,Xe=V.$hostElement$,_t=ue.$flags$,tn=Zt(Xe.shadowRoot?Xe.shadowRoot:Xe.getRootNode(),ue,V.$modeName$);10&_t&&(Xe["s-sc"]=tn,Xe.classList.add(tn+"-h"),2&_t&&Xe.classList.add(tn+"-s"))})(ue);Nn(ue,Xe,tn,_t),Vn&&(Vn.map(Xn=>Xn()),tn["s-rc"]=void 0);{const Xn=null!==(Wt=tn["s-p"])&&void 0!==Wt?Wt:[],si=()=>Gn(ue);0===Xn.length?si():(Promise.all(Xn).then(si),ue.$flags$|=4,Xn.length=0)}});return function(Xe,_t,Wt){return V.apply(this,arguments)}}(),Nn=(V,ue,Xe,_t)=>{try{ue=ue.render&&ue.render(),V.$flags$&=-17,V.$flags$|=2,((V,ue,Xe=!1)=>{var _t,Wt,tn,vn;const Vn=V.$hostElement$,$n=V.$cmpMeta$,Xn=V.$vnode$||dn(null,null),si=(V=>V&&V.$tag$===_n)(ue)?ue:Ht(null,null,ue);if(Y=Vn.tagName,$n.$attrsToReflect$&&(si.$attrs$=si.$attrs$||{},$n.$attrsToReflect$.map(([fi,yi])=>si.$attrs$[yi]=Vn[fi])),Xe&&si.$attrs$)for(const fi of Object.keys(si.$attrs$))Vn.hasAttribute(fi)&&!["key","ref","style","class"].includes(fi)&&(si.$attrs$[fi]=Vn[fi]);if(si.$tag$=null,si.$flags$|=4,V.$vnode$=si,si.$elm$=Xn.$elm$=Vn.shadowRoot||Vn,l=Vn["s-sc"],B=Vn["s-cr"],C=0!=(1&$n.$flags$),ie=!1,Fn(Xn,si,Xe),Kn.$flags$|=1,fe){ut(si.$elm$);for(const fi of Bi){const yi=fi.$nodeToRelocate$;if(!yi["s-ol"]){const Vi=On.createTextNode("");Vi["s-nr"]=yi,yi.parentNode.insertBefore(yi["s-ol"]=Vi,yi)}}for(const fi of Bi){const yi=fi.$nodeToRelocate$,Vi=fi.$slotRefNode$;if(Vi){const Yi=Vi.parentNode;let O=Vi.nextSibling;{let Oe=null===(_t=yi["s-ol"])||void 0===_t?void 0:_t.previousSibling;for(;Oe;){let $=null!==(Wt=Oe["s-nr"])&&void 0!==Wt?Wt:null;if($&&$["s-sn"]===yi["s-sn"]&&Yi===$.parentNode&&($=$.nextSibling,!$||!$["s-nr"])){O=$;break}Oe=Oe.previousSibling}}(!O&&Yi!==yi.parentNode||yi.nextSibling!==O)&&yi!==O&&(!yi["s-hn"]&&yi["s-ol"]&&(yi["s-hn"]=yi["s-ol"].parentNode.nodeName),Yi.insertBefore(yi,O),1===yi.nodeType&&(yi.hidden=null!==(tn=yi["s-ih"])&&void 0!==tn&&tn))}else 1===yi.nodeType&&(Xe&&(yi["s-ih"]=null!==(vn=yi.hidden)&&void 0!==vn&&vn),yi.hidden=!0)}}ie&&Jt(si.$elm$),Kn.$flags$&=-2,Bi.length=0})(V,ue,_t)}catch(Wt){Qe(Wt,V.$hostElement$)}return null},Gn=V=>{const Xe=V.$hostElement$,Wt=V.$lazyInstance$,tn=V.$ancestorComponent$;Z(Wt,"componentDidRender"),64&V.$flags$?Z(Wt,"componentDidUpdate"):(V.$flags$|=64,Re(Xe),Z(Wt,"componentDidLoad"),V.$onReadyResolve$(Xe),tn||ft()),V.$onInstanceResolve$(Xe),V.$onRenderResolve$&&(V.$onRenderResolve$(),V.$onRenderResolve$=void 0),512&V.$flags$&&St(()=>Dt(V,!1)),V.$flags$&=-517},ae=V=>{{const ue=vr(V),Xe=ue.$hostElement$.isConnected;return Xe&&2==(18&ue.$flags$)&&Dt(ue,!1),Xe}},ft=V=>{Re(On.documentElement),St(()=>It(Hn,"appload",{detail:{namespace:"ionic"}}))},Z=(V,ue,Xe)=>{if(V&&V[ue])try{return V[ue](Xe)}catch(_t){Qe(_t)}},Re=V=>V.classList.add("hydrated"),In=(V,ue,Xe)=>{var _t;const Wt=V.prototype;if(ue.$members$){V.watchers&&(ue.$watchers$=V.watchers);const tn=Object.entries(ue.$members$);if(tn.map(([vn,[Vn]])=>{31&Vn||2&Xe&&32&Vn?Object.defineProperty(Wt,vn,{get(){return((V,ue)=>vr(this).$instanceValues$.get(ue))(0,vn)},set($n){((V,ue,Xe,_t)=>{const Wt=vr(V),tn=Wt.$hostElement$,vn=Wt.$instanceValues$.get(ue),Vn=Wt.$flags$,$n=Wt.$lazyInstance$;Xe=((V,ue)=>null==V||ze(V)?V:4&ue?"false"!==V&&(""===V||!!V):2&ue?parseFloat(V):1&ue?String(V):V)(Xe,_t.$members$[ue][0]);const Xn=Number.isNaN(vn)&&Number.isNaN(Xe);if((!(8&Vn)||void 0===vn)&&Xe!==vn&&!Xn&&(Wt.$instanceValues$.set(ue,Xe),$n)){if(_t.$watchers$&&128&Vn){const fi=_t.$watchers$[ue];fi&&fi.map(yi=>{try{$n[yi](Xe,vn,ue)}catch(Vi){Qe(Vi,tn)}})}2==(18&Vn)&&Dt(Wt,!1)}})(this,vn,$n,ue)},configurable:!0,enumerable:!0}):1&Xe&&64&Vn&&Object.defineProperty(Wt,vn,{value(...$n){var Xn;const si=vr(this);return null===(Xn=si?.$onInstancePromise$)||void 0===Xn?void 0:Xn.then(()=>{var fi;return null===(fi=si.$lazyInstance$)||void 0===fi?void 0:fi[vn](...$n)})}})}),1&Xe){const vn=new Map;Wt.attributeChangedCallback=function(Vn,$n,Xn){Kn.jmp(()=>{var si;const fi=vn.get(Vn);if(this.hasOwnProperty(fi))Xn=this[fi],delete this[fi];else{if(Wt.hasOwnProperty(fi)&&"number"==typeof this[fi]&&this[fi]==Xn)return;if(null==fi){const yi=vr(this),Vi=yi?.$flags$;if(Vi&&!(8&Vi)&&128&Vi&&Xn!==$n){const Yi=yi.$lazyInstance$,O=null===(si=ue.$watchers$)||void 0===si?void 0:si[Vn];O?.forEach(Oe=>{null!=Yi[Oe]&&Yi[Oe].call(Yi,Xn,$n,Vn)})}return}}this[fi]=(null!==Xn||"boolean"!=typeof this[fi])&&Xn})},V.observedAttributes=Array.from(new Set([...Object.keys(null!==(_t=ue.$watchers$)&&void 0!==_t?_t:{}),...tn.filter(([Vn,$n])=>15&$n[0]).map(([Vn,$n])=>{var Xn;const si=$n[1]||Vn;return vn.set(si,Vn),512&$n[0]&&(null===(Xn=ue.$attrsToReflect$)||void 0===Xn||Xn.push([Vn,si])),si})]))}}return V},bi=function(){var V=(0,h.Z)(function*(ue,Xe,_t,Wt){let tn;if(!(32&Xe.$flags$)){Xe.$flags$|=32;{if(tn=Et(_t),tn.then){const Xn=()=>{};tn=yield tn,Xn()}tn.isProxied||(_t.$watchers$=tn.watchers,In(tn,_t,2),tn.isProxied=!0);const $n=()=>{};Xe.$flags$|=8;try{new tn(Xe)}catch(Xn){Qe(Xn)}Xe.$flags$&=-9,Xe.$flags$|=128,$n(),wi(Xe.$lazyInstance$)}if(tn.style){let $n=tn.style;"string"!=typeof $n&&($n=$n[Xe.$modeName$=(V=>vt.map(ue=>ue(V)).find(ue=>!!ue))(ue)]);const Xn=Yt(_t,Xe.$modeName$);if(!ln.has(Xn)){const si=()=>{};lt(Xn,$n,!!(1&_t.$flags$)),si()}}}const vn=Xe.$ancestorComponent$,Vn=()=>Dt(Xe,!0);vn&&vn["s-rc"]?vn["s-rc"].push(Vn):Vn()});return function(Xe,_t,Wt,tn){return V.apply(this,arguments)}}(),wi=V=>{Z(V,"connectedCallback")},mr=V=>{const ue=V["s-cr"]=On.createComment("");ue["s-cn"]=!0,V.insertBefore(ue,V.firstChild)},Xi=V=>{Z(V,"disconnectedCallback")},Ar=function(){var V=(0,h.Z)(function*(ue){if(!(1&Kn.$flags$)){const Xe=vr(ue);Xe.$rmListeners$&&(Xe.$rmListeners$.map(_t=>_t()),Xe.$rmListeners$=void 0),Xe?.$lazyInstance$?Xi(Xe.$lazyInstance$):Xe?.$onReadyPromise$&&Xe.$onReadyPromise$.then(()=>Xi(Xe.$lazyInstance$))}});return function(Xe){return V.apply(this,arguments)}}(),uo=(V,ue={})=>{var Xe;const Wt=[],tn=ue.exclude||[],vn=Hn.customElements,Vn=On.head,$n=Vn.querySelector("meta[charset]"),Xn=On.createElement("style"),si=[],fi=On.querySelectorAll(`[${Ae}]`);let yi,Vi=!0,Yi=0;for(Object.assign(Kn,ue),Kn.$resourcesUrl$=new URL(ue.resourcesUrl||"./",On.baseURI).href,Kn.$flags$|=2;Yi{Oe[1].map($=>{var Ze;const Nt={$flags$:$[0],$tagName$:$[1],$members$:$[2],$listeners$:$[3]};4&Nt.$flags$&&(O=!0),Nt.$members$=$[2],Nt.$listeners$=$[3],Nt.$attrsToReflect$=[],Nt.$watchers$=null!==(Ze=$[4])&&void 0!==Ze?Ze:{};const Fi=Nt.$tagName$,Sr=class extends HTMLElement{constructor(Qi){super(Qi),Yr(Qi=this,Nt),1&Nt.$flags$&&Qi.attachShadow({mode:"open",delegatesFocus:!!(16&Nt.$flags$)})}connectedCallback(){yi&&(clearTimeout(yi),yi=null),Vi?si.push(this):Kn.jmp(()=>(V=>{if(!(1&Kn.$flags$)){const ue=vr(V),Xe=ue.$cmpMeta$,_t=()=>{};if(1&ue.$flags$)_o(V,ue,Xe.$listeners$),ue?.$lazyInstance$?wi(ue.$lazyInstance$):ue?.$onReadyPromise$&&ue.$onReadyPromise$.then(()=>wi(ue.$lazyInstance$));else{let Wt;if(ue.$flags$|=1,Wt=V.getAttribute(Ie),Wt){if(1&Xe.$flags$){const tn=Zt(V.shadowRoot,Xe,V.getAttribute("s-mode"));V.classList.remove(tn+"-h",tn+"-s")}((V,ue,Xe,_t)=>{const tn=V.shadowRoot,vn=[],$n=tn?[]:null,Xn=_t.$vnode$=dn(ue,null);Kn.$orgLocNodes$||mt(On.body,Kn.$orgLocNodes$=new Map),V[Ie]=Xe,V.removeAttribute(Ie),Qt(Xn,vn,[],$n,V,V,Xe),vn.map(si=>{const fi=si.$hostId$+"."+si.$nodeId$,yi=Kn.$orgLocNodes$.get(fi),Vi=si.$elm$;yi&&ki&&""===yi["s-en"]&&yi.parentNode.insertBefore(Vi,yi.nextSibling),tn||(Vi["s-hn"]=ue,yi&&(Vi["s-ol"]=yi,Vi["s-ol"]["s-nr"]=Vi)),Kn.$orgLocNodes$.delete(fi)}),tn&&$n.map(si=>{si&&tn.appendChild(si)})})(V,Xe.$tagName$,Wt,ue)}Wt||12&Xe.$flags$&&mr(V);{let tn=V;for(;tn=tn.parentNode||tn.host;)if(1===tn.nodeType&&tn.hasAttribute("s-id")&&tn["s-p"]||tn["s-p"]){yt(ue,ue.$ancestorComponent$=tn);break}}Xe.$members$&&Object.entries(Xe.$members$).map(([tn,[vn]])=>{if(31&vn&&V.hasOwnProperty(tn)){const Vn=V[tn];delete V[tn],V[tn]=Vn}}),bi(V,ue,Xe)}_t()}})(this))}disconnectedCallback(){Kn.jmp(()=>Ar(this))}componentOnReady(){return vr(this).$onReadyPromise$}};Nt.$lazyBundleId$=Oe[0],!tn.includes(Fi)&&!vn.get(Fi)&&(Wt.push(Fi),vn.define(Fi,In(Sr,Nt,1)))})}),O&&(Xn.innerHTML+=ct),Xn.innerHTML+=Wt+"{visibility:hidden}.hydrated{visibility:inherit}",Xn.innerHTML.length){Xn.setAttribute("data-styles","");const Oe=null!==(Xe=Kn.$nonce$)&&void 0!==Xe?Xe:Ke(On);null!=Oe&&Xn.setAttribute("nonce",Oe),Vn.insertBefore(Xn,$n?$n.nextSibling:Vn.firstChild)}Vi=!1,si.length?si.map(Oe=>Oe.connectedCallback()):Kn.jmp(()=>yi=setTimeout(ft,30))},_o=(V,ue,Xe,_t)=>{Xe&&Xe.map(([Wt,tn,vn])=>{const Vn=zi(V,Wt),$n=Eo(ue,vn),Xn=hr(Wt);Kn.ael(Vn,tn,$n,Xn),(ue.$rmListeners$=ue.$rmListeners$||[]).push(()=>Kn.rel(Vn,tn,$n,Xn))})},Eo=(V,ue)=>Xe=>{try{256&V.$flags$?V.$lazyInstance$[ue](Xe):(V.$queuedListeners$=V.$queuedListeners$||[]).push([ue,Xe])}catch(_t){Qe(_t)}},zi=(V,ue)=>4&ue?On:8&ue?Hn:16&ue?On.body:V,hr=V=>0!=(2&V),yo=new WeakMap,vr=V=>yo.get(V),Vr=(V,ue)=>yo.set(ue.$lazyInstance$=V,ue),Yr=(V,ue)=>{const Xe={$flags$:0,$hostElement$:V,$cmpMeta$:ue,$instanceValues$:new Map};return Xe.$onInstancePromise$=new Promise(_t=>Xe.$onInstanceResolve$=_t),Xe.$onReadyPromise$=new Promise(_t=>Xe.$onReadyResolve$=_t),V["s-p"]=[],V["s-rc"]=[],_o(V,Xe,ue.$listeners$),yo.set(V,Xe)},qi=(V,ue)=>ue in V,Qe=(V,ue)=>(0,console.error)(V,ue),Tt=new Map,Et=(V,ue,Xe)=>{const _t=V.$tagName$.replace(/-/g,"_"),Wt=V.$lazyBundleId$,tn=Tt.get(Wt);return tn?tn[_t]:P(863)(`./${Wt}.entry.js`).then(vn=>(Tt.set(Wt,vn),vn[_t]),Qe)},ln=new Map,vt=[],Hn=typeof window<"u"?window:{},On=Hn.document||{head:{}},Kn={$flags$:0,$resourcesUrl$:"",jmp:V=>V(),raf:V=>requestAnimationFrame(V),ael:(V,ue,Xe,_t)=>V.addEventListener(ue,Xe,_t),rel:(V,ue,Xe,_t)=>V.removeEventListener(ue,Xe,_t),ce:(V,ue)=>new CustomEvent(V,ue)},pi=V=>{Object.assign(Kn,V)},ki=!0,_i=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),or=[],Ee=[],Be=(V,ue)=>Xe=>{V.push(Xe),K||(K=!0,ue&&4&Kn.$flags$?St(qe):Kn.raf(qe))},ee=V=>{for(let ue=0;ue{ee(or),ee(Ee),(K=or.length>0)&&Kn.raf(qe)},St=V=>Promise.resolve(void 0).then(V),en=Be(or,!1),jn=Be(Ee,!0)},6535:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>fe});var h=P(2019);const m=(Te,Me,de,nt)=>{const Ce=te(Te)?{capture:!!nt.capture,passive:!!nt.passive}:!!nt.capture;let oe,xe;return Te.__zone_symbol__addEventListener?(oe="__zone_symbol__addEventListener",xe="__zone_symbol__removeEventListener"):(oe="addEventListener",xe="removeEventListener"),Te[oe](Me,de,Ce),()=>{Te[xe](Me,de,Ce)}},te=Te=>{if(void 0===l)try{const Me=Object.defineProperty({},"passive",{get:()=>{l=!0}});Te.addEventListener("optsTest",()=>{},Me)}catch{l=!1}return!!l};let l;const C=Te=>Te instanceof Document?Te:Te.ownerDocument,fe=Te=>{let Me=!1,de=!1,nt=!0,Ce=!1;const oe=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},Te),xe=oe.canStart,Ie=oe.onWillStart,Ae=oe.onStart,ye=oe.onEnd,Ue=oe.notCaptured,ct=oe.onMove,X=oe.threshold,ve=oe.passive,me=oe.blurOnStart,Fe={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},De=((Te,Me,de)=>{const nt=de*(Math.PI/180),Ce="x"===Te,oe=Math.cos(nt),xe=Me*Me;let Ie=0,Ae=0,ye=!1,Ue=0;return{start(ct,X){Ie=ct,Ae=X,Ue=0,ye=!0},detect(ct,X){if(!ye)return!1;const ve=ct-Ie,me=X-Ae,Fe=ve*ve+me*me;if(Feoe?1:ze<-oe?-1:0,ye=!1,!0},isGesture:()=>0!==Ue,getDirection:()=>Ue}})(oe.direction,oe.threshold,oe.maxAngle),ze=h.G.createGesture({name:Te.gestureName,priority:Te.gesturePriority,disableScroll:Te.disableScroll}),dn=()=>{Me&&(Ce=!1,ct&&ct(Fe))},_n=()=>!!ze.capture()&&(Me=!0,nt=!1,Fe.startX=Fe.currentX,Fe.startY=Fe.currentY,Fe.startTime=Fe.currentTime,Ie?Ie(Fe).then(We):We(),!0),We=()=>{me&&(()=>{if(typeof document<"u"){const mt=document.activeElement;mt?.blur&&mt.blur()}})(),Ae&&Ae(Fe),nt=!0},Ne=()=>{Me=!1,de=!1,Ce=!1,nt=!0,ze.release()},ke=mt=>{const an=Me,tt=nt;if(Ne(),tt){if(Pe(Fe,mt),an)return void(ye&&ye(Fe));Ue&&Ue(Fe)}},it=((Te,Me,de,nt,Ce)=>{let oe,xe,Ie,Ae,ye,Ue,ct,X=0;const ve=Ut=>{X=Date.now()+2e3,Me(Ut)&&(!xe&&de&&(xe=m(Te,"touchmove",de,Ce)),Ie||(Ie=m(Ut.target,"touchend",Fe,Ce)),Ae||(Ae=m(Ut.target,"touchcancel",Fe,Ce)))},me=Ut=>{X>Date.now()||Me(Ut)&&(!Ue&&de&&(Ue=m(C(Te),"mousemove",de,Ce)),ct||(ct=m(C(Te),"mouseup",De,Ce)))},Fe=Ut=>{ze(),nt&&nt(Ut)},De=Ut=>{Ke(),nt&&nt(Ut)},ze=()=>{xe&&xe(),Ie&&Ie(),Ae&&Ae(),xe=Ie=Ae=void 0},Ke=()=>{Ue&&Ue(),ct&&ct(),Ue=ct=void 0},Ht=()=>{ze(),Ke()},dn=(Ut=!0)=>{Ut?(oe||(oe=m(Te,"touchstart",ve,Ce)),ye||(ye=m(Te,"mousedown",me,Ce))):(oe&&oe(),ye&&ye(),oe=ye=void 0,Ht())};return{enable:dn,stop:Ht,destroy:()=>{dn(!1),nt=de=Me=void 0}}})(oe.el,mt=>{const an=be(mt);return!(de||!nt||(K(mt,Fe),Fe.startX=Fe.currentX,Fe.startY=Fe.currentY,Fe.startTime=Fe.currentTime=an,Fe.velocityX=Fe.velocityY=Fe.deltaX=Fe.deltaY=0,Fe.event=mt,xe&&!1===xe(Fe))||(ze.release(),!ze.start()))&&(de=!0,0===X?_n():(De.start(Fe.startX,Fe.startY),!0))},mt=>{Me?!Ce&&nt&&(Ce=!0,Pe(Fe,mt),requestAnimationFrame(dn)):(Pe(Fe,mt),De.detect(Fe.currentX,Fe.currentY)&&(!De.isGesture()||!_n())&&Qt())},ke,{capture:!1,passive:ve}),Qt=()=>{Ne(),it.stop(),Ue&&Ue(Fe)};return{enable(mt=!0){mt||(Me&&ke(void 0),Ne()),it.enable(mt)},destroy(){ze.destroy(),it.destroy()}}},Pe=(Te,Me)=>{if(!Me)return;const de=Te.currentX,nt=Te.currentY,Ce=Te.currentTime;K(Me,Te);const oe=Te.currentX,xe=Te.currentY,Ae=(Te.currentTime=be(Me))-Ce;if(Ae>0&&Ae<100){const Ue=(xe-nt)/Ae;Te.velocityX=(oe-de)/Ae*.7+.3*Te.velocityX,Te.velocityY=.7*Ue+.3*Te.velocityY}Te.deltaX=oe-Te.startX,Te.deltaY=xe-Te.startY,Te.event=Me},K=(Te,Me)=>{let de=0,nt=0;if(Te){const Ce=Te.changedTouches;if(Ce&&Ce.length>0){const oe=Ce[0];de=oe.clientX,nt=oe.clientY}else void 0!==Te.pageX&&(de=Te.pageX,nt=Te.pageY)}Me.currentX=de,Me.currentY=nt},be=Te=>Te.timeStamp||Date.now()},2400:(Bn,Ct,P)=>{"use strict";P.d(Ct,{a:()=>m,b:()=>te,p:()=>h});const h=(l,...B)=>console.warn(`[Ionic Warning]: ${l}`,...B),m=(l,...B)=>console.error(`[Ionic Error]: ${l}`,...B),te=(l,...B)=>console.error(`<${l.tagName.toLowerCase()}> must be used inside ${B.join(" or ")}.`)},1848:(Bn,Ct,P)=>{"use strict";P.d(Ct,{d:()=>m,w:()=>h});const h=typeof window<"u"?window:void 0,m=typeof document<"u"?document:void 0},4232:(Bn,Ct,P)=>{"use strict";P.d(Ct,{b:()=>Y,c:()=>C,d:()=>ie,e:()=>X,g:()=>Fe,l:()=>Ue,s:()=>ve,t:()=>K,w:()=>ct});var h=P(5861),m=P(9942),te=P(512);const Y="ionViewWillLeave",C="ionViewDidLeave",ie="ionViewWillUnload",K=De=>new Promise((ze,Ke)=>{(0,m.w)(()=>{be(De),Te(De).then(Ht=>{Ht.animation&&Ht.animation.destroy(),Me(De),ze(Ht)},Ht=>{Me(De),Ke(Ht)})})}),be=De=>{const ze=De.enteringEl,Ke=De.leavingEl;me(ze,Ke,De.direction),De.showGoBack?ze.classList.add("can-go-back"):ze.classList.remove("can-go-back"),ve(ze,!1),ze.style.setProperty("pointer-events","none"),Ke&&(ve(Ke,!1),Ke.style.setProperty("pointer-events","none"))},Te=function(){var De=(0,h.Z)(function*(ze){const Ke=yield de(ze);return Ke&&m.B.isBrowser?nt(Ke,ze):Ce(ze)});return function(Ke){return De.apply(this,arguments)}}(),Me=De=>{const ze=De.enteringEl,Ke=De.leavingEl;ze.classList.remove("ion-page-invisible"),ze.style.removeProperty("pointer-events"),void 0!==Ke&&(Ke.classList.remove("ion-page-invisible"),Ke.style.removeProperty("pointer-events"))},de=function(){var De=(0,h.Z)(function*(ze){return ze.leavingEl&&ze.animated&&0!==ze.duration?ze.animationBuilder?ze.animationBuilder:"ios"===ze.mode?(yield Promise.resolve().then(P.bind(P,4810))).iosTransitionAnimation:(yield Promise.resolve().then(P.bind(P,2655))).mdTransitionAnimation:void 0});return function(Ke){return De.apply(this,arguments)}}(),nt=function(){var De=(0,h.Z)(function*(ze,Ke){yield oe(Ke,!0);const Ht=ze(Ke.baseEl,Ke);Ae(Ke.enteringEl,Ke.leavingEl);const dn=yield Ie(Ht,Ke);return Ke.progressCallback&&Ke.progressCallback(void 0),dn&&ye(Ke.enteringEl,Ke.leavingEl),{hasCompleted:dn,animation:Ht}});return function(Ke,Ht){return De.apply(this,arguments)}}(),Ce=function(){var De=(0,h.Z)(function*(ze){const Ke=ze.enteringEl,Ht=ze.leavingEl;return yield oe(ze,!1),Ae(Ke,Ht),ye(Ke,Ht),{hasCompleted:!0}});return function(Ke){return De.apply(this,arguments)}}(),oe=function(){var De=(0,h.Z)(function*(ze,Ke){(void 0!==ze.deepWait?ze.deepWait:Ke)&&(yield Promise.all([X(ze.enteringEl),X(ze.leavingEl)])),yield xe(ze.viewIsReady,ze.enteringEl)});return function(Ke,Ht){return De.apply(this,arguments)}}(),xe=function(){var De=(0,h.Z)(function*(ze,Ke){ze&&(yield ze(Ke))});return function(Ke,Ht){return De.apply(this,arguments)}}(),Ie=(De,ze)=>{const Ke=ze.progressCallback,Ht=new Promise(dn=>{De.onFinish(_n=>dn(1===_n))});return Ke?(De.progressStart(!0),Ke(De)):De.play(),Ht},Ae=(De,ze)=>{Ue(ze,Y),Ue(De,"ionViewWillEnter")},ye=(De,ze)=>{Ue(De,"ionViewDidEnter"),Ue(ze,C)},Ue=(De,ze)=>{if(De){const Ke=new CustomEvent(ze,{bubbles:!1,cancelable:!1});De.dispatchEvent(Ke)}},ct=()=>new Promise(De=>(0,te.r)(()=>(0,te.r)(()=>De()))),X=function(){var De=(0,h.Z)(function*(ze){const Ke=ze;if(Ke){if(null!=Ke.componentOnReady){if(null!=(yield Ke.componentOnReady()))return}else if(null!=Ke.__registerHost)return void(yield new Promise(dn=>(0,te.r)(dn)));yield Promise.all(Array.from(Ke.children).map(X))}});return function(Ke){return De.apply(this,arguments)}}(),ve=(De,ze)=>{ze?(De.setAttribute("aria-hidden","true"),De.classList.add("ion-page-hidden")):(De.hidden=!1,De.removeAttribute("aria-hidden"),De.classList.remove("ion-page-hidden"))},me=(De,ze,Ke)=>{void 0!==De&&(De.style.zIndex="back"===Ke?"99":"101"),void 0!==ze&&(ze.style.zIndex="100")},Fe=De=>De.classList.contains("ion-page")?De:De.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||De},5551:(Bn,Ct,P)=>{"use strict";P.d(Ct,{a:()=>K,b:()=>dn,c:()=>te,i:()=>_n});var h=P(9942);class m{constructor(){this.m=new Map}reset(We){this.m=new Map(Object.entries(We))}get(We,Ne){const ke=this.m.get(We);return void 0!==ke?ke:Ne}getBoolean(We,Ne=!1){const ke=this.m.get(We);return void 0===ke?Ne:"string"==typeof ke?"true"===ke:!!ke}getNumber(We,Ne){const ke=parseFloat(this.m.get(We));return isNaN(ke)?void 0!==Ne?Ne:NaN:ke}set(We,Ne){this.m.set(We,Ne)}}const te=new m,fe="ionic-persist-config",K=(Ut,We)=>("string"==typeof Ut&&(We=Ut,Ut=void 0),(Ut=>be(Ut))(Ut).includes(We)),be=(Ut=window)=>{if(typeof Ut>"u")return[];Ut.Ionic=Ut.Ionic||{};let We=Ut.Ionic.platforms;return null==We&&(We=Ut.Ionic.platforms=Te(Ut),We.forEach(Ne=>Ut.document.documentElement.classList.add(`plt-${Ne}`))),We},Te=Ut=>{const We=te.get("platform");return Object.keys(Ke).filter(Ne=>{const ke=We?.[Ne];return"function"==typeof ke?ke(Ut):Ke[Ne](Ut)})},de=Ut=>!!(De(Ut,/iPad/i)||De(Ut,/Macintosh/i)&&ye(Ut)),oe=Ut=>De(Ut,/android|sink/i),ye=Ut=>ze(Ut,"(any-pointer:coarse)"),ct=Ut=>X(Ut)||ve(Ut),X=Ut=>!!(Ut.cordova||Ut.phonegap||Ut.PhoneGap),ve=Ut=>{const We=Ut.Capacitor;return!!We?.isNative},De=(Ut,We)=>We.test(Ut.navigator.userAgent),ze=(Ut,We)=>{var Ne;return null===(Ne=Ut.matchMedia)||void 0===Ne?void 0:Ne.call(Ut,We).matches},Ke={ipad:de,iphone:Ut=>De(Ut,/iPhone/i),ios:Ut=>De(Ut,/iPhone|iPod/i)||de(Ut),android:oe,phablet:Ut=>{const We=Ut.innerWidth,Ne=Ut.innerHeight,ke=Math.min(We,Ne),it=Math.max(We,Ne);return ke>390&&ke<520&&it>620&&it<800},tablet:Ut=>{const We=Ut.innerWidth,Ne=Ut.innerHeight,ke=Math.min(We,Ne),it=Math.max(We,Ne);return de(Ut)||(Ut=>oe(Ut)&&!De(Ut,/mobile/i))(Ut)||ke>460&&ke<820&&it>780&&it<1400},cordova:X,capacitor:ve,electron:Ut=>De(Ut,/electron/i),pwa:Ut=>{var We;return!!(null!==(We=Ut.matchMedia)&&void 0!==We&&We.call(Ut,"(display-mode: standalone)").matches||Ut.navigator.standalone)},mobile:ye,mobileweb:Ut=>ye(Ut)&&!ct(Ut),desktop:Ut=>!ye(Ut),hybrid:ct};let Ht;const dn=Ut=>Ut&&(0,h.g)(Ut)||Ht,_n=(Ut={})=>{if(typeof window>"u")return;const We=window.document,Ne=window,ke=Ne.Ionic=Ne.Ionic||{},it={};Ut._ael&&(it.ael=Ut._ael),Ut._rel&&(it.rel=Ut._rel),Ut._ce&&(it.ce=Ut._ce),(0,h.a)(it);const Qt=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Ut=>{try{const We=Ut.sessionStorage.getItem(fe);return null!==We?JSON.parse(We):{}}catch{return{}}})(Ne)),{persistConfig:!1}),ke.config),(Ut=>{const We={};return Ut.location.search.slice(1).split("&").map(Ne=>Ne.split("=")).map(([Ne,ke])=>[decodeURIComponent(Ne),decodeURIComponent(ke)]).filter(([Ne])=>((Ut,We)=>Ut.substr(0,We.length)===We)(Ne,"ionic:")).map(([Ne,ke])=>[Ne.slice(6),ke]).forEach(([Ne,ke])=>{We[Ne]=ke}),We})(Ne)),Ut);te.reset(Qt),te.getBoolean("persistConfig")&&((Ut,We)=>{try{Ut.sessionStorage.setItem(fe,JSON.stringify(We))}catch{return}})(Ne,Qt),be(Ne),ke.config=te,ke.mode=Ht=te.get("mode",We.documentElement.getAttribute("mode")||(K(Ne,"ios")?"ios":"md")),te.set("mode",Ht),We.documentElement.setAttribute("mode",Ht),We.documentElement.classList.add(Ht),te.getBoolean("_testing")&&te.set("animated",!1);const mt=tt=>{var pt;return null===(pt=tt.tagName)||void 0===pt?void 0:pt.startsWith("ION-")},an=tt=>["ios","md"].includes(tt);(0,h.c)(tt=>{for(;tt;){const pt=tt.mode||tt.getAttribute("mode");if(pt){if(an(pt))return pt;mt(tt)&&console.warn('Invalid ionic mode: "'+pt+'", expected: "ios" or "md"')}tt=tt.parentElement}return Ht})}},4810:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{iosTransitionAnimation:()=>Te,shadow:()=>C});var h=P(4913),m=P(4232);P(1848),P(9942);const Y=de=>document.querySelector(`${de}.ion-cloned-element`),C=de=>de.shadowRoot||de,ie=de=>{const nt="ION-TABS"===de.tagName?de:de.querySelector("ion-tabs"),Ce="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=nt){const oe=nt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=oe?oe.querySelector(Ce):null}return de.querySelector(Ce)},fe=(de,nt)=>{const Ce="ION-TABS"===de.tagName?de:de.querySelector("ion-tabs");let oe=[];if(null!=Ce){const xe=Ce.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=xe&&(oe=xe.querySelectorAll("ion-buttons"))}else oe=de.querySelectorAll("ion-buttons");for(const xe of oe){const Ie=xe.closest("ion-header"),Ae=Ie&&!Ie.classList.contains("header-collapse-condense-inactive"),ye=xe.querySelector("ion-back-button"),Ue=xe.classList.contains("buttons-collapse");if(null!==ye&&("start"===xe.slot||""===xe.slot)&&(Ue&&Ae&&nt||!Ue))return ye}return null},K=(de,nt,Ce,oe,xe,Ie,Ae,ye,Ue)=>{var ct,X;const ve=nt?`calc(100% - ${xe.right+4}px)`:xe.left-4+"px",me=nt?"right":"left",Fe=nt?"left":"right",De=nt?"right":"left",ze=(null===(ct=Ie.textContent)||void 0===ct?void 0:ct.trim())===(null===(X=ye.textContent)||void 0===X?void 0:X.trim()),Ht=(Ue.height-Me)/Ae.height,dn=ze?`scale(${Ue.width/Ae.width}, ${Ht})`:`scale(${Ht})`,_n="scale(1)",We=C(oe).querySelector("ion-icon").getBoundingClientRect(),Ne=nt?We.width/2-(We.right-xe.right)+"px":xe.left-We.width/2+"px",ke=nt?`-${window.innerWidth-xe.right}px`:`${xe.left}px`,it=`${Ue.top}px`,Qt=`${xe.top}px`,tt=Ce?[{offset:0,transform:`translate3d(${ke}, ${Qt}, 0)`},{offset:1,transform:`translate3d(${Ne}, ${it}, 0)`}]:[{offset:0,transform:`translate3d(${Ne}, ${it}, 0)`},{offset:1,transform:`translate3d(${ke}, ${Qt}, 0)`}],bn=Ce?[{offset:0,opacity:1,transform:_n},{offset:1,opacity:0,transform:dn}]:[{offset:0,opacity:0,transform:dn},{offset:1,opacity:1,transform:_n}],pe=Ce?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],lt=(0,h.c)(),Zt=(0,h.c)(),hn=(0,h.c)(),Yt=Y("ion-back-button"),Ft=C(Yt).querySelector(".button-text"),Un=C(Yt).querySelector("ion-icon");Yt.text=oe.text,Yt.mode=oe.mode,Yt.icon=oe.icon,Yt.color=oe.color,Yt.disabled=oe.disabled,Yt.style.setProperty("display","block"),Yt.style.setProperty("position","fixed"),Zt.addElement(Un),lt.addElement(Ft),hn.addElement(Yt),hn.beforeStyles({position:"absolute",top:"0px",[De]:"0px"}).keyframes(tt),lt.beforeStyles({"transform-origin":`${me} top`}).beforeAddWrite(()=>{oe.style.setProperty("display","none"),Yt.style.setProperty(me,ve)}).afterAddWrite(()=>{oe.style.setProperty("display",""),Yt.style.setProperty("display","none"),Yt.style.removeProperty(me)}).keyframes(bn),Zt.beforeStyles({"transform-origin":`${Fe} center`}).keyframes(pe),de.addAnimation([lt,Zt,hn])},be=(de,nt,Ce,oe,xe,Ie,Ae,ye)=>{var Ue,ct;const X=nt?"right":"left",ve=nt?`calc(100% - ${xe.right}px)`:`${xe.left}px`,Fe=`${xe.top}px`,ze=nt?`-${window.innerWidth-ye.right-8}px`:ye.x-8+"px",Ht=ye.y-2+"px",dn=(null===(Ue=Ae.textContent)||void 0===Ue?void 0:Ue.trim())===(null===(ct=oe.textContent)||void 0===ct?void 0:ct.trim()),Ut=ye.height/(Ie.height-Me),We="scale(1)",Ne=dn?`scale(${ye.width/Ie.width}, ${Ut})`:`scale(${Ut})`,Qt=Ce?[{offset:0,opacity:0,transform:`translate3d(${ze}, ${Ht}, 0) ${Ne}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Fe}, 0) ${We}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Fe}, 0) ${We}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${ze}, ${Ht}, 0) ${Ne}`}],mt=Y("ion-title"),an=(0,h.c)();mt.innerText=oe.innerText,mt.size=oe.size,mt.color=oe.color,an.addElement(mt),an.beforeStyles({"transform-origin":`${X} top`,height:`${xe.height}px`,display:"",position:"relative",[X]:ve}).beforeAddWrite(()=>{oe.style.setProperty("opacity","0")}).afterAddWrite(()=>{oe.style.setProperty("opacity",""),mt.style.setProperty("display","none")}).keyframes(Qt),de.addAnimation(an)},Te=(de,nt)=>{var Ce;try{const oe="cubic-bezier(0.32,0.72,0,1)",xe="opacity",Ie="transform",Ae="0%",Ue="rtl"===de.ownerDocument.dir,ct=Ue?"-99.5%":"99.5%",X=Ue?"33%":"-33%",ve=nt.enteringEl,me=nt.leavingEl,Fe="back"===nt.direction,De=ve.querySelector(":scope > ion-content"),ze=ve.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),Ke=ve.querySelectorAll(":scope > ion-header > ion-toolbar"),Ht=(0,h.c)(),dn=(0,h.c)();if(Ht.addElement(ve).duration((null!==(Ce=nt.duration)&&void 0!==Ce?Ce:0)||540).easing(nt.easing||oe).fill("both").beforeRemoveClass("ion-page-invisible"),me&&null!=de){const Ne=(0,h.c)();Ne.addElement(de),Ht.addAnimation(Ne)}if(De||0!==Ke.length||0!==ze.length?(dn.addElement(De),dn.addElement(ze)):dn.addElement(ve.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Ht.addAnimation(dn),Fe?dn.beforeClearStyles([xe]).fromTo("transform",`translateX(${X})`,`translateX(${Ae})`).fromTo(xe,.8,1):dn.beforeClearStyles([xe]).fromTo("transform",`translateX(${ct})`,`translateX(${Ae})`),De){const Ne=C(De).querySelector(".transition-effect");if(Ne){const ke=Ne.querySelector(".transition-cover"),it=Ne.querySelector(".transition-shadow"),Qt=(0,h.c)(),mt=(0,h.c)(),an=(0,h.c)();Qt.addElement(Ne).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),mt.addElement(ke).beforeClearStyles([xe]).fromTo(xe,0,.1),an.addElement(it).beforeClearStyles([xe]).fromTo(xe,.03,.7),Qt.addAnimation([mt,an]),dn.addAnimation([Qt])}}const _n=ve.querySelector("ion-header.header-collapse-condense"),{forward:Ut,backward:We}=((de,nt,Ce,oe,xe)=>{const Ie=fe(oe,Ce),Ae=ie(xe),ye=ie(oe),Ue=fe(xe,Ce),ct=null!==Ie&&null!==Ae&&!Ce,X=null!==ye&&null!==Ue&&Ce;if(ct){const ve=Ae.getBoundingClientRect(),me=Ie.getBoundingClientRect(),Fe=C(Ie).querySelector(".button-text"),De=Fe.getBoundingClientRect(),Ke=C(Ae).querySelector(".toolbar-title").getBoundingClientRect();be(de,nt,Ce,Ae,ve,Ke,Fe,De),K(de,nt,Ce,Ie,me,Fe,De,Ae,Ke)}else if(X){const ve=ye.getBoundingClientRect(),me=Ue.getBoundingClientRect(),Fe=C(Ue).querySelector(".button-text"),De=Fe.getBoundingClientRect(),Ke=C(ye).querySelector(".toolbar-title").getBoundingClientRect();be(de,nt,Ce,ye,ve,Ke,Fe,De),K(de,nt,Ce,Ue,me,Fe,De,ye,Ke)}return{forward:ct,backward:X}})(Ht,Ue,Fe,ve,me);if(Ke.forEach(Ne=>{const ke=(0,h.c)();ke.addElement(Ne),Ht.addAnimation(ke);const it=(0,h.c)();it.addElement(Ne.querySelector("ion-title"));const Qt=(0,h.c)(),mt=Array.from(Ne.querySelectorAll("ion-buttons,[menuToggle]")),an=Ne.closest("ion-header"),tt=an?.classList.contains("header-collapse-condense-inactive");let pt;pt=mt.filter(Fe?pe=>{const lt=pe.classList.contains("buttons-collapse");return lt&&!tt||!lt}:pe=>!pe.classList.contains("buttons-collapse")),Qt.addElement(pt);const Xt=(0,h.c)();Xt.addElement(Ne.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const bn=(0,h.c)();bn.addElement(C(Ne).querySelector(".toolbar-background"));const Cn=(0,h.c)(),It=Ne.querySelector("ion-back-button");if(It&&Cn.addElement(It),ke.addAnimation([it,Qt,Xt,bn,Cn]),Qt.fromTo(xe,.01,1),Xt.fromTo(xe,.01,1),Fe)tt||it.fromTo("transform",`translateX(${X})`,`translateX(${Ae})`).fromTo(xe,.01,1),Xt.fromTo("transform",`translateX(${X})`,`translateX(${Ae})`),Cn.fromTo(xe,.01,1);else if(_n||it.fromTo("transform",`translateX(${ct})`,`translateX(${Ae})`).fromTo(xe,.01,1),Xt.fromTo("transform",`translateX(${ct})`,`translateX(${Ae})`),bn.beforeClearStyles([xe,"transform"]),an?.translucent?bn.fromTo("transform",Ue?"translateX(-100%)":"translateX(100%)","translateX(0px)"):bn.fromTo(xe,.01,"var(--opacity)"),Ut||Cn.fromTo(xe,.01,1),It&&!Ut){const lt=(0,h.c)();lt.addElement(C(It).querySelector(".button-text")).fromTo("transform",Ue?"translateX(-100px)":"translateX(100px)","translateX(0px)"),ke.addAnimation(lt)}}),me){const Ne=(0,h.c)(),ke=me.querySelector(":scope > ion-content"),it=me.querySelectorAll(":scope > ion-header > ion-toolbar"),Qt=me.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(ke||0!==it.length||0!==Qt.length?(Ne.addElement(ke),Ne.addElement(Qt)):Ne.addElement(me.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),Ht.addAnimation(Ne),Fe){Ne.beforeClearStyles([xe]).fromTo("transform",`translateX(${Ae})`,Ue?"translateX(-100%)":"translateX(100%)");const mt=(0,m.g)(me);Ht.afterAddWrite(()=>{"normal"===Ht.getDirection()&&mt.style.setProperty("display","none")})}else Ne.fromTo("transform",`translateX(${Ae})`,`translateX(${X})`).fromTo(xe,1,.8);if(ke){const mt=C(ke).querySelector(".transition-effect");if(mt){const an=mt.querySelector(".transition-cover"),tt=mt.querySelector(".transition-shadow"),pt=(0,h.c)(),Xt=(0,h.c)(),bn=(0,h.c)();pt.addElement(mt).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Xt.addElement(an).beforeClearStyles([xe]).fromTo(xe,.1,0),bn.addElement(tt).beforeClearStyles([xe]).fromTo(xe,.7,.03),pt.addAnimation([Xt,bn]),Ne.addAnimation([pt])}}it.forEach(mt=>{const an=(0,h.c)();an.addElement(mt);const tt=(0,h.c)();tt.addElement(mt.querySelector("ion-title"));const pt=(0,h.c)(),Xt=mt.querySelectorAll("ion-buttons,[menuToggle]"),bn=mt.closest("ion-header"),Cn=bn?.classList.contains("header-collapse-condense-inactive"),It=Array.from(Xt).filter(Ft=>{const Un=Ft.classList.contains("buttons-collapse");return Un&&!Cn||!Un});pt.addElement(It);const pe=(0,h.c)(),lt=mt.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");lt.length>0&&pe.addElement(lt);const Zt=(0,h.c)();Zt.addElement(C(mt).querySelector(".toolbar-background"));const hn=(0,h.c)(),Yt=mt.querySelector("ion-back-button");if(Yt&&hn.addElement(Yt),an.addAnimation([tt,pt,pe,hn,Zt]),Ht.addAnimation(an),hn.fromTo(xe,.99,0),pt.fromTo(xe,.99,0),pe.fromTo(xe,.99,0),Fe){if(Cn||tt.fromTo("transform",`translateX(${Ae})`,Ue?"translateX(-100%)":"translateX(100%)").fromTo(xe,.99,0),pe.fromTo("transform",`translateX(${Ae})`,Ue?"translateX(-100%)":"translateX(100%)"),Zt.beforeClearStyles([xe,"transform"]),bn?.translucent?Zt.fromTo("transform","translateX(0px)",Ue?"translateX(-100%)":"translateX(100%)"):Zt.fromTo(xe,"var(--opacity)",0),Yt&&!We){const Un=(0,h.c)();Un.addElement(C(Yt).querySelector(".button-text")).fromTo("transform",`translateX(${Ae})`,`translateX(${(Ue?-124:124)+"px"})`),an.addAnimation(Un)}}else Cn||tt.fromTo("transform",`translateX(${Ae})`,`translateX(${X})`).fromTo(xe,.99,0).afterClearStyles([Ie,xe]),pe.fromTo("transform",`translateX(${Ae})`,`translateX(${X})`).afterClearStyles([Ie,xe]),hn.afterClearStyles([xe]),tt.afterClearStyles([xe]),pt.afterClearStyles([xe])})}return Ht}catch(oe){throw oe}},Me=10},2655:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{mdTransitionAnimation:()=>B});var h=P(4913),m=P(4232);P(1848),P(9942);const B=(Y,C)=>{var ie,fe,Pe;const K="40px",Te="back"===C.direction,de=C.leavingEl,nt=(0,m.g)(C.enteringEl),Ce=nt.querySelector("ion-toolbar"),oe=(0,h.c)();if(oe.addElement(nt).fill("both").beforeRemoveClass("ion-page-invisible"),Te?oe.duration((null!==(ie=C.duration)&&void 0!==ie?ie:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):oe.duration((null!==(fe=C.duration)&&void 0!==fe?fe:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform",`translateY(${K})`,"translateY(0px)").fromTo("opacity",.01,1),Ce){const xe=(0,h.c)();xe.addElement(Ce),oe.addAnimation(xe)}if(de&&Te){oe.duration((null!==(Pe=C.duration)&&void 0!==Pe?Pe:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const xe=(0,h.c)();xe.addElement((0,m.g)(de)).onFinish(Ie=>{1===Ie&&xe.elements.length>0&&xe.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)",`translateY(${K})`).fromTo("opacity",1,0),oe.addAnimation(xe)}return oe}},2936:(Bn,Ct,P)=>{"use strict";P.d(Ct,{B:()=>tt,G:()=>pt,O:()=>Xt,a:()=>be,b:()=>Te,c:()=>Ce,d:()=>bn,e:()=>Cn,f:()=>dn,g:()=>Ut,h:()=>ke,i:()=>Qt,j:()=>xe,k:()=>Ie,l:()=>Me,m:()=>de,n:()=>Pe,o:()=>Ue,q:()=>Ke,s:()=>an,t:()=>oe});var h=P(5861),m=P(1848),te=P(5551),l=P(3254),B=P(4393),Y=P(512),C=P(2400);let ie=0,fe=0;const Pe=new WeakMap,K=It=>({create:pe=>Ae(It,pe),dismiss:(pe,lt,Zt)=>Fe(document,pe,lt,It,Zt),getTop:()=>(0,h.Z)(function*(){return Ke(document,It)})()}),be=K("ion-alert"),Te=K("ion-action-sheet"),Me=K("ion-loading"),de=K("ion-modal"),Ce=K("ion-popover"),oe=K("ion-toast"),xe=It=>{typeof document<"u"&&me(document);const pe=ie++;It.overlayIndex=pe},Ie=It=>(It.hasAttribute("id")||(It.id="ion-overlay-"+ ++fe),It.id),Ae=(It,pe)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(It).then(()=>{const lt=document.createElement(It);return lt.classList.add("overlay-hidden"),Object.assign(lt,Object.assign(Object.assign({},pe),{hasController:!0})),We(document).appendChild(lt),new Promise(Zt=>(0,Y.c)(lt,Zt))}):Promise.resolve(),ye='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Ue=(It,pe)=>{let lt=It.querySelector(ye);const Zt=lt?.shadowRoot;Zt&&(lt=Zt.querySelector(ye)||lt),lt?(0,Y.f)(lt):pe.focus()},X=(It,pe)=>{const lt=Array.from(It.querySelectorAll(ye));let Zt=lt.length>0?lt[lt.length-1]:null;const hn=Zt?.shadowRoot;hn&&(Zt=hn.querySelector(ye)||Zt),Zt?Zt.focus():pe.focus()},me=It=>{0===ie&&(ie=1,It.addEventListener("focus",pe=>{((It,pe)=>{const lt=Ke(pe,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover"),Zt=It.target;lt&&Zt&&!lt.classList.contains("ion-disable-focus-trap")&&(lt.shadowRoot?(()=>{if(lt.contains(Zt))lt.lastFocus=Zt;else{const Ft=lt.lastFocus;Ue(lt,lt),Ft===pe.activeElement&&X(lt,lt),lt.lastFocus=pe.activeElement}})():(()=>{if(lt===Zt)lt.lastFocus=void 0;else{const Ft=(0,Y.g)(lt);if(!Ft.contains(Zt))return;const Un=Ft.querySelector(".ion-overlay-wrapper");if(!Un)return;if(Un.contains(Zt)||Zt===Ft.querySelector("ion-backdrop"))lt.lastFocus=Zt;else{const Ve=lt.lastFocus;Ue(Un,lt),Ve===pe.activeElement&&X(Un,lt),lt.lastFocus=pe.activeElement}}})())})(pe,It)},!0),It.addEventListener("ionBackButton",pe=>{const lt=Ke(It);lt?.backdropDismiss&&pe.detail.register(B.OVERLAY_BACK_BUTTON_PRIORITY,()=>lt.dismiss(void 0,tt))}),It.addEventListener("keydown",pe=>{if("Escape"===pe.key){const lt=Ke(It);lt?.backdropDismiss&<.dismiss(void 0,tt)}}))},Fe=(It,pe,lt,Zt,hn)=>{const Yt=Ke(It,Zt,hn);return Yt?Yt.dismiss(pe,lt):Promise.reject("overlay does not exist")},ze=(It,pe)=>((It,pe)=>(void 0===pe&&(pe="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker,ion-popover,ion-toast"),Array.from(It.querySelectorAll(pe)).filter(lt=>lt.overlayIndex>0)))(It,pe).filter(lt=>!(It=>It.classList.contains("overlay-hidden"))(lt)),Ke=(It,pe,lt)=>{const Zt=ze(It,pe);return void 0===lt?Zt[Zt.length-1]:Zt.find(hn=>hn.id===lt)},Ht=(It=!1)=>{const lt=We(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");lt&&(It?lt.setAttribute("aria-hidden","true"):lt.removeAttribute("aria-hidden"))},dn=function(){var It=(0,h.Z)(function*(pe,lt,Zt,hn,Yt){var Ft,Un;if(pe.presented)return;Ht(!0),pe.presented=!0,pe.willPresent.emit(),null===(Ft=pe.willPresentShorthand)||void 0===Ft||Ft.emit();const Ve=(0,te.b)(pe),Pt=pe.enterAnimation?pe.enterAnimation:te.c.get(lt,"ios"===Ve?Zt:hn);(yield Ne(pe,Pt,pe.el,Yt))&&(pe.didPresent.emit(),null===(Un=pe.didPresentShorthand)||void 0===Un||Un.emit()),"ION-TOAST"!==pe.el.tagName&&_n(pe.el),pe.keyboardClose&&(null===document.activeElement||!pe.el.contains(document.activeElement))&&pe.el.focus()});return function(lt,Zt,hn,Yt,Ft){return It.apply(this,arguments)}}(),_n=function(){var It=(0,h.Z)(function*(pe){let lt=document.activeElement;if(!lt)return;const Zt=lt?.shadowRoot;Zt&&(lt=Zt.querySelector(ye)||lt),yield pe.onDidDismiss(),lt.focus()});return function(lt){return It.apply(this,arguments)}}(),Ut=function(){var It=(0,h.Z)(function*(pe,lt,Zt,hn,Yt,Ft,Un){var Ve,Pt;if(!pe.presented)return!1;void 0!==m.d&&1===ze(m.d).length&&Ht(!1),pe.presented=!1;try{pe.el.style.setProperty("pointer-events","none"),pe.willDismiss.emit({data:lt,role:Zt}),null===(Ve=pe.willDismissShorthand)||void 0===Ve||Ve.emit({data:lt,role:Zt});const Kt=(0,te.b)(pe),wn=pe.leaveAnimation?pe.leaveAnimation:te.c.get(hn,"ios"===Kt?Yt:Ft);Zt!==pt&&(yield Ne(pe,wn,pe.el,Un)),pe.didDismiss.emit({data:lt,role:Zt}),null===(Pt=pe.didDismissShorthand)||void 0===Pt||Pt.emit({data:lt,role:Zt}),Pe.delete(pe),pe.el.classList.add("overlay-hidden"),pe.el.style.removeProperty("pointer-events"),void 0!==pe.el.lastFocus&&(pe.el.lastFocus=void 0)}catch(Kt){console.error(Kt)}return pe.el.remove(),!0});return function(lt,Zt,hn,Yt,Ft,Un,Ve){return It.apply(this,arguments)}}(),We=It=>It.querySelector("ion-app")||It.body,Ne=function(){var It=(0,h.Z)(function*(pe,lt,Zt,hn){Zt.classList.remove("overlay-hidden");const Ft=lt(pe.el,hn);(!pe.animated||!te.c.getBoolean("animated",!0))&&Ft.duration(0),pe.keyboardClose&&Ft.beforeAddWrite(()=>{const Ve=Zt.ownerDocument.activeElement;Ve?.matches("input,ion-input, ion-textarea")&&Ve.blur()});const Un=Pe.get(pe)||[];return Pe.set(pe,[...Un,Ft]),yield Ft.play(),!0});return function(lt,Zt,hn,Yt){return It.apply(this,arguments)}}(),ke=(It,pe)=>{let lt;const Zt=new Promise(hn=>lt=hn);return it(It,pe,hn=>{lt(hn.detail)}),Zt},it=(It,pe,lt)=>{const Zt=hn=>{(0,Y.b)(It,pe,Zt),lt(hn)};(0,Y.a)(It,pe,Zt)},Qt=It=>"cancel"===It||It===tt,mt=It=>It(),an=(It,pe)=>{if("function"==typeof It)return te.c.get("_zoneGate",mt)(()=>{try{return It(pe)}catch(Zt){throw Zt}})},tt="backdrop",pt="gesture",Xt=39,bn=It=>{let lt,pe=!1;const Zt=(0,l.C)(),hn=(Un=!1)=>{if(lt&&!Un)return{delegate:lt,inline:pe};const{el:Ve,hasController:Pt,delegate:Kt}=It;return pe=null!==Ve.parentNode&&!Pt,lt=pe?Kt||Zt:Kt,{inline:pe,delegate:lt}};return{attachViewToDom:function(){var Un=(0,h.Z)(function*(Ve){const{delegate:Pt}=hn(!0);if(Pt)return yield Pt.attachViewToDom(It.el,Ve);const{hasController:Kt}=It;if(Kt&&void 0!==Ve)throw new Error("framework delegate is missing");return null});return function(Pt){return Un.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:Un}=hn();Un&&void 0!==It.el&&Un.removeViewFromDom(It.el.parentElement,It.el)}}},Cn=()=>{let It;const pe=()=>{It&&(It(),It=void 0)};return{addClickListener:(Zt,hn)=>{pe();const Yt=void 0!==hn?document.getElementById(hn):null;Yt?It=((Un,Ve)=>{const Pt=()=>{Ve.present()};return Un.addEventListener("click",Pt),()=>{Un.removeEventListener("click",Pt)}})(Yt,Zt):(0,C.p)(`A trigger element with the ID "${hn}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,Zt)},removeClickListener:pe}}},1163:(Bn,Ct,P)=>{"use strict";P.d(Ct,{B:()=>be});var h=P(9212),m=P(866),te=P(6814),l=P(451);function B(Te,Me){if(1&Te&&(h.TgZ(0,"ion-badge",7),h._uU(1),h.qZA()),2&Te){const de=h.oxw().$implicit;h.xp6(),h.hij("",de.Quantity," x")}}function Y(Te,Me){if(1&Te&&(h.TgZ(0,"strong"),h._uU(1),h.qZA()),2&Te){const de=h.oxw().$implicit;h.xp6(),h.hij("",de.PowerKW," kW ")}}function C(Te,Me){if(1&Te&&(h.TgZ(0,"div"),h._uU(1),h.qZA()),2&Te){const de=h.oxw().$implicit;h.xp6(),h.hij("",null==de.CurrentType?null:de.CurrentType.Title," ")}}function ie(Te,Me){if(1&Te&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&Te){const de=h.oxw().$implicit;h.xp6(),h.hij("",de.Amps,"A ")}}function fe(Te,Me){if(1&Te&&(h.TgZ(0,"span"),h._uU(1),h.qZA()),2&Te){const de=h.oxw().$implicit;h.xp6(),h.hij("",de.Voltage,"V ")}}function Pe(Te,Me){if(1&Te){const de=h.EpF();h.TgZ(0,"ion-col")(1,"ion-button",8),h.NdJ("click",function(){h.CHM(de);const Ce=h.oxw().$implicit,oe=h.oxw();return h.KtG(oe.editConnection(Ce))}),h._UZ(2,"ion-icon",9),h.qZA(),h._UZ(3,"br"),h.TgZ(4,"ion-button",10),h.NdJ("click",function(){h.CHM(de);const Ce=h.oxw().$implicit,oe=h.oxw();return h.KtG(oe.deleteConnection(Ce))}),h._UZ(5,"ion-icon",11),h.qZA()()}}function K(Te,Me){if(1&Te&&(h.TgZ(0,"ion-row")(1,"ion-col")(2,"ion-row")(3,"ion-col",1),h._UZ(4,"img",2),h.YNc(5,B,2,1,"ion-badge",3),h.TgZ(6,"div",4),h._uU(7),h.qZA()(),h.TgZ(8,"ion-col")(9,"ion-row")(10,"ion-col")(11,"ion-note")(12,"div")(13,"strong",5),h._uU(14),h.qZA()(),h.YNc(15,Y,2,1,"strong",6)(16,C,2,1,"div",6),h.qZA(),h.TgZ(17,"ion-note"),h.YNc(18,ie,2,1,"span",6)(19,fe,2,1,"span",6),h.qZA()()(),h.TgZ(20,"ion-row")(21,"ion-col",4),h._uU(22),h.qZA(),h.TgZ(23,"ion-col",4),h._uU(24),h.qZA()()(),h.YNc(25,Pe,6,0,"ion-col",6),h.qZA()()()),2&Te){const de=Me.$implicit,nt=h.oxw();h.xp6(4),h.Q6J("src",nt.getConnectorTypeIcon(de.ConnectionTypeID),h.LSH),h.xp6(),h.Q6J("ngIf",de.Quantity),h.xp6(2),h.Oqu(null==de.StatusType?null:de.StatusType.Title),h.xp6(6),h.s9C("title",null==de.ConnectionType?null:de.ConnectionType.FormalName),h.xp6(),h.hij("",null==de.ConnectionType?null:de.ConnectionType.Title," "),h.xp6(),h.Q6J("ngIf",de.PowerKW),h.xp6(),h.Q6J("ngIf",de.CurrentTypeID),h.xp6(2),h.Q6J("ngIf",de.Amps),h.xp6(),h.Q6J("ngIf",de.Voltage),h.xp6(3),h.Oqu(de.Reference),h.xp6(2),h.Oqu(de.Comments),h.xp6(),h.Q6J("ngIf",nt.enableEdit)}}let be=(()=>{class Te{item;enableEdit=!1;onEdit=new h.vpe;onDelete=new h.vpe;constructor(){}ngOnInit(){}editConnection(de){this.onEdit.emit(de)}deleteConnection(de){this.onDelete.emit(de)}getConnectorTypeIcon(de){return m.c.getIconForConnector(de)}static \u0275fac=function(nt){return new(nt||Te)};static \u0275cmp=h.Xpm({type:Te,selectors:[["app-equipment-details"]],inputs:{item:"item",enableEdit:"enableEdit"},outputs:{onEdit:"onEdit",onDelete:"onDelete"},decls:2,vars:1,consts:[[4,"ngFor","ngForOf"],["size","3"],[2,"max-width","64px",3,"src"],["color","primary",4,"ngIf"],[1,"info"],[3,"title"],[4,"ngIf"],["color","primary"],["size","small","color","secondary",3,"click"],["name","create","slot","icon-only"],["size","small","color","danger",3,"click"],["name","trash","slot","icon-only"]],template:function(nt,Ce){1&nt&&(h.TgZ(0,"ion-grid"),h.YNc(1,K,26,12,"ion-row",0),h.qZA()),2&nt&&(h.xp6(),h.Q6J("ngForOf",Ce.item.Connections))},dependencies:[te.sg,te.O5,l.yp,l.YG,l.wI,l.jY,l.gu,l.uN,l.Nd]})}return Te})()},6086:(Bn,Ct,P)=>{"use strict";P.d(Ct,{z:()=>nt});var h=P(5861),m=P(9212),te=P(9159),l=P(6814),B=P(451),Y=P(6223);function C(Ce,oe){if(1&Ce&&(m.TgZ(0,"ion-select-option",5),m._uU(1),m.qZA()),2&Ce){const xe=oe.$implicit;m.Q6J("value",xe.ID),m.xp6(),m.Oqu(xe.Title)}}function ie(Ce,oe){1&Ce&&(m.TgZ(0,"ion-select-option",6),m._uU(1,"Other..."),m.qZA())}function fe(Ce,oe){if(1&Ce){const xe=m.EpF();m.TgZ(0,"ion-item")(1,"ion-label",1),m._uU(2,"Network Operator"),m.qZA(),m.TgZ(3,"ion-select",2),m.NdJ("ngModelChange",function(Ae){m.CHM(xe);const ye=m.oxw();return m.KtG(ye.operatorId=Ae)})("ionChange",function(){m.CHM(xe);const Ae=m.oxw();return m.KtG(Ae.onOperatorChange())}),m.YNc(4,C,2,2,"ion-select-option",3)(5,ie,2,0,"ion-select-option",4),m.qZA()()}if(2&Ce){const xe=m.oxw();m.xp6(3),m.Q6J("ngModel",xe.operatorId),m.xp6(),m.Q6J("ngForOf",xe.operators),m.xp6(),m.Q6J("ngIf",xe.useFilteredOperators)}}function Pe(Ce,oe){if(1&Ce){const xe=m.EpF();m.TgZ(0,"ion-item")(1,"ion-searchbar",7),m.NdJ("ionCancel",function(){m.CHM(xe);const Ae=m.oxw();return m.KtG(Ae.cancelOperatorLookup())})("ngModelChange",function(Ae){m.CHM(xe);const ye=m.oxw();return m.KtG(ye.operatorSearchKeyword=Ae)})("ionInput",function(Ae){m.CHM(xe);const ye=m.oxw();return m.KtG(ye.searchOperators(Ae))}),m.qZA()()}if(2&Ce){const xe=m.oxw();m.xp6(),m.Q6J("ngModel",xe.operatorSearchKeyword)}}function K(Ce,oe){if(1&Ce){const xe=m.EpF();m.TgZ(0,"ion-item",9),m.NdJ("click",function(){const ye=m.CHM(xe).$implicit,Ue=m.oxw(2);return m.KtG(Ue.onOperatorChange(ye))}),m.TgZ(1,"ion-avatar",10),m._UZ(2,"ion-icon",11),m.qZA(),m.TgZ(3,"ion-label")(4,"p"),m._uU(5),m.qZA(),m.TgZ(6,"p"),m._uU(7),m.qZA()()()}if(2&Ce){const xe=oe.$implicit;m.xp6(5),m.Oqu(xe.Title),m.xp6(2),m.Oqu(xe.WebsiteURL)}}function be(Ce,oe){if(1&Ce&&(m.ynx(0),m.TgZ(1,"ion-list"),m.YNc(2,K,8,2,"ion-item",8),m.qZA(),m.BQk()),2&Ce){const xe=m.oxw();m.xp6(2),m.Q6J("ngForOf",xe.operatorSearchResults)}}function Te(Ce,oe){if(1&Ce){const xe=m.EpF();m.ynx(0),m.TgZ(1,"ion-item")(2,"ion-avatar",10),m._UZ(3,"ion-icon",12),m.qZA(),m.TgZ(4,"ion-label")(5,"p"),m._uU(6),m.qZA(),m.TgZ(7,"p"),m._uU(8),m.qZA(),m.TgZ(9,"ion-button",9),m.NdJ("click",function(){m.CHM(xe);const Ae=m.oxw();return m.KtG(Ae.selectedOperator=null)}),m._uU(10,"Change"),m.qZA()()(),m.BQk()}if(2&Ce){const xe=m.oxw();m.xp6(6),m.Oqu(xe.selectedOperator.Title),m.xp6(2),m.Oqu(xe.selectedOperator.WebsiteURL)}}function Me(Ce,oe){if(1&Ce){const xe=m.EpF();m.TgZ(0,"ion-chip")(1,"ion-label"),m._uU(2),m.qZA(),m.TgZ(3,"ion-icon",14),m.NdJ("click",function(){const ye=m.CHM(xe).$implicit,Ue=m.oxw(2);return m.KtG(Ue.removeOperator(ye))}),m.qZA()()}if(2&Ce){const xe=oe.$implicit,Ie=m.oxw(2);m.xp6(2),m.Oqu(Ie.getOperatorInfo(xe).Title)}}function de(Ce,oe){if(1&Ce&&(m.ynx(0),m.YNc(1,Me,4,1,"ion-chip",13),m.BQk()),2&Ce){const xe=m.oxw();m.xp6(),m.Q6J("ngForOf",xe.operatorList)}}let nt=(()=>{class Ce{referenceDataManager;changeDetector;operatorId=null;operatorList=null;mode="single";useFilteredOperators=null;operatorChanged=new m.vpe;operatorRemoved=new m.vpe;operatorCache=[];operatorSearchResults=[];operatorSearchKeyword="";selectedOperator=null;get operators(){return this.referenceDataManager.getNetworkOperators(this.useFilteredOperators)}constructor(xe,Ie){this.referenceDataManager=xe,this.changeDetector=Ie}ngOnInit(){this.operatorCache=this.referenceDataManager.getNetworkOperators(!1),null!=this.operatorId&&(this.selectedOperator=this.operatorCache.find(xe=>xe.ID==this.operatorId))}searchOperators(){this.operatorSearchResults=[],0!=this.operatorSearchKeyword.length&&(this.operatorSearchResults=this.operatorCache?this.operatorCache.filter(xe=>xe.Title.toLowerCase().startsWith(this.operatorSearchKeyword.toLowerCase())||xe.Title.toLowerCase().startsWith("("+this.operatorSearchKeyword.toLowerCase())).slice(0,10):[])}getOperatorInfo(xe){if(this.operatorCache)return this.operatorCache.find(Ie=>Ie.ID==xe)}onOperatorChange(xe=null){var Ie=this;return(0,h.Z)(function*(){null==xe&&Ie.operatorId&&(xe=Ie.operatorCache.find(Ae=>Ae.ID==Ie.operatorId)),null!=xe&&(Ie.operatorSearchResults=[],Ie.selectedOperator=xe,Ie.operatorId=xe.ID),Ie.operatorId?(Ie.operatorChanged.emit(Ie.selectedOperator),"single"!=Ie.mode&&(Ie.selectedOperator=null,Ie.operatorSearchKeyword="")):Ie.useFilteredOperators=!1})()}removeOperator(xe){var Ie=this;return(0,h.Z)(function*(){Ie.operatorId=null,Ie.operatorRemoved.emit(xe)})()}cancelOperatorLookup(){this.selectedOperator=null}static \u0275fac=function(Ie){return new(Ie||Ce)(m.Y36(te.W),m.Y36(m.sBO))};static \u0275cmp=m.Xpm({type:Ce,selectors:[["app-operator-lookup"]],inputs:{operatorId:"operatorId",operatorList:"operatorList",mode:"mode",useFilteredOperators:"useFilteredOperators"},outputs:{operatorChanged:"operatorChanged",operatorRemoved:"operatorRemoved"},decls:5,vars:5,consts:[[4,"ngIf"],["position","floating"],[3,"ngModel","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],["value","",4,"ngIf"],[3,"value"],["value",""],["placeholder","Search network operators","showCancelButton","focus","autocomplete","on",3,"ngModel","ionCancel","ngModelChange","ionInput"],[3,"click",4,"ngFor","ngForOf"],[3,"click"],["item-left",""],["name","card"],["name","locate"],[4,"ngFor","ngForOf"],["name","close-circle",3,"click"]],template:function(Ie,Ae){1&Ie&&m.YNc(0,fe,6,3,"ion-item",0)(1,Pe,2,1,"ion-item",0)(2,be,3,1,"ng-container",0)(3,Te,11,2,"ng-container",0)(4,de,2,1,"ng-container",0),2&Ie&&(m.Q6J("ngIf",Ae.useFilteredOperators&&!Ae.selectedOperator),m.xp6(),m.Q6J("ngIf",!Ae.useFilteredOperators&&!Ae.selectedOperator),m.xp6(),m.Q6J("ngIf",Ae.operatorSearchResults.length>0),m.xp6(),m.Q6J("ngIf",null!=Ae.selectedOperator),m.xp6(),m.Q6J("ngIf",(null==Ae.operatorList?null:Ae.operatorList.length)>0))},dependencies:[l.sg,l.O5,B.BJ,B.YG,B.hM,B.gu,B.Ie,B.Q$,B.q_,B.VI,B.t9,B.n0,B.QI,B.j9,Y.JJ,Y.On]})}return Ce})()},5460:(Bn,Ct,P)=>{"use strict";P.d(Ct,{v:()=>de});var h=P(5861),m=P(9127),te=P(2117),l=P(9212),B=P(9903),Y=P(3052),C=P(7346),ie=P(451),fe=P(9862),Pe=P(5957),K=P(6814);function be(nt,Ce){1&nt&&(l.TgZ(0,"div"),l._UZ(1,"ion-spinner"),l.qZA())}function Te(nt,Ce){if(1&nt){const oe=l.EpF();l.TgZ(0,"ion-item",5),l.NdJ("click",function(){const Ae=l.CHM(oe).$implicit,ye=l.oxw(2);return l.KtG(ye.placeSelected(Ae))}),l.TgZ(1,"ion-avatar",6),l._UZ(2,"ion-icon",7),l.qZA(),l.TgZ(3,"ion-label")(4,"p"),l._uU(5),l.qZA()()()}if(2&nt){const oe=Ce.$implicit;l.xp6(5),l.Oqu(oe.Address)}}function Me(nt,Ce){if(1&nt&&(l.TgZ(0,"div",1),l.YNc(1,be,2,0,"div",2),l.TgZ(2,"ion-list"),l.YNc(3,Te,6,1,"ion-item",3),l.TgZ(4,"ion-item")(5,"p",4),l._uU(6),l.qZA()()()()),2&nt){const oe=l.oxw();l.xp6(),l.Q6J("ngIf",oe.searchInProgress),l.xp6(2),l.Q6J("ngForOf",oe.placeList),l.xp6(3),l.hij(" ",oe.placeAttribution," ")}}let de=(()=>{class nt{logging;changeDetector;platform;http;events;placeSearchType;placeList;searchInProgress=!1;searchKeyword;placeSearchFocused;placeSearchActive=!1;placeAttribution="";selectedPlace;placeChanged=new l.vpe;mapService;constructor(oe,xe,Ie,Ae,ye){this.logging=oe,this.changeDetector=xe,this.platform=Ie,this.http=Ae,this.events=ye,this.searchKeyword="",this.searchInProgress=!1,this.mapService=new B.k(ye,oe,Ae)}ngOnInit(){var oe=this;return(0,h.Z)(function*(){yield oe.platform.ready(),oe.mapService.initAPI()})()}onSearchFocus(){this.placeSearchFocused=!0}onSearchBlur(){this.placeSearchFocused=!1}onSearchCancel(){}getPlacesAutoComplete(oe,xe){var Ie=this;return(0,h.Z)(function*(){Ie.placeSearchType=xe;let Ae=oe.target.value;if(Ae&&Ae.length>3){Ie.logging.log("Starting place lookup for:"+Ae),Ie.placeSearchActive=!0,Ie.searchInProgress=!0,Ie.searchInProgress=!1,Ie.placeSearchActive=!0;try{Ie.placeList=yield Ie.mapService.placeSearch(Ae),Ie.placeList&&Ie.placeList.length>0&&(Ie.placeAttribution=Ie.placeList[0].Attribution);let ye=yield Ie.detectAlternativeSearchResultType(Ae);ye&&Ie.placeList.unshift(ye)}catch{}Ie.searchInProgress=!1,Ie.placeSearchActive=!0}else Ie.searchInProgress=!1,Ie.placeSearchActive=!1})()}ConvertDMSToDD(oe,xe,Ie,Ae){var ye=Number(oe)+Number(xe)/60+Number(Ie)/3600;return("S"==Ae||"W"==Ae)&&(ye*=-1),ye}ParseDMS(oe){try{var xe=oe.split(/[^\d\w\.]+/),Ie=this.ConvertDMSToDD(xe[0],xe[1],xe[2],xe[3]),Ae=this.ConvertDMSToDD(xe[4],xe[5],xe[6],xe[7]);return new Y.wC(Ie,Ae)}catch{return null}}detectAlternativeSearchResultType(oe){var xe=this;return(0,h.Z)(function*(){if((oe=oe.trim()).startsWith("OCM-")&&(oe=oe.replace("OCM-","")),Number.isInteger(Number(oe))){let ye=new te.n;return ye.Title="Go to OCM ID",ye.Address="OCM-"+oe,ye.ReferenceID="OCM-"+oe,ye}let Ie=oe.match(/^\s*((lat|latitude)(:)?)?\s*((\-)?[0-9]+\.[0-9]+)\s*(,?)\s*((lng|lon|longitude)(:)?)?\s*((\-)?[0-9]+\.[0-9]+)\s*$/gi);if(Ie&&Ie.length>0){const Ue=(""+oe.match(/((\-)?[0-9]+\.[0-9]+)+/g)).split(",");let ct=new te.n;return ct.Title="Go to Lat/Lng",ct.Address="Lat:"+Ue[0]+", Lng:"+Ue[1],ct.Location=new Y.wC(parseFloat(Ue[0]),parseFloat(Ue[1])),ct}var Ae=xe.ParseDMS(oe);if(!Ae||isNaN(Ae.latitude)||isNaN(Ae.longitude))return null;{let ye=new te.n;return ye.Title="Go to Lat/Lng",ye.Address="Lat:"+Ae.latitude+", Lng:"+Ae.longitude,ye.Location=Ae,ye}})()}placeSelected(oe){this.logging.log("Looking up place details:"+oe.Title+"::"+oe.ReferenceID),this.selectedPlace=oe,this.placeChanged.emit(oe),this.placeSearchActive=!1}static \u0275fac=function(xe){return new(xe||nt)(l.Y36(m.z),l.Y36(l.sBO),l.Y36(C.t4),l.Y36(fe.eN),l.Y36(Pe.z))};static \u0275cmp=l.Xpm({type:nt,selectors:[["place-search"]],inputs:{searchKeyword:"searchKeyword"},outputs:{selectedPlace:"selectedPlace",placeChanged:"placeChanged"},decls:1,vars:1,consts:[["class","place-search",4,"ngIf"],[1,"place-search"],[4,"ngIf"],[3,"click",4,"ngFor","ngForOf"],[1,"place-attribution"],[3,"click"],["item-left",""],["name","locate"]],template:function(xe,Ie){1&xe&&l.YNc(0,Me,7,3,"div",0),2&xe&&l.Q6J("ngIf",Ie.placeSearchActive)},dependencies:[K.sg,K.O5,ie.BJ,ie.gu,ie.Ie,ie.Q$,ie.q_,ie.PQ],styles:[".place-search[_ngcontent-%COMP%]{position:absolute;z-index:1000}.place-attribution[_ngcontent-%COMP%]{font-size:9px;color:#dcdcdc;max-width:100%}"]})}return nt})()},8696:(Bn,Ct,P)=>{"use strict";P.d(Ct,{o:()=>ie});var h=P(9212),m=P(866),te=P(6814),l=P(451);function B(fe,Pe){if(1&fe){const K=h.EpF();h.TgZ(0,"ion-button",5),h.NdJ("click",function(){h.CHM(K);const Te=h.oxw().$implicit,Me=h.oxw();return h.KtG(Me.onCopyCommand(Te))}),h._uU(1,"Copy"),h.qZA()}}function Y(fe,Pe){if(1&fe){const K=h.EpF();h.TgZ(0,"ion-button",5),h.NdJ("click",function(){h.CHM(K);const Te=h.oxw().$implicit,Me=h.oxw();return h.KtG(Me.onEditCommand(Te))}),h._uU(1,"Edit"),h.qZA()}}function C(fe,Pe){if(1&fe&&(h.TgZ(0,"ion-item",1)(1,"ion-grid")(2,"ion-row")(3,"ion-col"),h._uU(4),h.qZA()(),h.TgZ(5,"ion-row")(6,"ion-col",2)(7,"p"),h._UZ(8,"img",3),h.qZA(),h.TgZ(9,"ion-note"),h._uU(10),h.qZA(),h.YNc(11,B,2,0,"ion-button",4)(12,Y,2,0,"ion-button",4),h.qZA(),h.TgZ(13,"ion-col")(14,"ion-row")(15,"ion-col")(16,"p"),h._uU(17),h.qZA(),h.TgZ(18,"ion-note"),h._uU(19),h.qZA()()(),h.TgZ(20,"ion-row")(21,"ion-col"),h._uU(22),h.qZA(),h.TgZ(23,"ion-col"),h._uU(24),h.qZA()()()()()()),2&fe){const K=Pe.$implicit,be=h.oxw();h.xp6(4),h.hij(" ",K.AddressInfo.Title," "),h.xp6(4),h.Q6J("src",be.getIconForPOI(K),h.LSH),h.xp6(2),h.hij(" ",be.getFormattedDistance(K)," "),h.xp6(),h.Q6J("ngIf",be.enableCopyOption),h.xp6(),h.Q6J("ngIf",be.enableEditOption),h.xp6(5),h.hij(" ",be.getFormattedAddress(K)," "),h.xp6(2),h.hij(" ",be.getFormattedConnectorList(K)," "),h.xp6(3),h.hij(" ",null==K.UsageType?null:K.UsageType.Title," "),h.xp6(2),h.hij(" ",null==K.OperatorInfo?null:K.OperatorInfo.Title," ")}}let ie=(()=>{class fe{enableCopyOption=!1;enableEditOption=!1;poiList=[];onCopy=new h.vpe;onEdit=new h.vpe;constructor(){}ngOnInit(){}onCopyCommand(K){this.onCopy.emit(K)}onEditCommand(K){this.onEdit.emit(K)}getFormattedAddress(K){let be="";return be+=K.AddressInfo.Title!=K.AddressInfo.AddressLine1?K.AddressInfo.Title:K.AddressInfo.Town,be}getFormattedConnectorList(K){if(!K.Connections)return;let be=[];for(let Te of K.Connections)null!=Te.ConnectionType&&(be.find(Me=>Me==Te.ConnectionType.Title)||be.push(Te.ConnectionType.Title));return be.join(", ")}getIconForPOI(K){return m.c.getIconForPOI(K)}getFormattedDistance(K){return m.c.getFormattedDistance(K)}static \u0275fac=function(be){return new(be||fe)};static \u0275cmp=h.Xpm({type:fe,selectors:[["app-poi-list"]],inputs:{enableCopyOption:"enableCopyOption",enableEditOption:"enableEditOption",poiList:"poiList"},outputs:{onCopy:"onCopy",onEdit:"onEdit"},decls:2,vars:1,consts:[["style","max-width:400px;",4,"ngFor","ngForOf"],[2,"max-width","400px"],["size","3"],[2,"width","24px",3,"src"],["size","small",3,"click",4,"ngIf"],["size","small",3,"click"]],template:function(be,Te){1&be&&(h.TgZ(0,"ion-list"),h.YNc(1,C,25,9,"ion-item",0),h.qZA()),2&be&&(h.xp6(),h.Q6J("ngForOf",Te.poiList))},dependencies:[te.sg,te.O5,l.YG,l.wI,l.jY,l.Ie,l.q_,l.uN,l.Nd]})}return fe})()},5086:(Bn,Ct,P)=>{"use strict";P.d(Ct,{e:()=>Y});var h=P(6814),m=P(451),te=P(6223),l=P(2618),B=P(9212);let Y=(()=>{class C{static \u0275fac=function(Pe){return new(Pe||C)};static \u0275mod=B.oAB({type:C});static \u0275inj=B.cJS({providers:[h.JJ],imports:[h.ez,m.Pc,te.u5,l.aw]})}return C})()},7777:(Bn,Ct,P)=>{"use strict";P.d(Ct,{X:()=>m});var h=P(553);class m{baseURL;loginProviderRedirectBaseURL;loginProviderRedirectURL;enableLiveMapQuerying;googleMapsAPIKey;enableStaticMaps;constructor(){this.baseURL="https://map.openchargemap.io",this.loginProviderRedirectBaseURL="https://openchargemap.org/site/loginprovider/?_mode=silent&_forceLogin=true&_redirectURL=",this.loginProviderRedirectURL=this.loginProviderRedirectBaseURL+this.baseURL,this.enableLiveMapQuerying=!0,this.googleMapsAPIKey=h.N.googleMapsKey,this.enableStaticMaps=h.N.enableStaticMaps}}},866:(Bn,Ct,P)=>{"use strict";P.d(Ct,{c:()=>m});var h=P(553);let m=(()=>{class te{static isFeatureEnabled(B){return!!h.N.enabledFeatures.find(Y=>Y===B)}static getClientHeight(){const B=document.body,Y=document.documentElement;return Math.max(B.scrollHeight,B.offsetHeight,Y.clientHeight,Y.scrollHeight,Y.offsetHeight)}static getClientWidth(){const B=document.body,Y=document.documentElement;return Math.max(B.scrollWidth,B.offsetWidth,Y.clientWidth,Y.scrollWidth,Y.offsetWidth)}static getMaxLevelOfPOI(B){let Y=0;if(150==B.StatusTypeID)return 0;if(null!=B.Connections)for(let C=0;CY&&(Y=B.Connections[C].Level.ID);return 4===Y&&(Y=2),Y>4&&(Y=3),Y}static getIconForPOI(B){let C="assets/images/icons/map/level"+te.getMaxLevelOfPOI(B);return null!=B.UsageType&&B.UsageType.Title.indexOf("Private")>-1?C+="_private":C+=null!=B.StatusType&&!0!==B.StatusType.IsOperational?"_nonoperational":"_operational",C+="_icon.png",C}static getColorForPOI(B){const Y=te.getMaxLevelOfPOI(B);let C="#c0c0c0";return null!=B.UsageType&&B.UsageType.Title.indexOf("Private")>-1?C="#FF0000":null!=B.StatusType&&!0!==B.StatusType.IsOperational?C="#a0a0a0":2==Y?C="#72EB0D":3==Y&&(C="#EB800D"),C}static getIconForConnector(B){let Y="assets/images/icons/connectors/";return Y+=1===B?"Type1_J1772.svg":2===B?"Chademo_type4.svg":25===B?"Type2_socket.svg":32===B?"Type1_CCS.svg":33===B?"Type2_CCS.svg":1036===B?"Type2_tethered.svg":26===B?"Type3c.svg":28===B?"schuko.svg":"Unknown.svg",Y}static getFormattedDistance(B){return B&&B.AddressInfo&&B.AddressInfo.Distance?B.AddressInfo.Distance.toFixed(1)+" "+(1===B.AddressInfo.DistanceUnit?"km":"miles"):""}static fixJSONDate(B){if(null==B)return null;if(0==B.indexOf("/")){let C=/Date\(([^)]+)\)/.exec(B);B=new Date(parseFloat(C[1]))}else B=new Date(B);return B}static formatMapLinkFromPosition(B,Y,C,ie,fe){return'Map ('+Math.ceil(ie)+" "+fe+")"}static formatSystemWebLink(B,Y){return""+Y+""}static formatMapLink(B,Y,C){return C?device&&"WinCE"==device.platform?this.formatSystemWebLink("maps:"+B.AddressInfo.Latitude+","+B.AddressInfo.Longitude,Y):device&&"iOS"===device.platform?this.formatSystemWebLink("https://maps.apple.com/?q="+B.AddressInfo.Latitude+","+B.AddressInfo.Longitude,Y):this.formatSystemWebLink("https://maps.google.com/maps?q="+B.AddressInfo.Latitude+","+B.AddressInfo.Longitude,Y):''+Y+""}static formatURL(B,Y=null){return null==B||""==B?"":(-1==B.indexOf("http")&&(B="https://"+B),''+(Y??B)+"")}static formatPOIAddress=function(B,Y=!0){let C="";return C=Y?""+this.formatTextField(B.AddressInfo.AddressLine1)+this.formatTextField(B.AddressInfo.AddressLine2)+this.formatTextField(B.AddressInfo.Town)+this.formatTextField(B.AddressInfo.StateOrProvince)+this.formatTextField(B.AddressInfo.Postcode)+(null!=B.AddressInfo.Country?this.formatTextField(B.AddressInfo.Country.Title):""):this.formatStringArray([B.AddressInfo.AddressLine1,B.AddressInfo.AddressLine2,B.AddressInfo.Town,B.AddressInfo.StateOrProvince,B.AddressInfo.Postcode,null!=B.AddressInfo.Country?B.AddressInfo.Country.Title:""]),C};static formatStringArray=function(B,Y=", "){if(null==B)return"";let C="";for(let ie=0;ie"+Y+": ":"")+(C?"
":"")+B.toString().replace("\n","
")+"
";return 1==ie&&(Pe="

"+Pe+"

"),Pe}static formatEmailAddress(B){return null!=B&&null!=B&&""!=B?" '+B+"
":""}static formatPhone(B,Y=null){return null!=B&&null!=B&&""!=B?(null==Y?Y=" ":Y+=": ",Y+''+B+"
"):""}static formatPOIDetails(B,Y){let ie=new Date;null==Y&&(Y=!1);let fe=this.formatPOIAddress(B,!1),Pe="";Pe+=this.formatPhone(B.AddressInfo.ContactTelephone1),Pe+=this.formatPhone(B.AddressInfo.ContactTelephone2),Pe+=this.formatEmailAddress(B.AddressInfo.ContactEmail);let K="";if(null!=B.AddressInfo.Distance){let Ce="https://maps.google.com/maps?saddr=&daddr="+B.AddressInfo.Latitude+","+B.AddressInfo.Longitude;K+="Distance: "+B.AddressInfo.Distance.toFixed(1)+" "+(2==B.AddressInfo.DistanceUnit?"Miles":"KM")+"",K+="

"+this.formatSystemWebLink(Ce,"Get Directions")+"

"}if(null!=B.AddressInfo.RelatedURL&&""!=B.AddressInfo.RelatedURL){let Ce=B.AddressInfo.RelatedURL;Ce=Ce.replace(/.*?:\/\//g,""),Ce.length>40&&(Ce=Ce.substr(0,40)+".."),Pe+=" "+this.formatSystemWebLink(B.AddressInfo.RelatedURL,""+Ce+"")}Pe+="

";const be=this.formatTextField(B.GeneralComments,null,!1,!0)+this.formatTextField(B.AddressInfo.AccessComments,"Access",!0,!0,"details.accessComments");let Te="";null!=B.NumberOfPoints&&(Te+=this.formatTextField(B.NumberOfPoints,"Bays",!1,!0,"details.numberOfPoints")),null!=B.UsageType&&(Te+=this.formatTextField(B.UsageType.Title,"Usage",!1,!0,"details.usageType")),null!=B.UsageCost&&(Te+=this.formatTextField(B.UsageCost,"Usage Cost",!1,!0,"details.usageCost")),null!=B.OperatorInfo&&1!=B.OperatorInfo.ID&&(Te+=this.formatTextField(B.OperatorInfo.Title,"Operator",!1,!0,"details.operatorTitle"),null!=B.OperatorInfo.WebsiteURL&&(Te+=this.formatTextField(this.formatURL(B.OperatorInfo.WebsiteURL),"Operator Website",!0,!0,"details.operatorWebsite")));let Me="";if(null!=B.StatusType&&(Me+=this.formatTextField(B.StatusType.Title,"Status",!1,!0,"details.operationalStatus"),null!=B.DateLastStatusUpdate&&(Me+=this.formatTextField(Math.round((ie-this.fixJSONDate(B.DateLastStatusUpdate))/864e5)+" days ago","Last Updated",!1,!0,"details.lastUpdated"))),null!=B.Connections&&B.Connections.length>0){Me+="",Me+="";for(let Ce=0;Ce"}Me+="
ConnectionPower LevelStatus
"+(null!=oe.ConnectionType?oe.ConnectionType.Title:"")+""+(null!=oe.Level?""+oe.Level.Title+"
":"")+(null!=oe.Amps?this.formatString(oe.Amps)+"A/ ":"")+(null!=oe.Voltage?this.formatString(oe.Voltage)+"V/ ":"")+(null!=oe.PowerKW?this.formatString(oe.PowerKW)+"kW
":"")+(null!=oe.CurrentType?oe.CurrentType.Title:"")+"
"+(null!=oe.Quantity?this.formatString(oe.Quantity):"1")+" Present
"+(null!=oe.StatusType?oe.StatusType.Title:"-")+"
"}let de="";return de+=this.formatTextField("OCM-"+B.ID+"","OpenChargeMap Ref",!1,!0,"details.refNumber"),null!=B.DataProvider&&(de+=this.formatTextField(B.DataProvider.Title,"Data Provider",!1,!0,"details.dataProviderTitle"),null!=B.DataProvider.WebsiteURL&&(de+=this.formatTextField(this.formatURL(B.DataProvider.WebsiteURL),"Website",!1,!0,"details.dataProviderWebsite")),de+=this.formatTextField(B.AddressInfo.Latitude,"Latitude",!1,!0,null),de+=this.formatTextField(B.AddressInfo.Longitude,"Longitude",!1,!0,null)),{address:fe,drivingInfo:K,contactInfo:Pe,additionalInfo:be+Te+Me,advancedInfo:de}}static debounce(B,Y,C){let ie;return function(){let fe=this,Pe=arguments,be=C&&!ie;clearTimeout(ie),ie=setTimeout(function(){ie=null,C||B.apply(fe,Pe)},Y),be&&B.apply(fe,Pe)}}static getRandomInt(B){return Math.floor(Math.random()*Math.floor(B))}}return te})()},8371:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Qp:()=>te.Qp,wC:()=>B.wC,jR:()=>B.jR,fw:()=>te.fw,vw:()=>te.vw,be:()=>C.b,nS:()=>l.n,Nm:()=>Y.N,aX:()=>h,qO:()=>m,kA:()=>te.kA});class h{ID;SubmissionType;Data;Attempts;DateQueued;IsSubmitted;IsInProgress;IsCancelled;IsFailure;FailureReason;constructor(fe,Pe){this.SubmissionType=fe,this.Data=Pe,this.DateQueued=new Date,this.IsSubmitted=!1,this.IsInProgress=!1,this.IsCancelled=!1,this.IsFailure=!1,this.Attempts=0,this.ID=new Date+"_"+100*Math.random()}}var m=function(ie){return ie[ie.POI=0]="POI",ie[ie.Comment=1]="Comment",ie[ie.Media=2]="Media",ie}(m||{}),te=P(7430),l=P(2117),B=P(3052),Y=P(4783),C=P(4677)},3052:(Bn,Ct,P)=>{"use strict";P.d(Ct,{LL:()=>te,jR:()=>m,wC:()=>h});class h{altitudeAccuracy;longitude;latitude;speed;heading;altitude;accuracy;constructor(B=null,Y=null){this.latitude=B,this.longitude=Y}}class m{coords;timestamp;attribution;constructor(B=null,Y=null){this.coords=new h,this.coords.latitude=B,this.coords.longitude=Y}static fromPosition(B){return new m(B.coords.latitude,B.coords.longitude)}}class te{northEast;southWest;constructor(B,Y){this.northEast=B,this.southWest=Y}}},7430:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Qp:()=>te,fw:()=>Y,JJ:()=>ie,eN:()=>C,vw:()=>B,kA:()=>l});class h{itemType;itemId;version;schemaVersion;syncTimeStamp;constructor(Pe,K){this.itemType=Pe,this.itemId=h.getNewItemId(),this.version=1,this.schemaVersion=K,this.syncTimeStamp=h.getNewSyncTimeStamp()}static getNewSyncTimeStamp(){return Date.now().toString()}static getNewItemId(){return"_syncitem_"+Date.now().toString()}}class m{Title;Notes;_sync;constructor(Pe,K){this._sync=new h(Pe,K)}}class te extends m{PoiID;Type;Poi;Photos}class l extends m{Stage;Position;PoiIDs;PoiList;constructor(){super("waypoint",1)}}class B extends m{WayPoints;constructor(){super("journey_stage",1),this.WayPoints=[]}}class Y extends m{ID;Stages;constructor(){super("journey",1),this.ID=""+Date.now(),this.Stages=[]}}class C{Title;DistanceKM;DurationMinutes;StartElevation;EndElevation;EnergyConsumptionkWh}class ie{Title;JourneyRouteLegs;TotalDistanceKM;TotalDurationMinutes;TotalEnergykWh}},4677:(Bn,Ct,P)=>{"use strict";P.d(Ct,{b:()=>h});class h{poiIdList=null;countryCode=null;latitude=null;longitude=null;locationTitle=null;distance=null;distanceUnit=null;connectionTypeIdList=null;operatorIdList=null;levelIdList=null;countryIdList=null;usageTypeIdList=null;statusTypeIdList=null;minPowerKW=null;maxPowerKW=null;submissionStatusTypeIdList=null;maxResults=500;additionalParams=null;includeComments=!1;compact=!0;enableCaching=!0;levelOfDetail=1;polyline=null;boundingbox=null}},2117:(Bn,Ct,P)=>{"use strict";P.d(Ct,{n:()=>h});class h{Location;Title;Address;Type;ReferenceID;Attribution;AddressInfo}},4783:(Bn,Ct,P)=>{"use strict";P.d(Ct,{N:()=>m,U:()=>h});const h=1e3;class m{OperatorList;ConnectionTypeList;CountryList;UsageTypeList;StatusTypeList;MinPowerKW;MaxPowerKW;UseDistanceInKM;HasActiveFilters;LastSearchPosition;StartSearchPosition;StartViewPoiId;Language;FilterOptionsByCountryId;MapType;EnableAdvancedEditorFeatures;EnablePOIPendingApproval;MaxResults;constructor(){this.OperatorList=[],this.ConnectionTypeList=[],this.CountryList=[],this.UsageTypeList=[],this.StatusTypeList=[],this.MaxPowerKW=null,this.MinPowerKW=null,this.HasActiveFilters=!1,this.FilterOptionsByCountryId=null,this.UseDistanceInKM=!0,this.MapType="ROADMAP",this.EnableAdvancedEditorFeatures=!1,this.EnablePOIPendingApproval=!1,this.MaxResults=500}LoadSettings(){}SaveSettings(){}ClearActiveFilters(){this.OperatorList=[],this.ConnectionTypeList=[],this.CountryList=[],this.UsageTypeList=[],this.StatusTypeList=[],this.MinPowerKW=null,this.MaxPowerKW=null}CheckForActiveFilters(){return this.HasActiveFilters=this.OperatorList.length>0||this.ConnectionTypeList.length>0||this.CountryList.length>0||this.UsageTypeList.length>0||this.StatusTypeList.length>0||this.MinPowerKW>0||this.MaxPowerKW>0||null!=this.MaxPowerKW&&this.MaxPowerKW{"use strict";P.r(Ct),P.d(Ct,{AboutPageModule:()=>Pe});var h=P(6814),m=P(6223),te=P(451),l=P(6800),B=P(9236),Y=P(9212);const C=[{path:"",component:B.t}];let ie=(()=>{class K{static \u0275fac=function(Me){return new(Me||K)};static \u0275mod=Y.oAB({type:K});static \u0275inj=Y.cJS({imports:[l.Bz.forChild(C),l.Bz]})}return K})();var fe=P(2618);let Pe=(()=>{class K{static \u0275fac=function(Me){return new(Me||K)};static \u0275mod=Y.oAB({type:K});static \u0275inj=Y.cJS({imports:[h.ez,m.u5,te.Pc,fe.aw,ie]})}return K})()},9236:(Bn,Ct,P)=>{"use strict";P.d(Ct,{t:()=>B});var h=P(553),m=P(9212),te=P(451),l=P(2618);let B=(()=>{class Y{modalController;constructor(ie){this.modalController=ie}get appVersion(){return h.N.version}get apiUrl(){return h.N.apiBase}ngOnInit(){}close(){this.modalController.dismiss()}static \u0275fac=function(fe){return new(fe||Y)(m.Y36(te.IN))};static \u0275cmp=m.Xpm({type:Y,selectors:[["app-about"]],decls:46,vars:5,consts:[[1,"ion-padding"],["size","2"],["src","assets/images/icons/branding/AppIcon_128x128.png"],["href","https://openchargemap.org","target","_blank"],["href","https://community.openchargemap.org","target","_blank"],["href","https://webprofusion.com","target","_blank"],["href","https://openchargemap.org/site/about/datasharing","target","_blank"],["slot","end"],[3,"click"],["name","close","slot","start"]],template:function(fe,Pe){1&fe&&(m.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),m._uU(3),m.ALo(4,"translate"),m.qZA()()(),m.TgZ(5,"ion-content",0)(6,"ion-grid")(7,"ion-row")(8,"ion-col",1),m._UZ(9,"img",2),m.qZA(),m.TgZ(10,"ion-col")(11,"h1"),m._uU(12,"Open Charge Map"),m.qZA()()()(),m.TgZ(13,"p")(14,"strong"),m._uU(15,"Open Charge Map is the worlds largest Open Data registry of electric vehicle charging locations."),m.qZA(),m._uU(16," By adding and editing the information within Open Charge Map you are improving the data for an unlimited amount of other apps and services which can use the data for free. "),m.qZA(),m.TgZ(17,"p")(18,"a",3),m._uU(19,"openchargemap.org"),m.qZA()(),m.TgZ(20,"p"),m._uU(21,"Join our community discussions: "),m.TgZ(22,"a",4),m._uU(23,"community.openchargemap.org"),m.qZA()(),m.TgZ(24,"p"),m._uU(25,"Software development and service hosting by "),m.TgZ(26,"a",5),m._uU(27,"webprofusion.com"),m.qZA()(),m.TgZ(28,"p"),m._uU(29,"Our service is run by volunteers, our data is largely crowdsourced by you. Some data is imported from public Open Data sources."),m.qZA(),m.TgZ(30,"p"),m._uU(31,"Network operators can "),m.TgZ(32,"a",6),m._uU(33,"provide us with an OCPI data feed"),m.qZA(),m._uU(34," to freely promote their network and ensure information accuracy. "),m.qZA(),m.TgZ(35,"ion-note")(36,"p"),m._uU(37),m.qZA(),m.TgZ(38,"p"),m._uU(39),m.qZA()()(),m.TgZ(40,"ion-footer")(41,"ion-toolbar")(42,"ion-buttons",7)(43,"ion-button",8),m.NdJ("click",function(){return Pe.close()}),m._UZ(44,"ion-icon",9),m._uU(45," Close "),m.qZA()()()()),2&fe&&(m.xp6(3),m.hij("",m.lcZ(4,3,"ocm.general.about")," Open Charge Map"),m.xp6(34),m.hij("App Version: ",Pe.appVersion,""),m.xp6(2),m.hij("API: ",Pe.apiUrl,""))},dependencies:[te.YG,te.Sm,te.wI,te.W2,te.fr,te.jY,te.Gu,te.gu,te.uN,te.Nd,te.wd,te.sr,l.X$]})}return Y})()},9192:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{JourneysModule:()=>fe});var h=P(4292),m=P(5086),te=P(2618),l=P(6814),B=P(6223),Y=P(451),C=P(6800),ie=P(9212);let fe=(()=>{class Pe{static \u0275fac=function(Te){return new(Te||Pe)};static \u0275mod=ie.oAB({type:Pe});static \u0275inj=ie.cJS({imports:[l.ez,B.u5,Y.Pc,te.aw,m.e,C.Bz.forChild([{path:"",component:h.g}])]})}return Pe})()},4292:(Bn,Ct,P)=>{"use strict";P.d(Ct,{g:()=>Ie});var h=P(989),m=P(439),te=P(6470),l=P(8371),B=P(9723),Y=P(9212),C=P(451),ie=P(6814);function fe(Ae,ye){1&Ae&&(Y.TgZ(0,"p"),Y._uU(1," You have no journeys yet. Start by browsing to a charging location, then add it as Favourite to start a new Journey. "),Y.qZA())}function Pe(Ae,ye){if(1&Ae&&(Y.TgZ(0,"p"),Y._uU(1),Y.qZA()),2&Ae){const Ue=Y.oxw(2).$implicit;Y.xp6(),Y.hij(" ",Ue.Poi.AddressInfo.AddressLine1,"")}}function K(Ae,ye){if(1&Ae&&(Y.TgZ(0,"p"),Y._uU(1),Y.qZA()),2&Ae){const Ue=Y.oxw(2).$implicit;Y.xp6(),Y.hij(" ",Ue.Poi.AddressInfo.AddressLine2,"")}}function be(Ae,ye){if(1&Ae&&(Y.TgZ(0,"p"),Y._uU(1),Y.qZA()),2&Ae){const Ue=Y.oxw(2).$implicit;Y.xp6(),Y.hij(" ",Ue.Poi.AddressInfo.Town,"")}}function Te(Ae,ye){if(1&Ae&&(Y.TgZ(0,"p"),Y._uU(1),Y.qZA()),2&Ae){const Ue=Y.oxw(2).$implicit;Y.xp6(),Y.hij(" ",Ue.Poi.AddressInfo.StateOrProvince,"")}}function Me(Ae,ye){if(1&Ae&&(Y.TgZ(0,"p"),Y._uU(1),Y.qZA()),2&Ae){const Ue=Y.oxw(2).$implicit;Y.xp6(),Y.hij(" ",Ue.Poi.AddressInfo.Postcode,"")}}function de(Ae,ye){if(1&Ae){const Ue=Y.EpF();Y.TgZ(0,"div")(1,"div",18),Y.NdJ("click",function(){Y.CHM(Ue);const X=Y.oxw().$implicit,ve=Y.oxw(4);return Y.KtG(ve.viewPOIDetails(X.Poi))}),Y.YNc(2,Pe,2,1,"p",4)(3,K,2,1,"p",4)(4,be,2,1,"p",4)(5,Te,2,1,"p",4)(6,Me,2,1,"p",4),Y.qZA(),Y.TgZ(7,"ion-button",19),Y.NdJ("click",function(){Y.CHM(Ue);const X=Y.oxw().$implicit,ve=Y.oxw(4);return Y.KtG(ve.launchNavigation(X.Poi))}),Y._UZ(8,"ion-icon",20),Y._uU(9," Navigate "),Y.qZA()()}if(2&Ae){const Ue=Y.oxw().$implicit;Y.xp6(2),Y.Q6J("ngIf",Ue.Poi.AddressInfo.AddressLine1),Y.xp6(),Y.Q6J("ngIf",Ue.Poi.AddressInfo.AddressLine2),Y.xp6(),Y.Q6J("ngIf",Ue.Poi.AddressInfo.Town),Y.xp6(),Y.Q6J("ngIf",Ue.Poi.AddressInfo.StateOrProvince),Y.xp6(),Y.Q6J("ngIf",Ue.Poi.AddressInfo.Postcode)}}function nt(Ae,ye){if(1&Ae&&(Y.TgZ(0,"div",17),Y.YNc(1,de,10,5,"div",4),Y.qZA()),2&Ae){const Ue=ye.$implicit;Y.xp6(),Y.Q6J("ngIf",Ue.Poi)}}function Ce(Ae,ye){if(1&Ae&&(Y.TgZ(0,"ion-item")(1,"h2"),Y._uU(2),Y.qZA(),Y.TgZ(3,"ion-thumbnail",0),Y._UZ(4,"ion-icon",15),Y.qZA(),Y.TgZ(5,"p"),Y._uU(6),Y.qZA(),Y.YNc(7,nt,2,1,"div",16),Y.qZA()),2&Ae){const Ue=ye.$implicit;Y.xp6(2),Y.Oqu(Ue.Title),Y.xp6(4),Y.Oqu(Ue.Notes),Y.xp6(),Y.Q6J("ngForOf",Ue.PoiList)}}function oe(Ae,ye){if(1&Ae&&(Y.TgZ(0,"ion-list")(1,"ion-list-header",11),Y._uU(2),Y._UZ(3,"ion-icon",12),Y._uU(4," -- "),Y._UZ(5,"ion-icon",13),Y._uU(6," -- "),Y._UZ(7,"ion-icon",14),Y._uU(8," -- "),Y.qZA(),Y.YNc(9,Ce,8,3,"ion-item",5),Y.qZA()),2&Ae){const Ue=ye.$implicit;Y.xp6(2),Y.hij(" ",Ue.Title," "),Y.xp6(7),Y.Q6J("ngForOf",Ue.WayPoints)}}function xe(Ae,ye){if(1&Ae){const Ue=Y.EpF();Y.TgZ(0,"ion-card")(1,"ion-card-content")(2,"ion-toolbar",8)(3,"ion-title"),Y._uU(4),Y.qZA(),Y.TgZ(5,"ion-buttons",9)(6,"ion-button",1),Y.NdJ("click",function(){const ve=Y.CHM(Ue).$implicit,me=Y.oxw();return Y.KtG(me.deleteJourney(ve.ID))}),Y._UZ(7,"ion-icon",10),Y.qZA()()(),Y.TgZ(8,"p"),Y._uU(9),Y.qZA(),Y.YNc(10,oe,10,2,"ion-list",5),Y.qZA()()}if(2&Ae){const Ue=ye.$implicit;Y.xp6(4),Y.hij(" ",Ue.Title,""),Y.xp6(5),Y.Oqu(Ue.Notes),Y.xp6(),Y.Q6J("ngForOf",Ue.Stages)}}let Ie=(()=>{class Ae{appManager;journeyManager;api;modalController;alertController;constructor(Ue,ct,X,ve,me){this.appManager=Ue,this.journeyManager=ct,this.api=X,this.modalController=ve,this.alertController=me}dismiss(){this.modalController.dismiss()}discoverImages(){this.journeyManager.journeys.forEach(Ue=>{Ue.Stages.forEach(ct=>{ct.WayPoints.forEach(X=>{null!=X.PoiList&&X.PoiList.forEach(ve=>{ve.Poi&&this.api.getPanoramioLocationPhotos(new l.wC(ve.Poi.AddressInfo.Latitude,ve.Poi.AddressInfo.Longitude)).then(me=>{ve.Photos=me})})})})})}getJson(Ue){return JSON.stringify(Ue,null,4)}viewPOIDetails(Ue){this.modalController.create({component:B.H,componentProps:{item:Ue}}).then(ct=>ct.present())}get staticMapSize(){return"60x60"}getStaticMapURL(Ue){return"https://maps.googleapis.com/maps/api/staticmap?center="+Ue.AddressInfo.Latitude+","+Ue.AddressInfo.Longitude+"&zoom=13&scale=2&size="+this.staticMapSize+"&maptype=roadmap&format=jpg&visual_refresh=true&markers=size:small%7Ccolor:0xff0000%7Clabel:%7C"+Ue.AddressInfo.Latitude+","+Ue.AddressInfo.Longitude}deleteJourney(Ue){this.alertController.create({header:"Delete this Journey?",message:"Are you sure you want to delete this Journey?",buttons:[{text:"No",handler:()=>{}},{text:"Delete",handler:()=>{this.journeyManager.deleteJourney(Ue)}}]}).then(ct=>ct.present())}launchNavigation(Ue){let ct="https://maps.google.com/?q="+Ue.AddressInfo.Latitude+","+Ue.AddressInfo.Longitude;this.appManager.platform.is("ios")&&(ct="https://maps.apple.com?q="+Ue.AddressInfo.Latitude+","+Ue.AddressInfo.Longitude),window.open(ct,"_system")}static \u0275fac=function(ct){return new(ct||Ae)(Y.Y36(te.c),Y.Y36(h.i),Y.Y36(m.l),Y.Y36(C.IN),Y.Y36(C.Br))};static \u0275cmp=Y.Xpm({type:Ae,selectors:[["ng-component"]],decls:18,vars:2,consts:[["slot","start"],[3,"click"],[1,"journeys-page"],[1,"ion-padding"],[4,"ngIf"],[4,"ngFor","ngForOf"],["slot","end"],["name","close","slot","start"],["primary",""],["slot","primary"],["name","close","slot","icon-only"],[2,"font-size","1.5rem"],["name","car"],["name","time"],["name","flash"],["name","caret-down",2,"font-size","4rem"],["style","text-align:right;width:100%;",4,"ngFor","ngForOf"],[2,"text-align","right","width","100%"],["tappable","",3,"click"],["clear","","item-right","",3,"click"],["name","navigate","slot","start"]],template:function(ct,X){1&ct&&(Y.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0)(3,"ion-back-button",1),Y.NdJ("click",function(){return X.dismiss()}),Y.qZA()(),Y.TgZ(4,"ion-title"),Y._uU(5," Journeys "),Y.qZA()()(),Y.TgZ(6,"ion-content",2)(7,"div",3)(8,"p"),Y._uU(9," You can create and plan journeys to group your favourite charging routes together. "),Y.qZA(),Y.YNc(10,fe,2,0,"p",4),Y.qZA(),Y.YNc(11,xe,11,3,"ion-card",5),Y.qZA(),Y.TgZ(12,"ion-footer")(13,"ion-toolbar")(14,"ion-buttons",6)(15,"ion-button",1),Y.NdJ("click",function(){return X.dismiss()}),Y._UZ(16,"ion-icon",7),Y._uU(17," Close "),Y.qZA()()()()),2&ct&&(Y.xp6(10),Y.Q6J("ngIf",null==X.journeyManager.journeys||0==X.journeyManager.journeys.length),Y.xp6(),Y.Q6J("ngForOf",X.journeyManager.journeys))},dependencies:[ie.sg,ie.O5,C.YG,C.Sm,C.PM,C.FN,C.W2,C.fr,C.Gu,C.gu,C.Ie,C.q_,C.yh,C.Bs,C.wd,C.sr,C.oU],encapsulation:2})}return Ae})()},2309:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{LayerEditorPageModule:()=>Pe});var h=P(6814),m=P(6223),te=P(451),l=P(6800),B=P(8062),Y=P(9212);const C=[{path:"",component:B.A}];let ie=(()=>{class K{static \u0275fac=function(Me){return new(Me||K)};static \u0275mod=Y.oAB({type:K});static \u0275inj=Y.cJS({imports:[l.Bz.forChild(C),l.Bz]})}return K})();var fe=P(5086);let Pe=(()=>{class K{static \u0275fac=function(Me){return new(Me||K)};static \u0275mod=Y.oAB({type:K});static \u0275inj=Y.cJS({imports:[h.ez,m.u5,te.Pc,ie,fe.e]})}return K})()},8062:(Bn,Ct,P)=>{"use strict";P.d(Ct,{A:()=>ie});var h=P(5861),m=P(9159),te=P(9212),l=P(451),B=P(6814),Y=P(8696);function C(fe,Pe){if(1&fe&&(te.TgZ(0,"div"),te._uU(1),te._UZ(2,"app-poi-list",10),te.qZA()),2&fe){const K=te.oxw();te.xp6(),te.hij(" Items Parsed: ",K.fileData.length," "),te.xp6(),te.Q6J("poiList",K.fileData)}}let ie=(()=>{class fe{modalController;refData;fileData;constructor(K,be){this.modalController=K,this.refData=be}ngOnInit(){}previewFile(){var K=this;return(0,h.Z)(function*(){yield K.loadFile(!1)})()}cancel(){var K=this;return(0,h.Z)(function*(){yield K.modalController.dismiss(K.fileData)})()}loadFile(K=!0){var be=this;return(0,h.Z)(function*(){const Te=new FileReader;Te.onload=()=>{let de=JSON.parse(Te.result),nt=5e6;for(let Ce of de)(null==Ce.ID||""==Ce.ID)&&(Ce.ID=nt.toString()),Ce.ID="imp_"+Ce.ID,nt++;be.fileData=be.refData.hydrateCompactPOIList(de),K&&be.modalController.dismiss(be.fileData)},Te.onerror=()=>{},Te.readAsText(document.getElementById("file-upload").files[0])})()}add(){var K=this;return(0,h.Z)(function*(){K.modalController.dismiss(K.fileData)})()}static \u0275fac=function(be){return new(be||fe)(te.Y36(l.IN),te.Y36(m.W))};static \u0275cmp=te.Xpm({type:fe,selectors:[["app-layer-editor"]],decls:27,vars:1,consts:[[1,"ion-padding"],[1,"upload"],["name","file","aria-label","file","slot","start"],["type","file","required","","id","file-upload",3,"change"],[4,"ngIf"],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["name","checkmark-circle-outline","slot","end"],[3,"poiList"]],template:function(be,Te){1&be&&(te.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),te._uU(3," Edit Layer "),te.qZA()()(),te.TgZ(4,"ion-content",0)(5,"p"),te._uU(6,"POI layers are used to preview data from other Open Data sources. "),te.qZA(),te.TgZ(7,"p"),te._uU(8,"Select a POI layer JSON file: "),te.qZA(),te.TgZ(9,"div")(10,"label",1)(11,"ion-button"),te._UZ(12,"ion-icon",2),te.TgZ(13,"ion-label"),te._uU(14,"Choose File.."),te.qZA()(),te.TgZ(15,"input",3),te.NdJ("change",function(){return Te.previewFile()}),te.qZA()()(),te.YNc(16,C,3,2,"div",4),te.qZA(),te.TgZ(17,"ion-footer")(18,"ion-toolbar")(19,"ion-buttons",5)(20,"ion-button",6),te.NdJ("click",function(){return Te.cancel()}),te._UZ(21,"ion-icon",7),te._uU(22," Cancel "),te.qZA()(),te.TgZ(23,"ion-buttons",8)(24,"ion-button",6),te.NdJ("click",function(){return Te.add()}),te._uU(25," Add "),te._UZ(26,"ion-icon",9),te.qZA()()()()),2&be&&(te.xp6(16),te.Q6J("ngIf",Te.fileData&&Te.fileData.length>0))},dependencies:[B.O5,l.YG,l.Sm,l.W2,l.fr,l.Gu,l.gu,l.Q$,l.wd,l.sr,Y.o],styles:[".upload[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{position:fixed;top:-1000px}"]})}return fe})()},9723:(Bn,Ct,P)=>{"use strict";P.d(Ct,{H:()=>Gn});var h=P(6470),m=P(9212),te=P(451),l=P(7346),B=P(5861),Y=P(989),C=P(7430),ie=P(6814),fe=P(6223);function Pe(ae,ft){if(1&ae&&(m.TgZ(0,"ion-select-option",13),m._uU(1),m.qZA()),2&ae){const Z=ft.$implicit;m.Q6J("value",Z.ID),m.xp6(),m.Oqu(Z.Title)}}function K(ae,ft){if(1&ae&&(m.TgZ(0,"ion-select-option",16),m._uU(1),m.qZA()),2&ae){const Z=ft.$implicit;m.Q6J("value",ft.index),m.xp6(),m.Oqu(Z.Title)}}function be(ae,ft){if(1&ae){const Z=m.EpF();m.TgZ(0,"ion-item")(1,"ion-label",2),m._uU(2,"Journey Stage"),m.qZA(),m.TgZ(3,"ion-select",3),m.NdJ("ngModelChange",function(st){m.CHM(Z);const on=m.oxw();return m.KtG(on.selectedStageIndex=st)}),m.TgZ(4,"ion-select-option",14),m._uU(5,"Create a Journey Stage"),m.qZA(),m.YNc(6,K,2,2,"ion-select-option",15),m.qZA()()}if(2&ae){const Z=m.oxw();m.xp6(3),m.Q6J("ngModel",Z.selectedStageIndex),m.xp6(3),m.Q6J("ngForOf",Z.journeyManager.getJourneyStages(Z.selectedJourneyID))}}function Te(ae,ft){if(1&ae){const Z=m.EpF();m.TgZ(0,"ion-item")(1,"ion-label",2),m._uU(2,"New Journey Name"),m.qZA(),m.TgZ(3,"ion-input",7),m.NdJ("ngModelChange",function(st){m.CHM(Z);const on=m.oxw();return m.KtG(on.newJourneyName=st)}),m.qZA()()}if(2&ae){const Z=m.oxw();m.xp6(3),m.Q6J("ngModel",Z.newJourneyName)}}let Me=(()=>{class ae{appManager;navParams;journeyManager;modalController;selectedJourneyID;selectedStageIndex;newJourneyName;waypoint;poi;constructor(Z,Re,st,on){this.appManager=Z,this.navParams=Re,this.journeyManager=st,this.modalController=on,this.poi=this.navParams.get("poi"),this.waypoint=new C.kA,this.waypoint.Title=this.poi.AddressInfo.Title,this.waypoint.PoiIDs=[this.poi.ID],this.waypoint.PoiList=[];const In=new C.Qp("charging",1);In.Poi=this.poi,In.PoiID=this.poi.ID,this.waypoint.PoiList.push(In),this.newJourneyName="Trip to "+this.poi.AddressInfo.Title}cancel(){this.modalController.dismiss()}add(){if(null!=this.selectedJourneyID&&""!==this.selectedJourneyID)this.journeyManager.addJourneyWaypoint(this.selectedJourneyID,this.selectedStageIndex,this.waypoint);else{const Z=new C.fw;Z.ID=Date.now().toString(),""===this.newJourneyName&&(this.newJourneyName="New Journey"),Z.Title=this.newJourneyName,this.journeyManager.addJourney(Z,this.waypoint)}this.journeyManager.saveJourneys(),this.modalController.dismiss()}static \u0275fac=function(Re){return new(Re||ae)(m.Y36(h.c),m.Y36(l.X1),m.Y36(Y.i),m.Y36(te.IN))};static \u0275cmp=m.Xpm({type:ae,selectors:[["ng-component"]],decls:39,vars:8,consts:[[1,"journeys-page","ion-padding"],[1,"banner"],["position","stacked"],[3,"ngModel","ngModelChange"],["value","","checked",""],[3,"value",4,"ngFor","ngForOf"],[4,"ngIf"],["type","text",3,"ngModel","ngModelChange"],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["name","add","slot","end"],[3,"value"],["value",""],["checked","",3,"value",4,"ngFor","ngForOf"],["checked","",3,"value"]],template:function(Re,st){1&Re&&(m.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),m._uU(3," Edit Favourite "),m.qZA()()(),m.TgZ(4,"ion-content",0)(5,"div",1)(6,"h1"),m._uU(7),m.qZA(),m.TgZ(8,"p"),m._uU(9),m.qZA()(),m.TgZ(10,"p"),m._uU(11," Add Charging Location as a Journey Waypoint "),m.qZA(),m.TgZ(12,"ion-item")(13,"ion-label",2),m._uU(14,"Add to a Journey"),m.qZA(),m.TgZ(15,"ion-select",3),m.NdJ("ngModelChange",function(In){return st.selectedJourneyID=In}),m.TgZ(16,"ion-select-option",4),m._uU(17,"Create a New Journey"),m.qZA(),m.YNc(18,Pe,2,2,"ion-select-option",5),m.qZA()(),m.YNc(19,be,7,2,"ion-item",6)(20,Te,4,1,"ion-item",6),m.TgZ(21,"ion-item")(22,"ion-label",2),m._uU(23,"Name for this step of your journey"),m.qZA(),m.TgZ(24,"ion-input",7),m.NdJ("ngModelChange",function(In){return st.waypoint.Title=In}),m.qZA()(),m.TgZ(25,"ion-item")(26,"ion-label",2),m._uU(27,"Other Notes"),m.qZA(),m.TgZ(28,"ion-textarea",3),m.NdJ("ngModelChange",function(In){return st.waypoint.Notes=In}),m.qZA()()(),m.TgZ(29,"ion-footer")(30,"ion-toolbar")(31,"ion-buttons",8)(32,"ion-button",9),m.NdJ("click",function(){return st.cancel()}),m._UZ(33,"ion-icon",10),m._uU(34," Cancel "),m.qZA()(),m.TgZ(35,"ion-buttons",11)(36,"ion-button",9),m.NdJ("click",function(){return st.add()}),m._uU(37," Add "),m._UZ(38,"ion-icon",12),m.qZA()()()()),2&Re&&(m.xp6(7),m.Oqu(st.poi.AddressInfo.Title),m.xp6(2),m.Oqu(st.poi.AddressInfo.AddressLine1),m.xp6(6),m.Q6J("ngModel",st.selectedJourneyID),m.xp6(3),m.Q6J("ngForOf",st.journeyManager.journeys),m.xp6(),m.Q6J("ngIf",st.selectedJourneyID),m.xp6(),m.Q6J("ngIf",!st.selectedJourneyID),m.xp6(4),m.Q6J("ngModel",st.waypoint.Title),m.xp6(4),m.Q6J("ngModel",st.waypoint.Notes))},dependencies:[ie.sg,ie.O5,fe.JJ,fe.On,te.YG,te.Sm,te.W2,te.fr,te.Gu,te.gu,te.pK,te.Ie,te.Q$,te.t9,te.n0,te.g2,te.wd,te.sr,te.QI,te.j9],encapsulation:2})}return ae})();var de=P(9127);function nt(ae,ft){if(1&ae){const Z=m.EpF();m.TgZ(0,"ion-card")(1,"ion-toolbar")(2,"ion-title",14),m._uU(3,"Preview"),m.qZA(),m.TgZ(4,"ion-buttons",15)(5,"ion-button",4),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw();return m.KtG(st.rotateImage())}),m._UZ(6,"ion-icon",16),m.TgZ(7,"ion-label"),m._uU(8,"Rotate"),m.qZA()()()(),m.TgZ(9,"ion-card-content")(10,"ion-list")(11,"ion-item")(12,"ion-label",17),m._uU(13,"Comment"),m.qZA(),m.TgZ(14,"ion-input",18),m.NdJ("ngModelChange",function(st){m.CHM(Z);const on=m.oxw();return m.KtG(on.comment=st)}),m.qZA()()(),m._UZ(15,"img",19),m.qZA()()}if(2&ae){const Z=m.oxw();m.xp6(14),m.Q6J("ngModel",Z.comment)}}let Ce=(()=>{class ae{navParams;appManager;nav;modalController;logging;mode;processingQuality;imgData;targetWidth;targetHeight;comment;chargePointId;poi;constructor(Z,Re,st,on,In){this.navParams=Z,this.appManager=Re,this.nav=st,this.modalController=on,this.logging=In,this.processingQuality=.8,this.targetWidth=1024,this.targetHeight=800,this.mode=Re.platformMode,this.chargePointId=this.navParams.get("id"),this.poi=this.navParams.get("poi"),this.comment=""}processNativeImageSource(Z){let Re=Z;const st=document.getElementById("img-upload-canvas"),on=st.getContext("2d"),In=new Image;In.onload=()=>{this.logging.log("img load:"+In.width),st.width=In.width,st.height=In.height,on.fillStyle="rgb(0,0,0)",on.fillRect(0,0,st.width,st.height),on.drawImage(In,0,0,st.width,st.height),this.imgData=st.toDataURL("image/png"),this.processImage()},In.src=Re}loadCameraOrLibraryImage(Z=!1){this.logging.log("PWA mode: fetching image");const Re=new FileReader;Re.onload=()=>{this.imgData=Re.result,this.processImage()},Re.onerror=()=>{},Re.readAsDataURL(document.getElementById("img-upload-media").files[0])}isBrowserMode(){return this.appManager.isPlatform("desktop")||this.appManager.isPlatform("hybrid")}processImage(){if(null!=this.imgData){const Re=document.getElementById("img-upload-canvas"),st=Re.getContext("2d"),on=new Image;on.onload=()=>{Re.width=on.width,Re.height=on.height,st.fillStyle="rgb(0,0,0)",st.fillRect(0,0,Re.width,Re.height),st.drawImage(on,0,0,Re.width,Re.height),this.refreshImageFromCanvas()},on.src=this.imgData}else this.logging.log("processImage: nothing to process.")}refreshImageFromCanvas(){const Z=document.getElementById("img-upload-canvas");this.imgData=Z.toDataURL("image/jpeg",.8),document.getElementById("preview").src=this.imgData}rotateImage(){const Z=document.getElementById("img-upload-canvas");let Re=new Image;Re.src=Z.toDataURL(),Re.onload=()=>{let st=Z.height,on=Z.width;Z.width=st,Z.height=on,st=Z.height,on=Z.width;const In=Z.getContext("2d");In.save(),In.translate(on,st/on),In.rotate(Math.PI/2),In.drawImage(Re,0,0),In.restore(),Re=null,this.refreshImageFromCanvas()}}performUpload(){var Z=this;return(0,B.Z)(function*(){if(!Z.imgData)return void(yield Z.appManager.showToastNotification("Select an image to upload."));const Re={chargePointID:Z.chargePointId,comment:Z.comment,imageDataBase64:Z.imgData};yield Z.appManager.showLoadingProgress("Uploading photo..");try{yield Z.appManager.submitMediaItem(Re),Z.appManager.dismissLoadingProgress().then(()=>{Z.appManager.showToastNotification("Upload completed"),Z.modalController.dismiss()}),Z.appManager.analytics.appEvent("MediaUpload","Completed")}catch{yield Z.appManager.dismissLoadingProgress(),yield Z.appManager.showToastNotification("Upload failed, please try again."),Z.appManager.analytics.appEvent("MediaUpload","Failed")}})()}cancel(){var Z=this;return(0,B.Z)(function*(){yield Z.modalController.dismiss()})()}static \u0275fac=function(Re){return new(Re||ae)(m.Y36(l.X1),m.Y36(h.c),m.Y36(l.SH),m.Y36(te.IN),m.Y36(de.z))};static \u0275cmp=m.Xpm({type:ae,selectors:[["ng-component"]],decls:32,vars:3,consts:[[1,"media-upload"],[1,"ion-padding"],[1,"banner"],[1,"upload"],[3,"click"],["name","camera","aria-label","camera","slot","start"],["type","file","required","","id","img-upload-media",3,"change"],["inputFile",""],["id","img-upload-canvas",2,"display","none","width","500","height","500","border","1px solid red"],[4,"ngIf"],["slot","secondary"],["name","close","slot","start"],["slot","primary"],["name","send","slot","end"],["slot","start"],["slot","end"],["name","refresh","slot","start"],["position","floating"],["type","text","placeholder","(optional comment)",3,"ngModel","ngModelChange"],["id","preview",2,"max-width","500px"]],template:function(Re,st){if(1&Re){const on=m.EpF();m.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),m._uU(3," Share Photo "),m.qZA()()(),m.TgZ(4,"ion-content",0)(5,"div",1)(6,"div",2)(7,"h1"),m._uU(8),m.qZA(),m.TgZ(9,"p"),m._uU(10),m.qZA()(),m.TgZ(11,"p"),m._uU(12,"You can upload a photo from your device or take a new photo: "),m.qZA(),m.TgZ(13,"div",3)(14,"ion-button",4),m.NdJ("click",function(){m.CHM(on);const bi=m.MAs(19);return m.KtG(bi.click())}),m._UZ(15,"ion-icon",5),m.TgZ(16,"ion-label"),m._uU(17,"Choose Photo.."),m.qZA()(),m.TgZ(18,"input",6,7),m.NdJ("change",function(){return st.loadCameraOrLibraryImage()}),m.qZA()(),m._UZ(20,"canvas",8),m.YNc(21,nt,16,1,"ion-card",9),m.qZA()(),m.TgZ(22,"ion-footer")(23,"ion-toolbar")(24,"ion-buttons",10)(25,"ion-button",4),m.NdJ("click",function(){return st.cancel()}),m._UZ(26,"ion-icon",11),m._uU(27," Cancel "),m.qZA()(),m.TgZ(28,"ion-buttons",12)(29,"ion-button",4),m.NdJ("click",function(){return st.performUpload()}),m._uU(30," Upload "),m._UZ(31,"ion-icon",13),m.qZA()()()()}2&Re&&(m.xp6(8),m.Oqu(st.poi.AddressInfo.Title),m.xp6(2),m.Oqu(st.poi.AddressInfo.AddressLine1),m.xp6(11),m.Q6J("ngIf",null!=st.imgData))},dependencies:[ie.O5,fe.JJ,fe.On,te.YG,te.Sm,te.PM,te.FN,te.W2,te.fr,te.Gu,te.gu,te.pK,te.Ie,te.Q$,te.q_,te.wd,te.sr,te.j9],styles:[".upload[_ngcontent-%COMP%] input[type=file][_ngcontent-%COMP%]{position:fixed;top:-1000px}"]})}return ae})();var oe=P(6800);function xe(ae,ft){if(1&ae&&(m.TgZ(0,"ion-select-option",19),m._uU(1),m.qZA()),2&ae){const Z=ft.$implicit;m.Q6J("value",Z.ID),m.xp6(),m.Oqu(Z.Title)}}function Ie(ae,ft){if(1&ae&&(m.TgZ(0,"ion-select-option",19),m._uU(1),m.qZA()),2&ae){const Z=ft.$implicit;m.Q6J("value",Z.ID),m.xp6(),m.Oqu(Z.Title)}}let Ae=(()=>{class ae{navParams;appManager;nav;zone;loadingController;modalController;logging;router;commentModel;poi;commentTypes;checkinTypes;constructor(Z,Re,st,on,In,bi,wi,Ri){this.navParams=Z,this.appManager=Re,this.nav=st,this.zone=on,this.loadingController=In,this.modalController=bi,this.logging=wi,this.router=Ri,this.commentModel={ChargePointID:this.navParams.get("id"),Comment:"",CheckinStatusTypeID:10,CommentTypeID:10,Rating:null},this.poi=this.navParams.get("poi"),this.commentTypes=Re.referenceDataManager.getCommentTypes(!0,!0),this.checkinTypes=Re.referenceDataManager.getCheckinStatusTypes(!0,!0)}onPageWillEnter(){}cancel(){this.modalController.dismiss()}add(){var Z=this;return(0,B.Z)(function*(){const Re=yield Z.loadingController.create({message:"Sending .."});yield Re.present(),(yield Z.appManager.submitComment(Z.commentModel).catch(on=>{Z.appManager.showToastNotification("There was a problem submitting your comment."),Z.loadingController.dismiss(),Z.appManager.analytics.appEvent("Comment","Failed")}))&&(Z.logging.log("Comment submitted"),yield Re.dismiss(),yield Z.modalController.dismiss(),Z.appManager.analytics.appEvent("Comment","Submitted"))})()}static \u0275fac=function(Re){return new(Re||ae)(m.Y36(l.X1),m.Y36(h.c),m.Y36(l.SH),m.Y36(m.R0b),m.Y36(te.HT),m.Y36(te.IN),m.Y36(de.z),m.Y36(oe.F0))};static \u0275cmp=m.Xpm({type:ae,selectors:[["ng-component"]],decls:53,vars:8,consts:[["color","primary"],[1,"comment-page","ion-padding"],[1,"banner"],[1,"ion-padding"],["position","stacked"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["type","text","placeholder","(optional comment)",3,"ngModel","ngModelChange"],["value","5"],["value","4"],["value","3"],["value","2"],["value","1"],["value",""],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["name","send","slot","end"],[3,"value"]],template:function(Re,st){1&Re&&(m.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-title"),m._uU(3," Add Comment "),m.qZA()()(),m.TgZ(4,"ion-content",1)(5,"div",2)(6,"h1"),m._uU(7),m.qZA(),m.TgZ(8,"p"),m._uU(9),m.qZA()(),m.TgZ(10,"p",3),m._uU(11,"Recent Check-ins are a big help to other drivers when planning their journey. Tell everyone what you thought about this charging location. "),m.qZA(),m.TgZ(12,"ion-list")(13,"ion-item")(14,"ion-label",4),m._uU(15,"Comment Type"),m.qZA(),m.TgZ(16,"ion-select",5),m.NdJ("ngModelChange",function(In){return st.commentModel.CommentTypeID=In}),m.YNc(17,xe,2,2,"ion-select-option",6),m.qZA()(),m.TgZ(18,"ion-item")(19,"ion-label",4),m._uU(20,"What Did You Think?"),m.qZA(),m.TgZ(21,"ion-input",7),m.NdJ("ngModelChange",function(In){return st.commentModel.Comment=In}),m.qZA()(),m.TgZ(22,"ion-item")(23,"ion-label",4),m._uU(24,"Did You Successfully Charge?"),m.qZA(),m.TgZ(25,"ion-select",5),m.NdJ("ngModelChange",function(In){return st.commentModel.CheckinStatusTypeID=In}),m.YNc(26,Ie,2,2,"ion-select-option",6),m.qZA()(),m.TgZ(27,"ion-item")(28,"ion-label",4),m._uU(29,"Your Rating"),m.qZA(),m.TgZ(30,"ion-select",5),m.NdJ("ngModelChange",function(In){return st.commentModel.Rating=In}),m.TgZ(31,"ion-select-option",8),m._uU(32,"5 - Excellent"),m.qZA(),m.TgZ(33,"ion-select-option",9),m._uU(34,"4 - Good"),m.qZA(),m.TgZ(35,"ion-select-option",10),m._uU(36,"3 - Average"),m.qZA(),m.TgZ(37,"ion-select-option",11),m._uU(38,"2 - Not Good"),m.qZA(),m.TgZ(39,"ion-select-option",12),m._uU(40,"1 - Bad"),m.qZA(),m.TgZ(41,"ion-select-option",13),m._uU(42,"Not Rated"),m.qZA()()()()(),m.TgZ(43,"ion-footer")(44,"ion-toolbar")(45,"ion-buttons",14)(46,"ion-button",15),m.NdJ("click",function(){return st.cancel()}),m._UZ(47,"ion-icon",16),m._uU(48," Cancel "),m.qZA()(),m.TgZ(49,"ion-buttons",17)(50,"ion-button",15),m.NdJ("click",function(){return st.add()}),m._uU(51," Submit "),m._UZ(52,"ion-icon",18),m.qZA()()()()),2&Re&&(m.xp6(7),m.Oqu(st.poi.AddressInfo.Title),m.xp6(2),m.Oqu(st.poi.AddressInfo.AddressLine1),m.xp6(7),m.Q6J("ngModel",st.commentModel.CommentTypeID),m.xp6(),m.Q6J("ngForOf",st.commentTypes),m.xp6(4),m.Q6J("ngModel",st.commentModel.Comment),m.xp6(4),m.Q6J("ngModel",st.commentModel.CheckinStatusTypeID),m.xp6(),m.Q6J("ngForOf",st.checkinTypes),m.xp6(4),m.Q6J("ngModel",st.commentModel.Rating))},dependencies:[ie.sg,fe.JJ,fe.On,te.YG,te.Sm,te.W2,te.fr,te.Gu,te.gu,te.pK,te.Ie,te.Q$,te.q_,te.t9,te.n0,te.wd,te.sr,te.QI,te.j9],encapsulation:2})}return ae})();var ye=P(7777),Ue=P(4669),ct=P(8767),X=P(6662),ve=P(866),me=P(2618),Fe=P(1163);function De(ae,ft){if(1&ae&&(m.TgZ(0,"div")(1,"small"),m._uU(2),m.qZA()()),2&ae){const Z=m.oxw(2);m.xp6(2),m.Oqu(Z.connectionSummary)}}function ze(ae,ft){if(1&ae&&(m.TgZ(0,"div")(1,"small"),m._uU(2),m.qZA()()),2&ae){const Z=m.oxw(2);m.xp6(2),m.Oqu(Z.poi.OperatorInfo.Title)}}function Ke(ae,ft){1&ae&&(m.TgZ(0,"div")(1,"small"),m._uU(2,"[Submission Awaiting Review]"),m.qZA()())}function Ht(ae,ft){if(1&ae){const Z=m.EpF();m.ynx(0),m.TgZ(1,"ion-button",26),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw(2);return m.KtG(st.addFavourite())}),m._UZ(2,"ion-icon",27),m.TgZ(3,"ion-label"),m._uU(4,"Favourite"),m.qZA()(),m.TgZ(5,"ion-button",28),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw(2);return m.KtG(st.edit())}),m._UZ(6,"ion-icon",29),m.TgZ(7,"ion-label"),m._uU(8,"Edit"),m.qZA()(),m.BQk()}}function dn(ae,ft){if(1&ae){const Z=m.EpF();m.ynx(0),m.TgZ(1,"ion-button",30),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw(2);return m.KtG(st.launchNavigation())}),m._UZ(2,"ion-icon",31),m.TgZ(3,"ion-label"),m._uU(4,"Navigate"),m.qZA()(),m.BQk()}}function _n(ae,ft){if(1&ae){const Z=m.EpF();m.ynx(0),m.TgZ(1,"ion-button",32),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw(2);return m.KtG(st.addComment())}),m._UZ(2,"ion-icon",33),m.TgZ(3,"ion-label"),m._uU(4,"Add Comment"),m.qZA()(),m.BQk()}}function Ut(ae,ft){if(1&ae){const Z=m.EpF();m.ynx(0),m.TgZ(1,"ion-button",34),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw(2);return m.KtG(st.addMedia())}),m._UZ(2,"ion-icon",35),m.TgZ(3,"ion-label"),m._uU(4," Add Photo"),m.qZA()(),m.BQk()}}function We(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.AddressLine1,"")}}function Ne(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.AddressLine2,"")}}function ke(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.Town,"")}}function it(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.StateOrProvince,"")}}function Qt(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.Postcode,"")}}function mt(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.Country.Title,"")}}function an(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(),m.hij(" ",Z.poi.AddressInfo.AccessComments," ")}}function tt(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",40),m.TgZ(2,"span",38),m._uU(3),m.qZA()()),2&ae){const Z=m.oxw(4);m.xp6(3),m.Oqu(Z.poi.AddressInfo.ContactTelephone1)}}function pt(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",40),m.TgZ(2,"span",38),m._uU(3),m.qZA()()),2&ae){const Z=m.oxw(4);m.xp6(3),m.Oqu(Z.poi.AddressInfo.ContactTelephone2)}}function Xt(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",41),m.TgZ(2,"span",38),m._uU(3),m.qZA()()),2&ae){const Z=m.oxw(4);m.xp6(3),m.Oqu(Z.poi.AddressInfo.ContactEmail)}}function bn(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",42),m.TgZ(2,"span",38)(3,"a",43),m._uU(4),m.qZA()()()),2&ae){const Z=m.oxw(4);m.xp6(3),m.s9C("href",Z.poi.AddressInfo.RelatedURL,m.LSH),m.xp6(),m.Oqu(Z.poi.AddressInfo.RelatedURL)}}function Cn(ae,ft){if(1&ae&&(m.TgZ(0,"ion-card")(1,"ion-card-header")(2,"ion-card-subtitle"),m._uU(3),m.ALo(4,"translate"),m.qZA()(),m.TgZ(5,"ion-card-content")(6,"ion-grid")(7,"ion-row")(8,"ion-col")(9,"ion-label"),m._uU(10),m.ALo(11,"translate"),m.qZA(),m.TgZ(12,"div",38),m.YNc(13,We,2,1,"div",0)(14,Ne,2,1,"div",0)(15,ke,2,1,"div",0)(16,it,2,1,"div",0)(17,Qt,2,1,"div",0)(18,mt,2,1,"div",0),m.qZA()(),m.TgZ(19,"ion-col"),m.YNc(20,an,2,1,"p",0)(21,tt,4,1,"p",0)(22,pt,4,1,"p",0)(23,Xt,4,1,"p",0)(24,bn,5,2,"p",0),m.qZA()(),m.TgZ(25,"ion-row")(26,"ion-col")(27,"ion-label",39),m._uU(28),m.ALo(29,"number"),m.ALo(30,"number"),m.qZA()()()()()()),2&ae){const Z=m.oxw(3);m.xp6(3),m.hij(" ",m.lcZ(4,15,"ocm.details.location.sectionTitle")," "),m.xp6(7),m.hij(" ",m.lcZ(11,17,"ocm.details.location.address"),""),m.xp6(3),m.Q6J("ngIf",Z.poi.AddressInfo.AddressLine1),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.AddressLine2),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.Town),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.StateOrProvince),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.Postcode),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.Country),m.xp6(2),m.Q6J("ngIf",Z.poi.AddressInfo.AccessComments),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.ContactTelephone1),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.ContactTelephone2),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.ContactEmail),m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo.RelatedURL),m.xp6(4),m.AsE(" Lat/Long: ",m.xi3(29,19,Z.poi.AddressInfo.Latitude,"1.1-6")," , ",m.xi3(30,22,Z.poi.AddressInfo.Longitude,"1.1-6")," ")}}function It(ae,ft){if(1&ae&&(m.TgZ(0,"p")(1,"span",44),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"span",38),m._uU(5),m.qZA()()),2&ae){const Z=m.oxw(3);m.xp6(2),m.hij("",m.lcZ(3,2,"ocm.details.numberOfPoints"),":"),m.xp6(3),m.Oqu(Z.poi.NumberOfPoints)}}function pe(ae,ft){if(1&ae&&(m.TgZ(0,"p")(1,"span",44),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"span",38),m._uU(5),m.qZA()()),2&ae){const Z=m.oxw(3);m.xp6(2),m.hij("",m.lcZ(3,2,"ocm.details.operationalStatus"),":"),m.xp6(3),m.hij(" ",Z.poi.StatusType.Title," ")}}function lt(ae,ft){if(1&ae&&(m.TgZ(0,"p")(1,"span",44),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"span",38),m._uU(5),m.qZA()()),2&ae){const Z=m.oxw(3);m.xp6(2),m.hij("",m.lcZ(3,2,"ocm.details.usageType"),":"),m.xp6(3),m.Oqu(Z.poi.UsageType.Title)}}function Zt(ae,ft){if(1&ae&&(m.TgZ(0,"p")(1,"span",44),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"span",38),m._uU(5),m.qZA()()),2&ae){const Z=m.oxw(3);m.xp6(2),m.hij("",m.lcZ(3,2,"ocm.details.usageCost"),":"),m.xp6(3),m.hij(" ",Z.poi.UsageCost,"")}}function hn(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"br"),m._uU(2),m.ALo(3,"translate"),m._UZ(4,"br"),m.TgZ(5,"span",38),m._uU(6),m.qZA()()),2&ae){const Z=m.oxw(3);m.xp6(2),m.hij("",m.lcZ(3,2,"ocm.details.generalComments"),": "),m.xp6(4),m.Oqu(Z.poi.GeneralComments)}}function Yt(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",46),m._uU(2),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(2),m.hij(" ",Z.poi.OperatorInfo.WebsiteURL," ")}}function Ft(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",41),m._uU(2),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(2),m.hij(" ",Z.poi.OperatorInfo.ContactEmail," ")}}function Un(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m._UZ(1,"ion-icon",41),m._uU(2),m.qZA()),2&ae){const Z=m.oxw(4);m.xp6(2),m.hij(" ",Z.poi.OperatorInfo.FaultReportEmail," ")}}function Ve(ae,ft){if(1&ae&&(m.TgZ(0,"ion-card")(1,"ion-card-header")(2,"ion-card-subtitle"),m._uU(3),m.ALo(4,"translate"),m.qZA()(),m.TgZ(5,"ion-card-content")(6,"div",38)(7,"p",45),m._uU(8),m.qZA(),m.YNc(9,Yt,3,1,"p",0)(10,Ft,3,1,"p",0)(11,Un,3,1,"p",0),m.qZA()()()),2&ae){const Z=m.oxw(3);m.xp6(3),m.hij(" ",m.lcZ(4,5,"ocm.details.operator.sectionTitle")," "),m.xp6(5),m.hij(" ",Z.poi.OperatorInfo.Title," "),m.xp6(),m.Q6J("ngIf",Z.poi.OperatorInfo.WebsiteURL),m.xp6(),m.Q6J("ngIf",null!=Z.poi.OperatorInfo.ContactEmail),m.xp6(),m.Q6J("ngIf",null!=Z.poi.OperatorInfo.FaultReportEmail&&Z.poi.OperatorInfo.FaultReportEmail!=Z.poi.OperatorInfo.ContactEmail)}}function Pt(ae,ft){if(1&ae){const Z=m.EpF();m.TgZ(0,"a",48),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw(4);return m.KtG(st.launchURL(st.poi.DataProvider.WebsiteURL))}),m._uU(1),m.qZA()}if(2&ae){const Z=m.oxw(4);m.xp6(),m.Oqu(Z.poi.DataProvider.WebsiteURL)}}function Kt(ae,ft){if(1&ae&&(m.TgZ(0,"div",38)(1,"h3"),m._uU(2),m.ALo(3,"translate"),m.qZA(),m.TgZ(4,"p"),m._uU(5),m.qZA(),m.YNc(6,Pt,2,1,"a",47),m.TgZ(7,"p"),m._uU(8),m.qZA()()),2&ae){const Z=m.oxw(3);m.xp6(2),m.hij(" ",m.lcZ(3,4,"ocm.details.dataProvider.sectionTitle")," "),m.xp6(3),m.Oqu(null==Z.poi.DataProvider?null:Z.poi.DataProvider.Title),m.xp6(),m.Q6J("ngIf",Z.poi.DataProvider.WebsiteURL),m.xp6(2),m.Oqu(null==Z.poi.DataProvider?null:Z.poi.DataProvider.License)}}function wn(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m.YNc(1,Cn,31,25,"ion-card",0),m.TgZ(2,"ion-card")(3,"ion-card-header")(4,"ion-card-subtitle"),m._uU(5),m.ALo(6,"translate"),m.qZA()(),m.TgZ(7,"ion-card-content"),m.YNc(8,It,6,4,"p",0),m._UZ(9,"app-equipment-details",36),m.qZA()(),m.TgZ(10,"ion-card")(11,"ion-card-header")(12,"ion-card-subtitle"),m._uU(13,"Usage Restrictions"),m.qZA()(),m.TgZ(14,"ion-card-content"),m.YNc(15,pe,6,4,"p",0)(16,lt,6,4,"p",0)(17,Zt,6,4,"p",0)(18,hn,7,4,"p",0),m.qZA()(),m.YNc(19,Ve,12,7,"ion-card",0),m.TgZ(20,"ion-card")(21,"ion-card-header"),m._uU(22),m.ALo(23,"translate"),m.qZA(),m.TgZ(24,"ion-card-content"),m.YNc(25,Kt,9,6,"div",37),m.qZA()()()),2&ae){const Z=m.oxw(2);m.xp6(),m.Q6J("ngIf",Z.poi.AddressInfo),m.xp6(4),m.hij(" ",m.lcZ(6,11,"ocm.details.equipment.sectionTitle")," "),m.xp6(3),m.Q6J("ngIf",null!=Z.poi.NumberOfPoints),m.xp6(),m.Q6J("item",Z.poi),m.xp6(6),m.Q6J("ngIf",null!=Z.poi.StatusType),m.xp6(),m.Q6J("ngIf",null!=Z.poi.UsageType),m.xp6(),m.Q6J("ngIf",null!=Z.poi.UsageCost),m.xp6(),m.Q6J("ngIf",null!=Z.poi.GeneralComments),m.xp6(),m.Q6J("ngIf",Z.poi.OperatorInfo),m.xp6(3),m.hij(" ",m.lcZ(23,13,"ocm.details.advancedDetails")," "),m.xp6(3),m.Q6J("ngIf",Z.poi.DataProvider)}}function ei(ae,ft){if(1&ae&&m._UZ(0,"img",51),2&ae){const Z=m.oxw().$implicit;m.s9C("src",null==Z.User?null:Z.User.ProfileImageURL,m.LSH)}}function di(ae,ft){if(1&ae&&(m.TgZ(0,"span"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw().$implicit;m.xp6(),m.Oqu(Z.User.Username)}}function Lr(ae,ft){if(1&ae&&(m.TgZ(0,"span"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw().$implicit;m.xp6(),m.Oqu(Z.Username)}}function Mi(ae,ft){if(1&ae&&(m.TgZ(0,"p",38),m._uU(1),m.qZA()),2&ae){const Z=m.oxw().$implicit;m.xp6(),m.hij(" ",null==Z.CommentType?null:Z.CommentType.Title," ")}}function dr(ae,ft){if(1&ae&&(m.TgZ(0,"p")(1,"span",44),m._uU(2,"Rating:"),m.qZA(),m.TgZ(3,"span",38),m._uU(4),m.qZA()()),2&ae){const Z=m.oxw().$implicit;m.xp6(4),m.hij("",Z.Rating," out of 5")}}function Ei(ae,ft){1&ae&&(m.ynx(0),m._UZ(1,"ion-icon",52),m.BQk())}function fn(ae,ft){1&ae&&(m.ynx(0),m._UZ(1,"ion-icon",53),m.BQk())}function Li(ae,ft){if(1&ae&&(m.TgZ(0,"p"),m.YNc(1,Ei,2,0,"ng-container",0)(2,fn,2,0,"ng-container",0),m._uU(3),m.qZA()),2&ae){const Z=m.oxw().$implicit;m.xp6(),m.Q6J("ngIf",!0===Z.CheckinStatusType.IsPositive),m.xp6(),m.Q6J("ngIf",!1===Z.CheckinStatusType.IsPositive),m.xp6(),m.hij(" ",Z.CheckinStatusType.Title," ")}}function gn(ae,ft){if(1&ae&&(m.TgZ(0,"ion-card")(1,"ion-item")(2,"ion-avatar",19),m.YNc(3,ei,1,1,"img",50),m.qZA(),m.TgZ(4,"ion-label"),m.YNc(5,di,2,1,"span",0)(6,Lr,2,1,"span",0),m.qZA(),m.TgZ(7,"ion-label",20),m._uU(8),m.ALo(9,"date"),m.qZA()(),m.TgZ(10,"ion-card-content")(11,"p"),m._uU(12),m.qZA(),m.YNc(13,Mi,2,1,"p",37)(14,dr,5,1,"p",0)(15,Li,4,3,"p",0),m.qZA()()),2&ae){const Z=ft.$implicit;m.xp6(3),m.Q6J("ngIf",Z.User&&Z.User.ProfileImageURL),m.xp6(2),m.Q6J("ngIf",Z.User),m.xp6(),m.Q6J("ngIf",!Z.User),m.xp6(2),m.hij(" ",m.lcZ(9,8,Z.DateCreated)," "),m.xp6(4),m.Oqu(Z.Comment),m.xp6(),m.Q6J("ngIf",10!=Z.CommentTypeID),m.xp6(),m.Q6J("ngIf",Z.Rating),m.xp6(),m.Q6J("ngIf",Z.CheckinStatusType)}}function Fn(ae,ft){if(1&ae&&(m.ynx(0),m.YNc(1,gn,16,10,"ion-card",49),m.BQk()),2&ae){const Z=m.oxw(3);m.xp6(),m.Q6J("ngForOf",Z.poi.UserComments)}}function Jt(ae,ft){1&ae&&(m.ynx(0),m.TgZ(1,"ion-card")(2,"ion-card-content")(3,"p"),m._uU(4),m.ALo(5,"translate"),m.qZA()()(),m.BQk()),2&ae&&(m.xp6(4),m.hij(" ",m.lcZ(5,1,"ocm.details.commentsAndRatings.addPrompt")," "))}function Bi(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m.YNc(1,Fn,2,1,"ng-container",0)(2,Jt,6,3,"ng-container",0),m.qZA()),2&ae){const Z=m.oxw(2);m.xp6(),m.Q6J("ngIf",1==Z.poi._hasComments),m.xp6(),m.Q6J("ngIf",0==Z.poi._hasComments)}}function ut(ae,ft){if(1&ae&&m._UZ(0,"img",51),2&ae){const Z=m.oxw().$implicit;m.s9C("src",null==Z.User?null:Z.User.ProfileImageURL,m.LSH)}}function he(ae,ft){if(1&ae&&(m.TgZ(0,"span"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw().$implicit;m.xp6(),m.Oqu(Z.User.Username)}}function _e(ae,ft){if(1&ae&&(m.TgZ(0,"span"),m._uU(1),m.qZA()),2&ae){const Z=m.oxw().$implicit;m.xp6(),m.Oqu(Z.Username)}}function ot(ae,ft){if(1&ae&&(m.TgZ(0,"ion-card"),m._UZ(1,"img",51),m.TgZ(2,"ion-item")(3,"ion-avatar",19),m.YNc(4,ut,1,1,"img",50),m.qZA(),m.TgZ(5,"ion-label"),m.YNc(6,he,2,1,"span",0)(7,_e,2,1,"span",0),m.qZA(),m.TgZ(8,"ion-label",20),m._uU(9),m.ALo(10,"date"),m.qZA()(),m.TgZ(11,"ion-card-content")(12,"p"),m._uU(13),m.qZA()()()),2&ae){const Z=ft.$implicit;m.xp6(),m.s9C("src",Z.ItemMediumURL,m.LSH),m.xp6(3),m.Q6J("ngIf",Z.User&&Z.User.ProfileImageURL),m.xp6(2),m.Q6J("ngIf",Z.User),m.xp6(),m.Q6J("ngIf",!Z.User),m.xp6(2),m.hij(" ",m.lcZ(10,6,Z.DateCreated)," "),m.xp6(4),m.Oqu(Z.Comment)}}function yt(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m.YNc(1,ot,14,8,"ion-card",49),m.qZA()),2&ae){const Z=m.oxw(3);m.xp6(),m.Q6J("ngForOf",Z.poi.MediaItems)}}function Dt(ae,ft){1&ae&&(m.ynx(0),m.TgZ(1,"ion-card")(2,"ion-card-content")(3,"p"),m._uU(4),m.ALo(5,"translate"),m.qZA()()(),m.BQk()),2&ae&&(m.xp6(4),m.hij(" ",m.lcZ(5,1,"ocm.details.mediaItems.addPrompt")," "))}function jt(ae,ft){if(1&ae&&(m.TgZ(0,"div"),m.YNc(1,yt,2,1,"div",0)(2,Dt,6,3,"ng-container",0),m.qZA()),2&ae){const Z=m.oxw(2);m.xp6(),m.Q6J("ngIf",Z.poi._hasPhotos),m.xp6(),m.Q6J("ngIf",0==Z.poi._hasPhotos)}}function Vt(ae,ft){if(1&ae&&(m.TgZ(0,"p",54),m._uU(1),m.qZA()),2&ae){const Z=m.oxw(2);m.xp6(),m.hij(" ",Z.json,"")}}function dt(ae,ft){if(1&ae){const Z=m.EpF();m.TgZ(0,"div")(1,"div",1)(2,"div",2)(3,"h2"),m._uU(4),m.qZA(),m.TgZ(5,"div")(6,"small"),m._uU(7),m.qZA()(),m.YNc(8,De,3,1,"div",0)(9,ze,3,1,"div",0)(10,Ke,3,0,"div",0),m.TgZ(11,"ion-badge",3),m._uU(12),m.ALo(13,"number"),m.qZA()(),m.TgZ(14,"ion-fab",4)(15,"ion-fab-button"),m._UZ(16,"ion-icon",5),m.qZA(),m.TgZ(17,"ion-fab-list",6)(18,"ion-fab-button",7),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw();return m.KtG(st.addComment())}),m._UZ(19,"ion-icon",8),m.qZA(),m.TgZ(20,"ion-fab-button",9),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw();return m.KtG(st.addMedia())}),m._UZ(21,"ion-icon",10),m.qZA(),m.TgZ(22,"ion-fab-button",11),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw();return m.KtG(st.addFavourite())}),m._UZ(23,"ion-icon",12),m.qZA(),m.TgZ(24,"ion-fab-button",13),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw();return m.KtG(st.edit())}),m._UZ(25,"ion-icon",14),m.qZA(),m.TgZ(26,"ion-fab-button",15),m.NdJ("click",function(){m.CHM(Z);const st=m.oxw();return m.KtG(st.refresh())}),m._UZ(27,"ion-icon",16),m.qZA()()()(),m.TgZ(28,"ion-refresher",17),m.NdJ("ionRefresh",function(st){m.CHM(Z);const on=m.oxw();return m.KtG(on.refresh(st))}),m._UZ(29,"ion-refresher-content",18),m.qZA(),m.TgZ(30,"ion-toolbar")(31,"ion-buttons",19),m.YNc(32,Ht,9,0,"ng-container",0),m.qZA(),m.TgZ(33,"ion-buttons",20),m.YNc(34,dn,5,0,"ng-container",0)(35,_n,5,0,"ng-container",0)(36,Ut,5,0,"ng-container",0),m.qZA()(),m.TgZ(37,"ion-segment",21),m.NdJ("ngModelChange",function(st){m.CHM(Z);const on=m.oxw();return m.KtG(on.selectedTab=st)}),m.TgZ(38,"ion-segment-button",22)(39,"ion-label"),m._uU(40," Details "),m.qZA()(),m.TgZ(41,"ion-segment-button",23)(42,"ion-label"),m._uU(43),m.qZA()(),m.TgZ(44,"ion-segment-button",24)(45,"ion-label"),m._uU(46),m.qZA()()(),m.YNc(47,wn,26,15,"div",0)(48,Bi,3,2,"div",0)(49,jt,3,2,"div",0)(50,Vt,2,1,"p",25),m.qZA()}if(2&ae){const Z=m.oxw();m.xp6(),m.Udp("background-image",Z.backdropImage?"url("+Z.backdropImage+")":""),m.xp6(3),m.hij(" ",Z.poi.AddressInfo.Title," "),m.xp6(3),m.hij("OCM-",Z.poi.ID,""),m.xp6(),m.Q6J("ngIf",Z.connectionSummary),m.xp6(),m.Q6J("ngIf",Z.poi.OperatorInfo),m.xp6(),m.Q6J("ngIf",1==Z.poi.SubmissionStatusTypeID),m.xp6(2),m.Oqu(m.xi3(13,19,Z.avgRating,"1.1-1")),m.xp6(20),m.Q6J("ngIf","location"==Z.selectedTab),m.xp6(2),m.Q6J("ngIf","location"==Z.selectedTab),m.xp6(),m.Q6J("ngIf","comments"==Z.selectedTab),m.xp6(),m.Q6J("ngIf","media"==Z.selectedTab),m.xp6(),m.Q6J("ngModel",Z.selectedTab),m.xp6(6),m.hij("Comments (",Z.poi.UserComments?Z.poi.UserComments.length:0,")"),m.xp6(3),m.hij(" Photos (",Z.poi.MediaItems?Z.poi.MediaItems.length:0,")"),m.xp6(),m.Q6J("ngIf","location"==Z.selectedTab),m.xp6(),m.Q6J("ngIf","comments"==Z.selectedTab),m.xp6(),m.Q6J("ngIf","media"==Z.selectedTab),m.xp6(),m.Q6J("ngIf",1==Z.appManager.isDebugMode)}}function Bt(ae,ft){1&ae&&(m.TgZ(0,"div")(1,"h2"),m._uU(2,"POI Not Found"),m.qZA(),m.TgZ(3,"p"),m._uU(4,"The POI details could not be loaded."),m.qZA()())}let Nn=(()=>{class ae{appManager;nav;translate;logging;modalController;actionSheetController;poiManager;router;poi;selectedTab;json;hasNavBar=!1;backdropImage;avgRating;connectionSummary;constructor(Z,Re,st,on,In,bi,wi,Ri){this.appManager=Z,this.nav=Re,this.translate=st,this.logging=on,this.modalController=In,this.actionSheetController=bi,this.poiManager=wi,this.router=Ri}ngOnChanges(Z){if(this.logging.log("In ngOnChanges of POI Details"),null!=this.poi&&null!=this.poi.AddressInfo){if(this.selectedTab="location",null!=this.poi.MediaItems&&this.poi.MediaItems.length>0){this.poi._hasPhotos=!0;for(let Re of this.poi.MediaItems)Re.ItemMediumURL=Re.ItemThumbnailURL.replace(".thmb.",".medi.");this.backdropImage=this.poi.MediaItems[this.poi.MediaItems.length-1].ItemThumbnailURL.replace(".thmb.",".medi.")}else this.poi._hasPhotos=!1,this.backdropImage=null;if(null!=this.poi.UserComments&&this.poi.UserComments.length>0){this.poi._hasComments=!0;try{let Re=this.poi.UserComments.filter(st=>st.Rating>0);if(Re.length>0){let st=0;for(let on of Re)st+=on.Rating;this.avgRating=st/Re.length}else this.avgRating=null}catch{}}else this.poi._hasComments=!1;if(this.poi.Connections&&this.poi.Connections.length>0){let Re="";for(let st of this.poi.Connections)-1==Re.indexOf(st.ConnectionType.Title)&&(Re+=(""!=Re?", ":"")+st.ConnectionType.Title);this.connectionSummary=Re}}}ngOnInit(){this.logging.log("In ngInit of POI Details")}get staticMapURL(){return"https://maps.googleapis.com/maps/api/staticmap?key="+(new ye.X).googleMapsAPIKey+"¢er="+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude+"&zoom=13&scale=2&size="+this.staticMapSize+"&maptype=roadmap&format=jpg&visual_refresh=true&markers=size:small%7Ccolor:0xff0000%7Clabel:%7C"+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude}get staticMapSize(){return 0===this.appManager.clientWidth?"240x100":this.appManager.clientWidth>=800?"640x100":this.appManager.clientWidth>=400?"400x100":"240x100"}continueAddComment(){var Z=this;return(0,B.Z)(function*(){const Re=yield Z.modalController.create({component:Ae,componentProps:{id:Z.poi.ID,poi:Z.poi}});setTimeout(()=>{Z.refresh()},1e3),yield Re.present()})()}addComment(){var Z=this;return(0,B.Z)(function*(){if(Z.appManager.isUserAuthenticated(!0))yield Z.continueAddComment();else{const Re=yield Z.modalController.create({component:ct.F});Re.onDidDismiss().then((0,B.Z)(function*(){Z.appManager.isUserAuthenticated(!0)&&(yield Z.continueAddComment())})),yield Re.present()}})()}continueAddMedia(){var Z=this;return(0,B.Z)(function*(){const Re=yield Z.modalController.create({component:Ce,componentProps:{id:Z.poi.ID,poi:Z.poi}});Re.onDidDismiss().then(()=>{setTimeout(()=>{Z.refresh()},1e3)}),yield Re.present()})()}addMedia(){var Z=this;return(0,B.Z)(function*(){if(Z.appManager.isUserAuthenticated(!0))yield Z.continueAddMedia();else{const Re=yield Z.modalController.create({component:ct.F});Re.onDidDismiss().then((0,B.Z)(function*(){Z.appManager.isUserAuthenticated(!0)&&(yield Z.continueAddMedia())})),yield Re.present()}})()}addFavourite(){var Z=this;return(0,B.Z)(function*(){yield(yield Z.actionSheetController.create({header:"Add Favourite",buttons:[{text:"Add to Journey",handler:()=>{Z.modalController.create({component:Me,componentProps:{poi:Z.poi}}).then(st=>st.present())}},{text:"Cancel",role:"cancel",handler:()=>{}}]})).present()})()}launchNavigation(){this.appManager.isPlatform("ios")?this.appManager.launchWebPage("https://maps.apple.com/?ll="+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude):this.appManager.launchWebPage("https://maps.google.com/?q="+this.poi.AddressInfo.Latitude+","+this.poi.AddressInfo.Longitude)}launchURL(Z){this.appManager.launchWebPage(Z)}continueEdit(){var Z=this;return(0,B.Z)(function*(){const Re=yield Z.modalController.create({component:X.Y,componentProps:{id:Z.poi.ID}});return Re.onDidDismiss().then(st=>{Z.refresh()}),yield Re.present()})()}edit(){var Z=this;return(0,B.Z)(function*(){if(ve.c.isFeatureEnabled("EDIT_POI"))if(Z.appManager.isUserAuthenticated(!0))yield Z.continueEdit();else{const Re=yield Z.modalController.create({component:ct.F});Re.onDidDismiss().then((0,B.Z)(function*(){Z.appManager.isUserAuthenticated(!0)&&(yield Z.continueEdit())})),yield Re.present()}else Z.appManager.launchOCMWebPage("/poi/edit/"+Z.poi.ID)})()}refresh(Z=null){this.poi&&this.poiManager.getPOIById(this.poi.ID,!0,!0).then(Re=>{Re&&(this.poi=Re,this.ngOnChanges(null)),Z&&Z.target.complete()})}static \u0275fac=function(Re){return new(Re||ae)(m.Y36(h.c),m.Y36(l.SH),m.Y36(me.sK),m.Y36(de.z),m.Y36(te.IN),m.Y36(te.BX),m.Y36(Ue.R),m.Y36(oe.F0))};static \u0275cmp=m.Xpm({type:ae,selectors:[["poi-details"]],inputs:{poi:"poi"},features:[m.TTD],decls:2,vars:2,consts:[[4,"ngIf"],[1,"banner"],[1,"banner-content"],["color","primary","title","Average User Rating"],["vertical","top","horizontal","end","slot","fixed"],["name","add"],["side","bottom"],["title","Add a comment or charging check-in",3,"click"],["name","chatbubbles"],["title","Add a Photo",3,"click"],["name","camera"],["title","Add to Favourites",3,"click"],["name","star"],["title","Submit an Edit",3,"click"],["name","create"],["title","Refresh",3,"click"],["name","refresh"],["slot","fixed",3,"ionRefresh"],["pullingIcon","caret-down","pullingText","Pull to refresh","refreshingSpinner","circles","refreshingText","Refreshing..."],["slot","start"],["slot","end"],[3,"ngModel","ngModelChange"],["value","location","selected",""],["value","comments"],["value","media"],["style","white-space: pre-wrap;",4,"ngIf"],["size","small","title","Add to Favourites",3,"click"],["name","star","slot","start"],["size","small","title","Submit an Edit",3,"click"],["name","create","slot","start"],["size","small","title","Navigate to this location",3,"click"],["name","navigate","slot","start"],["size","small","title","Add a comment or charging check-in",3,"click"],["name","chatbubbles","slot","start"],["size","small","title","Add a Photo",3,"click"],["name","camera","slot","start"],[3,"item"],["class","details",4,"ngIf"],[1,"details"],[1,"details-minor"],["name","call"],["name","mail"],["name","globe"],["target","_system",3,"href"],[1,"label"],[1,"ion-padding-left"],["name","link"],["href","javascript:void(0)",3,"click",4,"ngIf"],["href","javascript:void(0)",3,"click"],[4,"ngFor","ngForOf"],[3,"src",4,"ngIf"],[3,"src"],["name","checkmark-circle","color","success",2,"font-size","2em"],["name","close-circle","color","danger"],[2,"white-space","pre-wrap"]],template:function(Re,st){1&Re&&m.YNc(0,dt,51,22,"div",0)(1,Bt,5,0,"div",0),2&Re&&(m.Q6J("ngIf",null!=st.poi&&null!=st.poi.AddressInfo),m.xp6(),m.Q6J("ngIf",null==st.poi||null==st.poi.AddressInfo))},dependencies:[ie.sg,ie.O5,te.BJ,te.yp,te.YG,te.Sm,te.PM,te.FN,te.Zi,te.tO,te.wI,te.IJ,te.W4,te.zq,te.jY,te.gu,te.Ie,te.Q$,te.nJ,te.Wo,te.Nd,te.cJ,te.GO,te.sr,te.QI,fe.JJ,fe.On,Fe.B,ie.JJ,ie.uU,me.X$],styles:[".banner[_ngcontent-%COMP%]{background-color:#4f712f;color:#ffffffec;padding:1em;text-shadow:#000 1px 1px 1px;min-height:180px;background-size:cover}.banner[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}.banner-content[_ngcontent-%COMP%]{padding-right:48px}h3[_ngcontent-%COMP%]{font-weight:700}.label[_ngcontent-%COMP%]{color:#000;font-weight:700;font-size:12px}.details[_ngcontent-%COMP%]{color:#707d61;margin-left:1em;font-size:12px}.details-minor[_ngcontent-%COMP%]{color:#707d61;font-size:12px}p[_ngcontent-%COMP%]{display:block;padding:4px}"]})}return ae})(),Gn=(()=>{class ae{modalController;navParams;appManager;poi;hasNavbar=!1;constructor(Z,Re,st){this.modalController=Z,this.navParams=Re,this.appManager=st,this.poi=this.navParams.get("item"),this.appManager.analytics.viewEvent("POIDetails")}close(){this.modalController.dismiss()}static \u0275fac=function(Re){return new(Re||ae)(m.Y36(te.IN),m.Y36(l.X1),m.Y36(h.c))};static \u0275cmp=m.Xpm({type:ae,selectors:[["ng-component"]],decls:11,vars:3,consts:[["color","primary"],["slot","start"],[3,"click"],["name","close","slot","icon-only"],[1,"poi-details"],[3,"poi"]],template:function(Re,st){1&Re&&(m.TgZ(0,"ion-header")(1,"ion-toolbar",0)(2,"ion-title"),m._uU(3),m.TgZ(4,"small"),m._uU(5),m.qZA()(),m.TgZ(6,"ion-buttons",1)(7,"ion-button",2),m.NdJ("click",function(){return st.close()}),m._UZ(8,"ion-icon",3),m.qZA()()()(),m.TgZ(9,"ion-content",4),m._UZ(10,"poi-details",5),m.qZA()),2&Re&&(m.xp6(3),m.hij(" ",st.poi.AddressInfo.Title," "),m.xp6(2),m.hij("OCM-",st.poi.ID,""),m.xp6(5),m.Q6J("poi",st.poi))},dependencies:[te.YG,te.Sm,te.W2,te.Gu,te.gu,te.wd,te.sr,Nn],styles:['.left-col[_ngcontent-%COMP%]{float:left;width:50%;overflow:auto}.right-col[_ngcontent-%COMP%]{float:right;width:50%;overflow:auto}.row[_ngcontent-%COMP%]:after{content:"";display:table;clear:both;overflow:auto}.row[_ngcontent-%COMP%]{margin-bottom:1em}.subtle[_ngcontent-%COMP%]{color:silver}@media screen and (max-width: 768px){.left-col[_ngcontent-%COMP%]{float:none;width:100%}.right-col[_ngcontent-%COMP%]{margin-top:1em;float:none;width:100%}}.address-details[_ngcontent-%COMP%] ion-card[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:200px;width:auto}ion-label[_ngcontent-%COMP%]{overflow:inherit}ion-title[_ngcontent-%COMP%] > small[_ngcontent-%COMP%]{color:#ffffffbf}']})}return ae})()},5722:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{PoiEditorPageModule:()=>Pe});var h=P(6814),m=P(6223),te=P(6800),l=P(451),B=P(6662),Y=P(2618),C=P(5086),ie=P(9212);const fe=[{path:"",component:B.Y}];let Pe=(()=>{class K{static \u0275fac=function(Me){return new(Me||K)};static \u0275mod=ie.oAB({type:K});static \u0275inj=ie.cJS({imports:[h.ez,m.u5,l.Pc,Y.aw,C.e,te.Bz.forChild(fe)]})}return K})()},6662:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Y:()=>Yt});var h=P(5861),m=P(6470),te=P(8371),l=P(866),B=P(4669),Y=P(1847),C=P(9212),ie=P(3955),fe=P(9903),Pe=P(9127),K=P(5957),be=P(9862),Te=P(6814),Me=P(451);function de(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"ion-note")(2,"p"),C._uU(3," The closest address to this position is: "),C.qZA(),C.TgZ(4,"p")(5,"strong"),C._uU(6),C.qZA(),C._UZ(7,"br"),C._uU(8),C._UZ(9,"br"),C.TgZ(10,"ion-button",3),C.NdJ("click",function(){C.CHM(Ve);const Kt=C.oxw();return C.KtG(Kt.useAddressSelection())}),C._uU(11,"Use this address below "),C._UZ(12,"ion-icon",4),C.qZA()()(),C.BQk()}if(2&Ft){const Ve=C.oxw();C.xp6(6),C.Oqu(Ve.suggestedAddress.AddressLine1),C.xp6(2),C.HOy(" ",Ve.suggestedAddress.AddressLine2," ",Ve.suggestedAddress.Town," ",Ve.suggestedAddress.StateOrProvince," ",Ve.suggestedAddress.Postcode," ")}}let nt=(()=>{class Ft{mapping;events;logging;http;appManager;latitude;latitudeChange=new C.vpe;longitude;longitudeChange=new C.vpe;suggestedAddress=null;suggestedAddressChange=new C.vpe;onUseSuggestedAddress=new C.vpe;suggestedAddressAttribution=null;suggestedAddressAttributionChange=new C.vpe;originalMarkerPos;mapService;mapOptions;debouncedGecode;isMapInitialised=!1;constructor(Ve,Pt,Kt,wn,ei){this.mapping=Ve,this.events=Pt,this.logging=Kt,this.http=wn,this.appManager=ei}ngOnInit(){this.mapService=new fe.k(this.events,this.logging,this.http),this.mapService.initAPI(),this.mapOptions=new ie._,this.mapOptions.mapType=this.appManager.searchSettings.MapType,this.mapOptions.onMapMoveCompleted=()=>{let Ve;Ve=this.mapService.getMapCenter(),Ve.subscribe(Pt=>{Pt&&(this.latitude=Pt.coords.latitude,this.longitude=Pt.coords.longitude,this.latitudeChange.emit(this.latitude),this.longitudeChange.emit(this.longitude),this.getAddressForCurrentLatLng())})}}ngAfterContentInit(){this.focusMap()}ngOnDestroy(){this.mapService.disposeMap()}focusMap(){0==this.isMapInitialised&&this.mapService&&0!=this.latitude&&0!=this.longitude&&(this.isMapInitialised=!0,this.mapService.initMap("editor-map",this.mapOptions,null),this.mapService.setMapCenter(new te.jR(this.latitude,this.longitude)),this.originalMarkerPos=new te.wC(this.latitude,this.longitude))}ngOnChanges(Ve){this.focusMap()}getAddressForCurrentLatLng(){var Ve=this;return(0,h.Z)(function*(){Ve.latitude&&Ve.longitude&&Ve.appManager.api.fetchReverseGeocodeResult(Ve.latitude,Ve.longitude).then(Pt=>{Pt.AddressInfo&&(Ve.suggestedAddress=Pt.AddressInfo)})})()}useAddressSelection(){this.onUseSuggestedAddress.emit({suggestedAddress:this.suggestedAddress,attribution:this.suggestedAddressAttribution}),this.suggestedAddress=null,this.suggestedAddressAttribution=null}static \u0275fac=function(Pt){return new(Pt||Ft)(C.Y36(Y.v),C.Y36(K.z),C.Y36(Pe.z),C.Y36(be.eN),C.Y36(m.c))};static \u0275cmp=C.Xpm({type:Ft,selectors:[["app-poi-location-editor"]],inputs:{latitude:"latitude",longitude:"longitude"},outputs:{latitudeChange:"latitudeChange",longitudeChange:"longitudeChange",suggestedAddressChange:"suggestedAddressChange",onUseSuggestedAddress:"onUseSuggestedAddress",suggestedAddressAttributionChange:"suggestedAddressAttributionChange"},features:[C.TTD],decls:4,vars:1,consts:[[1,"instruction"],["id","editor-map"],[4,"ngIf"],["size","small",3,"click"],["slot","end","name","copy"]],template:function(Pt,Kt){1&Pt&&(C.TgZ(0,"p",0),C._uU(1,"Drag the map to center the marker on the charging location:"),C.qZA(),C._UZ(2,"div",1),C.YNc(3,de,13,5,"ng-container",2)),2&Pt&&(C.xp6(3),C.Q6J("ngIf",Kt.suggestedAddress))},dependencies:[Te.O5,Me.YG,Me.gu,Me.uN],styles:["#editor-map[_ngcontent-%COMP%]{border:1px solid gainsboro;background-color:gray;width:100%;height:128px}"]})}return Ft})();var Ce=P(9159),oe=P(6223);function xe(Ft,Un){if(1&Ft&&(C.TgZ(0,"ion-select-option",14),C._uU(1),C.qZA()),2&Ft){const Ve=Un.$implicit;C.Q6J("value",Ve.ID),C.xp6(),C.Oqu(Ve.Title)}}function Ie(Ft,Un){if(1&Ft&&(C.TgZ(0,"ion-select-option",14),C._uU(1),C.qZA()),2&Ft){const Ve=Un.$implicit;C.Q6J("value",Ve.ID),C.xp6(),C.Oqu(Ve.Title)}}function Ae(Ft,Un){if(1&Ft&&(C.TgZ(0,"ion-select-option",14),C._uU(1),C.qZA()),2&Ft){const Ve=Un.$implicit;C.Q6J("value",Ve.ID),C.xp6(),C.Oqu(Ve.Title)}}let ye=(()=>{class Ft{modalController;referenceDataManager;conn;useFilteredConnectionTypes=!0;useFilteredOperators=!0;constructor(Ve,Pt){this.modalController=Ve,this.referenceDataManager=Pt}get isAddMode(){return!(null!=this.conn&&this.conn.ID>0)}get connectionTypes(){return this.referenceDataManager.getConnectionTypes(this.useFilteredConnectionTypes)}get currentTypes(){return this.referenceDataManager.getOutputCurrentTypes()}get statusTypes(){return this.referenceDataManager.getStatusTypes().filter(Ve=>1==Ve.IsUserSelectable)}ngOnInit(){}save(){var Ve=!0;null!=this.conn.Quantity&&(this.conn.Quantity<0||this.conn.Quantity>100||!Number.isInteger(this.conn.Quantity))&&(alert("Quantity must be a whole number, or leave it blank."),Ve=!1),Ve&&this.modalController.dismiss({item:this.conn})}cancel(){this.modalController.dismiss()}static \u0275fac=function(Pt){return new(Pt||Ft)(C.Y36(Me.IN),C.Y36(Ce.W))};static \u0275cmp=C.Xpm({type:Ft,selectors:[["app-poi-equipment-editor"]],decls:60,vars:13,consts:[[1,"ion-padding"],["position","floating"],[3,"ngModel","ngModelChange"],["value","0"],[3,"value",4,"ngFor","ngForOf"],["type","number",3,"ngModel","ngModelChange"],["type","text","placeholder","(optional) other comments",3,"ngModel","ngModelChange"],["type","text",3,"ngModel","ngModelChange"],["slot","start"],[3,"click"],["name","close","slot","start"],["slot","end"],["color","success",3,"click"],["name","send","slot","end"],[3,"value"]],template:function(Pt,Kt){1&Pt&&(C.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C._uU(3),C.qZA()()(),C.TgZ(4,"ion-content",0)(5,"p"),C._uU(6,"Please provide as much information as you can about the equipment. If you don't know then leave the field blank. At a minimum you should include the Connection Type and approximate Power kW (max)."),C.qZA(),C.TgZ(7,"ion-item")(8,"ion-label",1),C._uU(9,"Connection Type"),C.qZA(),C.TgZ(10,"ion-select",2),C.NdJ("ngModelChange",function(ei){return Kt.conn.ConnectionTypeID=ei}),C.TgZ(11,"ion-select-option",3),C._uU(12,"Unknown"),C.qZA(),C.YNc(13,xe,2,2,"ion-select-option",4),C.qZA()(),C.TgZ(14,"ion-item")(15,"ion-label",1),C._uU(16,"Supply Type"),C.qZA(),C.TgZ(17,"ion-select",2),C.NdJ("ngModelChange",function(ei){return Kt.conn.CurrentTypeID=ei}),C.TgZ(18,"ion-select-option",3),C._uU(19,"Unknown"),C.qZA(),C.YNc(20,Ie,2,2,"ion-select-option",4),C.qZA()(),C.TgZ(21,"ion-item")(22,"ion-label",1),C._uU(23,"Power (kW)"),C.qZA(),C.TgZ(24,"ion-input",5),C.NdJ("ngModelChange",function(ei){return Kt.conn.PowerKW=ei}),C.qZA()(),C.TgZ(25,"ion-item")(26,"ion-label",1),C._uU(27,"Amps"),C.qZA(),C.TgZ(28,"ion-input",5),C.NdJ("ngModelChange",function(ei){return Kt.conn.Amps=ei}),C.qZA()(),C.TgZ(29,"ion-item")(30,"ion-label",1),C._uU(31,"Voltage"),C.qZA(),C.TgZ(32,"ion-input",5),C.NdJ("ngModelChange",function(ei){return Kt.conn.Voltage=ei}),C.qZA()(),C.TgZ(33,"ion-item")(34,"ion-label",1),C._uU(35,"Status"),C.qZA(),C.TgZ(36,"ion-select",2),C.NdJ("ngModelChange",function(ei){return Kt.conn.StatusTypeID=ei}),C.YNc(37,Ae,2,2,"ion-select-option",4),C.qZA()(),C.TgZ(38,"ion-item")(39,"ion-label",1),C._uU(40,"Quantity Available"),C.qZA(),C.TgZ(41,"ion-input",5),C.NdJ("ngModelChange",function(ei){return Kt.conn.Quantity=ei}),C.qZA()(),C.TgZ(42,"ion-item")(43,"ion-label",1),C._uU(44,"Comment"),C.qZA(),C.TgZ(45,"ion-input",6),C.NdJ("ngModelChange",function(ei){return Kt.conn.Comments=ei}),C.qZA()(),C.TgZ(46,"ion-item")(47,"ion-label",1),C._uU(48,"Operators Reference"),C.qZA(),C.TgZ(49,"ion-input",7),C.NdJ("ngModelChange",function(ei){return Kt.conn.Reference=ei}),C.qZA()()(),C.TgZ(50,"ion-footer")(51,"ion-toolbar")(52,"ion-buttons",8)(53,"ion-button",9),C.NdJ("click",function(){return Kt.cancel()}),C._UZ(54,"ion-icon",10),C._uU(55," Cancel "),C.qZA()(),C.TgZ(56,"ion-buttons",11)(57,"ion-button",12),C.NdJ("click",function(){return Kt.save()}),C._uU(58," OK "),C._UZ(59,"ion-icon",13),C.qZA()()()()),2&Pt&&(C.xp6(3),C.Oqu(Kt.isAddMode?"Add Equipment":"Edit Equipment"),C.xp6(7),C.Q6J("ngModel",Kt.conn.ConnectionTypeID),C.xp6(3),C.Q6J("ngForOf",Kt.connectionTypes),C.xp6(4),C.Q6J("ngModel",Kt.conn.CurrentTypeID),C.xp6(3),C.Q6J("ngForOf",Kt.currentTypes),C.xp6(4),C.Q6J("ngModel",Kt.conn.PowerKW),C.xp6(4),C.Q6J("ngModel",Kt.conn.Amps),C.xp6(4),C.Q6J("ngModel",Kt.conn.Voltage),C.xp6(4),C.Q6J("ngModel",Kt.conn.StatusTypeID),C.xp6(),C.Q6J("ngForOf",Kt.statusTypes),C.xp6(4),C.Q6J("ngModel",Kt.conn.Quantity),C.xp6(4),C.Q6J("ngModel",Kt.conn.Comments),C.xp6(4),C.Q6J("ngModel",Kt.conn.Reference))},dependencies:[Te.sg,Me.YG,Me.Sm,Me.W2,Me.fr,Me.Gu,Me.gu,Me.pK,Me.Ie,Me.Q$,Me.t9,Me.n0,Me.wd,Me.sr,Me.as,Me.QI,Me.j9,oe.JJ,oe.On]})}return Ft})();var Ue=function(Ft){return Ft[Ft.Unknown=0]="Unknown",Ft[Ft.CurrentlyAvailable=10]="CurrentlyAvailable",Ft[Ft.CurrentlyInUse=20]="CurrentlyInUse",Ft[Ft.TemporarilyUnavailable=30]="TemporarilyUnavailable",Ft[Ft.Operational=50]="Operational",Ft[Ft.PartlyOperational=75]="PartlyOperational",Ft[Ft.NotOperational=100]="NotOperational",Ft[Ft.PlannedForFutureDate=150]="PlannedForFutureDate",Ft[Ft.RemovedDecomissioned=200]="RemovedDecomissioned",Ft}(Ue||{}),ct=function(Ft){return Ft[Ft.UnknownOperator=1]="UnknownOperator",Ft[Ft.SiteOwner=45]="SiteOwner",Ft}(ct||{}),me=P(8696),Fe=P(1163),De=P(6086);function ze(Ft,Un){1&Ft&&C._UZ(0,"ion-icon",13)}function Ke(Ft,Un){1&Ft&&C._UZ(0,"ion-icon",13)}function Ht(Ft,Un){1&Ft&&C._UZ(0,"ion-icon",13)}function dn(Ft,Un){if(1&Ft&&(C.TgZ(0,"ion-select-option",27),C._uU(1),C.qZA()),2&Ft){const Ve=Un.$implicit;C.Q6J("value",Ve.ID),C.xp6(),C.Oqu(Ve.Title)}}function _n(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"app-poi-location-editor",14,15),C.NdJ("latitudeChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Latitude=Kt)})("longitudeChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Longitude=Kt)})("onUseSuggestedAddress",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.useSuggestedAddress(Kt))}),C.qZA(),C.TgZ(3,"ion-list")(4,"ion-item")(5,"ion-label",16),C._uU(6,"Location Name"),C.qZA(),C.TgZ(7,"ion-input",17),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Title=Kt)}),C.qZA()(),C.TgZ(8,"ion-item")(9,"ion-label",16),C._uU(10,"Address Line 1"),C.qZA(),C.TgZ(11,"ion-input",18),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.AddressLine1=Kt)}),C.qZA()(),C.TgZ(12,"ion-item")(13,"ion-label",16),C._uU(14,"Address Line 2"),C.qZA(),C.TgZ(15,"ion-input",19),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.AddressLine2=Kt)}),C.qZA()(),C.TgZ(16,"ion-item")(17,"ion-label",16),C._uU(18,"Town"),C.qZA(),C.TgZ(19,"ion-input",20),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Town=Kt)}),C.qZA()(),C.TgZ(20,"ion-item")(21,"ion-label",16),C._uU(22,"State or Province"),C.qZA(),C.TgZ(23,"ion-input",21),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.StateOrProvince=Kt)}),C.qZA()(),C.TgZ(24,"ion-item")(25,"ion-label",16),C._uU(26,"Postal Code"),C.qZA(),C.TgZ(27,"ion-input",22),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Postcode=Kt)}),C.qZA()(),C.TgZ(28,"ion-item")(29,"ion-label",16),C._uU(30,"Country"),C.qZA(),C.TgZ(31,"ion-select",23),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.CountryID=Kt)})("ionChange",function(){C.CHM(Ve);const Kt=C.oxw(2);return C.KtG(Kt.onCountryChange())}),C.YNc(32,dn,2,2,"ion-select-option",24),C.qZA()(),C.TgZ(33,"ion-item")(34,"ion-input",25),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Latitude=Kt)}),C.qZA()(),C.TgZ(35,"ion-item")(36,"ion-input",26),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.AddressInfo.Longitude=Kt)}),C.qZA()()(),C.BQk()}if(2&Ft){const Ve=C.oxw(2);C.xp6(),C.Q6J("latitude",Ve.item.AddressInfo.Latitude)("longitude",Ve.item.AddressInfo.Longitude),C.xp6(6),C.Q6J("ngModel",Ve.item.AddressInfo.Title),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.AddressLine1),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.AddressLine2),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.Town),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.StateOrProvince),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.Postcode),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.CountryID),C.xp6(),C.Q6J("ngForOf",Ve.countries),C.xp6(2),C.Q6J("ngModel",Ve.item.AddressInfo.Latitude),C.xp6(2),C.Q6J("ngModel",Ve.item.AddressInfo.Longitude)}}function Ut(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"h3"),C._uU(2,"Locations Nearby"),C.qZA(),C.TgZ(3,"p")(4,"strong"),C._uU(5,"The following locations already exist nearby."),C.qZA()(),C.TgZ(6,"div",28)(7,"p"),C._uU(8,"Ensure you are not adding a duplicate site unless it is for different equipment from another network operator."),C.qZA(),C.TgZ(9,"p"),C._uU(10,"You can edit any of these listings if required instead:"),C.qZA()(),C.TgZ(11,"app-poi-list",29),C.NdJ("onEdit",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.editPOI(Kt))}),C.qZA(),C.BQk()}if(2&Ft){const Ve=C.oxw(2);C.xp6(11),C.Q6J("poiList",Ve.nearbySites)("enableEditOption",!0)}}function We(Ft,Un){if(1&Ft&&(C.ynx(0),C.YNc(1,_n,37,12,"ng-container",9)(2,Ut,12,2,"ng-container",9),C.BQk()),2&Ft){const Ve=C.oxw();C.xp6(),C.Q6J("ngIf","location"==Ve.step),C.xp6(),C.Q6J("ngIf","poi-nearby"==Ve.step)}}function Ne(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"p"),C._uU(2,"Copied the equipment configuration from:"),C.qZA(),C.TgZ(3,"ion-item")(4,"ion-label"),C._uU(5),C._UZ(6,"br"),C._uU(7),C._UZ(8,"br"),C._uU(9),C._UZ(10,"br"),C._uU(11),C._UZ(12,"br"),C._uU(13),C.qZA(),C.TgZ(14,"ion-button",31),C.NdJ("click",function(){C.CHM(Ve);const Kt=C.oxw(5);return C.KtG(Kt.changeTemplatePOI())}),C._uU(15,"Change.."),C.qZA()(),C.BQk()}if(2&Ft){const Ve=C.oxw(5);C.xp6(5),C.hij(" ",Ve.selectedTemplatePOI.AddressInfo.Title," "),C.xp6(2),C.hij(" ",Ve.selectedTemplatePOI.AddressInfo.AddressLine1," "),C.xp6(2),C.hij(" ",null==Ve.selectedTemplatePOI.Connections[0].ConnectionType?null:Ve.selectedTemplatePOI.Connections[0].ConnectionType.Title," "),C.xp6(2),C.hij(" ",Ve.selectedTemplatePOI.Connections[0].PowerKW," "),C.xp6(2),C.hij(" ",Ve.selectedTemplatePOI.DateCreated," ")}}function ke(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"h4"),C._uU(2,"Similar Sites"),C.qZA(),C.TgZ(3,"app-poi-list",32),C.NdJ("onCopy",function(Kt){C.CHM(Ve);const wn=C.oxw(6);return C.KtG(wn.useTemplatePOI(Kt))}),C.qZA(),C.BQk()}if(2&Ft){const Ve=C.oxw(6);C.xp6(3),C.Q6J("enableCopyOption",!0)("poiList",Ve.templateSites)}}function it(Ft,Un){1&Ft&&(C.ynx(0),C.TgZ(1,"p"),C._uU(2," There are no suggested sites to copy for this network operator. "),C.qZA(),C.BQk())}function Qt(Ft,Un){if(1&Ft&&(C.ynx(0),C.YNc(1,ke,4,2,"ng-container",9)(2,it,3,0,"ng-container",9),C.BQk()),2&Ft){const Ve=C.oxw(5);C.xp6(),C.Q6J("ngIf",Ve.templateSites.length>0),C.xp6(),C.Q6J("ngIf",0==Ve.templateSites.length)}}function mt(Ft,Un){if(1&Ft&&(C.ynx(0),C.YNc(1,Ne,16,5,"ng-container",9)(2,Qt,3,2,"ng-container",9),C.BQk()),2&Ft){const Ve=C.oxw(4);C.xp6(),C.Q6J("ngIf",Ve.selectedTemplatePOI),C.xp6(),C.Q6J("ngIf",!Ve.selectedTemplatePOI)}}function an(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"p",28),C._uU(2,"You can copy the equipment settings from other sites operated by the same network operator or choose 'Next' to skip this step: "),C.qZA(),C.TgZ(3,"app-operator-lookup",30),C.NdJ("operatorChanged",function(Kt){C.CHM(Ve);const wn=C.oxw(3);return C.KtG(wn.onOperatorChange(Kt))}),C.qZA(),C.YNc(4,mt,3,2,"ng-container",9),C.BQk()}if(2&Ft){const Ve=C.oxw(3);C.xp6(3),C.Q6J("operatorId",Ve.item.OperatorID),C.xp6(),C.Q6J("ngIf",Ve.item.AddressInfo.CountryID&&Ve.item.OperatorID)}}function tt(Ft,Un){if(1&Ft&&(C.ynx(0),C.YNc(1,an,5,2,"ng-container",9),C.BQk()),2&Ft){const Ve=C.oxw(2);C.xp6(),C.Q6J("ngIf",!Ve.skipPOICopy)}}function pt(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.TgZ(1,"app-operator-lookup",33),C.NdJ("operatorChanged",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.onOperatorChange(Kt))}),C.qZA(),C.TgZ(2,"ion-item")(3,"ion-input",34),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.item.NumberOfPoints=Kt)}),C.qZA()(),C.TgZ(4,"h4"),C._uU(5,"Equipment"),C.qZA(),C.TgZ(6,"ion-button",35),C.NdJ("click",function(){C.CHM(Ve);const Kt=C.oxw(2);return C.KtG(Kt.addConnection())}),C._UZ(7,"ion-icon",36),C.qZA(),C.TgZ(8,"app-equipment-details",37),C.NdJ("onEdit",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.editConnection(Kt))})("onDelete",function(Kt){C.CHM(Ve);const wn=C.oxw(2);return C.KtG(wn.deleteConnection(Kt))}),C.qZA(),C.BQk()}if(2&Ft){const Ve=C.oxw(2);C.xp6(),C.Q6J("operatorId",Ve.item.OperatorID)("useFilteredOperators",!1),C.xp6(2),C.Q6J("ngModel",Ve.item.NumberOfPoints),C.xp6(5),C.Q6J("item",Ve.item)("enableEdit",!0)}}function Xt(Ft,Un){if(1&Ft&&(C.ynx(0),C.YNc(1,tt,2,1,"ng-container",9)(2,pt,9,5,"ng-container",9),C.BQk()),2&Ft){const Ve=C.oxw();C.xp6(),C.Q6J("ngIf","copy-equipment"==Ve.step),C.xp6(),C.Q6J("ngIf","edit-equipment"==Ve.step)}}function bn(Ft,Un){if(1&Ft&&(C.TgZ(0,"p",44)(1,"strong"),C._uU(2,"Your changes cannot be saved until the following issues are resolved:"),C.qZA(),C.TgZ(3,"ion-label",45),C._uU(4),C.qZA()()),2&Ft){const Ve=C.oxw(2);C.xp6(4),C.hij(" ",Ve.validationMsg,"")}}function Cn(Ft,Un){if(1&Ft&&(C.TgZ(0,"ion-select-option",27),C._uU(1),C.qZA()),2&Ft){const Ve=Un.$implicit;C.Q6J("value",Ve.ID),C.xp6(),C.Oqu(Ve.Title)}}function It(Ft,Un){if(1&Ft&&(C.TgZ(0,"ion-select-option",27),C._uU(1),C.qZA()),2&Ft){const Ve=Un.$implicit;C.Q6J("value",Ve.ID),C.xp6(),C.Oqu(Ve.Title)}}function pe(Ft,Un){if(1&Ft){const Ve=C.EpF();C.ynx(0),C.YNc(1,bn,5,1,"p",38),C.TgZ(2,"p"),C._uU(3,"Please provide any other facts related to this site. Additional comments (your charging experiences etc) can be added as check-in comments once the site is listed."),C.qZA(),C.TgZ(4,"ion-item")(5,"ion-label",16),C._uU(6,"Operational Status (All Equipment))"),C.qZA(),C.TgZ(7,"ion-select",39),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.StatusTypeID=Kt)}),C.YNc(8,Cn,2,2,"ion-select-option",24),C.qZA()(),C.TgZ(9,"ion-item")(10,"ion-label",16),C._uU(11,"Usage Type"),C.qZA(),C.TgZ(12,"ion-select",39),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.UsageTypeID=Kt)}),C.YNc(13,It,2,2,"ion-select-option",24),C.qZA()(),C.TgZ(14,"ion-item")(15,"ion-label",16),C._uU(16,"Usage Cost"),C.qZA(),C.TgZ(17,"ion-input",21),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.UsageCost=Kt)}),C.qZA()(),C.TgZ(18,"ion-item")(19,"ion-label",16),C._uU(20,"General Comments"),C.qZA(),C.TgZ(21,"ion-input",40),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.GeneralComments=Kt)}),C.qZA()(),C.TgZ(22,"ion-item")(23,"ion-label",16),C._uU(24,"Main Telephone Number "),C.qZA(),C.TgZ(25,"ion-input",41),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.AddressInfo.ContactTelephone1=Kt)}),C.qZA()(),C.TgZ(26,"ion-item")(27,"ion-label",16),C._uU(28,"Other Telephone Number "),C.qZA(),C.TgZ(29,"ion-input",41),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.AddressInfo.ContactTelephone2=Kt)}),C.qZA()(),C.TgZ(30,"ion-item")(31,"ion-label",16),C._uU(32,"Access Comments"),C.qZA(),C.TgZ(33,"ion-input",42),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.AddressInfo.AccessComments=Kt)}),C.qZA()(),C.TgZ(34,"ion-item")(35,"ion-label",16),C._uU(36,"Related Website"),C.qZA(),C.TgZ(37,"ion-input",43),C.NdJ("ngModelChange",function(Kt){C.CHM(Ve);const wn=C.oxw();return C.KtG(wn.item.AddressInfo.RelatedURL=Kt)}),C.qZA()(),C.BQk()}if(2&Ft){const Ve=C.oxw();C.xp6(),C.Q6J("ngIf",Ve.validationMsg),C.xp6(6),C.Q6J("ngModel",Ve.item.StatusTypeID),C.xp6(),C.Q6J("ngForOf",Ve.statusTypes),C.xp6(4),C.Q6J("ngModel",Ve.item.UsageTypeID),C.xp6(),C.Q6J("ngForOf",Ve.usageTypes),C.xp6(4),C.Q6J("ngModel",Ve.item.UsageCost),C.xp6(4),C.Q6J("ngModel",Ve.item.GeneralComments),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.ContactTelephone1),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.ContactTelephone2),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.AccessComments),C.xp6(4),C.Q6J("ngModel",Ve.item.AddressInfo.RelatedURL)}}function lt(Ft,Un){if(1&Ft){const Ve=C.EpF();C.TgZ(0,"ion-button",1),C.NdJ("click",function(){C.CHM(Ve);const Kt=C.oxw();return C.KtG(Kt.previous())}),C._uU(1," Previous "),C._UZ(2,"ion-icon",46),C.qZA()}}function Zt(Ft,Un){if(1&Ft){const Ve=C.EpF();C.TgZ(0,"ion-button",1),C.NdJ("click",function(){C.CHM(Ve);const Kt=C.oxw();return C.KtG(Kt.next())}),C._uU(1," Next "),C._UZ(2,"ion-icon",47),C.qZA()}}function hn(Ft,Un){if(1&Ft){const Ve=C.EpF();C.TgZ(0,"ion-button",48),C.NdJ("click",function(){C.CHM(Ve);const Kt=C.oxw();return C.KtG(Kt.save())}),C._uU(1," Submit "),C._UZ(2,"ion-icon",49),C.qZA()}}let Yt=(()=>{class Ft{appManager;modalController;poiManager;mapping;loadingController;alertController;id;item;step;selectedTab;startPos;useFilteredConnectionTypes=!0;templateSites=[];nearbySites=[];selectedTemplatePOI=null;suggestedAddress=null;suggestedAddressAttribution=null;isNonDuplicateConfirmed=!1;skipPOICopy=!1;validationMsg=null;loading;editorMap;get countries(){return this.appManager.referenceDataManager.getCountries()}get usageTypes(){return this.appManager.referenceDataManager.getUsageTypes()}get statusTypes(){return this.appManager.referenceDataManager.getStatusTypes().filter(Ve=>1==Ve.IsUserSelectable)}get isAddMode(){return this.item.ID<=0}constructor(Ve,Pt,Kt,wn,ei,di){this.appManager=Ve,this.modalController=Pt,this.poiManager=Kt,this.mapping=wn,this.loadingController=ei,this.alertController=di,this.initNewItem()}initNewItem(){this.item={ID:-1,DataProviderID:1,DataProvidersReference:null,OperatorsReference:null,OperatorID:1,UsageCost:null,UsageTypeID:4,NumberOfPoints:1,GeneralComments:null,DatePlanned:null,StatusTypeID:50,SubmissionStatusTypeID:null,Connections:[],MetadataValues:[],AddressInfo:{ID:-1,CountryID:18,Title:"",AddressLine1:"",Latitude:0,Longitude:0}},this.step="location",this.selectedTab="location"}get isReadyToSubmit(){return this.validate().isValid&&"info"==this.step}ngOnInit(){}presentLoadingUI(){var Ve=this;return(0,h.Z)(function*(){Ve.loading=yield Ve.loadingController.create({message:"Please Wait.."}),yield Ve.loading.present()})()}dismissLoadingUI(){var Ve=this;return(0,h.Z)(function*(){Ve.loading&&(yield Ve.loading.dismiss())})()}ionViewDidEnter(){if(null!=this.id)this.editExistingPOI(this.id);else{let Ve=localStorage.getItem("_editor-operatorid");Ve&&(this.item.OperatorID=parseInt(Ve,10)),this.startPos?(this.item.AddressInfo.Latitude=this.startPos.latitude,this.item.AddressInfo.Longitude=this.startPos.longitude):this.mapping&&this.mapping.getMapCenter().subscribe(Pt=>{Pt&&(this.item.AddressInfo.Latitude=Pt.coords.latitude,this.item.AddressInfo.Longitude=Pt.coords.longitude)})}this.refreshFilteredReferenceData()}previous(){var Ve=this;return(0,h.Z)(function*(){switch(Ve.step){case"info":Ve.step="edit-equipment";break;case"edit-equipment":Ve.step=Ve.isAddMode?"copy-equipment":"location";break;case"copy-equipment":case"poi-nearby":Ve.step="location"}yield Ve.initCurrentStep(!1)})()}next(){var Ve=this;return(0,h.Z)(function*(){if("poi-nearby"==Ve.step&&Ve.nearbySites.length>0&&!Ve.isNonDuplicateConfirmed)return void(yield Ve.alertController.create({header:"Confirm",message:"Please confirm you are not adding a duplicate site.",buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:wn=>{}},{text:"Confirm",handler:()=>{Ve.isNonDuplicateConfirmed=!0,Ve.next()}}]})).present();const Pt=Ve.validate(Ve.step);if(Pt.isValid){switch(Ve.step){case"location":Ve.step=Ve.isAddMode?"poi-nearby":"edit-equipment";break;case"poi-nearby":Ve.step=Ve.isAddMode?"copy-equipment":"edit-equipment";break;case"copy-equipment":Ve.step="edit-equipment";break;case"edit-equipment":Ve.step="info"}yield Ve.initCurrentStep(!0)}else(yield Ve.alertController.create({message:Pt.msg})).present()})()}initCurrentStep(Ve){var Pt=this;return(0,h.Z)(function*(){"poi-nearby"==Pt.step?(Pt.selectedTab="location",0==(yield Pt.refreshNearbySites())&&(Ve?yield Pt.next():yield Pt.previous())):"location"==Pt.step?Pt.selectedTab="location":"copy-equipment"==Pt.step?(Pt.selectedTab="equipment",yield Pt.refreshTemplateSites()):"edit-equipment"==Pt.step?Pt.selectedTab="equipment":"info"==Pt.step&&(Pt.selectedTab="info")})()}onCountryChange(){var Ve=this;return(0,h.Z)(function*(){Ve.refreshFilteredReferenceData()})()}onOperatorChange(Ve=null){var Pt=this;return(0,h.Z)(function*(){null!=Ve&&Pt.item.OperatorID!=Ve.ID&&(Pt.item.OperatorID=Ve.ID,localStorage.setItem("_editor-operatorid",Pt.item.OperatorID.toString()),yield Pt.refreshTemplateSites())})()}useSuggestedAddress(Ve=null){Ve&&(this.suggestedAddress=Ve.suggestedAddress,this.suggestedAddressAttribution=Ve.suggestedAddressAttribution),Object.assign(this.item.AddressInfo,this.suggestedAddress),this.suggestedAddressAttribution&&(this.item.MetadataValues.find(Pt=>4==Pt.MetadataFieldID)||this.item.MetadataValues.push({ID:-1,MetadataFieldID:4,ItemValue:this.suggestedAddressAttribution,MetadataFieldOptionID:null,MetadataFieldOption:null}))}editConnection(Ve){var Pt=this;return(0,h.Z)(function*(){const Kt=Pt.item.Connections.find(di=>di.ID==Ve.ID),wn=Object.assign({},Kt),ei=yield Pt.modalController.create({component:ye,componentProps:{conn:wn}});return ei.onWillDismiss().then(di=>{di&&di.data&&di.data.item&&Pt.updateConnection(di.data.item)}),yield ei.present()})()}deleteConnection(Ve){var Pt=this;return(0,h.Z)(function*(){const Kt=Pt.item.Connections.find(ei=>ei.ID==Ve.ID);(yield Pt.alertController.create({header:"Confirm Delete",message:"Are you sure you want to delete this connection information?",buttons:[{text:"No",role:"cancel",cssClass:"secondary",handler:()=>{}},{text:"Yes",handler:()=>{Pt.item.Connections=Pt.item.Connections.filter(ei=>ei.ID!=Kt.ID),Pt.appManager.referenceDataManager.hydrateCompactPOI(Pt.item,!0)}}]})).present()})()}addConnection(){var Ve=this;return(0,h.Z)(function*(){const Pt={ID:-l.c.getRandomInt(1e4),ConnectionTypeID:null,StatusTypeID:50,PowerKW:null,Quantity:1},Kt=yield Ve.modalController.create({component:ye,componentProps:{conn:Pt}});return Kt.onWillDismiss().then(wn=>{wn&&wn.data&&wn.data.item&&Ve.updateConnection(wn.data.item)}),yield Kt.present()})()}refreshFilteredReferenceData(){this.appManager.referenceDataManager.refreshFilteredReferenceData(this.appManager.api,{CountryIds:[this.item.AddressInfo.CountryID]})}updateConnection(Ve){if(Ve){let Pt=this.item.Connections.find(Kt=>Kt.ID==Ve.ID);Pt?Object.assign(Pt,Ve):this.item.Connections.push(Ve)}this.appManager.referenceDataManager.hydrateCompactPOI(this.item,!0)}validate(Ve="all"){let Pt=null;return("all"==Ve||"location"==Ve)&&((!this.item.AddressInfo.Latitude||!this.item.AddressInfo.Longitude)&&(Pt="Location is required"),""==this.item.AddressInfo.Title&&(Pt="A location title is required"),!this.item.AddressInfo.AddressLine1&&!this.item.AddressInfo.AddressLine2&&(Pt="An approximate address is required."),this.item.AddressInfo.CountryID||(Pt="A country selection is required"),(!this.item.AddressInfo.Latitude||!this.item.AddressInfo.Longitude)&&(Pt="A location latitude and longitude is required")),("all"==Ve||"poi-nearby"==Ve)&&this.nearbySites.length>0&&!this.isNonDuplicateConfirmed&&(Pt="Please confirm that the site is not a duplicate"),("all"==Ve||"equipment"==Ve)&&(this.item.OperatorID||(Pt="Please confirm the charging network or equipment operator."),0==this.item.Connections.length&&(Pt="Equipment information is required")),Pt?(this.validationMsg=Pt,{isValid:!1,msg:Pt}):(this.validationMsg=null,{isValid:!0,msg:null})}save(){var Ve=this;return(0,h.Z)(function*(){let Pt=Ve.validate();if(Pt.isValid){yield Ve.presentLoadingUI();try{yield Ve.appManager.submitPOI(Ve.item),yield Ve.dismissLoadingUI(),Ve.appManager.showToastNotification("You submission will be reviewed (if required) and published shortly."),Ve.modalController.dismiss()}catch(Kt){yield Ve.dismissLoadingUI(),Kt.error&&alert("Sorry, your submission could not be completed at this time. Please try again later.")}}else alert(Pt.msg)})()}cancel(){var Ve=this;return(0,h.Z)(function*(){Ve.modalController.dismiss()})()}refreshTemplateSites(){var Ve=this;return(0,h.Z)(function*(){if(Ve.item.AddressInfo.CountryID&&Ve.item.OperatorID){yield Ve.presentLoadingUI(),Ve.templateSites=[];let Pt=new te.be;Pt.countryIdList=[Ve.item.AddressInfo.CountryID],Pt.minPowerKW=1,Pt.operatorIdList=[Ve.item.OperatorID],Pt.maxResults=10;let Kt=yield Ve.poiManager.fetchPOIList(Pt);Kt.sort((wn,ei)=>new Date(wn.DateCreated).getTime()-new Date(ei.DateCreated).getTime()),Ve.templateSites=Kt,Ve.dismissLoadingUI()}})()}refreshNearbySites(){var Ve=this;return(0,h.Z)(function*(){if(Ve.item.AddressInfo.Latitude&&Ve.item.AddressInfo.Longitude){yield Ve.presentLoadingUI(),Ve.nearbySites=[];let Pt=new te.be;Pt.latitude=Ve.item.AddressInfo.Latitude,Pt.longitude=Ve.item.AddressInfo.Longitude,Pt.distance=5,Pt.distanceUnit="km",Pt.maxResults=10;let Kt=yield Ve.poiManager.fetchPOIList(Pt);return Kt.sort((wn,ei)=>wn.Distance-ei.Distance),Ve.nearbySites=Kt,Ve.dismissLoadingUI(),Kt.length}return 0})()}confirmNonDuplicate(){this.isNonDuplicateConfirmed=!0,this.next()}changeTemplatePOI(){this.selectedTemplatePOI=null}editPOI(Ve){this.editExistingPOI(Ve.ID)}editExistingPOI(Ve){var Pt=this;return(0,h.Z)(function*(){Pt.skipPOICopy=!0,Pt.isNonDuplicateConfirmed=!0,yield Pt.presentLoadingUI(),Pt.poiManager.getPOIById(Ve,!0,!0).then(Kt=>{Pt.item=Object.assign({},Kt),null==Pt.item.OperatorID&&(Pt.item.OperatorID=ct.UnknownOperator),Pt.refreshFilteredReferenceData(),Pt.dismissLoadingUI()})})()}useTemplatePOI(Ve){this.selectedTemplatePOI=Ve,Object.assign(this.item.Connections,Ve.Connections);for(let Pt of this.item.Connections)Pt.ID=-l.c.getRandomInt(1e4),Pt.Reference=null,Pt.Comments=null,Pt.StatusTypeID=Ue.Operational;this.item.UsageCost=Ve.UsageCost,this.item.UsageTypeID=Ve.UsageTypeID,this.appManager.referenceDataManager.hydrateCompactPOI(this.item)}skipCopyingPOI(){this.skipPOICopy=!0}static \u0275fac=function(Pt){return new(Pt||Ft)(C.Y36(m.c),C.Y36(Me.IN),C.Y36(B.R),C.Y36(Y.v),C.Y36(Me.HT),C.Y36(Me.Br))};static \u0275cmp=C.Xpm({type:Ft,selectors:[["app-poi-editor"]],viewQuery:function(Pt,Kt){if(1&Pt&&C.Gf(nt,5),2&Pt){let wn;C.iGM(wn=C.CRH())&&(Kt.editorMap=wn.first)}},decls:33,vars:14,consts:[["slot","end"],[3,"click"],["name","close","slot","start"],[1,"ion-padding"],[3,"ngModel"],["value","location","layout","icon-start",3,"disabled"],["name","caret-forward",4,"ngIf"],["value","equipment","layout","icon-start",3,"disabled"],["value","info","layout","icon-start",3,"disabled"],[4,"ngIf"],["slot","start"],[3,"click",4,"ngIf"],["color","success",3,"click",4,"ngIf"],["name","caret-forward"],[3,"latitude","longitude","latitudeChange","longitudeChange","onUseSuggestedAddress"],["editorMap",""],["position","floating"],["type","text","autocapitalize","words","placeholder","A title for this location",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","The nearest street address",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","Optional",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","Town or City",3,"ngModel","ngModelChange"],["type","text",3,"ngModel","ngModelChange"],["type","text","autocapitalize","words","placeholder","Optional Postal Code",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange","ionChange"],[3,"value",4,"ngFor","ngForOf"],["label","Latitude","labelPlacement","floating","type","number","placeholder","Latitude (if entering manually)",3,"ngModel","ngModelChange"],["label","Longitude","labelPlacement","floating","type","number","placeholder","Longitude (if entering manually)",3,"ngModel","ngModelChange"],[3,"value"],[1,"instruction"],[3,"poiList","enableEditOption","onEdit"],[3,"operatorId","operatorChanged"],["slot","start","size","small",3,"click"],[3,"enableCopyOption","poiList","onCopy"],[3,"operatorId","useFilteredOperators","operatorChanged"],["label","Number of Stations or Parking Bays","labelPlacement","floating","min","1","type","number",3,"ngModel","ngModelChange"],["size","small",3,"click"],["name","add","slot","icon-only"],[3,"item","enableEdit","onEdit","onDelete"],["color","warning",4,"ngIf"],[3,"ngModel","ngModelChange"],["type","text","autocapitalize","sentences",3,"ngModel","ngModelChange"],["type","tel","placeholder","",3,"ngModel","ngModelChange"],["type","text","autocapitalize","sentences","placeholder","Instructions for access or tips for finding charging location",3,"ngModel","ngModelChange"],["type","url","placeholder","Website related to this site",3,"ngModel","ngModelChange"],["color","warning"],["color","danger"],["name","caret-back","slot","start"],["name","caret-forward","slot","end"],["color","success",3,"click"],["name","send","slot","end"]],template:function(Pt,Kt){1&Pt&&(C.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C._uU(3),C.qZA(),C.TgZ(4,"ion-buttons",0)(5,"ion-button",1),C.NdJ("click",function(){return Kt.cancel()}),C._UZ(6,"ion-icon",2),C._uU(7," Cancel "),C.qZA()()()(),C.TgZ(8,"ion-content",3),C.ynx(9),C.TgZ(10,"ion-segment",4)(11,"ion-segment-button",5),C.YNc(12,ze,1,0,"ion-icon",6),C.TgZ(13,"ion-label"),C._uU(14,"Location"),C.qZA()(),C.TgZ(15,"ion-segment-button",7),C.YNc(16,Ke,1,0,"ion-icon",6),C.TgZ(17,"ion-label"),C._uU(18,"Equipment"),C.qZA()(),C.TgZ(19,"ion-segment-button",8),C.YNc(20,Ht,1,0,"ion-icon",6),C.TgZ(21,"ion-label"),C._uU(22,"Info"),C.qZA()()(),C.YNc(23,We,3,2,"ng-container",9)(24,Xt,3,2,"ng-container",9)(25,pe,38,11,"ng-container",9),C.BQk(),C.qZA(),C.TgZ(26,"ion-footer")(27,"ion-toolbar")(28,"ion-buttons",10),C.YNc(29,lt,3,0,"ion-button",11),C.qZA(),C.TgZ(30,"ion-buttons",0),C.YNc(31,Zt,3,0,"ion-button",11)(32,hn,3,0,"ion-button",12),C.qZA()()()),2&Pt&&(C.xp6(3),C.Oqu(Kt.isAddMode?"Add Location":"Edit Location"),C.xp6(7),C.Q6J("ngModel",Kt.selectedTab),C.xp6(),C.Q6J("disabled",!0),C.xp6(),C.Q6J("ngIf","location"==Kt.selectedTab),C.xp6(3),C.Q6J("disabled",!0),C.xp6(),C.Q6J("ngIf","equipment"==Kt.selectedTab),C.xp6(3),C.Q6J("disabled",!0),C.xp6(),C.Q6J("ngIf","info"==Kt.selectedTab),C.xp6(3),C.Q6J("ngIf","location"==Kt.selectedTab),C.xp6(),C.Q6J("ngIf","equipment"==Kt.selectedTab),C.xp6(),C.Q6J("ngIf","info"==Kt.selectedTab),C.xp6(4),C.Q6J("ngIf","location"!=Kt.step),C.xp6(2),C.Q6J("ngIf",!Kt.isReadyToSubmit&&"info"!=Kt.step),C.xp6(),C.Q6J("ngIf",Kt.isReadyToSubmit))},dependencies:[Te.sg,Te.O5,oe.JJ,oe.On,Me.YG,Me.Sm,Me.W2,Me.fr,Me.Gu,Me.gu,Me.pK,Me.Ie,Me.Q$,Me.q_,Me.cJ,Me.GO,Me.t9,Me.n0,Me.wd,Me.sr,Me.as,Me.QI,Me.j9,Me.yf,me.o,Fe.B,nt,De.z],styles:['ul.breadcrumb[_ngcontent-%COMP%]{display:inline-flex;margin:0;padding:0}ul.breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-flex;margin-right:6px;color:var(--ion-color-light-shade);font-size:10px}ul.breadcrumb[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{color:var(--ion-color-dark-shade)}ul.breadcrumb[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:before{content:">";padding-right:4px}']})}return Ft})()},3247:(Bn,Ct,P)=>{"use strict";P.d(Ct,{u:()=>ct});var h=P(9212),m=P(451),te=P(3052),l=P(989),B=P(9127),Y=P(7430),C=P(9862);let ie=(()=>{class X{http;journeyManager;constructor(me,Fe){this.http=me,this.journeyManager=Fe}getDirections(me,Fe){return new Promise((De,ze)=>{(new google.maps.DirectionsService).route({origin:me,destination:Fe,travelMode:google.maps.TravelMode.DRIVING},(Ht,dn)=>{dn===google.maps.DirectionsStatus.OK?De(Ht):ze(dn)})})}analyseRoutes(me,Fe){const De=new Array;return me.routes.forEach(ze=>{const Ke=new Y.JJ;Ke.Title=""+De.length+1,Ke.JourneyRouteLegs=new Array,Ke.TotalDistanceKM=0,Ke.TotalDurationMinutes=0,Ke.TotalEnergykWh=0,ze.legs.forEach(Ht=>{const dn=Ht.duration.value,_n=Ht.distance.value/1e3,Ut=this.journeyManager.calculateEnergyConsumptionkWh(_n,0,null,Fe),We=new Y.eN;We.DistanceKM=_n,We.DurationMinutes=dn/60,We.EnergyConsumptionkWh=Ut,Ke.JourneyRouteLegs.push(We),Ke.TotalDistanceKM+=We.DistanceKM,Ke.TotalDurationMinutes+=We.DurationMinutes,Ke.TotalEnergykWh=We.EnergyConsumptionkWh}),De.push(Ke)}),De}static \u0275fac=function(Fe){return new(Fe||X)(h.LFG(C.eN),h.LFG(l.i))};static \u0275prov=h.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"})}return X})();var fe=P(1847),Pe=P(6814),K=P(6223),be=P(5460);function Te(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-item"),h._UZ(1,"ion-icon",12),h.TgZ(2,"ion-searchbar",13),h.NdJ("ngModelChange",function(De){h.CHM(me);const ze=h.oxw();return h.KtG(ze.routeStart=De)})("ionInput",function(De){h.CHM(me),h.oxw();const ze=h.MAs(18);return h.KtG(ze.getPlacesAutoComplete(De,"routeStart"))})("ionCancel",function(De){h.CHM(me);const ze=h.oxw();return h.KtG(ze.onPlaceSearchCancel(De))}),h.qZA()()}if(2&X){const me=h.oxw();h.xp6(2),h.Q6J("ngModel",me.routeStart)("debounce",500)}}function Me(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-item",14),h.NdJ("click",function(){h.CHM(me);const De=h.oxw();return h.KtG(De.clearRouteStart())}),h._UZ(1,"ion-icon",12),h.TgZ(2,"h2"),h._uU(3),h.qZA()()}if(2&X){h.oxw();const me=h.MAs(18);h.xp6(3),h.Oqu(null==me.selectedPlace?null:me.selectedPlace.name)}}function de(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-item"),h._UZ(1,"ion-icon",15),h.TgZ(2,"ion-searchbar",16),h.NdJ("ngModelChange",function(De){h.CHM(me);const ze=h.oxw();return h.KtG(ze.routeDestination=De)})("ionInput",function(De){h.CHM(me),h.oxw();const ze=h.MAs(20);return h.KtG(ze.getPlacesAutoComplete(De,"routeDestination"))})("ionCancel",function(De){h.CHM(me);const ze=h.oxw();return h.KtG(ze.onPlaceSearchCancel(De))}),h.qZA()()}if(2&X){const me=h.oxw();h.xp6(2),h.Q6J("ngModel",me.routeDestination)("debounce",500)}}function nt(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-item",14),h.NdJ("click",function(){h.CHM(me);const De=h.oxw();return h.KtG(De.clearRouteDestination())}),h._UZ(1,"ion-icon",15),h.TgZ(2,"h2"),h._uU(3),h.qZA()()}if(2&X){h.oxw();const me=h.MAs(20);h.xp6(3),h.Oqu(null==me.selectedPlace?null:me.selectedPlace.name)}}function Ce(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-button",14),h.NdJ("click",function(){h.CHM(me);const De=h.oxw();return h.KtG(De.clearRoute())}),h._UZ(1,"ion-icon",17),h._uU(2," Clear Route "),h.qZA()}}function oe(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-button",14),h.NdJ("click",function(){h.CHM(me);const De=h.oxw();return h.KtG(De.showSettings())}),h._uU(1," Show Settings "),h._UZ(2,"ion-icon",18),h.qZA()}}function xe(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"ion-button",14),h.NdJ("click",function(){h.CHM(me);const De=h.oxw();return h.KtG(De.hideSettings())}),h._uU(1," Hide Settings "),h._UZ(2,"ion-icon",18),h.qZA()}}function Ie(X,ve){1&X&&(h.TgZ(0,"p",19),h._UZ(1,"ion-spinner",19),h._uU(2," Calculating Route.. "),h.qZA())}function Ae(X,ve){if(1&X&&(h.TgZ(0,"ion-list")(1,"ion-list-header"),h._uU(2),h.ALo(3,"number"),h.ALo(4,"number"),h.qZA()()),2&X){const me=h.oxw();h.xp6(2),h.lnq(" Total Distance ",h.xi3(3,3,me.selectedJourneyRoute.TotalDistanceKM,"1.0-2")," km, ",me.formatDuration(me.selectedJourneyRoute.TotalDurationMinutes),", ",h.xi3(4,6,me.selectedJourneyRoute.TotalEnergykWh,"1.0-2")," kWh ")}}function ye(X,ve){if(1&X){const me=h.EpF();h.TgZ(0,"div")(1,"ion-list")(2,"ion-list-header"),h._UZ(3,"ion-icon",20),h._uU(4," Route Settings "),h.qZA(),h.TgZ(5,"ion-item")(6,"ion-label",21),h._uU(7),h.qZA(),h.TgZ(8,"ion-range",22),h.NdJ("ngModelChange",function(De){h.CHM(me);const ze=h.oxw();return h.KtG(ze.routeSearchDistance=De)}),h._UZ(9,"ion-icon",23)(10,"ion-icon",24),h.qZA()(),h.TgZ(11,"ion-item")(12,"ion-label",21),h._uU(13,"Energy Efficiency (kWh Per km)"),h.qZA(),h.TgZ(14,"ion-input",25),h.NdJ("ngModelChange",function(De){h.CHM(me);const ze=h.oxw();return h.KtG(ze.kWhPerKM=De)}),h.qZA()()()()}if(2&X){const me=h.oxw();h.xp6(7),h.hij("Search Distance (",me.routeSearchDistance,")"),h.xp6(),h.Q6J("ngModel",me.routeSearchDistance),h.xp6(6),h.Q6J("ngModel",me.kWhPerKM)}}let Ue=(()=>{class X{mapping;logging;directions;journeyManager;changeDetector;numberPipe;routeSearchDistance=5;journeyRoutes;selectedJourneyRoute;routePolyline;kWhPerKM;routeStartPlace;routeDestinationPlace;routeCalcInProgress=!1;advancedSettingsMode=!1;routeStart="";routeDestination="";constructor(me,Fe,De,ze,Ke,Ht){this.mapping=me,this.logging=Fe,this.directions=De,this.journeyManager=ze,this.changeDetector=Ke,this.numberPipe=Ht,this.kWhPerKM=.212}get isRouteSet(){return null!=this.routeStartPlace&&null!=this.routeDestinationPlace}showSettings(){this.advancedSettingsMode=!0}hideSettings(){this.advancedSettingsMode=!1}routeStartSelected(me){this.routeStartPlace=me,this.calculateRoute(),this.changeDetector.detectChanges()}routeDestinationSelected(me){this.routeDestinationPlace=me,this.calculateRoute(),this.changeDetector.detectChanges()}clearRouteStart(){this.routeStartPlace=null,this.changeDetector.detectChanges()}clearRouteDestination(){this.routeDestinationPlace=null,this.changeDetector.detectChanges()}clearRoute(){this.routeStartPlace=null,this.routeDestinationPlace=null,this.journeyManager.setRoutePolyline(null),this.mapping.clearPolyline()}formatDuration(me){if(me<=60)return this.numberPipe.transform(me,"1.0-2")+" mins";{const Fe=Math.round(me/60),De=Math.floor(me-60*Fe);return Fe+" hours "+(De>0?De+" mins":"")}}calculateRoute(){null!=this.routeStartPlace&&null!=this.routeDestinationPlace&&(this.logging.log("Fetching route directions.."),this.routeCalcInProgress=!0,this.directions.getDirections(this.routeStartPlace.Location.latitude+","+this.routeStartPlace.Location.longitude,this.routeDestinationPlace.Location.latitude+","+this.routeDestinationPlace.Location.longitude).then(me=>{if(null!=me.routes&&me.routes.length>0){this.logging.log("Got route directions, analysing.."),this.routePolyline=me.routes[0].overview_polyline;const Fe=me.routes[0].bounds.getSouthWest(),De=me.routes[0].bounds.getNorthEast(),ze=new te.wC(De.lat(),De.lng()),Ke=new te.wC(Fe.lat(),Fe.lng()),Ht=new te.LL(ze,Ke);this.journeyRoutes=this.directions.analyseRoutes(me,this.kWhPerKM),this.journeyRoutes.length>0&&(this.selectedJourneyRoute=this.journeyRoutes[0]),this.journeyManager.setRoutePolyline(this.routePolyline),this.mapping.renderPolyline(this.routePolyline),this.mapping.moveToMapBounds(Ht)}else this.logging.log("No route returned..");this.routeCalcInProgress=!1}))}static \u0275fac=function(Fe){return new(Fe||X)(h.Y36(fe.v),h.Y36(B.z),h.Y36(ie),h.Y36(l.i),h.Y36(h.sBO),h.Y36(Pe.JJ))};static \u0275cmp=h.Xpm({type:X,selectors:[["route-planner"]],decls:24,vars:10,consts:[[1,"route"],[1,"route-places"],["name","map","slot","start"],[4,"ngIf"],[3,"click",4,"ngIf"],["primary",""],["slot","secondary"],["slot","primary"],[3,"placeChanged"],["placeSearchRouteStart",""],["placeSearchRouteDestination",""],["class","ion-padding",4,"ngIf"],["name","ionic","item-left",""],["placeholder","Starting Point",3,"ngModel","debounce","ngModelChange","ionInput","ionCancel"],[3,"click"],["name","pin","item-left",""],["placeholder","Destination",3,"ngModel","debounce","ngModelChange","ionInput","ionCancel"],["name","close","slot","start"],["name","cog","slot","end"],[1,"ion-padding"],["name","cog"],["position","stacked"],["min","1","max","200","step","5","snaps","true","pin","true","light","",3,"ngModel","ngModelChange"],["slot","start","small","","name","map"],["slot","end","large","","name","map"],["type","number","min","0.1","max","1",3,"ngModel","ngModelChange"]],template:function(Fe,De){1&Fe&&(h.TgZ(0,"div",0)(1,"div",1)(2,"ion-list")(3,"ion-list-header"),h._UZ(4,"ion-icon",2),h.TgZ(5,"ion-label"),h._uU(6,"Plan Your Journey"),h.qZA()(),h.YNc(7,Te,3,2,"ion-item",3)(8,Me,4,1,"ion-item",4)(9,de,3,2,"ion-item",3)(10,nt,4,1,"ion-item",4),h.qZA(),h.TgZ(11,"ion-toolbar",5)(12,"ion-buttons",6),h.YNc(13,Ce,3,0,"ion-button",4),h.qZA(),h.TgZ(14,"ion-buttons",7),h.YNc(15,oe,3,0,"ion-button",4)(16,xe,3,0,"ion-button",4),h.qZA()()(),h.TgZ(17,"place-search",8,9),h.NdJ("placeChanged",function(Ke){return De.routeStartSelected(Ke)}),h.qZA(),h.TgZ(19,"place-search",8,10),h.NdJ("placeChanged",function(Ke){return De.routeDestinationSelected(Ke)}),h.qZA(),h.YNc(21,Ie,3,0,"p",11)(22,Ae,5,9,"ion-list",3)(23,ye,15,3,"div",3),h.qZA()),2&Fe&&(h.xp6(7),h.Q6J("ngIf",null==De.routeStartPlace),h.xp6(),h.Q6J("ngIf",null!=De.routeStartPlace),h.xp6(),h.Q6J("ngIf",null==De.routeDestinationPlace),h.xp6(),h.Q6J("ngIf",null!=De.routeDestinationPlace),h.xp6(3),h.Q6J("ngIf",De.isRouteSet),h.xp6(2),h.Q6J("ngIf",!De.advancedSettingsMode),h.xp6(),h.Q6J("ngIf",De.advancedSettingsMode),h.xp6(5),h.Q6J("ngIf",De.routeCalcInProgress),h.xp6(),h.Q6J("ngIf",null!=De.selectedJourneyRoute),h.xp6(),h.Q6J("ngIf",De.advancedSettingsMode))},dependencies:[Pe.O5,m.YG,m.Sm,m.gu,m.pK,m.Ie,m.Q$,m.q_,m.yh,m.I_,m.VI,m.PQ,m.sr,m.as,m.j9,m.yf,m.Uj,K.JJ,K.On,be.v,Pe.JJ],encapsulation:2})}return X})(),ct=(()=>{class X{modalController;hasNavbar=!1;constructor(me){this.modalController=me}close(){this.modalController.dismiss()}static \u0275fac=function(Fe){return new(Fe||X)(h.Y36(m.IN))};static \u0275cmp=h.Xpm({type:X,selectors:[["ng-component"]],decls:10,vars:0,consts:[["slot","end"],[3,"click"],["name","close","slot","end"],[1,"route-planner","ion-padding"]],template:function(Fe,De){1&Fe&&(h.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),h._uU(3," Route Planner "),h.qZA(),h.TgZ(4,"ion-buttons",0)(5,"ion-button",1),h.NdJ("click",function(){return De.close()}),h._UZ(6,"ion-icon",2),h._uU(7," Close "),h.qZA()()()(),h.TgZ(8,"ion-content",3),h._UZ(9,"route-planner"),h.qZA())},dependencies:[m.YG,m.Sm,m.W2,m.Gu,m.gu,m.wd,m.sr,Ue],encapsulation:2})}return X})()},4606:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{SearchPageModule:()=>bn});var h=P(5086),m=P(2618),te=P(6814),l=P(6223),B=P(451),Y=P(6800),C=P(5861),ie=P(553),fe=P(7777),Pe=P(4119),K=P(3247),be=P(9723),Te=P(3052),Me=P(4677),de=P(866),nt=P(9127),Ce=P(989),oe=P(1847),xe=P(4669),Ie=P(6470),Ae=P(5460),ye=P(2438),Ue=P(7394);class ct extends Ue.w0{constructor(It,pe){super()}schedule(It,pe=0){return this}}const X={setInterval(Cn,It,...pe){const{delegate:lt}=X;return lt?.setInterval?lt.setInterval(Cn,It,...pe):setInterval(Cn,It,...pe)},clearInterval(Cn){const{delegate:It}=X;return(It?.clearInterval||clearInterval)(Cn)},delegate:void 0};var ve=P(9039),Fe=P(4552);class De{constructor(It,pe=De.now){this.schedulerActionCtor=It,this.now=pe}schedule(It,pe=0,lt){return new this.schedulerActionCtor(this,It).schedule(lt,pe)}}De.now=Fe.l.now;const Ke=new class ze extends De{constructor(It,pe=De.now){super(It,pe),this.actions=[],this._active=!1}flush(It){const{actions:pe}=this;if(this._active)return void pe.push(It);let lt;this._active=!0;do{if(lt=It.execute(It.state,It.delay))break}while(It=pe.shift());if(this._active=!1,lt){for(;It=pe.shift();)It.unsubscribe();throw lt}}}(class me extends ct{constructor(It,pe){super(It,pe),this.scheduler=It,this.work=pe,this.pending=!1}schedule(It,pe=0){var lt;if(this.closed)return this;this.state=It;const Zt=this.id,hn=this.scheduler;return null!=Zt&&(this.id=this.recycleAsyncId(hn,Zt,pe)),this.pending=!0,this.delay=pe,this.id=null!==(lt=this.id)&&void 0!==lt?lt:this.requestAsyncId(hn,this.id,pe),this}requestAsyncId(It,pe,lt=0){return X.setInterval(It.flush.bind(It,this),lt)}recycleAsyncId(It,pe,lt=0){if(null!=lt&&this.delay===lt&&!1===this.pending)return pe;null!=pe&&X.clearInterval(pe)}execute(It,pe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const lt=this._execute(It,pe);if(lt)return lt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(It,pe){let Zt,lt=!1;try{this.work(It)}catch(hn){lt=!0,Zt=hn||new Error("Scheduled action threw falsy error")}if(lt)return this.unsubscribe(),Zt}unsubscribe(){if(!this.closed){const{id:It,scheduler:pe}=this,{actions:lt}=pe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ve.P)(lt,this),null!=It&&(this.id=this.recycleAsyncId(pe,It,null)),this.delay=null,super.unsubscribe()}}});var dn=P(9360),_n=P(8251);const Ne=(0,P(2726).fo)("Geolocation",{web:()=>P.e(579).then(P.bind(P,579)).then(Cn=>new Cn.GeolocationWeb)});var ke=P(9212),it=P(7346),Qt=P(5957);function mt(Cn,It){1&Cn&&ke._UZ(0,"ion-icon",13)}function an(Cn,It){1&Cn&&ke._UZ(0,"ion-spinner")}function tt(Cn,It){if(1&Cn){const pe=ke.EpF();ke.TgZ(0,"ion-button",3),ke.NdJ("click",function(){ke.CHM(pe);const Zt=ke.oxw();return ke.KtG(Zt.openSideView())}),ke._UZ(1,"ion-icon",14),ke.qZA()}}function pt(Cn,It){1&Cn&&(ke.ynx(0),ke.TgZ(1,"div",15)(2,"p"),ke._uU(3,"There was a problem communicating with Open Charge Map. Please check your data connection."),ke.qZA()(),ke.BQk())}let Xt=(()=>{class Cn{appManager;nav;events;translate;platform;poiManager;mapping;journeyManager;zone;modalController;alertController;logging;mapDisplayed=!1;debouncedRefreshMapResults;mapCanvasID;initialResultsShown=!1;searchOnDemand=!1;poiViewMode="modal";sideViewAvailable=!1;searchPolyline;routePlanningMode=!0;searchKeyword="";selectedPOI;appConfig=new fe.X;defaultMapZoom=15;defaultStartPos=new Te.wC(37.415328,-122.076575);placeSearchMapPOI;constructor(pe,lt,Zt,hn,Yt,Ft,Un,Ve,Pt,Kt,wn,ei){this.appManager=pe,this.nav=lt,this.events=Zt,this.translate=hn,this.platform=Yt,this.poiManager=Ft,this.mapping=Un,this.journeyManager=Ve,this.zone=Pt,this.modalController=Kt,this.alertController=wn,this.logging=ei,this.mapCanvasID="map-canvas",this.mapping.setMapType(pe.searchSettings.MapType),this.mapping.setMapAPI(ie.N.defaultMapProvider),(0,ye.R)(window,"resize").pipe(function Ut(Cn,It=Ke){return(0,dn.e)((pe,lt)=>{let Zt=null,hn=null,Yt=null;const Ft=()=>{if(Zt){Zt.unsubscribe(),Zt=null;const Ve=hn;hn=null,lt.next(Ve)}};function Un(){const Ve=Yt+Cn,Pt=It.now();if(Pt{hn=Ve,Yt=It.now(),Zt||(Zt=It.schedule(Un,Cn),lt.add(Zt))},()=>{Ft(),lt.complete()},void 0,()=>{hn=Zt=null}))})}(500)).subscribe(Lr=>{let Mi={width:de.c.getClientHeight(),height:de.c.getClientWidth()};this.events.publish("ocm:window:resized",[Mi])})}ionViewDidEnter(){this.logging.log("Entered search page.",nt.i.VERBOSE),this.mapping.focusMap(),this.mapping.updateMapSize()}ionViewWillLeave(){this.logging.log("Leaving search page.",nt.i.VERBOSE),this.mapping.unfocusMap()}getPreferredMapHeight(pe){return null==pe&&(pe=de.c.getClientHeight()),pe-56}enforceMapHeight(pe){this.logging.log("Would resize map:"+pe.width+" "+pe.height,nt.i.VERBOSE);const lt=this.getPreferredMapHeight(pe[0]);document.getElementById(this.mapCanvasID).offsetHeight!==lt&&(document.getElementById(this.mapCanvasID).style.height=lt+"px"),this.mapping&&(this.logging.log("Map height:"+lt,nt.i.VERBOSE),this.mapping.updateMapSize())}initialiseMapping(){var pe=this;return(0,C.Z)(function*(){yield pe.platform.ready(),pe.debouncedRefreshMapResults=de.c.debounce(pe.refreshMapResults,1e3,!1),pe.events.subscribe("ocm:mapping:ready",(0,C.Z)(function*(){if(pe.logging.log("init map: mapping ready"),pe.mapping&&pe.mapping.updateMapSize(),!pe.initialResultsShown)if(pe.appManager.searchSettings.StartSearchPosition&&!pe.appManager.searchSettings.StartViewPoiId)pe.searchOnDemand=!0,pe.mapping.updateMapCentrePos(pe.appManager.searchSettings.StartSearchPosition.latitude,pe.appManager.searchSettings.StartSearchPosition.longitude,!0,pe.defaultMapZoom);else{let lt=localStorage.getItem("_locationEnabled");1==pe.appManager.isEmbeddedMode&&"true"!=lt?yield(yield pe.alertController.create({header:"Search using your location?",message:"Select OK to continue.",buttons:[{text:"Cancel",role:"cancel",cssClass:"secondary",handler:(hn=(0,C.Z)(function*(){yield pe.useFallbackPosition()}),function(){return hn.apply(this,arguments)})},{text:"OK",handler:function(){var hn=(0,C.Z)(function*(){yield pe.locateUser()});return function(){return hn.apply(this,arguments)}}()}]})).present():(yield pe.locateUser(),pe.mapping&&pe.mapping.updateMapSize())}var hn})),pe.events.subscribe("ocm:mapping:zoom",()=>{pe.debouncedRefreshMapResults()}),pe.events.subscribe("ocm:mapping:dragend",()=>{pe.debouncedRefreshMapResults()}),pe.events.subscribe("ocm:poiList:updated",lt=>{pe.showPOIListOnMap(lt)}),pe.events.subscribe("ocm:poiList:cleared",()=>{pe.mapping.clearMarkers(),setTimeout(()=>{pe.debouncedRefreshMapResults()},500)}),pe.events.subscribe("ocm:window:resized",lt=>{null!=lt&<.length>0&&pe.enforceMapHeight(lt[0])}),pe.events.subscribe("ocm:poi:selected",lt=>{lt.poi?pe.viewPOIDetails(lt,lt.poi):pe.viewPOIDetails(lt,null,!0)}),pe.mapping.initMap(pe.mapCanvasID)})()}ngAfterViewInit(){var pe=this;return(0,C.Z)(function*(){yield pe.initialiseMapping()})()}ngOnInit(){var pe=this;return(0,C.Z)(function*(){pe.logging.log("Refreshing reference data ..",nt.i.VERBOSE),(yield pe.appManager.referenceDataManager.refreshReferenceData(pe.appManager.api))||(pe.appManager.isOffline=!0)})()}showPOIListOnMap(pe){const lt=this.getPreferredMapHeight(null);this.mapping.refreshMapView(lt,this.poiManager.poiList,null),this.mapDisplayed||(this.mapDisplayed=!0)}getIconForPOI(pe){return de.c.getIconForPOI(pe)}getPOIByID(pe){const lt=this.poiManager.poiList;for(let Zt=0;Zt0&&(lt.minPowerKW=pe.appManager.searchSettings.MinPowerKW),null!=pe.appManager.searchSettings.MaxPowerKW&&pe.appManager.searchSettings.MaxPowerKW>0&&(lt.maxPowerKW=pe.appManager.searchSettings.MaxPowerKW),null!=pe.appManager.searchSettings.MaxResults&&pe.appManager.searchSettings.MaxResults>0&&pe.appManager.searchSettings.MaxResults<=1e4&&(lt.maxResults=pe.appManager.searchSettings.MaxResults),null!=pe.journeyManager.getRoutePolyline()&&(lt.polyline=pe.journeyManager.getRoutePolyline(),lt.boundingbox=null,lt.levelOfDetail=null,lt.latitude=null,lt.longitude=null)),pe.appManager.searchSettings.EnablePOIPendingApproval&&(lt.submissionStatusTypeIdList=[1,100,200]),pe.appManager.isRequestInProgress=!0;let hn=yield pe.poiManager.refreshPOIList(lt);pe.appManager.isRequestInProgress=!1,pe.initialResultsShown=!0,hn>=lt.maxResults&&pe.appManager.showToastNotification("A maximum of "+hn+" results are returned per search. Zoom in for details.")})()}viewPOIDetails(pe,lt,Zt=!1){this.logging.log("Viewing/fetching ["+this.poiViewMode+"] POI Details "+pe.poiId),null!=lt?(this.mapping.unfocusMap(),this.modalController.create({component:be.H,componentProps:{item:lt}}).then(hn=>{hn.onDidDismiss().then(()=>{this.logging.log("Dismissing POI Details."),this.mapping.focusMap(),this.searchOnDemand=!0}),hn.present()}),Zt&&this.mapping.updateMapCentrePos(lt.AddressInfo.Latitude,lt.AddressInfo.Longitude,!0,this.defaultMapZoom)):this.poiManager.getPOIById(pe.poiId,!0).then(hn=>{this.logging.log("Got POI Details "+hn.ID),"modal"===this.poiViewMode&&(this.searchOnDemand=!1,this.modalController.create({component:be.H,componentProps:{item:hn}}).then(Yt=>{Yt.onDidDismiss().then(()=>{this.logging.log("Dismissing POI Details."),this.mapping.focusMap(),this.searchOnDemand=!0}),Yt.present()}),this.mapping.unfocusMap(),Zt&&this.mapping.updateMapCentrePos(hn.AddressInfo.Latitude,hn.AddressInfo.Longitude,!0,this.defaultMapZoom)),"side"===this.poiViewMode&&(this.selectedPOI=hn)},hn=>{this.appManager.showToastNotification("POI Details not available")})}closePOIDetails(){this.selectedPOI=null}openRoutePlannerModal(){this.searchOnDemand=!1,this.mapping.unfocusMap(),this.modalController.create({component:K.u}).then(pe=>{pe.onDidDismiss().then(lt=>{this.logging.log("Dismissing Route Planner Details."),this.mapping.focusMap(),this.searchOnDemand=!0}),pe.present()})}openSearchOptions(){this.searchOnDemand=!1,this.mapping.unfocusMap(),this.modalController.create({component:Pe.N}).then(pe=>{pe.onDidDismiss().then(lt=>{this.mapping.focusMap(),this.searchOnDemand=!0}),pe.present()})}openSideView(){this.poiViewMode="side",this.mapping.updateMapSize()}closeSideView(){this.poiViewMode="modal",this.mapping.updateMapSize()}planRoute(){this.routePlanningMode=!0}search(pe){this.placeSearchMapPOI.getPlacesAutoComplete(pe,"poiSearch")}useFallbackPosition(){let pe=this.defaultStartPos;null!=this.appManager.searchSettings.LastSearchPosition&&(pe=this.appManager.searchSettings.LastSearchPosition),this.appManager.searchSettings.StartSearchPosition=pe,this.appManager.searchSettings.LastSearchPosition=null,this.searchOnDemand=!0,this.mapping.updateMapCentrePos(pe.latitude,pe.longitude,!0,this.defaultMapZoom)}_watchId=null;getPosition(pe={}){var lt=this;return(0,C.Z)(function*(){return new Promise((Zt,hn)=>{lt._watchId=Ne.watchPosition(pe,(Yt,Ft)=>{lt._watchId&&Ne.clearWatch({id:lt._watchId}),Ft?hn(Ft):Zt(Yt)})})})()}locateUser(){var pe=this;return(0,C.Z)(function*(){pe.useFallbackPosition();try{pe.logging.log("Attempting to locate user..");const lt=yield pe.getPosition({timeout:1e4});if(!lt)throw"Failed to get user location.";return pe.logging.log("Got user location."),pe.appManager.searchSettings.StartSearchPosition=new Te.wC(lt.coords.latitude,lt.coords.longitude),pe.searchOnDemand=!0,pe.mapping.updateMapCentrePos(lt.coords.latitude,lt.coords.longitude,!0,pe.defaultMapZoom),localStorage.setItem("_locationEnabled","true"),!0}catch(lt){return pe.logging.log("Failed to get user location. Searching using default or last position."+lt),pe.appManager.showToastNotification("Your location could not be determined."),pe.useFallbackPosition(),!1}})()}placeSelected(pe){if(this.searchKeyword=pe.Address,this.logging.log("Got place details:"+pe.Address),this.mapping.focusMap(),null!=pe.Location)this.mapping.updateMapCentrePos(pe.Location.latitude,pe.Location.longitude,!0);else if(null!=pe.ReferenceID&&pe.ReferenceID.startsWith("OCM-")){let lt=pe.ReferenceID.replace("OCM-","");this.events.publish("ocm:poi:selected",{poiId:lt,poi:null})}this.debouncedRefreshMapResults()}static \u0275fac=function(lt){return new(lt||Cn)(ke.Y36(Ie.c),ke.Y36(it.SH),ke.Y36(Qt.z),ke.Y36(m.sK),ke.Y36(it.t4),ke.Y36(xe.R),ke.Y36(oe.v),ke.Y36(Ce.i),ke.Y36(ke.R0b),ke.Y36(B.IN),ke.Y36(B.Br),ke.Y36(nt.z))};static \u0275cmp=ke.Xpm({type:Cn,selectors:[["ng-component"]],viewQuery:function(lt,Zt){if(1<&&ke.Gf(Ae.v,7),2<){let hn;ke.iGM(hn=ke.CRH())&&(Zt.placeSearchMapPOI=hn.first)}},decls:18,vars:10,consts:[["slot","start"],["autocapitalize","on","autocomplete","on",3,"ngModel","placeholder","debounce","ngModelChange","ionInput"],["slot","end"],[3,"click"],["name","locate","slot","start",4,"ngIf"],[4,"ngIf"],[3,"color","click"],["name","options","slot","end"],[3,"click",4,"ngIf"],[1,"search-page"],[3,"placeChanged"],["placeSearchMapPOI",""],["id","map-canvas",2,"height","100%","width","100%","min-height","300px"],["name","locate","slot","start"],["name","car","title","Route","slot","end"],[2,"position","absolute"]],template:function(lt,Zt){1<&&(ke.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-buttons",0),ke._UZ(3,"ion-menu-button"),ke.qZA(),ke.TgZ(4,"ion-searchbar",1),ke.NdJ("ngModelChange",function(Yt){return Zt.searchKeyword=Yt})("ionInput",function(Yt){return Zt.search(Yt)}),ke.ALo(5,"translate"),ke.qZA(),ke.TgZ(6,"ion-buttons",2)(7,"ion-button",3),ke.NdJ("click",function(){return Zt.locateUser()}),ke.YNc(8,mt,1,0,"ion-icon",4)(9,an,1,0,"ion-spinner",5),ke.qZA(),ke.TgZ(10,"ion-button",6),ke.NdJ("click",function(){return Zt.openSearchOptions()}),ke._UZ(11,"ion-icon",7),ke.qZA(),ke.YNc(12,tt,2,0,"ion-button",8),ke.qZA()()(),ke.TgZ(13,"ion-content",9)(14,"place-search",10,11),ke.NdJ("placeChanged",function(Yt){return Zt.placeSelected(Yt)}),ke.qZA(),ke.YNc(16,pt,4,0,"ng-container",5),ke._UZ(17,"div",12),ke.qZA()),2<&&(ke.xp6(4),ke.Q6J("ngModel",Zt.searchKeyword)("placeholder",ke.lcZ(5,8,"ocm.search.performSearch"))("debounce",500),ke.xp6(4),ke.Q6J("ngIf",!Zt.appManager.isRequestInProgress),ke.xp6(),ke.Q6J("ngIf",Zt.appManager.isRequestInProgress),ke.xp6(),ke.Q6J("color",Zt.appManager.searchSettings.HasActiveFilters?"danger":"default"),ke.xp6(2),ke.Q6J("ngIf",1==Zt.sideViewAvailable&&"modal"==Zt.poiViewMode),ke.xp6(4),ke.Q6J("ngIf",Zt.appManager.isOffline))},dependencies:[te.O5,l.JJ,l.On,B.YG,B.Sm,B.W2,B.Gu,B.gu,B.fG,B.VI,B.PQ,B.sr,B.j9,Ae.v,m.X$],styles:[".search-page[_ngcontent-%COMP%] #map-canvas[_ngcontent-%COMP%]{width:100%;height:98%}.search-page[_ngcontent-%COMP%] #place-search[_ngcontent-%COMP%]{min-height:300px;background-color:#f0f0f0;position:absolute;z-index:100;width:100%}.search-page[_ngcontent-%COMP%] scroll-content[_ngcontent-%COMP%]{overflow-y:hidden}.search-page[_ngcontent-%COMP%] .banner[_ngcontent-%COMP%]{padding-left:2em}.search-page[_ngcontent-%COMP%] .sideview[_ngcontent-%COMP%]{background:#eee;background:linear-gradient(to bottom,#eee,#fff)}"]})}return Cn})(),bn=(()=>{class Cn{static \u0275fac=function(lt){return new(lt||Cn)};static \u0275mod=ke.oAB({type:Cn});static \u0275inj=ke.cJS({imports:[te.ez,l.u5,B.Pc,m.aw,h.e,Y.Bz.forChild([{path:"",component:Xt}])]})}return Cn})()},4119:(Bn,Ct,P)=>{"use strict";P.d(Ct,{N:()=>ye});var h=P(5861),m=P(4669),te=P(6470),l=P(4783),B=P(866),Y=P(1847),C=P(9212),ie=P(451),fe=P(5957),Pe=P(6814),K=P(6223),be=P(6086),Te=P(2618);let Me=(()=>{class Ue extends Te.X${constructor(X,ve){super(X,ve)}transform(X,...ve){let me=super.transform(X,...ve);return me==X?null!=ve&&ve[0].default?ve[0].default:ve[0].Title?ve[0].Title:me:me}static \u0275fac=function(ve){return new(ve||Ue)(C.Y36(Te.sK,16),C.Y36(C.sBO,16))};static \u0275pipe=C.Yjl({name:"nullableTranslate",type:Ue,pure:!0});static \u0275prov=C.Yz7({token:Ue,factory:Ue.\u0275fac})}return Ue})();function de(Ue,ct){if(1&Ue){const X=C.EpF();C.TgZ(0,"p",23),C._UZ(1,"ion-icon",24),C._uU(2," One or more filters are currently being applied. "),C.TgZ(3,"ion-button",25),C.NdJ("click",function(){C.CHM(X);const me=C.oxw();return C.KtG(me.clearFilters())}),C._UZ(4,"ion-icon",26),C.TgZ(5,"ion-label"),C._uU(6,"Clear"),C.qZA()()()}}function nt(Ue,ct){if(1&Ue&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.qZA()),2&Ue){const X=ct.$implicit;C.Q6J("value",X.ID),C.xp6(),C.Oqu(X.Title)}}function Ce(Ue,ct){if(1&Ue){const X=C.EpF();C.TgZ(0,"ion-item")(1,"ion-select",15),C.NdJ("ngModelChange",function(me){C.CHM(X);const Fe=C.oxw();return C.KtG(Fe.searchSettings.FilterOptionsByCountryId=me)})("ionChange",function(){C.CHM(X);const me=C.oxw();return C.KtG(me.onCountryChange())}),C.ALo(2,"translate"),C.TgZ(3,"ion-select",27),C._uU(4,"(All Countries)"),C.qZA(),C.YNc(5,nt,2,2,"ion-select-option",5),C.qZA()()}if(2&Ue){const X=C.oxw();C.xp6(),C.Q6J("label",C.lcZ(2,3,"ocm.search.countries"))("ngModel",X.searchSettings.FilterOptionsByCountryId),C.xp6(4),C.Q6J("ngForOf",X.countries)}}function oe(Ue,ct){if(1&Ue&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.ALo(2,"nullableTranslate"),C.qZA()),2&Ue){const X=ct.$implicit;C.Q6J("value",X.ID),C.xp6(),C.Oqu(C.xi3(2,2,"ocm.reference.usageType.value_"+X.ID,X))}}function xe(Ue,ct){if(1&Ue&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.ALo(2,"nullableTranslate"),C.qZA()),2&Ue){const X=ct.$implicit;C.Q6J("value",X.ID),C.xp6(),C.Oqu(C.xi3(2,2,"ocm.reference.statusType.value_"+X.ID,X))}}function Ie(Ue,ct){if(1&Ue&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.ALo(2,"nullableTranslate"),C.qZA()),2&Ue){const X=ct.$implicit;C.Q6J("value",X.ID),C.xp6(),C.Oqu(C.xi3(2,2,"ocm.reference.connectionType.value_"+X.ID,X))}}function Ae(Ue,ct){if(1&Ue&&(C.TgZ(0,"ion-select-option",28),C._uU(1),C.qZA()),2&Ue){const X=ct.$implicit;C.Q6J("value",X.code),C.xp6(),C.Oqu(X.title)}}let ye=(()=>{class Ue{appManager;poiManager;mapping;modalController;events;searchSettings;maxPower=l.U;powerRange={lower:0,upper:this.maxPower};constructor(X,ve,me,Fe,De){this.appManager=X,this.poiManager=ve,this.mapping=me,this.modalController=Fe,this.events=De,this.searchSettings=X.searchSettings}ngOnInit(){var X=this;return(0,h.Z)(function*(){null!=X.searchSettings.MinPowerKW&&(X.powerRange.lower=X.searchSettings.MinPowerKW),null!=X.searchSettings.MaxPowerKW&&(X.powerRange.upper=X.searchSettings.MaxPowerKW),0==X.powerRange.upper&&(X.powerRange.upper=X.maxPower),X.appManager.analytics.viewEvent("Settings"),X.useFilteredOptions&&(yield X.onCountryChange())})()}get useFilteredOptions(){return this.searchSettings.FilterOptionsByCountryId>0}clearFilters(){this.searchSettings.ClearActiveFilters(),this.powerRange={lower:0,upper:this.maxPower},this.searchSettings.CheckForActiveFilters()}get operators(){return this.appManager.referenceDataManager.getNetworkOperators(this.useFilteredOptions)}get connectionTypes(){return this.appManager.referenceDataManager.getConnectionTypes(this.useFilteredOptions)}get usageTypes(){return this.appManager.referenceDataManager.getUsageTypes(this.useFilteredOptions)}get statusTypes(){return this.appManager.referenceDataManager.getStatusTypes(this.useFilteredOptions)}get countries(){return this.appManager.referenceDataManager.getCountries(this.useFilteredOptions)}get isCountryFilterFeatureEnabled(){return B.c.isFeatureEnabled("FILTER_OPTIONS_BY_COUNTRY")}_languages=[];get languages(){return this._languages.length>0||(this._languages=this.appManager.getLanguages()),this._languages}ionViewWillLeave(){null!=this.searchSettings.Language&&this.appManager.setLanguage(this.searchSettings.Language),this.searchSettings.MinPowerKW=this.powerRange.lower,this.searchSettings.MaxPowerKW=this.powerRange.upper,1==this.searchSettings.MinPowerKW&&(this.searchSettings.MinPowerKW=null),this.searchSettings.MaxPowerKW==this.maxPower&&(this.searchSettings.MaxPowerKW=null),this.appManager.searchSettings=this.searchSettings,this.appManager.saveSearchSettings(),this.events.publish("ocm:poiList:cleared")}onLanguageChange(){null!=this.searchSettings.Language&&""!=this.searchSettings.Language&&this.appManager.setLanguage(this.searchSettings.Language)}onCountryChange(){var X=this;return(0,h.Z)(function*(){X.appManager.referenceDataManager.refreshFilteredReferenceData(X.appManager.api,{CountryIds:[X.searchSettings.FilterOptionsByCountryId]})})()}onMapTypeChange(){var X=this;return(0,h.Z)(function*(){X.mapping.setMapType(X.searchSettings.MapType)})()}onOperatorSelected(X=null){var ve=this;return(0,h.Z)(function*(){null!=X&&(ve.searchSettings.OperatorList.find(me=>me==X.ID)||ve.searchSettings.OperatorList.push(X.ID))})()}onOperatorRemoved(X){var ve=this;return(0,h.Z)(function*(){ve.searchSettings.OperatorList=ve.searchSettings.OperatorList.filter(me=>me!=X)})()}close(){this.modalController.dismiss()}static \u0275fac=function(ve){return new(ve||Ue)(C.Y36(te.c),C.Y36(m.R),C.Y36(Y.v),C.Y36(ie.IN),C.Y36(fe.z))};static \u0275cmp=C.Xpm({type:Ue,selectors:[["ng-component"]],decls:66,vars:41,consts:[[1,"settings-page","ion-padding"],["danger","",4,"ngIf"],[4,"ngIf"],["mode","multi",3,"operatorList","useFilteredOperators","operatorRemoved","operatorChanged"],["multiple","true","cancelText","Cancel","okText","OK",3,"label","ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["lines","none"],["dualKnobs","true","min","0","max","650","pin","true",3,"ngModel","ticks","snaps","min","max","ngModelChange"],["slot","start","size","small","name","flash"],["slot","end","name","flash"],["slot","start",2,"padding-top","0"],["type","number","min","0",2,"width","3em","border","none",3,"ngModel","max","ngModelChange"],["slot","end",2,"padding-top","0"],["type","number",2,"width","3em","border","none",3,"ngModel","max","min","ngModelChange"],["label","Language","multiple","false",3,"ngModel","ngModelChange","ionChange"],["multiple","false","cancelText","Cancel","okText","OK",3,"label","ngModel","ngModelChange","ionChange"],["value","ROADMAP"],["value","SATELLITE"],[3,"ngModel","ngModelChange"],["label","Max Results","type","number","placeholder","500","min","100","max","10000",3,"ngModel","ngModelChange"],["slot","end"],[3,"click"],["name","close","slot","start"],["danger",""],["name","alert"],["size","small","color","light",3,"click"],["slot","start","name","close"],["value",""],[3,"value"]],template:function(ve,me){1&ve&&(C.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),C._uU(3),C.ALo(4,"translate"),C.qZA()()(),C.TgZ(5,"ion-content",0)(6,"h2"),C._uU(7,"Search Filters"),C.qZA(),C.TgZ(8,"p"),C._uU(9,"Note: Filters will remove usable charging locations from your search results if we do not have complete data (i.e Operator or Power Levels)."),C.qZA(),C.YNc(10,de,7,0,"p",1),C.TgZ(11,"ion-list"),C.YNc(12,Ce,6,5,"ion-item",2),C.TgZ(13,"app-operator-lookup",3),C.NdJ("operatorRemoved",function(De){return me.onOperatorRemoved(De)})("operatorChanged",function(De){return me.onOperatorSelected(De)}),C.qZA(),C.TgZ(14,"ion-item")(15,"ion-select",4),C.NdJ("ngModelChange",function(De){return me.searchSettings.UsageTypeList=De}),C.ALo(16,"translate"),C.YNc(17,oe,3,5,"ion-select-option",5),C.qZA()(),C.TgZ(18,"ion-item")(19,"ion-select",4),C.NdJ("ngModelChange",function(De){return me.searchSettings.StatusTypeList=De}),C.ALo(20,"translate"),C.YNc(21,xe,3,5,"ion-select-option",5),C.qZA()(),C.TgZ(22,"ion-item")(23,"ion-select",4),C.NdJ("ngModelChange",function(De){return me.searchSettings.ConnectionTypeList=De}),C.ALo(24,"translate"),C.YNc(25,Ie,3,5,"ion-select-option",5),C.qZA()(),C.TgZ(26,"ion-item",6)(27,"ion-range",7),C.NdJ("ngModelChange",function(De){return me.powerRange=De}),C.TgZ(28,"ion-icon",8),C._uU(29,"0"),C.qZA(),C._UZ(30,"ion-icon",9),C.qZA()(),C.TgZ(31,"ion-item",6)(32,"ion-note",10),C._uU(33,"Min. Power (kW)"),C._UZ(34,"br"),C.TgZ(35,"input",11),C.NdJ("ngModelChange",function(De){return me.powerRange.lower=De}),C.qZA()(),C.TgZ(36,"ion-note",12),C._uU(37,"Max. Power (kW)"),C._UZ(38,"br"),C.TgZ(39,"input",13),C.NdJ("ngModelChange",function(De){return me.powerRange.upper=De}),C.qZA()()()(),C.TgZ(40,"h2"),C._uU(41," General Settings "),C.qZA(),C.TgZ(42,"ion-item")(43,"ion-select",14),C.NdJ("ngModelChange",function(De){return me.searchSettings.Language=De})("ionChange",function(){return me.onLanguageChange()}),C.YNc(44,Ae,2,2,"ion-select-option",5),C.qZA()(),C.TgZ(45,"ion-item")(46,"ion-select",15),C.NdJ("ngModelChange",function(De){return me.searchSettings.MapType=De})("ionChange",function(){return me.onMapTypeChange()}),C.ALo(47,"translate"),C.TgZ(48,"ion-select-option",16),C._uU(49,"Road Map"),C.qZA(),C.TgZ(50,"ion-select-option",17),C._uU(51,"Satellite"),C.qZA()()(),C.TgZ(52,"ion-item")(53,"ion-toggle",18),C.NdJ("ngModelChange",function(De){return me.searchSettings.EnableAdvancedEditorFeatures=De}),C._uU(54,"Enable Advanced Editor Options"),C.qZA()(),C.TgZ(55,"ion-item")(56,"ion-toggle",18),C.NdJ("ngModelChange",function(De){return me.searchSettings.EnablePOIPendingApproval=De}),C._uU(57,"Show POIs Pending Approval"),C.qZA()(),C.TgZ(58,"ion-item")(59,"ion-input",19),C.NdJ("ngModelChange",function(De){return me.searchSettings.MaxResults=De}),C.qZA()()(),C.TgZ(60,"ion-footer")(61,"ion-toolbar")(62,"ion-buttons",20)(63,"ion-button",21),C.NdJ("click",function(){return me.close()}),C._UZ(64,"ion-icon",22),C._uU(65," Close "),C.qZA()()()()),2&ve&&(C.xp6(3),C.hij(" ",C.lcZ(4,31,"ocm.general.settings")," "),C.xp6(7),C.Q6J("ngIf",1==me.searchSettings.HasActiveFilters),C.xp6(2),C.Q6J("ngIf",me.isCountryFilterFeatureEnabled),C.xp6(),C.Q6J("operatorList",me.searchSettings.OperatorList)("useFilteredOperators",!1),C.xp6(2),C.Q6J("label",C.lcZ(16,33,"ocm.search.usageTypes"))("ngModel",me.searchSettings.UsageTypeList),C.xp6(2),C.Q6J("ngForOf",me.usageTypes),C.xp6(2),C.Q6J("label",C.lcZ(20,35,"ocm.search.operationalStatusTypes"))("ngModel",me.searchSettings.StatusTypeList),C.xp6(2),C.Q6J("ngForOf",me.statusTypes),C.xp6(2),C.Q6J("label",C.lcZ(24,37,"ocm.search.connectionTypes"))("ngModel",me.searchSettings.ConnectionTypeList),C.xp6(2),C.Q6J("ngForOf",me.connectionTypes),C.xp6(2),C.Q6J("ngModel",me.powerRange)("ticks",!0)("snaps",!0)("min",me.powerRange.lower)("max",me.powerRange.upper),C.xp6(8),C.Q6J("ngModel",me.powerRange.lower)("max",me.powerRange.upper),C.xp6(4),C.Q6J("ngModel",me.powerRange.upper)("max",me.maxPower)("min",me.powerRange.lower),C.xp6(4),C.Q6J("ngModel",me.searchSettings.Language),C.xp6(),C.Q6J("ngForOf",me.languages),C.xp6(2),C.Q6J("label",C.lcZ(47,39,"ocm.details.location.map"))("ngModel",me.searchSettings.MapType),C.xp6(7),C.Q6J("ngModel",me.searchSettings.EnableAdvancedEditorFeatures),C.xp6(3),C.Q6J("ngModel",me.searchSettings.EnablePOIPendingApproval),C.xp6(3),C.Q6J("ngModel",me.searchSettings.MaxResults))},dependencies:[Pe.sg,Pe.O5,K.Fj,K.wV,K.JJ,K.qQ,K.Fd,K.On,ie.YG,ie.Sm,ie.W2,ie.fr,ie.Gu,ie.gu,ie.pK,ie.Ie,ie.Q$,ie.q_,ie.uN,ie.I_,ie.t9,ie.n0,ie.wd,ie.ho,ie.sr,ie.w,ie.as,ie.QI,ie.j9,ie.yf,ie.Uj,be.z,Te.X$,Me],encapsulation:2})}return Ue})()},9472:(Bn,Ct,P)=>{"use strict";P.r(Ct),P.d(Ct,{SignInModule:()=>fe});var h=P(8767),m=P(5086),te=P(2618),l=P(6814),B=P(6223),Y=P(451),C=P(6800),ie=P(9212);let fe=(()=>{class Pe{static \u0275fac=function(Te){return new(Te||Pe)};static \u0275mod=ie.oAB({type:Pe});static \u0275inj=ie.cJS({imports:[l.ez,B.u5,Y.Pc,te.aw,m.e,C.Bz.forChild([{path:"",component:h.F}])]})}return Pe})()},8767:(Bn,Ct,P)=>{"use strict";P.d(Ct,{F:()=>be});var h=P(5861),m=P(9127),te=P(6470),l=P(9212),B=P(451),Y=P(2618),C=P(6800),ie=P(6814),fe=P(6223);function Pe(Te,Me){if(1&Te){const de=l.EpF();l.ynx(0),l.TgZ(1,"p",13),l._uU(2," Sign in using your Open Charge Map account. "),l.qZA(),l.TgZ(3,"ion-list")(4,"ion-item")(5,"ion-label",14),l._uU(6,"Email"),l.qZA(),l.TgZ(7,"ion-input",15),l.NdJ("ngModelChange",function(Ce){l.CHM(de);const oe=l.oxw();return l.KtG(oe.email=Ce)}),l.qZA()(),l.TgZ(8,"ion-item")(9,"ion-label",14),l._uU(10,"Password"),l.qZA(),l.TgZ(11,"ion-input",16),l.NdJ("ngModelChange",function(Ce){l.CHM(de);const oe=l.oxw();return l.KtG(oe.password=Ce)}),l.qZA()()(),l.TgZ(12,"p")(13,"a",8),l.NdJ("click",function(){l.CHM(de);const Ce=l.oxw();return l.KtG(Ce.appManager.launchWebPage("https://openchargemap.org/site/loginprovider/passwordreset"))}),l._uU(14,"Reset your password"),l.qZA()(),l.BQk()}if(2&Te){const de=l.oxw();l.xp6(7),l.Q6J("ngModel",de.email),l.xp6(4),l.Q6J("ngModel",de.password)}}function K(Te,Me){if(1&Te){const de=l.EpF();l.ynx(0),l.TgZ(1,"p",13),l._uU(2," Create a new Open Charge Map account. "),l.qZA(),l.TgZ(3,"ion-list")(4,"ion-item")(5,"ion-label",14),l._uU(6,"Email"),l.qZA(),l.TgZ(7,"ion-input",15),l.NdJ("ngModelChange",function(Ce){l.CHM(de);const oe=l.oxw();return l.KtG(oe.email=Ce)}),l.qZA()(),l.TgZ(8,"ion-item")(9,"ion-label",14),l._uU(10,"Display Name or Nickname"),l.qZA(),l.TgZ(11,"ion-input",15),l.NdJ("ngModelChange",function(Ce){l.CHM(de);const oe=l.oxw();return l.KtG(oe.username=Ce)}),l.qZA()(),l.TgZ(12,"ion-item")(13,"ion-label",14),l._uU(14,"Password"),l.qZA(),l.TgZ(15,"ion-input",16),l.NdJ("ngModelChange",function(Ce){l.CHM(de);const oe=l.oxw();return l.KtG(oe.password=Ce)}),l.qZA()(),l.TgZ(16,"ion-item")(17,"ion-label",14),l._uU(18,"Confirm Password"),l.qZA(),l.TgZ(19,"ion-input",16),l.NdJ("ngModelChange",function(Ce){l.CHM(de);const oe=l.oxw();return l.KtG(oe.confirmpassword=Ce)}),l.qZA()()(),l.BQk()}if(2&Te){const de=l.oxw();l.xp6(7),l.Q6J("ngModel",de.email),l.xp6(4),l.Q6J("ngModel",de.username),l.xp6(4),l.Q6J("ngModel",de.password),l.xp6(4),l.Q6J("ngModel",de.confirmpassword)}}let be=(()=>{class Te{appManager;modalController;translate;alertController;loadingController;logging;router;location;email;password;username;confirmpassword;mode="signin";constructor(de,nt,Ce,oe,xe,Ie,Ae,ye){this.appManager=de,this.modalController=nt,this.translate=Ce,this.alertController=oe,this.loadingController=xe,this.logging=Ie,this.router=Ae,this.location=ye,this.email=""}cancelSignIn(){this.modalController.dismiss()}performRegister(){var de=this;return(0,h.Z)(function*(){if(de.password!=de.confirmpassword)return void alert("Your password and the confirmed password do not match, please try again.");if(de.password.length<6)return void alert("Your password should be at least 6 characters.");const nt=yield de.loadingController.create({message:"Registering .."});yield nt.present();let Ce=!1;try{yield de.appManager.api.performRegister(de.username,de.email,de.password),nt.dismiss(),localStorage.setItem("authResponse",JSON.stringify(de.appManager.api.authResponse)),de.appManager.isUserAuthenticated(!0),de.modalController.dismiss(),de.appManager.analytics.appEvent("Profile","SignedIn")}catch(oe){Ce=!0,nt.dismiss(),yield(yield de.alertController.create({header:"Open Charge Map",subHeader:"Email or Password not recognised",buttons:["Ok"]})).present(),de.logging.log("Error logging in:"+oe)}})()}performSignIn(){var de=this;return(0,h.Z)(function*(){if("register"==de.mode)return de.performRegister();const nt=yield de.loadingController.create({message:"Signing In.."});yield nt.present();let Ce=!1;try{yield de.appManager.api.performSignIn(de.email,de.password),nt.dismiss(),localStorage.setItem("authResponse",JSON.stringify(de.appManager.api.authResponse)),de.appManager.isUserAuthenticated(!0),de.modalController.dismiss(),de.appManager.analytics.appEvent("Profile","SignedIn")}catch(oe){Ce=!0,nt.dismiss(),yield(yield de.alertController.create({header:"Open Charge Map",subHeader:"Email or Password not recognised",buttons:["Ok"]})).present(),de.logging.log("Error logging in:"+oe)}})()}static \u0275fac=function(nt){return new(nt||Te)(l.Y36(te.c),l.Y36(B.IN),l.Y36(Y.sK),l.Y36(B.Br),l.Y36(B.HT),l.Y36(m.z),l.Y36(C.F0),l.Y36(ie.Ye))};static \u0275cmp=l.Xpm({type:Te,selectors:[["ng-component"]],decls:28,vars:9,consts:[[1,"signin-page","ion-padding"],["item-left",""],["src","assets/images/icons/branding/AppIcon_128x128.png"],[3,"ngModel","ngModelChange"],["value","signin"],["value","register"],[4,"ngIf"],["slot","secondary"],[3,"click"],["name","close","slot","start"],["slot","primary"],["type","submit","color","primary",3,"click"],["name","log-in","slot","start"],[1,"ion-padding"],["position","floating"],["type","text",3,"ngModel","ngModelChange"],["type","password",3,"ngModel","ngModelChange"]],template:function(nt,Ce){1&nt&&(l.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),l._uU(3),l.ALo(4,"translate"),l.qZA()()(),l.TgZ(5,"ion-content",0)(6,"ion-avatar",1),l._UZ(7,"img",2),l.qZA(),l.TgZ(8,"ion-segment",3),l.NdJ("ngModelChange",function(xe){return Ce.mode=xe}),l.TgZ(9,"ion-segment-button",4)(10,"ion-label"),l._uU(11,"Sign In"),l.qZA()(),l.TgZ(12,"ion-segment-button",5)(13,"ion-label"),l._uU(14,"Create Account"),l.qZA()()(),l.YNc(15,Pe,15,2,"ng-container",6)(16,K,20,4,"ng-container",6),l.qZA(),l.TgZ(17,"ion-footer")(18,"ion-toolbar")(19,"ion-buttons",7)(20,"ion-button",8),l.NdJ("click",function(){return Ce.cancelSignIn()}),l._UZ(21,"ion-icon",9),l._uU(22," Cancel"),l.qZA()(),l.TgZ(23,"ion-buttons",10)(24,"ion-button",11),l.NdJ("click",function(){return Ce.performSignIn()}),l._UZ(25,"ion-icon",12),l._uU(26),l.ALo(27,"translate"),l.qZA()()()()),2&nt&&(l.xp6(3),l.hij(" ",l.lcZ(4,5,"ocm.general.signIn")," "),l.xp6(5),l.Q6J("ngModel",Ce.mode),l.xp6(7),l.Q6J("ngIf","signin"==Ce.mode),l.xp6(),l.Q6J("ngIf","register"==Ce.mode),l.xp6(10),l.hij(" ",l.lcZ(27,7,"ocm.general.signIn"),""))},dependencies:[ie.O5,fe.JJ,fe.On,B.BJ,B.YG,B.Sm,B.W2,B.fr,B.Gu,B.gu,B.pK,B.Ie,B.Q$,B.q_,B.cJ,B.GO,B.wd,B.sr,B.QI,B.j9,Y.X$],encapsulation:2})}return Te})()},439:(Bn,Ct,P)=>{"use strict";P.d(Ct,{l:()=>ie});var h=P(5861),m=P(9127),te=P(9159),l=P(8371),B=P(9862),Y=P(553),C=P(9212);let ie=(()=>{class fe{http;refData;logging;serviceBase="https://api.openchargemap.io";serviceBaseURL=this.serviceBase+"/v4";hasAuthorizationError=!1;ATTRIBUTION_METADATAFIELDID=4;authResponse;clientName="ocm.api.default";authorizationErrorCallback;generalErrorCallback;allowMirror=!1;lastPOIApiCallURL="";constructor(K,be,Te){this.http=K,this.refData=be,this.logging=Te,this.serviceBaseURL=Y.N.apiBase+"/v3"}getNumberListString(K){let be="";for(let Te=0;Te0&&(Me+="&connectiontypeid="+be.getNumberListString(K.connectionTypeIdList)),null!=K.operatorIdList&&K.operatorIdList.length>0&&(Me+="&operatorid="+be.getNumberListString(K.operatorIdList)),null!=K.usageTypeIdList&&K.usageTypeIdList.length>0&&(Me+="&usagetypeid="+be.getNumberListString(K.usageTypeIdList)),null!=K.statusTypeIdList&&K.statusTypeIdList.length>0&&(Me+="&statustypeid="+be.getNumberListString(K.statusTypeIdList)),null!=K.locationTitle&&(Me+="&locationtitle="+K.locationTitle),null!=K.minPowerKW&&K.minPowerKW>0&&(Me+="&minpowerkw="+K.minPowerKW),null!=K.maxPowerKW&&K.maxPowerKW>0&&(Me+="&maxpowerkw="+K.maxPowerKW),null!=K.submissionStatusTypeIdList&&(Me+="&submissionstatustypeid="+be.getNumberListString(K.submissionStatusTypeIdList)),null!=K.poiIdList&&K.poiIdList.length>0&&(Me+="&chargepointid="+be.getNumberListString(K.poiIdList)),0==K.enableCaching&&(Me+="&enablecaching=false"),null!=K.compact&&(Me+="&compact="+K.compact),K.levelOfDetail>1&&(Me+="&levelofdetail="+K.levelOfDetail),null!=K.polyline&&(Me+="&polyline="+K.polyline),null!=K.boundingbox&&(Me+="&boundingbox="+K.boundingbox),null!=K.additionalParams&&(Me+="&"+K.additionalParams);const de=Te+Me;if(be.lastPOIApiCallURL===de&&0!=K.enableCaching)return be.logging.log("Skipped API call due to same query being repeated."),[];be.lastPOIApiCallURL=de,be.logging.log("API Call:"+de,m.i.VERBOSE);try{let nt=yield be.http.get(de,be.getHttpRequestOptions()).toPromise();return be.refData.hydrateCompactPOIList(nt)}catch(nt){const Ce=nt.message||"Could not fetch POI list from server.";throw be.logging.log("API Client: "+JSON.stringify(nt),m.i.ERROR),Ce}})()}getHttpRequestOptions(K=!0){let be=new B.WM;return K&&(be=be.append("Content-Type","application/json")),this.authResponse&&this.authResponse.Data&&this.authResponse.Data.access_token&&(be=be.append("Authorization","Bearer "+this.authResponse.Data.access_token)),be=be.append("X-API-Key",Y.N.apiKey),{headers:be}}fetchCoreReferenceData(K){let be=this.serviceBaseURL+"/referencedata/?client="+this.clientName+"&output=json"+(this.allowMirror?"&allowmirror=true":"")+"&verbose=false&compact=true";return null!=K&&null!=K.CountryIds&&(be+="&countryid="+this.getNumberListString(K.CountryIds)),this.logging.log("API Call:"+be,m.i.VERBOSE),this.http.get(be,this.getHttpRequestOptions())}performSignIn(K,be){return this.http.post(this.serviceBaseURL+"/profile/authenticate/",JSON.stringify({emailaddress:K,password:be}),this.getHttpRequestOptions()).toPromise().then(de=>(this.authResponse=de,this.authResponse))}performRegister(K,be,Te){return this.http.post(this.serviceBaseURL+"/profile/register/",JSON.stringify({username:K,emailaddress:be,password:Te}),this.getHttpRequestOptions()).toPromise().then(nt=>(this.authResponse=nt,this.authResponse))}performSubmission(K,be){return K===l.qO.POI?this.submitPOI(be):K===l.qO.Comment?this.submitUserComment(be):K===l.qO.Media?this.submitMediaItem(be):void 0}submitUserComment(K){const be=JSON.stringify(K);return this.logging.log("[api] Submitting user comment"),this.http.post(this.serviceBaseURL+"/comment/",be,this.getHttpRequestOptions()).toPromise()}submitMediaItem(K){const be=JSON.stringify(K);return this.http.post(this.serviceBaseURL+"/mediaitem/",be,this.getHttpRequestOptions()).toPromise()}submitPOI(K){const be=JSON.stringify(K);return this.http.post(this.serviceBaseURL+"/poi/",be,this.getHttpRequestOptions()).toPromise()}getPanoramioLocationPhotos(K){return new Promise(be=>{const Me="https://www.panoramio.com/map/get_panoramas.php?set=public&from=0&to=2&minx="+(K.longitude-.001)+"&miny="+(K.latitude-.001)+"&maxx="+(K.longitude+.001)+"maxy="+(K.latitude+.001)+"&size=medium&mapfilter=true&callback=?";return console.log(Me),this.http.get(Me).toPromise()})}fetchReverseGeocodeResult(K,be){return this.http.get(this.serviceBaseURL+"/geocode/?client="+this.clientName+"&output=json&camelcase=false&latitude="+K+"&longitude="+be,this.getHttpRequestOptions()).toPromise()}isLocalStorageAvailable(){return typeof window.localStorage<"u"}setCachedDataObject(K,be){this.isLocalStorageAvailable()&&(typeof be>"u"&&(be=null),null===be?localStorage.removeItem(K):localStorage.setItem(K,JSON.stringify(be)))}getCachedDataObject(K){if(this.isLocalStorageAvailable()){const be=localStorage.getItem(K);if(null!=be&&be.length>0)return JSON.parse(be)}return null}static \u0275fac=function(be){return new(be||fe)(C.LFG(B.eN),C.LFG(te.W),C.LFG(m.z))};static \u0275prov=C.Yz7({token:fe,factory:fe.\u0275fac,providedIn:"root"})}return fe})()},3294:(Bn,Ct,P)=>{"use strict";P.d(Ct,{c:()=>B});var h=P(5861),m=P(9127),te=P(9212),l=P(7346);let B=(()=>{class Y{logger;platform;isCordova=!1;ga=null;constructor(ie,fe){this.logger=ie,this.platform=fe,this.isCordova=!(!fe.is("cordova")&&!fe.is("capacitor"))}init(ie){var fe=this;return(0,h.Z)(function*(){fe.isCordova&&fe.ga?yield fe.ga.startTrackerWithId(ie):fe.logger.log("Could not initialise analytics")})()}setAppVersion(ie){var fe=this;return(0,h.Z)(function*(){if(fe.isCordova&&fe.ga)return fe.ga.setAppVersion(ie);fe.logger.log(ie)})()}appEvent(ie,fe){var Pe=this;return(0,h.Z)(function*(){if(Pe.isCordova&&Pe.ga)return Pe.ga.trackEvent(ie,fe);Pe.logger.log(fe)})()}viewEvent(ie){var fe=this;return(0,h.Z)(function*(){if(fe.isCordova&&fe.ga)return fe.ga.trackView(ie);fe.logger.log(ie)})()}static \u0275fac=function(fe){return new(fe||Y)(te.LFG(m.z),te.LFG(l.t4))};static \u0275prov=te.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"})}return Y})()},6470:(Bn,Ct,P)=>{"use strict";P.d(Ct,{c:()=>Ce});var h=P(5861),m=P(9127),te=P(439),l=P(8371),B=P(9212),Y=P(5957);let C=(()=>{class oe{events;isQueueProcessing;appManager;constructor(Ie){this.events=Ie,this.isQueueProcessing=!1}setAppManager(Ie){this.appManager=Ie}add(Ie,Ae){let ye=this.getQueueItems();ye.push(new l.aX(Ie,Ae)),this.saveQueueItems(ye)}update(Ie){let Ae=this.getQueueItems(),ye=new Array;return Ae.forEach(Ue=>{ye.push(Ue.ID==Ie.ID?Ie:Ue)}),ye}processNextQueueItem(){let Ie=this.getNextQueueItem();null!=Ie&&null!=this.appManager&&this.appManager.api.performSubmission(Ie.SubmissionType,Ie.Data).then(()=>{Ie.IsSubmitted=!0,Ie.Attempts++,this.update(Ie),this.clear()})}getNextQueueItem(){let Ie=this.getQueueItems(),Ae=null;return Ie.forEach(ye=>{null==Ae&&!ye.IsCancelled&&!ye.IsInProgress&&!ye.IsSubmitted&&(Ae=ye)}),Ae}hasPendingItems(){let Ie=!1;return this.getQueueItems().forEach(ye=>{!ye.IsFailure&&!ye.IsCancelled&&!ye.IsSubmitted&&(Ie=!0)}),Ie}isCompleted(){let Ie=this.getQueueItems(),Ae=!0;return Ie.forEach(ye=>{(ye.IsInProgress||ye.IsFailure)&&(Ae=!1)}),Ae}clear(Ie=!1){let Ae=this.getQueueItems(),ye=new Array;Ie||Ae.forEach(Ue=>{(Ue.IsInProgress||Ue.IsFailure)&&ye.push(Ue)}),this.saveQueueItems(ye)}saveQueueItems(Ie){localStorage.setItem("submissionQueue",JSON.stringify(Ie))}getQueueItems(){let Ie=localStorage.getItem("submissionQueue");return null!=Ie?JSON.parse(Ie):new Array}static \u0275fac=function(Ae){return new(Ae||oe)(B.LFG(Y.z))};static \u0275prov=B.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})();var ie=P(9159),fe=P(989),Pe=P(3294),K=P(553),be=P(9862),Te=P(7346),Me=P(451),de=P(2618),nt=P(703);let Ce=(()=>{class oe{http;events;api;submissionQueue;platform;referenceDataManager;journeyManager;translateService;toastController;loadingController;jwtHelper;logging;analytics;enableSubmissionQueue;searchSettings;platformMode;journeys;isDebugMode;clientWidth;clientHeight;isRequestInProgress=!1;title="Open Charge Map";_isUserAuthenticated=null;isEmbeddedMode=!1;isOffline=!1;constructor(Ie,Ae,ye,Ue,ct,X,ve,me,Fe,De,ze,Ke,Ht){this.http=Ie,this.events=Ae,this.api=ye,this.submissionQueue=Ue,this.platform=ct,this.referenceDataManager=X,this.journeyManager=ve,this.translateService=me,this.toastController=Fe,this.loadingController=De,this.jwtHelper=ze,this.logging=Ke,this.analytics=Ht,this.api.clientName="ocm.app.ionic."+K.N.version,this.isDebugMode=!1,this.enableSubmissionQueue=!1,this.submissionQueue.setAppManager(this),this.platformMode=ct.is("cordova")?"cordova":"web",this.initAppManager(),this.searchSettings=new l.Nm,this.loadSearchSettings(),this.applyURLQueryStringOptions(),this.searchSettings.CheckForActiveFilters(),this.journeyManager.loadJourneys()}loadSearchSettings(){if(null!=localStorage.getItem("searchSettings")){this.searchSettings=new l.Nm;try{let Ie=JSON.parse(localStorage.getItem("searchSettings"));Object.assign(this.searchSettings,Ie)}catch{}}}savePushRegistration(Ie){localStorage.setItem("_pushToken",Ie.toString())}getPushRegistration(){localStorage.getItem("_pushToken")}getQueryVariable(Ie){let ye=window.location.search.substring(1).split("&");for(let Ue=0;UedecodeURIComponent(me))}return null}applyURLQueryStringOptions(){if(this.getQueryVariable("mode")&&"embedded"==this.getQueryVariable("mode")[0]&&(this.isEmbeddedMode=!0),this.getQueryVariable("operatorid")){let Ie=this.getQueryVariable("operatorid");for(let Ae of Ie)this.searchSettings.OperatorList.unshift(parseInt(Ae,10))}if(this.getQueryVariable("latitude")&&this.getQueryVariable("longitude")){let Ie=this.getQueryVariable("latitude")[0],Ae=this.getQueryVariable("longitude")[0];this.searchSettings.StartSearchPosition=new l.wC(parseFloat(Ie),parseFloat(Ae))}this.getQueryVariable("title")&&(this.title=this.getQueryVariable("title")[0]),this.getQueryVariable("languagecode")&&this.setLanguage(this.getQueryVariable("languagecode")[0]),this.getQueryVariable("id")&&(this.searchSettings.StartViewPoiId=this.getQueryVariable("id")[0])}saveSearchSettings(){this.searchSettings.CheckForActiveFilters(),localStorage.setItem("searchSettings",JSON.stringify(this.searchSettings))}getLanguages(){return[{code:"ar",title:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629 / Arabic"},{code:"bg",title:"Bulgarian / \u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},{code:"cs",title:"Czech / \u010ce\u0161tina"},{code:"de",title:"German / Deutsch"},{code:"el",title:"Greek / \u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ae"},{code:"en",title:"English"},{code:"es",title:"Spanish / Espa\xf1ol"},{code:"et",title:"Estonian / Eesti"},{code:"fi",title:"Finnish / Suomi"},{code:"fr",title:"French / Fran\xe7ais"},{code:"fy",title:"West Frisian / Frysk"},{code:"hu",title:"Hungarian / Magyar"},{code:"it",title:"Italian / Italiano"},{code:"ja",title:"Japanese / \u65e5\u672c\u8a9e"},{code:"lt",title:"Lithuanian / Lietuvi\u0173"},{code:"nl",title:"Dutch / Nederlands"},{code:"pt",title:"Portuguese / portugu\xeas"},{code:"ro",title:"Romanian / Rom\xe2n\u0103"},{code:"ru",title:"Russian / P\u0443\u0441\u0441\u043a\u0438\u0439"},{code:"sk",title:"Slovak / Sloven\u010dina"},{code:"tr",title:"Turkish / T\xfcrk\xe7e"},{code:"zh",title:"Chinese / \u4e2d\u56fd\u7684"}]}setLanguage(Ie){(null==Ie||""==Ie)&&(Ie="en"),this.logging.log("Changing language: "+Ie),this.translateService.use(Ie)}initAppManager(){this.initAuthFromStorage(),this.isUserAuthenticated(!0)&&this.enableSubmissionQueue&&null!=this.submissionQueue&&this.submissionQueue.hasPendingItems()&&this.submissionQueue.processNextQueueItem()}initAuthFromStorage(){let Ie=localStorage.getItem("authResponse");if(null!=Ie){let Ae=JSON.parse(Ie);null!=Ae?.Data&&null!=Ae?.Data?.access_token?(this.jwtHelper.decodeToken(Ae.Data.access_token),this.jwtHelper.isTokenExpired(Ae.Data.access_token)?localStorage.removeItem("authResponse"):(this.api.authResponse=Ae,this.logging.log("User has valid auth token in local storage",m.i.VERBOSE))):(this.logging.log("User has invalid auth token in local storage",m.i.VERBOSE),localStorage.removeItem("authResponse"))}}isUserAuthenticated(Ie=!1){return!1===Ie&&null!=this._isUserAuthenticated||(this._isUserAuthenticated=!1,null!=this.api.authResponse&&(this.jwtHelper.isTokenExpired(this.api.authResponse.Data.access_token)||(this._isUserAuthenticated=!0))),this._isUserAuthenticated}getCurrentAuthToken(){return null!=this.api.authResponse?this.api.authResponse.Data.access_token:null}getUserProfile(){return null!=this.api.authResponse?this.api.authResponse.Data.UserProfile:null}signOutCurrentUser(){localStorage.removeItem("authResponse"),this.api.authResponse=null,this._isUserAuthenticated=!1}submitComment(Ie){if(!this.enableSubmissionQueue)return this.api.performSubmission(l.qO.Comment,Ie);this.submissionQueue.add(l.qO.Comment,Ie),this.submissionQueue.processNextQueueItem()}submitMediaItem(Ie){if(!this.enableSubmissionQueue)return this.api.performSubmission(l.qO.Media,Ie);this.submissionQueue.add(l.qO.Media,Ie),this.submissionQueue.processNextQueueItem()}submitPOI(Ie){if(!this.enableSubmissionQueue)return this.api.performSubmission(l.qO.POI,Ie);this.submissionQueue.add(l.qO.POI,Ie),this.submissionQueue.processNextQueueItem()}showToastNotification(Ie){var Ae=this;return(0,h.Z)(function*(){yield(yield Ae.toastController.create({message:Ie,duration:3e3})).present()})()}showLoadingProgress(Ie){var Ae=this;return(0,h.Z)(function*(){yield(yield Ae.loadingController.create({message:Ie})).present()})()}dismissLoadingProgress(){var Ie=this;return(0,h.Z)(function*(){return Ie.loadingController.dismiss()})()}launchOCMWebPage(Ie){this.isUserAuthenticated(!0)&&(-1===Ie.indexOf("?")&&(Ie+="?"),Ie+="&auth="+this.getCurrentAuthToken()),Ie="https://openchargemap.org/site"+Ie,window.open(Ie,"_system")}launchWebPage(Ie){window.open(Ie,"_system")}isPlatform(Ie){return this.platform.is(Ie)}static \u0275fac=function(Ae){return new(Ae||oe)(B.LFG(be.eN),B.LFG(Y.z),B.LFG(te.l),B.LFG(C),B.LFG(Te.t4),B.LFG(ie.W),B.LFG(fe.i),B.LFG(de.sK),B.LFG(Me.yF),B.LFG(Me.HT),B.LFG(nt.N0),B.LFG(m.z),B.LFG(Pe.c))};static \u0275prov=B.Yz7({token:oe,factory:oe.\u0275fac,providedIn:"root"})}return oe})()},5957:(Bn,Ct,P)=>{"use strict";P.d(Ct,{z:()=>m});var h=P(9212);let m=(()=>{class te{c=new Map;constructor(){}subscribe(B,...Y){let C=this.c.get(B);C||this.c.set(B,C=[]),C.push(...Y)}unsubscribe(B,Y){if(!Y)return this.c.delete(B);const C=this.c.get(B);if(!C)return!1;const ie=C.indexOf(Y);return!(ie<0||(C.splice(ie,1),0===C.length&&this.c.delete(B),0))}publish(B,...Y){const C=this.c.get(B);return C?C.map(ie=>{try{return ie(...Y)}catch(fe){return console.error(fe),null}}):null}static \u0275fac=function(Y){return new(Y||te)};static \u0275prov=h.Yz7({token:te,factory:te.\u0275fac,providedIn:"root"})}return te})()},989:(Bn,Ct,P)=>{"use strict";P.d(Ct,{i:()=>Y});var h=P(9127),m=P(439),te=P(4669),l=P(8371),B=P(9212);let Y=(()=>{class C{api;poiManager;logging;journeys;favourites;routePolyline;constructor(fe,Pe,K){this.api=fe,this.poiManager=Pe,this.logging=K,this.journeys=[],this.favourites=[]}loadJourneys(){let fe=localStorage.getItem("journeys");if(null!=fe&&(this.journeys=JSON.parse(fe)),null!=this.journeys)for(let Pe of this.journeys)this.fetchAllJourneyPOIDetails(Pe)}fetchAllJourneyPOIDetails(fe){this.logging.log("Journeys - fetching poi details for Journey "+fe.Title);let Pe=new l.be;Pe.poiIdList=[];for(let K of fe.Stages)for(let be of K.WayPoints)for(let Te of be.PoiIDs)Pe.poiIdList.push(Te);this.api.fetchPOIListByParam(Pe).then(K=>{for(let be of K)this.updateStoredPOI(be)})}updateStoredPOI(fe){if(this.journeys.forEach(Pe=>{Pe.Stages.forEach(K=>{K.WayPoints.forEach(be=>{be.PoiIDs.forEach(Te=>{if(Te==fe.ID)if(null==be.PoiList){be.PoiList=[];let Me=new l.Qp("charging",1);Me.Poi=fe,Me.PoiID=fe.ID,be.PoiList.push(Me)}else for(let Me of be.PoiList)Me.PoiID==fe.ID&&(Me.Poi=fe)})})})}),null!=this.favourites)for(let Pe of this.favourites)"charging"==Pe.Type&&Pe.PoiID==fe.ID&&(Pe.Poi=fe)}saveJourneys(){let fe=JSON.parse(JSON.stringify(this.journeys));for(let K of fe)for(const be of K.Stages)for(let Te of be.WayPoints)for(let Me of Te.PoiList)Me.Poi=null,Me.Photos=null;const Pe=JSON.stringify(fe);localStorage.setItem("journeys",Pe)}addJourney(fe,Pe){let K=new l.vw;K.Title="Stage 1",null!=Pe&&K.WayPoints.push(Pe),fe.Stages.push(K),this.journeys.push(fe)}deleteJourney(fe){this.journeys=this.journeys.filter(Pe=>Pe.ID!=fe),this.saveJourneys()}getJourney(fe){let Pe=this.journeys.filter(K=>K.ID==fe);return Pe.length>0?Pe[0]:null}getJourneyStages(fe){return this.getJourney(fe).Stages}addJourneyWaypoint(fe,Pe,K){let be=this.getJourney(fe);if(null==Pe){let Te=new l.vw;Te.Title="Stage "+(be.Stages.length+1),Te.WayPoints.push(K),be.Stages.push(Te)}else{let Te=be.Stages[Pe];null==Te.WayPoints&&(Te.WayPoints=[]),Te.WayPoints.push(K)}}addJourneyStage(fe,Pe){return this.getJourney(fe).Stages.push(Pe)-1}setupTestJourneys(){this.journeys=[];let fe=new l.fw;fe.Title="New York to Brooklyn",fe.Notes="A little jaunt to Brooklyn",fe.Stages=[];let Pe=new l.vw,K=new l.kA;K.Notes="Starting point",K.Position=new l.wC(40,1.2),K.Title="Start",Pe.WayPoints.push(K);let be=new l.kA;be.Notes="Middle point",be.Position=new l.wC(40,1.33),be.Title="Middle",Pe.WayPoints.push(be);let Te=new l.kA;Te.Notes="End point",Te.Position=new l.wC(40,1.33),Te.Title="End",Pe.WayPoints.push(Te),fe.Stages.push(Pe),this.journeys.push(fe);let Me=new l.fw;Me.Title="Aberdeen to London",Me.Notes="Roadtrip",Me.Stages=[],this.journeys.push(Me)}calculateEnergyConsumptionkWh(fe,Pe,K=0,be){return fe*be}setRoutePolyline(fe){this.routePolyline=fe}getRoutePolyline(){return this.routePolyline}static \u0275fac=function(Pe){return new(Pe||C)(B.LFG(m.l),B.LFG(te.R),B.LFG(h.z))};static \u0275prov=B.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})}return C})()},9127:(Bn,Ct,P)=>{"use strict";P.d(Ct,{i:()=>te,z:()=>l});var h=P(553),m=P(9212),te=function(B){return B[B.VERBOSE=0]="VERBOSE",B[B.INFO=1]="INFO",B[B.WARNING=2]="WARNING",B[B.ERROR=3]="ERROR",B}(te||{});let l=(()=>{class B{logLevel;constructor(){this.logLevel=te.VERBOSE,h.N.production&&(this.logLevel=te.INFO)}log(C,ie=te.VERBOSE){console&&console.log&&ie>=this.logLevel&&console.log("["+te[ie]+"] {"+(new Date).toLocaleTimeString()+"} "+C)}static \u0275fac=function(ie){return new(ie||B)};static \u0275prov=m.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"})}return B})()},4669:(Bn,Ct,P)=>{"use strict";P.d(Ct,{R:()=>C});var h=P(5861),m=P(9127),te=P(439),l=P(3294),B=P(9212),Y=P(5957);let C=(()=>{class ie{api;events;logging;analytics;poiList;isRequestInProgress=!1;constructor(Pe,K,be,Te){this.api=Pe,this.events=K,this.logging=be,this.analytics=Te}refreshPOIList(Pe){var K=this;return(0,h.Z)(function*(){try{return K.poiList=yield K.fetchPOIList(Pe),K.events.publish("ocm:poiList:updated"),K.analytics.appEvent("Search","Fetched Results"),K.poiList.length}catch{return 0}})()}fetchPOIList(Pe){var K=this;return(0,h.Z)(function*(){K.isRequestInProgress=!0;try{let be=yield K.api.fetchPOIListByParam(Pe);return K.isRequestInProgress=!1,be&&be.length&&K.logging.log("fetched POI list ["+be.length+"]"),be}catch{return K.isRequestInProgress=!1,[]}})()}clearResults(){this.poiList=[],this.events.publish("ocm:poiList:cleared"),this.logging.log("clearing results after settings change",m.i.VERBOSE)}getPOIById(Pe,K=!1,be=!1){var Te=this;return(0,h.Z)(function*(){if(!be&&null!=Te.poiList){const nt=Te.poiList.find(Ce=>Ce.ID==Pe);if(nt)return nt}const Me={poiIdList:[Pe],enableCaching:!be,includeComments:!0},de=yield Te.api.fetchPOIListByParam(Me);return de&&de.length>0?(Te.poiList&&de[0].ID==Pe&&(Te.poiList=Te.poiList.filter(nt=>nt.ID!=Pe),Te.poiList.push(de[0]),Te.logging.log("POI refreshed in cache "+Pe)),de[0]):null})()}static \u0275fac=function(K){return new(K||ie)(B.LFG(te.l),B.LFG(Y.z),B.LFG(m.z),B.LFG(l.c))};static \u0275prov=B.Yz7({token:ie,factory:ie.\u0275fac,providedIn:"root"})}return ie})()},9159:(Bn,Ct,P)=>{"use strict";P.d(Ct,{W:()=>B});var h=P(5861),m=P(9127),te=P(9212),l=P(9862);let B=(()=>{class Y{http;logging;referenceData;filteredReferenceData;constructor(ie,fe){this.http=ie,this.logging=fe,this.loadCachedRefData()}refreshReferenceData(ie){var fe=this;return(0,h.Z)(function*(){try{const Pe=yield ie.fetchCoreReferenceData(null).toPromise();return fe.setCoreReferenceData(Pe),fe.setFilteredReferenceData(Pe),fe.logging.log("Got refreshed core ref data.",m.i.VERBOSE),fe.sortCoreReferenceData(),fe.cacheCurrentRefData(),!0}catch(Pe){return fe.logging.log("Error fetching core ref data:"+Pe),!1}})()}refreshFilteredReferenceData(ie,fe){ie.fetchCoreReferenceData(fe).subscribe(Pe=>{this.setFilteredReferenceData(Pe),this.sortCoreReferenceData(),this.logging.log("Got refreshed filtered reference data.",m.i.VERBOSE)},Pe=>{this.logging.log("Error fetching filtered reference data:"+Pe)})}setCoreReferenceData(ie){this.referenceData=ie}setFilteredReferenceData(ie){this.filteredReferenceData=ie}referenceDataLoaded(){return null!=this.referenceData}getCountries(ie=!1){return 1==ie?this.filteredReferenceData.Countries:this.referenceData.Countries}getCountryByID(ie){return this.getRefDataByID(this.referenceData.Countries,ie)}getConnectionTypes(ie=!1){return 1==ie?this.filteredReferenceData.ConnectionTypes:this.referenceData.ConnectionTypes}getConnectionTypeByID(ie){return this.getRefDataByID(this.referenceData.ConnectionTypes,ie)}getUsageTypes(ie=!1){return 1==ie?this.filteredReferenceData.UsageTypes:this.referenceData.UsageTypes.filter(fe=>fe.ID>0)}getUsageTypeByID(ie){return this.getRefDataByID(this.referenceData.UsageTypes,ie)}getStatusTypes(ie=!1){return 1==ie?this.filteredReferenceData.StatusTypes:this.referenceData.StatusTypes.filter(fe=>fe.ID>0)}getStatusTypeByID(ie){return this.getRefDataByID(this.referenceData.StatusTypes,ie)}getNetworkOperators(ie=!1){return 1==ie?this.filteredReferenceData.Operators:this.referenceData.Operators}getNetworkOperatorByID(ie){return this.getRefDataByID(this.referenceData.Operators,ie)}getDataProviders(ie=!1){return 1==ie?this.filteredReferenceData.DataProviders:this.referenceData.DataProviders}getDataProviderByID(ie){return this.getRefDataByID(this.referenceData.DataProviders,ie)}getCheckinStatusTypes(ie=!1,fe=!0){let Pe=null;return Pe=1==ie?this.filteredReferenceData.CheckinStatusTypes:this.referenceData.CheckinStatusTypes,fe&&(Pe=Pe.filter(K=>!1===K.IsAutomatedCheckin)),Pe}getCheckinStatusTypeByID(ie){return this.getRefDataByID(this.referenceData.CheckinStatusTypes,ie)}getCommentTypes(ie=!1,fe=!0){let Pe;return Pe=1==ie?this.filteredReferenceData.UserCommentTypes:this.referenceData.UserCommentTypes,fe&&(Pe=Pe.filter(K=>100!==K.ID&&110!==K.ID)),Pe}getCommentTypeByID(ie){return this.getRefDataByID(this.referenceData.UserCommentTypes,ie)}getSubmissionStatusTypes(ie=!1){return 1==ie?this.filteredReferenceData.SubmissionStatusTypes:this.referenceData.SubmissionStatusTypes}getSubmissionStatusTypesByID(ie){return this.getRefDataByID(this.referenceData.SubmissionStatusTypes,ie)}getChargingLevelTypes(ie=!1){return 1==ie?this.filteredReferenceData.ChargerTypes:this.referenceData.ChargerTypes}getChargingLevelTypeByID(ie){return this.getRefDataByID(this.referenceData.ChargerTypes,ie)}getOutputCurrentTypes(ie=!1){return ie?this.referenceData.CurrentTypes:this.filteredReferenceData.CurrentTypes}getOutputCurrentTypeByID(ie){return this.getRefDataByID(this.referenceData.CurrentTypes,ie)}loadCachedRefData(){const ie=localStorage.getItem("referenceData");if(null==ie)this.http.get("./assets/data/CoreReferenceData.json").subscribe(fe=>{this.logging.log("Using bundled reference data as cached ref data."),this.setCoreReferenceData(fe),this.setFilteredReferenceData(fe)});else{let fe=JSON.parse(ie);this.setCoreReferenceData(fe)}this.setFilteredReferenceData(this.referenceData)}cacheCurrentRefData(){null!=this.referenceData&&(this.referenceData.CacheDate=new Date,localStorage.setItem("referenceData",JSON.stringify(this.referenceData)))}getRefDataByID(ie,fe){if(""!==fe&&(fe=parseInt(fe,10)),null!=ie)for(let Pe=0;Pefe.Title?1:0}getMetadataValueByMetadataFieldID(ie,fe){if(""!==fe&&(fe=parseInt(fe,10)),null!=ie)for(let Pe=0;Pe{"use strict";P.d(Ct,{v:()=>nt});var h=P(9903),m=P(3955),te=P(866),l=P(9127),B=P(5861),Y=P(5592),C=P(3052),ie=P(553),fe=P(8371);class Pe{events;logging;mapAPIType;mapReady;providerError;mapCanvasID;map;markerList;polylinePath;mapkitUtils;constructor(oe,xe){this.events=oe,this.logging=xe,this.events=oe,this.mapAPIType=m.b.MAPKIT_JS,this.mapReady=!1,this.markerList=new Map,this.mapkitUtils=new K}initAPI(){mapkit&&mapkit.init({authorizationCallback:function(oe){oe(ie.N.mapKitToken)}})}disposeMap(){}initMap(oe,xe,Ie){this.mapCanvasID=oe;let Ae=!0;if(Ae=!(typeof mapkit>"u"),!Ae)return this.logging.log("Call to initMap before API is ready:"+m.b[this.mapAPIType],l.i.ERROR),this.mapReady=!1,!1;this.initAPI(),null==this.map&&(document.getElementById(oe),this.map=new mapkit.Map(oe),this.map.annotationForCluster=function(Ue){"poi"===Ue.clusteringIdentifier&&(Ue.title="Charging Location",Ue.subtitle=Ue.memberAnnotations.reduce((ct,X)=>ct+X.population,0))},this.mapReady=!0,mapkit.addEventListener("configuration-change",Ue=>{this.events.publish("ocm:mapping:ready")}),this.map.addEventListener("scroll-end",Ue=>{this.events.publish("ocm:mapping:dragend")}),this.map.addEventListener("zoom-end",Ue=>{this.events.publish("ocm:mapping:zoom")}))}clearMarkers(){null!=this.markerList&&this.markerList.forEach((oe,xe)=>{try{this.map.removeAnnotation(xe)}catch{}}),this.markerList=new Map}showPOIListOnMap(oe,xe){let Ue=0,X=0==this.markerList.size;if(null!=oe){let me=[];for(let Fe=0;Fe{const it=ke.target.poi;this.events.publish("ocm:poi:selected",{poi:it,poiId:it.ID})}),this.markerList.set(De.ID,Ne),me.push(Ne),Ue++}}me.length>0&&(this.map.addAnnotations(me),X&&this.map.showItems(me,{animate:!0,padding:new mapkit.Padding(60,25,60,25)})),this.logging.log(Ue+" new map markers added out of a total "+this.markerList.size)}}refreshMapLayout(){null!=this.map&&setTimeout(()=>{this.logging.log("MapKit: refreshMapLayout",l.i.VERBOSE)},200)}setMapCenter(oe,xe){this.map&&(this.map.setCenterAnimated(new mapkit.Coordinate(oe.coords.latitude,oe.coords.longitude),!1),xe&&this.setMapZoom(xe))}getMapCenter(){return new Y.y(xe=>{if(null!=this.map){let Ie=this.map.center;null!=Ie&&(xe.next(new C.jR(Ie.latitude,Ie.longitude)),xe.complete())}})}setMapZoom(oe){const xe=Math.min(oe,28),Ie=this.mapkitUtils.deltaFromZoomLevel(this.map,this.map.center,Math.round(xe)),Ae=new mapkit.CoordinateSpan(111*Ie.latitudeDelta,111*Ie.longitudeDelta),ye=new mapkit.CoordinateRegion(this.map.center,Ae);this.map.setRegionAnimated(ye)}getMapZoom(){return new Y.y(xe=>{this.logging.log("MapKit: getMapZoom not supported",l.i.VERBOSE),xe.next(this.map._impl.zoomLevel),xe.complete()})}setMapType(oe){this.logging.log("MapKit: skipped setting Map Type :"+oe)}getMapBounds(){return new Y.y(xe=>{let Ie=new Array,Ae=this.map.region.toBoundingRegion();Ie.push(new C.wC(Ae.southLatitude,Ae.westLongitude)),Ie.push(new C.wC(Ae.northLatitude,Ae.eastLongitude)),xe.next(Ie),xe.complete()})}moveToMapBounds(oe){this.logging.log("MapKit: map bounds not implemented")}renderMap(oe,xe,Ie){return document.getElementById(this.mapCanvasID).style.height=xe+"px",this.mapReady&&this.showPOIListOnMap(oe,Ie),!0}renderPolyline(oe){this.clearPolyline()}clearPolyline(){null!=this.polylinePath&&this.polylinePath.setMap(null)}focusMap(){}unfocusMap(){}placeSearch(oe){return(0,B.Z)(function*(){let xe=new mapkit.Search({getsUserLocation:!0});return new Promise(function(){var Ie=(0,B.Z)(function*(Ae,ye){let Ue=[];xe.search(oe,function(){var ct=(0,B.Z)(function*(X,ve){X&&ye(X),Ue=[],ve.places.map(me=>{let Fe=new fe.nS;Fe.Title=me.name,Fe.Address=me.formattedAddress,Fe.Type="place",Fe.Location=new C.wC(me.coordinate.latitude,me.coordinate.longitude),Ue.push(Fe)}),Ae(Ue)});return function(X,ve){return ct.apply(this,arguments)}}())});return function(Ae,ye){return Ie.apply(this,arguments)}}())})()}addPOILayer(oe){this.logging.log("Add POI Layer not implemented in this provider.")}}class K{mercatorRadius=85445659.44705395;mercatorOffset=268435456;longitudeToPixelSpaceX(oe){return Math.round(this.mercatorOffset+this.mercatorRadius*oe*Math.PI/180)}latitudeToPixelSpaceY(oe){return Math.round(this.mercatorOffset-this.mercatorRadius*Math.log((1+Math.sin(oe*Math.PI/180))/(1-Math.sin(oe*Math.PI/180)))/2)}pixelSpaceXToLongitude(oe){return(Math.round(oe)-this.mercatorOffset)/this.mercatorRadius*180/Math.PI}pixelSpaceYToLatitude(oe){return 180*(Math.PI/2-2*Math.atan(Math.exp((Math.round(oe)-this.mercatorOffset)/this.mercatorRadius)))/Math.PI}deltaFromZoomLevel(oe,xe,Ie){let Ae=this.longitudeToPixelSpaceX(xe.longitude),ye=this.latitudeToPixelSpaceY(xe.latitude),ct=Math.pow(2,20-Ie),X=oe.visibleMapRect.size,ve=X.width*ct,me=X.height*ct,Fe=Ae-ve/2,De=ye-me/2,ze=this.pixelSpaceXToLongitude(Fe),Ht=this.pixelSpaceXToLongitude(Fe+ve)-ze,dn=this.pixelSpaceYToLatitude(De);return{latitudeDelta:-1*(this.pixelSpaceYToLatitude(De+me)-dn),longitudeDelta:Ht}}}var be=P(9212),Te=P(5957),Me=P(9862);let de=(()=>{class Ce extends h.k{constructor(xe,Ie,Ae){super(xe,Ie,Ae),this.mapAPIType=m.b.MAPTILER,this.mapTileSet="https://maps.tilehosting.com/styles/streets/style.json?key=Gs9z7krALe3CGI60d5cL"}initAPI(){}static \u0275fac=function(Ie){return new(Ie||Ce)(be.LFG(Te.z),be.LFG(l.z),be.LFG(Me.eN))};static \u0275prov=be.Yz7({token:Ce,factory:Ce.\u0275fac})}return Ce})(),nt=(()=>{class Ce{logging;http;map;mapCentreMarker;mapsInitialised;mapAPIReady;mapOptions;searchMarker;errorMessage;parentAppContext;mapProvider;debouncedMapPositionUpdate;events;isFocused=!1;constructor(xe,Ie,Ae){this.logging=Ie,this.http=Ae,this.events=xe,this.mapOptions=new m._,this.mapAPIReady=!1,this.mapsInitialised=!1,this.setMapAPI(this.mapOptions.mapAPI);let ye=this;this.debouncedMapPositionUpdate=te.c.debounce(()=>{this.logging.log("signaling map position change:"),ye.mapProvider.mapReady&&ye.getMapCenter().subscribe(Ue=>{null!=Ue?(this.logging.log("Map centre/zoom changed, updating search position:"+Ue),this.updateMapCentrePos(Ue.coords.latitude,Ue.coords.longitude,!1)):this.logging.log("Map centre/zoom changed - map not ready to change centre pos:")})},300,!1)}setParentAppContext(xe){this.parentAppContext=xe}setMapAPI(xe){this.mapOptions.mapAPI=xe,this.mapOptions.mapAPI==m.b.MAPBOX&&(this.mapProvider=new h.k(this.events,this.logging,this.http)),this.mapOptions.mapAPI==m.b.MAPKIT_JS&&(this.mapProvider=new Pe(this.events,this.logging)),this.mapOptions.mapAPI==m.b.MAPTILER&&(this.mapProvider=new de(this.events,this.logging,this.http))}isMapReady(){return null!=this.mapProvider&&this.mapProvider.mapReady}externalAPILoaded(xe){this.mapAPIReady=!0,this.logging.log("Mapping API Loaded: "+m.b[xe])}initMap(xe){if(!this.isMapReady())if(null!=this.mapProvider)this.mapsInitialised&&this.logging.log("initMap: Map provider already initialised"),this.logging.log("Mapping Manager: Init "+m.b[this.mapProvider.mapAPIType]),this.mapProvider.initMap(xe,this.mapOptions,this);else{if(this.mapsInitialised)return void this.logging.log("initMap: map already initialised");this.logging.log("initMap: "+this.mapOptions.mapAPI)}}mapManipulationPerformed(xe){this.logging.log("map manipulated:"+xe),("drag"==xe||"zoom"==xe)&&this.debouncedMapPositionUpdate()}updateMapSize(){this.mapProvider&&this.mapProvider.refreshMapLayout()}updateMapCentrePos(xe,Ie,Ae,ye){Ae&&null!=this.mapProvider&&this.mapProvider.setMapCenter(new C.jR(xe,Ie),ye),this.mapOptions.mapCentre=new C.jR(xe,Ie)}moveToMapBounds(xe){this.mapProvider.moveToMapBounds(xe)}refreshMapView(xe,Ie,Ae){return null!=this.mapProvider?(this.logging.log("Mapping Manager: renderMap "+m.b[this.mapProvider.mapAPIType]),this.isMapReady()?this.mapProvider.renderMap(Ie,xe,this.parentAppContext):this.logging.log("refreshMapView: map provider not initialised..")):this.logging.log("Unsupported Map API: refreshMapView",l.i.ERROR),!0}setMapType(xe){this.mapOptions.mapType!=xe&&(this.mapOptions.mapType=xe,this.isMapReady()&&null!=this.mapProvider?(this.logging.log("Changing map type:"+xe),this.mapProvider.setMapType(xe)):this.logging.log("Map type set, maps not initialised yet."))}unfocusMap(){this.logging.log("[mapping] Unfocus Map."),this.isFocused=!1,this.mapProvider.unfocusMap()}focusMap(){this.logging.log("[mapping] Focus Map."),this.isFocused=!0,this.mapProvider.focusMap()}getMapBounds(){return this.mapProvider.getMapBounds()}getMapZoom(){return this.mapProvider.getMapZoom()}setMapZoom(xe){this.mapProvider.setMapZoom(xe)}getMapCenter(){return this.mapProvider.getMapCenter()}showPOIOnStaticMap(xe,Ie,Ae=!1,ye=!1,Ue=200,ct=200){let X=document.getElementById(xe);if(null!=X){let me=Ie.AddressInfo.Latitude,Fe=Ie.AddressInfo.Longitude;Ue>640&&(Ue=640),ct>640&&(ct=640);let De=Ue,ze=ct,Ke="https://maps.googleapis.com/maps/api/staticmap?center="+me+","+Fe+"&zoom=14&size="+De+"x"+ze+"&maptype=roadmap&markers=color:blue%7Clabel:A%7C"+me+","+Fe+"&sensor=false",Ht="";Ht+=1==Ae?"
"+te.c.formatMapLink(Ie,'
',ye)+"
":'
',X.innerHTML=Ht}}renderPolyline(xe){this.mapProvider.renderPolyline(xe)}clearPolyline(){this.mapProvider.clearPolyline()}clearMarkers(){this.logging.log("mapping: clearing markers"),this.mapProvider.clearMarkers()}addPOILayer(xe){this.mapProvider.addPOILayer(xe)}static \u0275fac=function(Ie){return new(Ie||Ce)(be.LFG(Te.z),be.LFG(l.z),be.LFG(Me.eN))};static \u0275prov=be.Yz7({token:Ce,factory:Ce.\u0275fac,providedIn:"root"})}return Ce})()},3955:(Bn,Ct,P)=>{"use strict";P.d(Ct,{_:()=>te,b:()=>m});var h=P(553),m=function(l){return l[l.GOOGLE_WEB=1]="GOOGLE_WEB",l[l.GOOGLE_NATIVE=2]="GOOGLE_NATIVE",l[l.LEAFLET=3]="LEAFLET",l[l.MAPBOX=4]="MAPBOX",l[l.MAPKIT_JS=5]="MAPKIT_JS",l[l.MAPTILER=6]="MAPTILER",l}(m||{});class te{enableClustering;resultBatchID;useMarkerIcons;useMarkerAnimation;enableTrackingMapCentre;enableSearchByWatchingLocation;mapCentre;searchDistanceKM;iconSet;mapAPI;mapMoveQueryRefreshMS;requestSearchUpdate;enableSearchRadiusIndicator;mapType;minZoomLevel;onMapMoveCompleted;constructor(){this.enableClustering=!1,this.resultBatchID=-1,this.useMarkerIcons=!0,this.useMarkerAnimation=!0,this.enableTrackingMapCentre=!1,this.enableSearchByWatchingLocation=!1,this.mapCentre=null,this.mapAPI=h.N.defaultMapProvider,this.mapType="ROADMAP",this.searchDistanceKM=1e5,this.mapMoveQueryRefreshMS=300,this.enableSearchRadiusIndicator=!1,this.minZoomLevel=2}}},9903:(Bn,Ct,P)=>{"use strict";P.d(Ct,{k:()=>de});var h=P(5861),m=P(866),te=P(3955),l=P(5592),B=P(3052),Y=P(9127),C=P(2574),fe=P(553),Pe=P(8371),K=P(9212),be=P(5957),Te=P(9862);let de=(()=>{class nt{events;logging;http;mapAPIType;mapReady;providerError;mapCanvasID;map;markerList;polylinePath;_isMapAnimating=!1;searchMarker;mapTileSet;constructor(oe,xe,Ie){this.events=oe,this.logging=xe,this.http=Ie,this.events=oe,this.mapAPIType=te.b.MAPBOX,this.mapReady=!1,this.markerList=new Map}initAPI(){C&&Object.getOwnPropertyDescriptor(C,"accessToken").set(fe.N.mapBoxToken)}disposeMap(){this.map&&(this.logging.log("Disposing map",Y.i.INFO),this.map.remove())}getCurrentMapTileSet(oe){return"SATELLITE"==oe?"mapbox://styles/mapbox/satellite-streets-v12?optimize=true":"mapbox://styles/mapbox/streets-v12?optimize=true"}flyAroundPoint(oe){if(this._isMapAnimating){this.map.rotateTo(oe/100%360,{duration:0});const xe=this;requestAnimationFrame(function(Ie){xe.flyAroundPoint(Ie)})}}initMap(oe,xe,Ie){this.mapCanvasID=oe;let Ae=!0;if(Ae=!(typeof C>"u"),!Ae)return this.logging.log("Call to initMap before API is ready:"+te.b[this.mapAPIType],Y.i.ERROR),this.mapReady=!1,!1;if(null==this.map){let X=function(me){return me*(2-me)};document.getElementById(oe),this.initAPI(),this.map=new C.Map({container:oe,style:this.getCurrentMapTileSet(xe.mapType),zoom:15,attributionControl:!1}),this.map.addControl(new C.AttributionControl({compact:!0,customAttribution:["Open Charge Map Contributors"]})),this.map.addControl(new C.NavigationControl),this.mapReady=!0,this.map.getCanvas().focus();let Ue=100,ct=25;this.map.getCanvas().addEventListener("keydown",me=>{me.preventDefault(),38===me.which?this.map.panBy([0,-Ue],{easing:X}):40===me.which?this.map.panBy([0,Ue],{easing:X}):37===me.which?this.map.easeTo({bearing:this.map.getBearing()-ct,easing:X}):39===me.which?this.map.easeTo({bearing:this.map.getBearing()+ct,easing:X}):32===me.which&&(this._isMapAnimating?this._isMapAnimating=!1:(this._isMapAnimating=!0,this.flyAroundPoint(0)))},!0),this.map.on("load",()=>{this.events.publish("ocm:mapping:ready")});let ve=m.c.debounce(()=>{this.getMapCenter().subscribe(me=>{this.searchMarker.setLngLat(new C.LngLat(me.coords.longitude,me.coords.latitude))})},500,!1);this.map.on("move",()=>{this.searchMarker&&ve()}),this.map.on("moveend",()=>{this.events.publish("ocm:mapping:dragend"),xe.onMapMoveCompleted&&xe.onMapMoveCompleted()}),this.map.on("zoomend",()=>{this.events.publish("ocm:mapping:zoom")})}}clearMarkers(){null!=this.markerList&&this.markerList.forEach((oe,xe)=>{oe.remove()}),this.markerList=new Map}showPOIListOnMap(oe,xe,Ie=!0){let ye=this.map,Ue=new C.LngLatBounds,ct=0;if(ye.getZoom(),null!=oe){for(let De=0;De{const it=ke.currentTarget.poi;this.events.publish("ocm:poi:selected",{poiId:it.ID,poi:it})}),Ue.extend(We.getLngLat()),this.markerList.set(ze.ID,We),ct++}}this.logging.log(ct+" new map markers added out of a total "+this.markerList.size)}if(null!=oe&&oe.length>0)if(null==xe||xe.appConfig.enableLiveMapQuerying)null==ye.getCenter()&&ye.setCenter(Ue.getCenter());else{this.logging.log("Fitting to marker bounds:"+Ue),ye.setCenter(Ue.getCenter()),this.logging.log("zoom before fit bounds:"+ye.getZoom()),ye.fitBounds(Ue);let Fe=ye.getZoom();ye.setZoom(Fe<6?6:Fe)}}refreshMapLayout(){null!=this.map&&setTimeout(()=>{this.logging.log("MapBoxGL: refreshMapLayout",Y.i.VERBOSE),this.map.resize()},200)}setMapCenter(oe){this.mapReady&&(this.map.setCenter(new C.LngLat(oe.coords.longitude,oe.coords.latitude)),this.searchMarker||(this.searchMarker=new C.Marker({color:"#99ccff",anchor:"bottom"}).setLngLat(new C.LngLat(oe.coords.longitude,oe.coords.latitude)).addTo(this.map),this.searchMarker.getElement().addEventListener("click",()=>{let xe=this.searchMarker.getLngLat();this.events.publish("ocm:mapping:addpoi",new B.wC(xe.lat,xe.lng))})))}getMapCenter(){return new l.y(xe=>{if(null!=this.map){let Ie=this.map.getCenter();null!=Ie&&(xe.next(new B.jR(Ie.lat,Ie.lng)),xe.complete())}})}setMapZoom(oe){this.map.setZoom(oe)}getMapZoom(){return new l.y(xe=>{let Ie=this.map.getZoom();xe.next(Ie),xe.complete()})}setMapType(oe){this.map.setStyle(this.getCurrentMapTileSet(oe))}getMapBounds(){return new l.y(xe=>{let Ie=new Array,Ae=this.map.getBounds();Ie.push(new B.wC(Ae.getSouthWest().lat,Ae.getSouthWest().lng)),Ie.push(new B.wC(Ae.getNorthEast().lat,Ae.getNorthEast().lng)),xe.next(Ie),xe.complete()})}moveToMapBounds(oe){this.map.fitBounds(new C.LngLatBounds(new C.LngLat(oe.southWest.longitude,oe.southWest.latitude),new C.LngLat(oe.northEast.longitude,oe.northEast.latitude)))}renderMap(oe,xe,Ie){return document.getElementById(this.mapCanvasID).style.height=xe+"px",this.mapReady&&this.showPOIListOnMap(oe,Ie),!0}renderPolyline(oe){this.clearPolyline()}clearPolyline(){null!=this.polylinePath&&this.polylinePath.setMap(null)}focusMap(){}unfocusMap(){}placeSearch(oe,xe,Ie){var Ae=this;return(0,h.Z)(function*(){let ye=`https://api.mapbox.com/geocoding/v5/mapbox.places/${oe||Ie+","+xe}.json?access_token=${fe.N.mapBoxToken}`;return new Promise(function(){var Ue=(0,h.Z)(function*(ct,X){Ae.http.get(ye).toPromise().then(ve=>{let me=[];me=[],ve.features&&ve.features.map(Fe=>{let De=new Pe.nS;De.Title=Fe.place_name,De.Address=Fe.place_name,De.Type="place",De.Location=new B.wC(Fe.center[1],Fe.center[0]),De.Attribution=ve.attribution,me.push(De)}),ct(me)})});return function(ct,X){return Ue.apply(this,arguments)}}())})()}addPOILayer(oe){this.logging.log("Add POI Layer not implemented in this provider."),this.showPOIListOnMap(oe,null,!1)}static \u0275fac=function(xe){return new(xe||nt)(K.LFG(be.z),K.LFG(Y.z),K.LFG(Te.eN))};static \u0275prov=K.Yz7({token:nt,factory:nt.\u0275fac})}return nt})()},553:(Bn,Ct,P)=>{"use strict";P.d(Ct,{N:()=>h});const h={name:"prod",version:"8.6.0",production:!0,analyticsId:"",googleMapsKey:"",mapBoxToken:"pk.eyJ1Ijoid2VicHJvZnVzaW9uIiwiYSI6ImNrdHZlc2N5dTI5Zjcydm8zYWFwc2JnbTMifQ.M7b5SOzbPcg_8XAHCOeP0w",mapKitToken:"",enableStaticMaps:!1,defaultMapProvider:4,apiBase:"https://api.openchargemap.io",apiKey:"9bb03e5b-0fb2-4916-9b2b-26c6bd27a56a",enabledFeatures:["MAP","ADD_COMMENT","ADD_PHOTO","FAVOURITES","FILTER_OPTIONS_BY_COUNTRY","ADD_POI","EDIT_POI","LAYERS"]}},3108:(Bn,Ct,P)=>{"use strict";var h=P(6593),m=P(9212),te=P(5086),l=P(2618),B=P(6814),Y=P(6223),C=P(451);let ie=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[B.ez,Y.u5,C.Pc,l.aw,te.e]})}return fn})(),fe=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[B.ez,Y.u5,C.Pc,l.aw,te.e]})}return fn})(),Pe=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[B.ez,Y.u5,C.Pc,l.aw,te.e]})}return fn})();var K=P(4606),be=P(9862),Te=P(6800),Me=P(703),de=P(7346);class nt{http;prefix;suffix;constructor(Li,gn="/assets/i18n/",Fn=".json"){this.http=Li,this.prefix=gn,this.suffix=Fn}getTranslation(Li){return this.http.get(`${this.prefix}${Li}${this.suffix}`)}}var Ce=P(5861),oe=P(1847),xe=P(3247),Ie=P(8767),Ae=P(4292),ye=P(6470);function Ue(fn,Li){if(1&fn){const gn=m.EpF();m.TgZ(0,"div"),m._uU(1," You are not signed in. "),m.TgZ(2,"button",5),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.showSignInModal())}),m._uU(3),m.ALo(4,"translate"),m.qZA()()}2&fn&&(m.xp6(3),m.Oqu(m.lcZ(4,1,"ocm.general.signIn")))}function ct(fn,Li){if(1&fn&&(m.TgZ(0,"div")(1,"ion-card")(2,"ion-item")(3,"ion-avatar",6),m._UZ(4,"img",7),m.qZA(),m.TgZ(5,"h2"),m._uU(6),m.qZA()(),m.TgZ(7,"ion-card-content")(8,"p"),m._uU(9),m.qZA(),m.TgZ(10,"p"),m._uU(11),m.qZA()(),m.TgZ(12,"ion-item")(13,"ion-note",8),m._UZ(14,"ion-icon",9),m._uU(15),m.qZA()()()()),2&fn){const gn=m.oxw();m.xp6(4),m.s9C("src",gn.userProfile.ProfileImageURL,m.LSH),m.xp6(2),m.Oqu(gn.userProfile.Username),m.xp6(3),m.hij(" ",gn.userProfile.Profile,""),m.xp6(2),m.hij(" Date Joined: ",gn.userProfile.DateCreated," "),m.xp6(4),m.hij(" ",gn.userProfile.ReputationPoints," Contributor Points ")}}let X=(()=>{class fn{appManager;nav;translate;modalController;userProfile;constructor(gn,Fn,Jt,Bi){this.appManager=gn,this.nav=Fn,this.translate=Jt,this.modalController=Bi}ionViewDidEnter(){this.userProfile=this.appManager.getUserProfile(),null!=this.userProfile&&this.appManager.isUserAuthenticated(!0)?this.refreshProfileView():this.showSignInModal(),this.appManager.analytics.viewEvent("Profile")}refreshProfileView(){this.userProfile=this.appManager.getUserProfile()}showSignInModal(){this.modalController.create({component:Ie.F,componentProps:{Profile:this.userProfile}}).then(gn=>{gn.onDidDismiss().then(()=>{this.refreshProfileView()}),gn.present()})}close(){this.modalController.dismiss()}static \u0275fac=function(Fn){return new(Fn||fn)(m.Y36(ye.c),m.Y36(de.SH),m.Y36(l.sK),m.Y36(C.IN))};static \u0275cmp=m.Xpm({type:fn,selectors:[["ng-component"]],decls:14,vars:5,consts:[[1,"profile-page","ion-padding"],[4,"ngIf"],["slot","end"],[3,"click"],["name","close","slot","start"],["ion-button","",3,"click"],["slot","start"],[3,"src"],["item-left",""],["name","star"]],template:function(Fn,Jt){1&Fn&&(m.TgZ(0,"ion-header")(1,"ion-toolbar")(2,"ion-title"),m._uU(3),m.ALo(4,"translate"),m.qZA()()(),m.TgZ(5,"ion-content",0),m.YNc(6,Ue,5,3,"div",1)(7,ct,16,5,"div",1),m.qZA(),m.TgZ(8,"ion-footer")(9,"ion-toolbar")(10,"ion-buttons",2)(11,"ion-button",3),m.NdJ("click",function(){return Jt.close()}),m._UZ(12,"ion-icon",4),m._uU(13," Close "),m.qZA()()()()),2&Fn&&(m.xp6(3),m.hij(" ",m.lcZ(4,3,"ocm.navigation.profile.sectionTitle")," "),m.xp6(3),m.Q6J("ngIf",null==Jt.userProfile),m.xp6(),m.Q6J("ngIf",null!=Jt.userProfile))},dependencies:[B.O5,C.BJ,C.YG,C.Sm,C.PM,C.FN,C.W2,C.fr,C.Gu,C.gu,C.Ie,C.uN,C.wd,C.sr,l.X$],encapsulation:2})}return fn})();var ve=P(9127),me=P(553),Fe=P(6662),De=P(3294),ze=P(866),Ke=P(9236),Ht=P(8062),dn=P(2726);const _n=(0,dn.fo)("PushNotifications",{}),it=(0,dn.fo)("StatusBar"),Qt=(0,dn.fo)("SplashScreen",{web:()=>P.e(4485).then(P.bind(P,4485)).then(fn=>new fn.SplashScreenWeb)}),mt=(0,dn.fo)("App",{web:()=>P.e(2912).then(P.bind(P,2912)).then(fn=>new fn.AppWeb)});var an=P(5957);function tt(fn,Li){if(1&fn){const gn=m.EpF();m.TgZ(0,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.openRoutePlannerModal())}),m._UZ(1,"ion-icon",12),m.TgZ(2,"ion-label"),m._uU(3," Route Planner "),m.qZA()()}}function pt(fn,Li){if(1&fn){const gn=m.EpF();m.TgZ(0,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.add())}),m._UZ(1,"ion-icon",13),m.TgZ(2,"ion-label"),m._uU(3),m.ALo(4,"translate"),m.qZA()()}2&fn&&(m.xp6(3),m.hij(" ",m.lcZ(4,1,"ocm.general.addLocation")," "))}function Xt(fn,Li){if(1&fn){const gn=m.EpF();m.TgZ(0,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.journeys())}),m._UZ(1,"ion-icon",12),m.TgZ(2,"ion-label"),m._uU(3," Journeys "),m.qZA()()}}function bn(fn,Li){if(1&fn){const gn=m.EpF();m.TgZ(0,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.addLayer())}),m._UZ(1,"ion-icon",14),m.TgZ(2,"ion-label"),m._uU(3," Add Layer "),m.qZA()()}}function Cn(fn,Li){if(1&fn){const gn=m.EpF();m.ynx(0),m.TgZ(1,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.signIn())}),m._UZ(2,"ion-icon",15),m.TgZ(3,"ion-label"),m._uU(4),m.ALo(5,"translate"),m.qZA()(),m.BQk()}2&fn&&(m.xp6(4),m.hij(" ",m.lcZ(5,1,"ocm.general.signIn")," "))}function It(fn,Li){if(1&fn){const gn=m.EpF();m.ynx(0),m.TgZ(1,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.profile())}),m._UZ(2,"ion-icon",15),m.TgZ(3,"ion-label"),m._uU(4),m.ALo(5,"translate"),m.qZA()(),m.TgZ(6,"ion-item",9),m.NdJ("click",function(){m.CHM(gn);const Jt=m.oxw();return m.KtG(Jt.signOut())}),m._UZ(7,"ion-icon",16),m.TgZ(8,"ion-label"),m._uU(9),m.ALo(10,"translate"),m._UZ(11,"br"),m.TgZ(12,"small",17),m._uU(13),m.qZA()()(),m.BQk()}if(2&fn){const gn=m.oxw();m.xp6(4),m.hij(" ",m.lcZ(5,3,"ocm.navigation.profile.sectionTitle")," "),m.xp6(5),m.hij(" ",m.lcZ(10,5,"ocm.general.signOut")," "),m.xp6(4),m.hij(" ",gn.getUserName(),"")}}const pe=()=>["/search"];let lt=(()=>{class fn{platform;translate;mapping;modalController;appManager;logger;analytics;events;enabledFeatures;constructor(gn,Fn,Jt,Bi,ut,he,_e,ot){this.platform=gn,this.translate=Fn,this.mapping=Jt,this.modalController=Bi,this.appManager=ut,this.logger=he,this.analytics=_e,this.events=ot,this.logger.log("Environment: "+me.N.name),this.initializeApp(),this.enabledFeatures=me.N.enabledFeatures,1!=ut.searchSettings.EnableAdvancedEditorFeatures&&(this.enabledFeatures=this.enabledFeatures.filter(yt=>"LAYERS"!=yt))}configurePushNotifications(){_n.register(),_n.addListener("registration",gn=>{this.logger.log("Push registration success, token: "+gn.value),this.appManager.savePushRegistration(gn.value)}),_n.addListener("registrationError",gn=>{this.logger.log("Error on registration: "+JSON.stringify(gn))}),_n.addListener("pushNotificationReceived",gn=>{this.logger.log("Push received: "+JSON.stringify(gn),ve.i.INFO)}),_n.addListener("pushNotificationActionPerformed",gn=>{this.logger.log("Push action performed: "+JSON.stringify(gn))})}isUserAuthenticated(){return this.appManager.isUserAuthenticated()}getUserName(){let gn=this.appManager.getUserProfile();return gn?gn.EmailAddress?gn.EmailAddress:gn.Username:"Not Signed In"}initializeApp(){var gn=this;this.platform.ready().then(()=>{this.platform.is("capacitor")&&(it.show(),Qt.hide()),this.translate.addLangs(this.appManager.getLanguages().map(Fn=>Fn.code)),this.translate.setDefaultLang("en"),null!=this.appManager.searchSettings.Language?this.translate.use(this.appManager.searchSettings.Language):this.translate.currentLang||this.translate.use("en"),this.translate.get("ocm.search.performSearch").toPromise().then(Fn=>{}),this.analytics.init(me.N.analyticsId).then(()=>{this.analytics.setAppVersion(me.N.version),this.analytics.appEvent("Startup","App Loaded")}).catch(Fn=>this.logger.log("Error starting analytics")),this.events.subscribe("ocm:mapping:addpoi",function(){var Fn=(0,Ce.Z)(function*(Jt){ze.c.isFeatureEnabled("ADD_POI")&&gn.add(Jt)});return function(Jt){return Fn.apply(this,arguments)}}()),(this.platform.is("ios")||this.platform.is("android"))&&(this.configurePushNotifications(),this.checkForAppOpenUrl())})}checkForAppOpenUrl(){return(0,Ce.Z)(function*(){mt.addListener("appUrlOpen",Fn=>{alert("App (re)opened with URL: "+Fn.url)});let gn=yield mt.getLaunchUrl();gn&&gn.url&&alert("App opened with URL: "+gn.url)})()}openRoutePlannerModal(){var gn=this;return(0,Ce.Z)(function*(){gn.mapping.unfocusMap();const Fn=yield gn.modalController.create({component:xe.u});Fn.onDidDismiss().then(Jt=>{gn.mapping.focusMap()}),yield Fn.present()})()}continueAdd(gn){var Fn=this;return(0,Ce.Z)(function*(){const Jt=yield Fn.modalController.create({component:Fe.Y,componentProps:{startPos:gn}});Jt.onDidDismiss().then(Bi=>{Fn.mapping.focusMap()}),yield Jt.present()})()}add(gn){var Fn=this;return(0,Ce.Z)(function*(){if(Fn.mapping.unfocusMap(),!Fn.appManager.isUserAuthenticated(!0)){const Jt=yield Fn.modalController.create({component:Ie.F});return Jt.onDidDismiss().then(function(){var Bi=(0,Ce.Z)(function*(ut){Fn.mapping.focusMap(),Fn.appManager.isUserAuthenticated(!0)&&(yield Fn.continueAdd(gn))});return function(ut){return Bi.apply(this,arguments)}}()),yield Jt.present()}yield Fn.continueAdd(gn)})()}signIn(){var gn=this;return(0,Ce.Z)(function*(){gn.mapping.unfocusMap();const Fn=yield gn.modalController.create({component:Ie.F});return Fn.onDidDismiss().then(Jt=>{gn.mapping.focusMap(),gn.appManager.isUserAuthenticated(!0)}),yield Fn.present()})()}signOut(){var gn=this;return(0,Ce.Z)(function*(){gn.appManager.signOutCurrentUser()})()}profile(){var gn=this;return(0,Ce.Z)(function*(){gn.mapping.unfocusMap();const Fn=yield gn.modalController.create({component:X});Fn.onDidDismiss().then(Jt=>{gn.mapping.focusMap()}),yield Fn.present()})()}journeys(){var gn=this;return(0,Ce.Z)(function*(){gn.mapping.unfocusMap();const Fn=yield gn.modalController.create({component:Ae.g});Fn.onDidDismiss().then(Jt=>{gn.mapping.focusMap()}),yield Fn.present()})()}addLayer(){var gn=this;return(0,Ce.Z)(function*(){const Fn=yield gn.modalController.create({component:Ht.A});yield Fn.present();const{data:Jt}=yield Fn.onWillDismiss();Jt&&gn.mapping.addPOILayer(Jt)})()}about(){var gn=this;return(0,Ce.Z)(function*(){gn.mapping.unfocusMap();const Fn=yield gn.modalController.create({component:Ke.t});Fn.onDidDismiss().then(Jt=>{gn.mapping.focusMap()}),yield Fn.present()})()}static \u0275fac=function(Fn){return new(Fn||fn)(m.Y36(de.t4),m.Y36(l.sK),m.Y36(oe.v),m.Y36(C.IN),m.Y36(ye.c),m.Y36(ve.z),m.Y36(De.c),m.Y36(an.z))};static \u0275cmp=m.Xpm({type:fn,selectors:[["app-root"]],decls:29,vars:17,consts:[["contentId","main-content",3,"disabled"],["contentId","main-content","swipeGesture","false"],["slot","start"],["src","assets/images/icons/branding/AppIcon_128x128.png"],["auto-hide","false"],[3,"routerDirection","routerLink"],["slot","start","name","home"],[3,"click",4,"ngIf"],[4,"ngIf"],[3,"click"],["slot","start","name","information-circle-outline"],["id","main-content"],["slot","start","name","map"],["slot","start","name","add-circle-outline"],["slot","start","name","albums"],["slot","start","name","person"],["slot","start","name","log-out"],[2,"color","#c0c0c0"]],template:function(Fn,Jt){1&Fn&&(m.TgZ(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-thumbnail",2),m._UZ(6,"img",3),m.qZA(),m.TgZ(7,"ion-title"),m._uU(8),m.qZA()()(),m.TgZ(9,"ion-content")(10,"ion-list")(11,"ion-menu-toggle",4)(12,"ion-item",5),m._UZ(13,"ion-icon",6),m.TgZ(14,"ion-label"),m._uU(15),m.ALo(16,"translate"),m.qZA()(),m.YNc(17,tt,4,0,"ion-item",7)(18,pt,5,3,"ion-item",7)(19,Xt,4,0,"ion-item",7)(20,bn,4,0,"ion-item",7)(21,Cn,6,3,"ng-container",8)(22,It,14,7,"ng-container",8),m.TgZ(23,"ion-item",9),m.NdJ("click",function(){return Jt.about()}),m._UZ(24,"ion-icon",10),m.TgZ(25,"ion-label"),m._uU(26),m.ALo(27,"translate"),m.qZA()()()()()(),m._UZ(28,"ion-router-outlet",11),m.qZA()()),2&Fn&&(m.xp6(),m.Q6J("disabled",!0),m.xp6(7),m.Oqu(Jt.appManager.title),m.xp6(4),m.Q6J("routerDirection","root")("routerLink",m.DdM(16,pe)),m.xp6(3),m.hij(" ",m.lcZ(16,12,"ocm.search.sectionTitle")," "),m.xp6(2),m.Q6J("ngIf",Jt.enabledFeatures.includes("ROUTE_PLANNER")),m.xp6(),m.Q6J("ngIf",Jt.enabledFeatures.includes("ADD_POI")),m.xp6(),m.Q6J("ngIf",Jt.enabledFeatures.includes("FAVOURITES")),m.xp6(),m.Q6J("ngIf",Jt.enabledFeatures.includes("LAYERS")),m.xp6(),m.Q6J("ngIf",!Jt.isUserAuthenticated()),m.xp6(),m.Q6J("ngIf",Jt.isUserAuthenticated()),m.xp6(4),m.hij(" ",m.lcZ(27,14,"ocm.general.about")," "))},dependencies:[B.O5,C.dr,C.W2,C.Gu,C.gu,C.Ie,C.Q$,C.q_,C.z0,C.zc,C.jI,C.Bs,C.wd,C.sr,C.jP,C.YI,Te.rH,l.X$],encapsulation:2})}return fn})();const Zt=[{path:"",redirectTo:"search",pathMatch:"full"},{path:"search",loadChildren:()=>Promise.resolve().then(P.bind(P,4606)).then(fn=>fn.SearchPageModule)},{path:"journeys",loadChildren:()=>Promise.resolve().then(P.bind(P,9192)).then(fn=>fn.JourneysModule)},{path:"signin",loadChildren:()=>Promise.resolve().then(P.bind(P,9472)).then(fn=>fn.SignInModule)},{path:"poi-editor/:id",loadChildren:()=>Promise.resolve().then(P.bind(P,5722)).then(fn=>fn.PoiEditorPageModule)},{path:"about",loadChildren:()=>Promise.resolve().then(P.bind(P,7425)).then(fn=>fn.AboutPageModule)},{path:"layer-editor",loadChildren:()=>Promise.resolve().then(P.bind(P,2309)).then(fn=>fn.LayerEditorPageModule)}];let hn=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[Te.Bz.forRoot(Zt,{useHash:!0}),Te.Bz]})}return fn})(),Yt=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[B.ez,Y.u5,C.Pc,l.aw,te.e]})}return fn})();var Ft=P(9472);let Un=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[B.ez,Y.u5,C.Pc,l.aw,te.e,Te.Bz.forChild([{path:"",component:X}])]})}return fn})();var Ve=P(4119);let Pt=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn});static \u0275inj=m.cJS({imports:[B.ez,Y.u5,C.Pc,l.aw,te.e,Te.Bz.forChild([{path:"",component:Ve.N}])]})}return fn})();var Kt=P(9192),wn=P(5722),ei=P(7425),di=P(2309);function Lr(){return localStorage.getItem("access_token")}function Mi(fn){return new nt(fn,"/assets/i18n/",".json")}let Ei=(()=>{class fn{static \u0275fac=function(Fn){return new(Fn||fn)};static \u0275mod=m.oAB({type:fn,bootstrap:[lt]});static \u0275inj=m.cJS({providers:[{provide:Te.wN,useClass:de.r4}],imports:[h.b2,be.JF,l.aw.forRoot({loader:{provide:l.Zw,useFactory:Mi,deps:[be.eN]}}),C.Pc.forRoot(),hn,Me.Ar.forRoot({config:{tokenGetter:Lr}}),K.SearchPageModule,Yt,Kt.JourneysModule,Ft.SignInModule,Pe,ie,fe,wn.PoiEditorPageModule,Un,Pt,ei.AboutPageModule,di.LayerEditorPageModule]})}return fn})();me.N.production&&(0,m.G48)(),h.q6().bootstrapModule(Ei).catch(fn=>console.log(fn))},2574:function(Bn){Bn.exports=function(){"use strict";var Ct,P,h;function m(l,B){if(Ct)if(P){var Y="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+Ct+")(sharedChunk); ("+P+")(sharedChunk); self.onerror = null;",C={};Ct(C),h=B(C),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(h.workerUrl=window.URL.createObjectURL(new Blob([Y],{type:"text/javascript"})))}else P=B;else Ct=B}return m(0,function(l){var B=typeof self<"u"?self:{},Y="2.15.0";let C;const ie={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(null==C){const r=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{C=null!=process.env.API_URL_REGEX?new RegExp(process.env.API_URL_REGEX):r}catch{C=r}}return C},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!ie.API_URL)return null;try{const r=new URL(ie.API_URL);return"api.mapbox.cn"===r.hostname?"https://events.mapbox.cn/events/v2":"api.mapbox.com"===r.hostname?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},fe={supported:!1,testSupport:function(r){!be&&K&&(Te?Me(r):Pe=r)}};let Pe,K,be=!1,Te=!1;function Me(r){const e=r.createTexture();r.bindTexture(r.TEXTURE_2D,e);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,K),r.isContextLost())return;fe.supported=!0}catch{}r.deleteTexture(e),be=!0}B.document&&(K=B.document.createElement("img"),K.onload=function(){Pe&&Me(Pe),Pe=null,Te=!0},K.onerror=function(){be=!0,Pe=null},K.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const de="01";function nt(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ce=oe;function oe(r,e,o,c){this.cx=3*r,this.bx=3*(o-r)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(c-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=r,this.p1y=e,this.p2x=o,this.p2y=c}oe.prototype={sampleCurveX:function(r){return((this.ax*r+this.bx)*r+this.cx)*r},sampleCurveY:function(r){return((this.ay*r+this.by)*r+this.cy)*r},sampleCurveDerivativeX:function(r){return(3*this.ax*r+2*this.bx)*r+this.cx},solveCurveX:function(r,e){if(void 0===e&&(e=1e-6),r<0)return 0;if(r>1)return 1;for(var o=r,c=0;c<8;c++){var f=this.sampleCurveX(o)-r;if(Math.abs(f)f?v=o:w=o,o=.5*(w-v)+v;return o},solve:function(r,e){return this.sampleCurveY(this.solveCurveX(r,e))}};var xe=nt(Ce),Ie=Ae;function Ae(r,e){this.x=r,this.y=e}Ae.prototype={clone:function(){return new Ae(this.x,this.y)},add:function(r){return this.clone()._add(r)},sub:function(r){return this.clone()._sub(r)},multByPoint:function(r){return this.clone()._multByPoint(r)},divByPoint:function(r){return this.clone()._divByPoint(r)},mult:function(r){return this.clone()._mult(r)},div:function(r){return this.clone()._div(r)},rotate:function(r){return this.clone()._rotate(r)},rotateAround:function(r,e){return this.clone()._rotateAround(r,e)},matMult:function(r){return this.clone()._matMult(r)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(r){return this.x===r.x&&this.y===r.y},dist:function(r){return Math.sqrt(this.distSqr(r))},distSqr:function(r){var e=r.x-this.x,o=r.y-this.y;return e*e+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith:function(r){return this.angleWithSep(r.x,r.y)},angleWithSep:function(r,e){return Math.atan2(this.x*e-this.y*r,this.x*r+this.y*e)},_matMult:function(r){var e=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=e,this},_add:function(r){return this.x+=r.x,this.y+=r.y,this},_sub:function(r){return this.x-=r.x,this.y-=r.y,this},_mult:function(r){return this.x*=r,this.y*=r,this},_div:function(r){return this.x/=r,this.y/=r,this},_multByPoint:function(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint:function(r){return this.x/=r.x,this.y/=r.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var r=this.y;return this.y=this.x,this.x=-r,this},_rotate:function(r){var e=Math.cos(r),o=Math.sin(r),c=o*this.x+e*this.y;return this.x=e*this.x-o*this.y,this.y=c,this},_rotateAround:function(r,e){var o=Math.cos(r),c=Math.sin(r),f=e.y+c*(this.x-e.x)+o*(this.y-e.y);return this.x=e.x+o*(this.x-e.x)-c*(this.y-e.y),this.y=f,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},Ae.convert=function(r){return r instanceof Ae?r:Array.isArray(r)?new Ae(r[0],r[1]):r};var ye=nt(Ie);const Ue=Math.PI/180,ct=180/Math.PI;function X(r){return r*Ue}function ve(r){return r*ct}const me=[[0,0],[1,0],[1,1],[0,1]];function Fe(r){if(r<=0)return 0;if(r>=1)return 1;const e=r*r,o=e*r;return 4*(r<.5?o:3*(r-e)+o-.75)}function De(r,e,o,c){const f=new xe(r,e,o,c);return function(_){return f.solve(_)}}const ze=De(.25,.1,.25,1);function Ke(r,e,o){return Math.min(o,Math.max(e,r))}function Ht(r,e,o){return(o=Ke((o-r)/(e-r),0,1))*o*(3-2*o)}function dn(r,e,o){const c=o-e,f=((r-e)%c+c)%c+e;return f===e?o:f}function _n(r,e,o){if(!r.length)return o(null,[]);let c=r.length;const f=new Array(r.length);let _=null;r.forEach((v,w)=>{e(v,(E,M)=>{E&&(_=E),f[w]=M,0==--c&&o(_,f)})})}function Ut(r){const e=[];for(const o in r)e.push(r[o]);return e}function We(r,...e){for(const o of e)for(const c in o)r[c]=o[c];return r}let Ne=1;function ke(){return Ne++}function it(){return function r(e){return e?(e^Math.random()*(16>>e/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}()}function Qt(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function mt(r){return!!r&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)}function an(r,e){r.forEach(o=>{e[o]&&(e[o]=e[o].bind(e))})}function tt(r,e){return-1!==r.indexOf(e,r.length-e.length)}function pt(r,e,o){const c={};for(const f in r)c[f]=e.call(o||this,r[f],f,r);return c}function Xt(r,e,o){const c={};for(const f in r)e.call(o||this,r[f],f,r)&&(c[f]=r[f]);return c}function bn(r){return Array.isArray(r)?r.map(bn):"object"==typeof r&&r?pt(r,bn):r}const Cn={};function It(r){Cn[r]||(typeof console<"u"&&console.warn(r),Cn[r]=!0)}function pe(r,e,o){return(o.y-r.y)*(e.x-r.x)>(e.y-r.y)*(o.x-r.x)}function lt(r){let e=0;for(let o,c,f=0,_=r.length,v=_-1;f<_;v=f++)o=r[f],c=r[v],e+=(c.x-o.x)*(o.y+c.y);return e}function Zt(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function hn(r){const e={};if(r.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(o,c,f,_)=>{const v=f||_;return e[c]=!v||v.toLowerCase(),""}),e["max-age"]){const o=parseInt(e["max-age"],10);isNaN(o)?delete e["max-age"]:e["max-age"]=o}return e}let Yt=null;function Ft(r){if(null==Yt){const e=r.navigator?r.navigator.userAgent:null;Yt=!!r.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return Yt}function Un(r){try{const e=B[r];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch{return!1}}function Ve(r,e){return[r[4*e],r[4*e+1],r[4*e+2],r[4*e+3]]}const Pt="mapbox-tiles";let ei,di,Kt=500,wn=50;function Lr(){try{return B.caches}catch{}}function Mi(){Lr()&&!ei&&(ei=B.caches.open(Pt))}function dr(r){const e=r.indexOf("?");if(e<0)return r;const c=function(f){const _=f.indexOf("?");return _>0?f.slice(_+1).split("&"):[]}(r).filter(f=>{const _=f.split("=");return"language"===_[0]||"worldview"===_[0]});return c.length?`${r.slice(0,e)}?${c.join("&")}`:r.slice(0,e)}let Ei=1/0;const fn={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(fn);class Li extends Error{constructor(e,o,c){401===o&&jt(c)&&(e+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(e),this.status=o,this.url=c}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const gn=Zt()?()=>self.worker&&self.worker.referrer:()=>("blob:"===B.location.protocol?B.parent:B).location.href,Fn=function(r,e){if(!(/^file:/.test(o=r.url)||/^file:/.test(gn())&&!/^\w+:/.test(o))){if(B.fetch&&B.Request&&B.AbortController&&B.Request.prototype.hasOwnProperty("signal"))return function(c,f){const _=new B.AbortController,v=new B.Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:gn(),referrerPolicy:c.referrerPolicy,signal:_.signal});let w=!1,E=!1;const M=(L=v.url).indexOf("sku=")>0&&jt(L);var L;"json"===c.type&&v.headers.set("Accept","application/json");const N=(W,J,se)=>{if(E)return;if(W&&"SecurityError"!==W.message&&It(W.toString()),J&&se)return j(J);const Le=Date.now();B.fetch(v).then(rt=>{if(rt.ok){const bt=M?rt.clone():null;return j(rt,bt,Le)}return f(new Li(rt.statusText,rt.status,c.url))}).catch(rt=>{"AbortError"!==rt.name&&f(new Error(`${rt.message} ${c.url}`))})},j=(W,J,se)=>{("arrayBuffer"===c.type?W.arrayBuffer():"json"===c.type?W.json():W.text()).then(Le=>{E||(J&&se&&function(rt,bt,at){if(Mi(),!ei)return;const xt={status:bt.status,statusText:bt.statusText,headers:new B.Headers};bt.headers.forEach((un,rn)=>xt.headers.set(rn,un));const At=hn(bt.headers.get("Cache-Control")||"");if(At["no-store"])return;At["max-age"]&&xt.headers.set("Expires",new Date(at+1e3*At["max-age"]).toUTCString());const Mt=xt.headers.get("Expires");Mt&&(new Date(Mt).getTime()-at<42e4||function(un,rn){if(void 0===di)try{new Response(new ReadableStream),di=!0}catch{di=!1}di?rn(un.body):un.blob().then(rn)}(bt,un=>{const rn=new B.Response(un,xt);Mi(),ei&&ei.then(Dn=>Dn.put(dr(rt.url),rn)).catch(Dn=>It(Dn.message))}))}(v,J,se),w=!0,f(null,Le,W.headers.get("Cache-Control"),W.headers.get("Expires")))}).catch(Le=>{E||f(new Error(Le.message))})};return M?function(W,J){if(Mi(),!ei)return J(null);const se=dr(W.url);ei.then(Le=>{Le.match(se).then(rt=>{const bt=function(at){if(!at)return!1;const xt=new Date(at.headers.get("Expires")||0),At=hn(at.headers.get("Cache-Control")||"");return xt>Date.now()&&!At["no-cache"]}(rt);Le.delete(se),bt&&Le.put(se,rt.clone()),J(null,rt,bt)}).catch(J)}).catch(J)}(v,N):N(null,null),{cancel:()=>{E=!0,w||_.abort()}}}(r,e);if(Zt()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",r,e,void 0,!0)}var o;return function(c,f){const _=new B.XMLHttpRequest;_.open(c.method||"GET",c.url,!0),"arrayBuffer"===c.type&&(_.responseType="arraybuffer");for(const v in c.headers)_.setRequestHeader(v,c.headers[v]);return"json"===c.type&&(_.responseType="text",_.setRequestHeader("Accept","application/json")),_.withCredentials="include"===c.credentials,_.onerror=()=>{f(new Error(_.statusText))},_.onload=()=>{if((_.status>=200&&_.status<300||0===_.status)&&null!==_.response){let v=_.response;if("json"===c.type)try{v=JSON.parse(_.response)}catch(w){return f(w)}f(null,v,_.getResponseHeader("Cache-Control"),_.getResponseHeader("Expires"))}else f(new Li(_.statusText,_.status,c.url))},_.send(c.body),{cancel:()=>_.abort()}}(r,e)},Jt=function(r,e){return Fn(We(r,{type:"arrayBuffer"}),e)};function Bi(r){const e=B.document.createElement("a");return e.href=r,e.protocol===B.document.location.protocol&&e.host===B.document.location.host}const ut="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let he,_e;he=[],_e=0;const ot=function(r,e){if(fe.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),_e>=ie.MAX_PARALLEL_IMAGE_REQUESTS){const _={requestParameters:r,callback:e,cancelled:!1,cancel(){this.cancelled=!0}};return he.push(_),_}_e++;let o=!1;const c=()=>{if(!o)for(o=!0,_e--;he.length&&_e{c(),_?e(_):v&&(B.createImageBitmap?function(M,L){const N=new B.Blob([new Uint8Array(M)],{type:"image/png"});B.createImageBitmap(N).then(j=>{L(null,j)}).catch(j=>{L(new Error(`Could not load image because of ${j.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(v,(M,L)=>e(M,L,w,E)):function(M,L){const N=new B.Image,j=B.URL;N.onload=()=>{L(null,N),j.revokeObjectURL(N.src),N.onload=null,B.requestAnimationFrame(()=>{N.src=ut})},N.onerror=()=>L(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const W=new B.Blob([new Uint8Array(M)],{type:"image/png"});N.src=M.byteLength?j.createObjectURL(W):ut}(v,(M,L)=>e(M,L,w,E)))});return{cancel:()=>{f.cancel(),c()}}},yt="NO_ACCESS_TOKEN";function Dt(r){return 0===r.indexOf("mapbox:")}function jt(r){return ie.API_URL_REGEX.test(r)}function Vt(r){return ie.API_CDN_URL_REGEX.test(r)}function dt(r){return ie.API_STYLE_REGEX.test(r)&&!Bt(r)}function Bt(r){return ie.API_SPRITE_REGEX.test(r)}const Nn=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Gn(r){const e=r.match(Nn);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function ae(r){const e=r.params.length?`?${r.params.join("&")}`:"";return`${r.protocol}://${r.authority}${r.path}${e}`}const ft="mapbox.eventData";function Z(r){if(!r)return null;const e=r.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(B.atob(e[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class Re{constructor(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(e){const o=Z(ie.ACCESS_TOKEN);let c="";return c=o&&o.u?B.btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(f,_)=>String.fromCharCode(+("0x"+_)))):ie.ACCESS_TOKEN||"",e?`${ft}.${e}:${c}`:`${ft}:${c}`}fetchEventData(){const e=Un("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(e)try{const f=B.localStorage.getItem(o);f&&(this.eventData=JSON.parse(f));const _=B.localStorage.getItem(c);_&&(this.anonId=_)}catch{It("Unable to read from LocalStorage")}}saveEventData(){const e=Un("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(e)try{B.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&B.localStorage.setItem(o,JSON.stringify(this.eventData))}catch{It("Unable to write to LocalStorage")}}processRequests(e){}postEvent(e,o,c,f){if(!ie.EVENTS_URL)return;const _=Gn(ie.EVENTS_URL);_.params.push(`access_token=${f||ie.ACCESS_TOKEN||""}`);const v={event:this.type,created:new Date(e).toISOString()},w=o?We(v,o):v,E={url:ae(_),headers:{"Content-Type":"text/plain"},body:JSON.stringify([w])};var L;this.pendingRequest=(L=M=>{this.pendingRequest=null,c(M),this.saveEventData(),this.processRequests(f)},Fn(We(E,{method:"POST"}),L))}queueRequest(e,o){this.queue.push(e),this.processRequests(o)}}const st=new class extends Re{constructor(r){super("appUserTurnstile"),this._customAccessToken=r}postTurnstileEvent(r,e){ie.EVENTS_URL&&ie.ACCESS_TOKEN&&Array.isArray(r)&&r.some(o=>Dt(o)||jt(o))&&this.queueRequest(Date.now(),e)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const e=Z(ie.ACCESS_TOKEN),o=e?e.u:ie.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;mt(this.anonId)||(this.anonId=it(),c=!0);const f=this.queue.shift();if(this.eventData.lastSuccess){const _=new Date(this.eventData.lastSuccess),v=new Date(f),w=(f-this.eventData.lastSuccess)/864e5;c=c||w>=1||w<-1||_.getDate()!==v.getDate()}else c=!0;c?this.postEvent(f,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Y,skuId:de,"enabled.telemetry":!1,userId:this.anonId},_=>{_||(this.eventData.lastSuccess=f,this.eventData.tokenU=o)},r):this.processRequests()}},on=st.postTurnstileEvent.bind(st),In=new class extends Re{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(r,e,o,c){this.skuToken=e,this.errorCb=c,ie.EVENTS_URL&&(o||ie.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(yt)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:o}=this.queue.shift();e&&this.success[e]||(this.anonId||this.fetchEventData(),mt(this.anonId)||(this.anonId=it()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:Y,skuId:de,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):e&&(this.success[e]=!0)},r))}},bi=In.postMapLoadEvent.bind(In),wi=new class extends Re{constructor(){super("gljs.performance")}postPerformanceEvent(r,e){ie.EVENTS_URL&&(r||ie.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:e},r)}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{timestamp:e,performanceData:o}=this.queue.shift(),c=function(f){const _=B.performance.getEntriesByType("resource"),v=B.performance.getEntriesByType("mark"),w=function(j){const W={};if(j)for(const J in j)if("other"!==J)for(const se of j[J]){const Le=`${J}ResolveRangeMin`,rt=`${J}ResolveRangeMax`,bt=`${J}RequestCount`,at=`${J}RequestCachedCount`;W[Le]=Math.min(W[Le]||1/0,se.startTime),W[rt]=Math.max(W[rt]||-1/0,se.responseEnd);const xt=At=>{void 0===W[At]&&(W[At]=0),++W[At]};void 0!==se.transferSize&&0===se.transferSize&&xt(at),xt(bt)}return W}(function(j,W){const J={};if(j)for(const se of j){const Le=W(se);void 0===J[Le]&&(J[Le]=[]),J[Le].push(se)}return J}(_,Eo)),E=B.devicePixelRatio,M=B.navigator.connection||B.navigator.mozConnection||B.navigator.webkitConnection,L={counters:[],metadata:[],attributes:[]},N=(j,W,J)=>{null!=J&&j.push({name:W,value:J.toString()})};for(const j in w)N(L.counters,j,w[j]);if(f.interactionRange[0]!==1/0&&f.interactionRange[1]!==-1/0&&(N(L.counters,"interactionRangeMin",f.interactionRange[0]),N(L.counters,"interactionRangeMax",f.interactionRange[1])),v)for(const j of Object.keys(uo)){const W=uo[j],J=v.find(se=>se.name===W);J&&N(L.counters,W,J.startTime)}return N(L.counters,"visibilityHidden",f.visibilityHidden),N(L.attributes,"style",function(j){if(j)for(const W of j){const J=W.name.split("?")[0];if(dt(J)){const se=J.split("/").slice(-2);if(2===se.length)return`mapbox://styles/${se[0]}/${se[1]}`}}}(_)),N(L.attributes,"terrainEnabled",f.terrainEnabled?"true":"false"),N(L.attributes,"fogEnabled",f.fogEnabled?"true":"false"),N(L.attributes,"projection",f.projection),N(L.attributes,"zoom",f.zoom),N(L.metadata,"devicePixelRatio",E),N(L.metadata,"connectionEffectiveType",M?M.effectiveType:void 0),N(L.metadata,"navigatorUserAgent",B.navigator.userAgent),N(L.metadata,"screenWidth",B.screen.width),N(L.metadata,"screenHeight",B.screen.height),N(L.metadata,"windowWidth",B.innerWidth),N(L.metadata,"windowHeight",B.innerHeight),N(L.metadata,"mapWidth",f.width/E),N(L.metadata,"mapHeight",f.height/E),N(L.metadata,"webglRenderer",f.renderer),N(L.metadata,"webglVendor",f.vendor),N(L.metadata,"sdkVersion",Y),N(L.metadata,"sdkIdentifier","mapbox-gl-js"),L}(o);for(const f of c.metadata);for(const f of c.counters);for(const f of c.attributes);this.postEvent(e,c,()=>{},r)}},Ri=wi.postPerformanceEvent.bind(wi),mr=new class extends Re{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(r,e,o,c){if(!ie.API_URL||!ie.SESSION_PATH)return;const f=Gn(ie.API_URL+ie.SESSION_PATH);f.params.push(`sku=${e||""}`),f.params.push(`access_token=${c||ie.ACCESS_TOKEN||""}`);const _={url:ae(f),headers:{"Content-Type":"text/plain"}};var w;this.pendingRequest=(w=v=>{this.pendingRequest=null,o(v),this.saveEventData(),this.processRequests(c)},Fn(We(_,{method:"GET"}),w))}getSessionAPI(r,e,o,c){this.skuToken=e,this.errorCb=c,ie.SESSION_PATH&&ie.API_URL&&(o||ie.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(yt)))}processRequests(r){if(this.pendingRequest||0===this.queue.length)return;const{id:e,timestamp:o}=this.queue.shift();e&&this.success[e]||this.getSession(o,this.skuToken,c=>{c?this.errorCb(c):e&&(this.success[e]=!0)},r)}},Xi=mr.getSessionAPI.bind(mr),Ar=new Set,uo={create:"create",load:"load",fullLoad:"fullLoad"},_o={mark(r){B.performance.mark(r)},measure(r,e,o){B.performance.measure(r,e,o)}};function Eo(r){const e=r.name.split("?")[0];return Vt(e)&&e.includes("mapbox-gl.js")?"javascript":Vt(e)&&e.includes("mapbox-gl.css")?"css":ie.API_FONTS_REGEX.test(e)?"fontRange":Bt(e)?"sprite":dt(e)?"style":ie.API_TILEJSON_REGEX.test(e)?"tilejson":"other"}const zi=B.performance;function hr(r){const e=r?r.url.toString():void 0;return zi.getEntriesByName(e)}let Ti,yo,vr,Vr;const Yr={now:()=>void 0!==vr?vr:B.performance.now(),setNow(r){vr=r},restoreNow(){vr=void 0},frame(r){const e=B.requestAnimationFrame(r);return{cancel:()=>B.cancelAnimationFrame(e)}},getImageData(r,e=0){const{width:o,height:c}=r;Vr||(Vr=B.document.createElement("canvas"));const f=Vr.getContext("2d",{willReadFrequently:!0});if(!f)throw new Error("failed to create canvas 2d context");return(o>Vr.width||c>Vr.height)&&(Vr.width=o,Vr.height=c),f.clearRect(-e,-e,o+2*e,c+2*e),f.drawImage(r,0,0,o,c),f.getImageData(-e,-e,o+2*e,c+2*e)},resolveURL:r=>(Ti||(Ti=B.document.createElement("a")),Ti.href=r,Ti.href),get devicePixelRatio(){return B.devicePixelRatio},get prefersReducedMotion(){return!!B.matchMedia&&(null==yo&&(yo=B.matchMedia("(prefers-reduced-motion: reduce)")),yo.matches)}};function qi(r,e,o){o[r]&&-1!==o[r].indexOf(e)||(o[r]=o[r]||[],o[r].push(e))}function Qe(r,e,o){if(o&&o[r]){const c=o[r].indexOf(e);-1!==c&&o[r].splice(c,1)}}class Tt{constructor(e,o={}){We(this,o),this.type=e}}class Et extends Tt{constructor(e,o={}){super("error",We({error:e},o))}}class ln{on(e,o){return this._listeners=this._listeners||{},qi(e,o,this._listeners),this}off(e,o){return Qe(e,o,this._listeners),Qe(e,o,this._oneTimeListeners),this}once(e,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},qi(e,o,this._oneTimeListeners),this):new Promise(c=>this.once(e,c))}fire(e,o){"string"==typeof e&&(e=new Tt(e,o||{}));const c=e.type;if(this.listens(c)){e.target=this;const f=this._listeners&&this._listeners[c]?this._listeners[c].slice():[];for(const w of f)w.call(this,e);const _=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const w of _)Qe(c,w,this._oneTimeListeners),w.call(this,e);const v=this._eventedParent;v&&(We(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),v.fire(e))}else e instanceof Et&&console.error(e.error);return this}listens(e){return!!(this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e))}setEventedParent(e,o){return this._eventedParent=e,this._eventedParentData=o,this}}var vt=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":{}}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true,"requires":["fill-extrusion-edge-radius"]},"fill-extrusion-rounded-roof":{"type":"boolean","default":true,"requires":["fill-extrusion-edge-radius"],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"transition":false,"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function Hn(r,...e){for(const o of e)for(const c in o)r[c]=o[c];return r}function On(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function Kn(r){if(Array.isArray(r))return r.map(Kn);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const e={};for(const o in r)e[o]=Kn(r[o]);return e}return On(r)}class pi extends Error{constructor(e,o){super(o),this.message=o,this.key=e}}var ki=pi;class rr{constructor(e,o=[]){this.parent=e,this.bindings={};for(const[c,f]of o)this.bindings[c]=f}concat(e){return new rr(this,e)}get(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(`${e} not found in scope.`)}has(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)}}var _i=rr;const or={kind:"null"},Ee={kind:"number"},Be={kind:"string"},ee={kind:"boolean"},qe={kind:"color"},St={kind:"object"},en={kind:"value"},jn={kind:"collator"},V={kind:"formatted"},ue={kind:"resolvedImage"};function Xe(r,e){return{kind:"array",itemType:r,N:e}}function _t(r){if("array"===r.kind){const e=_t(r.itemType);return"number"==typeof r.N?`array<${e}, ${r.N}>`:"value"===r.itemType.kind?"array":`array<${e}>`}return r.kind}const Wt=[or,Ee,Be,ee,qe,V,St,Xe(en),ue];function tn(r,e){if("error"===e.kind)return null;if("array"===r.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!tn(r.itemType,e.itemType))&&("number"!=typeof r.N||r.N===e.N))return null}else{if(r.kind===e.kind)return null;if("value"===r.kind)for(const o of Wt)if(!tn(o,e))return null}return`Expected ${_t(r)} but found ${_t(e)} instead.`}function vn(r,e){return e.some(o=>o.kind===r.kind)}function Vn(r,e){return e.some(o=>"null"===o?null===r:"array"===o?Array.isArray(r):"object"===o?r&&!Array.isArray(r)&&"object"==typeof r:o===typeof r)}var $n,Xn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function si(r){return(r=Math.round(r))<0?0:r>255?255:r}function fi(r){return si("%"===r[r.length-1]?parseFloat(r)/100*255:parseInt(r))}function yi(r){return(e="%"===r[r.length-1]?parseFloat(r)/100:parseFloat(r))<0?0:e>1?1:e;var e}function Vi(r,e,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?r+(e-r)*o*6:2*o<1?e:3*o<2?r+(e-r)*(2/3-o)*6:r}try{$n={}.parseCSSColor=function(r){var e,o=r.replace(/ /g,"").toLowerCase();if(o in Xn)return Xn[o].slice();if("#"===o[0])return 4===o.length?(e=parseInt(o.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===o.length&&(e=parseInt(o.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var c=o.indexOf("("),f=o.indexOf(")");if(-1!==c&&f+1===o.length){var _=o.substr(0,c),v=o.substr(c+1,f-(c+1)).split(","),w=1;switch(_){case"rgba":if(4!==v.length)return null;w=yi(v.pop());case"rgb":return 3!==v.length?null:[fi(v[0]),fi(v[1]),fi(v[2]),w];case"hsla":if(4!==v.length)return null;w=yi(v.pop());case"hsl":if(3!==v.length)return null;var E=(parseFloat(v[0])%360+360)%360/360,M=yi(v[1]),L=yi(v[2]),N=L<=.5?L*(M+1):L+M-L*M,j=2*L-N;return[si(255*Vi(j,N,E+1/3)),si(255*Vi(j,N,E)),si(255*Vi(j,N,E-1/3)),w];default:return null}}return null}}catch{}class Yi{constructor(e,o,c,f=1){this.r=e,this.g=o,this.b=c,this.a=f}static parse(e){if(!e)return;if(e instanceof Yi)return e;if("string"!=typeof e)return;const o=$n(e);return o?new Yi(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3]):void 0}toString(){const[e,o,c,f]=this.toArray();return`rgba(${Math.round(e)},${Math.round(o)},${Math.round(c)},${f})`}toArray(){const{r:e,g:o,b:c,a:f}=this;return 0===f?[0,0,0,0]:[255*e/f,255*o/f,255*c/f,f]}toArray01(){const{r:e,g:o,b:c,a:f}=this;return 0===f?[0,0,0,0]:[e/f,o/f,c/f,f]}toArray01PremultipliedAlpha(){const{r:e,g:o,b:c,a:f}=this;return[e,o,c,f]}}Yi.black=new Yi(0,0,0,1),Yi.white=new Yi(1,1,1,1),Yi.transparent=new Yi(0,0,0,0),Yi.red=new Yi(1,0,0,1),Yi.blue=new Yi(0,0,1,1);var O=Yi;class Oe{constructor(e,o,c){this.sensitivity=e?o?"variant":"case":o?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,o){return this.collator.compare(e,o)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class ${constructor(e,o,c,f,_){this.text=e.normalize?e.normalize():e,this.image=o,this.scale=c,this.fontStack=f,this.textColor=_}}class Ze{constructor(e){this.sections=e}static fromString(e){return new Ze([new $(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof Ze?e:Ze.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}serialize(){const e=["format"];for(const o of this.sections){if(o.image){e.push(["image",o.image.name]);continue}e.push(o.text);const c={};o.fontStack&&(c["text-font"]=["literal",o.fontStack.split(",")]),o.scale&&(c["font-scale"]=o.scale),o.textColor&&(c["text-color"]=["rgba"].concat(o.textColor.toArray())),e.push(c)}return e}}class Nt{constructor(e){this.name=e.name,this.available=e.available}toString(){return this.name}static fromString(e){return e?new Nt({name:e,available:!1}):null}serialize(){return["image",this.name]}}function Fi(r,e,o,c){return"number"==typeof r&&r>=0&&r<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof o&&o>=0&&o<=255?void 0===c||"number"==typeof c&&c>=0&&c<=1?null:`Invalid rgba value [${[r,e,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof c?[r,e,o,c]:[r,e,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function Sr(r){if(null===r||"string"==typeof r||"boolean"==typeof r||"number"==typeof r||r instanceof O||r instanceof Oe||r instanceof Ze||r instanceof Nt)return!0;if(Array.isArray(r)){for(const e of r)if(!Sr(e))return!1;return!0}if("object"==typeof r){for(const e in r)if(!Sr(r[e]))return!1;return!0}return!1}function Qi(r){if(null===r)return or;if("string"==typeof r)return Be;if("boolean"==typeof r)return ee;if("number"==typeof r)return Ee;if(r instanceof O)return qe;if(r instanceof Oe)return jn;if(r instanceof Ze)return V;if(r instanceof Nt)return ue;if(Array.isArray(r)){const e=r.length;let o;for(const c of r){const f=Qi(c);if(o){if(o===f)continue;o=en;break}o=f}return Xe(o||en,e)}return St}function Dr(r){const e=typeof r;return null===r?"":"string"===e||"number"===e||"boolean"===e?String(r):r instanceof O||r instanceof Ze||r instanceof Nt?r.toString():JSON.stringify(r)}class ho{constructor(e,o){this.type=e,this.value=o}static parse(e,o){if(2!==e.length)return o.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!Sr(e[1]))return o.error("invalid value");const c=e[1];let f=Qi(c);const _=o.expectedType;return"array"!==f.kind||0!==f.N||!_||"array"!==_.kind||"number"==typeof _.N&&0!==_.N||(f=_),new ho(f,c)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof O?["rgba"].concat(this.value.toArray()):this.value instanceof Ze?this.value.serialize():this.value}}var ji=ho,eo=class{constructor(r){this.name="ExpressionEvaluationError",this.message=r}toJSON(){return this.message}};const Bs={string:Be,number:Ee,boolean:ee,object:St};class Xs{constructor(e,o){this.type=e,this.args=o}static parse(e,o){if(e.length<2)return o.error("Expected at least one argument.");let c,f=1;const _=e[0];if("array"===_){let w,E;if(e.length>2){const M=e[1];if("string"!=typeof M||!(M in Bs)||"object"===M)return o.error('The item type argument of "array" must be one of string, number, boolean',1);w=Bs[M],f++}else w=en;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return o.error('The length argument to "array" must be a positive integer literal',2);E=e[2],f++}c=Xe(w,E)}else c=Bs[_];const v=[];for(;fe.outputDefined())}serialize(){const e=this.type,o=[e.kind];if("array"===e.kind){const c=e.itemType;if("string"===c.kind||"number"===c.kind||"boolean"===c.kind){o.push(c.kind);const f=e.N;("number"==typeof f||this.args.length>1)&&o.push(f)}}return o.concat(this.args.map(c=>c.serialize()))}}var To=Xs;class $o{constructor(e){this.type=V,this.sections=e}static parse(e,o){if(e.length<2)return o.error("Expected at least one argument.");const c=e[1];if(!Array.isArray(c)&&"object"==typeof c)return o.error("First argument must be an image or text section.");const f=[];let _=!1;for(let v=1;v<=e.length-1;++v){const w=e[v];if(_&&"object"==typeof w&&!Array.isArray(w)){_=!1;let E=null;if(w["font-scale"]&&(E=o.parse(w["font-scale"],1,Ee),!E))return null;let M=null;if(w["text-font"]&&(M=o.parse(w["text-font"],1,Xe(Be)),!M))return null;let L=null;if(w["text-color"]&&(L=o.parse(w["text-color"],1,qe),!L))return null;const N=f[f.length-1];N.scale=E,N.font=M,N.textColor=L}else{const E=o.parse(e[v],1,en);if(!E)return null;const M=E.type.kind;if("string"!==M&&"value"!==M&&"null"!==M&&"resolvedImage"!==M)return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");_=!0,f.push({content:E,scale:null,font:null,textColor:null})}}return new $o(f)}evaluate(e){return new Ze(this.sections.map(o=>{const c=o.content.evaluate(e);return Qi(c)===ue?new $("",c,null,null,null):new $(Dr(c),null,o.scale?o.scale.evaluate(e):null,o.font?o.font.evaluate(e).join(","):null,o.textColor?o.textColor.evaluate(e):null)}))}eachChild(e){for(const o of this.sections)e(o.content),o.scale&&e(o.scale),o.font&&e(o.font),o.textColor&&e(o.textColor)}outputDefined(){return!1}serialize(){const e=["format"];for(const o of this.sections){e.push(o.content.serialize());const c={};o.scale&&(c["font-scale"]=o.scale.serialize()),o.font&&(c["text-font"]=o.font.serialize()),o.textColor&&(c["text-color"]=o.textColor.serialize()),e.push(c)}return e}}class ds{constructor(e){this.type=ue,this.input=e}static parse(e,o){if(2!==e.length)return o.error("Expected two arguments.");const c=o.parse(e[1],1,Be);return c?new ds(c):o.error("No image name provided.")}evaluate(e){const o=this.input.evaluate(e),c=Nt.fromString(o);return c&&e.availableImages&&(c.available=e.availableImages.indexOf(o)>-1),c}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const ys={"to-boolean":ee,"to-color":qe,"to-number":Ee,"to-string":Be};class Qs{constructor(e,o){this.type=e,this.args=o}static parse(e,o){if(e.length<2)return o.error("Expected at least one argument.");const c=e[0];if(("to-boolean"===c||"to-string"===c)&&2!==e.length)return o.error("Expected one argument.");const f=ys[c],_=[];for(let v=1;v4?`Invalid rbga value ${JSON.stringify(o)}: expected an array containing either three or four numeric values.`:Fi(o[0],o[1],o[2],o[3]),!c))return new O(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new eo(c||`Could not parse color from value '${"string"==typeof o?o:String(JSON.stringify(o))}'`)}if("number"===this.type.kind){let o=null;for(const c of this.args){if(o=c.evaluate(e),null===o)return 0;const f=Number(o);if(!isNaN(f))return f}throw new eo(`Could not convert ${JSON.stringify(o)} to number.`)}return"formatted"===this.type.kind?Ze.fromString(Dr(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?Nt.fromString(Dr(this.args[0].evaluate(e))):Dr(this.args[0].evaluate(e))}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){if("formatted"===this.type.kind)return new $o([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new ds(this.args[0]).serialize();const e=[`to-${this.type.kind}`];return this.eachChild(o=>{e.push(o.serialize())}),e}}var Mo=Qs;const to=["Unknown","Point","LineString","Polygon"];var fr=class{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null}id(){return this.feature&&void 0!==this.feature.id?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?to[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const r=this.featureDistanceData.center,e=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*e-r[0])+this.featureDistanceData.bearing[1]*(c*e-r[1])}return 0}parseColor(r){let e=this._parseColorCache[r];return e||(e=this._parseColorCache[r]=O.parse(r)),e}};class vo{constructor(e,o,c,f){this.name=e,this.type=o,this._evaluate=c,this.args=f}evaluate(e){return this._evaluate(e,this.args)}eachChild(e){this.args.forEach(e)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(e=>e.serialize()))}static parse(e,o){const c=e[0],f=vo.definitions[c];if(!f)return o.error(`Unknown expression "${c}". If you wanted a literal array, use ["literal", [...]].`,0);const _=Array.isArray(f)?f[0]:f.type,v=Array.isArray(f)?[[f[1],f[2]]]:f.overloads,w=v.filter(([M])=>!Array.isArray(M)||M.length===e.length-1);let E=null;for(const[M,L]of w){E=new ea(o.registry,o.path,null,o.scope);const N=[];let j=!1;for(let W=1;W{return j=N,Array.isArray(j)?`(${j.map(_t).join(", ")})`:`(${_t(j.type)}...)`;var j}).join(" | "),L=[];for(let N=1;N=e[2]||r[1]<=e[1]||r[3]>=e[3])}function Ko(r,e){const o=(180+r[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,f=Math.pow(2,e.z);return[Math.round(o*f*Po),Math.round(c*f*Po)]}function rl(r,e,o){const c=r[0]-e[0],f=r[1]-e[1],_=r[0]-o[0],v=r[1]-o[1];return c*v-_*f==0&&c*_<=0&&f*v<=0}function la(r,e){let o=!1;for(let v=0,w=e.length;v(c=r)[1]!=(_=E[M+1])[1]>c[1]&&c[0]<(_[0]-f[0])*(c[1]-f[1])/(_[1]-f[1])+f[0]&&(o=!o)}}var c,f,_;return o}function ca(r,e){for(let o=0;o0&&w<0||v<0&&w>0}function xs(r,e,o){for(const M of o)for(let L=0;Lo[2]){const f=.5*c;let _=r[0]-o[0]>f?-c:o[0]-r[0]>f?c:0;0===_&&(_=r[0]-o[2]>f?-c:o[2]-r[0]>f?c:0),r[0]+=_}Jo(e,r)}function Zl(r,e,o,c){const f=Math.pow(2,c.z)*Po,_=[c.x*Po,c.y*Po],v=[];if(!r)return v;for(const w of r)for(const E of w){const M=[E.x+_[0],E.y+_[1]];ol(M,e,o,f),v.push(M)}return v}function ua(r,e,o,c){const f=Math.pow(2,c.z)*Po,_=[c.x*Po,c.y*Po],v=[];if(!r)return v;for(const E of r){const M=[];for(const L of E){const N=[L.x+_[0],L.y+_[1]];Jo(e,N),M.push(N)}v.push(M)}if(e[2]-e[0]<=f/2){(w=e)[0]=w[1]=1/0,w[2]=w[3]=-1/0;for(const E of v)for(const M of E)ol(M,e,o,f)}var w;return v}class da{constructor(e,o){this.type=ee,this.geojson=e,this.geometries=o}static parse(e,o){if(2!==e.length)return o.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(Sr(e[1])){const c=e[1];if("FeatureCollection"===c.type)for(let f=0;f{e&&!ja(o)&&(e=!1)}),e}function Us(r){if(r instanceof Yo&&"feature-state"===r.name)return!1;let e=!0;return r.eachChild(o=>{e&&!Us(o)&&(e=!1)}),e}function ha(r,e){if(r instanceof Yo&&e.indexOf(r.name)>=0)return!1;let o=!0;return r.eachChild(c=>{o&&!ha(c,e)&&(o=!1)}),o}class Ea{constructor(e,o){this.type=o.type,this.name=e,this.boundExpression=o}static parse(e,o){if(2!==e.length||"string"!=typeof e[1])return o.error("'var' expression requires exactly one string literal argument.");const c=e[1];return o.scope.has(c)?new Ea(c,o.scope.get(c)):o.error(`Unknown variable "${c}". Make sure "${c}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(e){return this.boundExpression.evaluate(e)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Xo=Ea;class fa{constructor(e,o=[],c,f=new _i,_=[]){this.registry=e,this.path=o,this.key=o.map(v=>`[${v}]`).join(""),this.scope=f,this.errors=_,this.expectedType=c}parse(e,o,c,f,_={}){return o?this.concat(o,c,f)._parse(e,_):this._parse(e,_)}_parse(e,o){function c(f,_,v){return"assert"===v?new To(_,[f]):"coerce"===v?new Mo(_,[f]):f}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const f=e[0];if("string"!=typeof f)return this.error(`Expression name must be a string, but found ${typeof f} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const _=this.registry[f];if(_){let v=_.parse(e,this);if(!v)return null;if(this.expectedType){const w=this.expectedType,E=v.type;if("string"!==w.kind&&"number"!==w.kind&&"boolean"!==w.kind&&"object"!==w.kind&&"array"!==w.kind||"value"!==E.kind)if("color"!==w.kind&&"formatted"!==w.kind&&"resolvedImage"!==w.kind||"value"!==E.kind&&"string"!==E.kind){if(this.checkSubtype(w,E))return null}else v=c(v,w,o.typeAnnotation||"coerce");else v=c(v,w,o.typeAnnotation||"assert")}if(!(v instanceof ji)&&"resolvedImage"!==v.type.kind&&Gl(v)){const w=new fr;try{v=new ji(v.type,v.evaluate(w))}catch(E){return this.error(E.message),null}}return v}return this.error(`Unknown expression "${f}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,o,c){const f="number"==typeof e?this.path.concat(e):this.path,_=c?this.scope.concat(c):this.scope;return new fa(this.registry,f,o||null,_,this.errors)}error(e,...o){const c=`${this.key}${o.map(f=>`[${f}]`).join("")}`;this.errors.push(new ki(c,e))}checkSubtype(e,o){const c=tn(e,o);return c&&this.error(c),c}}var ea=fa;function Gl(r){if(r instanceof Xo)return Gl(r.boundExpression);if(r instanceof Yo&&"error"===r.name||r instanceof zs||r instanceof Ua)return!1;const e=r instanceof Mo||r instanceof To;let o=!0;return r.eachChild(c=>{o=e?o&&Gl(c):o&&c instanceof ji}),!!o&&ja(r)&&ha(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function sl(r,e){const o=r.length-1;let c,f,_=0,v=o,w=0;for(;_<=v;)if(w=Math.floor((_+v)/2),c=r[w],f=r[w+1],c<=e){if(w===o||ee))throw new eo("Input is not a number.");v=w-1}return 0}class nr{constructor(e,o,c){this.type=e,this.input=o,this.labels=[],this.outputs=[];for(const[f,_]of c)this.labels.push(f),this.outputs.push(_)}static parse(e,o){if(e.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return o.error("Expected an even number of arguments.");const c=o.parse(e[1],1,Ee);if(!c)return null;const f=[];let _=null;o.expectedType&&"value"!==o.expectedType.kind&&(_=o.expectedType);for(let v=1;v=w)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',M);const N=o.parse(E,L,_);if(!N)return null;_=_||N.type,f.push([w,N])}return new nr(_,c,f)}evaluate(e){const o=this.labels,c=this.outputs;if(1===o.length)return c[0].evaluate(e);const f=this.input.evaluate(e);if(f<=o[0])return c[0].evaluate(e);const _=o.length;return f>=o[_-1]?c[_-1].evaluate(e):c[sl(o,f)].evaluate(e)}eachChild(e){e(this.input);for(const o of this.outputs)e(o)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){const e=["step",this.input.serialize()];for(let o=0;o0&&e.push(this.labels[o]),e.push(this.outputs[o].serialize());return e}}var ro=nr;function Pi(r,e,o){return r*(1-o)+e*o}var Qo=Object.freeze({__proto__:null,array:function(r,e,o){return r.map((c,f)=>Pi(c,e[f],o))},color:function(r,e,o){return new O(Pi(r.r,e.r,o),Pi(r.g,e.g,o),Pi(r.b,e.b,o),Pi(r.a,e.a,o))},number:Pi});const ce=4/29,G=6/29,Ge=3*G*G,zt=G*G*G,ni=Math.PI/180,Ln=180/Math.PI;function Di(r){return r>zt?Math.pow(r,1/3):r/Ge+ce}function zr(r){return r>G?r*r*r:Ge*(r-ce)}function Oo(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function Do(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function bs(r){const e=Do(r.r),o=Do(r.g),c=Do(r.b),f=Di((.4124564*e+.3575761*o+.1804375*c)/.95047),_=Di((.2126729*e+.7151522*o+.072175*c)/1);return{l:116*_-16,a:500*(f-_),b:200*(_-Di((.0193339*e+.119192*o+.9503041*c)/1.08883)),alpha:r.a}}function al(r){let e=(r.l+16)/116,o=isNaN(r.a)?e:e+r.a/500,c=isNaN(r.b)?e:e-r.b/200;return e=1*zr(e),o=.95047*zr(o),c=1.08883*zr(c),new O(Oo(3.2404542*o-1.5371385*e-.4985314*c),Oo(-.969266*o+1.8760108*e+.041556*c),Oo(.0556434*o-.2040259*e+1.0572252*c),r.alpha)}function $r(r,e,o){const c=e-r;return r+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const xo={forward:bs,reverse:al,interpolate:function(r,e,o){return{l:Pi(r.l,e.l,o),a:Pi(r.a,e.a,o),b:Pi(r.b,e.b,o),alpha:Pi(r.alpha,e.alpha,o)}}},Ro={forward:function(r){const{l:e,a:o,b:c}=bs(r),f=Math.atan2(c,o)*Ln;return{h:f<0?f+360:f,c:Math.sqrt(o*o+c*c),l:e,alpha:r.a}},reverse:function(r){const e=r.h*ni,o=r.c;return al({l:r.l,a:Math.cos(e)*o,b:Math.sin(e)*o,alpha:r.alpha})},interpolate:function(r,e,o){return{h:$r(r.h,e.h,o),c:Pi(r.c,e.c,o),l:Pi(r.l,e.l,o),alpha:Pi(r.alpha,e.alpha,o)}}};var Ui=Object.freeze({__proto__:null,hcl:Ro,lab:xo});class js{constructor(e,o,c,f,_){this.type=e,this.operator=o,this.interpolation=c,this.input=f,this.labels=[],this.outputs=[];for(const[v,w]of _)this.labels.push(v),this.outputs.push(w)}static interpolationFactor(e,o,c,f){let _=0;if("exponential"===e.name)_=wl(o,e.base,c,f);else if("linear"===e.name)_=wl(o,1,c,f);else if("cubic-bezier"===e.name){const v=e.controlPoints;_=new xe(v[0],v[1],v[2],v[3]).solve(wl(o,1,c,f))}return _}static parse(e,o){let[c,f,_,...v]=e;if(!Array.isArray(f)||0===f.length)return o.error("Expected an interpolation type expression.",1);if("linear"===f[0])f={name:"linear"};else if("exponential"===f[0]){const M=f[1];if("number"!=typeof M)return o.error("Exponential interpolation requires a numeric base.",1,1);f={name:"exponential",base:M}}else{if("cubic-bezier"!==f[0])return o.error(`Unknown interpolation type ${String(f[0])}`,1,0);{const M=f.slice(1);if(4!==M.length||M.some(L=>"number"!=typeof L||L<0||L>1))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);f={name:"cubic-bezier",controlPoints:M}}}if(e.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(_=o.parse(_,2,Ee),!_)return null;const w=[];let E=null;"interpolate-hcl"===c||"interpolate-lab"===c?E=qe:o.expectedType&&"value"!==o.expectedType.kind&&(E=o.expectedType);for(let M=0;M=L)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',j);const J=o.parse(N,W,E);if(!J)return null;E=E||J.type,w.push([L,J])}return"number"===E.kind||"color"===E.kind||"array"===E.kind&&"number"===E.itemType.kind&&"number"==typeof E.N?new js(E,c,f,_,w):o.error(`Type ${_t(E)} is not interpolatable.`)}evaluate(e){const o=this.labels,c=this.outputs;if(1===o.length)return c[0].evaluate(e);const f=this.input.evaluate(e);if(f<=o[0])return c[0].evaluate(e);const _=o.length;if(f>=o[_-1])return c[_-1].evaluate(e);const v=sl(o,f),w=js.interpolationFactor(this.interpolation,f,o[v],o[v+1]),E=c[v].evaluate(e),M=c[v+1].evaluate(e);return"interpolate"===this.operator?Qo[this.type.kind.toLowerCase()](E,M,w):"interpolate-hcl"===this.operator?Ro.reverse(Ro.interpolate(Ro.forward(E),Ro.forward(M),w)):xo.reverse(xo.interpolate(xo.forward(E),xo.forward(M),w))}eachChild(e){e(this.input);for(const o of this.outputs)e(o)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}serialize(){let e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const o=[this.operator,e,this.input.serialize()];for(let c=0;ctn(f,w.type));return new kr(v?en:c,_)}evaluate(e){let o,c=null,f=0;for(const _ of this.args){if(f++,c=_.evaluate(e),c&&c instanceof Nt&&!c.available&&(o||(o=c),c=null,f===this.args.length))return o;if(null!==c)break}return c}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}serialize(){const e=["coalesce"];return this.eachChild(o=>{e.push(o.serialize())}),e}}var ws=kr;class pa{constructor(e,o){this.type=o.type,this.bindings=[].concat(e),this.result=o}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(const o of this.bindings)e(o[1]);e(this.result)}static parse(e,o){if(e.length<4)return o.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);const c=[];for(let _=1;_=c.length)throw new eo(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new eo(`Array index must be an integer, but found ${o} instead.`);return c[o]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var Hl=ma;class $s{constructor(e,o){this.type=ee,this.needle=e,this.haystack=o}static parse(e,o){if(3!==e.length)return o.error(`Expected 2 arguments, but found ${e.length-1} instead.`);const c=o.parse(e[1],1,en),f=o.parse(e[2],2,en);return c&&f?vn(c.type,[ee,Be,Ee,or,en])?new $s(c,f):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${_t(c.type)} instead`):null}evaluate(e){const o=this.needle.evaluate(e),c=this.haystack.evaluate(e);if(null==c)return!1;if(!Vn(o,["boolean","string","number","null"]))throw new eo(`Expected first argument to be of type boolean, string, number or null, but found ${_t(Qi(o))} instead.`);if(!Vn(c,["string","array"]))throw new eo(`Expected second argument to be of type array or string, but found ${_t(Qi(c))} instead.`);return c.indexOf(o)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var Va=$s;class es{constructor(e,o,c){this.type=Ee,this.needle=e,this.haystack=o,this.fromIndex=c}static parse(e,o){if(e.length<=2||e.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const c=o.parse(e[1],1,en),f=o.parse(e[2],2,en);if(!c||!f)return null;if(!vn(c.type,[ee,Be,Ee,or,en]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${_t(c.type)} instead`);if(4===e.length){const _=o.parse(e[3],3,Ee);return _?new es(c,f,_):null}return new es(c,f)}evaluate(e){const o=this.needle.evaluate(e),c=this.haystack.evaluate(e);if(!Vn(o,["boolean","string","number","null"]))throw new eo(`Expected first argument to be of type boolean, string, number or null, but found ${_t(Qi(o))} instead.`);if(!Vn(c,["string","array"]))throw new eo(`Expected second argument to be of type array or string, but found ${_t(Qi(c))} instead.`);if(this.fromIndex){const f=this.fromIndex.evaluate(e);return c.indexOf(o,f)}return c.indexOf(o)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}serialize(){if(null!=this.fromIndex&&void 0!==this.fromIndex){const e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Gi=es;class ta{constructor(e,o,c,f,_,v){this.inputType=e,this.type=o,this.input=c,this.cases=f,this.outputs=_,this.otherwise=v}static parse(e,o){if(e.length<5)return o.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return o.error("Expected an even number of arguments.");let c,f;o.expectedType&&"value"!==o.expectedType.kind&&(f=o.expectedType);const _={},v=[];for(let M=2;MNumber.MAX_SAFE_INTEGER)return j.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof J&&Math.floor(J)!==J)return j.error("Numeric branch labels must be integer values.");if(c){if(j.checkSubtype(c,Qi(J)))return null}else c=Qi(J);if(void 0!==_[String(J)])return j.error("Branch labels must be unique.");_[String(J)]=v.length}const W=o.parse(N,M,f);if(!W)return null;f=f||W.type,v.push(W)}const w=o.parse(e[1],1,en);if(!w)return null;const E=o.parse(e[e.length-1],e.length-1,f);return E?"value"!==w.type.kind&&o.concat(1).checkSubtype(c,w.type)?null:new ta(c,f,w,_,v,E):null}evaluate(e){const o=this.input.evaluate(e);return(Qi(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["match",this.input.serialize()],o=Object.keys(this.cases).sort(),c=[],f={};for(const v of o){const w=f[this.cases[v]];void 0===w?(f[this.cases[v]]=c.length,c.push([this.cases[v],[v]])):c[w][1].push(v)}const _=v=>"number"===this.inputType.kind?Number(v):v;for(const[v,w]of c)e.push(1===w.length?_(w[0]):w.map(_)),e.push(this.outputs[v].serialize());return e.push(this.otherwise.serialize()),e}}var Wl=ta;class Cs{constructor(e,o,c){this.type=e,this.branches=o,this.otherwise=c}static parse(e,o){if(e.length<4)return o.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return o.error("Expected an odd number of arguments.");let c;o.expectedType&&"value"!==o.expectedType.kind&&(c=o.expectedType);const f=[];for(let v=1;vo.outputDefined())&&this.otherwise.outputDefined()}serialize(){const e=["case"];return this.eachChild(o=>{e.push(o.serialize())}),e}}var Cl=Cs;class na{constructor(e,o,c,f){this.type=e,this.input=o,this.beginIndex=c,this.endIndex=f}static parse(e,o){if(e.length<=2||e.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);const c=o.parse(e[1],1,en),f=o.parse(e[2],2,Ee);if(!c||!f)return null;if(!vn(c.type,[Xe(en),Be,en]))return o.error(`Expected first argument to be of type array or string, but found ${_t(c.type)} instead`);if(4===e.length){const _=o.parse(e[3],3,Ee);return _?new na(c.type,c,f,_):null}return new na(c.type,c,f)}evaluate(e){const o=this.input.evaluate(e),c=this.beginIndex.evaluate(e);if(!Vn(o,["string","array"]))throw new eo(`Expected first argument to be of type array or string, but found ${_t(Qi(o))} instead.`);if(this.endIndex){const f=this.endIndex.evaluate(e);return o.slice(c,f)}return o.slice(c)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}serialize(){if(null!=this.endIndex&&void 0!==this.endIndex){const e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var oo=na;function $a(r,e){return"=="===r||"!="===r?"boolean"===e.kind||"string"===e.kind||"number"===e.kind||"null"===e.kind||"value"===e.kind:"string"===e.kind||"number"===e.kind||"value"===e.kind}function Io(r,e,o,c){return 0===c.compare(e,o)}function fo(r,e,o){const c="=="!==r&&"!="!==r;return class dC{constructor(_,v,w){this.type=ee,this.lhs=_,this.rhs=v,this.collator=w,this.hasUntypedArgument="value"===_.type.kind||"value"===v.type.kind}static parse(_,v){if(3!==_.length&&4!==_.length)return v.error("Expected two or three arguments.");const w=_[0];let E=v.parse(_[1],1,en);if(!E)return null;if(!$a(w,E.type))return v.concat(1).error(`"${w}" comparisons are not supported for type '${_t(E.type)}'.`);let M=v.parse(_[2],2,en);if(!M)return null;if(!$a(w,M.type))return v.concat(2).error(`"${w}" comparisons are not supported for type '${_t(M.type)}'.`);if(E.type.kind!==M.type.kind&&"value"!==E.type.kind&&"value"!==M.type.kind)return v.error(`Cannot compare types '${_t(E.type)}' and '${_t(M.type)}'.`);c&&("value"===E.type.kind&&"value"!==M.type.kind?E=new To(M.type,[E]):"value"!==E.type.kind&&"value"===M.type.kind&&(M=new To(E.type,[M])));let L=null;if(4===_.length){if("string"!==E.type.kind&&"string"!==M.type.kind&&"value"!==E.type.kind&&"value"!==M.type.kind)return v.error("Cannot use collator to compare non-string types.");if(L=v.parse(_[3],3,jn),!L)return null}return new dC(E,M,L)}evaluate(_){const v=this.lhs.evaluate(_),w=this.rhs.evaluate(_);if(c&&this.hasUntypedArgument){const E=Qi(v),M=Qi(w);if(E.kind!==M.kind||"string"!==E.kind&&"number"!==E.kind)throw new eo(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${E.kind}, ${M.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const E=Qi(v),M=Qi(w);if("string"!==E.kind||"string"!==M.kind)return e(_,v,w)}return this.collator?o(_,v,w,this.collator.evaluate(_)):e(_,v,w)}eachChild(_){_(this.lhs),_(this.rhs),this.collator&&_(this.collator)}outputDefined(){return!0}serialize(){const _=[r];return this.eachChild(v=>{_.push(v.serialize())}),_}}}const El=fo("==",function(r,e,o){return e===o},Io),Za=fo("!=",function(r,e,o){return e!==o},function(r,e,o,c){return!Io(0,e,o,c)}),ql=fo("<",function(r,e,o){return e",function(r,e,o){return e>o},function(r,e,o,c){return c.compare(e,o)>0}),gc=fo("<=",function(r,e,o){return e<=o},function(r,e,o,c){return c.compare(e,o)<=0}),Tl=fo(">=",function(r,e,o){return e>=o},function(r,e,o,c){return c.compare(e,o)>=0});class Yl{constructor(e,o,c,f,_,v){this.type=Be,this.number=e,this.locale=o,this.currency=c,this.unit=f,this.minFractionDigits=_,this.maxFractionDigits=v}static parse(e,o){if(3!==e.length)return o.error("Expected two arguments.");const c=o.parse(e[1],1,Ee);if(!c)return null;const f=e[2];if("object"!=typeof f||Array.isArray(f))return o.error("NumberFormat options argument must be an object.");let _=null;if(f.locale&&(_=o.parse(f.locale,1,Be),!_))return null;let v=null;if(f.currency&&(v=o.parse(f.currency,1,Be),!v))return null;let w=null;if(f.unit&&(w=o.parse(f.unit,1,Be),!w))return null;let E=null;if(f["min-fraction-digits"]&&(E=o.parse(f["min-fraction-digits"],1,Ee),!E))return null;let M=null;return f["max-fraction-digits"]&&(M=o.parse(f["max-fraction-digits"],1,Ee),!M)?null:new Yl(c,_,v,w,E,M)}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(e):void 0,unit:this.unit?this.unit.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.unit&&e(this.unit),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.unit&&(e.unit=this.unit.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]}}class Ta{constructor(e){this.type=Ee,this.input=e}static parse(e,o){if(2!==e.length)return o.error(`Expected 1 argument, but found ${e.length-1} instead.`);const c=o.parse(e[1],1);return c?"array"!==c.type.kind&&"string"!==c.type.kind&&"value"!==c.type.kind?o.error(`Expected argument of type string or array, but found ${_t(c.type)} instead.`):new Ta(c):null}evaluate(e){const o=this.input.evaluate(e);if("string"==typeof o||Array.isArray(o))return o.length;throw new eo(`Expected value to be of type string or array, but found ${_t(Qi(o))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}serialize(){const e=["length"];return this.eachChild(o=>{e.push(o.serialize())}),e}}const _c={"==":El,"!=":Za,">":Zs,"<":ql,">=":Tl,"<=":gc,array:To,at:Hl,boolean:To,case:Cl,coalesce:ws,collator:zs,format:$o,image:ds,in:Va,"index-of":Gi,interpolate:No,"interpolate-hcl":No,"interpolate-lab":No,length:Ta,let:Vs,literal:ji,match:Wl,number:To,"number-format":Yl,object:To,slice:oo,step:ro,string:To,"to-boolean":Mo,"to-color":Mo,"to-number":Mo,"to-string":Mo,var:Xo,within:Ua};function Zc(r,[e,o,c,f]){e=e.evaluate(r),o=o.evaluate(r),c=c.evaluate(r);const _=f?f.evaluate(r):1,v=Fi(e,o,c,_);if(v)throw new eo(v);return new O(e/255*_,o/255*_,c/255*_,_)}function Gs(r,e){return r in e}function Ga(r,e){const o=e[r];return void 0===o?null:o}function Hs(r){return{type:r}}Yo.register(_c,{error:[{kind:"error"},[Be],(r,[e])=>{throw new eo(e.evaluate(r))}],typeof:[Be,[en],(r,[e])=>_t(Qi(e.evaluate(r)))],"to-rgba":[Xe(Ee,4),[qe],(r,[e])=>e.evaluate(r).toArray()],rgb:[qe,[Ee,Ee,Ee],Zc],rgba:[qe,[Ee,Ee,Ee,Ee],Zc],has:{type:ee,overloads:[[[Be],(r,[e])=>Gs(e.evaluate(r),r.properties())],[[Be,St],(r,[e,o])=>Gs(e.evaluate(r),o.evaluate(r))]]},get:{type:en,overloads:[[[Be],(r,[e])=>Ga(e.evaluate(r),r.properties())],[[Be,St],(r,[e,o])=>Ga(e.evaluate(r),o.evaluate(r))]]},"feature-state":[en,[Be],(r,[e])=>Ga(e.evaluate(r),r.featureState||{})],properties:[St,[],r=>r.properties()],"geometry-type":[Be,[],r=>r.geometryType()],id:[en,[],r=>r.id()],zoom:[Ee,[],r=>r.globals.zoom],pitch:[Ee,[],r=>r.globals.pitch||0],"distance-from-center":[Ee,[],r=>r.distanceFromCenter()],"heatmap-density":[Ee,[],r=>r.globals.heatmapDensity||0],"line-progress":[Ee,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[Ee,[],r=>r.globals.skyRadialProgress||0],accumulated:[en,[],r=>void 0===r.globals.accumulated?null:r.globals.accumulated],"+":[Ee,Hs(Ee),(r,e)=>{let o=0;for(const c of e)o+=c.evaluate(r);return o}],"*":[Ee,Hs(Ee),(r,e)=>{let o=1;for(const c of e)o*=c.evaluate(r);return o}],"-":{type:Ee,overloads:[[[Ee,Ee],(r,[e,o])=>e.evaluate(r)-o.evaluate(r)],[[Ee],(r,[e])=>-e.evaluate(r)]]},"/":[Ee,[Ee,Ee],(r,[e,o])=>e.evaluate(r)/o.evaluate(r)],"%":[Ee,[Ee,Ee],(r,[e,o])=>e.evaluate(r)%o.evaluate(r)],ln2:[Ee,[],()=>Math.LN2],pi:[Ee,[],()=>Math.PI],e:[Ee,[],()=>Math.E],"^":[Ee,[Ee,Ee],(r,[e,o])=>Math.pow(e.evaluate(r),o.evaluate(r))],sqrt:[Ee,[Ee],(r,[e])=>Math.sqrt(e.evaluate(r))],log10:[Ee,[Ee],(r,[e])=>Math.log(e.evaluate(r))/Math.LN10],ln:[Ee,[Ee],(r,[e])=>Math.log(e.evaluate(r))],log2:[Ee,[Ee],(r,[e])=>Math.log(e.evaluate(r))/Math.LN2],sin:[Ee,[Ee],(r,[e])=>Math.sin(e.evaluate(r))],cos:[Ee,[Ee],(r,[e])=>Math.cos(e.evaluate(r))],tan:[Ee,[Ee],(r,[e])=>Math.tan(e.evaluate(r))],asin:[Ee,[Ee],(r,[e])=>Math.asin(e.evaluate(r))],acos:[Ee,[Ee],(r,[e])=>Math.acos(e.evaluate(r))],atan:[Ee,[Ee],(r,[e])=>Math.atan(e.evaluate(r))],min:[Ee,Hs(Ee),(r,e)=>Math.min(...e.map(o=>o.evaluate(r)))],max:[Ee,Hs(Ee),(r,e)=>Math.max(...e.map(o=>o.evaluate(r)))],abs:[Ee,[Ee],(r,[e])=>Math.abs(e.evaluate(r))],round:[Ee,[Ee],(r,[e])=>{const o=e.evaluate(r);return o<0?-Math.round(-o):Math.round(o)}],floor:[Ee,[Ee],(r,[e])=>Math.floor(e.evaluate(r))],ceil:[Ee,[Ee],(r,[e])=>Math.ceil(e.evaluate(r))],"filter-==":[ee,[Be,en],(r,[e,o])=>r.properties()[e.value]===o.value],"filter-id-==":[ee,[en],(r,[e])=>r.id()===e.value],"filter-type-==":[ee,[Be],(r,[e])=>r.geometryType()===e.value],"filter-<":[ee,[Be,en],(r,[e,o])=>{const c=r.properties()[e.value],f=o.value;return typeof c==typeof f&&c{const o=r.id(),c=e.value;return typeof o==typeof c&&o":[ee,[Be,en],(r,[e,o])=>{const c=r.properties()[e.value],f=o.value;return typeof c==typeof f&&c>f}],"filter-id->":[ee,[en],(r,[e])=>{const o=r.id(),c=e.value;return typeof o==typeof c&&o>c}],"filter-<=":[ee,[Be,en],(r,[e,o])=>{const c=r.properties()[e.value],f=o.value;return typeof c==typeof f&&c<=f}],"filter-id-<=":[ee,[en],(r,[e])=>{const o=r.id(),c=e.value;return typeof o==typeof c&&o<=c}],"filter->=":[ee,[Be,en],(r,[e,o])=>{const c=r.properties()[e.value],f=o.value;return typeof c==typeof f&&c>=f}],"filter-id->=":[ee,[en],(r,[e])=>{const o=r.id(),c=e.value;return typeof o==typeof c&&o>=c}],"filter-has":[ee,[en],(r,[e])=>e.value in r.properties()],"filter-has-id":[ee,[],r=>null!==r.id()&&void 0!==r.id()],"filter-type-in":[ee,[Xe(Be)],(r,[e])=>e.value.indexOf(r.geometryType())>=0],"filter-id-in":[ee,[Xe(en)],(r,[e])=>e.value.indexOf(r.id())>=0],"filter-in-small":[ee,[Be,Xe(en)],(r,[e,o])=>o.value.indexOf(r.properties()[e.value])>=0],"filter-in-large":[ee,[Be,Xe(en)],(r,[e,o])=>function(c,f,_,v){for(;_<=v;){const w=_+v>>1;if(f[w]===c)return!0;f[w]>c?v=w-1:_=w+1}return!1}(r.properties()[e.value],o.value,0,o.value.length-1)],all:{type:ee,overloads:[[[ee,ee],(r,[e,o])=>e.evaluate(r)&&o.evaluate(r)],[Hs(ee),(r,e)=>{for(const o of e)if(!o.evaluate(r))return!1;return!0}]]},any:{type:ee,overloads:[[[ee,ee],(r,[e,o])=>e.evaluate(r)||o.evaluate(r)],[Hs(ee),(r,e)=>{for(const o of e)if(o.evaluate(r))return!0;return!1}]]},"!":[ee,[ee],(r,[e])=>!e.evaluate(r)],"is-supported-script":[ee,[Be],(r,[e])=>{const o=r.globals&&r.globals.isSupportedScript;return!o||o(e.evaluate(r))}],upcase:[Be,[Be],(r,[e])=>e.evaluate(r).toUpperCase()],downcase:[Be,[Be],(r,[e])=>e.evaluate(r).toLowerCase()],concat:[Be,Hs(en),(r,e)=>e.map(o=>Dr(o.evaluate(r))).join("")],"resolved-locale":[Be,[jn],(r,[e])=>e.evaluate(r).resolvedLocale()]});var F=_c;function we(r){return{result:"success",value:r}}function H(r){return{result:"error",value:r}}function le(r){return"data-driven"===r["property-type"]}function wt(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function yn(r){return!!r.expression&&r.expression.interpolated}function xn(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":null===r?"null":typeof r}function xi(r){return"object"==typeof r&&null!==r&&!Array.isArray(r)}function Jr(r){return r}function Pr(r,e){const o="color"===e.type,c=r.stops&&"object"==typeof r.stops[0][0],f=c||!(c||void 0!==r.property),_=r.type||(yn(e)?"exponential":"interval");if(o&&((r=Hn({},r)).stops&&(r.stops=r.stops.map(M=>[M[0],O.parse(M[1])])),r.default=O.parse(r.default?r.default:e.default)),r.colorSpace&&"rgb"!==r.colorSpace&&!Ui[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let v,w,E;if("exponential"===_)v=_r;else if("interval"===_)v=Kr;else if("categorical"===_){v=ir,w=Object.create(null);for(const M of r.stops)w[M[0]]=M[1];E=typeof r.stops[0][0]}else{if("identity"!==_)throw new Error(`Unknown function type "${_}"`);v=so}if(c){const M={},L=[];for(let W=0;WW[0]),evaluate:({zoom:W},J)=>_r({stops:N,base:r.base},e,W).evaluate(W,J)}}if(f){const M="exponential"===_?{name:"exponential",base:void 0!==r.base?r.base:1}:null;return{kind:"camera",interpolationType:M,interpolationFactor:No.interpolationFactor.bind(void 0,M),zoomStops:r.stops.map(L=>L[0]),evaluate:({zoom:L})=>v(r,e,L,w,E)}}return{kind:"source",evaluate(M,L){const N=L&&L.properties?L.properties[r.property]:void 0;return void 0===N?xr(r.default,e.default):v(r,e,N,w,E)}}}function xr(r,e,o){return void 0!==r?r:void 0!==e?e:void 0!==o?o:void 0}function ir(r,e,o,c,f){return xr(typeof o===f?c[o]:void 0,r.default,e.default)}function Kr(r,e,o){if("number"!==xn(o))return xr(r.default,e.default);const c=r.stops.length;if(1===c||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[c-1][0])return r.stops[c-1][1];const f=sl(r.stops.map(_=>_[0]),o);return r.stops[f][1]}function _r(r,e,o){const c=void 0!==r.base?r.base:1;if("number"!==xn(o))return xr(r.default,e.default);const f=r.stops.length;if(1===f||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[f-1][0])return r.stops[f-1][1];const _=sl(r.stops.map(L=>L[0]),o),v=function(L,N,j,W){const J=W-j,se=L-j;return 0===J?0:1===N?se/J:(Math.pow(N,se)-1)/(Math.pow(N,J)-1)}(o,c,r.stops[_][0],r.stops[_+1][0]),w=r.stops[_][1],E=r.stops[_+1][1];let M=Qo[e.type]||Jr;if(r.colorSpace&&"rgb"!==r.colorSpace){const L=Ui[r.colorSpace];M=(N,j)=>L.reverse(L.interpolate(L.forward(N),L.forward(j),v))}return"function"==typeof w.evaluate?{evaluate(...L){const N=w.evaluate.apply(void 0,L),j=E.evaluate.apply(void 0,L);if(void 0!==N&&void 0!==j)return M(N,j,v)}}:M(w,E,v)}function so(r,e,o){return"color"===e.type?o=O.parse(o):"formatted"===e.type?o=Ze.fromString(o.toString()):"resolvedImage"===e.type?o=Nt.fromString(o.toString()):xn(o)===e.type||"enum"===e.type&&e.values[o]||(o=void 0),xr(o,r.default,e.default)}class Bo{constructor(e,o){var c;this.expression=e,this._warningHistory={},this._evaluator=new fr,this._defaultValue=o?"color"===(c=o).type&&(xi(c.default)||Array.isArray(c.default))?new O(0,0,0,0):"color"===c.type?O.parse(c.default)||null:void 0===c.default?null:c.default:null,this._enumValues=o&&"enum"===o.type?o.values:null}evaluateWithoutErrorHandling(e,o,c,f,_,v,w,E){return this._evaluator.globals=e,this._evaluator.feature=o,this._evaluator.featureState=c,this._evaluator.canonical=f||null,this._evaluator.availableImages=_||null,this._evaluator.formattedSection=v,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=E||null,this.expression.evaluate(this._evaluator)}evaluate(e,o,c,f,_,v,w,E){this._evaluator.globals=e,this._evaluator.feature=o||null,this._evaluator.featureState=c||null,this._evaluator.canonical=f||null,this._evaluator.availableImages=_||null,this._evaluator.formattedSection=v||null,this._evaluator.featureTileCoord=w||null,this._evaluator.featureDistanceData=E||null;try{const M=this.expression.evaluate(this._evaluator);if(null==M||"number"==typeof M&&M!=M)return this._defaultValue;if(this._enumValues&&!(M in this._enumValues))throw new eo(`Expected value to be one of ${Object.keys(this._enumValues).map(L=>JSON.stringify(L)).join(", ")}, but found ${JSON.stringify(M)} instead.`);return M}catch(M){return this._warningHistory[M.message]||(this._warningHistory[M.message]=!0,typeof console<"u"&&console.warn(M.message)),this._defaultValue}}}function ao(r){return Array.isArray(r)&&r.length>0&&"string"==typeof r[0]&&r[0]in F}function Es(r,e){const o=new ea(F,[],e?function(f){const _={color:qe,string:Be,number:Ee,enum:Be,boolean:ee,formatted:V,resolvedImage:ue};return"array"===f.type?Xe(_[f.value]||en,f.length):_[f.type]}(e):void 0),c=o.parse(r,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return c?we(new Bo(c,e)):H(o.errors)}class Ts{constructor(e,o){this.kind=e,this._styleExpression=o,this.isStateDependent="constant"!==e&&!Us(o.expression)}evaluateWithoutErrorHandling(e,o,c,f,_,v){return this._styleExpression.evaluateWithoutErrorHandling(e,o,c,f,_,v)}evaluate(e,o,c,f,_,v){return this._styleExpression.evaluate(e,o,c,f,_,v)}}class Zo{constructor(e,o,c,f){this.kind=e,this.zoomStops=c,this._styleExpression=o,this.isStateDependent="camera"!==e&&!Us(o.expression),this.interpolationType=f}evaluateWithoutErrorHandling(e,o,c,f,_,v){return this._styleExpression.evaluateWithoutErrorHandling(e,o,c,f,_,v)}evaluate(e,o,c,f,_,v){return this._styleExpression.evaluate(e,o,c,f,_,v)}interpolationFactor(e,o,c){return this.interpolationType?No.interpolationFactor(this.interpolationType,e,o,c):0}}function zo(r,e){if("error"===(r=Es(r,e)).result)return r;const o=r.value.expression,c=ja(o);if(!c&&!le(e))return H([new ki("","data expressions not supported")]);const f=ha(o,["zoom","pitch","distance-from-center"]);if(!f&&!wt(e))return H([new ki("","zoom expressions not supported")]);const _=Da(o);return _||f?_ instanceof ki?H([_]):_ instanceof No&&!yn(e)?H([new ki("",'"interpolate" expressions cannot be used with this property')]):we(_?new Zo(c?"camera":"composite",r.value,_.labels,_ instanceof No?_.interpolation:void 0):new Ts(c?"constant":"source",r.value)):H([new ki("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class ia{constructor(e,o){this._parameters=e,this._specification=o,Hn(this,Pr(this._parameters,this._specification))}static deserialize(e){return new ia(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function Da(r){let e=null;if(r instanceof Vs)e=Da(r.result);else if(r instanceof ws){for(const o of r.args)if(e=Da(o),e)break}else(r instanceof ro||r instanceof No)&&r.input instanceof Yo&&"zoom"===r.input.name&&(e=r);return e instanceof ki||r.eachChild(o=>{const c=Da(o);c instanceof ki?e=c:!e&&c?e=new ki("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):e&&c&&e!==c&&(e=new ki("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),e}class li{constructor(e,o,c,f){this.message=(e?`${e}: `:"")+c,f&&(this.identifier=f),null!=o&&o.__line__&&(this.line=o.__line__)}}function Ws(r){const e=r.key,o=r.value,c=r.valueSpec||{},f=r.objectElementValidators||{},_=r.style,v=r.styleSpec;let w=[];const E=xn(o);if("object"!==E)return[new li(e,o,`object expected, ${E} found`)];for(const M in o){const L=M.split(".")[0];let N;f[L]?N=f[L]:c[L]?N=Uo:f["*"]?N=f["*"]:c["*"]&&(N=Uo),N?w=w.concat(N({key:(e&&`${e}.`)+M,value:o[M],valueSpec:c[L]||c["*"],style:_,styleSpec:v,object:o,objectKey:M},o)):w.push(new li(e,o[M],`unknown property "${M}"`))}for(const M in c)f[M]||c[M].required&&void 0===c[M].default&&void 0===o[M]&&w.push(new li(e,o,`missing required property "${M}"`));return w}function Du(r){const e=r.value,o=r.valueSpec,c=r.style,f=r.styleSpec,_=r.key,v=r.arrayElementValidator||Uo;if("array"!==xn(e))return[new li(_,e,`array expected, ${xn(e)} found`)];if(o.length&&e.length!==o.length)return[new li(_,e,`array length ${o.length} expected, length ${e.length} found`)];if(o["min-length"]&&e.length_)return[new li(e,o,`${o} is greater than the maximum value ${_}`)]}return[]}function Jl(r){const e=r.valueSpec,o=On(r.value.type);let c,f,_,v={};const w="categorical"!==o&&void 0===r.value.property,E=!w,M="array"===xn(r.value.stops)&&"array"===xn(r.value.stops[0])&&"object"===xn(r.value.stops[0][0]),L=Ws({key:r.key,value:r.value,valueSpec:r.styleSpec.function,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(W){if("identity"===o)return[new li(W.key,W.value,'identity function may not have a "stops" property')];let J=[];const se=W.value;return J=J.concat(Du({key:W.key,value:se,valueSpec:W.valueSpec,style:W.style,styleSpec:W.styleSpec,arrayElementValidator:N})),"array"===xn(se)&&0===se.length&&J.push(new li(W.key,se,"array must have at least one stop")),J},default:function(W){return Uo({key:W.key,value:W.value,valueSpec:e,style:W.style,styleSpec:W.styleSpec})}}});return"identity"===o&&w&&L.push(new li(r.key,r.value,'missing required property "property"')),"identity"===o||r.value.stops||L.push(new li(r.key,r.value,'missing required property "stops"')),"exponential"===o&&r.valueSpec.expression&&!yn(r.valueSpec)&&L.push(new li(r.key,r.value,"exponential functions not supported")),r.styleSpec.$version>=8&&(E&&!le(r.valueSpec)?L.push(new li(r.key,r.value,"property functions not supported")):w&&!wt(r.valueSpec)&&L.push(new li(r.key,r.value,"zoom functions not supported"))),"categorical"!==o&&!M||void 0!==r.value.property||L.push(new li(r.key,r.value,'"property" property is required')),L;function N(W){let J=[];const se=W.value,Le=W.key;if("array"!==xn(se))return[new li(Le,se,`array expected, ${xn(se)} found`)];if(2!==se.length)return[new li(Le,se,`array length 2 expected, length ${se.length} found`)];if(M){if("object"!==xn(se[0]))return[new li(Le,se,`object expected, ${xn(se[0])} found`)];if(void 0===se[0].zoom)return[new li(Le,se,"object stop key must have zoom")];if(void 0===se[0].value)return[new li(Le,se,"object stop key must have value")];const rt=On(se[0].zoom);if("number"!=typeof rt)return[new li(Le,se[0].zoom,"stop zoom values must be numbers")];if(_&&_>rt)return[new li(Le,se[0].zoom,"stop zoom values must appear in ascending order")];rt!==_&&(_=rt,f=void 0,v={}),J=J.concat(Ws({key:`${Le}[0]`,value:se[0],valueSpec:{zoom:{}},style:W.style,styleSpec:W.styleSpec,objectElementValidators:{zoom:ga,value:j}}))}else J=J.concat(j({key:`${Le}[0]`,value:se[0],valueSpec:{},style:W.style,styleSpec:W.styleSpec},se));return ao(Kn(se[1]))?J.concat([new li(`${Le}[1]`,se[1],"expressions are not allowed in function stops.")]):J.concat(Uo({key:`${Le}[1]`,value:se[1],valueSpec:e,style:W.style,styleSpec:W.styleSpec}))}function j(W,J){const se=xn(W.value),Le=On(W.value),rt=null!==W.value?W.value:J;if(c){if(se!==c)return[new li(W.key,rt,`${se} stop domain type must match previous stop domain type ${c}`)]}else c=se;if("number"!==se&&"string"!==se&&"boolean"!==se&&"number"!=typeof Le&&"string"!=typeof Le&&"boolean"!=typeof Le)return[new li(W.key,rt,"stop domain value must be a number, string, or boolean")];if("number"!==se&&"categorical"!==o){let bt=`number expected, ${se} found`;return le(e)&&void 0===o&&(bt+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new li(W.key,rt,bt)]}return"categorical"!==o||"number"!==se||"number"==typeof Le&&isFinite(Le)&&Math.floor(Le)===Le?"categorical"!==o&&"number"===se&&"number"==typeof Le&&"number"==typeof f&&void 0!==f&&Lenew li(`${r.key}${c.key}`,r.value,c.message));const o=e.value.expression||e.value._styleExpression.expression;if("property"===r.expressionContext&&"text-font"===r.propertyKey&&!o.outputDefined())return[new li(r.key,r.value,`Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===r.expressionContext&&"layout"===r.propertyType&&!Us(o))return[new li(r.key,r.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===r.expressionContext)return Dl(o,r);if(r.expressionContext&&0===r.expressionContext.indexOf("cluster")){if(!ha(o,["zoom","feature-state"]))return[new li(r.key,r.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===r.expressionContext&&!ja(o))return[new li(r.key,r.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function Dl(r,e){const o=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(e.valueSpec&&e.valueSpec.expression)for(const f of e.valueSpec.expression.parameters)o.delete(f);if(0===o.size)return[];const c=[];return r instanceof Yo&&o.has(r.name)?[new li(e.key,e.value,`["${r.name}"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)]:(r.eachChild(f=>{c.push(...Dl(f,e))}),c)}function Kl(r){const e=r.key,o=r.value,c=r.valueSpec,f=[];return Array.isArray(c.values)?-1===c.values.indexOf(On(o))&&f.push(new li(e,o,`expected one of [${c.values.join(", ")}], ${JSON.stringify(o)} found`)):-1===Object.keys(c.values).indexOf(On(o))&&f.push(new li(e,o,`expected one of [${Object.keys(c.values).join(", ")}], ${JSON.stringify(o)} found`)),f}function Xl(r){if(!0===r||!1===r)return!0;if(!Array.isArray(r)||0===r.length)return!1;switch(r[0]){case"has":return r.length>=2&&"$id"!==r[1]&&"$type"!==r[1];case"in":return r.length>=3&&("string"!=typeof r[1]||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==r.length||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const e of r.slice(1))if(!Xl(e)&&"boolean"!=typeof e)return!1;return!0;default:return!0}}function yc(r,e="fill"){if(null==r)return{filter:()=>!0,needGeometry:!1,needFeature:!1};Xl(r)||(r=_a(r));const o=r;let c=!0;try{c=function(M){if(!Ha(M))return M;let L=Kn(M);return Fr(L),L=Ql(L),L}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.\nThis is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md\nand paste the contents of this message in the report.\nThank you!\nFilter Expression:\n${JSON.stringify(o,null,2)}\n `)}const f=vt[`filter_${e}`],_=Es(c,f);let v=null;if("error"===_.result)throw new Error(_.value.map(M=>`${M.key}: ${M.message}`).join(", "));v=(M,L,N)=>_.value.evaluate(M,L,{},N);let w=null,E=null;if(c!==o){const M=Es(o,f);if("error"===M.result)throw new Error(M.value.map(L=>`${L.key}: ${L.message}`).join(", "));w=(L,N,j,W,J)=>M.value.evaluate(L,N,{},j,void 0,void 0,W,J),E=!ja(M.value.expression)}return{filter:v,dynamicFilter:w||void 0,needGeometry:Ds(c),needFeature:!!E}}function Ql(r){if(!Array.isArray(r))return r;const e=function(o){if(ll.has(o[0]))for(let c=1;cQl(o))}function Fr(r){let e=!1;const o=[];if("case"===r[0]){for(let c=1;c",">=","<","<=","to-boolean"]);function ts(r,e){return re?1:0}function Ds(r){if(!Array.isArray(r))return!1;if("within"===r[0])return!0;for(let e=1;e"===e||"<="===e||">="===e?Wa(r[1],r[2],e):"any"===e?(o=r.slice(1),["any"].concat(o.map(_a))):"all"===e?["all"].concat(r.slice(1).map(_a)):"none"===e?["all"].concat(r.slice(1).map(_a).map(Il)):"in"===e?Lo(r[1],r.slice(2)):"!in"===e?Il(Lo(r[1],r.slice(2))):"has"===e?Gc(r[1]):"!has"===e?Il(Gc(r[1])):"within"!==e||r;var o}function Wa(r,e,o){switch(r){case"$type":return[`filter-type-${o}`,e];case"$id":return[`filter-id-${o}`,e];default:return[`filter-${o}`,r,e]}}function Lo(r,e){if(0===e.length)return!1;switch(r){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some(o=>typeof o!=typeof e[0])?["filter-in-large",r,["literal",e.sort(ts)]]:["filter-in-small",r,["literal",e]]}}function Gc(r){switch(r){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",r]}}function Il(r){return["!",r]}function Ml(r){return Xl(Kn(r.value))?Zr(Hn({},r,{expressionContext:"filter",valueSpec:r.styleSpec[`filter_${r.layerType||"fill"}`]})):Is(r)}function Is(r){const e=r.value,o=r.key;if("array"!==xn(e))return[new li(o,e,`array expected, ${xn(e)} found`)];const c=r.styleSpec;let f,_=[];if(e.length<1)return[new li(o,e,"filter array must have at least 1 element")];switch(_=_.concat(Kl({key:`${o}[0]`,value:e[0],valueSpec:c.filter_operator,style:r.style,styleSpec:r.styleSpec})),On(e[0])){case"<":case"<=":case">":case">=":e.length>=2&&"$type"===On(e[1])&&_.push(new li(o,e,`"$type" cannot be use with operator "${e[0]}"`));case"==":case"!=":3!==e.length&&_.push(new li(o,e,`filter array for operator "${e[0]}" must have 3 elements`));case"in":case"!in":e.length>=2&&(f=xn(e[1]),"string"!==f&&_.push(new li(`${o}[1]`,e[1],`string expected, ${f} found`)));for(let v=2;v{M in o&&e.push(new li(c,o[M],`"${M}" is prohibited for ref layers`))}),f.layers.forEach(M=>{On(M.id)===w&&(E=M)}),E?E.ref?e.push(new li(c,o.ref,"ref cannot reference another ref layer")):v=On(E.type):"string"==typeof w&&e.push(new li(c,o.ref,`ref layer "${w}" not found`))}else if("background"!==v&&"sky"!==v)if(o.source){const E=f.sources&&f.sources[o.source],M=E&&On(E.type);E?"vector"===M&&"raster"===v?e.push(new li(c,o.source,`layer "${o.id}" requires a raster source`)):"raster"===M&&"raster"!==v?e.push(new li(c,o.source,`layer "${o.id}" requires a vector source`)):"vector"!==M||o["source-layer"]?"raster-dem"===M&&"hillshade"!==v?e.push(new li(c,o.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==v||!o.paint||!o.paint["line-gradient"]&&!o.paint["line-trim-offset"]||"geojson"===M&&E.lineMetrics||e.push(new li(c,o,`layer "${o.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):e.push(new li(c,o,`layer "${o.id}" must specify a "source-layer"`)):e.push(new li(c,o.source,`source "${o.source}" not found`))}else e.push(new li(c,o,'missing required property "source"'));return e=e.concat(Ws({key:c,value:o,valueSpec:_.layer,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{"*":()=>[],type:()=>Uo({key:`${c}.type`,value:o.type,valueSpec:_.layer.type,style:r.style,styleSpec:r.styleSpec,object:o,objectKey:"type"}),filter:E=>Ml(Hn({layerType:v},E)),layout:E=>Ws({layer:o,key:E.key,value:E.value,valueSpec:{},style:E.style,styleSpec:E.styleSpec,objectElementValidators:{"*":M=>Al(Hn({layerType:v},M))}}),paint:E=>Ws({layer:o,key:E.key,value:E.value,valueSpec:{},style:E.style,styleSpec:E.styleSpec,objectElementValidators:{"*":M=>Iu(Hn({layerType:v},M))}})}})),e}function Ia(r){const e=r.value,o=r.key,c=xn(e);return"string"!==c?[new li(o,e,`string expected, ${c} found`)]:[]}const cl={promoteId:function({key:r,value:e}){if("string"===xn(e))return Ia({key:r,value:e});{const o=[];for(const c in e)o.push(...Ia({key:`${r}.${c}`,value:e[c]}));return o}}};function hs(r){const e=r.value,o=r.key,c=r.styleSpec,f=r.style;if(!e.type)return[new li(o,e,'"type" is required')];const _=On(e.type);let v;switch(_){case"vector":case"raster":case"raster-dem":return v=Ws({key:o,value:e,valueSpec:c[`source_${_.replace("-","_")}`],style:r.style,styleSpec:c,objectElementValidators:cl}),v;case"geojson":if(v=Ws({key:o,value:e,valueSpec:c.source_geojson,style:f,styleSpec:c,objectElementValidators:cl}),e.cluster)for(const w in e.clusterProperties){const[E,M]=e.clusterProperties[w],L="string"==typeof E?[E,["accumulated"],["get",w]]:E;v.push(...Zr({key:`${o}.${w}.map`,value:M,expressionContext:"cluster-map"})),v.push(...Zr({key:`${o}.${w}.reduce`,value:L,expressionContext:"cluster-reduce"}))}return v;case"video":return Ws({key:o,value:e,valueSpec:c.source_video,style:f,styleSpec:c});case"image":return Ws({key:o,value:e,valueSpec:c.source_image,style:f,styleSpec:c});case"canvas":return[new li(o,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return Kl({key:`${o}.type`,value:e.type,valueSpec:{values:Wc(c)},style:f,styleSpec:c})}}function Wc(r){return r.source.reduce((e,o)=>{const c=r[o];return"enum"===c.type.type&&(e=e.concat(Object.keys(c.type.values))),e},[])}function ul(r){const e=r.value,o=r.styleSpec,c=o.light,f=r.style;let _=[];const v=xn(e);if(void 0===e)return _;if("object"!==v)return _=_.concat([new li("light",e,`object expected, ${v} found`)]),_;for(const w in e){const E=w.match(/^(.*)-transition$/);_=_.concat(E&&c[E[1]]&&c[E[1]].transition?Uo({key:w,value:e[w],valueSpec:o.transition,style:f,styleSpec:o}):c[w]?Uo({key:w,value:e[w],valueSpec:c[w],style:f,styleSpec:o}):[new li(w,e[w],`unknown property "${w}"`)])}return _}function Hi(r){const e=r.value,o=r.key,c=r.style,f=r.styleSpec,_=f.terrain;let v=[];const w=xn(e);if(void 0===e)return v;if("object"!==w)return v=v.concat([new li("terrain",e,`object expected, ${w} found`)]),v;for(const E in e){const M=E.match(/^(.*)-transition$/);v=v.concat(M&&_[M[1]]&&_[M[1]].transition?Uo({key:E,value:e[E],valueSpec:f.transition,style:c,styleSpec:f}):_[E]?Uo({key:E,value:e[E],valueSpec:_[E],style:c,styleSpec:f}):[new li(E,e[E],`unknown property "${E}"`)])}if(e.source){const E=c.sources&&c.sources[e.source],M=E&&On(E.type);E?"raster-dem"!==M&&v.push(new li(o,e.source,`terrain cannot be used with a source of type ${String(M)}, it only be used with a "raster-dem" source type`)):v.push(new li(o,e.source,`source "${e.source}" not found`))}else v.push(new li(o,e,'terrain is missing required property "source"'));return v}function Mu(r){const e=r.value,o=r.style,c=r.styleSpec,f=c.fog;let _=[];const v=xn(e);if(void 0===e)return _;if("object"!==v)return _=_.concat([new li("fog",e,`object expected, ${v} found`)]),_;for(const w in e){const E=w.match(/^(.*)-transition$/);_=_.concat(E&&f[E[1]]&&f[E[1]].transition?Uo({key:w,value:e[w],valueSpec:c.transition,style:o,styleSpec:c}):f[w]?Uo({key:w,value:e[w],valueSpec:f[w],style:o,styleSpec:c}):[new li(w,e[w],`unknown property "${w}"`)])}return _}const Au={"*":()=>[],array:Du,boolean:function(r){const e=r.value,o=r.key,c=xn(e);return"boolean"!==c?[new li(o,e,`boolean expected, ${c} found`)]:[]},number:ga,color:function(r){const e=r.key,o=r.value,c=xn(o);return"string"!==c?[new li(e,o,`color expected, ${c} found`)]:null===$n(o)?[new li(e,o,`color expected, "${o}" found`)]:[]},enum:Kl,filter:Ml,function:Jl,layer:vc,object:Ws,source:hs,light:ul,terrain:Hi,fog:Mu,string:Ia,formatted:function(r){return 0===Ia(r).length?[]:Zr(r)},resolvedImage:function(r){return 0===Ia(r).length?[]:Zr(r)},projection:function(r){const e=r.value,o=r.styleSpec,c=o.projection,f=r.style;let _=[];const v=xn(e);if("object"===v)for(const w in e)_=_.concat(Uo({key:w,value:e[w],valueSpec:c[w],style:f,styleSpec:o}));else"string"!==v&&(_=_.concat([new li("projection",e,`object or string expected, ${v} found`)]));return _}};function Uo(r){const e=r.value,o=r.valueSpec,c=r.styleSpec;return o.expression&&xi(On(e))?Jl(r):o.expression&&ao(Kn(e))?Zr(r):o.type&&Au[o.type]?Au[o.type](r):Ws(Hn({},r,{valueSpec:o.type?c[o.type]:o}))}function qc(r){const e=r.value,o=r.key,c=Ia(r);return c.length||(-1===e.indexOf("{fontstack}")&&c.push(new li(o,e,'"glyphs" url must include a "{fontstack}" token')),-1===e.indexOf("{range}")&&c.push(new li(o,e,'"glyphs" url must include a "{range}" token'))),c}function Su(r,e=vt){return Ms(Uo({key:"",value:r,valueSpec:e.$root,styleSpec:e,style:r,objectElementValidators:{glyphs:qc,"*":()=>[]}}))}const Pu=r=>Ms(Iu(r)),ec=r=>Ms(Al(r));function Ms(r){return r.slice().sort((e,o)=>e.line&&o.line?e.line-o.line:0)}function Ou(r,e){let o=!1;if(e&&e.length)for(const c of e)r.fire(new Et(new Error(c.message))),o=!0;return o}var Lh=Ma,ya=3;function Ma(r,e,o){var c=this.cells=[];if(r instanceof ArrayBuffer){this.arrayBuffer=r;var f=new Int32Array(this.arrayBuffer);r=f[0],this.d=(e=f[1])+2*(o=f[2]);for(var _=0;_=L[W+0]&&c>=L[W+1])?(v[j]=!0,_.push(M[j])):v[j]=!1}}},Ma.prototype._forEachCell=function(r,e,o,c,f,_,v,w){for(var E=this._convertToCellCoord(r),M=this._convertToCellCoord(e),L=this._convertToCellCoord(o),N=this._convertToCellCoord(c),j=E;j<=L;j++)for(var W=M;W<=N;W++){var J=this.d*W+j;if((!w||w(this._convertFromCellCoord(j),this._convertFromCellCoord(W),this._convertFromCellCoord(j+1),this._convertFromCellCoord(W+1)))&&f.call(this,r,e,o,c,J,_,v,w))return}},Ma.prototype._convertFromCellCoord=function(r){return(r-this.padding)/this.scale},Ma.prototype._convertToCellCoord=function(r){return Math.max(0,Math.min(this.d-1,Math.floor(r*this.scale)+this.padding))},Ma.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var r=this.cells,e=ya+this.cells.length+1+1,o=0,c=0;c=0||(f[_]=dl(r[_],e)));r instanceof Error&&(f.message=r.message)}if(f.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==c&&(f.$name=c),f}throw new Error("can't serialize object of type "+typeof r)}function ra(r){if(null==r||"boolean"==typeof r||"number"==typeof r||"string"==typeof r||r instanceof Boolean||r instanceof Number||r instanceof String||r instanceof Date||r instanceof RegExp||tc(r)||Nr(r)||ArrayBuffer.isView(r)||r instanceof B.ImageData)return r;if(Array.isArray(r))return r.map(ra);if("object"==typeof r){const e=r.$name||"Object",{klass:o}=gr[e];if(!o)throw new Error(`can't deserialize unregistered class ${e}`);if(o.deserialize)return o.deserialize(r);const c=Object.create(o.prototype);for(const f of Object.keys(r))"$name"!==f&&(c[f]=ra(r[f]));return c}throw new Error("can't deserialize object of type "+typeof r)}const oi={"Latin-1 Supplement":r=>r>=128&&r<=255,Arabic:r=>r>=1536&&r<=1791,"Arabic Supplement":r=>r>=1872&&r<=1919,"Arabic Extended-A":r=>r>=2208&&r<=2303,"Hangul Jamo":r=>r>=4352&&r<=4607,"Unified Canadian Aboriginal Syllabics":r=>r>=5120&&r<=5759,Khmer:r=>r>=6016&&r<=6143,"Unified Canadian Aboriginal Syllabics Extended":r=>r>=6320&&r<=6399,"General Punctuation":r=>r>=8192&&r<=8303,"Letterlike Symbols":r=>r>=8448&&r<=8527,"Number Forms":r=>r>=8528&&r<=8591,"Miscellaneous Technical":r=>r>=8960&&r<=9215,"Control Pictures":r=>r>=9216&&r<=9279,"Optical Character Recognition":r=>r>=9280&&r<=9311,"Enclosed Alphanumerics":r=>r>=9312&&r<=9471,"Geometric Shapes":r=>r>=9632&&r<=9727,"Miscellaneous Symbols":r=>r>=9728&&r<=9983,"Miscellaneous Symbols and Arrows":r=>r>=11008&&r<=11263,"CJK Radicals Supplement":r=>r>=11904&&r<=12031,"Kangxi Radicals":r=>r>=12032&&r<=12255,"Ideographic Description Characters":r=>r>=12272&&r<=12287,"CJK Symbols and Punctuation":r=>r>=12288&&r<=12351,Hiragana:r=>r>=12352&&r<=12447,Katakana:r=>r>=12448&&r<=12543,Bopomofo:r=>r>=12544&&r<=12591,"Hangul Compatibility Jamo":r=>r>=12592&&r<=12687,Kanbun:r=>r>=12688&&r<=12703,"Bopomofo Extended":r=>r>=12704&&r<=12735,"CJK Strokes":r=>r>=12736&&r<=12783,"Katakana Phonetic Extensions":r=>r>=12784&&r<=12799,"Enclosed CJK Letters and Months":r=>r>=12800&&r<=13055,"CJK Compatibility":r=>r>=13056&&r<=13311,"CJK Unified Ideographs Extension A":r=>r>=13312&&r<=19903,"Yijing Hexagram Symbols":r=>r>=19904&&r<=19967,"CJK Unified Ideographs":r=>r>=19968&&r<=40959,"Yi Syllables":r=>r>=40960&&r<=42127,"Yi Radicals":r=>r>=42128&&r<=42191,"Hangul Jamo Extended-A":r=>r>=43360&&r<=43391,"Hangul Syllables":r=>r>=44032&&r<=55215,"Hangul Jamo Extended-B":r=>r>=55216&&r<=55295,"Private Use Area":r=>r>=57344&&r<=63743,"CJK Compatibility Ideographs":r=>r>=63744&&r<=64255,"Arabic Presentation Forms-A":r=>r>=64336&&r<=65023,"Vertical Forms":r=>r>=65040&&r<=65055,"CJK Compatibility Forms":r=>r>=65072&&r<=65103,"Small Form Variants":r=>r>=65104&&r<=65135,"Arabic Presentation Forms-B":r=>r>=65136&&r<=65279,"Halfwidth and Fullwidth Forms":r=>r>=65280&&r<=65519};function nc(r){for(const e of r)if(Jc(e.charCodeAt(0)))return!0;return!1}function Yc(r){for(const e of r)if(!Ru(e.charCodeAt(0)))return!1;return!0}function Ru(r){return!(oi.Arabic(r)||oi["Arabic Supplement"](r)||oi["Arabic Extended-A"](r)||oi["Arabic Presentation Forms-A"](r)||oi["Arabic Presentation Forms-B"](r))}function Jc(r){return!(746!==r&&747!==r&&(r<4352||!(oi["Bopomofo Extended"](r)||oi.Bopomofo(r)||oi["CJK Compatibility Forms"](r)&&!(r>=65097&&r<=65103)||oi["CJK Compatibility Ideographs"](r)||oi["CJK Compatibility"](r)||oi["CJK Radicals Supplement"](r)||oi["CJK Strokes"](r)||!(!oi["CJK Symbols and Punctuation"](r)||r>=12296&&r<=12305||r>=12308&&r<=12319||12336===r)||oi["CJK Unified Ideographs Extension A"](r)||oi["CJK Unified Ideographs"](r)||oi["Enclosed CJK Letters and Months"](r)||oi["Hangul Compatibility Jamo"](r)||oi["Hangul Jamo Extended-A"](r)||oi["Hangul Jamo Extended-B"](r)||oi["Hangul Jamo"](r)||oi["Hangul Syllables"](r)||oi.Hiragana(r)||oi["Ideographic Description Characters"](r)||oi.Kanbun(r)||oi["Kangxi Radicals"](r)||oi["Katakana Phonetic Extensions"](r)||oi.Katakana(r)&&12540!==r||!(!oi["Halfwidth and Fullwidth Forms"](r)||65288===r||65289===r||65293===r||r>=65306&&r<=65310||65339===r||65341===r||65343===r||r>=65371&&r<=65503||65507===r||r>=65512&&r<=65519)||!(!oi["Small Form Variants"](r)||r>=65112&&r<=65118||r>=65123&&r<=65126)||oi["Unified Canadian Aboriginal Syllabics"](r)||oi["Unified Canadian Aboriginal Syllabics Extended"](r)||oi["Vertical Forms"](r)||oi["Yijing Hexagram Symbols"](r)||oi["Yi Syllables"](r)||oi["Yi Radicals"](r))))}function Kc(r){return!(Jc(r)||(e=r,oi["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||oi["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||oi["Letterlike Symbols"](e)||oi["Number Forms"](e)||oi["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||oi["Control Pictures"](e)&&9251!==e||oi["Optical Character Recognition"](e)||oi["Enclosed Alphanumerics"](e)||oi["Geometric Shapes"](e)||oi["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||oi["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||oi["CJK Symbols and Punctuation"](e)||oi.Katakana(e)||oi["Private Use Area"](e)||oi["CJK Compatibility Forms"](e)||oi["Small Form Variants"](e)||oi["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e));var e}function ns(r){return r>=1424&&r<=2303||oi["Arabic Presentation Forms-A"](r)||oi["Arabic Presentation Forms-B"](r)}function qa(r,e){return!(!e&&ns(r)||r>=2304&&r<=3583||r>=3840&&r<=4255||oi.Khmer(r))}function Dd(r){for(const e of r)if(ns(e.charCodeAt(0)))return!0;return!1}const oa="deferred",va="loading",Lu="loaded";let S=null,u="unavailable",n=null;const a=function(r){r&&"string"==typeof r&&r.indexOf("NetworkError")>-1&&(u="error"),S&&S(r)};function p(){y.fire(new Tt("pluginStateChange",{pluginStatus:u,pluginURL:n}))}const y=new ln,x=function(){return u},D=function(){if(u!==oa||!n)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");u=va,p(),n&&Jt({url:n},r=>{r?a(r):(u=Lu,p())})},I={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>u===Lu||null!=I.applyArabicShaping,isLoading:()=>u===va,setState(r){u=r.pluginStatus,n=r.pluginURL},isParsed:()=>null!=I.applyArabicShaping&&null!=I.processBidirectionalText&&null!=I.processStyledBidirectionalText,getPluginURL:()=>n};class R{constructor(e,o){this.zoom=e,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.transition=o.transition,this.pitch=o.pitch):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0)}isSupportedScript(e){return function(o,c){for(const f of o)if(!qa(f.charCodeAt(0),c))return!1;return!0}(e,I.isLoaded())}}class U{constructor(e,o){this.property=e,this.value=o,this.expression=function(c,f){if(xi(c))return new ia(c,f);if(ao(c)){const _=zo(c,f);if("error"===_.result)throw new Error(_.value.map(v=>`${v.key}: ${v.message}`).join(", "));return _.value}{let _=c;return"string"==typeof c&&"color"===f.type&&(_=O.parse(c)),{kind:"constant",evaluate:()=>_}}}(void 0===o?e.specification.default:o,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,o,c){return this.property.possiblyEvaluate(this,e,o,c)}}class z{constructor(e){this.property=e,this.value=new U(e,void 0)}transitioned(e,o){return new Se(this.property,this.value,o,We({},e.transition,this.transition),e.now)}untransitioned(){return new Se(this.property,this.value,null,{},0)}}class Q{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return bn(this._values[e].value.value)}setValue(e,o){this._values.hasOwnProperty(e)||(this._values[e]=new z(this._values[e].property)),this._values[e].value=new U(this._values[e].property,null===o?void 0:bn(o))}getTransition(e){return bn(this._values[e].transition)}setTransition(e,o){this._values.hasOwnProperty(e)||(this._values[e]=new z(this._values[e].property)),this._values[e].transition=bn(o)||void 0}serialize(){const e={};for(const o of Object.keys(this._values)){const c=this.getValue(o);void 0!==c&&(e[o]=c);const f=this.getTransition(o);void 0!==f&&(e[`${o}-transition`]=f)}return e}transitioned(e,o){const c=new je(this._properties);for(const f of Object.keys(this._values))c._values[f]=this._values[f].transitioned(e,o._values[f]);return c}untransitioned(){const e=new je(this._properties);for(const o of Object.keys(this._values))e._values[o]=this._values[o].untransitioned();return e}}class Se{constructor(e,o,c,f,_){const v=f.delay||0,w=f.duration||0;_=_||0,this.property=e,this.value=o,this.begin=_+v,this.end=this.begin+w,e.specification.transition&&(f.delay||f.duration)&&(this.prior=c)}possiblyEvaluate(e,o,c){const f=e.now||0,_=this.value.possiblyEvaluate(e,o,c),v=this.prior;if(v){if(f>this.end)return this.prior=null,_;if(this.value.isDataDriven())return this.prior=null,_;if(fthis.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);const o=this.uint8;this._refreshViews(),o&&this.uint8.set(o)}}_refreshViews(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")}destroy(){this.int8=this.uint8=this.int16=this.uint16=this.int32=this.uint32=this.float32=null,this.arrayBuffer=null}}function $t(r,e=1){let o=0,c=0;return{members:r.map(f=>{const _=kt[f.type].BYTES_PER_ELEMENT,v=o=cn(o,Math.max(e,_)),w=f.components||1;return c=Math.max(c,_),o+=_*w,{name:f.name,type:f.type,components:w,offset:v}}),size:cn(o,Math.max(c,e)),alignment:e}}function cn(r,e){return Math.ceil(r/e)*e}class Wn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o){const c=this.length;return this.resize(c+1),this.emplace(c,e,o)}emplace(e,o,c){const f=2*e;return this.int16[f+0]=o,this.int16[f+1]=c,e}}Wn.prototype.bytesPerElement=4,hi(Wn,"StructArrayLayout2i4");class nn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,c){const f=this.length;return this.resize(f+1),this.emplace(f,e,o,c)}emplace(e,o,c,f){const _=3*e;return this.int16[_+0]=o,this.int16[_+1]=c,this.int16[_+2]=f,e}}nn.prototype.bytesPerElement=6,hi(nn,"StructArrayLayout3i6");class Mn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,c,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,c,f)}emplace(e,o,c,f,_){const v=4*e;return this.int16[v+0]=o,this.int16[v+1]=c,this.int16[v+2]=f,this.int16[v+3]=_,e}}Mn.prototype.bytesPerElement=8,hi(Mn,"StructArrayLayout4i8");class pn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v,w){const E=this.length;return this.resize(E+1),this.emplace(E,e,o,c,f,_,v,w)}emplace(e,o,c,f,_,v,w,E){const M=6*e,L=12*e,N=3*e;return this.int16[M+0]=o,this.int16[M+1]=c,this.uint8[L+4]=f,this.uint8[L+5]=_,this.uint8[L+6]=v,this.uint8[L+7]=w,this.float32[N+2]=E,e}}pn.prototype.bytesPerElement=12,hi(pn,"StructArrayLayout2i4ub1f12");class qn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,c,f)}emplace(e,o,c,f,_){const v=4*e;return this.float32[v+0]=o,this.float32[v+1]=c,this.float32[v+2]=f,this.float32[v+3]=_,e}}qn.prototype.bytesPerElement=16,hi(qn,"StructArrayLayout4f16");class sn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_){const v=this.length;return this.resize(v+1),this.emplace(v,e,o,c,f,_)}emplace(e,o,c,f,_,v){const w=6*e,E=3*e;return this.uint16[w+0]=o,this.uint16[w+1]=c,this.uint16[w+2]=f,this.uint16[w+3]=_,this.float32[E+2]=v,e}}sn.prototype.bytesPerElement=12,hi(sn,"StructArrayLayout4ui1f12");class An extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,c,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,c,f)}emplace(e,o,c,f,_){const v=4*e;return this.uint16[v+0]=o,this.uint16[v+1]=c,this.uint16[v+2]=f,this.uint16[v+3]=_,e}}An.prototype.bytesPerElement=8,hi(An,"StructArrayLayout4ui8");class Zn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v){const w=this.length;return this.resize(w+1),this.emplace(w,e,o,c,f,_,v)}emplace(e,o,c,f,_,v,w){const E=6*e;return this.int16[E+0]=o,this.int16[E+1]=c,this.int16[E+2]=f,this.int16[E+3]=_,this.int16[E+4]=v,this.int16[E+5]=w,e}}Zn.prototype.bytesPerElement=12,hi(Zn,"StructArrayLayout6i12");class kn extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v,w,E,M,L,N,j){const W=this.length;return this.resize(W+1),this.emplace(W,e,o,c,f,_,v,w,E,M,L,N,j)}emplace(e,o,c,f,_,v,w,E,M,L,N,j,W){const J=12*e;return this.int16[J+0]=o,this.int16[J+1]=c,this.int16[J+2]=f,this.int16[J+3]=_,this.uint16[J+4]=v,this.uint16[J+5]=w,this.uint16[J+6]=E,this.uint16[J+7]=M,this.int16[J+8]=L,this.int16[J+9]=N,this.int16[J+10]=j,this.int16[J+11]=W,e}}kn.prototype.bytesPerElement=24,hi(kn,"StructArrayLayout4i4ui4i24");class ti extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v){const w=this.length;return this.resize(w+1),this.emplace(w,e,o,c,f,_,v)}emplace(e,o,c,f,_,v,w){const E=10*e,M=5*e;return this.int16[E+0]=o,this.int16[E+1]=c,this.int16[E+2]=f,this.float32[M+2]=_,this.float32[M+3]=v,this.float32[M+4]=w,e}}ti.prototype.bytesPerElement=20,hi(ti,"StructArrayLayout3i3f20");class Ii extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){const o=this.length;return this.resize(o+1),this.emplace(o,e)}emplace(e,o){return this.uint32[1*e+0]=o,e}}Ii.prototype.bytesPerElement=4,hi(Ii,"StructArrayLayout1ul4");class $i extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v,w,E,M,L,N,j,W){const J=this.length;return this.resize(J+1),this.emplace(J,e,o,c,f,_,v,w,E,M,L,N,j,W)}emplace(e,o,c,f,_,v,w,E,M,L,N,j,W,J){const se=20*e,Le=10*e;return this.int16[se+0]=o,this.int16[se+1]=c,this.int16[se+2]=f,this.int16[se+3]=_,this.int16[se+4]=v,this.float32[Le+3]=w,this.float32[Le+4]=E,this.float32[Le+5]=M,this.float32[Le+6]=L,this.int16[se+14]=N,this.uint32[Le+8]=j,this.uint16[se+18]=W,this.uint16[se+19]=J,e}}$i.prototype.bytesPerElement=40,hi($i,"StructArrayLayout5i4f1i1ul2ui40");class mi extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v,w){const E=this.length;return this.resize(E+1),this.emplace(E,e,o,c,f,_,v,w)}emplace(e,o,c,f,_,v,w,E){const M=8*e;return this.int16[M+0]=o,this.int16[M+1]=c,this.int16[M+2]=f,this.int16[M+4]=_,this.int16[M+5]=v,this.int16[M+6]=w,this.int16[M+7]=E,e}}mi.prototype.bytesPerElement=16,hi(mi,"StructArrayLayout3i2i2i16");class Oi extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_){const v=this.length;return this.resize(v+1),this.emplace(v,e,o,c,f,_)}emplace(e,o,c,f,_,v){const w=4*e,E=8*e;return this.float32[w+0]=o,this.float32[w+1]=c,this.float32[w+2]=f,this.int16[E+6]=_,this.int16[E+7]=v,e}}Oi.prototype.bytesPerElement=16,hi(Oi,"StructArrayLayout2f1f2i16");class cr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,c,f)}emplace(e,o,c,f,_){const v=12*e,w=3*e;return this.uint8[v+0]=o,this.uint8[v+1]=c,this.float32[w+1]=f,this.float32[w+2]=_,e}}cr.prototype.bytesPerElement=12,hi(cr,"StructArrayLayout2ub2f12");class lr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c){const f=this.length;return this.resize(f+1),this.emplace(f,e,o,c)}emplace(e,o,c,f){const _=3*e;return this.float32[_+0]=o,this.float32[_+1]=c,this.float32[_+2]=f,e}}lr.prototype.bytesPerElement=12,hi(lr,"StructArrayLayout3f12");class Ci extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,c){const f=this.length;return this.resize(f+1),this.emplace(f,e,o,c)}emplace(e,o,c,f){const _=3*e;return this.uint16[_+0]=o,this.uint16[_+1]=c,this.uint16[_+2]=f,e}}Ci.prototype.bytesPerElement=6,hi(Ci,"StructArrayLayout3ui6");class br extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le,rt,bt,at,xt,At){const Mt=this.length;return this.resize(Mt+1),this.emplace(Mt,e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le,rt,bt,at,xt,At)}emplace(e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le,rt,bt,at,xt,At,Mt){const un=30*e,rn=15*e,Dn=60*e;return this.int16[un+0]=o,this.int16[un+1]=c,this.int16[un+2]=f,this.float32[rn+2]=_,this.float32[rn+3]=v,this.uint16[un+8]=w,this.uint16[un+9]=E,this.uint32[rn+5]=M,this.uint32[rn+6]=L,this.uint32[rn+7]=N,this.uint16[un+16]=j,this.uint16[un+17]=W,this.uint16[un+18]=J,this.float32[rn+10]=se,this.float32[rn+11]=Le,this.uint8[Dn+48]=rt,this.uint8[Dn+49]=bt,this.uint8[Dn+50]=at,this.uint32[rn+13]=xt,this.int16[un+28]=At,this.uint8[Dn+58]=Mt,e}}br.prototype.bytesPerElement=60,hi(br,"StructArrayLayout3i2f2ui3ul3ui2f3ub1ul1i1ub60");class Gr extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le,rt,bt,at,xt,At,Mt,un,rn,Dn,Yn,mn,Pn,Rn,zn){const Qn=this.length;return this.resize(Qn+1),this.emplace(Qn,e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le,rt,bt,at,xt,At,Mt,un,rn,Dn,Yn,mn,Pn,Rn,zn)}emplace(e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le,rt,bt,at,xt,At,Mt,un,rn,Dn,Yn,mn,Pn,Rn,zn,Qn){const En=38*e,ai=19*e;return this.int16[En+0]=o,this.int16[En+1]=c,this.int16[En+2]=f,this.float32[ai+2]=_,this.float32[ai+3]=v,this.int16[En+8]=w,this.int16[En+9]=E,this.int16[En+10]=M,this.int16[En+11]=L,this.int16[En+12]=N,this.int16[En+13]=j,this.uint16[En+14]=W,this.uint16[En+15]=J,this.uint16[En+16]=se,this.uint16[En+17]=Le,this.uint16[En+18]=rt,this.uint16[En+19]=bt,this.uint16[En+20]=at,this.uint16[En+21]=xt,this.uint16[En+22]=At,this.uint16[En+23]=Mt,this.uint16[En+24]=un,this.uint16[En+25]=rn,this.uint16[En+26]=Dn,this.uint16[En+27]=Yn,this.uint16[En+28]=mn,this.uint32[ai+15]=Pn,this.float32[ai+16]=Rn,this.float32[ai+17]=zn,this.float32[ai+18]=Qn,e}}Gr.prototype.bytesPerElement=76,hi(Gr,"StructArrayLayout3i2f6i15ui1ul3f76");class Ir extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){const o=this.length;return this.resize(o+1),this.emplace(o,e)}emplace(e,o){return this.float32[1*e+0]=o,e}}Ir.prototype.bytesPerElement=4,hi(Ir,"StructArrayLayout1f4");class Br extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o,c,f,_){const v=this.length;return this.resize(v+1),this.emplace(v,e,o,c,f,_)}emplace(e,o,c,f,_,v){const w=5*e;return this.float32[w+0]=o,this.float32[w+1]=c,this.float32[w+2]=f,this.float32[w+3]=_,this.float32[w+4]=v,e}}Br.prototype.bytesPerElement=20,hi(Br,"StructArrayLayout5f20");class jo extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o,c,f){const _=this.length;return this.resize(_+1),this.emplace(_,e,o,c,f)}emplace(e,o,c,f,_){const v=6*e;return this.uint32[3*e+0]=o,this.uint16[v+2]=c,this.uint16[v+3]=f,this.uint16[v+4]=_,e}}jo.prototype.bytesPerElement=12,hi(jo,"StructArrayLayout1ul3ui12");class is extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,o){const c=this.length;return this.resize(c+1),this.emplace(c,e,o)}emplace(e,o,c){const f=2*e;return this.uint16[f+0]=o,this.uint16[f+1]=c,e}}is.prototype.bytesPerElement=4,hi(is,"StructArrayLayout2ui4");class sa extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){const o=this.length;return this.resize(o+1),this.emplace(o,e)}emplace(e,o){return this.uint16[1*e+0]=o,e}}sa.prototype.bytesPerElement=2,hi(sa,"StructArrayLayout1ui2");class Aa extends qt{_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,o){const c=this.length;return this.resize(c+1),this.emplace(c,e,o)}emplace(e,o,c){const f=2*e;return this.float32[f+0]=o,this.float32[f+1]=c,e}}Aa.prototype.bytesPerElement=8,hi(Aa,"StructArrayLayout2f8");class co extends Lt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.int16[this._pos2+3]}get tileAnchorY(){return this._structArray.int16[this._pos2+4]}get x1(){return this._structArray.float32[this._pos4+3]}get y1(){return this._structArray.float32[this._pos4+4]}get x2(){return this._structArray.float32[this._pos4+5]}get y2(){return this._structArray.float32[this._pos4+6]}get padding(){return this._structArray.int16[this._pos2+14]}get featureIndex(){return this._structArray.uint32[this._pos4+8]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+18]}get bucketIndex(){return this._structArray.uint16[this._pos2+19]}}co.prototype.size=40;class yr extends $i{get(e){return new co(this,e)}}hi(yr,"CollisionBoxArray");class Er extends Lt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+8]}get numGlyphs(){return this._structArray.uint16[this._pos2+9]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+5]}get lineStartIndex(){return this._structArray.uint32[this._pos4+6]}get lineLength(){return this._structArray.uint32[this._pos4+7]}get segment(){return this._structArray.uint16[this._pos2+16]}get lowerSize(){return this._structArray.uint16[this._pos2+17]}get upperSize(){return this._structArray.uint16[this._pos2+18]}get lineOffsetX(){return this._structArray.float32[this._pos4+10]}get lineOffsetY(){return this._structArray.float32[this._pos4+11]}get writingMode(){return this._structArray.uint8[this._pos1+48]}get placedOrientation(){return this._structArray.uint8[this._pos1+49]}set placedOrientation(e){this._structArray.uint8[this._pos1+49]=e}get hidden(){return this._structArray.uint8[this._pos1+50]}set hidden(e){this._structArray.uint8[this._pos1+50]=e}get crossTileID(){return this._structArray.uint32[this._pos4+13]}set crossTileID(e){this._structArray.uint32[this._pos4+13]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+28]}get flipState(){return this._structArray.uint8[this._pos1+58]}set flipState(e){this._structArray.uint8[this._pos1+58]=e}}Er.prototype.size=60;class go extends br{get(e){return new Er(this,e)}}hi(go,"PlacedSymbolArray");class rs extends Lt{get projectedAnchorX(){return this._structArray.int16[this._pos2+0]}get projectedAnchorY(){return this._structArray.int16[this._pos2+1]}get projectedAnchorZ(){return this._structArray.int16[this._pos2+2]}get tileAnchorX(){return this._structArray.float32[this._pos4+2]}get tileAnchorY(){return this._structArray.float32[this._pos4+3]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+8]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+9]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+10]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+11]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+12]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+13]}get key(){return this._structArray.uint16[this._pos2+14]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+17]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+18]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+19]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+20]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+21]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+22]}get featureIndex(){return this._structArray.uint16[this._pos2+23]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+24]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+25]}get numIconVertices(){return this._structArray.uint16[this._pos2+26]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+27]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+28]}get crossTileID(){return this._structArray.uint32[this._pos4+15]}set crossTileID(e){this._structArray.uint32[this._pos4+15]=e}get textOffset0(){return this._structArray.float32[this._pos4+16]}get textOffset1(){return this._structArray.float32[this._pos4+17]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+18]}}rs.prototype.size=76;class no extends Gr{get(e){return new rs(this,e)}}hi(no,"SymbolInstanceArray");class os extends Ir{getoffsetX(e){return this.float32[1*e+0]}}hi(os,"GlyphOffsetArray");class xc extends Wn{getx(e){return this.int16[2*e+0]}gety(e){return this.int16[2*e+1]}}hi(xc,"SymbolLineVertexArray");class ic extends Lt{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}get layoutVertexArrayOffset(){return this._structArray.uint16[this._pos2+4]}}ic.prototype.size=12;class bc extends jo{get(e){return new ic(this,e)}}hi(bc,"FeatureIndexArray");class Ya extends is{geta_centroid_pos0(e){return this.uint16[2*e+0]}geta_centroid_pos1(e){return this.uint16[2*e+1]}}hi(Ya,"FillExtrusionCentroidArray");const hl=$t([{name:"a_pattern",components:4,type:"Uint16"},{name:"a_pixel_ratio",components:1,type:"Float32"}]),Sl=$t([{name:"a_dash",components:4,type:"Uint16"}]);var ku={exports:{}},up=function(r,e){var o,c,f,_,v,w,E,M;for(c=r.length-(o=3&r.length),f=e,v=3432918353,w=461845907,M=0;M>>16)*v&65535)<<16)&4294967295)<<15|E>>>17))*w+(((E>>>16)*w&65535)<<16)&4294967295)<<13|f>>>19))+((5*(f>>>16)&65535)<<16)&4294967295))+((58964+(_>>>16)&65535)<<16);switch(E=0,o){case 3:E^=(255&r.charCodeAt(M+2))<<16;case 2:E^=(255&r.charCodeAt(M+1))<<8;case 1:f^=E=(65535&(E=(E=(65535&(E^=255&r.charCodeAt(M)))*v+(((E>>>16)*v&65535)<<16)&4294967295)<<15|E>>>17))*w+(((E>>>16)*w&65535)<<16)&4294967295}return f^=r.length,f=2246822507*(65535&(f^=f>>>16))+((2246822507*(f>>>16)&65535)<<16)&4294967295,f=3266489909*(65535&(f^=f>>>13))+((3266489909*(f>>>16)&65535)<<16)&4294967295,(f^=f>>>16)>>>0},rg=function(r,e){for(var o,c=r.length,f=e^c,_=0;c>=4;)o=1540483477*(65535&(o=255&r.charCodeAt(_)|(255&r.charCodeAt(++_))<<8|(255&r.charCodeAt(++_))<<16|(255&r.charCodeAt(++_))<<24))+((1540483477*(o>>>16)&65535)<<16),f=1540483477*(65535&f)+((1540483477*(f>>>16)&65535)<<16)^(o=1540483477*(65535&(o^=o>>>24))+((1540483477*(o>>>16)&65535)<<16)),c-=4,++_;switch(c){case 3:f^=(255&r.charCodeAt(_+2))<<16;case 2:f^=(255&r.charCodeAt(_+1))<<8;case 1:f=1540483477*(65535&(f^=255&r.charCodeAt(_)))+((1540483477*(f>>>16)&65535)<<16)}return f=1540483477*(65535&(f^=f>>>13))+((1540483477*(f>>>16)&65535)<<16),(f^=f>>>15)>>>0};ku.exports=up,ku.exports.murmur3=up,ku.exports.murmur2=rg;var wc=nt(ku.exports);class rc{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,o,c,f){this.ids.push(Go(e)),this.positions.push(o,c,f)}getPositions(e){const o=Go(e);let c=0,f=this.ids.length-1;for(;c>1;this.ids[v]>=o?f=v:c=v+1}const _=[];for(;this.ids[c]===o;)_.push({index:this.positions[3*c],start:this.positions[3*c+1],end:this.positions[3*c+2]}),c++;return _}static serialize(e,o){const c=new Float64Array(e.ids),f=new Uint32Array(e.positions);return dp(c,f,0,c.length-1),o&&o.push(c.buffer,f.buffer),{ids:c,positions:f}}static deserialize(e){const o=new rc;return o.ids=e.ids,o.positions=e.positions,o.indexed=!0,o}}function Go(r){const e=+r;return!isNaN(e)&&Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER?e:wc(String(r))}function dp(r,e,o,c){for(;o>1];let _=o-1,v=c+1;for(;;){do{_++}while(r[_]f);if(_>=v)break;Id(r,_,v),Id(e,3*_,3*v),Id(e,3*_+1,3*v+1),Id(e,3*_+2,3*v+2)}v-o`u_${f}`),this.type=c}setUniform(e,o,c,f,_){o.set(e,_,f.constantOr(this.value))}getBinding(e,o){return"color"===this.type?new Fh(e):new kh(e)}}class ml{constructor(e,o){this.uniformNames=o.map(c=>`u_${c}`),this.pattern=null,this.pixelRatio=1}setConstantPatternPositions(e){this.pixelRatio=e.pixelRatio||1,this.pattern=e.tl.concat(e.br)}setUniform(e,o,c,f,_){const v="u_pattern"===_||"u_dash"===_?this.pattern:"u_pixel_ratio"===_?this.pixelRatio:null;v&&o.set(e,_,v)}getBinding(e,o){return"u_pattern"===o||"u_dash"===o?new hp(e):new kh(e)}}class Cc{constructor(e,o,c,f){this.expression=e,this.type=c,this.maxValue=0,this.paintVertexAttributes=o.map(_=>({name:`a_${_}`,type:"Float32",components:"color"===c?2:1,offset:0})),this.paintVertexArray=new f}populatePaintArray(e,o,c,f,_,v){const w=this.paintVertexArray.length,E=this.expression.evaluate(new R(0),o,{},_,f,v);this.paintVertexArray.resize(e),this._setPaintValue(w,e,E)}updatePaintArray(e,o,c,f,_){const v=this.expression.evaluate({zoom:0},c,f,void 0,_);this._setPaintValue(e,o,v)}_setPaintValue(e,o,c){if("color"===this.type){const f=Nh(c);for(let _=e;_`u_${w}_t`),this.type=c,this.useIntegerZoom=f,this.zoom=_,this.maxValue=0,this.paintVertexAttributes=o.map(w=>({name:`a_${w}`,type:"Float32",components:"color"===c?4:2,offset:0})),this.paintVertexArray=new v}populatePaintArray(e,o,c,f,_,v){const w=this.expression.evaluate(new R(this.zoom),o,{},_,f,v),E=this.expression.evaluate(new R(this.zoom+1),o,{},_,f,v),M=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(M,e,w,E)}updatePaintArray(e,o,c,f,_){const v=this.expression.evaluate({zoom:this.zoom},c,f,void 0,_),w=this.expression.evaluate({zoom:this.zoom+1},c,f,void 0,_);this._setPaintValue(e,o,v,w)}_setPaintValue(e,o,c,f){if("color"===this.type){const _=Nh(c),v=Nh(f);for(let w=e;w!0)){this.binders={},this._buffers=[];const f=[];for(const _ in e.paint._values){if(!c(_))continue;const v=e.paint.get(_);if(!(v instanceof $e&&le(v.property.specification)))continue;const w=$0(_,e.type),E=v.value,M=v.property.specification.type,L=!!v.property.useIntegerZoom,N="line-dasharray"===_||_.endsWith("pattern"),j="line-dasharray"===_&&"constant"!==e.layout.get("line-cap").value.kind;if("constant"!==E.kind||j)if("source"===E.kind||j||N){const W=og(_,M,"source");this.binders[_]=N?new Qc(E,w,M,W,e.id):new Cc(E,w,M,W),f.push(`/a_${_}`)}else{const W=og(_,M,"composite");this.binders[_]=new gl(E,w,M,L,o,W),f.push(`/z_${_}`)}else this.binders[_]=N?new ml(E.value,w):new Xc(E.value,w,M),f.push(`/u_${_}`)}this.cacheKey=f.sort().join("")}getMaxValue(e){const o=this.binders[e];return o instanceof Cc||o instanceof gl?o.maxValue:0}populatePaintArrays(e,o,c,f,_,v){for(const w in this.binders){const E=this.binders[w];(E instanceof Cc||E instanceof gl||E instanceof Qc)&&E.populatePaintArray(e,o,c,f,_,v)}}setConstantPatternPositions(e){for(const o in this.binders){const c=this.binders[o];c instanceof ml&&c.setConstantPatternPositions(e)}}updatePaintArrays(e,o,c,f,_,v){let w=!1;for(const E in e){const M=o.getPositions(E);for(const L of M){const N=c.feature(L.index);for(const j in this.binders){const W=this.binders[j];if((W instanceof Cc||W instanceof gl||W instanceof Qc)&&!0===W.expression.isStateDependent){const J=f.paint.get(j);W.expression=J.value,W.updatePaintArray(L.start,L.end,N,e[E],_,v),w=!0}}}}return w}defines(){const e=[];for(const o in this.binders){const c=this.binders[o];(c instanceof Xc||c instanceof ml)&&e.push(...c.uniformNames.map(f=>`#define HAS_UNIFORM_${f}`))}return e}getBinderAttributes(){const e=[];for(const o in this.binders){const c=this.binders[o];if(c instanceof Cc||c instanceof gl||c instanceof Qc)for(let f=0;f!0)){this.programConfigurations={};for(const f of e)this.programConfigurations[f.id]=new eu(f,o,c);this.needsUpload=!1,this._featureMap=new rc,this._bufferOffset=0}populatePaintArrays(e,o,c,f,_,v,w){for(const E in this.programConfigurations)this.programConfigurations[E].populatePaintArrays(e,o,f,_,v,w);void 0!==o.id&&this._featureMap.add(o.id,c,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,o,c,f,_){for(const v of c)this.needsUpload=this.programConfigurations[v.id].updatePaintArrays(e,this._featureMap,o,v,f,_)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(const o in this.programConfigurations)this.programConfigurations[o].upload(e);this.needsUpload=!1}}destroy(){for(const e in this.programConfigurations)this.programConfigurations[e].destroy()}}const V0={"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern","pixel_ratio"],"fill-pattern":["pattern","pixel_ratio"],"fill-extrusion-pattern":["pattern","pixel_ratio"],"line-dasharray":["dash"]};function $0(r,e){return V0[r]||[r.replace(`${e}-`,"").replace(/-/g,"_")]}const Z0={"line-pattern":{source:sn,composite:sn},"fill-pattern":{source:sn,composite:sn},"fill-extrusion-pattern":{source:sn,composite:sn},"line-dasharray":{source:An,composite:An}},Uu={color:{source:Aa,composite:qn},number:{source:Ir,composite:Aa}};function og(r,e,o){const c=Z0[r];return c&&c[o]||Uu[e][o]}hi(Xc,"ConstantBinder"),hi(ml,"PatternConstantBinder"),hi(Cc,"SourceExpressionBinder"),hi(Qc,"PatternCompositeBinder"),hi(gl,"CompositeExpressionBinder"),hi(eu,"ProgramConfiguration",{omit:["_buffers"]}),hi(zu,"ProgramConfigurationSet");const sg="-transition";class lo extends ln{constructor(e,o){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1,needFeature:!1},this._filterCompiled=!1,"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&"sky"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),o.layout&&(this._unevaluatedLayout=new Ye(o.layout)),o.paint)){this._transitionablePaint=new Q(o.paint);for(const c in e.paint)this.setPaintProperty(c,e.paint[c],{validate:!1});for(const c in e.layout)this.setLayoutProperty(c,e.layout[c],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new et(o.paint)}}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,o,c={}){null!=o&&this._validate(ec,`layers.${this.id}.layout.${e}`,e,o,c)||("visibility"!==e?this._unevaluatedLayout.setValue(e,o):this.visibility=o)}getPaintProperty(e){return tt(e,sg)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,o,c={}){if(null!=o&&this._validate(Pu,`layers.${this.id}.paint.${e}`,e,o,c))return!1;if(tt(e,sg))return this._transitionablePaint.setTransition(e.slice(0,-11),o||void 0),!1;{const f=this._transitionablePaint._values[e],_=f.value.isDataDriven(),v=f.value;this._transitionablePaint.setValue(e,o),this._handleSpecialPaintPropertyUpdate(e);const w=this._transitionablePaint._values[e].value,E=w.isDataDriven(),M=tt(e,"pattern")||"line-dasharray"===e;return E||_||M||this._handleOverridablePaintPropertyUpdate(e,v,w)}}_handleSpecialPaintPropertyUpdate(e){}getProgramIds(){return null}getProgramConfiguration(e){return null}_handleOverridablePaintPropertyUpdate(e,o,c){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,o){this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,o)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,o)}serialize(){const e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),Xt(e,(o,c)=>!(void 0===o||"layout"===c&&!Object.keys(o).length||"paint"===c&&!Object.keys(o).length))}_validate(e,o,c,f,_={}){return(!_||!1!==_.validate)&&Ou(this,e.call(Su,{key:o,layerType:this.type,objectKey:c,value:f,styleSpec:vt,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isSky(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(const e in this.paint._values){const o=this.paint.get(e);if(o instanceof $e&&le(o.property.specification)&&("source"===o.value.kind||"composite"===o.value.kind)&&o.value.isStateDependent)return!0}return!1}compileFilter(){this._filterCompiled||(this._featureFilter=yc(this.filter),this._filterCompiled=!0)}invalidateCompiledFilter(){this._filterCompiled=!1}dynamicFilter(){return this._featureFilter.dynamicFilter}dynamicFilterNeedsFeature(){return this._featureFilter.needFeature}}const hy=$t([{name:"a_pos",components:2,type:"Int16"}],4),Md=$t([{name:"a_pos_3",components:3,type:"Int16"},{name:"a_pos_normal_3",components:3,type:"Int16"}]);class So{constructor(e=[]){this.segments=e}prepareSegment(e,o,c,f){let _=this.segments[this.segments.length-1];return e>So.MAX_VERTEX_ARRAY_LENGTH&&It(`Max vertices per segment is ${So.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!_||_.vertexLength+e>So.MAX_VERTEX_ARRAY_LENGTH||_.sortKey!==f)&&(_={vertexOffset:o.length,primitiveOffset:c.length,vertexLength:0,primitiveLength:0},void 0!==f&&(_.sortKey=f),this.segments.push(_)),_}get(){return this.segments}destroy(){for(const e of this.segments)for(const o in e.vaos)e.vaos[o].destroy()}static simpleSegment(e,o,c,f){return new So([{vertexOffset:e,primitiveOffset:o,vertexLength:c,primitiveLength:f,vaos:{},sortKey:0}])}}So.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,hi(So,"SegmentVector");var vi=8192;class Sa{constructor(e,o){e&&(o?this.setSouthWest(e).setNorthEast(o):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))}setNorthEast(e){return this._ne=e instanceof pr?new pr(e.lng,e.lat):pr.convert(e),this}setSouthWest(e){return this._sw=e instanceof pr?new pr(e.lng,e.lat):pr.convert(e),this}extend(e){const o=this._sw,c=this._ne;let f,_;if(e instanceof pr)f=e,_=e;else{if(!(e instanceof Sa))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Sa.convert(e)):this.extend(pr.convert(e)):"object"==typeof e&&null!==e&&e.hasOwnProperty("lat")&&(e.hasOwnProperty("lon")||e.hasOwnProperty("lng"))?this.extend(pr.convert(e)):this;if(f=e._sw,_=e._ne,!f||!_)return this}return o||c?(o.lng=Math.min(f.lng,o.lng),o.lat=Math.min(f.lat,o.lat),c.lng=Math.max(_.lng,c.lng),c.lat=Math.max(_.lat,c.lat)):(this._sw=new pr(f.lng,f.lat),this._ne=new pr(_.lng,_.lat)),this}getCenter(){return new pr((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new pr(this.getWest(),this.getNorth())}getSouthEast(){return new pr(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(e){const{lng:o,lat:c}=pr.convert(e);let f=this._sw.lng<=o&&o<=this._ne.lng;return this._sw.lng>this._ne.lng&&(f=this._sw.lng>=o&&o>=this._ne.lng),this._sw.lat<=c&&c<=this._ne.lat&&f}static convert(e){return!e||e instanceof Sa?e:new Sa(e)}}var Ad=1e-6,As=typeof Float32Array<"u"?Float32Array:Array;function Sd(){var r=new As(9);return As!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[5]=0,r[6]=0,r[7]=0),r[0]=1,r[4]=1,r[8]=1,r}function Bh(r,e,o){var c=e[0],f=e[1],_=e[2],v=e[3],w=e[4],E=e[5],M=e[6],L=e[7],N=e[8],j=o[0],W=o[1],J=o[2],se=o[3],Le=o[4],rt=o[5],bt=o[6],at=o[7],xt=o[8];return r[0]=j*c+W*v+J*M,r[1]=j*f+W*w+J*L,r[2]=j*_+W*E+J*N,r[3]=se*c+Le*v+rt*M,r[4]=se*f+Le*w+rt*L,r[5]=se*_+Le*E+rt*N,r[6]=bt*c+at*v+xt*M,r[7]=bt*f+at*w+xt*L,r[8]=bt*_+at*E+xt*N,r}function Ol(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=1,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=1,r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function zh(r,e){var o=e[0],c=e[1],f=e[2],_=e[3],v=e[4],w=e[5],E=e[6],M=e[7],L=e[8],N=e[9],j=e[10],W=e[11],J=e[12],se=e[13],Le=e[14],rt=e[15],bt=o*w-c*v,at=o*E-f*v,xt=o*M-_*v,At=c*E-f*w,Mt=c*M-_*w,un=f*M-_*E,rn=L*se-N*J,Dn=L*Le-j*J,Yn=L*rt-W*J,mn=N*Le-j*se,Pn=N*rt-W*se,Rn=j*rt-W*Le,zn=bt*Rn-at*Pn+xt*mn+At*Yn-Mt*Dn+un*rn;return zn?(r[0]=(w*Rn-E*Pn+M*mn)*(zn=1/zn),r[1]=(f*Pn-c*Rn-_*mn)*zn,r[2]=(se*un-Le*Mt+rt*At)*zn,r[3]=(j*Mt-N*un-W*At)*zn,r[4]=(E*Yn-v*Rn-M*Dn)*zn,r[5]=(o*Rn-f*Yn+_*Dn)*zn,r[6]=(Le*xt-J*un-rt*at)*zn,r[7]=(L*un-j*xt+W*at)*zn,r[8]=(v*Pn-w*Yn+M*rn)*zn,r[9]=(c*Yn-o*Pn-_*rn)*zn,r[10]=(J*Mt-se*xt+rt*bt)*zn,r[11]=(N*xt-L*Mt-W*bt)*zn,r[12]=(w*Dn-v*mn-E*rn)*zn,r[13]=(o*mn-c*Dn+f*rn)*zn,r[14]=(se*at-J*At-Le*bt)*zn,r[15]=(L*At-N*at+j*bt)*zn,r):null}function ju(r,e,o){var c=e[0],f=e[1],_=e[2],v=e[3],w=e[4],E=e[5],M=e[6],L=e[7],N=e[8],j=e[9],W=e[10],J=e[11],se=e[12],Le=e[13],rt=e[14],bt=e[15],at=o[0],xt=o[1],At=o[2],Mt=o[3];return r[0]=at*c+xt*w+At*N+Mt*se,r[1]=at*f+xt*E+At*j+Mt*Le,r[2]=at*_+xt*M+At*W+Mt*rt,r[3]=at*v+xt*L+At*J+Mt*bt,r[4]=(at=o[4])*c+(xt=o[5])*w+(At=o[6])*N+(Mt=o[7])*se,r[5]=at*f+xt*E+At*j+Mt*Le,r[6]=at*_+xt*M+At*W+Mt*rt,r[7]=at*v+xt*L+At*J+Mt*bt,r[8]=(at=o[8])*c+(xt=o[9])*w+(At=o[10])*N+(Mt=o[11])*se,r[9]=at*f+xt*E+At*j+Mt*Le,r[10]=at*_+xt*M+At*W+Mt*rt,r[11]=at*v+xt*L+At*J+Mt*bt,r[12]=(at=o[12])*c+(xt=o[13])*w+(At=o[14])*N+(Mt=o[15])*se,r[13]=at*f+xt*E+At*j+Mt*Le,r[14]=at*_+xt*M+At*W+Mt*rt,r[15]=at*v+xt*L+At*J+Mt*bt,r}function Ss(r,e,o){var c,f,_,v,w,E,M,L,N,j,W,J,se=o[0],Le=o[1],rt=o[2];return e===r?(r[12]=e[0]*se+e[4]*Le+e[8]*rt+e[12],r[13]=e[1]*se+e[5]*Le+e[9]*rt+e[13],r[14]=e[2]*se+e[6]*Le+e[10]*rt+e[14],r[15]=e[3]*se+e[7]*Le+e[11]*rt+e[15]):(f=e[1],_=e[2],v=e[3],w=e[4],E=e[5],M=e[6],L=e[7],N=e[8],j=e[9],W=e[10],J=e[11],r[0]=c=e[0],r[1]=f,r[2]=_,r[3]=v,r[4]=w,r[5]=E,r[6]=M,r[7]=L,r[8]=N,r[9]=j,r[10]=W,r[11]=J,r[12]=c*se+w*Le+N*rt+e[12],r[13]=f*se+E*Le+j*rt+e[13],r[14]=_*se+M*Le+W*rt+e[14],r[15]=v*se+L*Le+J*rt+e[15]),r}function oc(r,e,o){var c=o[0],f=o[1],_=o[2];return r[0]=e[0]*c,r[1]=e[1]*c,r[2]=e[2]*c,r[3]=e[3]*c,r[4]=e[4]*f,r[5]=e[5]*f,r[6]=e[6]*f,r[7]=e[7]*f,r[8]=e[8]*_,r[9]=e[9]*_,r[10]=e[10]*_,r[11]=e[11]*_,r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15],r}function Ec(r,e,o){var c=Math.sin(o),f=Math.cos(o),_=e[4],v=e[5],w=e[6],E=e[7],M=e[8],L=e[9],N=e[10],j=e[11];return e!==r&&(r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[4]=_*f+M*c,r[5]=v*f+L*c,r[6]=w*f+N*c,r[7]=E*f+j*c,r[8]=M*f-_*c,r[9]=L*f-v*c,r[10]=N*f-w*c,r[11]=j*f-E*c,r}function fp(r,e,o){var c=Math.sin(o),f=Math.cos(o),_=e[0],v=e[1],w=e[2],E=e[3],M=e[8],L=e[9],N=e[10],j=e[11];return e!==r&&(r[4]=e[4],r[5]=e[5],r[6]=e[6],r[7]=e[7],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=_*f-M*c,r[1]=v*f-L*c,r[2]=w*f-N*c,r[3]=E*f-j*c,r[8]=_*c+M*f,r[9]=v*c+L*f,r[10]=w*c+N*f,r[11]=E*c+j*f,r}function pp(r,e){return r[0]=e[0],r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=e[1],r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=e[2],r[11]=0,r[12]=0,r[13]=0,r[14]=0,r[15]=1,r}function ag(r,e,o){var c,f,_,v=o[0],w=o[1],E=o[2],M=Math.hypot(v,w,E);return M0&&(_=1/Math.sqrt(_)),r[0]=e[0]*_,r[1]=e[1]*_,r[2]=e[2]*_,r}function xa(r,e){return r[0]*e[0]+r[1]*e[1]+r[2]*e[2]}function Zu(r,e,o){var c=e[0],f=e[1],_=e[2],v=o[0],w=o[1],E=o[2];return r[0]=f*E-_*w,r[1]=_*v-c*E,r[2]=c*w-f*v,r}function bo(r,e,o){var c=e[0],f=e[1],_=e[2],v=o[3]*c+o[7]*f+o[11]*_+o[15];return r[0]=(o[0]*c+o[4]*f+o[8]*_+o[12])/(v=v||1),r[1]=(o[1]*c+o[5]*f+o[9]*_+o[13])/v,r[2]=(o[2]*c+o[6]*f+o[10]*_+o[14])/v,r}function ug(r,e,o){var c=o[0],f=o[1],_=o[2],v=e[0],w=e[1],E=e[2],M=f*E-_*w,L=_*v-c*E,N=c*w-f*v,j=f*N-_*L,W=_*M-c*N,J=c*L-f*M,se=2*o[3];return L*=se,N*=se,W*=2,J*=2,r[0]=v+(M*=se)+(j*=2),r[1]=w+L+W,r[2]=E+N+J,r}var Ld,Ys=$u,kd=cg,py=Pd;function my(r,e,o){return r[0]=e[0]*o,r[1]=e[1]*o,r[2]=e[2]*o,r[3]=e[3]*o,r}function gp(r,e){var o=e[0],c=e[1],f=e[2],_=e[3],v=o*o+c*c+f*f+_*_;return v>0&&(v=1/Math.sqrt(v)),r[0]=o*v,r[1]=c*v,r[2]=f*v,r[3]=_*v,r}function tu(r,e,o){var c=e[0],f=e[1],_=e[2],v=e[3];return r[0]=o[0]*c+o[4]*f+o[8]*_+o[12]*v,r[1]=o[1]*c+o[5]*f+o[9]*_+o[13]*v,r[2]=o[2]*c+o[6]*f+o[10]*_+o[14]*v,r[3]=o[3]*c+o[7]*f+o[11]*_+o[15]*v,r}function gy(){var r=new As(4);return As!=Float32Array&&(r[0]=0,r[1]=0,r[2]=0),r[3]=1,r}function dg(r){return r[0]=0,r[1]=0,r[2]=0,r[3]=1,r}function hg(r,e,o){o*=.5;var c=e[0],f=e[1],_=e[2],v=e[3],w=Math.sin(o),E=Math.cos(o);return r[0]=c*E+v*w,r[1]=f*E+_*w,r[2]=_*E-f*w,r[3]=v*E-c*w,r}function fg(r,e,o){o*=.5;var c=e[0],f=e[1],_=e[2],v=e[3],w=Math.sin(o),E=Math.cos(o);return r[0]=c*E-_*w,r[1]=f*E+v*w,r[2]=_*E+c*w,r[3]=v*E-f*w,r}mp(),Ld=new As(4),As!=Float32Array&&(Ld[0]=0,Ld[1]=0,Ld[2]=0,Ld[3]=0);var nu=gp;mp(),Vu(1,0,0),Vu(0,1,0),gy(),gy(),Sd();const pg=$t([{type:"Float32",name:"a_globe_pos",components:3},{type:"Float32",name:"a_uv",components:2}]),{members:Uh}=pg,Fd=$t([{name:"a_pos_3",components:3,type:"Int16"}]);var Dc=$t([{name:"a_pos",type:"Int16",components:2}]);class _p{constructor(e,o){this.pos=e,this.dir=o}intersectsPlane(e,o,c){const f=xa(o,this.dir);if(Math.abs(f)<1e-6)return!1;const _=((e[0]-this.pos[0])*o[0]+(e[1]-this.pos[1])*o[1]+(e[2]-this.pos[2])*o[2])/f;return c[0]=this.pos[0]+this.dir[0]*_,c[1]=this.pos[1]+this.dir[1]*_,c[2]=this.pos[2]+this.dir[2]*_,!0}closestPointOnSphere(e,o,c){if(se=(W=this.pos)[0],Le=W[1],rt=W[2],bt=(J=e)[0],at=J[1],xt=J[2],Math.abs(se-bt)<=Ad*Math.max(1,Math.abs(se),Math.abs(bt))&&Math.abs(Le-at)<=Ad*Math.max(1,Math.abs(Le),Math.abs(at))&&Math.abs(rt-xt)<=Ad*Math.max(1,Math.abs(rt),Math.abs(xt))||0===o)return c[0]=c[1]=c[2]=0,!1;var W,J,se,Le,rt,bt,at,xt;const[f,_,v]=this.dir,w=this.pos[0]-e[0],E=this.pos[1]-e[1],M=this.pos[2]-e[2],L=f*f+_*_+v*v,N=2*(w*f+E*_+M*v),j=N*N-4*L*(w*w+E*E+M*M-o*o);if(j<0){const W=Math.max(-N/2,0),J=w+f*W,se=E+_*W,Le=M+v*W,rt=Math.hypot(J,se,Le);return c[0]=J*o/rt,c[1]=se*o/rt,c[2]=Le*o/rt,!1}{const W=(-N-Math.sqrt(j))/(2*L);if(W<0){const J=Math.hypot(w,E,M);return c[0]=w*o/J,c[1]=E*o/J,c[2]=M*o/J,!1}return c[0]=w+f*W,c[1]=E+_*W,c[2]=M+v*W,!0}}}class jh{constructor(e,o,c,f,_){this.TL=e,this.TR=o,this.BR=c,this.BL=f,this.horizon=_}static fromInvProjectionMatrix(e,o,c){const f=[-1,1,1],_=[1,1,1],v=[1,-1,1],w=[-1,-1,1],E=bo(f,f,e),M=bo(_,_,e),L=bo(v,v,e),N=bo(w,w,e);return new jh(E,M,L,N,o/c)}}class Vh{constructor(e,o){this.points=e,this.planes=o}static fromInvProjectionMatrix(e,o,c,f){const _=Math.pow(2,c),v=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(E=>{const M=tu([],E,e),L=1/M[3]/o*_;return(N=M)[0]=(j=M)[0]*(W=[L,L,f?1/M[3]:L,L])[0],N[1]=j[1]*W[1],N[2]=j[2]*W[2],N[3]=j[3]*W[3],N;var N,j,W}),w=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(E=>{const M=Ps([],Zu([],Ys([],v[E[0]],v[E[1]]),Ys([],v[E[2]],v[E[1]]))),L=-xa(M,v[E[1]]);return M.concat(L)});return new Vh(v,w)}}class ss{static fromPoints(e){const o=[1/0,1/0,1/0],c=[-1/0,-1/0,-1/0];for(const f of e)Tc(o,o,f),Od(c,c,f);return new ss(o,c)}static applyTransform(e,o){const c=e.getCorners();for(let f=0;f=0;if(0===v)return 0;v!==o.length&&(c=!1)}if(c)return 2;for(let f=0;f<3;f++){let _=Number.MAX_VALUE,v=-Number.MAX_VALUE;for(let w=0;wthis.max[f]-this.min[f])return 0}return 1}}const mg=5,$h=6,Rl=vi/Math.PI/2,yp=16383,Gu=[64,32,16],fs=-Rl,Ja=Rl,vp=[new ss([fs,fs,fs],[Ja,Ja,Ja]),new ss([fs,fs,fs],[0,0,Ja]),new ss([0,fs,fs],[Ja,0,Ja]),new ss([fs,0,fs],[0,Ja,Ja]),new ss([0,0,fs],[Ja,Ja,Ja])];function iu(r){return r*Rl/Hh}function gg(r,e,o,c=!0){const f=qs([],r._camera.position,r.worldSize),_=[e,o,1,1];tu(_,_,r.pixelMatrixInverse),my(_,_,1/_[3]);const v=Ps([],Ys([],_,f)),w=r.globeMatrix,E=[w[12],w[13],w[14]],M=Ys([],E,f),L=Pd(M),N=Ps([],M),j=r.worldSize/(2*Math.PI),W=xa(N,v),J=Math.asin(j/L);if(J1?null:function(c,f,_,v){const w=Math.sin(_);return c*(Math.sin((1-v)*_)/w)+f*(Math.sin(v*_)/w)}(r.a[e],r.b[e],r.angle,Ke(o,0,1))+r.center[e]}function as(r){if(r.z<=1)return vp[r.z+2*r.y+r.x];const e=Mc(Nd(r));return ss.fromPoints(e)}function Ka(r,e,o){return qs(r,r,1-o),Rd(r,r,e,o)}function Zh(r,e){const o=Ju(e.zoom);if(0===o)return as(r);const c=Nd(r),f=Mc(c),_=Os(c.getWest())*e.worldSize,v=Os(c.getEast())*e.worldSize,w=Pa(c.getNorth())*e.worldSize,E=Pa(c.getSouth())*e.worldSize,M=[_,w,0],L=[v,w,0],N=[_,E,0],j=[v,E,0],W=zh([],e.globeMatrix);return bo(M,M,W),bo(L,L,W),bo(N,N,W),bo(j,j,W),f[0]=Ka(f[0],N,o),f[1]=Ka(f[1],j,o),f[2]=Ka(f[2],L,o),f[3]=Ka(f[3],M,o),ss.fromPoints(f)}function _g(r,e,o){for(const c of r)bo(c,c,e),qs(c,c,o)}function Nd({x:r,y:e,z:o}){const c=1/(1<Math.PI/2*1.01}const Cp=X(85),yy=Math.cos(Cp),vy=Math.sin(Cp),Hh=6371008.8,Ep=2*Math.PI*Hh;class sc{constructor(e,o){if(isNaN(e)||isNaN(o))throw new Error(`Invalid LngLat object: (${e}, ${o})`);if(this.lng=+e,this.lat=+o,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new sc(dn(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){const o=Math.PI/180,c=this.lat*o,f=e.lat*o,_=Math.sin(c)*Math.sin(f)+Math.cos(c)*Math.cos(f)*Math.cos((e.lng-this.lng)*o);return Hh*Math.acos(Math.min(_,1))}toBounds(e=0){const o=360*e/40075017,c=o/Math.cos(Math.PI/180*this.lat);return new Sa(new sc(this.lng-c,this.lat-o),new sc(this.lng+c,this.lat+o))}toEcef(e){const o=iu(e);return qu(this.lat,this.lng,Rl+o)}static convert(e){if(e instanceof sc)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new sc(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new sc(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}var pr=sc;function zd(r){return Ep*Math.cos(r*Math.PI/180)}function Os(r){return(180+r)/360}function Pa(r){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360}function Xa(r,e){return r/zd(e)}function Rs(r){return 360*r-180}function ps(r){return 360/Math.PI*Math.atan(Math.exp((180-360*r)*Math.PI/180))-90}function xg(r,e){return r*zd(ps(e))}const Ho=85.051129;function bg(r){return 1/Math.cos(r*Math.PI/180)}class Oa{constructor(e,o,c=0){this.x=+e,this.y=+o,this.z=+c}static fromLngLat(e,o=0){const c=pr.convert(e);return new Oa(Os(c.lng),Pa(c.lat),Xa(o,c.lat))}toLngLat(){return new pr(Rs(this.x),ps(this.y))}toAltitude(){return xg(this.z,this.y)}meterInMercatorCoordinateUnits(){return 1/Ep*bg(ps(this.y))}}function Wh(r,e,o,c,f,_,v,w,E){const M=(e+c)/2,L=(o+f)/2,N=new ye(M,L);w(N),function(j,W,J,se,Le,rt){const bt=J-Le,at=se-rt;return Math.abs((se-W)*bt-(J-j)*at)/Math.hypot(bt,at)}(N.x,N.y,_.x,_.y,v.x,v.y)>=E?(Wh(r,e,o,M,L,_,N,w,E),Wh(r,M,L,c,f,N,v,w,E)):r.push(v)}function wg(r,e,o){let c=r[0],f=c.x,_=c.y;e(c);const v=[c];for(let w=1;wr.x+1||cr.y+1)&&It("Geometry exceeds allowed extent, reduce your vector tile buffer size"),r}function ac(r,e,o){const c=r.loadGeometry(),f=r.extent,_=vi/f;if(e&&o&&o.projection.isReprojectedInTileSpace){const v=1<{const W=Rs((e.x+j.x/f)/v),J=ps((e.y+j.y/f)/v),se=L.project(W,J);j.x=(se.x*w-E)*f,j.y=(se.y*w-M)*f};for(let j=0;j=f||J.y<0||J.y>=f||(N(J),W.push(J));c[j]=W}}for(const v of c)for(const w of v)by(w,_);return c}function ou(r,e){return{type:r.type,id:r.id,properties:r.properties,geometry:e?ac(r):[]}}function Yh(r,e,o,c,f){r.emplaceBack(2*e+(c+1)/2,2*o+(f+1)/2)}function Jh(r,e,o){r.emplaceBack(e.x,e.y,e.z,16384*o[0],16384*o[1],16384*o[2])}class Kh{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.hasPattern=!1,this.projection=e.projection,this.layoutVertexArray=new Wn,this.indexArray=new Ci,this.segments=new So,this.programConfigurations=new zu(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id)}populate(e,o,c,f){const _=this.layers[0],v=[];let w=null;"circle"===_.type&&(w=_.layout.get("circle-sort-key"));for(const{feature:M,id:L,index:N,sourceLayerIndex:j}of e){const W=this.layers[0]._featureFilter.needGeometry,J=ou(M,W);if(!this.layers[0]._featureFilter.filter(new R(this.zoom),J,c))continue;const se=w?w.evaluate(J,{},c):void 0,Le={id:L,properties:M.properties,type:M.type,sourceLayerIndex:j,index:N,geometry:W?J.geometry:ac(M,c,f),patterns:{},sortKey:se};v.push(Le)}w&&v.sort((M,L)=>M.sortKey-L.sortKey);let E=null;"globe"===f.projection.name&&(this.globeExtVertexArray=new Zn,E=f.projection);for(const M of v){const{geometry:L,index:N,sourceLayerIndex:j}=M,W=e[N].feature;this.addFeature(M,L,N,o.availableImages,c,E),o.featureIndex.insert(W,L,N,j,this.index)}}update(e,o,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,c,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,hy.members),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.globeExtVertexArray&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Md.members))),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}addFeature(e,o,c,f,_,v){for(const w of o)for(const E of w){const M=E.x,L=E.y;if(M<0||M>=vi||L<0||L>=vi)continue;if(v){const W=v.projectTilePoint(M,L,_),J=v.upVector(_,M,L),se=this.globeExtVertexArray;Jh(se,W,J),Jh(se,W,J),Jh(se,W,J),Jh(se,W,J)}const N=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),j=N.vertexLength;Yh(this.layoutVertexArray,M,L,-1,-1),Yh(this.layoutVertexArray,M,L,1,-1),Yh(this.layoutVertexArray,M,L,1,1),Yh(this.layoutVertexArray,M,L,-1,1),this.indexArray.emplaceBack(j,j+1,j+2),this.indexArray.emplaceBack(j,j+2,j+3),N.vertexLength+=4,N.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,c,{},f,_)}}function su(r,e){for(let o=0;o1){if(Xh(r,e))return!0;for(let c=0;c1?o:o.sub(e)._mult(f)._add(e))}function Ud(r,e){let o,c,f,_=!1;for(let v=0;ve.y!=f.y>e.y&&e.x<(f.x-c.x)*(e.y-c.y)/(f.y-c.y)+c.x&&(_=!_)}return _}function Sc(r,e){let o=!1;for(let c=0,f=r.length-1;ce.y!=v.y>e.y&&e.x<(v.x-_.x)*(e.y-_.y)/(v.y-_.y)+_.x&&(o=!o)}return o}function Eg(r,e,o,c,f){for(const v of r)if(e<=v.x&&o<=v.y&&c>=v.x&&f>=v.y)return!0;const _=[new ye(e,o),new ye(e,f),new ye(c,f),new ye(c,o)];if(r.length>2)for(const v of _)if(Sc(r,v))return!0;for(let v=0;vf.x&&e.x>f.x||r.yf.y&&e.y>f.y)return!1;const _=pe(r,e,o[0]);return _!==pe(r,e,o[1])||_!==pe(r,e,o[2])||_!==pe(r,e,o[3])}function jd(r,e,o){const c=e.paint.get(r).value;return"constant"===c.kind?c.value:o.programConfigurations.get(e.id).getMaxValue(r)}function Vd(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function Cy(r,e,o,c,f){if(!e[0]&&!e[1])return r;const _=ye.convert(e)._mult(f);"viewport"===o&&_._rotate(-c);const v=[];for(let w=0;w0){const at=o.projection.upVector(M,W.x,W.y);se.x+=at[0]*L*J,se.y+=at[1]*L*J,se.z+=at[2]*L*J}const Le=_?W:G0(se.x,se.y,se.z,c),rt=_?r.tilespaceRays.map(at=>W0(at,J)):r.queryGeometry.screenGeometry,bt=tu([],[se.x,se.y,se.z,1],c);if(!v&&_?E*=bt[3]/o.cameraToCenterDistance:v&&!_&&(E*=o.cameraToCenterDistance/bt[3]),_){const at=ps((j.y/vi+M.y)/(1<r.width||f.height>r.height||o.x>r.width-f.width||o.y>r.height-f.height)throw new RangeError("out of range source coordinates for image copy");if(f.width>e.width||f.height>e.height||c.x>e.width-f.width||c.y>e.height-f.height)throw new RangeError("out of range destination coordinates for image copy");const v=r.data,w=e.data;for(let E=0;E{e[r.evaluationKey]=E;const M=r.expression.evaluate(e);f.data[v+w+0]=Math.floor(255*M.r/M.a),f.data[v+w+1]=Math.floor(255*M.g/M.a),f.data[v+w+2]=Math.floor(255*M.b/M.a),f.data[v+w+3]=Math.floor(255*M.a)};if(r.clips)for(let v=0,w=0;v80*o){c=_=r[0],f=v=r[1];for(var J=o;J_&&(_=w),E>v&&(v=E);M=0!==(M=Math.max(_-c,v-f))?32767/M:0}return Pc(j,W,o,c,f,M,0),W}function Gd(r,e,o,c,f){var _,v;if(f===kp(r,e,o,c)>0)for(_=e;_=e;_-=c)v=Lp(_,r[_],r[_+1],v);return v&&Xu(v,v.next)&&(Hd(v),v=v.next),v}function Ll(r,e){if(!r)return r;e||(e=r);var o,c=r;do{if(o=!1,c.steiner||!Xu(c,c.next)&&0!==Mr(c.prev,c,c.next))c=c.next;else{if(Hd(c),(c=e=c.prev)===c.next)break;o=!0}}while(o||c!==e);return e}function Pc(r,e,o,c,f,_,v){if(r){!v&&_&&function(L,N,j,W){var J=L;do{0===J.z&&(J.z=Pp(J.x,J.y,N,j,W)),J.prevZ=J.prev,J.nextZ=J.next,J=J.next}while(J!==L);J.prevZ.nextZ=null,J.prevZ=null,function(se){var Le,rt,bt,at,xt,At,Mt,un,rn=1;do{for(rt=se,se=null,xt=null,At=0;rt;){for(At++,bt=rt,Mt=0,Le=0;Le0||un>0&&bt;)0!==Mt&&(0===un||!bt||rt.z<=bt.z)?(at=rt,rt=rt.nextZ,Mt--):(at=bt,bt=bt.nextZ,un--),xt?xt.nextZ=at:se=at,at.prevZ=xt,xt=at;rt=bt}xt.nextZ=null,rn*=2}while(At>1)}(J)}(r,c,f,_);for(var w,E,M=r;r.prev!==r.next;)if(w=r.prev,E=r.next,_?Py(r,c,f,_):Sy(r))e.push(w.i/o|0),e.push(r.i/o|0),e.push(E.i/o|0),Hd(r),r=E.next,M=E.next;else if((r=E)===M){v?1===v?Pc(r=Oy(Ll(r),e,o),e,o,c,f,_,2):2===v&&Mg(r,e,o,c,f,_):Pc(Ll(r),e,o,c,f,_,1);break}}}function Sy(r){var e=r.prev,o=r,c=r.next;if(Mr(e,o,c)>=0)return!1;for(var f=e.x,_=o.x,v=c.x,w=e.y,E=o.y,M=c.y,L=f<_?f_?f>v?f:v:_>v?_:v,W=w>E?w>M?w:M:E>M?E:M,J=c.next;J!==e;){if(J.x>=L&&J.x<=j&&J.y>=N&&J.y<=W&&Ku(f,w,_,E,v,M,J.x,J.y)&&Mr(J.prev,J,J.next)>=0)return!1;J=J.next}return!0}function Py(r,e,o,c){var f=r.prev,_=r,v=r.next;if(Mr(f,_,v)>=0)return!1;for(var w=f.x,E=_.x,M=v.x,L=f.y,N=_.y,j=v.y,W=wE?w>M?w:M:E>M?E:M,Le=L>N?L>j?L:j:N>j?N:j,rt=Pp(W,J,e,o,c),bt=Pp(se,Le,e,o,c),at=r.prevZ,xt=r.nextZ;at&&at.z>=rt&&xt&&xt.z<=bt;){if(at.x>=W&&at.x<=se&&at.y>=J&&at.y<=Le&&at!==f&&at!==v&&Ku(w,L,E,N,M,j,at.x,at.y)&&Mr(at.prev,at,at.next)>=0||(at=at.prevZ,xt.x>=W&&xt.x<=se&&xt.y>=J&&xt.y<=Le&&xt!==f&&xt!==v&&Ku(w,L,E,N,M,j,xt.x,xt.y)&&Mr(xt.prev,xt,xt.next)>=0))return!1;xt=xt.nextZ}for(;at&&at.z>=rt;){if(at.x>=W&&at.x<=se&&at.y>=J&&at.y<=Le&&at!==f&&at!==v&&Ku(w,L,E,N,M,j,at.x,at.y)&&Mr(at.prev,at,at.next)>=0)return!1;at=at.prevZ}for(;xt&&xt.z<=bt;){if(xt.x>=W&&xt.x<=se&&xt.y>=J&&xt.y<=Le&&xt!==f&&xt!==v&&Ku(w,L,E,N,M,j,xt.x,xt.y)&&Mr(xt.prev,xt,xt.next)>=0)return!1;xt=xt.nextZ}return!0}function Oy(r,e,o){var c=r;do{var f=c.prev,_=c.next.next;!Xu(f,_)&&Op(f,c,c.next,_)&&cc(f,_)&&cc(_,f)&&(e.push(f.i/o|0),e.push(c.i/o|0),e.push(_.i/o|0),Hd(c),Hd(c.next),c=r=_),c=c.next}while(c!==r);return Ll(c)}function Mg(r,e,o,c,f,_){var v=r;do{for(var w=v.next.next;w!==v.prev;){if(v.i!==w.i&&ky(v,w)){var E=Rp(v,w);return v=Ll(v,v.next),E=Ll(E,E.next),Pc(v,e,o,c,f,_,0),void Pc(E,e,o,c,f,_,0)}w=w.next}v=v.next}while(v!==r)}function Sp(r,e){return r.x-e.x}function Ry(r,e){var o=function(f,_){var v,w=_,E=f.x,M=f.y,L=-1/0;do{if(M<=w.y&&M>=w.next.y&&w.next.y!==w.y){var N=w.x+(M-w.y)*(w.next.x-w.x)/(w.next.y-w.y);if(N<=E&&N>L&&(L=N,v=w.x=w.x&&w.x>=J&&E!==w.x&&Ku(Mv.x||w.x===v.x&&Ly(v,w)))&&(v=w,Le=j)),w=w.next}while(w!==W);return v}(r,e);if(!o)return e;var c=Rp(o,r);return Ll(c,c.next),Ll(o,o.next)}function Ly(r,e){return Mr(r.prev,r,e.prev)<0&&Mr(e.next,r,r.next)<0}function Pp(r,e,o,c,f){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r=(r-o)*f|0)|r<<8))|r<<4))|r<<2))|r<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-c)*f|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Ag(r){var e=r,o=r;do{(e.x=(r-v)*(_-w)&&(r-v)*(c-w)>=(o-v)*(e-w)&&(o-v)*(_-w)>=(f-v)*(c-w)}function ky(r,e){return r.next.i!==e.i&&r.prev.i!==e.i&&!function(o,c){var f=o;do{if(f.i!==o.i&&f.next.i!==o.i&&f.i!==c.i&&f.next.i!==c.i&&Op(f,f.next,o,c))return!0;f=f.next}while(f!==o);return!1}(r,e)&&(cc(r,e)&&cc(e,r)&&function(o,c){var f=o,_=!1,v=(o.x+c.x)/2,w=(o.y+c.y)/2;do{f.y>w!=f.next.y>w&&f.next.y!==f.y&&v<(f.next.x-f.x)*(w-f.y)/(f.next.y-f.y)+f.x&&(_=!_),f=f.next}while(f!==o);return _}(r,e)&&(Mr(r.prev,r,e.prev)||Mr(r,e.prev,e))||Xu(r,e)&&Mr(r.prev,r,r.next)>0&&Mr(e.prev,e,e.next)>0)}function Mr(r,e,o){return(e.y-r.y)*(o.x-e.x)-(e.x-r.x)*(o.y-e.y)}function Xu(r,e){return r.x===e.x&&r.y===e.y}function Op(r,e,o,c){var f=ls(Mr(r,e,o)),_=ls(Mr(r,e,c)),v=ls(Mr(o,c,r)),w=ls(Mr(o,c,e));return f!==_&&v!==w||!(0!==f||!Qu(r,o,e))||!(0!==_||!Qu(r,c,e))||!(0!==v||!Qu(o,r,c))||!(0!==w||!Qu(o,e,c))}function Qu(r,e,o){return e.x<=Math.max(r.x,o.x)&&e.x>=Math.min(r.x,o.x)&&e.y<=Math.max(r.y,o.y)&&e.y>=Math.min(r.y,o.y)}function ls(r){return r>0?1:r<0?-1:0}function cc(r,e){return Mr(r.prev,r,r.next)<0?Mr(r,e,r.next)>=0&&Mr(r,r.prev,e)>=0:Mr(r,e,r.prev)<0||Mr(r,r.next,e)<0}function Rp(r,e){var o=new nf(r.i,r.x,r.y),c=new nf(e.i,e.x,e.y),f=r.next,_=e.prev;return r.next=e,e.prev=r,o.next=f,f.prev=o,c.next=o,o.prev=c,_.next=c,c.prev=_,c}function Lp(r,e,o,c){var f=new nf(r,e,o);return c?(f.next=c.next,f.prev=c,c.next.prev=f,c.next=f):(f.prev=f,f.next=f),f}function Hd(r){r.next.prev=r.prev,r.prev.next=r.next,r.prevZ&&(r.prevZ.nextZ=r.nextZ),r.nextZ&&(r.nextZ.prevZ=r.prevZ)}function nf(r,e,o){this.i=r,this.x=e,this.y=o,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function kp(r,e,o,c){for(var f=0,_=e,v=o-c;_0&&o.holes.push(c+=r[f-1].length)}return o};var rf=nt(tf.exports);function Fy(r,e,o,c,f){Fp(r,e,o||0,c||r.length-1,f||Ny)}function Fp(r,e,o,c,f){for(;c>o;){if(c-o>600){var _=c-o+1,v=e-o+1,w=Math.log(_),E=.5*Math.exp(2*w/3),M=.5*Math.sqrt(w*E*(_-E)/_)*(v-_/2<0?-1:1);Fp(r,e,Math.max(o,Math.floor(e-v*E/_+M)),Math.min(c,Math.floor(e+(_-v)*E/_+M)),f)}var L=r[e],N=o,j=c;for(Wd(r,o,e),f(r[c],L)>0&&Wd(r,o,c);N0;)j--}0===f(r[o],L)?Wd(r,o,j):Wd(r,++j,c),j<=e&&(o=j+1),e<=j&&(c=j-1)}}function Wd(r,e,o){var c=r[e];r[e]=r[o],r[o]=c}function Ny(r,e){return re?1:0}function qd(r,e){const o=r.length;if(o<=1)return[r];const c=[];let f,_;for(let v=0;v1)for(let v=0;vo.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Wn,this.indexArray=new Ci,this.indexArray2=new is,this.programConfigurations=new zu(e.layers,e.zoom),this.segments=new So,this.segments2=new So,this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.projection=e.projection}populate(e,o,c,f){this.hasPattern=Bp("fill",this.layers,o);const _=this.layers[0].layout.get("fill-sort-key"),v=[];for(const{feature:w,id:E,index:M,sourceLayerIndex:L}of e){const N=this.layers[0]._featureFilter.needGeometry,j=ou(w,N);if(!this.layers[0]._featureFilter.filter(new R(this.zoom),j,c))continue;const W=_?_.evaluate(j,{},c,o.availableImages):void 0,J={id:E,properties:w.properties,type:w.type,sourceLayerIndex:L,index:M,geometry:N?j.geometry:ac(w,c,f),patterns:{},sortKey:W};v.push(J)}_&&v.sort((w,E)=>w.sortKey-E.sortKey);for(const w of v){const{geometry:E,index:M,sourceLayerIndex:L}=w;if(this.hasPattern){const N=Oc("fill",this.layers,w,this.zoom,o);this.patternFeatures.push(N)}else this.addFeature(w,E,M,c,{},o.availableImages);o.featureIndex.insert(e[M].feature,E,M,L,this.index)}}update(e,o,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,c,f)}addFeatures(e,o,c,f,_){for(const v of this.patternFeatures)this.addFeature(v,v.geometry,v.index,o,c,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Ay),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,o,c,f,_,v=[]){for(const w of qd(o,500)){let E=0;for(const J of w)E+=J.length;const M=this.segments.prepareSegment(E,this.layoutVertexArray,this.indexArray),L=M.vertexLength,N=[],j=[];for(const J of w){if(0===J.length)continue;J!==w[0]&&j.push(N.length/2);const se=this.segments2.prepareSegment(J.length,this.layoutVertexArray,this.indexArray2),Le=se.vertexLength;this.layoutVertexArray.emplaceBack(J[0].x,J[0].y),this.indexArray2.emplaceBack(Le+J.length-1,Le),N.push(J[0].x),N.push(J[0].y);for(let rt=1;rt>3}if(f--,1===c||2===c)_+=r.readSVarint(),v+=r.readSVarint(),1===c&&(e&&w.push(e),e=[]),e.push(new Uy(_,v));else{if(7!==c)throw new Error("unknown command "+c);e&&e.push(e[0].clone())}}return e&&w.push(e),w},cu.prototype.bbox=function(){var r=this._pbf;r.pos=this._geometry;for(var e=r.readVarint()+r.pos,o=1,c=0,f=0,_=0,v=1/0,w=-1/0,E=1/0,M=-1/0;r.pos>3}if(c--,1===o||2===o)(f+=r.readSVarint())w&&(w=f),(_+=r.readSVarint())M&&(M=_);else if(7!==o)throw new Error("unknown command "+o)}return[v,E,w,M]},cu.prototype.toGeoJSON=function(r,e,o){var c,f,_=this.extent*Math.pow(2,o),v=this.extent*r,w=this.extent*e,E=this.loadGeometry(),M=cu.types[this.type];function L(W){for(var J=0;J>3;f=1===v?c.readString():2===v?c.readFloat():3===v?c.readDouble():4===v?c.readVarint64():5===v?c.readVarint():6===v?c.readSVarint():7===v?c.readBoolean():null}return f}(o))}Lg.prototype.feature=function(r){if(r<0||r>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[r];var e=this._pbf.readVarint()+this._pbf.pos;return new Up(this._pbf,e,this.extent,this._keys,this._values)};var kg=Rg;function uu(r,e,o){if(3===r){var c=new kg(o,o.readVarint()+o.pos);c.length&&(e[c.name]=c)}}var cf=af.VectorTile=function(r,e){this.layers=r.readFields(uu,{},e)},Jd=af.VectorTileFeature=Og;function uf(r,e,o,c){const f=[],_=0===c?(v,w,E,M,L,N)=>{v.push(new ye(N,E+(N-w)/(M-w)*(L-E)))}:(v,w,E,M,L,N)=>{v.push(new ye(w+(N-E)/(L-E)*(M-w),N))};for(const v of r){const w=[];for(const E of v){if(E.length<=2)continue;const M=[];for(let j=0;je&&_(M,W,J,se,Le,e):rt>o?bt=e&&_(M,W,J,se,Le,e),bt>o&&rt<=o&&_(M,W,J,se,Le,o)}let L=E[E.length-1];const N=0===c?L.x:L.y;N>=e&&N<=o&&M.push(L),M.length&&(L=M[M.length-1],M[0].x===L.x&&M[0].y===L.y||M.push(M[0]),w.push(M))}w.length&&f.push(w)}return f}af.VectorTileLayer=Rg;const q0=Jd.types,df=Math.pow(2,13);function Kd(r,e,o,c,f,_,v,w){r.emplaceBack((e<<1)+v,(o<<1)+_,(Math.floor(c*df)<<1)+f,Math.round(w))}function ed(r,e,o){r.emplaceBack(e.x,e.y,e.z,16384*o[0],16384*o[1],16384*o[2])}class Vp{constructor(){this.acc=new ye(0,0),this.polyCount=[]}startRing(e){this.currentPolyCount={edges:0,top:0},this.polyCount.push(this.currentPolyCount),this.min||(this.min=new ye(e.x,e.y),this.max=new ye(e.x,e.y))}append(e,o){this.currentPolyCount.edges++,this.acc._add(e);const c=this.min,f=this.max;e.xf.x&&(f.x=e.x),e.yf.y&&(f.y=e.y),((0===e.x||e.x===vi)&&e.x===o.x)!=((0===e.y||e.y===vi)&&e.y===o.y)&&this.processBorderOverlap(e,o),o.x<0!=e.x<0&&this.addBorderIntersection(0,Pi(o.y,e.y,(0-o.x)/(e.x-o.x))),o.x>vi!=e.x>vi&&this.addBorderIntersection(1,Pi(o.y,e.y,(vi-o.x)/(e.x-o.x))),o.y<0!=e.y<0&&this.addBorderIntersection(2,Pi(o.x,e.x,(0-o.y)/(e.y-o.y))),o.y>vi!=e.y>vi&&this.addBorderIntersection(3,Pi(o.x,e.x,(vi-o.y)/(e.y-o.y)))}addBorderIntersection(e,o){this.borders||(this.borders=[[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE],[Number.MAX_VALUE,-Number.MAX_VALUE]]);const c=this.borders[e];oc[1]&&(c[1]=o)}processBorderOverlap(e,o){if(e.x===o.x){if(e.y===o.y)return;const c=0===e.x?0:1;this.addBorderIntersection(c,o.y),this.addBorderIntersection(c,e.y)}else{const c=0===e.y?2:3;this.addBorderIntersection(c,o.x),this.addBorderIntersection(c,e.x)}}centroid(){const e=this.polyCount.reduce((o,c)=>o+c.edges,0);return 0!==e?this.acc.div(e)._round():new ye(0,0)}span(){return new ye(this.max.x-this.min.x,this.max.y-this.min.y)}intersectsCount(){return this.borders.reduce((e,o)=>e+ +(o[0]!==Number.MAX_VALUE),0)}}class td{constructor(e){this.zoom=e.zoom,this.canonical=e.canonical,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(o=>o.id),this.index=e.index,this.hasPattern=!1,this.edgeRadius=0,this.projection=e.projection,this.layoutVertexArray=new Mn,this.centroidVertexArray=new Ya,this.indexArray=new Ci,this.programConfigurations=new zu(e.layers,e.zoom),this.segments=new So,this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id),this.enableTerrain=e.enableTerrain}populate(e,o,c,f){this.features=[],this.hasPattern=Bp("fill-extrusion",this.layers,o),this.featuresOnBorder=[],this.borders=[[],[],[],[]],this.borderDoneWithNeighborZ=[-1,-1,-1,-1],this.tileToMeter=function(_){const v=Math.exp(Math.PI*(1-_.y/(1<<_.z)*2));return 80150034*v/(v*v+1)/vi/(1<<_.z)}(c),this.edgeRadius=this.layers[0].layout.get("fill-extrusion-edge-radius")/this.tileToMeter;for(const{feature:_,id:v,index:w,sourceLayerIndex:E}of e){const M=this.layers[0]._featureFilter.needGeometry,L=ou(_,M);if(!this.layers[0]._featureFilter.filter(new R(this.zoom),L,c))continue;const N={id:v,sourceLayerIndex:E,index:w,geometry:M?L.geometry:ac(_,c,f),properties:_.properties,type:_.type,patterns:{}},j=this.layoutVertexArray.length;this.hasPattern?this.features.push(Oc("fill-extrusion",this.layers,N,this.zoom,o)):this.addFeature(N,N.geometry,w,c,{},o.availableImages,f),o.featureIndex.insert(_,N.geometry,w,E,this.index,j)}this.sortBorders()}addFeatures(e,o,c,f,_){for(const v of this.features){const{geometry:w}=v;this.addFeature(v,w,v.index,o,c,f,_)}this.sortBorders()}update(e,o,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,c,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Pg),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.layoutVertexExtArray&&(this.layoutVertexExtBuffer=e.createVertexBuffer(this.layoutVertexExtArray,zy.members,!0))),this.programConfigurations.upload(e),this.uploaded=!0}uploadCentroid(e){0!==this.centroidVertexArray.length&&(this.centroidVertexBuffer?this.needsCentroidUpdate&&this.centroidVertexBuffer.updateData(this.centroidVertexArray):this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,By.members,!0),this.needsCentroidUpdate=!1)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.centroidVertexBuffer&&this.centroidVertexBuffer.destroy(),this.layoutVertexExtBuffer&&this.layoutVertexExtBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,o,c,f,_,v,w){const E=[new ye(0,0),new ye(vi,vi)],M=w.projection,L="globe"===M.name,N=this.enableTerrain&&!L?new Vp:null,j="Polygon"===q0[e.type];L&&!this.layoutVertexExtArray&&(this.layoutVertexExtArray=new Zn);const W=qd(o,500);for(let rt=W.length-1;rt>=0;rt--){const bt=W[rt];(0===bt.length||(J=bt[0]).every(at=>at.x<=0)||J.every(at=>at.x>=vi)||J.every(at=>at.y<=0)||J.every(at=>at.y>=vi))&&W.splice(rt,1)}var J;let se;if(L)se=Zp(W,E,f);else{se=[];for(const rt of W)se.push({polygon:rt,bounds:E})}const Le=j?this.edgeRadius:0;for(const{polygon:rt,bounds:bt}of se){let at=0,xt=0;for(const Mt of rt)j&&!Mt[0].equals(Mt[Mt.length-1])&&Mt.push(Mt[0]),xt+=j?Mt.length-1:Mt.length;const At=this.segments.prepareSegment((j?5:4)*xt,this.layoutVertexArray,this.indexArray);if(j){const Mt=[],un=[];at=At.vertexLength;for(const Dn of rt){let Yn,mn;Dn.length&&Dn!==rt[0]&&un.push(Mt.length/2),Yn=Dn[1].sub(Dn[0])._perp()._unit();for(let Pn=1;Pn4&&$p(Mt[Mt.length-2],Mt[0],Mt[1]),mn=Le?Fg(Mt[Mt.length-2],Mt[0],Mt[1],Le):0;rn=Mt[1].sub(Mt[0])._perp()._unit();let Pn=!0;for(let Rn=1,zn=0;Rn0?1:0,ri=Qn.dist(En);if(zn+ri>32768&&(zn=0),Le){Dn=ai.sub(En)._perp()._unit();let Ki=Xd(Qn,En,ai,hf(rn,Dn),Le);isNaN(Ki)&&(Ki=0);const Ni=En.sub(Qn)._unit();Qn=Qn.add(Ni.mult(mn))._round(),En=En.add(Ni.mult(-Ki))._round(),mn=Ki,rn=Dn}const Ai=At.vertexLength,Zi=Mt.length>4&&$p(Qn,En,ai);let wr=ff(zn,Yn,Pn);if(Kd(this.layoutVertexArray,Qn.x,Qn.y,ci,Ji,0,0,wr),Kd(this.layoutVertexArray,Qn.x,Qn.y,ci,Ji,0,1,wr),zn+=ri,wr=ff(zn,Zi,!Pn),Yn=Zi,Kd(this.layoutVertexArray,En.x,En.y,ci,Ji,0,0,wr),Kd(this.layoutVertexArray,En.x,En.y,ci,Ji,0,1,wr),At.vertexLength+=4,this.indexArray.emplaceBack(Ai+0,Ai+1,Ai+2),this.indexArray.emplaceBack(Ai+1,Ai+3,Ai+2),At.primitiveLength+=2,Le){const Ki=at+(1===Rn?Mt.length-2:Rn-2),Ni=1===Rn?at:Ki+1;if(this.indexArray.emplaceBack(Ai+1,Ki,Ai+3),this.indexArray.emplaceBack(Ki,Ni,Ai+3),At.primitiveLength+=2,void 0===un&&(un=Ai),!nd(ai,Mt[Rn],bt)){const io=Rn===Mt.length-1?un:At.vertexLength;this.indexArray.emplaceBack(Ai+2,Ai+3,io),this.indexArray.emplaceBack(Ai+3,io+1,io),this.indexArray.emplaceBack(Ai+3,Ni,io+1),At.primitiveLength+=3}Pn=!Pn}if(L){const Ki=this.layoutVertexExtArray,Ni=M.projectTilePoint(Qn.x,Qn.y,f),io=M.projectTilePoint(En.x,En.y,f),er=M.upVector(f,Qn.x,Qn.y),tr=M.upVector(f,En.x,En.y);ed(Ki,Ni,er),ed(Ki,Ni,er),ed(Ki,io,tr),ed(Ki,io,tr)}}j&&(at+=Mt.length-1)}}if(N&&N.polyCount.length>0){if(N.borders){N.vertexArrayOffset=this.centroidVertexArray.length;const rt=N.borders,bt=this.featuresOnBorder.push(N)-1;for(let at=0;at<4;at++)rt[at][0]!==Number.MAX_VALUE&&this.borders[at].push(bt)}this.encodeCentroid(N.borders?void 0:N.centroid(),N)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,c,_,v,f)}sortBorders(){for(let e=0;e<4;e++)this.borders[e].sort((o,c)=>this.featuresOnBorder[o].borders[e][0]-this.featuresOnBorder[c].borders[e][0])}encodeCentroid(e,o,c=!0){let f,_;if(e)if(0!==e.y){const w=o.span()._mult(this.tileToMeter);f=(Math.max(e.x,1)<<3)+Math.min(7,Math.round(w.x/10)),_=(Math.max(e.y,1)<<3)+Math.min(7,Math.round(w.y/10))}else f=Math.ceil(7*(e.x+450)),_=0;else f=0,_=+c;let v=c?this.centroidVertexArray.length:o.vertexArrayOffset;for(const w of o.polyCount){c&&this.centroidVertexArray.resize(this.centroidVertexArray.length+4*w.edges+w.top);for(let E=0;Eo[1].x&&e.x>o[1].x||r.yo[1].y&&e.y>o[1].y}function $p(r,e,o){if(r.x<0||r.x>=vi||e.x<0||e.x>=vi||o.x<0||o.x>=vi)return!1;const c=o.sub(e),f=c.perp(),_=r.sub(e);return(c.x*_.x+c.y*_.y)/Math.sqrt((c.x*c.x+c.y*c.y)*(_.x*_.x+_.y*_.y))>-.866&&f.x*_.x+f.y*_.y<0}function ff(r,e,o){const c=e?2|r:-3&r;return o?1|c:-2&c}function Qd(){const r=Math.PI/32,e=Math.tan(r),o=Hh;return o*Math.sqrt(1+2*e*e)-o}function Zp(r,e,o){const c=1<{for(const rn of Mt)J.push({polygon:rn,bounds:un})},Le=Math.ceil(Math.log2(L)),rt=Math.ceil(Math.log2(N)),bt=Le-rt,at=[];for(let Mt=0;Mt0?0:1);for(let Mt=0;Mtun+1?At.push({polygons:zn,bounds:En,depth:un+1}):se(zn,En)}if(Qn.length){const En=[new ye(0===rn?Rn:Dn.x,1===rn?Rn:Dn.y),Yn];at.length>un+1?At.push({polygons:Qn,bounds:En,depth:un+1}):se(Qn,En)}}return J}(r,e,Math.ceil((_-f)/11.25),Math.ceil((v-w)/11.25),1,(E,M,L)=>{if(0===E)return.5*(M+L);{const N=ps((o.y+M/vi)/c);return(Pa(.5*(ps((o.y+L/vi)/c)+N))*c-o.y)*vi}})}hi(td,"FillExtrusionBucket",{omit:["layers","features"]}),hi(Vp,"PartMetadata");const Gp=new gt({"fill-extrusion-edge-radius":new ne(vt["layout_fill-extrusion"]["fill-extrusion-edge-radius"])});var pf={paint:new gt({"fill-extrusion-opacity":new ne(vt["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new He(vt["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new ne(vt["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new ne(vt["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new He(vt["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new He(vt["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new He(vt["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new ne(vt["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"]),"fill-extrusion-ambient-occlusion-intensity":new ne(vt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-intensity"]),"fill-extrusion-ambient-occlusion-radius":new ne(vt["paint_fill-extrusion"]["fill-extrusion-ambient-occlusion-radius"]),"fill-extrusion-rounded-roof":new ne(vt["paint_fill-extrusion"]["fill-extrusion-rounded-roof"])}),layout:Gp};function Ng(r,e,o){var c=2*Math.PI*6378137/256/Math.pow(2,o);return[r*c-2*Math.PI*6378137/2,e*c-2*Math.PI*6378137/2]}class eh{constructor(e,o,c){this.z=e,this.x=o,this.y=c,this.key=th(0,e,e,o,c)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,o){const c=(v=this.y,w=this.z,E=Ng(256*(_=this.x),256*(v=Math.pow(2,w)-v-1),w),M=Ng(256*(_+1),256*(v+1),w),E[0]+","+E[1]+","+M[0]+","+M[1]),f=function(_,v,w){let E,M="";for(let L=_;L>0;L--)E=1<this.canonical.z?new Js(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Js(e,this.wrap,e,this.canonical.x>>o,this.canonical.y>>o)}calculateScaledKey(e,o=!0){if(this.overscaledZ===e&&o)return this.key;if(e>this.canonical.z)return th(this.wrap*+o,e,this.canonical.z,this.canonical.x,this.canonical.y);{const c=this.canonical.z-e;return th(this.wrap*+o,e,e,this.canonical.x>>c,this.canonical.y>>c)}}isChildOf(e){if(e.wrap!==this.wrap)return!1;const o=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>o&&e.canonical.y===this.canonical.y>>o}children(e){if(this.overscaledZ>=e)return[new Js(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];const o=this.canonical.z+1,c=2*this.canonical.x,f=2*this.canonical.y;return[new Js(o,this.wrap,o,c,f),new Js(o,this.wrap,o,c+1,f),new Js(o,this.wrap,o,c,f+1),new Js(o,this.wrap,o,c+1,f+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.yo.id),this.index=e.index,this.projection=e.projection,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(o=>{this.gradients[o.id]={}}),this.layoutVertexArray=new pn,this.layoutVertexArray2=new qn,this.indexArray=new Ci,this.programConfigurations=new zu(e.layers,e.zoom),this.segments=new So,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(o=>o.isStateDependent()).map(o=>o.id)}populate(e,o,c,f){this.hasPattern=Bp("line",this.layers,o);const _=this.layers[0].layout.get("line-sort-key"),v=[];for(const{feature:L,id:N,index:j,sourceLayerIndex:W}of e){const J=this.layers[0]._featureFilter.needGeometry,se=ou(L,J);if(!this.layers[0]._featureFilter.filter(new R(this.zoom),se,c))continue;const Le=_?_.evaluate(se,{},c):void 0,rt={id:N,properties:L.properties,type:L.type,sourceLayerIndex:W,index:j,geometry:J?se.geometry:ac(L,c,f),patterns:{},sortKey:Le};v.push(rt)}_&&v.sort((L,N)=>L.sortKey-N.sortKey);const{lineAtlas:w,featureIndex:E}=o,M=this.addConstantDashes(w);for(const L of v){const{geometry:N,index:j,sourceLayerIndex:W}=L;if(M&&this.addFeatureDashes(L,w),this.hasPattern){const J=Oc("line",this.layers,L,this.zoom,o);this.patternFeatures.push(J)}else this.addFeature(L,N,j,c,w.positions,o.availableImages);E.insert(e[j].feature,N,j,W,this.index)}}addConstantDashes(e){let o=!1;for(const c of this.layers){const f=c.paint.get("line-dasharray").value,_=c.layout.get("line-cap").value;if("constant"!==f.kind||"constant"!==_.kind)o=!0;else{const v=_.value,w=f.value;if(!w)continue;e.addDash(w,v)}}return o}addFeatureDashes(e,o){const c=this.zoom;for(const f of this.layers){const _=f.paint.get("line-dasharray").value,v=f.layout.get("line-cap").value;if("constant"===_.kind&&"constant"===v.kind)continue;let w,E;if("constant"===_.kind){if(w=_.value,!w)continue}else w=_.evaluate({zoom:c},e);E="constant"===v.kind?v.value:v.evaluate({zoom:c},e),o.addDash(w,E),e.patterns[f.id]=o.getKey(w,E)}}update(e,o,c,f){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,o,this.stateDependentLayers,c,f)}addFeatures(e,o,c,f,_){for(const v of this.patternFeatures)this.addFeature(v,v.geometry,v.index,o,c,f)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,Y0)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,jy),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&e.properties.hasOwnProperty("mapbox_clip_start")&&e.properties.hasOwnProperty("mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,o,c,f,_,v){const w=this.layers[0].layout,E=w.get("line-join").evaluate(e,{}),M=w.get("line-cap").evaluate(e,{}),L=w.get("line-miter-limit"),N=w.get("line-round-limit");this.lineClips=this.lineFeatureClips(e);for(const j of o)this.addLine(j,e,E,M,L,N);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,c,_,v,f)}addLine(e,o,c,f,_,v){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineSoFar=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let rt=0;rt=2&&e[E-1].equals(e[E-2]);)E--;let M=0;for(;M0;if(un&&rt>M){const mn=j.dist(W);if(mn>2*L){const Pn=j.sub(j.sub(W)._mult(L/mn)._round());this.updateDistance(W,Pn),this.addCurrentVertex(Pn,se,0,0,N),W=Pn}}const Dn=W&&J;let Yn=Dn?c:w?"butt":f;if(Dn&&"round"===Yn&&(At_&&(Yn="bevel"),"bevel"===Yn&&(At>2&&(Yn="flipbevel"),At<_&&(Yn="miter")),W&&this.updateDistance(W,j),"miter"===Yn)bt._mult(At),this.addCurrentVertex(j,bt,0,0,N);else if("flipbevel"===Yn){if(At>100)bt=Le.mult(-1);else{const mn=At*se.add(Le).mag()/se.sub(Le).mag();bt._perp()._mult(mn*(rn?-1:1))}this.addCurrentVertex(j,bt,0,0,N),this.addCurrentVertex(j,bt.mult(-1),0,0,N)}else if("bevel"===Yn||"fakeround"===Yn){const mn=-Math.sqrt(At*At-1),Pn=rn?mn:0,Rn=rn?0:mn;if(W&&this.addCurrentVertex(j,se,Pn,Rn,N),"fakeround"===Yn){const zn=Math.round(180*Mt/Math.PI/20);for(let Qn=1;Qn2*L){const Pn=j.add(J.sub(j)._mult(L/mn)._round());this.updateDistance(j,Pn),this.addCurrentVertex(Pn,Le,0,0,N),j=Pn}}}}addCurrentVertex(e,o,c,f,_,v=!1){const w=o.y*f-o.x,E=-o.y-o.x*f;this.addHalfVertex(e,o.x+o.y*c,o.y-o.x*c,v,!1,c,_),this.addHalfVertex(e,w,E,v,!0,-f,_)}addHalfVertex({x:e,y:o},c,f,_,v,w,E){this.layoutVertexArray.emplaceBack((e<<1)+(_?1:0),(o<<1)+(v?1:0),Math.round(63*c)+128,Math.round(63*f)+128,1+(0===w?0:w<0?-1:1),0,this.lineSoFar),this.lineClips&&this.layoutVertexArray2.emplaceBack(this.scaledDistance,this.lineClipsArray.length,this.lineClips.start,this.lineClips.end);const M=E.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,M),E.primitiveLength++),v?this.e2=M:this.e1=M}updateScaledDistance(){if(this.lineClips){const e=this.totalDistance/(this.lineClips.end-this.lineClips.start);this.scaledDistance=this.distance/this.totalDistance,this.lineSoFar=e*this.lineClips.start+this.distance}else this.lineSoFar=this.distance}updateDistance(e,o){this.distance+=e.dist(o),this.updateScaledDistance()}}hi(od,"LineBucket",{omit:["layers","patternFeatures"]});const zg=new gt({"line-cap":new He(vt.layout_line["line-cap"]),"line-join":new He(vt.layout_line["line-join"]),"line-miter-limit":new ne(vt.layout_line["line-miter-limit"]),"line-round-limit":new ne(vt.layout_line["line-round-limit"]),"line-sort-key":new He(vt.layout_line["line-sort-key"])});var Hp={paint:new gt({"line-opacity":new He(vt.paint_line["line-opacity"]),"line-color":new He(vt.paint_line["line-color"]),"line-translate":new ne(vt.paint_line["line-translate"]),"line-translate-anchor":new ne(vt.paint_line["line-translate-anchor"]),"line-width":new He(vt.paint_line["line-width"]),"line-gap-width":new He(vt.paint_line["line-gap-width"]),"line-offset":new He(vt.paint_line["line-offset"]),"line-blur":new He(vt.paint_line["line-blur"]),"line-dasharray":new He(vt.paint_line["line-dasharray"]),"line-pattern":new He(vt.paint_line["line-pattern"]),"line-gradient":new ht(vt.paint_line["line-gradient"]),"line-trim-offset":new ne(vt.paint_line["line-trim-offset"])}),layout:zg};const Wp=new class extends He{possiblyEvaluate(r,e){return e=new R(Math.floor(e.zoom),{now:e.now,fadeDuration:e.fadeDuration,transition:e.transition}),super.possiblyEvaluate(r,e)}evaluate(r,e,o,c){return e=We({},e,{zoom:Math.floor(e.zoom)}),super.evaluate(r,e,o,c)}}(Hp.paint.properties["line-width"].specification);function qp(r,e){return e>0?e+2*r:r}Wp.useIntegerZoom=!0;const Zy=$t([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_tex_size",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Gy=$t([{name:"a_globe_anchor",components:3,type:"Int16"},{name:"a_globe_normal",components:3,type:"Float32"}],4),Hy=$t([{name:"a_projected_pos",components:4,type:"Float32"}],4);$t([{name:"a_fade_opacity",components:1,type:"Uint32"}],4);const Wy=$t([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}]),qy=$t([{name:"a_size_scale",components:1,type:"Float32"},{name:"a_padding",components:2,type:"Float32"}]);$t([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Int16",name:"tileAnchorX"},{type:"Int16",name:"tileAnchorY"},{type:"Float32",name:"x1"},{type:"Float32",name:"y1"},{type:"Float32",name:"x2"},{type:"Float32",name:"y2"},{type:"Int16",name:"padding"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]);const uc=$t([{name:"a_pos",components:3,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4),ih=$t([{name:"a_pos_2f",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);$t([{name:"triangle",components:3,type:"Uint16"}]),$t([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"},{type:"Uint8",name:"flipState"}]),$t([{type:"Int16",name:"projectedAnchorX"},{type:"Int16",name:"projectedAnchorY"},{type:"Int16",name:"projectedAnchorZ"},{type:"Float32",name:"tileAnchorX"},{type:"Float32",name:"tileAnchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),$t([{type:"Float32",name:"offsetX"}]),$t([{type:"Int16",name:"x"},{type:"Int16",name:"y"}]);var cs=24;const kl=128;function Ug(r,e){const{expression:o}=e;if("constant"===o.kind)return{kind:"constant",layoutSize:o.evaluate(new R(r+1))};if("source"===o.kind)return{kind:"source"};{const{zoomStops:c,interpolationType:f}=o;let _=0;for(;_{c.text=function(f,_,v){const w=_.layout.get("text-transform").evaluate(v,{});return"uppercase"===w?f=f.toLocaleUpperCase():"lowercase"===w&&(f=f.toLocaleLowerCase()),I.applyArabicShaping&&(f=I.applyArabicShaping(f)),f}(c.text,e,o)}),r}const oh={"!":"\ufe15","#":"\uff03",$:"\uff04","%":"\uff05","&":"\uff06","(":"\ufe35",")":"\ufe36","*":"\uff0a","+":"\uff0b",",":"\ufe10","-":"\ufe32",".":"\u30fb","/":"\uff0f",":":"\ufe13",";":"\ufe14","<":"\ufe3f","=":"\uff1d",">":"\ufe40","?":"\ufe16","@":"\uff20","[":"\ufe47","\\":"\uff3c","]":"\ufe48","^":"\uff3e",_:"\ufe33","`":"\uff40","{":"\ufe37","|":"\u2015","}":"\ufe38","~":"\uff5e","\xa2":"\uffe0","\xa3":"\uffe1","\xa5":"\uffe5","\xa6":"\uffe4","\xac":"\uffe2","\xaf":"\uffe3","\u2013":"\ufe32","\u2014":"\ufe31","\u2018":"\ufe43","\u2019":"\ufe44","\u201c":"\ufe41","\u201d":"\ufe42","\u2026":"\ufe19","\u2027":"\u30fb","\u20a9":"\uffe6","\u3001":"\ufe11","\u3002":"\ufe12","\u3008":"\ufe3f","\u3009":"\ufe40","\u300a":"\ufe3d","\u300b":"\ufe3e","\u300c":"\ufe41","\u300d":"\ufe42","\u300e":"\ufe43","\u300f":"\ufe44","\u3010":"\ufe3b","\u3011":"\ufe3c","\u3014":"\ufe39","\u3015":"\ufe3a","\u3016":"\ufe17","\u3017":"\ufe18","\uff01":"\ufe15","\uff08":"\ufe35","\uff09":"\ufe36","\uff0c":"\ufe10","\uff0d":"\ufe32","\uff0e":"\u30fb","\uff1a":"\ufe13","\uff1b":"\ufe14","\uff1c":"\ufe3f","\uff1e":"\ufe40","\uff1f":"\ufe16","\uff3b":"\ufe47","\uff3d":"\ufe48","\uff3f":"\ufe33","\uff5b":"\ufe37","\uff5c":"\u2015","\uff5d":"\ufe38","\uff5f":"\ufe35","\uff60":"\ufe36","\uff61":"\ufe12","\uff62":"\ufe41","\uff63":"\ufe42","\u2190":"\u2191","\u2192":"\u2193"};function Yy(r){return"\ufe36"===r||"\ufe48"===r||"\ufe38"===r||"\ufe44"===r||"\ufe42"===r||"\ufe3e"===r||"\ufe3c"===r||"\ufe3a"===r||"\ufe18"===r||"\ufe40"===r||"\ufe10"===r||"\ufe13"===r||"\ufe14"===r||"\uff40"===r||"\uffe3"===r||"\ufe11"===r||"\ufe12"===r}function Jy(r){return"\ufe35"===r||"\ufe47"===r||"\ufe37"===r||"\ufe43"===r||"\ufe41"===r||"\ufe3d"===r||"\ufe3b"===r||"\ufe39"===r||"\ufe17"===r||"\ufe3f"===r}var Vg=Or,_f=function(r,e,o,c,f){var _,v,w=8*f-c-1,E=(1<>1,L=-7,N=o?f-1:0,j=o?-1:1,W=r[e+N];for(N+=j,_=W&(1<<-L)-1,W>>=-L,L+=w;L>0;_=256*_+r[e+N],N+=j,L-=8);for(v=_&(1<<-L)-1,_>>=-L,L+=c;L>0;v=256*v+r[e+N],N+=j,L-=8);if(0===_)_=1-M;else{if(_===E)return v?NaN:1/0*(W?-1:1);v+=Math.pow(2,c),_-=M}return(W?-1:1)*v*Math.pow(2,_-c)},Fl=function(r,e,o,c,f,_){var v,w,E,M=8*_-f-1,L=(1<>1,j=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,W=c?0:_-1,J=c?1:-1,se=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(w=isNaN(e)?1:0,v=L):(v=Math.floor(Math.log(e)/Math.LN2),e*(E=Math.pow(2,-v))<1&&(v--,E*=2),(e+=v+N>=1?j/E:j*Math.pow(2,1-N))*E>=2&&(v++,E/=2),v+N>=L?(w=0,v=L):v+N>=1?(w=(e*E-1)*Math.pow(2,f),v+=N):(w=e*Math.pow(2,N-1)*Math.pow(2,f),v=0));f>=8;r[o+W]=255&w,W+=J,w/=256,f-=8);for(v=v<0;r[o+W]=255&v,W+=J,v/=256,M-=8);r[o+W-J]|=128*se};function Or(r){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(r)?r:new Uint8Array(r||0),this.pos=0,this.type=0,this.length=this.buf.length}Or.Varint=0,Or.Fixed64=1,Or.Bytes=2,Or.Fixed32=5;var yf=4294967296,Jp=1/yf,Kp=typeof TextDecoder>"u"?null:new TextDecoder("utf8");function Rc(r){return r.type===Or.Bytes?r.readVarint()+r.pos:r.pos+1}function Ky(r,e,o){var c=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));o.realloc(c);for(var f=o.pos-1;f>=r;f--)o.buf[f+c]=o.buf[f]}function Xp(r,e){for(var o=0;o>>8,r[o+2]=e>>>16,r[o+3]=e>>>24}function Zg(r,e){return(r[e]|r[e+1]<<8|r[e+2]<<16)+(r[e+3]<<24)}Or.prototype={destroy:function(){this.buf=null},readFields:function(r,e,o){for(o=o||this.length;this.pos>3,_=this.pos;this.type=7&c,r(f,e,this),this.pos===_&&this.skip(c)}return e},readMessage:function(r,e){return this.readFields(r,e,this.readVarint()+this.pos)},readFixed32:function(){var r=ah(this.buf,this.pos);return this.pos+=4,r},readSFixed32:function(){var r=Zg(this.buf,this.pos);return this.pos+=4,r},readFixed64:function(){var r=ah(this.buf,this.pos)+ah(this.buf,this.pos+4)*yf;return this.pos+=8,r},readSFixed64:function(){var r=ah(this.buf,this.pos)+Zg(this.buf,this.pos+4)*yf;return this.pos+=8,r},readFloat:function(){var r=_f(this.buf,this.pos,!0,23,4);return this.pos+=4,r},readDouble:function(){var r=_f(this.buf,this.pos,!0,52,8);return this.pos+=8,r},readVarint:function(r){var e,o,c=this.buf;return e=127&(o=c[this.pos++]),o<128?e:(e|=(127&(o=c[this.pos++]))<<7,o<128?e:(e|=(127&(o=c[this.pos++]))<<14,o<128?e:(e|=(127&(o=c[this.pos++]))<<21,o<128?e:function(f,_,v){var w,E,M=v.buf;if(w=(112&(E=M[v.pos++]))>>4,E<128||(w|=(127&(E=M[v.pos++]))<<3,E<128)||(w|=(127&(E=M[v.pos++]))<<10,E<128)||(w|=(127&(E=M[v.pos++]))<<17,E<128)||(w|=(127&(E=M[v.pos++]))<<24,E<128)||(w|=(1&(E=M[v.pos++]))<<31,E<128))return function sh(r,e,o){return o?4294967296*e+(r>>>0):4294967296*(e>>>0)+(r>>>0)}(f,w,_);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(o=c[this.pos]))<<28,r,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var r=this.readVarint();return r%2==1?(r+1)/-2:r/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var r=this.readVarint()+this.pos,e=this.pos;return this.pos=r,r-e>=12&&Kp?Kp.decode(this.buf.subarray(e,r)):function(o,c,f){for(var _="",v=c;v239?4:L>223?3:L>191?2:1;if(v+j>f)break;1===j?L<128&&(N=L):2===j?128==(192&(w=o[v+1]))&&(N=(31&L)<<6|63&w)<=127&&(N=null):3===j?(E=o[v+2],128==(192&(w=o[v+1]))&&128==(192&E)&&((N=(15&L)<<12|(63&w)<<6|63&E)<=2047||N>=55296&&N<=57343)&&(N=null)):4===j&&(E=o[v+2],M=o[v+3],128==(192&(w=o[v+1]))&&128==(192&E)&&128==(192&M)&&((N=(15&L)<<18|(63&w)<<12|(63&E)<<6|63&M)<=65535||N>=1114112)&&(N=null)),null===N?(N=65533,j=1):N>65535&&(N-=65536,_+=String.fromCharCode(N>>>10&1023|55296),N=56320|1023&N),_+=String.fromCharCode(N),v+=j}return _}(this.buf,e,r)},readBytes:function(){var r=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,r);return this.pos=r,e},readPackedVarint:function(r,e){if(this.type!==Or.Bytes)return r.push(this.readVarint(e));var o=Rc(this);for(r=r||[];this.pos127;);else if(e===Or.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Or.Fixed32)this.pos+=4;else{if(e!==Or.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(r,e){this.writeVarint(r<<3|e)},realloc:function(r){for(var e=this.length||16;e268435455||r<0?function(e,o){var c,f,_,w;if(e>=0?(c=e%4294967296|0,f=e/4294967296|0):(f=~(-e/4294967296),4294967295^(c=~(-e%4294967296))?c=c+1|0:(c=0,f=f+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");o.realloc(10),_=c,(w=o).buf[w.pos++]=127&_|128,_>>>=7,w.buf[w.pos++]=127&_|128,_>>>=7,w.buf[w.pos++]=127&_|128,_>>>=7,w.buf[w.pos++]=127&_|128,w.buf[w.pos]=127&(_>>>=7),function(_,v){var w=(7&_)<<4;v.buf[v.pos++]|=w|((_>>>=3)?128:0),_&&(v.buf[v.pos++]=127&_|((_>>>=7)?128:0),_&&(v.buf[v.pos++]=127&_|((_>>>=7)?128:0),_&&(v.buf[v.pos++]=127&_|((_>>>=7)?128:0),_&&(v.buf[v.pos++]=127&_|((_>>>=7)?128:0),_&&(v.buf[v.pos++]=127&_)))))}(f,o)}(r,this):(this.realloc(4),this.buf[this.pos++]=127&r|(r>127?128:0),r<=127||(this.buf[this.pos++]=127&(r>>>=7)|(r>127?128:0),r<=127||(this.buf[this.pos++]=127&(r>>>=7)|(r>127?128:0),r<=127||(this.buf[this.pos++]=r>>>7&127))))},writeSVarint:function(r){this.writeVarint(r<0?2*-r-1:2*r)},writeBoolean:function(r){this.writeVarint(!!r)},writeString:function(r){r=String(r),this.realloc(4*r.length),this.pos++;var e=this.pos;this.pos=function(c,f,_){for(var v,w,E=0;E55295&&v<57344){if(!w){v>56319||E+1===f.length?(c[_++]=239,c[_++]=191,c[_++]=189):w=v;continue}if(v<56320){c[_++]=239,c[_++]=191,c[_++]=189,w=v;continue}v=w-55296<<10|v-56320|65536,w=null}else w&&(c[_++]=239,c[_++]=191,c[_++]=189,w=null);v<128?c[_++]=v:(v<2048?c[_++]=v>>6|192:(v<65536?c[_++]=v>>12|224:(c[_++]=v>>18|240,c[_++]=v>>12&63|128),c[_++]=v>>6&63|128),c[_++]=63&v|128)}return _}(this.buf,r,this.pos);var o=this.pos-e;o>=128&&Ky(e,o,this),this.pos=e-1,this.writeVarint(o),this.pos+=o},writeFloat:function(r){this.realloc(4),Fl(this.buf,r,this.pos,!0,23,4),this.pos+=4},writeDouble:function(r){this.realloc(8),Fl(this.buf,r,this.pos,!0,52,8),this.pos+=8},writeBytes:function(r){var e=r.length;this.writeVarint(e),this.realloc(e);for(var o=0;o=128&&Ky(o,c,this),this.pos=o-1,this.writeVarint(c),this.pos+=c},writeMessage:function(r,e,o){this.writeTag(r,Or.Bytes),this.writeRawMessage(e,o)},writePackedVarint:function(r,e){e.length&&this.writeMessage(r,Xp,e)},writePackedSVarint:function(r,e){e.length&&this.writeMessage(r,Qp,e)},writePackedBoolean:function(r,e){e.length&&this.writeMessage(r,$g,e)},writePackedFloat:function(r,e){e.length&&this.writeMessage(r,K0,e)},writePackedDouble:function(r,e){e.length&&this.writeMessage(r,X0,e)},writePackedFixed32:function(r,e){e.length&&this.writeMessage(r,Xy,e)},writePackedSFixed32:function(r,e){e.length&&this.writeMessage(r,Qy,e)},writePackedFixed64:function(r,e){e.length&&this.writeMessage(r,ev,e)},writePackedSFixed64:function(r,e){e.length&&this.writeMessage(r,tv,e)},writeBytesField:function(r,e){this.writeTag(r,Or.Bytes),this.writeBytes(e)},writeFixed32Field:function(r,e){this.writeTag(r,Or.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(r,e){this.writeTag(r,Or.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(r,e){this.writeTag(r,Or.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(r,e){this.writeTag(r,Or.Fixed64),this.writeSFixed64(e)},writeVarintField:function(r,e){this.writeTag(r,Or.Varint),this.writeVarint(e)},writeSVarintField:function(r,e){this.writeTag(r,Or.Varint),this.writeSVarint(e)},writeStringField:function(r,e){this.writeTag(r,Or.Bytes),this.writeString(e)},writeFloatField:function(r,e){this.writeTag(r,Or.Fixed32),this.writeFloat(e)},writeDoubleField:function(r,e){this.writeTag(r,Or.Fixed64),this.writeDouble(e)},writeBooleanField:function(r,e){this.writeVarintField(r,!!e)}};var sd=nt(Vg);const em=3;function ad(r,e,o){e.glyphs=[],1===r&&o.readMessage(nv,e)}function nv(r,e,o){if(3===r){const{id:c,bitmap:f,width:_,height:v,left:w,top:E,advance:M}=o.readMessage(iv,{});e.glyphs.push({id:c,bitmap:new Qa({width:_+2*em,height:v+2*em},f),metrics:{width:_,height:v,left:w,top:E,advance:M}})}else 4===r?e.ascender=o.readSVarint():5===r&&(e.descender=o.readSVarint())}function iv(r,e,o){1===r?e.id=o.readVarint():2===r?e.bitmap=o.readBytes():3===r?e.width=o.readVarint():4===r?e.height=o.readVarint():5===r?e.left=o.readSVarint():6===r?e.top=o.readSVarint():7===r&&(e.advance=o.readVarint())}const vf=em;function xf(r){let e=0,o=0;for(const v of r)e+=v.w*v.h,o=Math.max(o,v.w);r.sort((v,w)=>w.h-v.h);const c=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),o),h:1/0}];let f=0,_=0;for(const v of r)for(let w=c.length-1;w>=0;w--){const E=c[w];if(!(v.w>E.w||v.h>E.h)){if(v.x=E.x,v.y=E.y,_=Math.max(_,v.y+v.h),f=Math.max(f,v.x+v.w),v.w===E.w&&v.h===E.h){const M=c.pop();we.hasImage(c)),e.dispatchRenderCallbacks(this.haveRenderCallbacks);for(const c in e.updatedImages)this.patchUpdatedImage(this.iconPositions[c],e.getImage(c),o),this.patchUpdatedImage(this.patternPositions[c],e.getImage(c),o)}patchUpdatedImage(e,o,c){if(!e||!o||e.version===o.version)return;e.version=o.version;const[f,_]=e.tl;c.update(o.data,void 0,{x:f,y:_})}}hi(tm,"ImagePosition"),hi(Gg,"ImageAtlas");const La={horizontal:1,vertical:2,horizontalOnly:3},nm=-17;class bf{constructor(){this.scale=1,this.fontStack="",this.imageName=null}static forText(e,o){const c=new bf;return c.scale=e||1,c.fontStack=o,c}static forImage(e){const o=new bf;return o.imageName=e,o}}class lh{constructor(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null}static fromFeature(e,o){const c=new lh;for(let f=0;f=0&&c>=e&&ch[this.text.charCodeAt(c)];c--)o--;this.text=this.text.substring(e,o),this.sectionIndex=this.sectionIndex.slice(e,o)}substring(e,o){const c=new lh;return c.text=this.text.substring(e,o),c.sectionIndex=this.sectionIndex.slice(e,o),c.sections=this.sections,c}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,o)=>Math.max(e,this.sections[o].scale),0)}addTextSection(e,o){this.text+=e.text,this.sections.push(bf.forText(e.scale,e.fontStack||o));const c=this.sections.length-1;for(let f=0;f=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function hu(r,e,o,c,f,_,v,w,E,M,L,N,j,W,J){const se=lh.fromFeature(r,f);N===La.vertical&&se.verticalizePunctuation(j);let Le=[];const rt=function(Mt,un,rn,Dn,Yn,mn){if(!Mt)return[];const Pn=[],Rn=function(ai,gi,ci,Ji,ri,Ai){let Zi=0;for(let wr=0;wr=0;let Qn=0;for(let ai=0;ai0&&xl>Cr&&(Cr=xl)}else{const ks=rn[ko.fontStack];if(!ks)continue;ks[ar]&&(Qr=ks[ar]);const qo=un[ko.fontStack];if(!qo)continue;const xl=qo.glyphs[ar];if(!xl)continue;if(wo=xl.metrics,Co=8203!==ar?cs:0,Ai){const nl=void 0!==qo.ascender?Math.abs(qo.ascender):0,xd=void 0!==qo.descender?Math.abs(qo.descender):0,bd=(nl+xd)*Tr;po-o/2;){if(v--,v<0)return!1;w-=r[v].dist(_),_=r[v]}w+=r[v].dist(r[v+1]),v++;const E=[];let M=0;for(;wc;)M-=E.shift().angleDelta;if(M>f)return!1;v++,w+=L.dist(N)}return!0}function Tf(r){let e=0;for(let o=0;oM){const J=(M-E)/W,se=Pi(N.x,j.x,J),Le=Pi(N.y,j.y,J),rt=new el(se,Le,0,j.angleTo(N),L);return!v||fu(r,rt,w,v,e)?rt:void 0}E+=W}}function rm(r,e,o,c,f,_,v,w,E){const M=Df(c,_,v),L=dh(c,f),N=L*v,j=0===r[0].x||r[0].x===E||0===r[0].y||r[0].y===E;return e-N=0&&xt=0&&At=0&&j+M<=L){const Mt=new el(xt,At,0,bt,J);Mt._round(),c&&!fu(r,Mt,_,c,f)||W.push(Mt)}}N+=rt}return w||W.length||v||(W=cd(r,N/2,o,c,f,_,v,!0,E)),W}function Hg(r,e,o,c,f){const _=[];for(let v=0;v=c&&N.x>=c||(L.x>=c?L=new ye(c,L.y+(c-L.x)/(N.x-L.x)*(N.y-L.y))._round():N.x>=c&&(N=new ye(c,L.y+(c-L.x)/(N.x-L.x)*(N.y-L.y))._round()),L.y>=f&&N.y>=f||(L.y>=f?L=new ye(L.x+(f-L.y)/(N.y-L.y)*(N.x-L.x),f)._round():N.y>=f&&(N=new ye(L.x+(f-L.y)/(N.y-L.y)*(N.x-L.x),f)._round()),E&&L.equals(E[E.length-1])||(E=[L],_.push(E)),E.push(N)))))}}return _}hi(el,"Anchor");const ud=1e20;function Wg(r,e,o,c,f,_,v,w,E){for(let M=e;M-1);E++,_[E]=w,v[E]=M,v[E+1]=ud}for(let w=0,E=0;w{let w=this.entries[f];w||(w=this.entries[f]={glyphs:{},requests:{},ranges:{},ascender:void 0,descender:void 0});let E=w.glyphs[_];if(void 0!==E)return void v(null,{stack:f,id:_,glyph:E});if(E=this._tinySDF(w,f,_),E)return w.glyphs[_]=E,void v(null,{stack:f,id:_,glyph:E});const M=Math.floor(_/256);if(256*M>65535)return void v(new Error("glyphs > 65535 not supported"));if(w.ranges[M])return void v(null,{stack:f,id:_,glyph:E});let L=w.requests[M];L||(L=w.requests[M]=[],dd.loadGlyphRange(f,M,this.url,this.requestManager,(N,j)=>{if(j){w.ascender=j.ascender,w.descender=j.descender;for(const W in j.glyphs)this._doesCharSupportLocalGlyph(+W)||(w.glyphs[+W]=j.glyphs[+W]);w.ranges[M]=!0}for(const W of L)W(N,j);delete w.requests[M]})),L.push((N,j)=>{N?v(N):j&&v(null,{stack:f,id:_,glyph:j.glyphs[_]||null})})},(f,_)=>{if(f)o(f);else if(_){const v={};for(const{stack:w,id:E,glyph:M}of _)void 0===v[w]&&(v[w]={}),void 0===v[w].glyphs&&(v[w].glyphs={}),v[w].glyphs[E]=M&&{id:M.id,bitmap:M.bitmap.clone(),metrics:M.metrics},v[w].ascender=this.entries[w].ascender,v[w].descender=this.entries[w].descender;o(null,v)}})}_doesCharSupportLocalGlyph(e){return this.localGlyphMode!==If.none&&(this.localGlyphMode===If.all?!!this.localFontFamily:!!this.localFontFamily&&(oi["CJK Unified Ideographs"](e)||oi["Hangul Syllables"](e)||oi.Hiragana(e)||oi.Katakana(e)||oi["CJK Symbols and Punctuation"](e)))}_tinySDF(e,o,c){const f=this.localFontFamily;if(!f||!this._doesCharSupportLocalGlyph(c))return;let _=e.tinySDF;if(!_){let se="400";/bold/i.test(o)?se="900":/medium/i.test(o)?se="500":/light/i.test(o)&&(se="200"),_=e.tinySDF=new dd.TinySDF({fontFamily:f,fontWeight:se,fontSize:24*ka,buffer:3*ka,radius:8*ka}),_.fontWeight=se}if(this.localGlyphs[_.fontWeight][c])return this.localGlyphs[_.fontWeight][c];const v=String.fromCharCode(c),{data:w,width:E,height:M,glyphWidth:L,glyphHeight:N,glyphLeft:j,glyphTop:W,glyphAdvance:J}=_.draw(v);return this.localGlyphs[_.fontWeight][c]={id:c,bitmap:new Qa({width:E,height:M},w),metrics:{width:L/ka,height:N/ka,left:j/ka,top:W/ka-27,advance:J/ka,localGlyph:!0}}}}dd.loadGlyphRange=function(r,e,o,c,f){const _=256*e,v=_+255,w=c.transformRequest(c.normalizeGlyphsURL(o).replace("{fontstack}",r).replace("{range}",`${_}-${v}`),fn.Glyphs);Jt(w,(E,M)=>{if(E)f(E);else if(M){const L={},N=new sd(M).readFields(ad,{});for(const j of N.glyphs)L[j.id]=j;f(null,{glyphs:L,ascender:N.ascender,descender:N.descender})}})},dd.TinySDF=class{constructor({fontSize:r=24,buffer:e=3,radius:o=8,cutoff:c=.25,fontFamily:f="sans-serif",fontWeight:_="normal",fontStyle:v="normal"}={}){this.buffer=e,this.cutoff=c,this.radius=o;const w=this.size=r+4*e,E=this._createCanvas(w),M=this.ctx=E.getContext("2d",{willReadFrequently:!0});M.font=`${v} ${_} ${r}px ${f}`,M.textBaseline="alphabetic",M.textAlign="left",M.fillStyle="black",this.gridOuter=new Float64Array(w*w),this.gridInner=new Float64Array(w*w),this.f=new Float64Array(w),this.z=new Float64Array(w+1),this.v=new Uint16Array(w)}_createCanvas(r){const e=document.createElement("canvas");return e.width=e.height=r,e}draw(r){const{width:e,actualBoundingBoxAscent:o,actualBoundingBoxDescent:c,actualBoundingBoxLeft:f,actualBoundingBoxRight:_}=this.ctx.measureText(r),v=Math.ceil(o),w=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(_-f))),E=Math.min(this.size-this.buffer,v+Math.ceil(c)),M=w+2*this.buffer,L=E+2*this.buffer,N=Math.max(M*L,0),j=new Uint8ClampedArray(N),W={data:j,width:M,height:L,glyphWidth:w,glyphHeight:E,glyphTop:v,glyphLeft:0,glyphAdvance:e};if(0===w||0===E)return W;const{ctx:J,buffer:se,gridInner:Le,gridOuter:rt}=this;J.clearRect(se,se,w,E),J.fillText(r,se,se+v);const bt=J.getImageData(se,se,w,E);rt.fill(ud,0,N),Le.fill(0,0,N);for(let at=0;at0?un*un:0,Le[Mt]=un<0?un*un:0}}Wg(rt,0,0,M,L,M,this.f,this.v,this.z),Wg(Le,se,se,w,E,M,this.f,this.v,this.z);for(let at=0;atmn+Pn[1]-Pn[0],J=N.reduce(W,0),se=j.reduce(W,0),Le=w-J,rt=E-se;let bt=0,at=J,xt=0,At=se,Mt=0,un=Le,rn=0,Dn=rt;if(_.content&&c){const mn=_.content;bt=Mf(N,0,mn[0]),xt=Mf(j,0,mn[1]),at=Mf(N,mn[0],mn[2]),At=Mf(j,mn[1],mn[3]),Mt=mn[0]-bt,rn=mn[1]-xt,un=mn[2]-mn[0]-at,Dn=mn[3]-mn[1]-At}const Yn=(mn,Pn,Rn,zn)=>{const Qn=fd(mn.stretch-bt,at,M,r.left),En=Af(mn.fixed-Mt,un,mn.stretch,J),ai=fd(Pn.stretch-xt,At,L,r.top),gi=Af(Pn.fixed-rn,Dn,Pn.stretch,se),ci=fd(Rn.stretch-bt,at,M,r.left),Ji=Af(Rn.fixed-Mt,un,Rn.stretch,J),ri=fd(zn.stretch-xt,At,L,r.top),Ai=Af(zn.fixed-rn,Dn,zn.stretch,se),Zi=new ye(Qn,ai),wr=new ye(ci,ai),Ki=new ye(ci,ri),Ni=new ye(Qn,ri),io=new ye(En/v,gi/v),er=new ye(Ji/v,Ai/v),tr=e*Math.PI/180;if(tr){const Wr=Math.sin(tr),Cr=Math.cos(tr),po=[Cr,-Wr,Wr,Cr];Zi._matMult(po),wr._matMult(po),Ni._matMult(po),Ki._matMult(po)}const Hr=mn.stretch+mn.fixed,Xr=Pn.stretch+Pn.fixed;return{tl:Zi,tr:wr,bl:Ni,br:Ki,tex:{x:_.paddedRect.x+hd+Hr,y:_.paddedRect.y+hd+Xr,w:Rn.stretch+Rn.fixed-Hr,h:zn.stretch+zn.fixed-Xr},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:io,pixelOffsetBR:er,minFontScaleX:un/v/M,minFontScaleY:Dn/v/L,isSDF:o}};if(c&&(_.stretchX||_.stretchY)){const mn=hh(N,Le,J),Pn=hh(j,rt,se);for(let Rn=0;Rn0)for(let c=(this.length>>1)-1;c>=0;c--)this._down(c)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;const e=this.data[0],o=this.data.pop();return this.length--,this.length>0&&(this.data[0]=o,this._down(0)),e}peek(){return this.data[0]}_up(e){const{data:o,compare:c}=this,f=o[e];for(;e>0;){const _=e-1>>1,v=o[_];if(c(f,v)>=0)break;o[e]=v,e=_}o[e]=f}_down(e){const{data:o,compare:c}=this,f=this.length>>1,_=o[e];for(;e=0)break;o[e]=w,e=v}o[e]=_}}function Sf(r,e){return re?1:0}function av(r,e=1,o=!1){let c=1/0,f=1/0,_=-1/0,v=-1/0;const w=r[0];for(let W=0;W_)&&(_=J.x),(!W||J.y>v)&&(v=J.y)}const E=Math.min(_-c,v-f);let M=E/2;const L=new om([],Jg);if(0===E)return new ye(c,f);for(let W=c;W<_;W+=E)for(let J=f;JN.d||!N.d)&&(N=W,o&&console.log("found best %d after %d probes",Math.round(1e4*W.d)/1e4,j)),W.max-N.d<=e||(M=W.h/2,L.push(new pd(W.p.x-M,W.p.y-M,M,r)),L.push(new pd(W.p.x+M,W.p.y-M,M,r)),L.push(new pd(W.p.x-M,W.p.y+M,M,r)),L.push(new pd(W.p.x+M,W.p.y+M,M,r)),j+=4)}return o&&(console.log(`num probes: ${j}`),console.log(`best distance: ${N.d}`)),N.p}function Jg(r,e){return e.max-r.max}class pd{constructor(e,o,c,f){this.p=new ye(e,o),this.h=c,this.d=function(_,v){let w=!1,E=1/0;for(let M=0;M_.y!=se.y>_.y&&_.x<(se.x-J.x)*(_.y-J.y)/(se.y-J.y)+J.x&&(w=!w),E=Math.min(E,wy(_,J,se))}}return(w?1:-1)*Math.sqrt(E)}(this.p,f),this.max=this.d+this.h*Math.SQRT2}}const pu=7,Kg=Number.POSITIVE_INFINITY,lv=Math.sqrt(2);function fh(r,[e,o]){let c=0,f=0;if(o===Kg){e<0&&(e=0);const _=e/lv;switch(r){case"top-right":case"top-left":f=_-pu;break;case"bottom-right":case"bottom-left":f=-_+pu;break;case"bottom":f=-e+pu;break;case"top":f=e-pu}switch(r){case"top-right":case"bottom-right":c=-_;break;case"top-left":case"bottom-left":c=_;break;case"left":c=e;break;case"right":c=-e}}else{switch(e=Math.abs(e),o=Math.abs(o),r){case"top-right":case"top-left":case"top":f=o-pu;break;case"bottom-right":case"bottom-left":case"bottom":f=-o+pu}switch(r){case"top-right":case"bottom-right":case"right":c=-e;break;case"top-left":case"bottom-left":case"left":c=e}}return[c,f]}function cv(r,e,o,c,f,_,v,w,E,M){r.createArrays(),r.tilePixelRatio=vi/(512*r.overscaling),r.compareText={},r.iconsNeedLinear=!1;const L=r.layers[0].layout,N=r.layers[0]._unevaluatedLayout._values,j={};if("composite"===r.textSizeData.kind){const{minZoom:se,maxZoom:Le}=r.textSizeData;j.compositeTextSizes=[N["text-size"].possiblyEvaluate(new R(se),w),N["text-size"].possiblyEvaluate(new R(Le),w)]}if("composite"===r.iconSizeData.kind){const{minZoom:se,maxZoom:Le}=r.iconSizeData;j.compositeIconSizes=[N["icon-size"].possiblyEvaluate(new R(se),w),N["icon-size"].possiblyEvaluate(new R(Le),w)]}j.layoutTextSize=N["text-size"].possiblyEvaluate(new R(E+1),w),j.layoutIconSize=N["icon-size"].possiblyEvaluate(new R(E+1),w),j.textMaxSize=N["text-size"].possiblyEvaluate(new R(18),w);const W="map"===L.get("text-rotation-alignment")&&"point"!==L.get("symbol-placement"),J=L.get("text-size");for(const se of r.features){const Le=L.get("text-font").evaluate(se,{},w).join(","),rt=J.evaluate(se,{},w),bt=j.layoutTextSize.evaluate(se,{},w),at=(j.layoutIconSize.evaluate(se,{},w),{horizontal:{},vertical:void 0}),xt=se.text;let At,Mt=[0,0];if(xt){const Dn=xt.toString(),Yn=L.get("text-letter-spacing").evaluate(se,{},w)*cs,mn=L.get("text-line-height").evaluate(se,{},w)*cs,Pn=Yc(Dn)?Yn:0,Rn=L.get("text-anchor").evaluate(se,{},w),zn=L.get("text-variable-anchor");if(!zn){const ci=L.get("text-radial-offset").evaluate(se,{},w);Mt=ci?fh(Rn,[ci*cs,Kg]):L.get("text-offset").evaluate(se,{},w).map(Ji=>Ji*cs)}let Qn=W?"center":L.get("text-justify").evaluate(se,{},w);const En="point"===L.get("symbol-placement"),ai=En?L.get("text-max-width").evaluate(se,{},w)*cs:1/0,gi=ci=>{r.allowVerticalPlacement&&nc(Dn)&&(at.vertical=hu(xt,e,o,f,Le,ai,mn,Rn,ci,Pn,Mt,La.vertical,!0,bt,rt))};if(!W&&zn){const ci="auto"===Qn?zn.map(ri=>kc(ri)):[Qn];let Ji=!1;for(let ri=0;ri=0||!nc(Dn)){const ci=hu(xt,e,o,f,Le,ai,mn,Rn,Qn,Pn,Mt,La.horizontal,!1,bt,rt);ci&&(at.horizontal[Qn]=ci)}gi(En?"left":Qn)}}let un=!1;if(se.icon&&se.icon.name){const Dn=c[se.icon.name];Dn&&(At=im(f[se.icon.name],L.get("icon-offset").evaluate(se,{},w),L.get("icon-anchor").evaluate(se,{},w)),un=Dn.sdf,void 0===r.sdfIcons?r.sdfIcons=Dn.sdf:r.sdfIcons!==Dn.sdf&&It("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(Dn.pixelRatio!==r.pixelRatio||0!==L.get("icon-rotate").constantOr(1))&&(r.iconsNeedLinear=!0))}const rn=Qg(at.horizontal)||at.vertical;r.iconsInText||(r.iconsInText=!!rn&&rn.iconsInText),(rn||At)&&ph(r,se,at,At,c,j,bt,0,Mt,un,v,w,M)}_&&r.generateCollisionDebugBuffers(E,r.collisionBoxArray)}function kc(r){switch(r){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function ph(r,e,o,c,f,_,v,w,E,M,L,N,j){let W=_.textMaxSize.evaluate(e,{},N);void 0===W&&(W=v);const J=r.layers[0].layout,se=J.get("icon-offset").evaluate(e,{},N),Le=Qg(o.horizontal)||o.vertical,rt="globe"===j.name,bt=cs,at=v/bt,xt=r.tilePixelRatio*W/bt,At=(Rn=r.overscaling,r.zoom>18&&Rn>2&&(Rn>>=1),Math.max(vi/(512*Rn),1)*J.get("symbol-spacing")),Mt=J.get("text-padding")*r.tilePixelRatio,un=J.get("icon-padding")*r.tilePixelRatio,rn=X(J.get("text-max-angle")),Dn="map"===J.get("text-rotation-alignment")&&"point"!==J.get("symbol-placement"),Yn="map"===J.get("icon-rotation-alignment")&&"point"!==J.get("symbol-placement"),mn=J.get("symbol-placement"),Pn=At/2;var Rn;const zn=J.get("icon-text-fit");let Qn;c&&"none"!==zn&&(r.allowVerticalPlacement&&o.vertical&&(Qn=ld(c,o.vertical,zn,J.get("icon-text-fit-padding"),se,at)),Le&&(c=ld(c,Le,zn,J.get("icon-text-fit-padding"),se,at)));const En=(ai,gi,ci)=>{if(gi.x<0||gi.x>=vi||gi.y<0||gi.y>=vi)return;let Ji=null;if(rt){const{x:ri,y:Ai,z:Zi}=j.projectTilePoint(gi.x,gi.y,ci);Ji={anchor:new el(ri,Ai,Zi,0,void 0),up:j.upVector(ci,gi.x,gi.y)}}!function(ri,Ai,Zi,wr,Ki,Ni,io,er,tr,Hr,Xr,Wr,Cr,po,mo,qr,Ur,ko,Fo,ar,Tr,wo,Qr,Ks,Co){const Wo=ri.addToLineVertexArray(Ai,wr);let Vo,ks,qo,xl,nl,xd,bd,E_=0,Mm=0,Am=0,Sm=0,Cu=-1,Pm=-1;const jl={};let Nf=wc("");const Eu=Zi?Zi.anchor:Ai;let wd=0,Bf=0;if(void 0===tr._unevaluatedLayout.getValue("text-radial-offset")?[wd,Bf]=tr.layout.get("text-offset").evaluate(Tr,{},Co).map(ms=>ms*cs):(wd=tr.layout.get("text-radial-offset").evaluate(Tr,{},Co)*cs,Bf=Kg),ri.allowVerticalPlacement&&Ki.vertical){const ms=Ki.vertical;if(mo)xd=gh(ms),er&&(bd=gh(er));else{const ba=tr.layout.get("text-rotate").evaluate(Tr,{},Co)+90;qo=Pf(Hr,Eu,Ai,Xr,Wr,Cr,ms,po,ba,qr),er&&(xl=Pf(Hr,Eu,Ai,Xr,Wr,Cr,er,ko,ba))}}if(Ni){const ms=tr.layout.get("icon-rotate").evaluate(Tr,{},Co),ba="none"!==tr.layout.get("icon-text-fit"),Dh=sv(Ni,ms,Qr,ba),Rm=er?sv(er,ms,Qr,ba):void 0;ks=Pf(Hr,Eu,Ai,Xr,Wr,Cr,Ni,ko,ms),E_=4*Dh.length;const T_=ri.iconSizeData;let Tu=null;"source"===T_.kind?(Tu=[kl*tr.layout.get("icon-size").evaluate(Tr,{},Co)],Tu[0]>hc&&It(`${ri.layerIds[0]}: Value for "icon-size" is >= ${mh}. Reduce your "icon-size".`)):"composite"===T_.kind&&(Tu=[kl*wo.compositeIconSizes[0].evaluate(Tr,{},Co),kl*wo.compositeIconSizes[1].evaluate(Tr,{},Co)],(Tu[0]>hc||Tu[1]>hc)&&It(`${ri.layerIds[0]}: Value for "icon-size" is >= ${mh}. Reduce your "icon-size".`)),ri.addSymbols(ri.icon,Dh,Tu,ar,Fo,Tr,!1,Zi,Ai,Wo.lineStartIndex,Wo.lineLength,-1,Ks,Co),Cu=ri.icon.placedSymbolArray.length-1,Rm&&(Mm=4*Rm.length,ri.addSymbols(ri.icon,Rm,Tu,ar,Fo,Tr,La.vertical,Zi,Ai,Wo.lineStartIndex,Wo.lineLength,-1,Ks,Co),Pm=ri.icon.placedSymbolArray.length-1)}for(const ms in Ki.horizontal){const ba=Ki.horizontal[ms];Vo||(Nf=wc(ba.text),mo?nl=gh(ba):Vo=Pf(Hr,Eu,Ai,Xr,Wr,Cr,ba,po,tr.layout.get("text-rotate").evaluate(Tr,{},Co),qr));const Dh=1===ba.positionedLines.length;if(Am+=Xg(ri,Zi,Ai,ba,io,tr,mo,Tr,qr,Wo,Ki.vertical?La.horizontal:La.horizontalOnly,Dh?Object.keys(Ki.horizontal):[ms],jl,Cu,wo,Ks,Co),Dh)break}Ki.vertical&&(Sm+=Xg(ri,Zi,Ai,Ki.vertical,io,tr,mo,Tr,qr,Wo,La.vertical,["vertical"],jl,Pm,wo,Ks,Co));let fc=-1;const Om=(ms,ba)=>ms?Math.max(ms,ba):ba;fc=Om(nl,fc),fc=Om(xd,fc),fc=Om(bd,fc);const wv=fc>-1?1:0;ri.glyphOffsetArray.length>=zc.MAX_GLYPHS&&It("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==Tr.sortKey&&ri.addToSortKeyRanges(ri.symbolInstances.length,Tr.sortKey),ri.symbolInstances.emplaceBack(Eu.x,Eu.y,Eu.z,Ai.x,Ai.y,jl.right>=0?jl.right:-1,jl.center>=0?jl.center:-1,jl.left>=0?jl.left:-1,jl.vertical>=0?jl.vertical:-1,Cu,Pm,Nf,void 0!==Vo?Vo:ri.collisionBoxArray.length,void 0!==Vo?Vo+1:ri.collisionBoxArray.length,void 0!==qo?qo:ri.collisionBoxArray.length,void 0!==qo?qo+1:ri.collisionBoxArray.length,void 0!==ks?ks:ri.collisionBoxArray.length,void 0!==ks?ks+1:ri.collisionBoxArray.length,xl||ri.collisionBoxArray.length,xl?xl+1:ri.collisionBoxArray.length,Xr,Am,Sm,E_,Mm,wv,0,wd,Bf,fc)}(r,gi,Ji,ai,o,c,f,Qn,r.layers[0],r.collisionBoxArray,e.index,e.sourceLayerIndex,r.index,Mt,Dn,E,0,un,Yn,se,e,_,M,L,N)};if("line"===mn)for(const ai of Hg(e.geometry,0,0,vi,vi)){const gi=rm(ai,At,rn,o.vertical||Le,c,bt,xt,r.overscaling,vi);for(const ci of gi)Le&&uv(r,Le.text,Pn,ci)||En(ai,ci,N)}else if("line-center"===mn){for(const ai of e.geometry)if(ai.length>1){const gi=ex(ai,rn,o.vertical||Le,c,bt,xt);gi&&En(ai,gi,N)}}else if("Polygon"===e.type)for(const ai of qd(e.geometry,0)){const gi=av(ai,16);En(ai[0],new el(gi.x,gi.y,0,0,void 0),N)}else if("LineString"===e.type)for(const ai of e.geometry)En(ai,new el(ai[0].x,ai[0].y,0,0,void 0),N);else if("Point"===e.type)for(const ai of e.geometry)for(const gi of ai)En([gi],new el(gi.x,gi.y,0,0,void 0),N)}const mh=255,hc=mh*kl;function Xg(r,e,o,c,f,_,v,w,E,M,L,N,j,W,J,se,Le){const rt=function(xt,At,Mt,un,rn,Dn,Yn,mn){const Pn=[];if(0===At.positionedLines.length)return Pn;const Rn=un.layout.get("text-rotate").evaluate(Dn,{})*Math.PI/180,zn=function(ci){const Ji=ci[0],ri=ci[1],Ai=Ji*ri;return Ai>0?[Ji,-ri]:Ai<0?[-Ji,ri]:0===Ji?[ri,Ji]:[ri,-Ji]}(Mt);let Qn=Math.abs(At.top-At.bottom);for(const ci of At.positionedLines)Qn-=ci.lineOffset;const En=At.positionedLines.length,ai=Qn/En;let gi=At.top-Mt[1];for(let ci=0;cihc&&It(`${r.layerIds[0]}: Value for "text-size" is >= ${mh}. Reduce your "text-size".`)):"composite"===bt.kind&&(at=[kl*J.compositeTextSizes[0].evaluate(w,{},Le),kl*J.compositeTextSizes[1].evaluate(w,{},Le)],(at[0]>hc||at[1]>hc)&&It(`${r.layerIds[0]}: Value for "text-size" is >= ${mh}. Reduce your "text-size".`)),r.addSymbols(r.text,rt,at,E,v,w,L,e,o,M.lineStartIndex,M.lineLength,W,se,Le);for(const xt of N)j[xt]=r.text.placedSymbolArray.length-1;return 4*rt.length}function Qg(r){for(const e in r)return r[e];return null}function Pf(r,e,o,c,f,_,v,w,E,M){let L=v.top,N=v.bottom,j=v.left,W=v.right;const J=v.collisionPadding;if(J&&(j-=J[0],L-=J[1],W+=J[2],N+=J[3]),E){const se=new ye(j,L),Le=new ye(W,L),rt=new ye(j,N),bt=new ye(W,N),at=X(E);let xt=new ye(0,0);M&&(xt=new ye(M[0],M[1])),se._rotateAround(at,xt),Le._rotateAround(at,xt),rt._rotateAround(at,xt),bt._rotateAround(at,xt),j=Math.min(se.x,Le.x,rt.x,bt.x),W=Math.max(se.x,Le.x,rt.x,bt.x),L=Math.min(se.y,Le.y,rt.y,bt.y),N=Math.max(se.y,Le.y,rt.y,bt.y)}return r.emplaceBack(e.x,e.y,e.z,o.x,o.y,j,L,W,N,w,c,f,_),r.length-1}function gh(r){r.collisionPadding&&(r.top-=r.collisionPadding[1],r.bottom+=r.collisionPadding[3]);const e=r.bottom-r.top;return e>0?Math.max(10,e):null}function uv(r,e,o,c){const f=r.compareText;if(e in f){const _=f[e];for(let v=_.length-1;v>=0;v--)if(c.dist(_[v])at&&(xt(Mt,zn,rn,Dn,Pn,Rn),xt(zn,un,Pn,Rn,Yn,mn))}xt(N,j,c,_,f,_),xt(j,W,f,_,f,v),xt(W,J,f,v,c,v),xt(J,N,c,v,c,_),se-=at,Le-=at,rt+=at,bt+=at;const At=1/Math.max(rt-se,bt-Le);return{scale:At,x:se*At,y:Le*At,x2:rt*At,y2:bt*At,projection:e}}const hv=Ol(new Float32Array(16));class Fc{constructor(e){this.spec=e,this.name=e.name,this.wrap=!1,this.requiresDraping=!1,this.supportsWorldCopies=!1,this.supportsTerrain=!1,this.supportsFog=!1,this.supportsFreeCamera=!1,this.zAxisUnit="meters",this.isReprojectedInTileSpace=!0,this.unsupportedLayers=["custom"],this.center=[0,0],this.range=[3.5,7]}project(e,o){return{x:0,y:0,z:0}}unproject(e,o){return new pr(0,0)}projectTilePoint(e,o,c){return{x:e,y:o,z:0}}locationPoint(e,o,c=!0){return e._coordinatePoint(e.locationCoordinate(o),c)}pixelsPerMeter(e,o){return Xa(1,e)*o}pixelSpaceConversion(e,o,c){return 1}farthestPixelDistance(e){return dv(e,e.pixelsPerMeter)}pointCoordinate(e,o,c,f){const _=e.horizonLineFromTop(!1),v=new ye(o,Math.max(_,c));return e.rayIntersectionCoordinate(e.pointRayIntersection(v,f))}pointCoordinate3D(e,o,c){const f=new ye(o,c);if(e.elevation)return e.elevation.pointCoordinate(f);{const _=this.pointCoordinate(e,f.x,f.y,0);return[_.x,_.y,_.z]}}isPointAboveHorizon(e,o){if(e.elevation)return!this.pointCoordinate3D(e,o.x,o.y);const c=e.horizonLineFromTop();return o.y0?o<-gd+c&&(o=-gd+c):o>gd-c&&(o=gd-c);const v=_/Math.pow(Of(o),f);let w=v*Math.sin(f*e),E=_-v*Math.cos(f*e);return w=.5*(w/Math.PI+.5),E=.5*(E/Math.PI+.5),{x:w,y:this.southernCenter?E:1-E,z:0}}unproject(e,o){e=(2*e-.5)*Math.PI,this.southernCenter&&(o=1-o),o=(2*(1-o)-.5)*Math.PI;const{n:c,f}=this,_=f-o,v=Math.sign(_),w=Math.sign(c)*Math.sqrt(e*e+_*_);let E=Math.atan2(e,Math.abs(_))*v;_*c<0&&(E-=Math.PI*Math.sign(e)*v);const M=Ke(ve(E/c)+this.center[0],-180,180),L=Ke(ve(2*Math.atan(Math.pow(f/w,1/c))-gd),-Ho,Ho);return new pr(M,this.southernCenter?-L:L)}}class sm extends Fc{constructor(e){super(e),this.wrap=!0,this.supportsWorldCopies=!0,this.supportsTerrain=!0,this.supportsFog=!0,this.supportsFreeCamera=!0,this.isReprojectedInTileSpace=!1,this.unsupportedLayers=[],this.range=null}project(e,o){return{x:Os(e),y:Pa(o),z:0}}unproject(e,o){const c=Rs(e),f=ps(o);return new pr(c,f)}}const am=X(Ho);class mv extends Fc{project(e,o){const c=(o=X(o))*o,f=c*c;return{x:.5*((e=X(e))*(.8707-.131979*c+f*(f*(.003971*c-.001529*f)-.013791))/Math.PI+.5),y:1-.5*(o*(1.007226+c*(.015085+f*(.028874*c-.044475-.005916*f)))/Math.PI+1),z:0}}unproject(e,o){e=(2*e-.5)*Math.PI;let c=o=(2*(1-o)-1)*Math.PI,f=25,_=0,v=c*c;do{v=c*c;const M=v*v;_=(c*(1.007226+v*(.015085+M*(.028874*v-.044475-.005916*M)))-o)/(1.007226+v*(.045255+M*(.259866*v-.311325-.005916*11*M))),c=Ke(c-_,-am,am)}while(Math.abs(_)>1e-6&&--f>0);v=c*c;const w=Ke(ve(e/(.8707+v*(v*(v*v*v*(.003971-.001529*v)-.013791)-.131979))),-180,180),E=ve(c);return new pr(w,E)}}const t_=X(Ho);class n_ extends Fc{project(e,o){o=X(o),e=X(e);const c=Math.cos(o),f=2/Math.PI,_=Math.acos(c*Math.cos(e/2)),v=Math.sin(_)/_,w=.5*(e*f+2*c*Math.sin(e/2)/v)||0,E=.5*(o+Math.sin(o)/v)||0;return{x:.5*(w/Math.PI+.5),y:1-.5*(E/Math.PI+1),z:0}}unproject(e,o){let c=e=(2*e-.5)*Math.PI,f=o=(2*(1-o)-1)*Math.PI,_=25;const v=1e-6;let w=0,E=0;do{const M=Math.cos(f),L=Math.sin(f),N=2*L*M,j=L*L,W=M*M,J=Math.cos(c/2),se=Math.sin(c/2),Le=2*J*se,rt=se*se,bt=1-W*J*J,at=bt?1/bt:0,xt=bt?Math.acos(M*J)*Math.sqrt(1/bt):0,At=.5*(2*xt*M*se+2*c/Math.PI)-e,Mt=.5*(xt*L+f)-o,un=.5*at*(W*rt+xt*M*J*j)+1/Math.PI,rn=at*(Le*N/4-xt*L*se),Dn=.125*at*(N*se-xt*L*W*Le),Yn=.5*at*(j*J+xt*rt*M)+.5,mn=rn*Dn-Yn*un;w=(Mt*rn-At*Yn)/mn,E=(At*Dn-Mt*un)/mn,c=Ke(c-w,-Math.PI,Math.PI),f=Ke(f-E,-t_,t_)}while((Math.abs(w)>v||Math.abs(E)>v)&&--_>0);return new pr(ve(c),ve(f))}}class Rf extends Fc{constructor(e){super(e),this.center=e.center||[0,0],this.parallels=e.parallels||[0,0],this.cosPhi=Math.max(.01,Math.cos(X(this.parallels[0]))),this.scale=1/(2*Math.max(Math.PI*this.cosPhi,1/this.cosPhi)),this.wrap=!0,this.supportsWorldCopies=!0}project(e,o){const{scale:c,cosPhi:f}=this;return{x:X(e)*f*c+.5,y:-Math.sin(X(o))/f*c+.5,z:0}}unproject(e,o){const{scale:c,cosPhi:f}=this,_=-(o-.5)/c,v=Ke(ve((e-.5)/c)/f,-180,180),w=Math.asin(Ke(_*f,-1,1)),E=Ke(ve(w),-Ho,Ho);return new pr(v,E)}}class nx extends sm{constructor(e){super(e),this.requiresDraping=!0,this.supportsWorldCopies=!1,this.supportsFog=!0,this.zAxisUnit="pixels",this.unsupportedLayers=["debug"],this.range=[3,5]}projectTilePoint(e,o,c){const f=Bd(e,o,c);return bo(f,f,ru(as(c))),{x:f[0],y:f[1],z:f[2]}}locationPoint(e,o){const c=qu(o.lat,o.lng),f=Ps([],c),_=e.elevation?e.elevation.getAtPointOrZero(e.locationCoordinate(o),e._centerAltitude):e._centerAltitude;Rd(c,c,f,Xa(1,0)*vi*_);const v=Ol(new Float64Array(16));return ju(v,e.pixelMatrix,e.globeMatrix),bo(c,c,v),new ye(c[0],c[1])}pixelsPerMeter(e,o){return Xa(1,0)*o}pixelSpaceConversion(e,o,c){const f=Xa(1,e)*o,_=Pi(Xa(1,45)*o,f,c);return this.pixelsPerMeter(e,o)/_}createTileMatrix(e,o,c){const f=Gh(as(c.canonical));return ju(new Float64Array(16),e.globeMatrix,f)}createInversionMatrix(e,o){const{center:c}=e,f=ru(as(o));return fp(f,f,X(c.lng)),Ec(f,f,X(c.lat)),oc(f,f,[e._pixelsPerMercatorPixel,e._pixelsPerMercatorPixel,1]),Float32Array.from(f)}pointCoordinate(e,o,c,f){return gg(e,o,c,!0)||new Oa(0,0)}pointCoordinate3D(e,o,c){const f=this.pointCoordinate(e,o,c,0);return[f.x,f.y,f.z]}isPointAboveHorizon(e,o){return!gg(e,o.x,o.y,!1)}farthestPixelDistance(e){const o=function(f,_){const v=f.cameraToCenterDistance,w=f._centerAltitude*_,E=f._camera,M=f._camera.forward(),L=_l([],qs([],M,-v),[0,0,w]),N=f.worldSize/(2*Math.PI),j=[0,0,-N],W=f.width/f.height,J=Math.tan(f.fovAboveCenter),se=qs([],E.up(),J),Le=qs([],E.right(),J*W),rt=Ps([],_l([],_l([],M,se),Le)),bt=[];let at;if(new _p(L,rt).closestPointOnSphere(j,N,bt)){const xt=_l([],bt,j),At=Ys([],xt,L);at=Math.cos(f.fovAboveCenter)*Pd(At)}else{const xt=Ys([],L,j),At=Ys([],j,L);Ps(At,At);const Mt=Pd(xt)-N;at=Math.sqrt(Mt*(Mt+2*N));const un=Math.acos(at/(N+Mt))-Math.acos(xa(M,At));at*=Math.cos(un)}return 1.01*at}(e,this.pixelsPerMeter(e.center.lat,e.worldSize)),c=Ju(e.zoom);if(c>0){const f=dv(e,Xa(1,e.center.lat)*e.worldSize),_=e.worldSize/(2*Math.PI),v=Math.max(e.width,e.height)/e.worldSize*Math.PI;return Pi(o,f+_*(1-Math.cos(v)),Math.pow(c,10))}return o}upVector(e,o,c){return Bd(o,c,e,1)}upVectorScale(e){return{metersToTile:iu(Yu(as(e)))}}}function lm(r){const e=r.parallels,o=!!e&&Math.abs(e[0]+e[1])<.01;switch(r.name){case"mercator":return new sm(r);case"equirectangular":return new pv(r);case"naturalEarth":return new mv(r);case"equalEarth":return new fv(r);case"winkelTripel":return new n_(r);case"albers":return o?new Rf(r):new tx(r);case"lambertConformalConic":return o?new Rf(r):new e_(r);case"globe":return new nx(r)}throw new Error(`Invalid projection name: ${r.name}`)}const cm=Jd.types,gv=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function Bc(r,e,o,c,f,_,v,w,E,M,L,N,j){const W=w?Math.min(hc,Math.round(w[0])):0,J=w?Math.min(hc,Math.round(w[1])):0;r.emplaceBack(e,o,Math.round(32*c),Math.round(32*f),_,v,(W<<1)+(E?1:0),J,16*M,16*L,256*N,256*j)}function xh(r,e,o,c,f,_,v){r.emplaceBack(e,o,c,f,_,v)}function bh(r,e,o,c,f){r.emplaceBack(e,o,c,f),r.emplaceBack(e,o,c,f),r.emplaceBack(e,o,c,f),r.emplaceBack(e,o,c,f)}function _v(r){for(const e of r.sections)if(Dd(e.text))return!0;return!1}class um{constructor(e){this.layoutVertexArray=new kn,this.indexArray=new Ci,this.programConfigurations=e,this.segments=new So,this.dynamicLayoutVertexArray=new qn,this.opacityVertexArray=new Ii,this.placedSymbolArray=new go,this.globeExtVertexArray=new ti}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length}upload(e,o,c,f){this.isEmpty()||(c&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Zy.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,o),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Hy.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,gv,!0),this.globeExtVertexArray.length>0&&(this.globeExtVertexBuffer=e.createVertexBuffer(this.globeExtVertexArray,Gy.members,!0)),this.opacityVertexBuffer.itemSize=1),(c||f)&&this.programConfigurations.upload(e))}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy(),this.globeExtVertexBuffer&&this.globeExtVertexBuffer.destroy())}}hi(um,"SymbolBuffers");class dm{constructor(e,o,c){this.layoutVertexArray=new e,this.layoutAttributes=o,this.indexArray=new c,this.segments=new So,this.collisionVertexArray=new cr,this.collisionVertexArrayExt=new lr}upload(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,Wy.members,!0),this.collisionVertexBufferExt=e.createVertexBuffer(this.collisionVertexArrayExt,qy.members,!0)}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy(),this.collisionVertexBufferExt.destroy())}}hi(dm,"CollisionBuffers");class zc{constructor(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(v=>v.id),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.fullyClipped=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=Ol([]),this.placementViewportMatrix=Ol([]);const o=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ug(this.zoom,o["text-size"]),this.iconSizeData=Ug(this.zoom,o["icon-size"]);const c=this.layers[0].layout,f=c.get("symbol-sort-key"),_=c.get("symbol-z-order");this.canOverlap=c.get("text-allow-overlap")||c.get("icon-allow-overlap")||c.get("text-ignore-placement")||c.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==_&&void 0!==f.constantOr(1),this.sortFeaturesByY=("viewport-y"===_||"auto"===_&&!this.sortFeaturesByKey)&&this.canOverlap,this.writingModes=c.get("text-writing-mode").map(v=>La[v]),this.stateDependentLayerIds=this.layers.filter(v=>v.isStateDependent()).map(v=>v.id),this.sourceID=e.sourceID,this.projection=e.projection}createArrays(){this.text=new um(new zu(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new um(new zu(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new os,this.lineVertexArray=new xc,this.symbolInstances=new no}calculateGlyphDependencies(e,o,c,f,_){for(let v=0;v0)&&("constant"!==E.value.kind||E.value.value.length>0),j="constant"!==L.value.kind||!!L.value.value||Object.keys(L.parameters).length>0,W=v.get("symbol-sort-key");if(this.features=[],!N&&!j)return;const J=o.iconDependencies,se=o.glyphDependencies,Le=o.availableImages,rt=new R(this.zoom);for(const{feature:bt,id:at,index:xt,sourceLayerIndex:At}of e){const Mt=_._featureFilter.needGeometry,un=ou(bt,Mt);if(!_._featureFilter.filter(rt,un,c))continue;if(Mt||(un.geometry=ac(bt,c,f)),w&&1!==bt.type&&c.z<=5){const mn=un.geometry,Pn=.98078528056,Rn=(zn,Qn)=>xa(Bd(zn.x,zn.y,c,1),Bd(Qn.x,Qn.y,c,1))=0;for(const Rn of rn.sections)if(Rn.image)J[Rn.image.name]=!0;else{const zn=nc(rn.toString()),Qn=Rn.fontStack||mn,En=se[Qn]=se[Qn]||{};this.calculateGlyphDependencies(Rn.text,En,Pn,this.allowVerticalPlacement,zn)}}}"line"===v.get("symbol-placement")&&(this.features=function(bt){const at={},xt={},At=[];let Mt=0;function un(mn){At.push(bt[mn]),Mt++}function rn(mn,Pn,Rn){const zn=xt[mn];return delete xt[mn],xt[Pn]=zn,At[zn].geometry[0].pop(),At[zn].geometry[0]=At[zn].geometry[0].concat(Rn[0]),zn}function Dn(mn,Pn,Rn){const zn=at[Pn];return delete at[Pn],at[mn]=zn,At[zn].geometry[0].shift(),At[zn].geometry[0]=Rn[0].concat(At[zn].geometry[0]),zn}function Yn(mn,Pn,Rn){const zn=Rn?Pn[0][Pn[0].length-1]:Pn[0][0];return`${mn}:${zn.x}:${zn.y}`}for(let mn=0;mnmn.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((bt,at)=>bt.sortKey-at.sortKey)}update(e,o,c,f){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,o,this.layers,c,f),this.icon.programConfigurations.updatePaintArrays(e,o,this.layers,c,f))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}getProjection(){return this.projectionInstance||(this.projectionInstance=lm(this.projection)),this.projectionInstance}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,o){const c=this.lineVertexArray.length;if(void 0!==e.segment)for(const{x:f,y:_}of o)this.lineVertexArray.emplaceBack(f,_);return{lineStartIndex:c,lineLength:this.lineVertexArray.length-c}}addSymbols(e,o,c,f,_,v,w,E,M,L,N,j,W,J){const se=e.indexArray,Le=e.layoutVertexArray,rt=e.globeExtVertexArray,bt=e.segments.prepareSegment(4*o.length,Le,se,this.canOverlap?v.sortKey:void 0),at=this.glyphOffsetArray.length,xt=bt.vertexLength,At=this.allowVerticalPlacement&&w===La.vertical?Math.PI/2:0,Mt=v.text&&v.text.sections;for(let rn=0;rn=0?o.rightJustifiedTextSymbolIndex:o.centerJustifiedTextSymbolIndex>=0?o.centerJustifiedTextSymbolIndex:o.leftJustifiedTextSymbolIndex>=0?o.leftJustifiedTextSymbolIndex:o.verticalPlacedTextSymbolIndex>=0?o.verticalPlacedTextSymbolIndex:f),v=Yp(this.textSizeData,e,_)/cs;return this.tilePixelRatio*v}getSymbolInstanceIconSize(e,o,c){const f=this.icon.placedSymbolArray.get(c),_=Yp(this.iconSizeData,e,f);return this.tilePixelRatio*_}_commitDebugCollisionVertexUpdate(e,o,c){e.emplaceBack(o,-c,-c),e.emplaceBack(o,c,-c),e.emplaceBack(o,c,c),e.emplaceBack(o,-c,c)}_updateTextDebugCollisionBoxes(e,o,c,f,_,v){for(let w=f;w<_;w++){const E=c.get(w),M=this.getSymbolInstanceTextSize(e,v,o,w);this._commitDebugCollisionVertexUpdate(this.textCollisionBox.collisionVertexArrayExt,M,E.padding)}}_updateIconDebugCollisionBoxes(e,o,c,f,_,v){for(let w=f;w<_;w++){const E=c.get(w),M=this.getSymbolInstanceIconSize(e,o,v);this._commitDebugCollisionVertexUpdate(this.iconCollisionBox.collisionVertexArrayExt,M,E.padding)}}updateCollisionDebugBuffers(e,o){if(!this.hasDebugData())return;this.hasTextCollisionBoxData()&&this.textCollisionBox.collisionVertexArrayExt.clear(),this.hasIconCollisionBoxData()&&this.iconCollisionBox.collisionVertexArrayExt.clear();const c=rh(this.iconSizeData,e),f=rh(this.textSizeData,e);for(let _=0;_0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,o){const c=e.placedSymbolArray.get(o),f=c.vertexStartIndex+4*c.numGlyphs;for(let _=c.vertexStartIndex;_f[w]-f[E]||_[E]-_[w]),v}addToSortKeyRanges(e,o){const c=this.sortKeyRanges[this.sortKeyRanges.length-1];c&&c.sortKey===o?c.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:o,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(const o of this.symbolInstanceIndexes){const c=this.symbolInstances.get(o);this.featureSortOrder.push(c.featureIndex);const{rightJustifiedTextSymbolIndex:f,centerJustifiedTextSymbolIndex:_,leftJustifiedTextSymbolIndex:v,verticalPlacedTextSymbolIndex:w,placedIconSymbolIndex:E,verticalPlacedIconSymbolIndex:M}=c;f>=0&&this.addIndicesForPlacedSymbol(this.text,f),_>=0&&_!==f&&this.addIndicesForPlacedSymbol(this.text,_),v>=0&&v!==_&&v!==f&&this.addIndicesForPlacedSymbol(this.text,v),w>=0&&this.addIndicesForPlacedSymbol(this.text,w),E>=0&&this.addIndicesForPlacedSymbol(this.icon,E),M>=0&&this.addIndicesForPlacedSymbol(this.icon,M)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}hi(zc,"SymbolBucket",{omit:["layers","collisionBoxArray","features","compareText"]}),zc.MAX_GLYPHS=65535,zc.addDynamicAttributes=bh;const yv=new gt({"symbol-placement":new ne(vt.layout_symbol["symbol-placement"]),"symbol-spacing":new ne(vt.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new ne(vt.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new He(vt.layout_symbol["symbol-sort-key"]),"symbol-z-order":new ne(vt.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new ne(vt.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new ne(vt.layout_symbol["icon-ignore-placement"]),"icon-optional":new ne(vt.layout_symbol["icon-optional"]),"icon-rotation-alignment":new ne(vt.layout_symbol["icon-rotation-alignment"]),"icon-size":new He(vt.layout_symbol["icon-size"]),"icon-text-fit":new ne(vt.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new ne(vt.layout_symbol["icon-text-fit-padding"]),"icon-image":new He(vt.layout_symbol["icon-image"]),"icon-rotate":new He(vt.layout_symbol["icon-rotate"]),"icon-padding":new ne(vt.layout_symbol["icon-padding"]),"icon-keep-upright":new ne(vt.layout_symbol["icon-keep-upright"]),"icon-offset":new He(vt.layout_symbol["icon-offset"]),"icon-anchor":new He(vt.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new ne(vt.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new ne(vt.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new ne(vt.layout_symbol["text-rotation-alignment"]),"text-field":new He(vt.layout_symbol["text-field"]),"text-font":new He(vt.layout_symbol["text-font"]),"text-size":new He(vt.layout_symbol["text-size"]),"text-max-width":new He(vt.layout_symbol["text-max-width"]),"text-line-height":new He(vt.layout_symbol["text-line-height"]),"text-letter-spacing":new He(vt.layout_symbol["text-letter-spacing"]),"text-justify":new He(vt.layout_symbol["text-justify"]),"text-radial-offset":new He(vt.layout_symbol["text-radial-offset"]),"text-variable-anchor":new ne(vt.layout_symbol["text-variable-anchor"]),"text-anchor":new He(vt.layout_symbol["text-anchor"]),"text-max-angle":new ne(vt.layout_symbol["text-max-angle"]),"text-writing-mode":new ne(vt.layout_symbol["text-writing-mode"]),"text-rotate":new He(vt.layout_symbol["text-rotate"]),"text-padding":new ne(vt.layout_symbol["text-padding"]),"text-keep-upright":new ne(vt.layout_symbol["text-keep-upright"]),"text-transform":new He(vt.layout_symbol["text-transform"]),"text-offset":new He(vt.layout_symbol["text-offset"]),"text-allow-overlap":new ne(vt.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new ne(vt.layout_symbol["text-ignore-placement"]),"text-optional":new ne(vt.layout_symbol["text-optional"])});var hm={paint:new gt({"icon-opacity":new He(vt.paint_symbol["icon-opacity"]),"icon-color":new He(vt.paint_symbol["icon-color"]),"icon-halo-color":new He(vt.paint_symbol["icon-halo-color"]),"icon-halo-width":new He(vt.paint_symbol["icon-halo-width"]),"icon-halo-blur":new He(vt.paint_symbol["icon-halo-blur"]),"icon-translate":new ne(vt.paint_symbol["icon-translate"]),"icon-translate-anchor":new ne(vt.paint_symbol["icon-translate-anchor"]),"text-opacity":new He(vt.paint_symbol["text-opacity"]),"text-color":new He(vt.paint_symbol["text-color"],{runtimeType:qe,getOverride:r=>r.textColor,hasOverride:r=>!!r.textColor}),"text-halo-color":new He(vt.paint_symbol["text-halo-color"]),"text-halo-width":new He(vt.paint_symbol["text-halo-width"]),"text-halo-blur":new He(vt.paint_symbol["text-halo-blur"]),"text-translate":new ne(vt.paint_symbol["text-translate"]),"text-translate-anchor":new ne(vt.paint_symbol["text-translate-anchor"])}),layout:yv};class fm{constructor(e){this.type=e.property.overrides?e.property.overrides.runtimeType:or,this.defaultValue=e}evaluate(e){if(e.formattedSection){const o=this.defaultValue.property.overrides;if(o&&o.hasOverride(e.formattedSection))return o.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}hi(fm,"FormatSectionOverride",{omit:["defaultValue"]});class wh extends lo{constructor(e){super(e,hm)}recalculate(e,o){super.recalculate(e,o),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment"));const c=this.layout.get("text-writing-mode");if(c){const f=[];for(const _ of c)f.indexOf(_)<0&&f.push(_);this.layout._values["text-writing-mode"]=f}else this.layout._values["text-writing-mode"]="point"===this.layout.get("symbol-placement")?["horizontal"]:["horizontal","vertical"];this._setPaintOverrides()}getValueAndResolveTokens(e,o,c,f){const _=this.layout.get(e).evaluate(o,{},c,f),v=this._unevaluatedLayout._values[e];return v.isDataDriven()||ao(v.value)||!_?_:(w=o.properties,_.replace(/{([^{}]+)}/g,(M,L)=>L in w?String(w[L]):""));var w}createBucket(e){return new zc(e)}queryRadius(){return 0}queryIntersectsFeature(){return!1}_setPaintOverrides(){for(const e of hm.paint.overridableProperties){if(!wh.hasPaintOverride(this.layout,e))continue;const o=this.paint.get(e),c=new fm(o),f=new Bo(c,o.property.specification);let _=null;_="constant"===o.value.kind||"source"===o.value.kind?new Ts("source",f):new Zo("composite",f,o.value.zoomStops,o.value._interpolationType),this.paint._values[e]=new $e(o.property,_,o.parameters)}}_handleOverridablePaintPropertyUpdate(e,o,c){return!(!this.layout||o.isDataDriven()||c.isDataDriven())&&wh.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,o){const c=e.get("text-field"),f=hm.paint.properties[o];let _=!1;const v=w=>{for(const E of w)if(f.overrides&&f.overrides.hasOverride(E))return void(_=!0)};if("constant"===c.value.kind&&c.value.value instanceof Ze)v(c.value.value.sections);else if("source"===c.value.kind){const w=M=>{_||(M instanceof ji&&Qi(M.value)===V?v(M.value.sections):M instanceof $o?v(M.sections):M.eachChild(w))},E=c.value;E._styleExpression&&w(E._styleExpression.expression)}return _}getProgramConfiguration(e){return new eu(this,e)}}var i_={paint:new gt({"background-color":new ne(vt.paint_background["background-color"]),"background-pattern":new ne(vt.paint_background["background-pattern"]),"background-opacity":new ne(vt.paint_background["background-opacity"])})},r_={paint:new gt({"raster-opacity":new ne(vt.paint_raster["raster-opacity"]),"raster-hue-rotate":new ne(vt.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new ne(vt.paint_raster["raster-brightness-min"]),"raster-brightness-max":new ne(vt.paint_raster["raster-brightness-max"]),"raster-saturation":new ne(vt.paint_raster["raster-saturation"]),"raster-contrast":new ne(vt.paint_raster["raster-contrast"]),"raster-resampling":new ne(vt.paint_raster["raster-resampling"]),"raster-fade-duration":new ne(vt.paint_raster["raster-fade-duration"])})};class ix extends lo{constructor(e){super(e,{}),this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}isLayerDraped(){return void 0!==this.implementation.renderToTile}shouldRedrape(){return!!this.implementation.shouldRerenderTiles&&this.implementation.shouldRerenderTiles()}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){}onAdd(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)}onRemove(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)}}var pm={paint:new gt({"sky-type":new ne(vt.paint_sky["sky-type"]),"sky-atmosphere-sun":new ne(vt.paint_sky["sky-atmosphere-sun"]),"sky-atmosphere-sun-intensity":new ne(vt.paint_sky["sky-atmosphere-sun-intensity"]),"sky-gradient-center":new ne(vt.paint_sky["sky-gradient-center"]),"sky-gradient-radius":new ne(vt.paint_sky["sky-gradient-radius"]),"sky-gradient":new ht(vt.paint_sky["sky-gradient"]),"sky-atmosphere-halo-color":new ne(vt.paint_sky["sky-atmosphere-halo-color"]),"sky-atmosphere-color":new ne(vt.paint_sky["sky-atmosphere-color"]),"sky-opacity":new ne(vt.paint_sky["sky-opacity"])})};function Nl(r,e,o){const c=[0,0,1],f=dg([]);return fg(f,f,o?-X(r)+Math.PI:X(r)),hg(f,f,-X(e)),ug(c,c,f),Ps(c,c)}const o_={circle:class extends lo{constructor(r){super(r,Ip)}createBucket(r){return new Kh(r)}queryRadius(r){const e=r;return jd("circle-radius",this,e)+jd("circle-stroke-width",this,e)+Vd(this.paint.get("circle-translate"))}queryIntersectsFeature(r,e,o,c,f,_,v,w){const E=Dg(this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),_.angle,r.pixelToTileUnitsFactor),M=this.paint.get("circle-radius").evaluate(e,o)+this.paint.get("circle-stroke-width").evaluate(e,o);return Ty(r,c,_,v,w,"map"===this.paint.get("circle-pitch-alignment"),"map"===this.paint.get("circle-pitch-scale"),E,M)}getProgramIds(){return["circle"]}getProgramConfiguration(r){return new eu(this,r)}},heatmap:class extends lo{createBucket(r){return new Dy(r)}constructor(r){super(r,Ap),this._updateColorRamp()}_handleSpecialPaintPropertyUpdate(r){"heatmap-color"===r&&this._updateColorRamp()}_updateColorRamp(){this.colorRamp=ef({expression:this._transitionablePaint._values["heatmap-color"].value.expression,evaluationKey:"heatmapDensity",image:this.colorRamp}),this.colorRampTexture=null}resize(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)}queryRadius(r){return jd("heatmap-radius",this,r)}queryIntersectsFeature(r,e,o,c,f,_,v,w){const E=this.paint.get("heatmap-radius").evaluate(e,o);return Ty(r,c,_,v,w,!0,!0,new ye(0,0),E)}hasOffscreenPass(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility}getProgramIds(){return["heatmap","heatmapTexture"]}getProgramConfiguration(r){return new eu(this,r)}},hillshade:class extends lo{constructor(r){super(r,Ig)}hasOffscreenPass(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility}getProgramIds(){return["hillshade","hillshadePrepare"]}},fill:class extends lo{constructor(r){super(r,zp)}getProgramIds(){const r=this.paint.get("fill-pattern"),e=r&&r.constantOr(1),o=[e?"fillPattern":"fill"];return this.paint.get("fill-antialias")&&o.push(e&&!this.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline"),o}getProgramConfiguration(r){return new eu(this,r)}recalculate(r,e){super.recalculate(r,e);const o=this.paint._values["fill-outline-color"];"constant"===o.value.kind&&void 0===o.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])}createBucket(r){return new lu(r)}queryRadius(){return Vd(this.paint.get("fill-translate"))}queryIntersectsFeature(r,e,o,c,f,_){return!r.queryGeometry.isAboveHorizon&&lc(Cy(r.tilespaceGeometry,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),_.angle,r.pixelToTileUnitsFactor),c)}isTileClipped(){return!0}},"fill-extrusion":class extends lo{constructor(r){super(r,pf)}createBucket(r){return new td(r)}queryRadius(){return Vd(this.paint.get("fill-extrusion-translate"))}is3D(){return!0}getProgramIds(){return[this.paint.get("fill-extrusion-pattern").constantOr(1)?"fillExtrusionPattern":"fillExtrusion"]}getProgramConfiguration(r){return new eu(this,r)}queryIntersectsFeature(r,e,o,c,f,_,v,w,E){const M=Dg(this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),_.angle,r.pixelToTileUnitsFactor),L=this.paint.get("fill-extrusion-height").evaluate(e,o),N=this.paint.get("fill-extrusion-base").evaluate(e,o),j=[0,0],W=w&&_.elevation,J=_.elevation?_.elevation.exaggeration():1,se=r.tile.getBucket(this);if(W&&se instanceof td){const xt=se.centroidVertexArray,At=E+1;Atxt.polygon).flat());const Le=W?w:null,[rt,bt]=(At=c,Mt=N,un=L,rn=M,Dn=v,Yn=Le,mn=j,Pn=J,Rn=_.center.lat,"globe"===(xt=_).projection.name?function(Qn,En,ai,gi,ci,Ji,ri,Ai,Zi,wr,Ki){const Ni=[],io=[],er=Qn.projection.upVectorScale(Ki,Qn.center.lat,Qn.worldSize).metersToTile,tr=[0,0,0,1],Hr=[0,0,0,1],Xr=(Cr,po,mo,qr)=>{Cr[0]=po,Cr[1]=mo,Cr[2]=qr,Cr[3]=1},Wr=Qd();ai>0&&(ai+=Wr),gi+=Wr;for(const Cr of En){const po=[],mo=[];for(const qr of Cr){const Ur=qr.x+ci.x,ko=qr.y+ci.y,Fo=Qn.projection.projectTilePoint(Ur,ko,Ki),ar=Qn.projection.upVector(Ki,qr.x,qr.y);let Tr=ai,wo=gi;if(ri){const Qr=mf(Ur,ko,ai,gi,ri,Ai,Zi,wr);Tr+=Qr.base,wo+=Qr.top}0!==ai?Xr(tr,Fo.x+ar[0]*er*Tr,Fo.y+ar[1]*er*Tr,Fo.z+ar[2]*er*Tr):Xr(tr,Fo.x,Fo.y,Fo.z),Xr(Hr,Fo.x+ar[0]*er*wo,Fo.y+ar[1]*er*wo,Fo.z+ar[2]*er*wo),bo(tr,tr,Ji),bo(Hr,Hr,Ji),po.push(new du(tr[0],tr[1],tr[2])),mo.push(new du(Hr[0],Hr[1],Hr[2]))}Ni.push(po),io.push(mo)}return[Ni,io]}(xt,At,Mt,un,rn,Dn,Yn,mn,Pn,Rn,r.tileID.canonical):Yn?function(Qn,En,ai,gi,ci,Ji,ri,Ai,Zi){const wr=[],Ki=[],Ni=[0,0,0,1];for(const io of Qn){const er=[],tr=[];for(const Hr of io){const Xr=Hr.x+gi.x,Wr=Hr.y+gi.y,Cr=mf(Xr,Wr,En,ai,Ji,ri,Ai,Zi);Ni[0]=Xr,Ni[1]=Wr,Ni[2]=Cr.base,Ni[3]=1,tu(Ni,Ni,ci),Ni[3]=Math.max(Ni[3],1e-5);const po=new du(Ni[0]/Ni[3],Ni[1]/Ni[3],Ni[2]/Ni[3]);Ni[0]=Xr,Ni[1]=Wr,Ni[2]=Cr.top,Ni[3]=1,tu(Ni,Ni,ci),Ni[3]=Math.max(Ni[3],1e-5);const mo=new du(Ni[0]/Ni[3],Ni[1]/Ni[3],Ni[2]/Ni[3]);er.push(po),tr.push(mo)}wr.push(er),Ki.push(tr)}return[wr,Ki]}(At,Mt,un,rn,Dn,Yn,mn,Pn,Rn):function(Qn,En,ai,gi,ci){const Ji=[],ri=[],Ai=ci[8]*En,Zi=ci[9]*En,wr=ci[10]*En,Ki=ci[11]*En,Ni=ci[8]*ai,io=ci[9]*ai,er=ci[10]*ai,tr=ci[11]*ai;for(const Hr of Qn){const Xr=[],Wr=[];for(const Cr of Hr){const po=Cr.x+gi.x,mo=Cr.y+gi.y,qr=ci[0]*po+ci[4]*mo+ci[12],Ur=ci[1]*po+ci[5]*mo+ci[13],ko=ci[2]*po+ci[6]*mo+ci[14],Fo=ci[3]*po+ci[7]*mo+ci[15],ar=qr+Ai,Tr=Ur+Zi,wo=ko+wr,Qr=Math.max(Fo+Ki,1e-5),Ks=qr+Ni,Co=Ur+io,Wo=ko+er,Vo=Math.max(Fo+tr,1e-5);Xr.push(new du(ar/Qr,Tr/Qr,wo/Qr)),Wr.push(new du(Ks/Vo,Co/Vo,Wo/Vo))}Ji.push(Xr),ri.push(Wr)}return[Ji,ri]}(At,Mt,un,rn,Dn)),at=r.queryGeometry;var xt,At,Mt,un,rn,Dn,Yn,mn,Pn,Rn;return function(xt,At,Mt){let un=1/0;lc(Mt,At)&&(un=nh(Mt,At[0]));for(let rn=0;rn=3)for(let J=0;J{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){this._channel=void 0,this._callback=()=>{}}}class a_{constructor(){this.tasks={},this.taskQueue=[],an(["process"],this),this.invoker=new s_(this.process),this.nextId=0}add(e,o){const c=this.nextId++,f=function({type:_,isSymbolTile:v,zoom:w}){return w=w||0,"message"===_?0:"maybePrepare"!==_||v?"parseTile"!==_||v?"parseTile"===_&&v?300-w:"maybePrepare"===_&&v?400-w:500:200-w:100-w}(o);if(0===f){Zt();try{e()}finally{}return{cancel:()=>{}}}return this.tasks[c]={fn:e,metadata:o,priority:f,id:c},this.taskQueue.push(c),this.invoker.trigger(),{cancel:()=>{delete this.tasks[c]}}}process(){Zt();try{if(this.taskQueue=this.taskQueue.filter(c=>!!this.tasks[c]),!this.taskQueue.length)return;const e=this.pick();if(null===e)return;const o=this.tasks[e];if(delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),!o)return;o.fn()}finally{}}pick(){let e=null,o=1/0;for(let f=0;f>=1)>1;){const M=o+f>>1,L=c+_>>1;1&e?(f=o,_=c,o=v,c=w):(o=f,c=_,f=v,_=w),v=M,w=L}const E=4*r;gu[E+0]=o,gu[E+1]=c,gu[E+2]=f,gu[E+3]=_}const Bl=new Uint16Array(2178),_u=new Uint8Array(1089),mm=new Uint16Array(1089);function gm(r){return 0===r?-.03125:32===r?.03125:0}var _m=$t([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);const xv={type:2,extent:vi,loadGeometry:()=>[[new ye(0,0),new ye(vi+1,0),new ye(vi+1,vi+1),new ye(0,vi+1),new ye(0,0)]]};class sr{constructor(e,o,c,f,_){this.tileID=e,this.uid=ke(),this.uses=0,this.tileSize=o,this.tileZoom=c,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.isRaster=_,this.expiredRequestCount=0,this.state="loading",f&&f.transform&&(this.projection=f.transform.projection)}registerFadeDuration(e){const o=e+this.timeAdded;o_.getLayer(M)).filter(Boolean);if(0!==E.length){w.layers=E,w.stateDependentLayerIds&&(w.stateDependentLayers=w.stateDependentLayerIds.map(M=>E.filter(L=>L.id===M)[0]));for(const M of E)v[M.id]=w}}return v}(e.buckets,o.style),this.hasSymbolBuckets=!1;for(const f in this.buckets){const _=this.buckets[f];if(_ instanceof zc){if(this.hasSymbolBuckets=!0,!c)break;_.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(const f in this.buckets){const _=this.buckets[f];if(_ instanceof zc&&_.hasRTLText){this.hasRTLText=!0,I.isLoading()||I.isLoaded()||"deferred"!==x()||D();break}}this.queryPadding=0;for(const f in this.buckets){const _=this.buckets[f];this.queryPadding=Math.max(this.queryPadding,o.style.getLayer(f).queryRadius(_))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage),e.lineAtlas&&(this.lineAtlas=e.lineAtlas)}else this.collisionBoxArray=new yr}unloadVectorData(){if(this.hasData()){for(const e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlas&&(this.imageAtlas=null),this.lineAtlas&&(this.lineAtlas=null),this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.lineAtlasTexture&&this.lineAtlasTexture.destroy(),this._tileBoundsBuffer&&(this._tileBoundsBuffer.destroy(),this._tileBoundsIndexBuffer.destroy(),this._tileBoundsSegments.destroy(),this._tileBoundsBuffer=null),this._tileDebugBuffer&&(this._tileDebugBuffer.destroy(),this._tileDebugSegments.destroy(),this._tileDebugBuffer=null),this._tileDebugIndexBuffer&&(this._tileDebugIndexBuffer.destroy(),this._tileDebugIndexBuffer=null),this._globeTileDebugBorderBuffer&&(this._globeTileDebugBorderBuffer.destroy(),this._globeTileDebugBorderBuffer=null),this._tileDebugTextBuffer&&(this._tileDebugTextBuffer.destroy(),this._tileDebugTextSegments.destroy(),this._tileDebugTextIndexBuffer.destroy(),this._tileDebugTextBuffer=null),this._globeTileDebugTextBuffer&&(this._globeTileDebugTextBuffer.destroy(),this._globeTileDebugTextBuffer=null),this.latestFeatureIndex=null,this.state="unloaded"}}getBucket(e){return this.buckets[e.id]}upload(e){for(const c in this.buckets){const f=this.buckets[c];f.uploadPending()&&f.upload(e)}const o=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Uc(e,this.imageAtlas.image,o.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Uc(e,this.glyphAtlasImage,o.ALPHA),this.glyphAtlasImage=null),this.lineAtlas&&!this.lineAtlas.uploaded&&(this.lineAtlasTexture=new Uc(e,this.lineAtlas.image,o.ALPHA),this.lineAtlas.uploaded=!0)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,o,c,f,_,v,w,E){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({tileResult:f,pixelPosMatrix:w,transform:v,params:_,tileTransform:this.tileTransform},e,o,c):{}}querySourceFeatures(e,o){const c=this.latestFeatureIndex;if(!c||!c.rawTileData)return;const f=c.loadVTLayers(),_=o?o.sourceLayer:"",v=f._geojsonTileLayer||f[_];if(!v)return;const w=yc(o&&o.filter),{z:E,x:M,y:L}=this.tileID.canonical,N={z:E,x:M,y:L};for(let j=0;jc)f=!1;else if(o)if(this.expirationTime=0;Le--){const rt=4*Le,bt=gu[rt+0],at=gu[rt+1],xt=gu[rt+2],At=gu[rt+3],Mt=bt+xt>>1,un=at+At>>1,rn=Mt+un-at,Dn=un+bt-Mt,Yn=33*at+bt,mn=33*At+xt,Pn=33*un+Mt,Rn=Math.hypot((Bl[2*Yn+0]+Bl[2*mn+0])/2-Bl[2*Pn+0],(Bl[2*Yn+1]+Bl[2*mn+1])/2-Bl[2*Pn+1])>=16;_u[Pn]=_u[Pn]||(Rn?1:0),Le<1022&&(_u[Pn]=_u[Pn]||_u[33*(at+Dn>>1)+(bt+rn>>1)]||_u[33*(At+Dn>>1)+(xt+rn>>1)])}const N=new Mn,j=new Ci;let W=0;function J(Le,rt){const bt=33*rt+Le;return 0===mm[bt]&&(N.emplaceBack(Bl[2*bt+0],Bl[2*bt+1],Le*vi/32,rt*vi/32),mm[bt]=++W),mm[bt]-1}function se(Le,rt,bt,at,xt,At){const Mt=Le+bt>>1,un=rt+at>>1;if(Math.abs(Le-xt)+Math.abs(rt-At)>1&&_u[33*un+Mt])se(xt,At,Le,rt,Mt,un),se(bt,at,xt,At,Mt,un);else{const rn=J(Le,rt),Dn=J(bt,at),Yn=J(xt,At);j.emplaceBack(rn,Dn,Yn)}}return se(0,0,32,32,32,0),se(32,32,0,0,0,32),{vertices:N,indices:j}}(this.tileID.canonical,o);f=v.vertices,_=v.indices}else{f=new Mn,_=new Ci;for(const{x:w,y:E}of c)f.emplaceBack(w,E,0,0);const v=rf(f.int16,void 0,4);for(let w=0;w0&&(w=zh(new Float64Array(16),o.globeMatrix)),this._makeGlobeTileDebugBorderBuffer(e,f,o,_,w,v),this._makeGlobeTileDebugTextBuffer(e,f,o,_,w,v)}_globePoint(e,o,c,f,_,v,w){let E=Bd(e,o,c);if(v){const M=1<.5?W=-1:j<-.5&&(W=1);let J=(e/vi+c.x)/M+W,se=(o/vi+c.y)/M;J=(J-L)*f._pixelsPerMercatorPixel+L,se=(se-N)*f._pixelsPerMercatorPixel+N;const Le=[J*f.worldSize,se*f.worldSize,0];bo(Le,Le,v),E=Ka(E,Le,w)}return bo(E,E,_)}_makeGlobeTileDebugBorderBuffer(e,o,c,f,_,v){const w=new Wn,E=new sa,M=new nn,L=(j,W,J,se,Le)=>{const rt=(J-j)/(Le-1),bt=(se-W)/(Le-1),at=w.length;for(let xt=0;xtN*W+J;for(let W=0;We[v])return null}else{const w=1/c[v];let E=(r[v]-o[v])*w,M=(e[v]-o[v])*w;if(E>M){const L=E;E=M,M=L}if(E>f&&(f=E),M<_&&(_=M),f>_)return null}return f}function vm(r,e,o,c,f,_,v,w,E,M,L){const N=c-r,j=f-e,W=_-o,J=v-r,se=w-e,Le=E-o,rt=L[1]*Le-L[2]*se,bt=L[2]*J-L[0]*Le,at=L[0]*se-L[1]*J,xt=N*rt+j*bt+W*at;if(Math.abs(xt)<1e-15)return null;const At=1/xt,Mt=M[0]-r,un=M[1]-e,rn=M[2]-o,Dn=(Mt*rt+un*bt+rn*at)*At;if(Dn<0||Dn>1)return null;const Yn=un*W-rn*j,mn=rn*N-Mt*W,Pn=Mt*j-un*N,Rn=(L[0]*Yn+L[1]*mn+L[2]*Pn)*At;return Rn<0||Dn+Rn>1?null:(J*Yn+se*mn+Le*Pn)*At}function xm(r,e,o){return(r-e)/(o-e)}function d_(r,e,o,c,f,_,v,w,E){const M=1<{const bt=Le?1:0,at=(W+1)*se-bt,xt=J*se,At=(J+1)*se-bt;rt[0]=W*se,rt[1]=xt,rt[2]=at,rt[3]=At};let N=new ym(E);const j=[];for(let W=0;W=1;E/=2){const W=w[w.length-1];N=new ym(E);for(let J=0;J0;){const{idx:J,t:se,nodex:Le,nodey:rt,depth:bt}=W.pop();if(this.leaves[J]){d_(Le,rt,bt,e,o,c,f,N,j);const xt=1<=En[2])return se}continue}let at=0;for(let xt=0;xt=M[L[rn]]&&(L.splice(rn,0,xt),un=!0);un||(L[at]=xt),at++}}for(let xt=0;xt=this.dim+1||o<-1||o>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(o+1)*this.stride+(e+1)}static pack(e,o){const c=[0,0,0,0],f=yd.getUnpackVector(o);let _=Math.floor((e+f[3])/f[2]);return c[2]=_%256,_=Math.floor(_/256),c[1]=_%256,_=Math.floor(_/256),c[0]=_,c}getPixels(){return new Ls({width:this.stride,height:this.stride},this.pixels)}backfillBorder(e,o,c){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");let f=o*this.dim,_=o*this.dim+this.dim,v=c*this.dim,w=c*this.dim+this.dim;switch(o){case-1:f=_-1;break;case 1:_=f+1}switch(c){case-1:v=w-1;break;case 1:w=v+1}const E=-o*this.dim,M=-c*this.dim;for(let L=v;L{this.remove(e,_)},c)),this.data[f].push(_),this.order.push(f),this.order.length>this.max){const v=this._getAndRemoveByKey(this.order[0]);v&&this.onRemove(v)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){const o=this.data[e].shift();return o.timeout&&clearTimeout(o.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),o.value}getByKey(e){const o=this.data[e];return o?o[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,o){if(!this.has(e))return this;const c=e.wrapped().key,f=void 0===o?0:this.data[c].indexOf(o),_=this.data[c][f];return this.data[c].splice(f,1),_.timeout&&clearTimeout(_.timeout),0===this.data[c].length&&delete this.data[c],this.onRemove(_.value),this.order.splice(this.order.indexOf(c),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){const o=this._getAndRemoveByKey(this.order[0]);o&&this.onRemove(o)}return this}filter(e){const o=[];for(const c in this.data)for(const f of this.data[c])e(f.value)||o.push(f);for(const c of o)this.remove(c.value.tileID,c)}}class xu{constructor(e,o,c){this.func=e,this.mask=o,this.range=c}}xu.ReadOnly=!1,xu.ReadWrite=!0,xu.disabled=new xu(519,xu.ReadOnly,[0,1]);class Cm{constructor(e,o,c,f,_,v){this.test=e,this.ref=o,this.mask=c,this.fail=f,this.depthFail=_,this.pass=v}}Cm.disabled=new Cm({func:519,mask:0},0,0,7680,7680,7680);class Ul{constructor(e,o,c){this.blendFunction=e,this.blendColor=o,this.mask=c}}Ul.Replace=[1,0],Ul.disabled=new Ul(Ul.Replace,O.transparent,[!1,!1,!1,!1]),Ul.unblended=new Ul(Ul.Replace,O.transparent,[!0,!0,!0,!0]),Ul.alphaBlended=new Ul([1,771],O.transparent,[!0,!0,!0,!0]);class vl{constructor(e,o,c){this.enable=e,this.mode=o,this.frontFace=c}}vl.disabled=new vl(!1,1029,2305),vl.backCCW=new vl(!0,1029,2305),vl.backCW=new vl(!0,1029,2304),vl.frontCW=new vl(!0,1028,2304),vl.frontCCW=new vl(!0,1028,2305);class bu extends ln{constructor(e,o,c){super(),this.id=e,this._onlySymbols=c,o.on("data",f=>{"source"===f.dataType&&"metadata"===f.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===f.dataType&&"content"===f.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform))}),o.on("error",()=>{this._sourceErrored=!0}),this._source=o,this._tiles={},this._cache=new wm(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._minTileCacheSize=o.minTileCacheSize,this._maxTileCacheSize=o.maxTileCacheSize,this._loadedParentTiles={},this._coveredTiles={},this._state=new u_,this._isRaster="raster"===this._source.type||"raster-dem"===this._source.type||"custom"===this._source.type&&"raster"===this._source._dataType}onAdd(e){this.map=e,this._minTileCacheSize=void 0===this._minTileCacheSize&&e?e._minTileCacheSize:this._minTileCacheSize,this._maxTileCacheSize=void 0===this._maxTileCacheSize&&e?e._maxTileCacheSize:this._maxTileCacheSize}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;for(const e in this._tiles){const o=this._tiles[e];if("loaded"!==o.state&&"errored"!==o.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;const e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}_loadTile(e,o){return e.isSymbolTile=this._onlySymbols,this._source.loadTile(e,o)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,()=>{})}_abortTile(e){if(this._source.abortTile)return this._source.abortTile(e,()=>{})}serialize(){return this._source.serialize()}prepare(e){this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null);for(const o in this._tiles){const c=this._tiles[o];c.upload(e),c.prepare(this.map.style.imageManager)}}getIds(){return Ut(this._tiles).map(e=>e.tileID).sort(f_).map(e=>e.key)}getRenderableIds(e){const o=[];for(const c in this._tiles)this._isIdRenderable(+c,e)&&o.push(this._tiles[c]);return e?o.sort((c,f)=>{const _=c.tileID,v=f.tileID,w=new ye(_.canonical.x,_.canonical.y)._rotate(this.transform.angle),E=new ye(v.canonical.x,v.canonical.y)._rotate(this.transform.angle);return _.overscaledZ-v.overscaledZ||E.y-w.y||E.x-w.x}).map(c=>c.tileID.key):o.map(c=>c.tileID).sort(f_).map(c=>c.key)}hasRenderableParent(e){const o=this.findLoadedParent(e,0);return!!o&&this._isIdRenderable(o.tileID.key)}_isIdRenderable(e,o){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(o||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else{this._cache.reset();for(const e in this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(+e,"reloading")}}_reloadTile(e,o){const c=this._tiles[e];c&&("loading"!==c.state&&(c.state=o),this._loadTile(c,this._tileLoaded.bind(this,c,e,o)))}_tileLoaded(e,o,c,f){if(f)if(e.state="errored",404!==f.status)this._source.fire(new Et(f,{tile:e}));else if("raster-dem"===this._source.type&&this.usedForTerrain&&this.map.painter.terrain){const _=this.map.painter.terrain;this.update(this.transform,_.getScaledDemTileSize(),!0),_.resetTileLookupCache(this.id)}else this.update(this.transform);else e.timeAdded=Yr.now(),"expired"===c&&(e.refreshedUponExpiration=!0),this._setTileReloadTimer(o,e),"raster-dem"===this._source.type&&e.dem&&this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new Tt("data",{dataType:"source",tile:e,coord:e.tileID,sourceCacheId:this.id}))}_backfillDEM(e){const o=this.getRenderableIds();for(let f=0;f1||(Math.abs(v)>1&&(1===Math.abs(v+E)?v+=E:1===Math.abs(v-E)&&(v-=E)),_.dem&&f.dem&&(f.dem.backfillBorder(_.dem,v,w),f.neighboringTiles&&f.neighboringTiles[M]&&(f.neighboringTiles[M].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,o,c,f){for(const _ in this._tiles){let v=this._tiles[_];if(f[_]||!v.hasData()||v.tileID.overscaledZ<=o||v.tileID.overscaledZ>c)continue;let w=v.tileID;for(;v&&v.tileID.overscaledZ>o+1;){const M=v.tileID.scaledTo(v.tileID.overscaledZ-1);v=this._tiles[M.key],v&&v.hasData()&&(w=M)}let E=w;for(;E.overscaledZ>o;)if(E=E.scaledTo(E.overscaledZ-1),e[E.key]){f[w.key]=w;break}}}findLoadedParent(e,o){if(e.key in this._loadedParentTiles){const c=this._loadedParentTiles[e.key];return c&&c.tileID.overscaledZ>=o?c:null}for(let c=e.overscaledZ-1;c>=o;c--){const f=e.scaledTo(c),_=this._getLoadedTile(f);if(_)return _}}_getLoadedTile(e){const o=this._tiles[e.key];return o&&o.hasData()?o:this._cache.getByKey(this._source.reparseOverscaled?e.wrapped().key:e.canonical.key)}updateCacheSize(e,o){o=o||this._source.tileSize;const c=Math.ceil(e.width/o)+1,f=Math.ceil(e.height/o)+1,_=Math.floor(c*f*5),v="number"==typeof this._minTileCacheSize?Math.max(this._minTileCacheSize,_):_,w="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,v):v;this._cache.setMaxSize(w)}handleWrapJump(e){const o=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,o){const c={};for(const f in this._tiles){const _=this._tiles[f];_.tileID=_.tileID.unwrapTo(_.tileID.wrap+o),c[_.tileID.key]=_}this._tiles=c;for(const f in this._timers)clearTimeout(this._timers[f]),delete this._timers[f];for(const f in this._tiles)this._setTileReloadTimer(+f,this._tiles[f])}}update(e,o,c){if(this.transform=e,!this._sourceLoaded||this._paused||this.transform.freezeTileCoverage||this.usedForTerrain&&!c)return;let f;this.updateCacheSize(e,o),"globe"!==this.transform.projection.name&&this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?f=e.getVisibleUnwrappedCoordinates(this._source.tileID).map(w=>new Js(w.canonical.z,w.wrap,w.canonical.z,w.canonical.x,w.canonical.y)):(f=e.coveringTiles({tileSize:o||this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!c,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain}),this._source.hasTile&&(f=f.filter(w=>this._source.hasTile(w)))):f=[];const _=this._updateRetainedTiles(f);if(p_(this._source.type)&&0!==f.length){const w={},E={},M=Object.keys(_);for(const N of M){const j=_[N],W=this._tiles[N];if(!W||W.fadeEndTime&&W.fadeEndTime<=Yr.now())continue;const J=this.findLoadedParent(j,Math.max(j.overscaledZ-bu.maxOverzooming,this._source.minzoom));J&&(this._addTile(J.tileID),w[J.tileID.key]=J.tileID),E[N]=j}const L=f[f.length-1].overscaledZ;for(const N in this._tiles){const j=this._tiles[N];if(_[N]||!j.hasData())continue;let W=j.tileID;for(;W.overscaledZ>L;){W=W.scaledTo(W.overscaledZ-1);const J=this._tiles[W.key];if(J&&J.hasData()&&E[W.key]){_[N]=j.tileID;break}}}for(const N in w)_[N]||(this._coveredTiles[N]=!0,_[N]=w[N])}for(const w in _)this._tiles[w].clearFadeHold();const v=function(w,E){const M=[];for(const L in w)L in E||M.push(L);return M}(this._tiles,_);for(const w of v){const E=this._tiles[w];E.hasSymbolBuckets&&!E.holdingForFade()?E.setHoldDuration(this.map._fadeDuration):E.hasSymbolBuckets&&!E.symbolFadeFinished()||this._removeTile(+w)}this._updateLoadedParentTileCache(),this._onlySymbols&&this._source.afterUpdate&&this._source.afterUpdate()}releaseSymbolFadeTiles(){for(const e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(+e)}_updateRetainedTiles(e){const o={};if(0===e.length)return o;const c={},f=e.reduce((M,L)=>Math.min(M,L.overscaledZ),1/0),_=e[0].overscaledZ,v=Math.max(_-bu.maxOverzooming,this._source.minzoom),w=Math.max(_+bu.maxUnderzooming,this._source.minzoom),E={};for(const M of e){const L=this._addTile(M);o[M.key]=M,L.hasData()||f=this._source.maxzoom){const j=M.children(this._source.maxzoom)[0],W=this.getTile(j);if(W&&W.hasData()){o[j.key]=j;continue}}else{const j=M.children(this._source.maxzoom);if(o[j[0].key]&&o[j[1].key]&&o[j[2].key]&&o[j[3].key])continue}let N=L.wasRequested();for(let j=M.overscaledZ-1;j>=v;--j){const W=M.scaledTo(j);if(c[W.key]||(c[W.key]=!0,L=this.getTile(W),!L&&N&&(L=this._addTile(W)),L&&(o[W.key]=W,N=L.wasRequested(),L.hasData())))break}}return o}_updateLoadedParentTileCache(){this._loadedParentTiles={};for(const e in this._tiles){const o=[];let c,f=this._tiles[e].tileID;for(;f.overscaledZ>0;){if(f.key in this._loadedParentTiles){c=this._loadedParentTiles[f.key];break}o.push(f.key);const _=f.scaledTo(f.overscaledZ-1);if(c=this._getLoadedTile(_),c)break;f=_}for(const _ of o)this._loadedParentTiles[_]=c}}_addTile(e){let o=this._tiles[e.key];if(o)return o;o=this._cache.getAndRemove(e),o&&(this._setTileReloadTimer(e.key,o),o.tileID=e,this._state.initializeTileState(o,this.map?this.map.painter:null),this._cacheTimers[e.key]&&(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,o)));const c=!!o;if(!c){const f=this.map?this.map.painter:null;o=new sr(e,this._source.tileSize*e.overscaleFactor(),this.transform.tileZoom,f,this._isRaster),this._loadTile(o,this._tileLoaded.bind(this,o,e.key,o.state))}return o?(o.uses++,this._tiles[e.key]=o,c||this._source.fire(new Tt("dataloading",{tile:o,coord:o.tileID,dataType:"source"})),o):null}_setTileReloadTimer(e,o){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);const c=o.getExpiryTimeout();c&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},c))}_removeTile(e){const o=this._tiles[e];o&&(o.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),o.uses>0||(o.hasData()&&"reloading"!==o.state?this._cache.add(o.tileID,o,o.getExpiryTimeout()):(o.aborted=!0,this._abortTile(o),this._unloadTile(o))))}clearTiles(){this._shouldReloadOnResume=!1,this._paused=!1;for(const e in this._tiles)this._removeTile(+e);this._source._clear&&this._source._clear(),this._cache.reset(),this.map&&this.usedForTerrain&&this.map.painter.terrain&&this.map.painter.terrain.resetTileLookupCache(this.id)}tilesIn(e,o,c){const f=[],_=this.transform;if(!_)return f;const v="globe"===_.projection.name,w=Os(_.center.lng);for(const E in this._tiles){const M=this._tiles[E];if(c&&M.clearQueryDebugViz(),M.holdingForFade())continue;let L;if(v){const N=M.tileID.canonical;if(0===N.z){const j=[Math.abs(Ke(w,...vd(N,-1))-w),Math.abs(Ke(w,...vd(N,1))-w)];L=[0,2*j.indexOf(Math.min(...j))-1]}else{const j=[Math.abs(Ke(w,...vd(N,-1))-w),Math.abs(Ke(w,...vd(N,0))-w),Math.abs(Ke(w,...vd(N,1))-w)];L=[j.indexOf(Math.min(...j))-1]}}else L=[0];for(const N of L){const j=e.containsTile(M,_,o,N);j&&f.push(j)}}return f}getVisibleCoordinates(e){const o=this.getRenderableIds(e).map(c=>this._tiles[c].tileID);for(const c of o)c.projMatrix=this.transform.calculateProjMatrix(c.toUnwrapped());return o}hasTransition(){if(this._source.hasTransition())return!0;if(p_(this._source.type))for(const e in this._tiles){const o=this._tiles[e];if(void 0!==o.fadeEndTime&&o.fadeEndTime>=Yr.now())return!0}return!1}setFeatureState(e,o,c){this._state.updateState(e=e||"_geojsonTileLayer",o,c)}removeFeatureState(e,o,c){this._state.removeFeatureState(e=e||"_geojsonTileLayer",o,c)}getFeatureState(e,o){return this._state.getState(e=e||"_geojsonTileLayer",o)}setDependencies(e,o,c){const f=this._tiles[e];f&&f.setDependencies(o,c)}reloadTilesForDependencies(e,o){for(const c in this._tiles)this._tiles[c].hasDependency(e,o)&&this._reloadTile(+c,"reloading");this._cache.filter(c=>!c.hasDependency(e,o))}_preloadTiles(e,o){if(!this._sourceLoaded){const w=()=>{this._sourceLoaded&&(this._source.off("data",w),this._preloadTiles(e,o))};return void this._source.on("data",w)}const c=new Map,f=Array.isArray(e)?e:[e],_=this.map.painter.terrain,v=this.usedForTerrain&&_?_.getScaledDemTileSize():this._source.tileSize;for(const w of f){const E=w.coveringTiles({tileSize:v,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom&&!this.usedForTerrain,reparseOverscaled:this._source.reparseOverscaled,isTerrainDEM:this.usedForTerrain});for(const M of E)c.set(M.key,M);this.usedForTerrain&&w.updateElevation(!1)}_n(Array.from(c.values()),(w,E)=>{const M=new sr(w,this._source.tileSize*w.overscaleFactor(),this.transform.tileZoom,this.map.painter,this._isRaster);this._loadTile(M,L=>{"raster-dem"===this._source.type&&M.dem&&this._backfillDEM(M),E(L,M)})},o)}}function f_(r,e){const o=Math.abs(2*r.wrap)-+(r.wrap<0),c=Math.abs(2*e.wrap)-+(e.wrap<0);return r.overscaledZ-e.overscaledZ||c-o||e.canonical.y-r.canonical.y||e.canonical.x-r.canonical.x}function p_(r){return"raster"===r||"image"===r||"video"===r||"custom"===r}function vd(r,e){const o=1<=0&&N[3]>=0&&E.insert(w,N[0],N[1],N[2],N[3])}}loadVTLayers(){if(!this.vtLayers){this.vtLayers=new cf(new sd(this.rawTileData)).layers,this.sourceLayerCoder=new l_(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"]),this.vtFeatures={};for(const e in this.vtLayers)this.vtFeatures[e]=[]}return this.vtLayers}query(e,o,c,f){this.loadVTLayers();const _=e.params||{},v=yc(_.filter),w=e.tileResult,E=e.transform,M=w.bufferedTilespaceBounds,L=this.grid.query(M.min.x,M.min.y,M.max.x,M.max.y,(J,se,Le,rt)=>Eg(w.bufferedTilespaceGeometry,J,se,Le,rt));L.sort(Fa);let N=null;E.elevation&&L.length>0&&(N=Th.create(E.elevation,this.tileID));const j={};let W;for(let J=0;J(rt||(rt=ac(bt,this.tileID.canonical,e.tileTransform)),at.queryIntersectsFeature(w,bt,xt,rt,this.z,e.transform,e.pixelPosMatrix,N,At)))}return j}loadMatchingFeature(e,o,c,f,_,v,w,E,M){const{featureIndex:L,bucketIndex:N,sourceLayerIndex:j,layoutVertexArrayOffset:W}=o,J=this.bucketLayerIDs[N];if(f&&!function(bt,at){for(let xt=0;xt=0)return!0;return!1}(f,J))return;const se=this.sourceLayerCoder.decode(j),Le=this.vtLayers[se].feature(L);if(c.needGeometry){const bt=ou(Le,!0);if(!c.filter(new R(this.tileID.overscaledZ),bt,this.tileID.canonical))return}else if(!c.filter(new R(this.tileID.overscaledZ),Le))return;const rt=this.getId(Le,se);for(let bt=0;bt{const w=e instanceof et?e.get(v):null;return w&&w.evaluate?w.evaluate(o,c,f):w})}function Fa(r,e){return e-r}hi(m_,"FeatureIndex",{omit:["rawTileData","sourceLayerCoder"]});class __{constructor(e,o){this.width=e,this.height=o,this.nextRow=0,this.image=new Qa({width:e,height:o}),this.positions={},this.uploaded=!1}getDash(e,o){const c=this.getKey(e,o);return this.positions[c]}trim(){const e=this.width,o=this.height=Qt(this.nextRow);this.image.resize({width:e,height:o})}getKey(e,o){return e.join(",")+o}getDashRanges(e,o,c){const f=[];let _=e.length%2==1?-e[e.length-1]*c:0,v=e[0]*c,w=!0;f.push({left:_,right:v,isDash:w,zeroLength:0===e[0]});let E=e[0];for(let M=1;M1&&(E=e[++w]);const L=Math.abs(M-E.left),N=Math.abs(M-E.right),j=Math.min(L,N);let W;const J=_/c*(f+1);if(E.isDash){const se=f-Math.abs(J);W=Math.sqrt(j*j+se*se)}else W=f-Math.sqrt(j*j+J*J);this.image.data[v+M]=Math.max(0,Math.min(255,W+128))}}}addRegularDash(e,o){for(let E=e.length-1;E>=0;--E){const M=e[E],L=e[E+1];M.zeroLength?e.splice(E,1):L&&L.isDash===M.isDash&&(L.left=M.left,e.splice(E,1))}const c=e[0],f=e[e.length-1];c.isDash===f.isDash&&(c.left=f.left-this.width,f.right=c.right+this.width);const _=this.width*this.nextRow;let v=0,w=e[v];for(let E=0;E1&&(w=e[++v]);const M=Math.abs(E-w.left),L=Math.abs(E-w.right),N=Math.min(M,L);this.image.data[_+E]=Math.max(0,Math.min(255,(w.isDash?N:-N)+o+128))}}addDash(e,o){const c=this.getKey(e,o);if(this.positions[c])return this.positions[c];const f="round"===o,_=f?7:0,v=2*_+1;if(this.nextRow+v>this.height)return It("LineAtlas out of space"),null;0===e.length&&e.push(1);let w=0;for(let L=0;L=Pn.maxzoom||"none"!==Pn.visibility&&(kf(mn,this.zoom,c),(E[Pn.id]=Pn.createBucket({index:w.bucketLayerIDs.length,layers:mn,zoom:this.zoom,canonical:this.canonical,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:Dn,sourceID:this.source,enableTerrain:this.enableTerrain,projection:this.projection.spec,availableImages:c})).populate(Yn,L,this.tileID.canonical,this.tileTransform),w.bucketLayerIDs.push(mn.map(Rn=>Rn.id)))}}let j,W,J,se;M.trim();const Le={type:"maybePrepare",isSymbolTile:this.isSymbolTile,zoom:this.zoom},rt=()=>{if(j)return _(j);if(W&&J&&se){const At=new bv(W),Mt=new Gg(J,se);for(const un in E){const rn=E[un];rn instanceof zc?(kf(rn.layers,this.zoom,c),cv(rn,W,At.positions,J,Mt.iconPositions,this.showCollisionBoxes,c,this.tileID.canonical,this.tileZoom,this.projection)):rn.hasPattern&&(rn instanceof od||rn instanceof lu||rn instanceof td)&&(kf(rn.layers,this.zoom,c),rn.addFeatures(L,this.tileID.canonical,Mt.patternPositions,c,this.tileTransform))}this.status="done",_(null,{buckets:Ut(E).filter(un=>!un.isEmpty()),featureIndex:w,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:At.image,lineAtlas:M,imageAtlas:Mt,glyphMap:this.returnDependencies?W:null,iconMap:this.returnDependencies?J:null,glyphPositions:this.returnDependencies?At.positions:null})}},bt=pt(L.glyphDependencies,At=>Object.keys(At).map(Number));Object.keys(bt).length?f.send("getGlyphs",{uid:this.uid,stacks:bt},(At,Mt)=>{j||(j=At,W=Mt,rt())},void 0,!1,Le):W={};const at=Object.keys(L.iconDependencies);at.length?f.send("getImages",{icons:at,source:this.source,tileID:this.tileID,type:"icons"},(At,Mt)=>{j||(j=At,J=Mt,rt())},void 0,!1,Le):J={};const xt=Object.keys(L.patternDependencies);xt.length?f.send("getImages",{icons:xt,source:this.source,tileID:this.tileID,type:"patterns"},(At,Mt)=>{j||(j=At,se=Mt,rt())},void 0,!1,Le):se={},rt()}}function kf(r,e,o){const c=new R(e);for(const f of r)f.recalculate(c,o)}class v_{constructor(e){this.entries={},this.scheduler=e}request(e,o,c,f){const _=this.entries[e]=this.entries[e]||{callbacks:[]};if(_.result){const[v,w]=_.result;return this.scheduler?this.scheduler.add(()=>{f(v,w)},o):f(v,w),()=>{}}return _.callbacks.push(f),_.cancel||(_.cancel=c((v,w)=>{_.result=[v,w];for(const E of _.callbacks)this.scheduler?this.scheduler.add(()=>{E(v,w)},o):E(v,w);setTimeout(()=>delete this.entries[e],3e3)})),()=>{_.result||(_.callbacks=_.callbacks.filter(v=>v!==f),_.callbacks.length||(_.cancel(),delete this.entries[e]))}}}function x_(r,e,o){const c=JSON.stringify(r.request);return r.data&&(this.deduped.entries[c]={result:[null,r.data]}),this.deduped.request(c,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom},f=>{const _=Jt(r.request,(v,w,E,M)=>{v?f(v):w&&f(null,{vectorTile:o?void 0:new cf(new sd(w)),rawData:w,cacheControl:E,expires:M})});return()=>{_.cancel(),f()}},e)}const b_=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class Ff{static from(e){if(!(e instanceof ArrayBuffer))throw new Error("Data must be an instance of ArrayBuffer.");const[o,c]=new Uint8Array(e,0,2);if(219!==o)throw new Error("Data does not appear to be in a KDBush format.");const f=c>>4;if(1!==f)throw new Error(`Got v${f} data when expected v1.`);const _=b_[15&c];if(!_)throw new Error("Unrecognized array type.");const[v]=new Uint16Array(e,2,1),[w]=new Uint32Array(e,4,1);return new Ff(w,v,_,e)}constructor(e,o=64,c=Float64Array,f){if(isNaN(e)||e<0)throw new Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+o,2),65535),this.ArrayType=c,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;const _=b_.indexOf(this.ArrayType),v=2*e*this.ArrayType.BYTES_PER_ELEMENT,w=e*this.IndexArrayType.BYTES_PER_ELEMENT,E=(8-w%8)%8;if(_<0)throw new Error(`Unexpected typed array class: ${c}.`);f&&f instanceof ArrayBuffer?(this.data=f,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+w+E,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+v+w+E),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+w+E,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+_]),new Uint16Array(this.data,2,1)[0]=o,new Uint32Array(this.data,4,1)[0]=e)}add(e,o){const c=this._pos>>1;return this.ids[c]=c,this.coords[this._pos++]=e,this.coords[this._pos++]=o,c}finish(){const e=this._pos>>1;if(e!==this.numItems)throw new Error(`Added ${e} items when expected ${this.numItems}.`);return Dm(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,o,c,f){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:_,coords:v,nodeSize:w}=this,E=[0,_.length-1,0],M=[];for(;E.length;){const L=E.pop()||0,N=E.pop()||0,j=E.pop()||0;if(N-j<=w){for(let Le=j;Le<=N;Le++){const rt=v[2*Le],bt=v[2*Le+1];rt>=e&&rt<=c&&bt>=o&&bt<=f&&M.push(_[Le])}continue}const W=j+N>>1,J=v[2*W],se=v[2*W+1];J>=e&&J<=c&&se>=o&&se<=f&&M.push(_[W]),(0===L?e<=J:o<=se)&&(E.push(j),E.push(W-1),E.push(1-L)),(0===L?c>=J:f>=se)&&(E.push(W+1),E.push(N),E.push(1-L))}return M}within(e,o,c){if(!this._finished)throw new Error("Data not yet indexed - call index.finish().");const{ids:f,coords:_,nodeSize:v}=this,w=[0,f.length-1,0],E=[],M=c*c;for(;w.length;){const L=w.pop()||0,N=w.pop()||0,j=w.pop()||0;if(N-j<=v){for(let Le=j;Le<=N;Le++)C_(_[2*Le],_[2*Le+1],e,o)<=M&&E.push(f[Le]);continue}const W=j+N>>1,J=_[2*W],se=_[2*W+1];C_(J,se,e,o)<=M&&E.push(f[W]),(0===L?e-c<=J:o-c<=se)&&(w.push(j),w.push(W-1),w.push(1-L)),(0===L?e+c>=J:o+c>=se)&&(w.push(W+1),w.push(N),w.push(1-L))}return E}}function Dm(r,e,o,c,f,_){if(f-c<=o)return;const v=c+f>>1;w_(r,e,v,c,f,_),Dm(r,e,o,c,v-1,1-_),Dm(r,e,o,v+1,f,1-_)}function w_(r,e,o,c,f,_){for(;f>c;){if(f-c>600){const M=f-c+1,L=o-c+1,N=Math.log(M),j=.5*Math.exp(2*N/3),W=.5*Math.sqrt(N*j*(M-j)/M)*(L-M/2<0?-1:1);w_(r,e,o,Math.max(c,Math.floor(o-L*j/M+W)),Math.min(f,Math.floor(o+(M-L)*j/M+W)),_)}const v=e[2*o+_];let w=c,E=f;for(wu(r,e,c,o),e[2*f+_]>v&&wu(r,e,c,f);wv;)E--}e[2*c+_]===v?wu(r,e,c,E):(E++,wu(r,e,E,f)),E<=o&&(c=E+1),o<=E&&(f=E-1)}}function wu(r,e,o,c){Im(r,o,c),Im(e,2*o,2*c),Im(e,2*o+1,2*c+1)}function Im(r,e,o){const c=r[e];r[e]=r[o],r[o]=c}function C_(r,e,o,c){const f=r-o,_=e-c;return f*f+_*_}l.ARRAY_TYPE=As,l.AUTH_ERR_MSG=yt,l.Aabb=ss,l.Actor=class{constructor(r,e,o){this.target=r,this.parent=e,this.mapId=o,this.callbacks={},this.cancelCallbacks={},an(["receive"],this),this.target.addEventListener("message",this.receive,!1),this.globalScope=Zt()?r:B,this.scheduler=new a_}send(r,e,o,c,f=!1,_){const v=Math.round(1e18*Math.random()).toString(36).substring(0,10);o&&(o.metadata=_,this.callbacks[v]=o);const w=Ft(this.globalScope)?void 0:[];return this.target.postMessage({id:v,type:r,hasCallback:!!o,targetMapId:c,mustQueue:f,sourceMapId:this.mapId,data:dl(e,w)},w),{cancel:()=>{o&&delete this.callbacks[v],this.target.postMessage({id:v,type:"",targetMapId:c,sourceMapId:this.mapId})}}}receive(r){const e=r.data,o=e.id;if(o&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){const c=this.cancelCallbacks[o];delete this.cancelCallbacks[o],c&&c.cancel()}else if(e.mustQueue||Zt()){const c=this.callbacks[o];this.cancelCallbacks[o]=this.scheduler.add(()=>this.processTask(o,e),c&&c.metadata||{type:"message"})}else this.processTask(o,e)}processTask(r,e){if(""===e.type){const o=this.callbacks[r];delete this.callbacks[r],o&&(e.error?o(ra(e.error)):o(null,ra(e.data)))}else{const o=Ft(this.globalScope)?void 0:[],c=e.hasCallback?(_,v)=>{delete this.cancelCallbacks[r],this.target.postMessage({id:r,type:"",sourceMapId:this.mapId,error:_?dl(_):null,data:dl(v,o)},o)}:_=>{},f=ra(e.data);if(this.parent[e.type])this.parent[e.type](e.sourceMapId,f,c);else if(this.parent.getWorkerSource){const _=e.type.split(".");this.parent.getWorkerSource(e.sourceMapId,_[0],f.source)[_[1]](f,c)}else c(new Error(`Could not find function ${e.type}`))}}remove(){this.scheduler.remove(),this.target.removeEventListener("message",this.receive,!1)}},l.CanonicalTileID=eh,l.Color=O,l.ColorMode=Ul,l.CullFaceMode=vl,l.DEMData=yd,l.DataConstantProperty=ne,l.DedupedRequest=v_,l.DepthMode=xu,l.EXTENT=vi,l.Elevation=class{isDataAvailableAtPoint(r){const e=this._source();if(this.isUsingMockSource()||!e||r.y<0||r.y>1)return!1;const o=e.getSource().maxzoom,c=1<1)return e;const f=c.getSource().maxzoom,_=1<{const _=this.getAtTileOffset(r,f.x,f.y),v=c.upVector(r.canonical,f.x,f.y);return qs(v,v,_*c.upVectorScale(r.canonical,e,o).metersToTile),v}}getForTilePoints(r,e,o,c){if(this.isUsingMockSource())return!1;const f=Th.create(this,r,c);return!!f&&(e.forEach(_=>{_[2]=this.exaggeration()*f.getElevationAt(_[0],_[1],o)}),!0)}getMinMaxForTile(r){if(this.isUsingMockSource())return null;const e=this.findDEMTileFor(r);if(!e||!e.dem)return null;const o=e.dem.tree,c=e.tileID,f=1<{let j=M===_-1?M-2:0===M?M:M-1;return j+=N?24575:0,[j,L]};for(let M=0;M<_;++M)o.emplaceBack(...E(M,0,!0));for(let M=0;Mthis._skuTokenExpiresAt}transformRequest(r,e){return this._transformRequestFn&&this._transformRequestFn(r,e)||{url:r}}normalizeStyleURL(r,e){if(!Dt(r))return r;const o=Gn(r);return o.path=`/styles/v1${o.path}`,this._makeAPIURL(o,this._customAccessToken||e)}normalizeGlyphsURL(r,e){if(!Dt(r))return r;const o=Gn(r);return o.path=`/fonts/v1${o.path}`,this._makeAPIURL(o,this._customAccessToken||e)}normalizeSourceURL(r,e,o,c){if(!Dt(r))return r;const f=Gn(r);return f.path=`/v4/${f.authority}.json`,f.params.push("secure"),o&&f.params.push(`language=${o}`),c&&f.params.push(`worldview=${c}`),this._makeAPIURL(f,this._customAccessToken||e)}normalizeSpriteURL(r,e,o,c){const f=Gn(r);return Dt(r)?(f.path=`/styles/v1${f.path}/sprite${e}${o}`,this._makeAPIURL(f,this._customAccessToken||c)):(f.path+=`${e}${o}`,ae(f))}normalizeTileURL(r,e,o){if(this._isSkuTokenExpired()&&this._createSkuToken(),r&&!Dt(r))return r;const c=Gn(r);c.path=c.path.replace(/(\.(png|jpg)\d*)(?=$)/,`${e||o&&"raster"!==c.authority&&512===o?"@2x":""}${fe.supported?".webp":"$1"}`),"raster"===c.authority?c.path=`/${ie.RASTER_URL_PREFIX}${c.path}`:(c.path=c.path.replace(/^.+\/v4\//,"/"),c.path=`/${ie.TILE_URL_VERSION}${c.path}`);const f=this._customAccessToken||function(_){for(const v of _){const w=v.match(/^access_token=(.*)$/);if(w)return w[1]}return null}(c.params)||ie.ACCESS_TOKEN;return ie.REQUIRE_ACCESS_TOKEN&&f&&this._skuToken&&c.params.push(`sku=${this._skuToken}`),this._makeAPIURL(c,f)}canonicalizeTileURL(r,e){const o=Gn(r);if(!o.path.match(/^(\/v4\/|\/raster\/v1\/)/)||!o.path.match(/\.[\w]+$/))return r;let c="mapbox://";o.path.match(/^\/raster\/v1\//)?c+=`raster/${o.path.replace(`/${ie.RASTER_URL_PREFIX}/`,"")}`:c+=`tiles/${o.path.replace(`/${ie.TILE_URL_VERSION}/`,"")}`;let f=o.params;return e&&(f=f.filter(_=>!_.match(/^access_token=/))),f.length&&(c+=`?${f.join("&")}`),c}canonicalizeTileset(r,e){const o=!!e&&Dt(e),c=[];for(const f of r.tiles||[])jt(f)?c.push(this.canonicalizeTileURL(f,o)):c.push(f);return c}_makeAPIURL(r,e){const o="See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes",c=Gn(ie.API_URL);if(r.protocol=c.protocol,r.authority=c.authority,"http"===r.protocol){const f=r.params.indexOf("secure");f>=0&&r.params.splice(f,1)}if("/"!==c.path&&(r.path=`${c.path}${r.path}`),!ie.REQUIRE_ACCESS_TOKEN)return ae(r);if(e=e||ie.ACCESS_TOKEN,!this._silenceAuthErrors){if(!e)throw new Error(`An API access token is required to use Mapbox GL. ${o}`);if("s"===e[0])throw new Error(`Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). ${o}`)}return r.params=r.params.filter(f=>-1===f.indexOf("access_token")),r.params.push(`access_token=${e||""}`),ae(r)}},l.ResourceType=fn,l.SegmentVector=So,l.SourceCache=bu,l.StencilMode=Cm,l.StructArrayLayout1ui2=sa,l.StructArrayLayout2f1f2i16=Oi,l.StructArrayLayout2i4=Wn,l.StructArrayLayout2ui4=is,l.StructArrayLayout3f12=lr,l.StructArrayLayout3ui6=Ci,l.StructArrayLayout4i8=Mn,l.StructArrayLayout5f20=Br,l.Texture=Uc,l.Tile=sr,l.Transitionable=Q,l.Uniform1f=kh,l.Uniform1i=class extends pl{constructor(r){super(r),this.current=0}set(r,e,o){this.fetchUniformLocation(r,e)&&this.current!==o&&(this.current=o,this.gl.uniform1i(this.location,o))}},l.Uniform2f=class extends pl{constructor(r){super(r),this.current=[0,0]}set(r,e,o){this.fetchUniformLocation(r,e)&&(o[0]===this.current[0]&&o[1]===this.current[1]||(this.current=o,this.gl.uniform2f(this.location,o[0],o[1])))}},l.Uniform3f=class extends pl{constructor(r){super(r),this.current=[0,0,0]}set(r,e,o){this.fetchUniformLocation(r,e)&&(o[0]===this.current[0]&&o[1]===this.current[1]&&o[2]===this.current[2]||(this.current=o,this.gl.uniform3f(this.location,o[0],o[1],o[2])))}},l.Uniform4f=hp,l.UniformColor=Fh,l.UniformMatrix2f=class extends pl{constructor(r){super(r),this.current=Bu}set(r,e,o){if(this.fetchUniformLocation(r,e))for(let c=0;c<4;c++)if(o[c]!==this.current[c]){this.current=o,this.gl.uniformMatrix2fv(this.location,!1,o);break}}},l.UniformMatrix3f=class extends pl{constructor(r){super(r),this.current=Nu}set(r,e,o){if(this.fetchUniformLocation(r,e))for(let c=0;c<9;c++)if(o[c]!==this.current[c]){this.current=o,this.gl.uniformMatrix3fv(this.location,!1,o);break}}},l.UniformMatrix4f=class extends pl{constructor(r){super(r),this.current=Fu}set(r,e,o){if(this.fetchUniformLocation(r,e)){if(o[12]!==this.current[12]||o[0]!==this.current[0])return this.current=o,void this.gl.uniformMatrix4fv(this.location,!1,o);for(let c=1;c<16;c++)if(o[c]!==this.current[c]){this.current=o,this.gl.uniformMatrix4fv(this.location,!1,o);break}}}},l.UnwrappedTileID=Bg,l.ValidationError=li,l.VectorTileFeature=Jd,l.VectorTileWorkerSource=class extends ln{constructor(r,e,o,c,f){super(),this.actor=r,this.layerIndex=e,this.availableImages=o,this.loadVectorData=f||x_,this.loading={},this.loaded={},this.deduped=new v_(r.scheduler),this.isSpriteLoaded=c,this.scheduler=r.scheduler}loadTile(r,e){const o=r.uid,c=r&&r.request,f=c&&c.collectResourceTiming,_=this.loading[o]=new Tm(r);_.abort=this.loadVectorData(r,(v,w)=>{const E=!this.loading[o];if(delete this.loading[o],E||v||!w)return _.status="done",E||(this.loaded[o]=_),e(v);const M=w.rawData,L={};w.expires&&(L.expires=w.expires),w.cacheControl&&(L.cacheControl=w.cacheControl),_.vectorTile=w.vectorTile||new cf(new sd(M));const N=()=>{_.parse(_.vectorTile,this.layerIndex,this.availableImages,this.actor,(j,W)=>{if(j||!W)return e(j);const J={};if(f){const se=hr(c);se.length>0&&(J.resourceTiming=JSON.parse(JSON.stringify(se)))}e(null,We({rawTileData:M.slice(0)},W,L,J))})};this.isSpriteLoaded?N():this.once("isSpriteLoaded",()=>{this.scheduler?this.scheduler.add(N,{type:"parseTile",isSymbolTile:r.isSymbolTile,zoom:r.tileZoom}):N()}),this.loaded=this.loaded||{},this.loaded[o]=_})}reloadTile(r,e){const o=this.loaded,c=r.uid,f=this;if(o&&o[c]){const _=o[c];_.showCollisionBoxes=r.showCollisionBoxes,_.enableTerrain=!!r.enableTerrain,_.projection=r.projection,_.tileTransform=md(r.tileID.canonical,r.projection);const v=(w,E)=>{const M=_.reloadCallback;M&&(delete _.reloadCallback,_.parse(_.vectorTile,f.layerIndex,this.availableImages,f.actor,M)),e(w,E)};"parsing"===_.status?_.reloadCallback=v:"done"===_.status&&(_.vectorTile?_.parse(_.vectorTile,this.layerIndex,this.availableImages,this.actor,v):v())}}abortTile(r,e){const o=r.uid,c=this.loading[o];c&&(c.abort&&c.abort(),delete this.loading[o]),e()}removeTile(r,e){const o=this.loaded,c=r.uid;o&&o[c]&&delete o[c],e()}},l.WritingMode=La,l.ZoomDependentExpression=Zo,l.add=_l,l.addDynamicAttributes=bh,l.adjoint=function(r,e){var o=e[0],c=e[1],f=e[2],_=e[3],v=e[4],w=e[5],E=e[6],M=e[7],L=e[8];return r[0]=v*L-w*M,r[1]=f*M-c*L,r[2]=c*w-f*v,r[3]=w*E-_*L,r[4]=o*L-f*E,r[5]=f*_-o*w,r[6]=_*M-v*E,r[7]=c*E-o*M,r[8]=o*v-c*_,r},l.asyncAll=_n,l.bezier=De,l.bindAll=an,l.boundsAttributes=_m,l.bufferConvexPolygon=function(r,e){const o=[];for(let c=0;cwn&&(r.getActor().send("enforceCacheSizeLimit",Kt),Ei=0)},l.calculateGlobeLabelMatrix=function(r,e){const{x:o,y:c}=r.point,f=vg(o,c,r.worldSize/r._pixelsPerMercatorPixel,0,0);return ju(f,f,Gh(as(e)))},l.calculateGlobeMatrix=function(r){const{x:e,y:o}=r.point,{lng:c,lat:f}=r._center;return vg(e,o,r.worldSize,c,f)},l.calculateGlobeMercatorMatrix=function(r){const e=r.pixelsPerMeter,o=e/Xa(1,r.center.lat),c=Ol(new Float64Array(16));return Ss(c,c,[r.point.x,r.point.y,0]),oc(c,c,[o,o,e]),Float32Array.from(c)},l.circumferenceAtLatitude=zd,l.clamp=Ke,l.clearTileCache=function(r){if(!Lr())return;const e=B.caches.delete(Pt);r&&e.catch(r).then(()=>r())},l.clipLine=Hg,l.clone=function(r){var e=new As(16);return e[0]=r[0],e[1]=r[1],e[2]=r[2],e[3]=r[3],e[4]=r[4],e[5]=r[5],e[6]=r[6],e[7]=r[7],e[8]=r[8],e[9]=r[9],e[10]=r[10],e[11]=r[11],e[12]=r[12],e[13]=r[13],e[14]=r[14],e[15]=r[15],e},l.clone$1=bn,l.collisionCircleLayout=ih,l.config=ie,l.conjugate=function(r,e){return r[0]=-e[0],r[1]=-e[1],r[2]=-e[2],r[3]=e[3],r},l.create=function(){var r=new As(16);return As!=Float32Array&&(r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=0,r[12]=0,r[13]=0,r[14]=0),r[0]=1,r[5]=1,r[10]=1,r[15]=1,r},l.create$1=Sd,l.createExpression=Es,l.createLayout=$t,l.createStyleLayer=function(r){return"custom"===r.type?new ix(r):new o_[r.type](r)},l.cross=Zu,l.degToRad=X,l.distance=function(r,e){return Math.hypot(e[0]-r[0],e[1]-r[1],e[2]-r[2])},l.div=function(r,e,o){return r[0]=e[0]/o[0],r[1]=e[1]/o[1],r[2]=e[2]/o[2],r},l.dot=xa,l.earthRadius=Hh,l.ease=ze,l.easeCubicInOut=Fe,l.ecefToLatLng=function([r,e,o]){const c=Math.hypot(r,e,o),f=Math.atan2(r,o),_=.5*Math.PI-Math.acos(-e/c);return new pr(ve(f),ve(_))},l.emitValidationErrors=Ou,l.endsWith=tt,l.enforceCacheSizeLimit=function(r){Mi(),ei&&ei.then(e=>{e.keys().then(o=>{for(let c=0;c_&&(c+=(r[f]-_)*(r[f]-_)),e[f]<_&&(c+=(_-e[f])*(_-e[f]))}return c},l.getAnchorAlignment=Lc,l.getAnchorJustification=kc,l.getBounds=function(r){let e=1/0,o=1/0,c=-1/0,f=-1/0;for(const _ of r)e=Math.min(e,_.x),o=Math.min(o,_.y),c=Math.max(c,_.x),f=Math.max(f,_.y);return{min:new ye(e,o),max:new ye(c,f)}},l.getColumn=Ve,l.getDefaultExportFromCjs=nt,l.getGridMatrix=function(r,e,o,c){const f=e.getNorth(),_=e.getSouth(),v=e.getWest(),w=e.getEast(),E=1<0){const J=180/c;Bh(W,W,[J/M+1,0,0,0,J/L+1,0,-.5*J/N,.5*J/j,1])}return W[2]=E,W[5]=r.x,W[8]=r.y,W},l.getImage=ot,l.getJSON=function(r,e){return Fn(We(r,{type:"json"}),e)},l.getLatitudinalLod=function(r){const e=Ho-5;r=Ke(r,-e,e)/e*90;const o=Math.pow(Math.abs(Math.sin(X(r))),3);return Math.round(o*(Gu.length-1))},l.getMapSessionAPI=Xi,l.getPerformanceMeasurement=hr,l.getProjection=lm,l.getRTLTextPluginStatus=x,l.getReferrer=gn,l.getTilePoint=function(r,{x:e,y:o},c=0){return new ye(((e-c)*r.scale-r.x)*vi,(o*r.scale-r.y)*vi)},l.getTileVec3=function(r,e,o=0){return Vu(((e.x-o)*r.scale-r.x)*vi,(e.y*r.scale-r.y)*vi,xg(e.z,e.y))},l.getVideo=function(r,e){const o=B.document.createElement("video");o.muted=!0,o.onloadstart=function(){e(null,o)};for(let c=0;c{}}},l.globeCenterToScreenPoint=function(r){const e=[0,0,0],o=Ol(new Float64Array(16));return ju(o,r.pixelMatrix,r.globeMatrix),bo(e,e,o),new ye(e[0],e[1])},l.globeDenormalizeECEF=Gh,l.globeECEFOrigin=function(r,e){const o=[0,0,0];return bo(o,o,ru(as(e.canonical))),bo(o,o,r),o},l.globeMetersToEcef=iu,l.globeNormalizeECEF=ru,l.globePixelsToTileUnits=function(r,e){return vi/(512*Math.pow(2,r))*Yu(as(e))},l.globePoleMatrixForTile=function(r,e,o){const c=Ol(new Float64Array(16)),f=(e/(1<0;return 0===c&&!f&&!v&&_},l.identity=Ol,l.identity$1=dg,l.invert=zh,l.isFullscreen=function(){return!!B.document.fullscreenElement||!!B.document.webkitFullscreenElement},l.isLngLatBehindGlobe=wp,l.isMapAuthenticated=function(r){return Ar.has(r)},l.isMapboxURL=Dt,l.isSafariWithAntialiasingBug=function(r){const e=r.navigator?r.navigator.userAgent:null;return!!Ft(r)&&e&&(e.match("Version/15.4")||e.match("Version/15.5")||e.match(/CPU (OS|iPhone OS) (15_4|15_5) like Mac OS X/))},l.latFromMercatorY=ps,l.latLngToECEF=qu,l.len=py,l.length=Pd,l.length$1=function(r){return Math.hypot(r[0],r[1],r[2],r[3])},l.lngFromMercatorX=Rs,l.loadVectorTile=x_,l.makeRequest=Fn,l.mapValue=function(r,e,o,c,f){return Ke((r-e)/(o-e)*(f-c)+c,c,f)},l.mercatorScale=bg,l.mercatorXfromLng=Os,l.mercatorYfromLat=Pa,l.mercatorZfromAltitude=Xa,l.mul=fy,l.mul$1=kd,l.multiply=ju,l.multiply$1=Bh,l.multiply$2=cg,l.nextPowerOfTwo=Qt,l.normalize=Ps,l.normalize$1=nu,l.normalize$2=gp,l.number=Pi,l.ortho=function(r,e,o,c,f,_,v){var w=1/(e-o),E=1/(c-f),M=1/(_-v);return r[0]=-2*w,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=-2*E,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[10]=2*M,r[11]=0,r[12]=(e+o)*w,r[13]=(f+c)*E,r[14]=(v+_)*M,r[15]=1,r},l.pbf=Vg,l.perspective=function(r,e,o,c,f){var _,v=1/Math.tan(e/2);return r[0]=v/o,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=v,r[6]=0,r[7]=0,r[8]=0,r[9]=0,r[11]=-1,r[12]=0,r[13]=0,r[15]=0,null!=f&&f!==1/0?(r[10]=(f+c)*(_=1/(c-f)),r[14]=2*f*c*_):(r[10]=-1,r[14]=-2*c),r},l.pick=function(r,e){const o={};for(let c=0;c0&&o[0]<=r.width&&o[1]>0&&o[1]<=r.height&&!wp(r,new pr(r.center.lat,90)),c[0]>0&&c[0]<=r.width&&c[1]>0&&c[1]<=r.height&&!wp(r,new pr(r.center.lat,-90))]},l.polygonContainsPoint=Sc,l.polygonIntersectsBox=Eg,l.polygonIntersectsPolygon=su,l.polygonizeBounds=function(r,e,o=0,c=!0){const f=new ye(o,o),_=r.sub(f),v=e.add(f),w=[_,new ye(v.x,_.y),v,new ye(_.x,v.y)];return c&&w.push(_.clone()),w},l.posAttributes=Dc,l.postMapLoadEvent=bi,l.postPerformanceEvent=Ri,l.postTurnstileEvent=on,l.potpack=xf,l.prevPowerOfTwo=function(r){return r<=1?1:Math.pow(2,Math.floor(Math.log(r)/Math.LN2))},l.radToDeg=ve,l.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],l.registerForPluginStateChange=function(r){return r({pluginStatus:u,pluginURL:n}),y.on("pluginStateChange",r),r},l.removeAuthState=function(r){Ar.delete(r)},l.renderColorRamp=ef,l.resample=wg,l.rotateX=Ec,l.rotateX$1=hg,l.rotateY=fp,l.rotateY$1=fg,l.rotateZ=function(r,e,o){var c=Math.sin(o),f=Math.cos(o),_=e[0],v=e[1],w=e[2],E=e[3],M=e[4],L=e[5],N=e[6],j=e[7];return e!==r&&(r[8]=e[8],r[9]=e[9],r[10]=e[10],r[11]=e[11],r[12]=e[12],r[13]=e[13],r[14]=e[14],r[15]=e[15]),r[0]=_*f+M*c,r[1]=v*f+L*c,r[2]=w*f+N*c,r[3]=E*f+j*c,r[4]=M*f-_*c,r[5]=L*f-v*c,r[6]=N*f-w*c,r[7]=j*f-E*c,r},l.rotateZ$1=function(r,e,o){o*=.5;var c=e[0],f=e[1],_=e[2],v=e[3],w=Math.sin(o),E=Math.cos(o);return r[0]=c*E+f*w,r[1]=f*E-c*w,r[2]=_*E+v*w,r[3]=v*E-_*w,r},l.scale=oc,l.scale$1=my,l.scale$2=qs,l.scaleAndAdd=Rd,l.set=function(r,e,o,c){return r[0]=e,r[1]=o,r[2]=c,r},l.setCacheLimits=function(r,e){Kt=r,wn=e},l.setColumn=function(r,e,o){r[4*e+0]=o[0],r[4*e+1]=o[1],r[4*e+2]=o[2],r[4*e+3]=o[3]},l.setRTLTextPlugin=function(r,e,o=!1){if(u===oa||u===va||u===Lu)throw new Error("setRTLTextPlugin cannot be called multiple times.");n=Yr.resolveURL(r),u=oa,S=e,p(),o||D()},l.smoothstep=Ht,l.spec=vt,l.squaredLength=function(r){var e=r[0],o=r[1],c=r[2];return e*e+o*o+c*c},l.storeAuthState=function(r,e){e?Ar.add(r):Ar.delete(r)},l.sub=Ys,l.subtract=$u,l.symbolSize=J0,l.tileAABB=function(r,e,o,c,f,_,v,w,E){if("globe"===E.name)return function _y(r,e,o){const c=e/r.worldSize,f=r.globeMatrix;if(o.z<=1){const rn=as(o).getCorners();return _g(rn,f,c),ss.fromPoints(rn)}const _=Nd(o),v=Mc(_);_g(v,f,c);const w=Number.MAX_VALUE,E=[-w,-w,-w],M=[w,w,w];if(_.contains(r.center)){for(const Yn of v)Tc(M,M,Yn),Od(E,E,Yn);E[2]=0;const rn=r.point,Dn=[rn.x*c,rn.y*c,0];return Tc(M,M,Dn),Od(E,E,Dn),new ss(M,E)}const L=[f[12]*c,f[13]*c,f[14]*c],N=_.getCenter(),j=Ke(r.center.lat,-Ho,Ho),W=Ke(N.lat,-Ho,Ho),J=Os(r.center.lng),se=Pa(j);let Le=J-Os(N.lng);const rt=se-Pa(W);Le>.5?Le-=1:Le<-.5&&(Le+=1);let bt=0;Math.abs(Le)>Math.abs(rt)?bt=Le>=0?1:3:(bt=rt>=0?0:2,Rd(L,L,[f[4]*c,f[5]*c,f[6]*c],-Math.sin(X(rt>=0?_.getSouth():_.getNorth()))*Rl));const at=v[bt],xt=v[(bt+1)%4],At=new xp(at,xt,L),Mt=[Hu(At,0)||at[0],Hu(At,1)||at[1],Hu(At,2)||at[2]],un=Ju(r.zoom);if(un>0){const rn=function({x:Yn,y:mn,z:Pn},Rn,zn,Qn,En){const ai=1/(1<.5?Ai=-1:Zi<-.5&&(Ai=1),gi=((gi+Ai)*Rn-(Qn*=Rn))*zn+Qn,ci=((ci+Ai)*Rn-Qn)*zn+Qn,Ji=(Ji*Rn-(En*=Rn))*zn+En,ri=(ri*Rn-En)*zn+En,[[gi,ri,0],[ci,ri,0],[ci,Ji,0],[gi,Ji,0]]}(o,e,r._pixelsPerMercatorPixel,J,se);for(let Yn=0;YnMs(Ml(r)),l.validateFog=r=>Ms(Mu(r)),l.validateLayer=r=>Ms(vc(r)),l.validateLight=r=>Ms(ul(r)),l.validateSource=r=>Ms(hs(r)),l.validateStyle=Su,l.validateTerrain=r=>Ms(Hi(r)),l.values=Ut,l.vectorTile=af,l.version=Y,l.warnOnce=It,l.window=B,l.wrap=dn}),m(0,function(l){function B(ut){if("number"==typeof ut||"boolean"==typeof ut||"string"==typeof ut||null==ut)return JSON.stringify(ut);if(Array.isArray(ut)){let _e="[";for(const ot of ut)_e+=`${B(ot)},`;return`${_e}]`}let he="{";for(const _e of Object.keys(ut).sort())he+=`${_e}:${B(ut[_e])},`;return`${he}}`}function Y(ut){let he="";for(const _e of l.refProperties)he+=`/${B(ut[_e])}`;return he}class C{constructor(he){this.keyCache={},he&&this.replace(he)}replace(he){this._layerConfigs={},this._layers={},this.update(he,[])}update(he,_e){for(const yt of he)this._layerConfigs[yt.id]=yt,(this._layers[yt.id]=l.createStyleLayer(yt)).compileFilter(),this.keyCache[yt.id]&&delete this.keyCache[yt.id];for(const yt of _e)delete this.keyCache[yt],delete this._layerConfigs[yt],delete this._layers[yt];this.familiesBySource={};const ot=function(yt,Dt){const jt={};for(let dt=0;dtthis._layers[Gn.id]),jt=Dt[0];if("none"===jt.visibility)continue;const Vt=jt.source||"";let dt=this.familiesBySource[Vt];dt||(dt=this.familiesBySource[Vt]={});const Bt=jt.sourceLayer||"_geojsonTileLayer";let Nn=dt[Bt];Nn||(Nn=dt[Bt]=[]),Nn.push(Dt)}}}class ie{loadTile(he,_e){const{uid:ot,encoding:yt,rawImageData:Dt,padding:jt,buildQuadTree:Vt}=he,dt=l.window.ImageBitmap&&Dt instanceof l.window.ImageBitmap?this.getImageData(Dt,jt):Dt;_e(null,new l.DEMData(ot,dt,yt,jt<1,Vt))}getImageData(he,_e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(he.width,he.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d",{willReadFrequently:!0})),this.offscreenCanvas.width=he.width,this.offscreenCanvas.height=he.height,this.offscreenCanvasContext.drawImage(he,0,0,he.width,he.height);const ot=this.offscreenCanvasContext.getImageData(-_e,-_e,he.width+2*_e,he.height+2*_e);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),ot}}function fe(ut,he){if(0!==ut.length){Pe(ut[0],he);for(var _e=1;_e=Math.abs(Vt)?_e-dt+Vt:Vt-dt+_e,_e=dt}_e+ot>=0!=!!he&&ut.reverse()}var K=l.getDefaultExportFromCjs(function ut(he,_e){var ot,yt=he&&he.type;if("FeatureCollection"===yt)for(ot=0;ot>31}function me(ut,he){for(var _e=ut.loadGeometry(),ot=ut.type,yt=0,Dt=0,jt=_e.length,Vt=0;Vtut},Ke=Math.fround||(Ht=new Float32Array(1),ut=>(Ht[0]=+ut,Ht[0]));var Ht;const dn=3,_n=5,Ut=6;class We{constructor(he){this.options=Object.assign(Object.create(ze),he),this.trees=new Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(he){const{log:_e,minZoom:ot,maxZoom:yt}=this.options;_e&&console.time("total time");const Dt=`prepare ${he.length} points`;_e&&console.time(Dt),this.points=he;const jt=[];for(let dt=0;dt=ot;dt--){const Bt=+Date.now();Vt=this.trees[dt]=this._createTree(this._cluster(Vt,dt)),_e&&console.log("z%d: %d clusters in %dms",dt,Vt.numItems,+Date.now()-Bt)}return _e&&console.timeEnd("total time"),this}getClusters(he,_e){let ot=((he[0]+180)%360+360)%360-180;const yt=Math.max(-90,Math.min(90,he[1]));let Dt=180===he[2]?180:((he[2]+180)%360+360)%360-180;const jt=Math.max(-90,Math.min(90,he[3]));if(he[2]-he[0]>=360)ot=-180,Dt=180;else if(ot>Dt){const Gn=this.getClusters([ot,yt,180,jt],_e),ae=this.getClusters([-180,yt,Dt,jt],_e);return Gn.concat(ae)}const Vt=this.trees[this._limitZoom(_e)],dt=Vt.range(it(ot),Qt(jt),it(Dt),Qt(yt)),Bt=Vt.data,Nn=[];for(const Gn of dt){const ae=this.stride*Gn;Nn.push(Bt[ae+_n]>1?Ne(Bt,ae,this.clusterProps):this.points[Bt[ae+dn]])}return Nn}getChildren(he){const _e=this._getOriginId(he),ot=this._getOriginZoom(he),yt="No cluster with the specified id.",Dt=this.trees[ot];if(!Dt)throw new Error(yt);const jt=Dt.data;if(_e*this.stride>=jt.length)throw new Error(yt);const Vt=this.options.radius/(this.options.extent*Math.pow(2,ot-1)),dt=Dt.within(jt[_e*this.stride],jt[_e*this.stride+1],Vt),Bt=[];for(const Nn of dt){const Gn=Nn*this.stride;jt[Gn+4]===he&&Bt.push(jt[Gn+_n]>1?Ne(jt,Gn,this.clusterProps):this.points[jt[Gn+dn]])}if(0===Bt.length)throw new Error(yt);return Bt}getLeaves(he,_e,ot){const yt=[];return this._appendLeaves(yt,he,_e=_e||10,ot=ot||0,0),yt}getTile(he,_e,ot){const yt=this.trees[this._limitZoom(he)],Dt=Math.pow(2,he),{extent:jt,radius:Vt}=this.options,dt=Vt/jt,Bt=(ot-dt)/Dt,Nn=(ot+1+dt)/Dt,Gn={features:[]};return this._addTileFeatures(yt.range((_e-dt)/Dt,Bt,(_e+1+dt)/Dt,Nn),yt.data,_e,ot,Dt,Gn),0===_e&&this._addTileFeatures(yt.range(1-dt/Dt,Bt,1,Nn),yt.data,Dt,ot,Dt,Gn),_e===Dt-1&&this._addTileFeatures(yt.range(0,Bt,dt/Dt,Nn),yt.data,-1,ot,Dt,Gn),Gn.features.length?Gn:null}getClusterExpansionZoom(he){let _e=this._getOriginZoom(he)-1;for(;_e<=this.options.maxZoom;){const ot=this.getChildren(he);if(_e++,1!==ot.length)break;he=ot[0].properties.cluster_id}return _e}_appendLeaves(he,_e,ot,yt,Dt){const jt=this.getChildren(_e);for(const Vt of jt){const dt=Vt.properties;if(dt&&dt.cluster?Dt+dt.point_count<=yt?Dt+=dt.point_count:Dt=this._appendLeaves(he,dt.cluster_id,ot,yt,Dt):Dt1;let Nn,Gn,ae;if(Bt)Nn=ke(_e,dt,this.clusterProps),Gn=_e[dt],ae=_e[dt+1];else{const Re=this.points[_e[dt+dn]];Nn=Re.properties;const[st,on]=Re.geometry.coordinates;Gn=it(st),ae=Qt(on)}const ft={type:1,geometry:[[Math.round(this.options.extent*(Gn*Dt-ot)),Math.round(this.options.extent*(ae*Dt-yt))]],tags:Nn};let Z;Z=Bt||this.options.generateId?_e[dt+dn]:this.points[_e[dt+dn]].id,void 0!==Z&&(ft.id=Z),jt.features.push(ft)}}_limitZoom(he){return Math.max(this.options.minZoom,Math.min(Math.floor(+he),this.options.maxZoom+1))}_cluster(he,_e){const{radius:ot,extent:yt,reduce:Dt,minPoints:jt}=this.options,Vt=ot/(yt*Math.pow(2,_e)),dt=he.data,Bt=[],Nn=this.stride;for(let Gn=0;Gn_e&&(st+=dt[In+_n])}if(st>Re&&st>=jt){let on,In=ae*Re,bi=ft*Re,wi=-1;const Ri=((Gn/Nn|0)<<5)+(_e+1)+this.points.length;for(const mr of Z){const Xi=mr*Nn;if(dt[Xi+2]<=_e)continue;dt[Xi+2]=_e;const Ar=dt[Xi+_n];In+=dt[Xi]*Ar,bi+=dt[Xi+1]*Ar,dt[Xi+4]=Ri,Dt&&(on||(on=this._map(dt,Gn,!0),wi=this.clusterProps.length,this.clusterProps.push(on)),Dt(on,this._map(dt,Xi)))}dt[Gn+4]=Ri,Bt.push(In/st,bi/st,1/0,Ri,-1,st),Dt&&Bt.push(wi)}else{for(let on=0;on1)for(const on of Z){const In=on*Nn;if(!(dt[In+2]<=_e)){dt[In+2]=_e;for(let bi=0;bi>5}_getOriginZoom(he){return(he-this.points.length)%32}_map(he,_e,ot){if(he[_e+_n]>1){const jt=this.clusterProps[he[_e+Ut]];return ot?Object.assign({},jt):jt}const yt=this.points[he[_e+dn]].properties,Dt=this.options.map(yt);return ot&&Dt===yt?Object.assign({},Dt):Dt}}function Ne(ut,he,_e){return{type:"Feature",id:ut[he+dn],properties:ke(ut,he,_e),geometry:{type:"Point",coordinates:[(ot=ut[he],360*(ot-.5)),mt(ut[he+1])]}};var ot}function ke(ut,he,_e){const ot=ut[he+_n],yt=ot>=1e4?`${Math.round(ot/1e3)}k`:ot>=1e3?Math.round(ot/100)/10+"k":ot,Dt=ut[he+Ut],jt=-1===Dt?{}:Object.assign({},_e[Dt]);return Object.assign(jt,{cluster:!0,cluster_id:ut[he+dn],point_count:ot,point_count_abbreviated:yt})}function it(ut){return ut/360+.5}function Qt(ut){const he=Math.sin(ut*Math.PI/180),_e=.5-.25*Math.log((1+he)/(1-he))/Math.PI;return _e<0?0:_e>1?1:_e}function mt(ut){const he=(180-360*ut)*Math.PI/180;return 360*Math.atan(Math.exp(he))/Math.PI-90}function an(ut,he,_e,ot){for(var yt,Dt=ot,jt=_e-he>>1,Vt=_e-he,dt=ut[he],Bt=ut[he+1],Nn=ut[_e],Gn=ut[_e+1],ae=he+3;ae<_e;ae+=3){var ft=tt(ut[ae],ut[ae+1],dt,Bt,Nn,Gn);if(ft>Dt)yt=ae,Dt=ft;else if(ft===Dt){var Z=Math.abs(ae-jt);Zot&&(yt-he>3&&an(ut,he,yt,ot),ut[yt+2]=Dt,_e-yt>3&&an(ut,yt,_e,ot))}function tt(ut,he,_e,ot,yt,Dt){var jt=yt-_e,Vt=Dt-ot;if(0!==jt||0!==Vt){var dt=((ut-_e)*jt+(he-ot)*Vt)/(jt*jt+Vt*Vt);dt>1?(_e=yt,ot=Dt):dt>0&&(_e+=jt*dt,ot+=Vt*dt)}return(jt=ut-_e)*jt+(Vt=he-ot)*Vt}function pt(ut,he,_e,ot){var yt={id:void 0===ut?null:ut,type:he,geometry:_e,tags:ot,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(Dt){var jt=Dt.geometry,Vt=Dt.type;if("Point"===Vt||"MultiPoint"===Vt||"LineString"===Vt)Xt(Dt,jt);else if("Polygon"===Vt||"MultiLineString"===Vt)for(var dt=0;dt0&&(jt+=ot?(yt*Bt-dt*Dt)/2:Math.sqrt(Math.pow(dt-yt,2)+Math.pow(Bt-Dt,2))),yt=dt,Dt=Bt}var Nn=he.length-3;he[2]=1,an(he,0,Nn,_e),he[Nn+2]=1,he.size=Math.abs(jt),he.start=0,he.end=he.size}function pe(ut,he,_e,ot){for(var yt=0;yt1?1:_e}function hn(ut,he,_e,ot,yt,Dt,jt,Vt){if(ot/=he,Dt>=(_e/=he)&&jt=ot)return null;for(var dt=[],Bt=0;Bt=_e&&Z=ot)){var Re=[];if("Point"===ae||"MultiPoint"===ae)Yt(Gn,Re,_e,ot,yt);else if("LineString"===ae)Ft(Gn,Re,_e,ot,yt,!1,Vt.lineMetrics);else if("MultiLineString"===ae)Ve(Gn,Re,_e,ot,yt,!1);else if("Polygon"===ae)Ve(Gn,Re,_e,ot,yt,!0);else if("MultiPolygon"===ae)for(var st=0;st=_e&&jt<=ot&&(he.push(ut[Dt]),he.push(ut[Dt+1]),he.push(ut[Dt+2]))}}function Ft(ut,he,_e,ot,yt,Dt,jt){for(var Vt,dt,Bt=Un(ut),Nn=0===yt?Kt:wn,Gn=ut.start,ae=0;ae_e&&(dt=Nn(Bt,ft,Z,st,on,_e),jt&&(Bt.start=Gn+Vt*dt)):In>ot?bi=_e&&(dt=Nn(Bt,ft,Z,st,on,_e),wi=!0),bi>ot&&In<=ot&&(dt=Nn(Bt,ft,Z,st,on,ot),wi=!0),!Dt&&wi&&(jt&&(Bt.end=Gn+Vt*dt),he.push(Bt),Bt=Un(ut)),jt&&(Gn+=Vt)}var Ri=ut.length-3;ft=ut[Ri],Z=ut[Ri+1],Re=ut[Ri+2],(In=0===yt?ft:Z)>=_e&&In<=ot&&Pt(Bt,ft,Z,Re),Ri=Bt.length-3,Dt&&Ri>=3&&(Bt[Ri]!==Bt[0]||Bt[Ri+1]!==Bt[1])&&Pt(Bt,Bt[0],Bt[1],Bt[2]),Bt.length&&he.push(Bt)}function Un(ut){var he=[];return he.size=ut.size,he.start=ut.start,he.end=ut.end,he}function Ve(ut,he,_e,ot,yt,Dt){for(var jt=0;jtjt.maxX&&(jt.maxX=Nn),Gn>jt.maxY&&(jt.maxY=Gn)}return jt}function Ei(ut,he,_e,ot){var yt=he.geometry,Dt=he.type,jt=[];if("Point"===Dt||"MultiPoint"===Dt)for(var Vt=0;Vt0&&he.size<(yt?jt:ot))_e.numPoints+=he.length/3;else{for(var Vt=[],dt=0;dtjt)&&(_e.numSimplified++,Vt.push(he[dt]),Vt.push(he[dt+1])),_e.numPoints++;yt&&function(Bt,Nn){for(var Gn=0,ae=0,ft=Bt.length,Z=ft-2;ae0===Nn)for(ae=0,ft=Bt.length;ae24)throw new Error("maxZoom should be in the 0-24 range");if(he.promoteId&&he.generateId)throw new Error("promoteId and generateId cannot be used together.");var yt,Dt,jt,Vt,dt,Bt,ot=function(yt,Dt){var jt=[];if("FeatureCollection"===yt.type)for(var Vt=0;Vt1&&console.time("creation"),ae=this.tiles[Gn]=dr(ut,he,_e,ot,dt),this.tileCoords.push({z:he,x:_e,y:ot}),Bt)){Bt>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",he,_e,ot,ae.numFeatures,ae.numPoints,ae.numSimplified),console.timeEnd("creation"));var ft="z"+he;this.stats[ft]=(this.stats[ft]||0)+1,this.total++}if(ae.source=ut,yt){if(he===dt.maxZoom||he===yt)continue;var Z=1<1&&console.time("clipping");var Re,st,on,In,bi,wi,Ri=.5*dt.buffer/dt.extent,mr=.5-Ri,Xi=.5+Ri,Ar=1+Ri;Re=st=on=In=null,bi=hn(ut,Nn,_e-Ri,_e+Xi,0,ae.minX,ae.maxX,dt),wi=hn(ut,Nn,_e+mr,_e+Ar,0,ae.minX,ae.maxX,dt),ut=null,bi&&(Re=hn(bi,Nn,ot-Ri,ot+Xi,1,ae.minY,ae.maxY,dt),st=hn(bi,Nn,ot+mr,ot+Ar,1,ae.minY,ae.maxY,dt),bi=null),wi&&(on=hn(wi,Nn,ot-Ri,ot+Xi,1,ae.minY,ae.maxY,dt),In=hn(wi,Nn,ot+mr,ot+Ar,1,ae.minY,ae.maxY,dt),wi=null),Bt>1&&console.timeEnd("clipping"),Vt.push(Re||[],he+1,2*_e,2*ot),Vt.push(st||[],he+1,2*_e,2*ot+1),Vt.push(on||[],he+1,2*_e+1,2*ot),Vt.push(In||[],he+1,2*_e+1,2*ot+1)}}},Li.prototype.getTile=function(ut,he,_e){var ot=this.options,yt=ot.extent,Dt=ot.debug;if(ut<0||ut>24)return null;var jt=1<1&&console.log("drilling down to z%d-%d-%d",ut,he,_e);for(var dt,Bt=ut,Nn=he,Gn=_e;!dt&&Bt>0;)Bt--,Nn=Math.floor(Nn/2),Gn=Math.floor(Gn/2),dt=this.tiles[gn(Bt,Nn,Gn)];return dt&&dt.source?(Dt>1&&console.log("found parent tile z%d-%d-%d",Bt,Nn,Gn),Dt>1&&console.time("drilling down"),this.splitTile(dt.source,Bt,Nn,Gn,ut,he,_e),Dt>1&&console.timeEnd("drilling down"),this.tiles[Vt]?Lr(this.tiles[Vt],yt):null):null};class Jt extends l.VectorTileWorkerSource{constructor(he,_e,ot,yt,Dt){super(he,_e,ot,yt,Fn),Dt&&(this.loadGeoJSON=Dt)}loadData(he,_e){const ot=he&&he.request,yt=ot&&ot.collectResourceTiming;this.loadGeoJSON(he,(Dt,jt)=>{if(Dt||!jt)return _e(Dt);if("object"!=typeof jt)return _e(new Error(`Input data given to '${he.source}' is not a valid GeoJSON object.`));{K(jt,!0);try{if(he.filter){const dt=l.createExpression(he.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===dt.result)throw new Error(dt.value.map(Nn=>`${Nn.key}: ${Nn.message}`).join(", "));jt={type:"FeatureCollection",features:jt.features.filter(Nn=>dt.value.evaluate({zoom:0},Nn))}}this._geoJSONIndex=he.cluster?new We(function({superclusterOptions:dt,clusterProperties:Bt}){if(!Bt||!dt)return dt;const Nn={},Gn={},ae={accumulated:null,zoom:0},ft={properties:null},Z=Object.keys(Bt);for(const Re of Z){const[st,on]=Bt[Re],In=l.createExpression(on),bi=l.createExpression("string"==typeof st?[st,["accumulated"],["get",Re]]:st);Nn[Re]=In.value,Gn[Re]=bi.value}return dt.map=Re=>{ft.properties=Re;const st={};for(const on of Z)st[on]=Nn[on].evaluate(ae,ft);return st},dt.reduce=(Re,st)=>{ft.properties=st;for(const on of Z)ae.accumulated=Re[on],Re[on]=Gn[on].evaluate(ae,ft)},dt}(he)).load(jt.features):new Li(dt=jt,he.geojsonVtOptions)}catch(dt){return _e(dt)}this.loaded={};const Vt={};if(yt){const dt=l.getPerformanceMeasurement(ot);dt&&(Vt.resourceTiming={},Vt.resourceTiming[he.source]=JSON.parse(JSON.stringify(dt)))}_e(null,Vt)}var dt})}reloadTile(he,_e){const ot=this.loaded;return ot&&ot[he.uid]?super.reloadTile(he,_e):this.loadTile(he,_e)}loadGeoJSON(he,_e){if(he.request)l.getJSON(he.request,_e);else{if("string"!=typeof he.data)return _e(new Error(`Input data given to '${he.source}' is not a valid GeoJSON object.`));try{return _e(null,JSON.parse(he.data))}catch{return _e(new Error(`Input data given to '${he.source}' is not a valid GeoJSON object.`))}}}getClusterExpansionZoom(he,_e){try{_e(null,this._geoJSONIndex.getClusterExpansionZoom(he.clusterId))}catch(ot){_e(ot)}}getClusterChildren(he,_e){try{_e(null,this._geoJSONIndex.getChildren(he.clusterId))}catch(ot){_e(ot)}}getClusterLeaves(he,_e){try{_e(null,this._geoJSONIndex.getLeaves(he.clusterId,he.limit,he.offset))}catch(ot){_e(ot)}}}class Bi{constructor(he){this.self=he,this.actor=new l.Actor(he,this),this.layerIndexes={},this.availableImages={},this.isSpriteLoaded={},this.projections={},this.defaultProjection=l.getProjection({name:"mercator"}),this.workerSourceTypes={vector:l.VectorTileWorkerSource,geojson:Jt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(_e,ot)=>{if(this.workerSourceTypes[_e])throw new Error(`Worker source with name "${_e}" already registered.`);this.workerSourceTypes[_e]=ot},this.self.registerRTLTextPlugin=_e=>{if(l.plugin.isParsed())throw new Error("RTL text plugin already registered.");l.plugin.applyArabicShaping=_e.applyArabicShaping,l.plugin.processBidirectionalText=_e.processBidirectionalText,l.plugin.processStyledBidirectionalText=_e.processStyledBidirectionalText}}clearCaches(he,_e,ot){delete this.layerIndexes[he],delete this.availableImages[he],delete this.workerSources[he],delete this.demWorkerSources[he],ot()}checkIfReady(he,_e,ot){ot()}setReferrer(he,_e){this.referrer=_e}spriteLoaded(he,_e){this.isSpriteLoaded[he]=_e;for(const ot in this.workerSources[he]){const yt=this.workerSources[he][ot];for(const Dt in yt)yt[Dt]instanceof l.VectorTileWorkerSource&&(yt[Dt].isSpriteLoaded=_e,yt[Dt].fire(new l.Event("isSpriteLoaded")))}}setImages(he,_e,ot){this.availableImages[he]=_e;for(const yt in this.workerSources[he]){const Dt=this.workerSources[he][yt];for(const jt in Dt)Dt[jt].availableImages=_e}ot()}enableTerrain(he,_e,ot){this.terrain=_e,ot()}setProjection(he,_e){this.projections[he]=l.getProjection(_e)}setLayers(he,_e,ot){this.getLayerIndex(he).replace(_e),ot()}updateLayers(he,_e,ot){this.getLayerIndex(he).update(_e.layers,_e.removedIds),ot()}loadTile(he,_e,ot){const yt=this.enableTerrain?l.extend({enableTerrain:this.terrain},_e):_e;yt.projection=this.projections[he]||this.defaultProjection,this.getWorkerSource(he,_e.type,_e.source).loadTile(yt,ot)}loadDEMTile(he,_e,ot){const yt=this.enableTerrain?l.extend({buildQuadTree:this.terrain},_e):_e;this.getDEMWorkerSource(he,_e.source).loadTile(yt,ot)}reloadTile(he,_e,ot){const yt=this.enableTerrain?l.extend({enableTerrain:this.terrain},_e):_e;yt.projection=this.projections[he]||this.defaultProjection,this.getWorkerSource(he,_e.type,_e.source).reloadTile(yt,ot)}abortTile(he,_e,ot){this.getWorkerSource(he,_e.type,_e.source).abortTile(_e,ot)}removeTile(he,_e,ot){this.getWorkerSource(he,_e.type,_e.source).removeTile(_e,ot)}removeSource(he,_e,ot){if(!this.workerSources[he]||!this.workerSources[he][_e.type]||!this.workerSources[he][_e.type][_e.source])return;const yt=this.workerSources[he][_e.type][_e.source];delete this.workerSources[he][_e.type][_e.source],void 0!==yt.removeSource?yt.removeSource(_e,ot):ot()}loadWorkerSource(he,_e,ot){try{this.self.importScripts(_e.url),ot()}catch(yt){ot(yt.toString())}}syncRTLPluginState(he,_e,ot){try{l.plugin.setState(_e);const yt=l.plugin.getPluginURL();if(l.plugin.isLoaded()&&!l.plugin.isParsed()&&null!=yt){this.self.importScripts(yt);const Dt=l.plugin.isParsed();ot(Dt?void 0:new Error(`RTL Text Plugin failed to import scripts from ${yt}`),Dt)}}catch(yt){ot(yt.toString())}}getAvailableImages(he){let _e=this.availableImages[he];return _e||(_e=[]),_e}getLayerIndex(he){let _e=this.layerIndexes[he];return _e||(_e=this.layerIndexes[he]=new C),_e}getWorkerSource(he,_e,ot){return this.workerSources[he]||(this.workerSources[he]={}),this.workerSources[he][_e]||(this.workerSources[he][_e]={}),this.workerSources[he][_e][ot]||(this.workerSources[he][_e][ot]=new this.workerSourceTypes[_e]({send:(Dt,jt,Vt,dt,Bt,Nn)=>{this.actor.send(Dt,jt,Vt,he,Bt,Nn)},scheduler:this.actor.scheduler},this.getLayerIndex(he),this.getAvailableImages(he),this.isSpriteLoaded[he])),this.workerSources[he][_e][ot]}getDEMWorkerSource(he,_e){return this.demWorkerSources[he]||(this.demWorkerSources[he]={}),this.demWorkerSources[he][_e]||(this.demWorkerSources[he][_e]=new ie),this.demWorkerSources[he][_e]}enforceCacheSizeLimit(he,_e){l.enforceCacheSizeLimit(_e)}getWorkerPerformanceMetrics(he,_e,ot){ot(void 0,void 0)}}return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope&&(self.worker=new Bi(self)),Bi}),m(0,function(l){function B(u,n){if(Array.isArray(u)){if(!Array.isArray(n)||u.length!==n.length)return!1;for(let a=0;a"u"||typeof document>"u"||!(Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray)||!Function.prototype||!Function.prototype.bind||!(Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions)||!("JSON"in window&&"parse"in JSON&&"stringify"in JSON)||!function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var p,y,x=new Blob([""],{type:"text/javascript"}),D=URL.createObjectURL(x);try{y=new Worker(D),p=!0}catch{p=!1}return y&&y.terminate(),URL.revokeObjectURL(D),p}()||!("Uint8ClampedArray"in window)||!ArrayBuffer.isView||!function(){var p=document.createElement("canvas");p.width=p.height=1;var y=p.getContext("2d");if(!y)return!1;var x=y.getImageData(0,0,1,1);return x&&x.width===p.width}()||(void 0===ie[a=n&&n.failIfMajorPerformanceCaveat]&&(ie[a]=function(p){var y,D,I,R,x=(D=p,I=document.createElement("canvas"),(R=Object.create(C.webGLContextAttributes)).failIfMajorPerformanceCaveat=D,I.getContext("webgl",R)||I.getContext("experimental-webgl",R));if(!x)return!1;try{y=x.createShader(x.VERTEX_SHADER)}catch{return!1}return!(!y||x.isContextLost())&&(x.shaderSource(y,"void main() {}"),x.compileShader(y),!0===x.getShaderParameter(y,x.COMPILE_STATUS))}(a)),!ie[a]||document.documentMode));var n,a}var ie={};function fe(u,n,a){const p=l.window.document.createElement(u);return void 0!==n&&(p.className=n),a&&a.appendChild(p),p}function Pe(u,n,a){const p=l.window.document.createElementNS("http://www.w3.org/2000/svg",u);for(const y of Object.keys(n))p.setAttributeNS(null,y,n[y]);return a&&a.appendChild(p),p}C.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0};const K=l.window.document&&l.window.document.documentElement.style,be=K&&void 0!==K.userSelect?"userSelect":"WebkitUserSelect";let Te;function Me(){K&&be&&(Te=K[be],K[be]="none")}function de(){K&&be&&(K[be]=Te)}function nt(u){u.preventDefault(),u.stopPropagation(),l.window.removeEventListener("click",nt,!0)}function Ce(){l.window.addEventListener("click",nt,!0),l.window.setTimeout(()=>{l.window.removeEventListener("click",nt,!0)},0)}function oe(u,n){const a=u.getBoundingClientRect();return Ae(u,a,n)}function xe(u,n){const a=u.getBoundingClientRect(),p=[];for(let y=0;y=0?0:u.button}function Ae(u,n,a){const p=u.offsetWidth===n.width?1:u.offsetWidth/n.width;return new l.Point((a.clientX-n.left)*p,(a.clientY-n.top)*p)}function ye(u,n){var a=n[0],p=n[1],y=n[2],x=n[3],D=a*x-y*p;return D?(u[0]=x*(D=1/D),u[1]=-p*D,u[2]=-y*D,u[3]=a*D,u):null}function Ue(u){const{userImage:n}=u;return!!(n&&n.render&&n.render())&&(u.data.replace(new Uint8Array(n.data.buffer)),!0)}class ct extends l.Evented{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new l.RGBAImage({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(n){if(this.loaded!==n&&(this.loaded=n,n)){for(const{ids:a,callback:p}of this.requestors)this._notify(a,p);this.requestors=[]}}hasImage(n){return!!this.getImage(n)}getImage(n){return this.images[n]}addImage(n,a){this._validate(n,a)&&(this.images[n]=a)}_validate(n,a){let p=!0;return this._validateStretch(a.stretchX,a.data&&a.data.width)||(this.fire(new l.ErrorEvent(new Error(`Image "${n}" has invalid "stretchX" value`))),p=!1),this._validateStretch(a.stretchY,a.data&&a.data.height)||(this.fire(new l.ErrorEvent(new Error(`Image "${n}" has invalid "stretchY" value`))),p=!1),this._validateContent(a.content,a)||(this.fire(new l.ErrorEvent(new Error(`Image "${n}" has invalid "content" value`))),p=!1),p}_validateStretch(n,a){if(!n)return!0;let p=0;for(const y of n){if(y[0]{this.ready=!0})}broadcast(n,a,p){l.asyncAll(this.actors,(y,x)=>{y.send(n,a,x)},p=p||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(){this.actors.forEach(n=>{n.remove()}),this.actors=[],this.workerPool.release(this.id)}}function _n(u,n,a){return n*(l.EXTENT/(u.tileSize*Math.pow(2,a-u.tileID.overscaledZ)))}dn.Actor=l.Actor;class Ut{constructor(n,a,p,y){this.screenBounds=n,this.cameraPoint=a,this._screenRaycastCache={},this._cameraRaycastCache={},this.isAboveHorizon=p,this.screenGeometry=this.bufferedScreenGeometry(0),this.screenGeometryMercator=this._bufferedScreenMercator(0,y)}static createFromScreenPoints(n,a){let p,y;if(n instanceof l.Point||"number"==typeof n[0]){const x=l.Point.convert(n);p=[x],y=a.isPointAboveHorizon(x)}else{const x=l.Point.convert(n[0]),D=l.Point.convert(n[1]);p=[x,D],y=l.polygonizeBounds(x,D).every(I=>a.isPointAboveHorizon(I))}return new Ut(p,a.getCameraPoint(),y,a)}isPointQuery(){return 1===this.screenBounds.length}bufferedScreenGeometry(n){return l.polygonizeBounds(this.screenBounds[0],1===this.screenBounds.length?this.screenBounds[0]:this.screenBounds[1],n)}bufferedCameraGeometry(n){const a=this.screenBounds[0],p=1===this.screenBounds.length?this.screenBounds[0].add(new l.Point(1,1)):this.screenBounds[1],y=l.polygonizeBounds(a,p,0,!1);return this.cameraPoint.y>p.y&&(this.cameraPoint.x>a.x&&this.cameraPoint.x=p.x?y[2]=this.cameraPoint:this.cameraPoint.x<=a.x&&(y[3]=this.cameraPoint)),l.bufferConvexPolygon(y,n)}bufferedCameraGeometryGlobe(n){const a=this.screenBounds[0],p=1===this.screenBounds.length?this.screenBounds[0].add(new l.Point(1,1)):this.screenBounds[1],y=l.polygonizeBounds(a,p,n),x=this.cameraPoint.clone();switch(3*((x.y>a.y)+(x.y>p.y))+((x.x>a.x)+(x.x>p.x))){case 0:y[0]=x,y[4]=x.clone();break;case 1:y.splice(1,0,x);break;case 2:y[1]=x;break;case 3:y.splice(4,0,x);break;case 5:y.splice(2,0,x);break;case 6:y[3]=x;break;case 7:y.splice(3,0,x);break;case 8:y[2]=x}return y}containsTile(n,a,p,y=0){const x=n.queryPadding/a._pixelsPerMercatorPixel+1,D=p?this._bufferedCameraMercator(x,a):this._bufferedScreenMercator(x,a);let I=n.tileID.wrap+(D.unwrapped?y:0);const R=D.polygon.map(et=>l.getTilePoint(n.tileTransform,et,I));if(!l.polygonIntersectsBox(R,0,0,l.EXTENT,l.EXTENT))return;I=n.tileID.wrap+(this.screenGeometryMercator.unwrapped?y:0);const U=this.screenGeometryMercator.polygon.map(et=>l.getTileVec3(n.tileTransform,et,I)),z=U.map(et=>new l.Point(et[0],et[1])),Q=a.getFreeCameraOptions().position||new l.MercatorCoordinate(0,0,0),Se=l.getTileVec3(n.tileTransform,Q,I),je=U.map(et=>{const ne=l.sub(et,et,Se);return l.normalize(ne,ne),new l.Ray(Se,ne)}),Ye=_n(n,1,a.zoom)*a._pixelsPerMercatorPixel;return{queryGeometry:this,tilespaceGeometry:z,tilespaceRays:je,bufferedTilespaceGeometry:R,bufferedTilespaceBounds:($e=l.getBounds(R),$e.min.x=l.clamp($e.min.x,0,l.EXTENT),$e.min.y=l.clamp($e.min.y,0,l.EXTENT),$e.max.x=l.clamp($e.max.x,0,l.EXTENT),$e.max.y=l.clamp($e.max.y,0,l.EXTENT),$e),tile:n,tileID:n.tileID,pixelToTileUnitsFactor:Ye};var $e}_bufferedScreenMercator(n,a){const p=ke(n);if(this._screenRaycastCache[p])return this._screenRaycastCache[p];{let y;return y="globe"===a.projection.name?this._projectAndResample(this.bufferedScreenGeometry(n),a):{polygon:this.bufferedScreenGeometry(n).map(x=>a.pointCoordinate3D(x)),unwrapped:!0},this._screenRaycastCache[p]=y,y}}_bufferedCameraMercator(n,a){const p=ke(n);if(this._cameraRaycastCache[p])return this._cameraRaycastCache[p];{let y;return y="globe"===a.projection.name?this._projectAndResample(this.bufferedCameraGeometryGlobe(n),a):{polygon:this.bufferedCameraGeometry(n).map(x=>a.pointCoordinate3D(x)),unwrapped:!0},this._cameraRaycastCache[p]=y,y}}_projectAndResample(n,a){const p=function(x,D){const I=l.multiply([],D.pixelMatrix,D.globeMatrix),R=[0,-l.GLOBE_RADIUS,0,1],U=[0,l.GLOBE_RADIUS,0,1],z=[0,0,0,1];l.transformMat4$1(R,R,I),l.transformMat4$1(U,U,I),l.transformMat4$1(z,z,I);const Q=new l.Point(R[0]/R[3],R[1]/R[3]),Se=new l.Point(U[0]/U[3],U[1]/U[3]),je=l.polygonContainsPoint(x,Q)&&R[3]1?We(x.slice(0,et),D):[],ht=etnew l.Point(Ne(Lt.x),Lt.y)),ht=ht.map(Lt=>new l.Point(Ne(Lt.x),Lt.y));const gt=[...He];0===gt.length&>.push(ht[ht.length-1]);const Ot=l.number(gt[gt.length-1].y,(0===ht.length?He[0]:ht[0]).y,ne);let kt;return kt=je?[new l.Point(0,Ot),new l.Point(0,0),new l.Point(1,0),new l.Point(1,Ot)]:[new l.Point(1,Ot),new l.Point(1,1),new l.Point(0,1),new l.Point(0,Ot)],gt.push(...kt),0===ht.length?gt.push(He[0]):gt.push(...ht),{polygon:gt.map(Lt=>new l.MercatorCoordinate(Lt.x,Lt.y)),unwrapped:!1}}(n,a);if(p)return p;const y=function(x,D){let I=!1,R=-1/0,U=0;for(let Q=0;QR&&(R=x[Q].x,U=Q);for(let Q=0;Q.5&&(je.x{Q.x-=1}),{polygon:x,unwrapped:I}}(We(n,a).map(x=>new l.Point(Ne(x.x),x.y)),a);return{polygon:y.polygon.map(x=>new l.MercatorCoordinate(x.x,x.y)),unwrapped:y.unwrapped}}}function We(u,n){return l.resample(u,a=>{const p=n.pointCoordinate3D(a);a.x=p.x,a.y=p.y},1/256)}function Ne(u){return u<0?1+u%1:u%1}function ke(u){return 100*u|0}function it(u,n,a,p,y){const x=function(D,I){if(D)return y(D);if(I){u.url&&I.tiles&&u.tiles&&delete u.tiles;const R=l.pick(l.extend(I,u),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);I.vector_layers&&(R.vectorLayers=I.vector_layers,R.vectorLayerIds=R.vectorLayers.map(U=>U.id)),R.tiles=n.canonicalizeTileset(R,u.url),y(null,R)}};return u.url?l.getJSON(n.transformRequest(n.normalizeSourceURL(u.url,null,a,p),l.ResourceType.Source),x):l.exported.frame(()=>x(null,u))}class Qt{constructor(n,a,p){this.bounds=l.LngLatBounds.convert(this.validateBounds(n)),this.minzoom=a||0,this.maxzoom=p||24}validateBounds(n){return Array.isArray(n)&&4===n.length?[Math.max(-180,n[0]),Math.max(-90,n[1]),Math.min(180,n[2]),Math.min(90,n[3])]:[-180,-90,180,90]}contains(n){const a=Math.pow(2,n.z),p=Math.floor(l.mercatorXfromLng(this.bounds.getWest())*a),y=Math.floor(l.mercatorYfromLat(this.bounds.getNorth())*a),x=Math.ceil(l.mercatorXfromLng(this.bounds.getEast())*a),D=Math.ceil(l.mercatorYfromLat(this.bounds.getSouth())*a);return n.x>=p&&n.x=y&&n.y{this._tileJSONRequest=null,this._loaded=!0,y?(a&&console.warn(`Ensure that your requested language string is a valid BCP-47 code or list of codes. Found: ${a}`),p&&2!==p.length&&console.warn(`Requested worldview strings must be a valid ISO alpha-2 code. Found: ${p}`),this.fire(new l.ErrorEvent(y))):x&&(l.extend(this,x),x.bounds&&(this.tileBounds=new Qt(x.bounds,this.minzoom,this.maxzoom)),l.postTurnstileEvent(x.tiles,this.map._requestManager._customAccessToken),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"}))),n&&n(y)})}loaded(){return this._loaded}hasTile(n){return!this.tileBounds||this.tileBounds.contains(n.canonical)}onAdd(n){this.map=n,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(n){return this._options.tiles=n,this.reload(),this}setUrl(n){return this.url=n,this._options.url=n,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return l.extend({},this._options)}loadTile(n,a){const p=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme)),y={request:this.map._requestManager.transformRequest(p,l.ResourceType.Tile),data:void 0,uid:n.uid,tileID:n.tileID,tileZoom:n.tileZoom,zoom:n.tileID.overscaledZ,tileSize:this.tileSize*n.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:l.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId,isSymbolTile:n.isSymbolTile};if(y.request.collectResourceTiming=this._collectResourceTiming,n.actor&&"expired"!==n.state)"loading"===n.state?n.reloadCallback=a:n.request=n.actor.send("reloadTile",y,x.bind(this));else if(n.actor=this._tileWorkers[p]=this._tileWorkers[p]||this.dispatcher.getActor(),this.dispatcher.ready)n.request=n.actor.send("loadTile",y,x.bind(this),void 0,!0);else{const D=l.loadVectorTile.call({deduped:this._deduped},y,(I,R)=>{I||!R?x.call(this,I):(y.data={cacheControl:R.cacheControl,expires:R.expires,rawData:R.rawData.slice(0)},n.actor&&n.actor.send("loadTile",y,x.bind(this),void 0,!0))},!0);n.request={cancel:D}}function x(D,I){return delete n.request,n.aborted?a(null):D&&404!==D.status?a(D):(I&&I.resourceTiming&&(n.resourceTiming=I.resourceTiming),this.map._refreshExpiredTiles&&I&&n.setExpiryData(I),n.loadVectorData(I,this.map.painter),l.cacheEntryPossiblyAdded(this.dispatcher),a(null),void(n.reloadCallback&&(this.loadTile(n,n.reloadCallback),n.reloadCallback=null)))}}abortTile(n){n.request&&(n.request.cancel(),delete n.request),n.actor&&n.actor.send("abortTile",{uid:n.uid,type:this.type,source:this.id})}unloadTile(n){n.unloadVectorData(),n.actor&&n.actor.send("removeTile",{uid:n.uid,type:this.type,source:this.id})}hasTransition(){return!1}afterUpdate(){this._tileWorkers={}}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}class ae extends l.Evented{constructor(n,a,p,y){super(),this.id=n,this.dispatcher=p,this.setEventedParent(y),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=l.extend({type:"raster"},a),l.extend(this,l.pick(a,["url","scheme","tileSize"]))}load(n){this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=it(this._options,this.map._requestManager,null,null,(a,p)=>{this._tileJSONRequest=null,this._loaded=!0,a?this.fire(new l.ErrorEvent(a)):p&&(l.extend(this,p),p.bounds&&(this.tileBounds=new Qt(p.bounds,this.minzoom,this.maxzoom)),l.postTurnstileEvent(p.tiles),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"}))),n&&n(a)})}loaded(){return this._loaded}onAdd(n){this.map=n,this.load()}reload(){this.cancelTileJSONRequest(),this.load(()=>this.map.style._clearSource(this.id))}setTiles(n){return this._options.tiles=n,this.reload(),this}setUrl(n){return this.url=n,this._options.url=n,this.reload(),this}onRemove(){this.cancelTileJSONRequest()}serialize(){return l.extend({},this._options)}hasTile(n){return!this.tileBounds||this.tileBounds.contains(n.canonical)}loadTile(n,a){const p=l.exported.devicePixelRatio>=2,y=this.map._requestManager.normalizeTileURL(n.tileID.canonical.url(this.tiles,this.scheme),p,this.tileSize);n.request=l.getImage(this.map._requestManager.transformRequest(y,l.ResourceType.Tile),(x,D,I,R)=>(delete n.request,n.aborted?(n.state="unloaded",a(null)):x?(n.state="errored",a(x)):D?(this.map._refreshExpiredTiles&&n.setExpiryData({cacheControl:I,expires:R}),n.setTexture(D,this.map.painter),n.state="loaded",l.cacheEntryPossiblyAdded(this.dispatcher),void a(null)):a(null)))}static loadTileData(n,a,p){n.setTexture(a,p)}static unloadTileData(n,a){n.texture&&a.saveTileTexture(n.texture)}abortTile(n,a){n.request&&(n.request.cancel(),delete n.request),a()}unloadTile(n,a){n.texture&&this.map.painter.saveTileTexture(n.texture),a()}hasTransition(){return!1}cancelTileJSONRequest(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}}function ft(u,n,a,p,y,x,D,I){const R=[u,a,y,n,p,x,1,1,1],U=[D,I,1],z=l.adjoint([],R),[Q,Se,je]=l.transformMat3(U,U,l.transpose(z,z));return l.multiply$1(R,[Q,0,0,0,Se,0,0,0,je],R)}class Z extends l.Evented{constructor(n,a,p,y){super(),this.id=n,this.dispatcher=p,this.coordinates=a.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(y),this.options=a,this._dirty=!1}load(n,a){this._loaded=a||!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this.url=this.options.url,this._imageRequest=l.getImage(this.map._requestManager.transformRequest(this.url,l.ResourceType.Image),(p,y)=>{if(this._imageRequest=null,this._loaded=!0,p)this.fire(new l.ErrorEvent(p));else if(y){const{HTMLImageElement:x}=l.window;this.image=y instanceof x?l.exported.getImageData(y):y,this._dirty=!0,this.width=this.image.width,this.height=this.image.height,n&&(this.coordinates=n),this._finishLoading()}})}loaded(){return this._loaded}updateImage(n){return this.image&&n.url?(this._imageRequest&&n.url!==this.options.url&&(this._imageRequest.cancel(),this._imageRequest=null),this.options.url=n.url,this.load(n.coordinates,this._loaded),this):this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(n){this.map=n,this.load()}onRemove(){this._imageRequest&&(this._imageRequest.cancel(),this._imageRequest=null),this.texture&&this.texture.destroy()}setCoordinates(n){this.coordinates=n,this._boundsArray=void 0;const a=n.map(l.MercatorCoordinate.fromLngLat);return this.tileID=function(p){let y=1/0,x=1/0,D=-1/0,I=-1/0;for(const Q of p)y=Math.min(y,Q.x),x=Math.min(x,Q.y),D=Math.max(D,Q.x),I=Math.max(I,Q.y);const R=Math.max(D-y,I-x),U=Math.max(0,Math.floor(-Math.log(R)/Math.LN2)),z=Math.pow(2,U);return new l.CanonicalTileID(U,Math.floor((y+D)/2*z),Math.floor((x+I)/2*z))}(a),this.minzoom=this.maxzoom=this.tileID.z,this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"})),this}_clear(){this._boundsArray=void 0}_prepareData(n){for(const R in this.tiles){const U=this.tiles[R];"loaded"!==U.state&&(U.state="loaded",U.texture=this.texture)}if(this._boundsArray)return;const a=l.tileTransform(this.tileID,this.map.transform.projection),[p,y,x,D]=this.coordinates.map(R=>{const U=a.projection.project(R[0],R[1]);return l.getTilePoint(a,U)._round()});this.perspectiveTransform=function(R,U,z,Q,Se,je,Ye,$e,et,ne){const He=ft(0,0,R,0,0,U,R,U),ht=ft(z,Q,Se,je,Ye,$e,et,ne);return l.multiply$1(ht,l.adjoint(He,He),ht),[ht[6]/ht[8]*R/l.EXTENT,ht[7]/ht[8]*U/l.EXTENT]}(this.width,this.height,p.x,p.y,y.x,y.y,D.x,D.y,x.x,x.y);const I=this._boundsArray=new l.StructArrayLayout4i8;I.emplaceBack(p.x,p.y,0,0),I.emplaceBack(y.x,y.y,l.EXTENT,0),I.emplaceBack(D.x,D.y,0,l.EXTENT),I.emplaceBack(x.x,x.y,l.EXTENT,l.EXTENT),this.boundsBuffer&&this.boundsBuffer.destroy(),this.boundsBuffer=n.createVertexBuffer(I,l.boundsAttributes.members),this.boundsSegments=l.SegmentVector.simpleSegment(0,0,4,2)}prepare(){if(0===Object.keys(this.tiles).length||!this.image)return;const n=this.map.painter.context,a=n.gl;this._dirty&&(this.texture?this.texture.update(this.image):(this.texture=new l.Texture(n,this.image,a.RGBA),this.texture.bind(a.LINEAR,a.CLAMP_TO_EDGE)),this._dirty=!1),this._prepareData(n)}loadTile(n,a){this.tileID&&this.tileID.equals(n.tileID.canonical)?(this.tiles[String(n.tileID.wrap)]=n,n.buckets={},a(null)):(n.state="errored",a(null))}serialize(){return{type:"image",url:this.options.url,coordinates:this.coordinates}}hasTransition(){return!1}}const Re={vector:Gn,raster:ae,"raster-dem":class extends ae{constructor(u,n,a,p){super(u,n,a,p),this.type="raster-dem",this.maxzoom=22,this._options=l.extend({type:"raster-dem"},n),this.encoding=n.encoding||"mapbox"}loadTile(u,n){const a=this.map._requestManager.normalizeTileURL(u.tileID.canonical.url(this.tiles,this.scheme),!1,this.tileSize);function p(y,x){y&&(u.state="errored",n(y)),x&&(u.dem=x,u.dem.onDeserialize(),u.needsHillshadePrepare=!0,u.needsDEMTextureUpload=!0,u.state="loaded",n(null))}u.request=l.getImage(this.map._requestManager.transformRequest(a,l.ResourceType.Tile),function(y,x,D,I){if(delete u.request,u.aborted)u.state="unloaded",n(null);else if(y)u.state="errored",n(y);else if(x){this.map._refreshExpiredTiles&&u.setExpiryData({cacheControl:D,expires:I});const R=l.window.ImageBitmap&&x instanceof l.window.ImageBitmap&&(null==dr&&(dr=l.window.OffscreenCanvas&&new l.window.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof l.window.createImageBitmap),dr),U=1-(x.width-l.prevPowerOfTwo(x.width))/2;U<1||u.neighboringTiles||(u.neighboringTiles=this._getNeighboringTiles(u.tileID));const z=R?x:l.exported.getImageData(x,U),Q={uid:u.uid,coord:u.tileID,source:this.id,rawImageData:z,encoding:this.encoding,padding:U};u.actor&&"expired"!==u.state||(u.actor=this.dispatcher.getActor(),u.actor.send("loadDEMTile",Q,p.bind(this),void 0,!0))}}.bind(this))}_getNeighboringTiles(u){const n=u.canonical,a=Math.pow(2,n.z),p=(n.x-1+a)%a,y=0===n.x?u.wrap-1:u.wrap,x=(n.x+1+a)%a,D=n.x+1===a?u.wrap+1:u.wrap,I={};return I[new l.OverscaledTileID(u.overscaledZ,y,n.z,p,n.y).key]={backfilled:!1},I[new l.OverscaledTileID(u.overscaledZ,D,n.z,x,n.y).key]={backfilled:!1},n.y>0&&(I[new l.OverscaledTileID(u.overscaledZ,y,n.z,p,n.y-1).key]={backfilled:!1},I[new l.OverscaledTileID(u.overscaledZ,u.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},I[new l.OverscaledTileID(u.overscaledZ,D,n.z,x,n.y-1).key]={backfilled:!1}),n.y+1{if(this._loaded=!0,this._pendingLoad=null,a)this.fire(new l.ErrorEvent(a));else{const y={dataType:"source",sourceDataType:this._metadataFired?"content":"metadata"};this._collectResourceTiming&&p&&p.resourceTiming&&p.resourceTiming[this.id]&&(y.resourceTiming=p.resourceTiming[this.id]),this.fire(new l.Event("data",y)),this._metadataFired=!0}this._coalesce&&(this._updateWorkerData(),this._coalesce=!1)})}loaded(){return this._loaded}loadTile(u,n){const a=u.actor?"reloadTile":"loadTile";u.actor=this.actor,u.request=this.actor.send(a,{type:this.type,uid:u.uid,tileID:u.tileID,tileZoom:u.tileZoom,zoom:u.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:l.exported.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(p,y)=>(delete u.request,u.unloadVectorData(),u.aborted?n(null):p?n(p):(u.loadVectorData(y,this.map.painter,"reloadTile"===a),n(null))),void 0,"loadTile"===a)}abortTile(u){u.request&&(u.request.cancel(),delete u.request),u.aborted=!0}unloadTile(u){u.unloadVectorData(),this.actor.send("removeTile",{uid:u.uid,type:this.type,source:this.id})}onRemove(){this._pendingLoad&&this._pendingLoad.cancel()}serialize(){return l.extend({},this._options,{type:this.type,data:this._data})}hasTransition(){return!1}},video:class extends Z{constructor(u,n,a,p){super(u,n,a,p),this.roundZoom=!0,this.type="video",this.options=n}load(){this._loaded=!1;const u=this.options;this.urls=[];for(const n of u.urls)this.urls.push(this.map._requestManager.transformRequest(n,l.ResourceType.Source).url);l.getVideo(this.urls,(n,a)=>{this._loaded=!0,n?this.fire(new l.ErrorEvent(n)):a&&(this.video=a,this.video.loop=!0,this.video.setAttribute("playsinline",""),this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(u){if(this.video){const n=this.video.seekable;un.end(0)?this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${this.id}`,null,`Playback for this video can be set only between the ${n.start(0)} and ${n.end(0)}-second mark.`))):this.video.currentTime=u}}getVideo(){return this.video}onAdd(u){this.map||(this.map=u,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}prepare(){if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;const u=this.map.painter.context,n=u.gl;this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new l.Texture(u,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),this.width=this.video.videoWidth,this.height=this.video.videoHeight),this._prepareData(u)}serialize(){return{type:"video",urls:this.urls,coordinates:this.coordinates}}hasTransition(){return this.video&&!this.video.paused}},image:Z,canvas:class extends Z{constructor(u,n,a,p){super(u,n,a,p),n.coordinates?Array.isArray(n.coordinates)&&4===n.coordinates.length&&!n.coordinates.some(y=>!Array.isArray(y)||2!==y.length||y.some(x=>"number"!=typeof x))||this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${u}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${u}`,null,'missing required property "coordinates"'))),n.animate&&"boolean"!=typeof n.animate&&this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${u}`,null,'optional "animate" property must be a boolean value'))),n.canvas?"string"==typeof n.canvas||n.canvas instanceof l.window.HTMLCanvasElement||this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${u}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new l.ErrorEvent(new l.ValidationError(`sources.${u}`,null,'missing required property "canvas"'))),this.options=n,this.animate=void 0===n.animate||n.animate}load(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof l.window.HTMLCanvasElement?this.options.canvas:l.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new l.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())}getCanvas(){return this.canvas}onAdd(u){this.map=u,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}prepare(){let u=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,u=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,u=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;const n=this.map.painter.context;this.texture?(u||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new l.Texture(n,this.canvas,n.gl.RGBA,{premultiply:!0}),this._prepareData(n)}serialize(){return{type:"canvas",coordinates:this.coordinates}}hasTransition(){return this._playing}_hasInvalidDimensions(){for(const u of[this.canvas.width,this.canvas.height])if(isNaN(u)||u<=0)return!0;return!1}},custom:class extends l.Evented{constructor(u,n,a,p){super(),this.id=u,this.type="custom",this._dataType="raster",this._dispatcher=a,this._implementation=n,this.setEventedParent(p),this.scheme="xyz",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this._loaded=!1,this.roundZoom=!0,this._implementation||this.fire(new l.ErrorEvent(new Error(`Missing implementation for ${this.id} custom source`))),this._implementation.loadTile||this.fire(new l.ErrorEvent(new Error(`Missing loadTile implementation for ${this.id} custom source`))),this._implementation.bounds&&(this.tileBounds=new Qt(this._implementation.bounds,this.minzoom,this.maxzoom)),n.update=this._update.bind(this),n.clearTiles=this._clearTiles.bind(this),n.coveringTiles=this._coveringTiles.bind(this),l.extend(this,l.pick(n,["dataType","scheme","minzoom","maxzoom","tileSize","attribution","minTileCacheSize","maxTileCacheSize"]))}serialize(){return l.pick(this,["type","scheme","minzoom","maxzoom","tileSize","attribution"])}load(){this._loaded=!0,this.fire(new l.Event("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"}))}loaded(){return this._loaded}onAdd(u){this._map=u,this._loaded=!1,this.fire(new l.Event("dataloading",{dataType:"source"})),this._implementation.onAdd&&this._implementation.onAdd(u),this.load()}onRemove(u){this._implementation.onRemove&&this._implementation.onRemove(u)}hasTile(u){if(this._implementation.hasTile){const{x:n,y:a,z:p}=u.canonical;return this._implementation.hasTile({x:n,y:a,z:p})}return!this.tileBounds||this.tileBounds.contains(u.canonical)}loadTile(u,n){const{x:a,y:p,z:y}=u.tileID.canonical,x=new l.window.AbortController;u.request=Promise.resolve(this._implementation.loadTile({x:a,y:p,z:y},{signal:x.signal})).then(function(D){return delete u.request,u.aborted?(u.state="unloaded",n(null)):void 0===D?(u.state="errored",n(null)):null===D?(this.loadTileData(u,{width:this.tileSize,height:this.tileSize,data:null}),u.state="loaded",n(null)):(I=D)instanceof l.window.ImageData||I instanceof l.window.HTMLCanvasElement||I instanceof l.window.ImageBitmap||I instanceof l.window.HTMLImageElement?(this.loadTileData(u,D),u.state="loaded",void n(null)):(u.state="errored",n(new Error(`Can't infer data type for ${this.id}, only raster data supported at the moment`)));var I}.bind(this)).catch(D=>{20!==D.code&&(u.state="errored",n(D))}),u.request.cancel=()=>x.abort()}loadTileData(u,n){ae.loadTileData(u,n,this._map.painter)}unloadTileData(u){ae.unloadTileData(u,this._map.painter)}unloadTile(u,n){if(this.unloadTileData(u),this._implementation.unloadTile){const{x:a,y:p,z:y}=u.tileID.canonical;this._implementation.unloadTile({x:a,y:p,z:y})}n()}abortTile(u,n){u.request&&u.request.cancel&&(u.request.cancel(),delete u.request),n()}hasTransition(){return!1}_coveringTiles(){return this._map.transform.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,roundZoom:this.roundZoom}).map(u=>({x:u.canonical.x,y:u.canonical.y,z:u.canonical.z}))}_clearTiles(){this._map.style._clearSource(this.id)}_update(){this.fire(new l.Event("data",{dataType:"source",sourceDataType:"content"}))}}},st=function(u,n,a,p){const y=new Re[n.type](u,n,a,p);if(y.id!==u)throw new Error(`Expected Source id to be ${u} instead of ${y.id}`);return l.bindAll(["load","abort","unload","serialize","prepare"],y),y};function on(u,n){const a=l.identity([]);return l.scale(a,a,[.5*u.width,.5*-u.height,1]),l.translate(a,a,[1,-1,0]),l.multiply(a,a,u.calculateProjMatrix(n.toUnwrapped())),Float32Array.from(a)}function In(u,n,a,p,y,x,D,I=!1){const R=u.tilesIn(p,D,I);R.sort(wi);const U=[];for(const Q of R)U.push({wrappedTileID:Q.tile.tileID.wrapped().key,queryResults:Q.tile.queryRenderedFeatures(n,a,u._state,Q,y,x,on(u.transform,Q.tile.tileID),I)});const z=function(Q){const Se={},je={};for(const Ye of Q){const $e=Ye.queryResults,et=Ye.wrappedTileID,ne=je[et]=je[et]||{};for(const He in $e){const ht=$e[He],gt=ne[He]=ne[He]||{},Ot=Se[He]=Se[He]||[];for(const kt of ht)gt[kt.featureIndex]||(gt[kt.featureIndex]=!0,Ot.push(kt))}}return Se}(U);for(const Q in z)z[Q].forEach(Se=>{const je=Se.feature,Ye=je.layer;Ye&&"background"!==Ye.type&&"sky"!==Ye.type&&(je.source=Ye.source,Ye["source-layer"]&&(je.sourceLayer=Ye["source-layer"]),je.state=void 0!==je.id?u.getFeatureState(Ye["source-layer"],je.id):{})});return z}function bi(u,n){const a=u.getRenderableIds().map(x=>u.getTileByID(x)),p=[],y={};for(let x=0;x{a.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[mr]}numActive(){return Object.keys(this.active).length}}let Ar;function uo(){return Ar||(Ar=new Xi),Ar}function _o(u,n){const a={};for(const p in u)"ref"!==p&&(a[p]=u[p]);return l.refProperties.forEach(p=>{p in n&&(a[p]=n[p])}),a}function Eo(u){u=u.slice();const n=Object.create(null);for(let a=0;a0?(y-D)/I:0;return this.points[x].mult(1-R).add(this.points[a].mult(R))}}class Tt{constructor(n,a,p){const y=this.boxCells=[],x=this.circleCells=[];this.xCellCount=Math.ceil(n/p),this.yCellCount=Math.ceil(a/p);for(let D=0;Dthis.width||y<0||a>this.height)return!x&&[];const I=[];if(n<=0&&a<=0&&this.width<=p&&this.height<=y){if(x)return!0;for(let R=0;R0:I}_queryCircle(n,a,p,y,x){const D=n-p,I=n+p,R=a-p,U=a+p;if(I<0||D>this.width||U<0||R>this.height)return!y&&[];const z=[];return this._forEachCell(D,R,I,U,this._queryCellCircle,z,{hitTest:y,circle:{x:n,y:a,radius:p},seenUids:{box:{},circle:{}}},x),y?z.length>0:z}query(n,a,p,y,x){return this._query(n,a,p,y,!1,x)}hitTest(n,a,p,y,x){return this._query(n,a,p,y,!0,x)}hitTestCircle(n,a,p,y){return this._queryCircle(n,a,p,!0,y)}_queryCell(n,a,p,y,x,D,I,R){const U=I.seenUids,z=this.boxCells[x];if(null!==z){const Se=this.bboxes;for(const je of z)if(!U.box[je]){U.box[je]=!0;const Ye=4*je;if(n<=Se[Ye+2]&&a<=Se[Ye+3]&&p>=Se[Ye+0]&&y>=Se[Ye+1]&&(!R||R(this.boxKeys[je]))){if(I.hitTest)return D.push(!0),!0;D.push({key:this.boxKeys[je],x1:Se[Ye],y1:Se[Ye+1],x2:Se[Ye+2],y2:Se[Ye+3]})}}}const Q=this.circleCells[x];if(null!==Q){const Se=this.circles;for(const je of Q)if(!U.circle[je]){U.circle[je]=!0;const Ye=3*je;if(this._circleAndRectCollide(Se[Ye],Se[Ye+1],Se[Ye+2],n,a,p,y)&&(!R||R(this.circleKeys[je]))){if(I.hitTest)return D.push(!0),!0;{const $e=Se[Ye],et=Se[Ye+1],ne=Se[Ye+2];D.push({key:this.circleKeys[je],x1:$e-ne,y1:et-ne,x2:$e+ne,y2:et+ne})}}}}}_queryCellCircle(n,a,p,y,x,D,I,R){const U=I.circle,z=I.seenUids,Q=this.boxCells[x];if(null!==Q){const je=this.bboxes;for(const Ye of Q)if(!z.box[Ye]){z.box[Ye]=!0;const $e=4*Ye;if(this._circleAndRectCollide(U.x,U.y,U.radius,je[$e+0],je[$e+1],je[$e+2],je[$e+3])&&(!R||R(this.boxKeys[Ye])))return D.push(!0),!0}}const Se=this.circleCells[x];if(null!==Se){const je=this.circles;for(const Ye of Se)if(!z.circle[Ye]){z.circle[Ye]=!0;const $e=3*Ye;if(this._circlesCollide(je[$e],je[$e+1],je[$e+2],U.x,U.y,U.radius)&&(!R||R(this.circleKeys[Ye])))return D.push(!0),!0}}}_forEachCell(n,a,p,y,x,D,I,R){const U=this._convertToXCellCoord(n),z=this._convertToYCellCoord(a),Q=this._convertToXCellCoord(p),Se=this._convertToYCellCoord(y);for(let je=U;je<=Q;je++)for(let Ye=z;Ye<=Se;Ye++)if(x.call(this,n,a,p,y,this.xCellCount*Ye+je,D,I,R))return}_convertToXCellCoord(n){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(n*this.xScale)))}_convertToYCellCoord(n){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(n*this.yScale)))}_circlesCollide(n,a,p,y,x,D){const I=y-n,R=x-a,U=p+D;return U*U>I*I+R*R}_circleAndRectCollide(n,a,p,y,x,D,I){const R=(D-y)/2,U=Math.abs(n-(y+R));if(U>R+p)return!1;const z=(I-x)/2,Q=Math.abs(a-(x+z));if(Q>z+p)return!1;if(U<=R||Q<=z)return!0;const Se=U-R,je=Q-z;return Se*Se+je*je<=p*p}}const Et={unknown:0,flipRequired:1,flipNotRequired:2},ln=Math.tan(85*Math.PI/180);function vt(u,n,a,p,y,x,D){const I=l.create();if(a)if("globe"===x.name){const R=l.calculateGlobeLabelMatrix(y,n);l.multiply(I,I,R)}else{const R=ye([],D);I[0]=R[0],I[1]=R[1],I[4]=R[2],I[5]=R[3],p||l.rotateZ(I,I,y.angle)}else l.multiply(I,y.labelPlaneMatrix,u);return I}function Hn(u,n,a,p,y,x,D){const I=vt(u,n,a,p,y,x,D);return"globe"===x.name&&a||(I[2]=I[6]=I[10]=I[14]=0),I}function On(u,n,a,p,y,x,D){if(a){if("globe"===x.name){const I=vt(u,n,a,p,y,x,D);return l.invert(I,I),l.multiply(I,u,I),I}{const I=l.clone(u),R=l.identity([]);return R[0]=D[0],R[1]=D[1],R[4]=D[2],R[5]=D[3],l.multiply(I,I,R),p||l.rotateZ(I,I,-y.angle),I}}return y.glCoordMatrix}function Kn(u,n,a,p){const y=[u,n,a,1];a?l.transformMat4$1(y,y,p):en(y,y,p);const x=y[3];return y[0]/=x,y[1]/=x,y[2]/=x,y}function pi(u,n){return Math.min(.5+u/n*.5,1.5)}function ki(u,n){const a=u[0]/u[3],p=u[1]/u[3];return a>=-n[0]&&a<=n[0]&&p>=-n[1]&&p<=n[1]}function rr(u,n,a,p,y,x,D,I,R,U){const z=a.transform,Q=p?u.textSizeData:u.iconSizeData,Se=l.evaluateSizeForZoom(Q,a.transform.zoom),je="globe"===z.projection.name,Ye=[256/a.width*2+1,256/a.height*2+1],$e=p?u.text.dynamicLayoutVertexArray:u.icon.dynamicLayoutVertexArray;$e.clear();let et=null;je&&(et=p?u.text.globeExtVertexArray:u.icon.globeExtVertexArray);const ne=u.lineVertexArray,He=p?u.text.placedSymbolArray:u.icon.placedSymbolArray,ht=a.transform.width/a.transform.height;let gt,Ot=!1;for(let kt=0;ktMath.abs(a)?{useVertical:!0}:u===l.WritingMode.vertical?p>0?{needsFlipping:!0}:null:n!==Et.unknown&&(0===(y=a)||Math.abs(p/y)>ln)?n===Et.flipRequired?{needsFlipping:!0}:null:a<0?{needsFlipping:!0}:null;var y}function Ee(u,n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e,et,ne,He){const ht=n/24,gt=u.lineOffsetX*ht,Ot=u.lineOffsetY*ht,{lineStartIndex:kt,glyphStartIndex:Lt,numGlyphs:qt,segment:$t,writingMode:cn,flipState:Wn}=u,nn=kt+u.lineLength,Mn=pn=>{if(z){const[Zn,kn,ti]=pn.up,Ii=U.length;l.updateGlobeVertexNormal(z,Ii+0,Zn,kn,ti),l.updateGlobeVertexNormal(z,Ii+1,Zn,kn,ti),l.updateGlobeVertexNormal(z,Ii+2,Zn,kn,ti),l.updateGlobeVertexNormal(z,Ii+3,Zn,kn,ti)}const[qn,sn,An]=pn.point;l.addDynamicAttributes(U,qn,sn,An,pn.angle)};if(qt>1){const pn=_i(ht,I,gt,Ot,a,Q,Se,u,R,x,je,$e,!1,et,ne,He);if(!pn)return{notEnoughRoom:!0};if(p&&!a){let[qn,sn,An]=pn.first.point,[Zn,kn,ti]=pn.last.point;[qn,sn]=Kn(qn,sn,An,D),[Zn,kn]=Kn(Zn,kn,ti,D);const Ii=or(cn,Wn,(Zn-qn)*Ye,kn-sn);if(u.flipState=Ii&&Ii.needsFlipping?Et.flipRequired:Et.flipNotRequired,Ii)return Ii}Mn(pn.first);for(let qn=Lt+1;qn0?Zn:ee(Se,An,qn,1,y,void 0,et,ne.canonical),ti=or(cn,Wn,(kn[0]-qn[0])*Ye,kn[1]-qn[1]);if(u.flipState=ti&&ti.needsFlipping?Et.flipRequired:Et.flipNotRequired,ti)return ti}const pn=qe(ht*I.getoffsetX(Lt),gt,Ot,a,Q,Se,$t,kt,nn,R,x,je,$e,!1,!1,et,ne,He);if(!pn)return{notEnoughRoom:!0};Mn(pn)}return{}}function Be(u,n,a,p,y){const{x,y:D,z:I}=p.projectTilePoint(u.x,u.y,n);if(!y)return Kn(x,D,I,a);const[R,U,z]=y(u);return Kn(x+R,D+U,I+z,a)}function ee(u,n,a,p,y,x,D,I){const R=Be(u.sub(n)._unit()._add(u),I,y,D,x);return l.sub(R,a,R),l.normalize(R,R),l.scaleAndAdd(R,a,R,p)}function qe(u,n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e,et,ne){const He=p?u-n:u+n;let ht=He>0?1:-1,gt=0;p&&(ht*=-1,gt=Math.PI),ht<0&&(gt+=Math.PI);let Ot=I+D+(ht>0?0:1)|0,kt=y,Lt=y,qt=0,$t=0;const cn=Math.abs(He),Wn=[],nn=[];let Mn=x,pn=Mn;const qn=()=>ee(pn,Mn,Lt,cn-qt+1,z,Se,$e,et.canonical);for(;qt+$t<=cn;){if(Ot+=ht,Ot=R)return null;if(Lt=kt,pn=Mn,Wn.push(Lt),je&&nn.push(pn),Mn=new l.Point(U.getx(Ot),U.gety(Ot)),kt=Q[Ot],!kt){const Oi=Be(Mn,et.canonical,z,$e,Se);kt=Oi[3]>0?Q[Ot]=Oi:qn()}qt+=$t,$t=l.distance(Lt,kt)}Ye&&Se&&(Q[Ot]&&(kt=qn(),$t=l.distance(Lt,kt)),Q[Ot]=kt);const sn=(cn-qt)/$t,An=Mn.sub(pn)._mult(sn)._add(pn),Zn=l.sub([],kt,Lt),kn=l.scaleAndAdd([],Lt,Zn,sn);let ti=[0,0,1],Ii=Zn[0],$i=Zn[1];if(ne&&(ti=$e.upVector(et.canonical,An.x,An.y),0!==ti[0]||0!==ti[1]||1!==ti[2])){const Oi=[ti[2],0,-ti[0]],cr=l.cross([],ti,Oi);l.normalize(Oi,Oi),l.normalize(cr,cr),Ii=l.dot(Zn,Oi),$i=l.dot(Zn,cr)}if(a){const Oi=l.cross([],ti,Zn);l.normalize(Oi,Oi),l.scaleAndAdd(kn,kn,Oi,a*ht)}const mi=gt+Math.atan2($i,Ii);return Wn.push(kn),je&&nn.push(An),{point:kn,angle:mi,path:Wn,tilePath:nn,up:ti}}function St(u,n){const a=n.length,p=a+4*u;n.resize(p),n.float32.fill(-1/0,4*a,4*p)}function en(u,n,a){const p=n[0],y=n[1];return u[0]=a[0]*p+a[4]*y+a[12],u[1]=a[1]*p+a[5]*y+a[13],u[3]=a[3]*p+a[7]*y+a[15],u}const jn=100;class V{constructor(n,a,p=new Tt(n.width+200,n.height+200,25),y=new Tt(n.width+200,n.height+200,25)){this.transform=n,this.grid=p,this.ignoredGrid=y,this.pitchfactor=Math.cos(n._pitch)*n.cameraToCenterDistance,this.screenRightBoundary=n.width+jn,this.screenBottomBoundary=n.height+jn,this.gridRightBoundary=n.width+200,this.gridBottomBoundary=n.height+200,this.fogState=a}placeCollisionBox(n,a,p,y,x,D,I,R){let U=p.projectedAnchorX,z=p.projectedAnchorY,Q=p.projectedAnchorZ;const Se=p.elevation,je=p.tileID,Ye=n.getProjection();if(Se&&je){const[kt,Lt,qt]=Ye.upVector(je.canonical,p.tileAnchorX,p.tileAnchorY),$t=Ye.upVectorScale(je.canonical,this.transform.center.lat,this.transform.worldSize).metersToTile;U+=kt*Se*$t,z+=Lt*Se*$t,Q+=qt*Se*$t}const $e=this.projectAndGetPerspectiveRatio(I,U,z,Q,p.tileID,"globe"===Ye.name||!!Se||this.transform.pitch>0,Ye),et=D*$e.perspectiveRatio,ne=(p.x1*a+y.x-p.padding)*et+$e.point.x,He=(p.y1*a+y.y-p.padding)*et+$e.point.y,ht=(p.x2*a+y.x+p.padding)*et+$e.point.x,gt=(p.y2*a+y.y+p.padding)*et+$e.point.y,Ot=$e.perspectiveRatio<=.55||$e.occluded;return!this.isInsideGrid(ne,He,ht,gt)||!x&&this.grid.hitTest(ne,He,ht,gt,R)||Ot?{box:[],offscreen:!1,occluded:$e.occluded}:{box:[ne,He,ht,gt],offscreen:this.isOffscreen(ne,He,ht,gt),occluded:!1}}placeCollisionCircles(n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e){const et=[],ne=this.transform.elevation,He=n.getProjection(),ht=ne?ne.getAtTileOffsetFunc($e,this.transform.center.lat,this.transform.worldSize,He):null,gt=new l.Point(p.tileAnchorX,p.tileAnchorY);let{x:Ot,y:kt,z:Lt}=He.projectTilePoint(gt.x,gt.y,$e.canonical);if(ht){const[An,Zn,kn]=ht(gt);Ot+=An,kt+=Zn,Lt+=kn}const qt="globe"===He.name,$t=this.projectAndGetPerspectiveRatio(I,Ot,kt,Lt,$e,qt||!!ne||this.transform.pitch>0,He),{perspectiveRatio:cn}=$t,Wn=(Q?D/cn:D*cn)/l.ONE_EM,nn=Kn(Ot,kt,Lt,R),Mn=$t.signedDistanceFromCamera>0?_i(Wn,x,p.lineOffsetX*Wn,p.lineOffsetY*Wn,!1,nn,gt,p,y,R,{},ne&&!Q?ht:null,Q&&!!ne,He,$e,Q):null;let pn=!1,qn=!1,sn=!0;if(Mn&&!$t.occluded){const An=.5*je*cn+Ye,Zn=new l.Point(-100,-100),kn=new l.Point(this.screenRightBoundary,this.screenBottomBoundary),ti=new Qe,{first:Ii,last:$i}=Mn,mi=Ii.path.length;let Oi=[];for(let Ci=mi-1;Ci>=1;Ci--)Oi.push(Ii.path[Ci]);for(let Ci=1;Ci<$i.path.length;Ci++)Oi.push($i.path[Ci]);const cr=2.5*An;U&&(Oi=Oi.map(([Ci,br,Gr],Ir)=>(ht&&!qt&&(Gr=ht(IrCi[3]<=0)&&(Oi=[]));let lr=[];if(Oi.length>0){let Ci=1/0,br=-1/0,Gr=1/0,Ir=-1/0;for(const Br of Oi)Ci=Math.min(Ci,Br[0]),Gr=Math.min(Gr,Br[1]),br=Math.max(br,Br[0]),Ir=Math.max(Ir,Br[1]);br>=Zn.x&&Ci<=kn.x&&Ir>=Zn.y&&Gr<=kn.y&&(lr=[Oi.map(Br=>new l.Point(Br[0],Br[1]))],(Cikn.x||Grkn.y)&&(lr=l.clipLine(lr,Zn.x,Zn.y,kn.x,kn.y)))}for(const Ci of lr){ti.reset(Ci,.25*An);let br=0;br=ti.length<=.5*An?1:Math.ceil(ti.paddedLength/cr)+1;for(let Gr=0;Gr0?(l.transformMat4$1(R,R,n),this.fogState&&x&&"globe"!==I.name&&(U=function(Se,je,Ye,$e,et,ne){const He=ne.calculateFogTileMatrix(et),ht=[je,Ye,$e];return l.transformMat4(ht,ht,He),De(Se,ht,ne.pitch,ne._fov)}(this.fogState,a,p,y,x.toUnwrapped(),this.transform)>.9)):en(R,R,n);const z=R[3];return{point:new l.Point((R[0]/z+1)/2*this.transform.width+jn,(-R[1]/z+1)/2*this.transform.height+jn),perspectiveRatio:Math.min(.5+this.transform.getCameraToCenterDistance(I)/z*.5,1.5),signedDistanceFromCamera:z,occluded:D&&R[2]>z||U}}isOffscreen(n,a,p,y){return p=this.screenRightBoundary||ythis.screenBottomBoundary}isInsideGrid(n,a,p,y){return p>=0&&n=0&&ap.collisionGroupID===a}}return this.collisionGroups[n]}}function si(u,n,a,p,y){const{horizontalAlign:x,verticalAlign:D}=l.getAnchorAlignment(u),I=-(x-.5)*n,R=-(D-.5)*a,U=l.evaluateVariableOffset(u,p);return new l.Point(I+U[0]*y,R+U[1]*y)}function fi(u,n,a,p,y){const x=new l.Point(u,n);return a&&x._rotate(p?y:-y),x}class yi{constructor(n,a,p,y,x){this.transform=n.clone(),this.projection=n.projection.name,this.collisionIndex=new V(this.transform,x),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=a,this.retainedQueryData={},this.collisionGroups=new Xn(p),this.collisionCircleArrays={},this.prevPlacement=y,y&&(y.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(n,a,p,y){const x=p.getBucket(a),D=p.latestFeatureIndex;if(!x||!D||a.id!==x.layerIds[0])return;const I=x.layers[0].layout,R=p.collisionBoxArray,U=Math.pow(2,this.transform.zoom-p.tileID.overscaledZ),z=p.tileSize/l.EXTENT,Q=p.tileID.toUnwrapped();this.transform.setProjection(x.projection);const Se=(je=p.tileID,Ye=x.getProjection(),$e=this.transform,Ye.name===this.projection?$e.calculateProjMatrix(je.toUnwrapped()):ue($e,Ye,je));var je,Ye,$e;const et="map"===I.get("text-pitch-alignment"),ne="map"===I.get("text-rotation-alignment");a.compileFilter();const He=a.dynamicFilter(),ht=a.dynamicFilterNeedsFeature(),gt=this.transform.calculatePixelsToTileUnitsMatrix(p),Ot=Hn(Se,p.tileID.canonical,et,ne,this.transform,x.getProjection(),gt);let kt=null;if(et){const $t=On(Se,p.tileID.canonical,et,ne,this.transform,x.getProjection(),gt);kt=l.multiply([],this.transform.labelPlaneMatrix,$t)}let Lt=null;He&&p.latestFeatureIndex&&(Lt={unwrappedTileID:Q,dynamicFilter:He,dynamicFilterNeedsFeature:ht,featureIndex:p.latestFeatureIndex}),this.retainedQueryData[x.bucketInstanceId]=new $n(x.bucketInstanceId,D,x.sourceLayerIndex,x.index,p.tileID);const qt={bucket:x,layout:I,posMatrix:Se,textLabelPlaneMatrix:Ot,labelToScreenMatrix:kt,clippingData:Lt,scale:U,textPixelRatio:z,holdingForFade:p.holdingForFade(),collisionBoxArray:R,partiallyEvaluatedTextSize:l.evaluateSizeForZoom(x.textSizeData,this.transform.zoom),partiallyEvaluatedIconSize:l.evaluateSizeForZoom(x.iconSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(x.sourceID)};if(y)for(const $t of x.sortKeyRanges){const{sortKey:cn,symbolInstanceStart:Wn,symbolInstanceEnd:nn}=$t;n.push({sortKey:cn,symbolInstanceStart:Wn,symbolInstanceEnd:nn,parameters:qt})}else n.push({symbolInstanceStart:0,symbolInstanceEnd:x.symbolInstances.length,parameters:qt})}attemptAnchorPlacement(n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e,et,ne,He){const{textOffset0:ht,textOffset1:gt,crossTileID:Ot}=Se,kt=[ht,gt],Lt=si(n,p,y,kt,x),qt=this.collisionIndex.placeCollisionBox(Ye,x,a,fi(Lt.x,Lt.y,D,I,this.transform.angle),Q,R,U,z.predicate);if(et){const $t=Ye.getSymbolInstanceIconSize(He,this.transform.zoom,Se.placedIconSymbolIndex);if(0===this.collisionIndex.placeCollisionBox(Ye,$t,et,fi(Lt.x,Lt.y,D,I,this.transform.angle),Q,R,U,z.predicate).box.length)return}if(qt.box.length>0){let $t;return this.prevPlacement&&this.prevPlacement.variableOffsets[Ot]&&this.prevPlacement.placements[Ot]&&this.prevPlacement.placements[Ot].text&&($t=this.prevPlacement.variableOffsets[Ot].anchor),this.variableOffsets[Ot]={textOffset:kt,width:p,height:y,anchor:n,textScale:x,prevAnchor:$t},this.markUsedJustification(Ye,n,Se,$e),Ye.allowVerticalPlacement&&(this.markUsedOrientation(Ye,$e,Se),this.placedOrientations[Ot]=$e),{shift:Lt,placedGlyphBoxes:qt}}}placeLayerBucketPart(n,a,p,y){const{bucket:x,layout:D,posMatrix:I,textLabelPlaneMatrix:R,labelToScreenMatrix:U,clippingData:z,textPixelRatio:Q,holdingForFade:Se,collisionBoxArray:je,partiallyEvaluatedTextSize:Ye,partiallyEvaluatedIconSize:$e,collisionGroup:et}=n.parameters,ne=D.get("text-optional"),He=D.get("icon-optional"),ht=D.get("text-allow-overlap"),gt=D.get("icon-allow-overlap"),Ot="map"===D.get("text-rotation-alignment"),kt="map"===D.get("text-pitch-alignment"),Lt="none"!==D.get("icon-text-fit"),qt="viewport-y"===D.get("symbol-z-order");this.transform.setProjection(x.projection);let $t=ht&&(gt||!x.hasIconData()||He),cn=gt&&(ht||!x.hasTextData()||ne);!x.collisionArrays&&je&&x.deserializeCollisionBoxes(je),p&&y&&x.updateCollisionDebugBuffers(this.transform.zoom,je);const Wn=(nn,Mn,pn)=>{const{crossTileID:qn,numVerticalGlyphVertices:sn}=nn;if(z){const co={zoom:this.transform.zoom,pitch:this.transform.pitch};let yr=null;if(z.dynamicFilterNeedsFeature){const Er=this.retainedQueryData[x.bucketInstanceId];yr=z.featureIndex.loadFeature({featureIndex:nn.featureIndex,bucketIndex:Er.bucketIndex,sourceLayerIndex:Er.sourceLayerIndex,layoutVertexArrayOffset:0})}if(!(0,z.dynamicFilter)(co,yr,this.retainedQueryData[x.bucketInstanceId].tileID.canonical,new l.Point(nn.tileAnchorX,nn.tileAnchorY),this.transform.calculateDistanceTileData(z.unwrappedTileID)))return this.placements[qn]=new vn(!1,!1,!1,!0),void a.add(qn)}if(a.has(qn))return;if(Se)return void(this.placements[qn]=new vn(!1,!1,!1));let An=!1,Zn=!1,kn=!0,ti=!1,Ii=!1,$i=null,mi={box:null,offscreen:null,occluded:null},Oi={box:null,offscreen:null,occluded:null},cr=null,lr=null,Ci=null,br=0,Gr=0,Ir=0;pn.textFeatureIndex?br=pn.textFeatureIndex:nn.useRuntimeCollisionCircles&&(br=nn.featureIndex),pn.verticalTextFeatureIndex&&(Gr=pn.verticalTextFeatureIndex);const Br=co=>{co.tileID=this.retainedQueryData[x.bucketInstanceId].tileID;const yr=this.transform.elevation;(yr||co.elevation)&&(co.elevation=yr?yr.getAtTileOffset(co.tileID,co.tileAnchorX,co.tileAnchorY):0)},jo=pn.textBox;if(jo){Br(jo);const co=Er=>{let go=l.WritingMode.horizontal;if(x.allowVerticalPlacement&&!Er&&this.prevPlacement){const rs=this.prevPlacement.placedOrientations[qn];rs&&(this.placedOrientations[qn]=rs,go=rs,this.markUsedOrientation(x,go,nn))}return go},yr=(Er,go)=>{if(x.allowVerticalPlacement&&sn>0&&pn.verticalTextBox){for(const rs of x.writingModes)if(rs===l.WritingMode.vertical?(mi=go(),Oi=mi):mi=Er(),mi&&mi.box&&mi.box.length)break}else mi=Er()};if(D.get("text-variable-anchor")){let Er=D.get("text-variable-anchor");if(this.prevPlacement&&this.prevPlacement.variableOffsets[qn]){const no=this.prevPlacement.variableOffsets[qn];Er.indexOf(no.anchor)>0&&(Er=Er.filter(os=>os!==no.anchor),Er.unshift(no.anchor))}const go=(no,os,xc)=>{const ic=x.getSymbolInstanceTextSize(Ye,nn,this.transform.zoom,Mn),bc=(no.x2-no.x1)*ic+2*no.padding,Ya=(no.y2-no.y1)*ic+2*no.padding,hl=Lt&&!gt?os:null;hl&&Br(hl);let Sl={box:[],offscreen:!1,occluded:!1};const ku=ht?2*Er.length:Er.length;for(let Pl=0;Pl=Er.length,nn,Mn,x,xc,hl,Ye,$e);if(fl&&(Sl=fl.placedGlyphBoxes,Sl&&Sl.box&&Sl.box.length)){An=!0,$i=fl.shift;break}}return Sl};yr(()=>go(jo,pn.iconBox,l.WritingMode.horizontal),()=>{const no=pn.verticalTextBox;return no&&Br(no),x.allowVerticalPlacement&&!(mi&&mi.box&&mi.box.length)&&sn>0&&no?go(no,pn.verticalIconBox,l.WritingMode.vertical):{box:null,offscreen:null,occluded:null}}),mi&&(An=mi.box,kn=mi.offscreen,ti=mi.occluded);const rs=co(!(!mi||!mi.box));if(!An&&this.prevPlacement){const no=this.prevPlacement.variableOffsets[qn];no&&(this.variableOffsets[qn]=no,this.markUsedJustification(x,no.anchor,nn,rs))}}else{const Er=(go,rs)=>{const no=x.getSymbolInstanceTextSize(Ye,nn,this.transform.zoom,Mn),os=this.collisionIndex.placeCollisionBox(x,no,go,new l.Point(0,0),ht,Q,I,et.predicate);return os&&os.box&&os.box.length&&(this.markUsedOrientation(x,rs,nn),this.placedOrientations[qn]=rs),os};yr(()=>Er(jo,l.WritingMode.horizontal),()=>{const go=pn.verticalTextBox;return x.allowVerticalPlacement&&sn>0&&go?(Br(go),Er(go,l.WritingMode.vertical)):{box:null,offscreen:null,occluded:null}}),co(!!(mi&&mi.box&&mi.box.length))}}if(cr=mi,An=cr&&cr.box&&cr.box.length>0,kn=cr&&cr.offscreen,ti=cr&&cr.occluded,nn.useRuntimeCollisionCircles){const co=x.text.placedSymbolArray.get(nn.centerJustifiedTextSymbolIndex>=0?nn.centerJustifiedTextSymbolIndex:nn.verticalPlacedTextSymbolIndex),yr=l.evaluateSizeForFeature(x.textSizeData,Ye,co),Er=D.get("text-padding");lr=this.collisionIndex.placeCollisionCircles(x,ht,co,x.lineVertexArray,x.glyphOffsetArray,yr,I,R,U,p,kt,et.predicate,nn.collisionCircleDiameter*yr/l.ONE_EM,Er,this.retainedQueryData[x.bucketInstanceId].tileID),An=ht||lr.circles.length>0&&!lr.collisionDetected,kn=kn&&lr.offscreen,ti=lr.occluded}if(pn.iconFeatureIndex&&(Ir=pn.iconFeatureIndex),pn.iconBox){const co=yr=>{Br(yr);const Er=Lt&&$i?fi($i.x,$i.y,Ot,kt,this.transform.angle):new l.Point(0,0),go=x.getSymbolInstanceIconSize($e,this.transform.zoom,nn.placedIconSymbolIndex);return this.collisionIndex.placeCollisionBox(x,go,yr,Er,gt,Q,I,et.predicate)};Oi&&Oi.box&&Oi.box.length&&pn.verticalIconBox?(Ci=co(pn.verticalIconBox),Zn=Ci.box.length>0):(Ci=co(pn.iconBox),Zn=Ci.box.length>0),kn=kn&&Ci.offscreen,Ii=Ci.occluded}const is=ne||0===nn.numHorizontalGlyphVertices&&0===sn,sa=He||0===nn.numIconVertices;if(is||sa?sa?is||(Zn=Zn&&An):An=Zn&&An:Zn=An=Zn&&An,An&&cr&&cr.box&&this.collisionIndex.insertCollisionBox(cr.box,D.get("text-ignore-placement"),x.bucketInstanceId,Oi&&Oi.box&&Gr?Gr:br,et.ID),Zn&&Ci&&this.collisionIndex.insertCollisionBox(Ci.box,D.get("icon-ignore-placement"),x.bucketInstanceId,Ir,et.ID),lr&&(An&&this.collisionIndex.insertCollisionCircles(lr.circles,D.get("text-ignore-placement"),x.bucketInstanceId,br,et.ID),p)){const co=x.bucketInstanceId;let yr=this.collisionCircleArrays[co];void 0===yr&&(yr=this.collisionCircleArrays[co]=new Vn);for(let Er=0;Er=0;--Mn){const pn=nn[Mn];Wn(x.symbolInstances.get(pn),pn,x.collisionArrays[pn])}}else for(let nn=n.symbolInstanceStart;nn=0&&(n.text.placedSymbolArray.get(x).crossTileID=Q>=0&&x!==Q?0:U),D>=0&&(n.text.placedSymbolArray.get(D).crossTileID=Q>=0&&D!==Q?0:U),I>=0&&(n.text.placedSymbolArray.get(I).crossTileID=Q>=0&&I!==Q?0:U),R>=0&&(n.text.placedSymbolArray.get(R).crossTileID=Q>=0&&R!==Q?0:U)}markUsedOrientation(n,a,p){const y=a===l.WritingMode.horizontal||a===l.WritingMode.horizontalOnly?a:0,x=a===l.WritingMode.vertical?a:0,{leftJustifiedTextSymbolIndex:D,centerJustifiedTextSymbolIndex:I,rightJustifiedTextSymbolIndex:R,verticalPlacedTextSymbolIndex:U}=p,z=n.text.placedSymbolArray;D>=0&&(z.get(D).placedOrientation=y),I>=0&&(z.get(I).placedOrientation=y),R>=0&&(z.get(R).placedOrientation=y),U>=0&&(z.get(U).placedOrientation=x)}commit(n){this.commitTime=n,this.zoomAtLastRecencyCheck=this.transform.zoom;const a=this.prevPlacement;let p=!1;this.prevZoomAdjustment=a?a.zoomAdjustment(this.transform.zoom):0;const y=a?a.symbolFadeChange(n):1,x=a?a.opacities:{},D=a?a.variableOffsets:{},I=a?a.placedOrientations:{};for(const R in this.placements){const U=this.placements[R],z=x[R];z?(this.opacities[R]=new tn(z,y,U.text,U.icon,null,U.clipped),p=p||U.text!==z.text.placed||U.icon!==z.icon.placed):(this.opacities[R]=new tn(null,y,U.text,U.icon,U.skipFade,U.clipped),p=p||U.text||U.icon)}for(const R in x){const U=x[R];if(!this.opacities[R]){const z=new tn(U,y,!1,!1);z.isHidden()||(this.opacities[R]=z,p=p||U.text.placed||U.icon.placed)}}for(const R in D)this.variableOffsets[R]||!this.opacities[R]||this.opacities[R].isHidden()||(this.variableOffsets[R]=D[R]);for(const R in I)this.placedOrientations[R]||!this.opacities[R]||this.opacities[R].isHidden()||(this.placedOrientations[R]=I[R]);p?this.lastPlacementChangeTime=n:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=a?a.lastPlacementChangeTime:n)}updateLayerOpacities(n,a){const p=new Set;for(const y of a){const x=y.getBucket(n);x&&y.latestFeatureIndex&&n.id===x.layerIds[0]&&this.updateBucketOpacities(x,p,y.collisionBoxArray)}}updateBucketOpacities(n,a,p){n.hasTextData()&&n.text.opacityVertexArray.clear(),n.hasIconData()&&n.icon.opacityVertexArray.clear(),n.hasIconCollisionBoxData()&&n.iconCollisionBox.collisionVertexArray.clear(),n.hasTextCollisionBoxData()&&n.textCollisionBox.collisionVertexArray.clear();const y=n.layers[0].layout,x=!!n.layers[0].dynamicFilter(),D=new tn(null,0,!1,!1,!0),I=y.get("text-allow-overlap"),R=y.get("icon-allow-overlap"),U=y.get("text-variable-anchor"),z="map"===y.get("text-rotation-alignment"),Q="map"===y.get("text-pitch-alignment"),Se="none"!==y.get("icon-text-fit"),je=new tn(null,0,I&&(R||!n.hasIconData()||y.get("icon-optional")),R&&(I||!n.hasTextData()||y.get("text-optional")),!0);!n.collisionArrays&&p&&(n.hasIconCollisionBoxData()||n.hasTextCollisionBoxData())&&n.deserializeCollisionBoxes(p);const Ye=(et,ne,He)=>{for(let ht=0;ht0||ht>0,$t=Ot>0,cn=this.placedOrientations[gt],Wn=cn===l.WritingMode.vertical,nn=cn===l.WritingMode.horizontal||cn===l.WritingMode.horizontalOnly;if(!qt&&!$t||Lt.isHidden()||$e++,qt){const Mn=Sr(Lt.text);Ye(n.text,He,Wn?Qi:Mn),Ye(n.text,ht,nn?Qi:Mn);const pn=Lt.text.isHidden(),{leftJustifiedTextSymbolIndex:qn,centerJustifiedTextSymbolIndex:sn,rightJustifiedTextSymbolIndex:An,verticalPlacedTextSymbolIndex:Zn}=ne,kn=n.text.placedSymbolArray,ti=pn||Wn?1:0;qn>=0&&(kn.get(qn).hidden=ti),sn>=0&&(kn.get(sn).hidden=ti),An>=0&&(kn.get(An).hidden=ti),Zn>=0&&(kn.get(Zn).hidden=pn||nn?1:0);const Ii=this.variableOffsets[gt];Ii&&this.markUsedJustification(n,Ii.anchor,ne,cn);const $i=this.placedOrientations[gt];$i&&(this.markUsedJustification(n,"left",ne,$i),this.markUsedOrientation(n,$i,ne))}if($t){const Mn=Sr(Lt.icon),{placedIconSymbolIndex:pn,verticalPlacedIconSymbolIndex:qn}=ne,sn=n.icon.placedSymbolArray,An=Lt.icon.isHidden()?1:0;pn>=0&&(Ye(n.icon,Ot,Wn?Qi:Mn),sn.get(pn).hidden=An),qn>=0&&(Ye(n.icon,ne.numVerticalIconVertices,nn?Qi:Mn),sn.get(qn).hidden=An)}if(n.hasIconCollisionBoxData()||n.hasTextCollisionBoxData()){const Mn=n.collisionArrays[et];if(Mn){let pn=new l.Point(0,0),qn=!0;if(Mn.textBox||Mn.verticalTextBox){if(U){const An=this.variableOffsets[gt];An?(pn=si(An.anchor,An.width,An.height,An.textOffset,An.textScale),z&&pn._rotate(Q?this.transform.angle:-this.transform.angle)):qn=!1}x&&(qn=!Lt.clipped),Mn.textBox&&Vi(n.textCollisionBox.collisionVertexArray,Lt.text.placed,!qn||Wn,pn.x,pn.y),Mn.verticalTextBox&&Vi(n.textCollisionBox.collisionVertexArray,Lt.text.placed,!qn||nn,pn.x,pn.y)}const sn=qn&&!(nn||!Mn.verticalIconBox);Mn.iconBox&&Vi(n.iconCollisionBox.collisionVertexArray,Lt.icon.placed,sn,Se?pn.x:0,Se?pn.y:0),Mn.verticalIconBox&&Vi(n.iconCollisionBox.collisionVertexArray,Lt.icon.placed,!sn,Se?pn.x:0,Se?pn.y:0)}}}if(n.fullyClipped=0===$e,n.sortFeatures(this.transform.angle),this.retainedQueryData[n.bucketInstanceId]&&(this.retainedQueryData[n.bucketInstanceId].featureSortOrder=n.featureSortOrder),n.hasTextData()&&n.text.opacityVertexBuffer&&n.text.opacityVertexBuffer.updateData(n.text.opacityVertexArray),n.hasIconData()&&n.icon.opacityVertexBuffer&&n.icon.opacityVertexBuffer.updateData(n.icon.opacityVertexArray),n.hasIconCollisionBoxData()&&n.iconCollisionBox.collisionVertexBuffer&&n.iconCollisionBox.collisionVertexBuffer.updateData(n.iconCollisionBox.collisionVertexArray),n.hasTextCollisionBoxData()&&n.textCollisionBox.collisionVertexBuffer&&n.textCollisionBox.collisionVertexBuffer.updateData(n.textCollisionBox.collisionVertexArray),n.bucketInstanceId in this.collisionCircleArrays){const et=this.collisionCircleArrays[n.bucketInstanceId];n.placementInvProjMatrix=et.invProjMatrix,n.placementViewportMatrix=et.viewportMatrix,n.collisionCircleArray=et.circles,delete this.collisionCircleArrays[n.bucketInstanceId]}}symbolFadeChange(n){return 0===this.fadeDuration?1:(n-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(n){return Math.max(0,(this.transform.zoom-n)/1.5)}hasTransitions(n){return this.stale||n-this.lastPlacementChangeTimen}setStale(){this.stale=!0}}function Vi(u,n,a,p,y){u.emplaceBack(n?1:0,a?1:0,p||0,y||0),u.emplaceBack(n?1:0,a?1:0,p||0,y||0),u.emplaceBack(n?1:0,a?1:0,p||0,y||0),u.emplaceBack(n?1:0,a?1:0,p||0,y||0)}const Yi=Math.pow(2,25),O=Math.pow(2,24),Oe=Math.pow(2,17),$=Math.pow(2,16),Ze=Math.pow(2,9),Nt=Math.pow(2,8),Fi=Math.pow(2,1);function Sr(u){if(0===u.opacity&&!u.placed)return 0;if(1===u.opacity&&u.placed)return 4294967295;const n=u.placed?1:0,a=Math.floor(127*u.opacity);return a*Yi+n*O+a*Oe+n*$+a*Ze+n*Nt+a*Fi+n}const Qi=0;class Dr{constructor(n){this._sortAcrossTiles="viewport-y"!==n.layout.get("symbol-z-order")&&void 0!==n.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs=new Set,this._bucketParts=[]}continuePlacement(n,a,p,y,x){const D=this._bucketParts;for(;this._currentTileIndexI.sortKey-R.sortKey));this._currentPartIndex{const D=l.exported.now()-y;return!this._forceFullPlacement&&D>2};for(;this._currentPlacementIndex>=0;){const D=a[n[this._currentPlacementIndex]],I=this.placement.collisionIndex.transform.zoom;if("symbol"===D.type&&(!D.minzoom||D.minzoom<=I)&&(!D.maxzoom||D.maxzoom>I)){if(this._inProgressLayer||(this._inProgressLayer=new Dr(D)),this._inProgressLayer.continuePlacement(p[D.source],this.placement,this._showCollisionBoxes,D,x))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(n){return this.placement.commit(n),this.placement}}const ji=512/l.EXTENT/2;class eo{constructor(n,a,p){this.tileID=n,this.bucketInstanceId=p,this.index=new l.KDBush(a.length,16,Int32Array),this.keys=[],this.crossTileIDs=[];const y=n.canonical.x*l.EXTENT,x=n.canonical.y*l.EXTENT;for(let D=0;Dn.overscaledZ)for(const I in D){const R=D[I];R.tileID.isChildOf(n)&&R.findMatches(a.symbolInstances,n,y)}else{const I=D[n.scaledTo(Number(x)).key];I&&I.findMatches(a.symbolInstances,n,y)}}for(let x=0;x{a[p]=!0});for(const p in this.layerIndexes)a[p]||delete this.layerIndexes[p]}}const $o=(u,n)=>l.emitValidationErrors(u,n&&n.filter(a=>"source.canvas"!==a.identifier)),ds=l.pick(zi,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setTerrain","setFog","setProjection"]),ys=l.pick(zi,["setCenter","setZoom","setBearing","setPitch"]),Qs={version:8,layers:[],sources:{}},Mo={fill:!0,line:!0,background:!0,hillshade:!0,raster:!0};class to extends l.Evented{constructor(n,a={}){super(),this.map=n,this.dispatcher=new dn(uo(),this),this.imageManager=new ct,this.imageManager.setEventedParent(this),this.glyphManager=new l.GlyphManager(n._requestManager,a.localFontFamily?l.LocalGlyphMode.all:a.localIdeographFontFamily?l.LocalGlyphMode.ideographs:l.LocalGlyphMode.none,a.localFontFamily||a.localIdeographFontFamily),this.crossTileSymbolIndex=new To,this._layers={},this._num3DLayers=0,this._numSymbolLayers=0,this._numCircleLayers=0,this._serializedLayers={},this._sourceCaches={},this._otherSourceCaches={},this._symbolSourceCaches={},this._loaded=!1,this._availableImages=[],this._order=[],this._drapedFirstOrder=[],this._markersNeedUpdate=!1,this._resetUpdates(),this.dispatcher.broadcast("setReferrer",l.getReferrer());const p=this;this._rtlTextPluginCallback=to.registerForPluginStateChange(y=>{p.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:y.pluginStatus,pluginURL:y.pluginURL},(x,D)=>{if(l.triggerPluginCompletionEvent(x),D&&D.every(I=>I))for(const I in p._sourceCaches){const R=p._sourceCaches[I],U=R.getSource().type;"vector"!==U&&"geojson"!==U||R.reload()}})}),this.on("data",y=>{if("source"!==y.dataType||"metadata"!==y.sourceDataType)return;const x=this.getSource(y.sourceId);if(x&&x.vectorLayerIds)for(const D in this._layers){const I=this._layers[D];I.source===x.id&&this._validateLayer(I)}})}loadURL(n,a={}){this.fire(new l.Event("dataloading",{dataType:"style"}));const p="boolean"==typeof a.validate?a.validate:!l.isMapboxURL(n);n=this.map._requestManager.normalizeStyleURL(n,a.accessToken);const y=this.map._requestManager.transformRequest(n,l.ResourceType.Style);this._request=l.getJSON(y,(x,D)=>{this._request=null,x?this.fire(new l.ErrorEvent(x)):D&&this._load(D,p)})}loadJSON(n,a={}){this.fire(new l.Event("dataloading",{dataType:"style"})),this._request=l.exported.frame(()=>{this._request=null,this._load(n,!1!==a.validate)})}loadEmpty(){this.fire(new l.Event("dataloading",{dataType:"style"})),this._load(Qs,!1)}_updateLayerCount(n,a){const p=a?1:-1;n.is3D()&&(this._num3DLayers+=p),"circle"===n.type&&(this._numCircleLayers+=p),"symbol"===n.type&&(this._numSymbolLayers+=p)}_load(n,a){if(a&&$o(this,l.validateStyle(n)))return;this._loaded=!0,this.stylesheet=l.clone$1(n),this._updateMapProjection();for(const y in n.sources)this.addSource(y,n.sources[y],{validate:!1});this._changed=!1,n.sprite?this._loadSprite(n.sprite):(this.imageManager.setLoaded(!0),this.dispatcher.broadcast("spriteLoaded",!0)),this.glyphManager.setURL(n.glyphs);const p=Eo(this.stylesheet.layers);this._order=p.map(y=>y.id),this._layers={},this._serializedLayers={};for(const y of p){const x=l.createStyleLayer(y);x.setEventedParent(this,{layer:{id:x.id}}),this._layers[x.id]=x,this._serializedLayers[x.id]=x.serialize(),this._updateLayerCount(x,!0)}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new ve(this.stylesheet.light),this.stylesheet.terrain&&!this.terrainSetForDrapingOnly()&&this._createTerrain(this.stylesheet.terrain,1),this.stylesheet.fog&&this._createFog(this.stylesheet.fog),this._updateDrapeFirstLayers(),this.fire(new l.Event("data",{dataType:"style"})),this.fire(new l.Event("style.load"))}terrainSetForDrapingOnly(){return!!this.terrain&&0===this.terrain.drapeRenderMode}setProjection(n){n?this.stylesheet.projection=n:delete this.stylesheet.projection,this._updateMapProjection()}applyProjectionUpdate(){this._loaded&&(this.dispatcher.broadcast("setProjection",this.map.transform.projectionOptions),this.map.transform.projection.requiresDraping?this.getTerrain()||this.stylesheet.terrain||this.setTerrainForDraping():this.terrainSetForDrapingOnly()&&this.setTerrain(null))}_updateMapProjection(){this.map._useExplicitProjection?this.applyProjectionUpdate():this.map._prioritizeAndUpdateProjection(null,this.stylesheet.projection)}_loadSprite(n){this._spriteRequest=function(a,p,y){let x,D,I;const R=l.exported.devicePixelRatio>1?"@2x":"";let U=l.getJSON(p.transformRequest(p.normalizeSpriteURL(a,R,".json"),l.ResourceType.SpriteJSON),(Se,je)=>{U=null,I||(I=Se,x=je,Q())}),z=l.getImage(p.transformRequest(p.normalizeSpriteURL(a,R,".png"),l.ResourceType.SpriteImage),(Se,je)=>{z=null,I||(I=Se,D=je,Q())});function Q(){if(I)y(I);else if(x&&D){const Se=l.exported.getImageData(D),je={};for(const Ye in x){const{width:$e,height:et,x:ne,y:He,sdf:ht,pixelRatio:gt,stretchX:Ot,stretchY:kt,content:Lt}=x[Ye],qt=new l.RGBAImage({width:$e,height:et});l.RGBAImage.copy(Se,qt,{x:ne,y:He},{x:0,y:0},{width:$e,height:et}),je[Ye]={data:qt,pixelRatio:gt,sdf:ht,stretchX:Ot,stretchY:kt,content:Lt}}y(null,je)}}return{cancel(){U&&(U.cancel(),U=null),z&&(z.cancel(),z=null)}}}(n,this.map._requestManager,(a,p)=>{if(this._spriteRequest=null,a)this.fire(new l.ErrorEvent(a));else if(p)for(const y in p)this.imageManager.addImage(y,p[y]);this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),this.dispatcher.broadcast("setImages",this._availableImages),this.dispatcher.broadcast("spriteLoaded",!0),this.fire(new l.Event("data",{dataType:"style"}))})}_validateLayer(n){const a=this.getSource(n.source);if(!a)return;const p=n.sourceLayer;p&&("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(p))&&this.fire(new l.ErrorEvent(new Error(`Source layer "${p}" does not exist on source "${a.id}" as specified by style layer "${n.id}"`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(const n in this._sourceCaches)if(!this._sourceCaches[n].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeLayers(n){const a=[];for(const p of n){const y=this._layers[p];"custom"!==y.type&&a.push(y.serialize())}return a}hasTransitions(){if(this.light&&this.light.hasTransition()||this.fog&&this.fog.hasTransition())return!0;for(const n in this._sourceCaches)if(this._sourceCaches[n].hasTransition())return!0;for(const n in this._layers)if(this._layers[n].hasTransition())return!0;return!1}get order(){return this.map._optimizeForTerrain&&this.terrain?this._drapedFirstOrder:this._order}isLayerDraped(n){return!!this.terrain&&("function"==typeof n.isLayerDraped?n.isLayerDraped():Mo[n.type])}_checkLoaded(){if(!this._loaded)throw new Error("Style is not done loading")}update(n){if(!this._loaded)return;const a=this._changed;if(this._changed){const y=Object.keys(this._updatedLayers),x=Object.keys(this._removedLayers);(y.length||x.length)&&this._updateWorkerLayers(y,x);for(const D in this._updatedSources){const I=this._updatedSources[D];"reload"===I?this._reloadSource(D):"clear"===I&&this._clearSource(D)}this._updateTilesForChangedImages();for(const D in this._updatedPaintProps)this._layers[D].updateTransitions(n);this.light.updateTransitions(n),this.fog&&this.fog.updateTransitions(n),this._resetUpdates()}const p={};for(const y in this._sourceCaches){const x=this._sourceCaches[y];p[y]=x.used,x.used=!1}for(const y of this._order){const x=this._layers[y];if(x.recalculate(n,this._availableImages),!x.isHidden(n.zoom)){const I=this._getLayerSourceCache(x);I&&(I.used=!0)}const D=this.map.painter;if(D){const I=x.getProgramIds();if(!I)continue;const R=x.getProgramConfiguration(n.zoom);for(const U of I)D.useProgram(U,R)}}for(const y in p){const x=this._sourceCaches[y];p[y]!==x.used&&x.getSource().fire(new l.Event("data",{sourceDataType:"visibility",dataType:"source",sourceId:x.getSource().id}))}this.light.recalculate(n),this.terrain&&this.terrain.recalculate(n),this.fog&&this.fog.recalculate(n),this.z=n.zoom,this._markersNeedUpdate&&(this._updateMarkersOpacity(),this._markersNeedUpdate=!1),a&&this.fire(new l.Event("data",{dataType:"style"}))}_updateTilesForChangedImages(){const n=Object.keys(this._changedImages);if(n.length){for(const a in this._sourceCaches)this._sourceCaches[a].reloadTilesForDependencies(["icons","patterns"],n);this._changedImages={}}}_updateWorkerLayers(n,a){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(n),removedIds:a})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}}setState(n){if(this._checkLoaded(),$o(this,l.validateStyle(n)))return!1;(n=l.clone$1(n)).layers=Eo(n.layers);const a=function(y,x){if(!y)return[{command:zi.setStyle,args:[x]}];let D=[];try{if(!B(y.version,x.version))return[{command:zi.setStyle,args:[x]}];B(y.center,x.center)||D.push({command:zi.setCenter,args:[x.center]}),B(y.zoom,x.zoom)||D.push({command:zi.setZoom,args:[x.zoom]}),B(y.bearing,x.bearing)||D.push({command:zi.setBearing,args:[x.bearing]}),B(y.pitch,x.pitch)||D.push({command:zi.setPitch,args:[x.pitch]}),B(y.sprite,x.sprite)||D.push({command:zi.setSprite,args:[x.sprite]}),B(y.glyphs,x.glyphs)||D.push({command:zi.setGlyphs,args:[x.glyphs]}),B(y.transition,x.transition)||D.push({command:zi.setTransition,args:[x.transition]}),B(y.light,x.light)||D.push({command:zi.setLight,args:[x.light]}),B(y.fog,x.fog)||D.push({command:zi.setFog,args:[x.fog]}),B(y.projection,x.projection)||D.push({command:zi.setProjection,args:[x.projection]});const I={},R=[];!function(Q,Se,je,Ye){let $e;for($e in Se=Se||{},Q=Q||{})Q.hasOwnProperty($e)&&(Se.hasOwnProperty($e)||Ti($e,je,Ye));for($e in Se){if(!Se.hasOwnProperty($e))continue;const et=Se[$e];Q.hasOwnProperty($e)?B(Q[$e],et)||("geojson"===Q[$e].type&&"geojson"===et.type&&vr(Q,Se,$e)?je.push({command:zi.setGeoJSONSourceData,args:[$e,et.data]}):yo($e,Se,je,Ye)):hr($e,Se,je)}}(y.sources,x.sources,R,I);const U=[];y.layers&&y.layers.forEach(Q=>{Q.source&&I[Q.source]?D.push({command:zi.removeLayer,args:[Q.id]}):U.push(Q)});let z=y.terrain;z&&I[z.source]&&(D.push({command:zi.setTerrain,args:[void 0]}),z=void 0),D=D.concat(R),B(z,x.terrain)||D.push({command:zi.setTerrain,args:[x.terrain]}),function(Q,Se,je){Se=Se||[];const Ye=(Q=Q||[]).map(Yr),$e=Se.map(Yr),et=Q.reduce(qi,{}),ne=Se.reduce(qi,{}),He=Ye.slice(),ht=Object.create(null);let gt,Ot,kt,Lt,qt,$t,cn;for(gt=0,Ot=0;gt!(y.command in ys));if(0===a.length)return!1;const p=a.filter(y=>!(y.command in ds));if(p.length>0)throw new Error(`Unimplemented: ${p.map(y=>y.command).join(", ")}.`);return a.forEach(y=>{"setTransition"!==y.command&&"setProjection"!==y.command&&this[y.command].apply(this,y.args)}),this.stylesheet=n,this._updateMapProjection(),!0}addImage(n,a){return this.getImage(n)?this.fire(new l.ErrorEvent(new Error("An image with this name already exists."))):(this.imageManager.addImage(n,a),this._afterImageUpdated(n),this)}updateImage(n,a){this.imageManager.updateImage(n,a)}getImage(n){return this.imageManager.getImage(n)}removeImage(n){return this.getImage(n)?(this.imageManager.removeImage(n),this._afterImageUpdated(n),this):this.fire(new l.ErrorEvent(new Error("No image with this name exists.")))}_afterImageUpdated(n){this._availableImages=this.imageManager.listImages(),this._changedImages[n]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new l.Event("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this._availableImages.slice()}addSource(n,a,p={}){if(this._checkLoaded(),void 0!==this.getSource(n))throw new Error("There is already a source with this ID");if(!a.type)throw new Error(`The type property must be defined, but only the following properties were given: ${Object.keys(a).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(a.type)>=0&&this._validate(l.validateSource,`sources.${n}`,a,null,p))return;this.map&&this.map._collectResourceTiming&&(a.collectResourceTiming=!0);const y=st(n,a,this.dispatcher,this);y.setEventedParent(this,()=>({isSourceLoaded:this._isSourceCacheLoaded(n),source:y.serialize(),sourceId:n}));const x=D=>{const I=(D?"symbol:":"other:")+n,R=this._sourceCaches[I]=new l.SourceCache(I,y,D);(D?this._symbolSourceCaches:this._otherSourceCaches)[n]=R,R.style=this,R.onAdd(this.map)};x(!1),"vector"!==a.type&&"geojson"!==a.type||x(!0),y.onAdd&&y.onAdd(this.map),this._changed=!0}removeSource(n){this._checkLoaded();const a=this.getSource(n);if(!a)throw new Error("There is no source with this ID");for(const y in this._layers)if(this._layers[y].source===n)return this.fire(new l.ErrorEvent(new Error(`Source "${n}" cannot be removed while layer "${y}" is using it.`)));if(this.terrain&&this.terrain.get().source===n)return this.fire(new l.ErrorEvent(new Error(`Source "${n}" cannot be removed while terrain is using it.`)));const p=this._getSourceCaches(n);for(const y of p)delete this._sourceCaches[y.id],delete this._updatedSources[y.id],y.fire(new l.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:y.getSource().id})),y.setEventedParent(null),y.clearTiles();return delete this._otherSourceCaches[n],delete this._symbolSourceCaches[n],a.setEventedParent(null),a.onRemove&&a.onRemove(this.map),this._changed=!0,this}setGeoJSONSourceData(n,a){this._checkLoaded(),this.getSource(n).setData(a),this._changed=!0}getSource(n){const a=this._getSourceCache(n);return a&&a.getSource()}_getSources(){const n=[];for(const a in this._otherSourceCaches){const p=this._getSourceCache(a);p&&n.push(p.getSource())}return n}addLayer(n,a,p={}){this._checkLoaded();const y=n.id;if(this.getLayer(y))return void this.fire(new l.ErrorEvent(new Error(`Layer with id "${y}" already exists on this map`)));let x;if("custom"===n.type){if($o(this,l.validateCustomStyleLayer(n)))return;x=l.createStyleLayer(n)}else{if("object"==typeof n.source&&(this.addSource(y,n.source),n=l.clone$1(n),n=l.extend(n,{source:y})),this._validate(l.validateLayer,`layers.${y}`,n,{arrayIndex:-1},p))return;x=l.createStyleLayer(n),this._validateLayer(x),x.setEventedParent(this,{layer:{id:y}}),this._serializedLayers[x.id]=x.serialize(),this._updateLayerCount(x,!0)}const D=a?this._order.indexOf(a):this._order.length;if(a&&-1===D)return void this.fire(new l.ErrorEvent(new Error(`Layer with id "${a}" does not exist on this map.`)));this._order.splice(D,0,y),this._layerOrderChanged=!0,this._layers[y]=x;const I=this._getLayerSourceCache(x);if(this._removedLayers[y]&&x.source&&I&&"custom"!==x.type){const R=this._removedLayers[y];delete this._removedLayers[y],R.type!==x.type?this._updatedSources[x.source]="clear":(this._updatedSources[x.source]="reload",I.pause())}this._updateLayer(x),x.onAdd&&x.onAdd(this.map),this._updateDrapeFirstLayers()}moveLayer(n,a){if(this._checkLoaded(),this._changed=!0,!this._layers[n])return void this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be moved.`)));if(n===a)return;const p=this._order.indexOf(n);this._order.splice(p,1);const y=a?this._order.indexOf(a):this._order.length;a&&-1===y?this.fire(new l.ErrorEvent(new Error(`Layer with id "${a}" does not exist on this map.`))):(this._order.splice(y,0,n),this._layerOrderChanged=!0,this._updateDrapeFirstLayers())}removeLayer(n){this._checkLoaded();const a=this._layers[n];if(!a)return void this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be removed.`)));a.setEventedParent(null),this._updateLayerCount(a,!1);const p=this._order.indexOf(n);this._order.splice(p,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[n]=a,delete this._layers[n],delete this._serializedLayers[n],delete this._updatedLayers[n],delete this._updatedPaintProps[n],a.onRemove&&a.onRemove(this.map),this._updateDrapeFirstLayers()}getLayer(n){return this._layers[n]}hasLayer(n){return n in this._layers}hasLayerType(n){for(const a in this._layers)if(this._layers[a].type===n)return!0;return!1}setLayerZoomRange(n,a,p){this._checkLoaded();const y=this.getLayer(n);y?y.minzoom===a&&y.maxzoom===p||(null!=a&&(y.minzoom=a),null!=p&&(y.maxzoom=p),this._updateLayer(y)):this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot have zoom extent.`)))}setFilter(n,a,p={}){this._checkLoaded();const y=this.getLayer(n);if(y){if(!B(y.filter,a))return null==a?(y.filter=void 0,void this._updateLayer(y)):void(this._validate(l.validateFilter,`layers.${y.id}.filter`,a,{layerType:y.type},p)||(y.filter=l.clone$1(a),this._updateLayer(y)))}else this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be filtered.`)))}getFilter(n){const a=this.getLayer(n);return a&&l.clone$1(a.filter)}setLayoutProperty(n,a,p,y={}){this._checkLoaded();const x=this.getLayer(n);x?B(x.getLayoutProperty(a),p)||(x.setLayoutProperty(a,p,y),this._updateLayer(x)):this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getLayoutProperty(n,a){const p=this.getLayer(n);if(p)return p.getLayoutProperty(a);this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style.`)))}setPaintProperty(n,a,p,y={}){this._checkLoaded();const x=this.getLayer(n);x?B(x.getPaintProperty(a),p)||(x.setPaintProperty(a,p,y)&&this._updateLayer(x),this._changed=!0,this._updatedPaintProps[n]=!0):this.fire(new l.ErrorEvent(new Error(`The layer '${n}' does not exist in the map's style and cannot be styled.`)))}getPaintProperty(n,a){const p=this.getLayer(n);return p&&p.getPaintProperty(a)}setFeatureState(n,a){this._checkLoaded();const p=n.source,y=n.sourceLayer,x=this.getSource(p);if(!x)return void this.fire(new l.ErrorEvent(new Error(`The source '${p}' does not exist in the map's style.`)));const D=x.type;if("geojson"===D&&y)return void this.fire(new l.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter.")));if("vector"===D&&!y)return void this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));void 0===n.id&&this.fire(new l.ErrorEvent(new Error("The feature id parameter must be provided.")));const I=this._getSourceCaches(p);for(const R of I)R.setFeatureState(y,n.id,a)}removeFeatureState(n,a){this._checkLoaded();const p=n.source,y=this.getSource(p);if(!y)return void this.fire(new l.ErrorEvent(new Error(`The source '${p}' does not exist in the map's style.`)));const x=y.type,D="vector"===x?n.sourceLayer:void 0;if("vector"===x&&!D)return void this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")));if(a&&"string"!=typeof n.id&&"number"!=typeof n.id)return void this.fire(new l.ErrorEvent(new Error("A feature id is required to remove its specific state property.")));const I=this._getSourceCaches(p);for(const R of I)R.removeFeatureState(D,n.id,a)}getFeatureState(n){this._checkLoaded();const a=n.source,p=n.sourceLayer,y=this.getSource(a);if(y){if("vector"!==y.type||p)return void 0===n.id&&this.fire(new l.ErrorEvent(new Error("The feature id parameter must be provided."))),this._getSourceCaches(a)[0].getFeatureState(p,n.id);this.fire(new l.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new l.ErrorEvent(new Error(`The source '${a}' does not exist in the map's style.`)))}getTransition(){return l.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){const n={};for(const a in this._sourceCaches){const p=this._sourceCaches[a].getSource();n[p.id]||(n[p.id]=p.serialize())}return l.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,terrain:this.getTerrain()||void 0,fog:this.stylesheet.fog,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,projection:this.stylesheet.projection,sources:n,layers:this._serializeLayers(this._order)},a=>void 0!==a)}_updateLayer(n){this._updatedLayers[n.id]=!0;const a=this._getLayerSourceCache(n);n.source&&!this._updatedSources[n.source]&&a&&"raster"!==a.getSource().type&&(this._updatedSources[n.source]="reload",a.pause()),this._changed=!0,n.invalidateCompiledFilter()}_flattenAndSortRenderedFeatures(n){const a=D=>"fill-extrusion"===this._layers[D].type,p={},y=[];for(let D=this._order.length-1;D>=0;D--){const I=this._order[D];if(a(I)){p[I]=D;for(const R of n){const U=R[I];if(U)for(const z of U)y.push(z)}}}y.sort((D,I)=>I.intersectionZ-D.intersectionZ);const x=[];for(let D=this._order.length-1;D>=0;D--){const I=this._order[D];if(a(I))for(let R=y.length-1;R>=0;R--){const U=y[R].feature;if(p[U.layer.id]{const U=this.getLayer(R);return U&&U.is3D()}):this.has3DLayers(),I=Ut.createFromScreenPoints(n,p);for(const R in this._sourceCaches){const U=this._sourceCaches[R].getSource().id;a.layers&&!y[U]||x.push(In(this._sourceCaches[R],this._layers,this._serializedLayers,I,a,p,D,!!this.map._showQueryGeometry))}return this.placement&&x.push(function(R,U,z,Q,Se,je,Ye){const $e={},et=je.queryRenderedSymbols(Q),ne=[];for(const He of Object.keys(et).map(Number))ne.push(Ye[He]);ne.sort(wi);for(const He of ne){const ht=He.featureIndex.lookupSymbolFeatures(et[He.bucketInstanceId],U,He.bucketIndex,He.sourceLayerIndex,Se.filter,Se.layers,Se.availableImages,R);for(const gt in ht){const Ot=$e[gt]=$e[gt]||[],kt=ht[gt];kt.sort((Lt,qt)=>{const $t=He.featureSortOrder;if($t){const cn=$t.indexOf(Lt.featureIndex);return $t.indexOf(qt.featureIndex)-cn}return qt.featureIndex-Lt.featureIndex});for(const Lt of kt)Ot.push(Lt)}}for(const He in $e)$e[He].forEach(ht=>{const gt=ht.feature,Ot=z(R[He]);if(!Ot)return;const kt=Ot.getFeatureState(gt.layer["source-layer"],gt.id);gt.source=gt.layer.source,gt.layer["source-layer"]&&(gt.sourceLayer=gt.layer["source-layer"]),gt.state=kt});return $e}(this._layers,this._serializedLayers,this._getLayerSourceCache.bind(this),I.screenGeometry,a,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(x)}querySourceFeatures(n,a){a&&a.filter&&this._validate(l.validateFilter,"querySourceFeatures.filter",a.filter,null,a);const p=this._getSourceCaches(n);let y=[];for(const x of p)y=y.concat(bi(x,a));return y}addSourceType(n,a,p){return to.getSourceType(n)?p(new Error(`A source type called "${n}" already exists.`)):(to.setSourceType(n,a),a.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:n,url:a.workerSourceURL},p):p(null,null))}getLight(){return this.light.getLight()}setLight(n,a={}){this._checkLoaded();const p=this.light.getLight();let y=!1;for(const D in n)if(!B(n[D],p[D])){y=!0;break}if(!y)return;const x=this._setTransitionParameters({duration:300,delay:0});this.light.setLight(n,a),this.light.updateTransitions(x)}getTerrain(){return this.terrain&&1===this.terrain.drapeRenderMode?this.terrain.get():null}setTerrainForDraping(){this.setTerrain({source:"",exaggeration:0},0)}setTerrain(n,a=1){if(this._checkLoaded(),!n)return delete this.terrain,delete this.stylesheet.terrain,this.dispatcher.broadcast("enableTerrain",!1),this._force3DLayerUpdate(),void(this._markersNeedUpdate=!0);let p=n;if(1===a){if("object"==typeof p.source){const y="terrain-dem-src";this.addSource(y,p.source),p=l.clone$1(p),p=l.extend(p,{source:y})}if(this._validate(l.validateTerrain,"terrain",p))return}if(!this.terrain||this.terrain&&a!==this.terrain.drapeRenderMode){if(!p)return;this._createTerrain(p,a)}else{const y=this.terrain,x=y.get();for(const D of Object.keys(l.spec.terrain))!p.hasOwnProperty(D)&&l.spec.terrain[D].default&&(p[D]=l.spec.terrain[D].default);for(const D in p)if(!B(p[D],x[D])){y.set(p),this.stylesheet.terrain=p;const I=this._setTransitionParameters({duration:0});y.updateTransitions(I);break}}this._updateDrapeFirstLayers(),this._markersNeedUpdate=!0}_createFog(n){const a=this.fog=new Ht(n,this.map.transform);this.stylesheet.fog=n;const p=this._setTransitionParameters({duration:0});a.updateTransitions(p)}_updateMarkersOpacity(){0!==this.map._markers.length&&this.map._requestDomTask(()=>{for(const n of this.map._markers)n._evaluateOpacity()})}getFog(){return this.fog?this.fog.get():null}setFog(n){if(this._checkLoaded(),!n)return delete this.fog,delete this.stylesheet.fog,void(this._markersNeedUpdate=!0);if(this.fog){const a=this.fog,p=a.get();0===Object.keys(n).length&&a.set(n);for(const y in n)if(!B(n[y],p[y])){a.set(n),this.stylesheet.fog=n;const x=this._setTransitionParameters({duration:0});a.updateTransitions(x);break}}else this._createFog(n);this._markersNeedUpdate=!0}_setTransitionParameters(n){return{now:l.exported.now(),transition:l.extend(n,this.stylesheet.transition)}}_updateDrapeFirstLayers(){if(!this.map._optimizeForTerrain||!this.terrain)return;const n=this._order.filter(p=>this.isLayerDraped(this._layers[p])),a=this._order.filter(p=>!this.isLayerDraped(this._layers[p]));this._drapedFirstOrder=[],this._drapedFirstOrder.push(...n),this._drapedFirstOrder.push(...a)}_createTerrain(n,a){const p=this.terrain=new Fe(n,a);this.stylesheet.terrain=n,this.dispatcher.broadcast("enableTerrain",!this.terrainSetForDrapingOnly()),this._force3DLayerUpdate();const y=this._setTransitionParameters({duration:0});p.updateTransitions(y)}_force3DLayerUpdate(){for(const n in this._layers){const a=this._layers[n];"fill-extrusion"===a.type&&this._updateLayer(a)}}_forceSymbolLayerUpdate(){for(const n in this._layers){const a=this._layers[n];"symbol"===a.type&&this._updateLayer(a)}}_validate(n,a,p,y,x={}){return(!x||!1!==x.validate)&&$o(this,n.call(l.validateStyle,l.extend({key:a,style:this.serialize(),value:p,styleSpec:l.spec},y)))}_remove(){this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),l.evented.off("pluginStateChange",this._rtlTextPluginCallback);for(const n in this._layers)this._layers[n].setEventedParent(null);for(const n in this._sourceCaches)this._sourceCaches[n].clearTiles(),this._sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()}_clearSource(n){const a=this._getSourceCaches(n);for(const p of a)p.clearTiles()}_reloadSource(n){const a=this._getSourceCaches(n);for(const p of a)p.resume(),p.reload()}_reloadSources(){for(const n of this._getSources())n.reload&&n.reload()}_updateSources(n){for(const a in this._sourceCaches)this._sourceCaches[a].update(n)}_generateCollisionBoxes(){for(const n in this._sourceCaches){const a=this._sourceCaches[n];a.resume(),a.reload()}}_updatePlacement(n,a,p,y,x=!1){let D=!1,I=!1;const R={};for(const U of this._order){const z=this._layers[U];if("symbol"!==z.type)continue;if(!R[z.source]){const Se=this._getLayerSourceCache(z);if(!Se)continue;R[z.source]=Se.getRenderableIds(!0).map(je=>Se.getTileByID(je)).sort((je,Ye)=>Ye.tileID.overscaledZ-je.tileID.overscaledZ||(je.tileID.isLessThan(Ye.tileID)?-1:1))}const Q=this.crossTileSymbolIndex.addLayer(z,R[z.source],n.center.lng,n.projection);D=D||Q}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),x=x||this._layerOrderChanged||0===p,this._layerOrderChanged&&this.fire(new l.Event("neworder")),(x||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(l.exported.now(),n.zoom))&&(this.pauseablePlacement=new ho(n,this._order,x,a,p,y,this.placement,this.fog&&n.projection.supportsFog?this.fog.state:null),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,R),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(l.exported.now()),I=!0),D&&this.pauseablePlacement.placement.setStale()),I||D)for(const U of this._order){const z=this._layers[U];"symbol"===z.type&&this.placement.updateLayerOpacities(z,R[z.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(l.exported.now())}_releaseSymbolFadeTiles(){for(const n in this._sourceCaches)this._sourceCaches[n].releaseSymbolFadeTiles()}getImages(n,a,p){this.imageManager.getImages(a.icons,p),this._updateTilesForChangedImages();const y=x=>{x&&x.setDependencies(a.tileID.key,a.type,a.icons)};y(this._otherSourceCaches[a.source]),y(this._symbolSourceCaches[a.source])}getGlyphs(n,a,p){this.glyphManager.getGlyphs(a.stacks,p)}getResource(n,a,p){return l.makeRequest(a,p)}_getSourceCache(n){return this._otherSourceCaches[n]}_getLayerSourceCache(n){return"symbol"===n.type?this._symbolSourceCaches[n.source]:this._otherSourceCaches[n.source]}_getSourceCaches(n){const a=[];return this._otherSourceCaches[n]&&a.push(this._otherSourceCaches[n]),this._symbolSourceCaches[n]&&a.push(this._symbolSourceCaches[n]),a}_isSourceCacheLoaded(n){const a=this._getSourceCaches(n);return 0===a.length?(this.fire(new l.ErrorEvent(new Error(`There is no source with ID '${n}'`))),!1):a.every(p=>p.loaded())}has3DLayers(){return this._num3DLayers>0}hasSymbolLayers(){return this._numSymbolLayers>0}hasCircleLayers(){return this._numCircleLayers>0}_clearWorkerCaches(){this.dispatcher.broadcast("clearCaches")}destroy(){this._clearWorkerCaches(),this.terrainSetForDrapingOnly()&&(delete this.terrain,delete this.stylesheet.terrain)}}to.getSourceType=function(u){return Re[u]},to.setSourceType=function(u,n){Re[u]=n},to.registerForPluginStateChange=l.registerForPluginStateChange;var fr="\n#define EPSILON 0.0000001\n#define PI 3.141592653589793\n#define EXTENT 8192.0\n#define HALF_PI PI/2.0\n#define QUARTER_PI PI/4.0\n#define RAD_TO_DEG 180.0/PI\n#define DEG_TO_RAD PI/180.0\n#define GLOBE_RADIUS EXTENT/PI/2.0",vo="attribute highp vec3 a_pos_3f;uniform lowp mat4 u_matrix;varying highp vec3 v_uv;void main() {const mat3 half_neg_pi_around_x=mat3(1.0,0.0, 0.0,0.0,0.0,-1.0,0.0,1.0, 0.0);v_uv=half_neg_pi_around_x*a_pos_3f;vec4 pos=u_matrix*vec4(a_pos_3f,1.0);gl_Position=pos.xyww;}",Yo="\n#define ELEVATION_SCALE 7.0\n#define ELEVATION_OFFSET 450.0\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_tl_up;uniform vec3 u_tile_tr_up;uniform vec3 u_tile_br_up;uniform vec3 u_tile_bl_up;uniform float u_tile_up_scale;vec3 elevationVector(vec2 pos) {vec2 uv=pos/EXTENT;vec3 up=normalize(mix(\nmix(u_tile_tl_up,u_tile_tr_up,uv.xxx),mix(u_tile_bl_up,u_tile_br_up,uv.xxx),uv.yyy));return up*u_tile_up_scale;}\n#else\nvec3 elevationVector(vec2 pos) { return vec3(0,0,1); }\n#endif\nconst float skirtOffset=24575.0;vec3 decomposeToPosAndSkirt(vec2 posWithComposedSkirt)\n{float skirt=float(posWithComposedSkirt.x >=skirtOffset);vec2 pos=posWithComposedSkirt-vec2(skirt*skirtOffset,0.0);return vec3(pos,skirt);}\n#ifdef TERRAIN\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nuniform highp sampler2D u_dem;uniform highp sampler2D u_dem_prev;\n#else\nuniform sampler2D u_dem;uniform sampler2D u_dem_prev;\n#endif\nuniform vec4 u_dem_unpack;uniform vec2 u_dem_tl;uniform vec2 u_dem_tl_prev;uniform float u_dem_scale;uniform float u_dem_scale_prev;uniform float u_dem_size;uniform float u_dem_lerp;uniform float u_exaggeration;uniform float u_meter_to_dem;uniform mat4 u_label_plane_matrix_inv;uniform sampler2D u_depth;uniform vec2 u_depth_size_inv;vec4 tileUvToDemSample(vec2 uv,float dem_size,float dem_scale,vec2 dem_tl) {vec2 pos=dem_size*(uv*dem_scale+dem_tl)+1.0;vec2 f=fract(pos);return vec4((pos-f+0.5)/(dem_size+2.0),f);}float decodeElevation(vec4 v) {return dot(vec4(v.xyz*255.0,-1.0),u_dem_unpack);}float currentElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale+u_dem_tl)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale,u_dem_tl);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem,pos));\n#ifdef TERRAIN_DEM_NEAREST_FILTER\nreturn u_exaggeration*tl;\n#endif\nfloat tr=decodeElevation(texture2D(u_dem,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}float prevElevation(vec2 apos) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nvec2 pos=(u_dem_size*(apos/8192.0*u_dem_scale_prev+u_dem_tl_prev)+1.5)/(u_dem_size+2.0);return u_exaggeration*texture2D(u_dem_prev,pos).a;\n#else\nfloat dd=1.0/(u_dem_size+2.0);vec4 r=tileUvToDemSample(apos/8192.0,u_dem_size,u_dem_scale_prev,u_dem_tl_prev);vec2 pos=r.xy;vec2 f=r.zw;float tl=decodeElevation(texture2D(u_dem_prev,pos));float tr=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,0.0)));float bl=decodeElevation(texture2D(u_dem_prev,pos+vec2(0.0,dd)));float br=decodeElevation(texture2D(u_dem_prev,pos+vec2(dd,dd)));return u_exaggeration*mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);\n#endif\n}\n#ifdef TERRAIN_VERTEX_MORPHING\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nfloat nextElevation=currentElevation(apos);float prevElevation=prevElevation(apos);return mix(prevElevation,nextElevation,u_dem_lerp);}\n#else\nfloat elevation(vec2 apos) {\n#ifdef ZERO_EXAGGERATION\nreturn 0.0;\n#endif\nreturn currentElevation(apos);}\n#endif\nhighp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}bool isOccluded(vec4 frag) {vec3 coord=frag.xyz/frag.w;float depth=unpack_depth(texture2D(u_depth,(coord.xy+1.0)*0.5));return coord.z > depth+0.0005;}float occlusionFade(vec4 frag) {vec3 coord=frag.xyz/frag.w;vec3 df=vec3(5.0*u_depth_size_inv,0.0);vec2 uv=0.5*coord.xy+0.5;vec4 depth=vec4(\nunpack_depth(texture2D(u_depth,uv-df.xz)),unpack_depth(texture2D(u_depth,uv+df.xz)),unpack_depth(texture2D(u_depth,uv-df.zy)),unpack_depth(texture2D(u_depth,uv+df.zy))\n);return dot(vec4(0.25),vec4(1.0)-clamp(300.0*(vec4(coord.z-0.001)-depth),0.0,1.0));}vec4 fourSample(vec2 pos,vec2 off) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nfloat tl=texture2D(u_dem,pos).a;float tr=texture2D(u_dem,pos+vec2(off.x,0.0)).a;float bl=texture2D(u_dem,pos+vec2(0.0,off.y)).a;float br=texture2D(u_dem,pos+off).a;\n#else\nvec4 demtl=vec4(texture2D(u_dem,pos).xyz*255.0,-1.0);float tl=dot(demtl,u_dem_unpack);vec4 demtr=vec4(texture2D(u_dem,pos+vec2(off.x,0.0)).xyz*255.0,-1.0);float tr=dot(demtr,u_dem_unpack);vec4 dembl=vec4(texture2D(u_dem,pos+vec2(0.0,off.y)).xyz*255.0,-1.0);float bl=dot(dembl,u_dem_unpack);vec4 dembr=vec4(texture2D(u_dem,pos+off).xyz*255.0,-1.0);float br=dot(dembr,u_dem_unpack);\n#endif\nreturn vec4(tl,tr,bl,br);}float flatElevation(vec2 pack) {vec2 apos=floor(pack/8.0);vec2 span=10.0*(pack-apos*8.0);vec2 uvTex=(apos-vec2(1.0,1.0))/8190.0;float size=u_dem_size+2.0;float dd=1.0/size;vec2 pos=u_dem_size*(uvTex*u_dem_scale+u_dem_tl)+1.0;vec2 f=fract(pos);pos=(pos-f+0.5)*dd;vec4 h=fourSample(pos,vec2(dd));float z=mix(mix(h.x,h.y,f.x),mix(h.z,h.w,f.x),f.y);vec2 w=floor(0.5*(span*u_meter_to_dem-1.0));vec2 d=dd*w;h=fourSample(pos-d,2.0*d+vec2(dd));vec4 diff=abs(h.xzxy-h.ywzw);vec2 slope=min(vec2(0.25),u_meter_to_dem*0.5*(diff.xz+diff.yw)/(2.0*w+vec2(1.0)));vec2 fix=slope*span;float base=z+max(fix.x,fix.y);return u_exaggeration*base;}float elevationFromUint16(float word) {return u_exaggeration*(word/ELEVATION_SCALE-ELEVATION_OFFSET);}\n#else\nfloat elevation(vec2 pos) { return 0.0; }bool isOccluded(vec4 frag) { return false; }float occlusionFade(vec4 frag) { return 1.0; }\n#endif",zs="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump mat4 u_fog_matrix;varying vec3 v_fog_pos;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}vec3 fog_position(vec3 pos) {return (u_fog_matrix*vec4(pos,1.0)).xyz;}vec3 fog_position(vec2 pos) {return fog_position(vec3(pos,0.0));}float fog(vec3 pos) {float depth=length(pos);float opacity=fog_opacity(fog_range(depth));return opacity*fog_horizon_blending(pos/depth);}\n#endif",Po="#ifdef FOG\nuniform mediump vec4 u_fog_color;uniform mediump vec2 u_fog_range;uniform mediump float u_fog_horizon_blend;uniform mediump float u_fog_temporal_offset;varying vec3 v_fog_pos;uniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform highp vec2 u_viewport;uniform float u_globe_transition;uniform int u_is_globe;float fog_range(float depth) {return (depth-u_fog_range[0])/(u_fog_range[1]-u_fog_range[0]);}float fog_horizon_blending(vec3 camera_dir) {float t=max(0.0,camera_dir.z/u_fog_horizon_blend);return u_fog_color.a*exp(-3.0*t*t);}float fog_opacity(float t) {const float decay=6.0;float falloff=1.0-min(1.0,exp(-decay*t));falloff*=falloff*falloff;return u_fog_color.a*min(1.0,1.00747*falloff);}float globe_glow_progress() {highp vec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);highp vec3 dir=normalize(ray_dir);highp vec3 closest_point=dot(u_globe_pos,dir)*dir;highp float sdf=length(closest_point-u_globe_pos)/u_globe_radius;return sdf+PI*0.5;}float fog_opacity(vec3 pos) {float depth=length(pos);return fog_opacity(fog_range(depth));}vec3 fog_apply(vec3 color,vec3 pos) {float depth=length(pos);float opacity;if (u_is_globe==1) {float glow_progress=globe_glow_progress();float t=mix(glow_progress,depth,u_globe_transition);opacity=fog_opacity(fog_range(t));} else {opacity=fog_opacity(fog_range(depth));opacity*=fog_horizon_blending(pos/depth);}return mix(color,u_fog_color.rgb,opacity);}vec4 fog_apply_from_vert(vec4 color,float fog_opac) {float alpha=EPSILON+color.a;color.rgb=mix(color.rgb/alpha,u_fog_color.rgb,fog_opac)*alpha;return color;}vec3 fog_apply_sky_gradient(vec3 camera_ray,vec3 sky_color) {float horizon_blend=fog_horizon_blending(normalize(camera_ray));return mix(sky_color,u_fog_color.rgb,horizon_blend);}vec4 fog_apply_premultiplied(vec4 color,vec3 pos) {float alpha=EPSILON+color.a;color.rgb=fog_apply(color.rgb/alpha,pos)*alpha;return color;}vec3 fog_dither(vec3 color) {vec2 dither_seed=gl_FragCoord.xy+u_fog_temporal_offset;return dither(color,dither_seed);}vec4 fog_dither(vec4 color) {return vec4(fog_dither(color.rgb),color.a);}\n#endif";let Jo={},vs={};const Ko=[];xs(fr,Ko),xs(Yo,Ko),xs(zs,Ko),xs(Po,Ko),Jo=Wi("",Yo),vs=Wi(Po,zs);const rl=Wi("\n#if __VERSION__ >=300\n#define varying in\n#define gl_FragColor glFragColor\n#define texture2D texture\n#define textureCube texture\nout vec4 glFragColor;\n#endif\nhighp vec3 hash(highp vec2 p) {highp vec3 p3=fract(p.xyx*vec3(443.8975,397.2973,491.1871));p3+=dot(p3,p3.yxz+19.19);return fract((p3.xxy+p3.yzz)*p3.zyx);}vec3 dither(vec3 color,highp vec2 seed) {vec3 rnd=hash(seed)+hash(seed+0.59374)-0.5;return color+rnd/255.0;}highp float unpack_depth(highp vec4 rgba_depth)\n{const highp vec4 bit_shift=vec4(1.0/(255.0*255.0*255.0),1.0/(255.0*255.0),1.0/255.0,1.0);return dot(rgba_depth,bit_shift)*2.0-1.0;}highp vec4 pack_depth(highp float ndc_z) {highp float depth=ndc_z*0.5+0.5;const highp vec4 bit_shift=vec4(255.0*255.0*255.0,255.0*255.0,255.0,1.0);const highp vec4 bit_mask =vec4(0.0,1.0/255.0,1.0/255.0,1.0/255.0);highp vec4 res=fract(depth*bit_shift);res-=res.xxyz*bit_mask;return res;}","\n#if __VERSION__ >=300\n#define attribute in\n#define varying out\n#define texture2D texture\n#endif\nfloat wrap(float n,float min,float max) {float d=max-min;float w=mod(mod(n-min,d)+d,d)+min;return (w==min) ? max : w;}\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 mercator_tile_position(mat4 matrix,vec2 tile_anchor,vec3 tile_id,vec2 mercator_center) {\n#ifndef PROJECTED_POS_ON_VIEWPORT\nfloat tiles=tile_id.z;vec2 mercator=(tile_anchor/EXTENT+tile_id.xy)/tiles;mercator-=mercator_center;mercator.x=wrap(mercator.x,-0.5,0.5);vec4 mercator_tile=vec4(mercator.xy*EXTENT,EXTENT/(2.0*PI),1.0);mercator_tile=matrix*mercator_tile;return mercator_tile.xyz;\n#else\nreturn vec3(0.0);\n#endif\n}vec3 mix_globe_mercator(vec3 globe,vec3 mercator,float t) {return mix(globe,mercator,t);}mat3 globe_mercator_surface_vectors(vec3 pos_normal,vec3 up_dir,float zoom_transition) {vec3 normal=zoom_transition==0.0 ? pos_normal : normalize(mix(pos_normal,up_dir,zoom_transition));vec3 xAxis=normalize(vec3(normal.z,0.0,-normal.x));vec3 yAxis=normalize(cross(normal,xAxis));return mat3(xAxis,yAxis,normal);}\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(\nunpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}const vec4 AWAY=vec4(-1000.0,-1000.0,-1000.0,1);//Normalized device coordinate that is not rendered."),la=fr,ca="\n#ifdef GL_ES\nprecision mediump float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif";var Ba={background:Wi("uniform vec4 u_color;uniform float u_opacity;\n#ifdef LIGHTING_3D_MODE\nvarying vec4 v_color;\n#endif\nvoid main() {vec4 out_color;\n#ifdef LIGHTING_3D_MODE\nout_color=v_color;\n#else\nout_color=u_color;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#ifdef LIGHTING_3D_MODE\nuniform vec4 u_color;varying vec4 v_color;\n#endif\nvoid main() {gl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(u_color);\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),backgroundPattern:Wi("uniform vec2 u_pattern_tl;uniform vec2 u_pattern_br;uniform vec2 u_texsize;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos;void main() {vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(u_pattern_tl/u_texsize,u_pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_pattern_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),circle:Wi("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(\nantialiased_blur,0.0,extrude_length-radius/(radius+stroke_width)\n);vec4 out_color=mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_apply_premultiplied(out_color,v_fog_pos);\n#endif\ngl_FragColor=out_color*(v_visibility*opacity_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","#define NUM_VISIBILITY_RINGS 2\n#define INV_SQRT2 0.70710678\n#define ELEVATION_BIAS 0.0001\n#define NUM_SAMPLES_PER_RING 16\nuniform mat4 u_matrix;uniform mat2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvec2 calc_offset(vec2 extrusion,float radius,float stroke_width, float view_scale) {return extrusion*(radius+stroke_width)*u_extrude_scale*view_scale;}float cantilevered_elevation(vec2 pos,float radius,float stroke_width,float view_scale) {vec2 c1=pos+calc_offset(vec2(-1,-1),radius,stroke_width,view_scale);vec2 c2=pos+calc_offset(vec2(1,-1),radius,stroke_width,view_scale);vec2 c3=pos+calc_offset(vec2(1,1),radius,stroke_width,view_scale);vec2 c4=pos+calc_offset(vec2(-1,1),radius,stroke_width,view_scale);float h1=elevation(c1)+ELEVATION_BIAS;float h2=elevation(c2)+ELEVATION_BIAS;float h3=elevation(c3)+ELEVATION_BIAS;float h4=elevation(c4)+ELEVATION_BIAS;return max(h4,max(h3,max(h1,h2)));}float circle_elevation(vec2 pos) {\n#if defined(TERRAIN)\nreturn elevation(pos)+ELEVATION_BIAS;\n#else\nreturn 0.0;\n#endif\n}vec4 project_vertex(vec2 extrusion,vec4 world_center,vec4 projected_center,float radius,float stroke_width, float view_scale,mat3 surface_vectors) {vec2 sample_offset=calc_offset(extrusion,radius,stroke_width,view_scale);\n#ifdef PITCH_WITH_MAP\n#ifdef PROJECTION_GLOBE_VIEW\nreturn u_matrix*( world_center+vec4(sample_offset.x*surface_vectors[0]+sample_offset.y*surface_vectors[1],0) );\n#else\nreturn u_matrix*( world_center+vec4(sample_offset,0,0) );\n#endif\n#else\nreturn projected_center+vec4(sample_offset,0,0);\n#endif\n}float get_sample_step() {\n#ifdef PITCH_WITH_MAP\nreturn 2.0*PI/float(NUM_SAMPLES_PER_RING);\n#else\nreturn PI/float(NUM_SAMPLES_PER_RING);\n#endif\n}void main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);vec4 world_center;mat3 surface_vectors;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(circle_center)*circle_elevation(circle_center);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*circle_elevation(circle_center);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,circle_center,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;vec3 pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);world_center=vec4(pos,1);\n#else \nsurface_vectors=mat3(1.0);float height=circle_elevation(circle_center);world_center=vec4(circle_center,height,1);\n#endif\nvec4 projected_center=u_matrix*world_center;float view_scale=0.0;\n#ifdef PITCH_WITH_MAP\n#ifdef SCALE_WITH_MAP\nview_scale=1.0;\n#else\nview_scale=projected_center.w/u_camera_to_center_distance;\n#endif\n#else\n#ifdef SCALE_WITH_MAP\nview_scale=u_camera_to_center_distance;\n#else\nview_scale=projected_center.w;\n#endif\n#endif\ngl_Position=project_vertex(extrude,world_center,projected_center,radius,stroke_width,view_scale,surface_vectors);float visibility=0.0;\n#ifdef TERRAIN\nfloat step=get_sample_step();vec4 occlusion_world_center;vec4 occlusion_projected_center;\n#ifdef PITCH_WITH_MAP\nfloat cantilevered_height=cantilevered_elevation(circle_center,radius,stroke_width,view_scale);occlusion_world_center=vec4(circle_center,cantilevered_height,1);occlusion_projected_center=u_matrix*occlusion_world_center;\n#else\nocclusion_world_center=world_center;occlusion_projected_center=projected_center;\n#endif\nfor(int ring=0; ring < NUM_VISIBILITY_RINGS; ring++) {float scale=(float(ring)+1.0)/float(NUM_VISIBILITY_RINGS);for(int i=0; i < NUM_SAMPLES_PER_RING; i++) {vec2 extrusion=vec2(cos(step*float(i)),-sin(step*float(i)))*scale;vec4 frag_pos=project_vertex(extrusion,occlusion_world_center,occlusion_projected_center,radius,stroke_width,view_scale,surface_vectors);visibility+=float(!isOccluded(frag_pos));}}visibility/=float(NUM_VISIBILITY_RINGS)*float(NUM_SAMPLES_PER_RING);\n#else\nvisibility=1.0;\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nvisibility=1.0;\n#endif\nv_visibility=visibility;lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);\n#ifdef FOG\nv_fog_pos=fog_position(world_center.xyz);\n#endif\n}"),clippingMask:Wi("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:Wi("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef FOG\nif (u_is_globe==0) {gl_FragColor.r*=pow(1.0-fog_opacity(v_fog_pos),2.0);}\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;\n#endif\nvarying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec2 tilePos=floor(a_pos*0.5);vec3 pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 pos_normal_3=a_pos_normal_3/16384.0;mat3 surface_vectors=globe_mercator_surface_vectors(pos_normal_3,u_up_dir,u_zoom_transition);vec3 surface_extrusion=extrude.x*surface_vectors[0]+extrude.y*surface_vectors[1];vec3 globe_elevation=elevationVector(tilePos)*elevation(tilePos);vec3 globe_pos=a_pos_3+surface_extrusion+globe_elevation;vec3 mercator_elevation=u_up_dir*u_tile_up_scale*elevation(tilePos);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,tilePos,u_tile_id,u_merc_center)+surface_extrusion+mercator_elevation;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#else\npos=vec3(tilePos+extrude,elevation(tilePos));\n#endif\ngl_Position=u_matrix*vec4(pos,1);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),heatmapTexture:Wi("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=vec4(a_pos,0,1);v_pos=a_pos*0.5+0.5;}"),collisionBox:Wi("varying float v_placed;varying float v_notUsed;void main() {vec4 red =vec4(1.0,0.0,0.0,1.0);vec4 blue=vec4(0.0,0.0,1.0,0.5);gl_FragColor =mix(red,blue,step(0.5,v_placed))*0.5;gl_FragColor*=mix(1.0,0.1,step(0.5,v_notUsed));}","attribute vec3 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;attribute float a_size_scale;attribute vec2 a_padding;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_pos+elevationVector(a_anchor_pos)*elevation(a_anchor_pos),1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,1.5);gl_Position=projectedPoint;gl_Position.xy+=(a_extrude*a_size_scale+a_shift+a_padding)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:Wi("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos_2f;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos_2f;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(\nmix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(\n0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:Wi("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;\n#endif\nvarying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {float h=elevation(a_pos);v_uv=a_pos/8192.0;\n#ifdef PROJECTION_GLOBE_VIEW\ngl_Position=u_matrix*vec4(a_pos_3+elevationVector(a_pos)*h,1);\n#else\ngl_Position=u_matrix*vec4(a_pos*u_overlay_scale,h,1);\n#endif\n}"),fill:Wi("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\nvec4 out_color=color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutline:Wi("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=outline_color;\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillOutlinePattern:Wi("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);float dist=length(v_pos_world-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;varying vec2 v_pos_world;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);v_pos_world=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillPattern:Wi("uniform vec2 u_texsize;uniform sampler2D u_image;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,a_pos);\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),fillExtrusion:Wi("varying vec4 v_color;\n#ifdef RENDER_SHADOWS\nvarying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\nvoid main() {\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvec3 normal=v_normal;\n#endif\nfloat z;vec4 color;\n#ifdef ZERO_ROOF_RADIUS\nz=float(normal.z > 0.00001);color=mix(v_color,v_roof_color,z);\n#else\ncolor=v_color;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;\n#ifdef ZERO_ROOF_RADIUS\nconcave*=(1.0-z);\n#endif\nfloat x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);color.rgb=color.rgb*shade;\n#endif\n#ifdef RENDER_SHADOWS\n#ifdef ZERO_ROOF_RADIUS\nnormal=mix(normal,vec3(0.0,0.0,1.0),z);\n#endif\ncolor.xyz=shadowed_color_normal(color.xyz,normalize(normal),v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform float u_edge_radius;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec4 v_color;\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying highp vec4 v_pos_light_view_0;varying highp vec4 v_pos_light_view_1;varying float v_depth;\n#endif\n#ifdef ZERO_ROOF_RADIUS\nvarying vec4 v_roof_color;\n#endif\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nvarying highp vec3 v_normal;\n#endif\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec4 pos_nx=floor(a_pos_normal_ed*0.5);vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));\n#if defined(ZERO_ROOF_RADIUS) || defined(RENDER_SHADOWS)\nv_normal=normal;\n#endif\nbase=max(0.0,base);height=max(0.0,top_up_ny.y==0.0 && top_up_ny.x==1.0 ? height-u_edge_radius : height);float t=top_up_ny.x;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=0.0;float c_ele;vec3 pos;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);pos=vec3(pos_nx.xy,h);\n#else\nh=t > 0.0 ? height : base;pos=vec3(pos_nx.xy,h);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*h);vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,pos.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*pos.z;pos=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(pos,1),AWAY,hidden);\n#ifdef RENDER_SHADOWS\nv_pos_light_view_0=u_light_matrix_0*vec4(pos,1);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1);v_depth=gl_Position.w;\n#endif\nfloat NdotL=0.0;float colorvalue=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\ncolorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;NdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}v_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_color=apply_lighting(color,NdotL);\n#else\nv_color.rgb+=clamp(color.rgb*NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_color*=u_opacity;\n#ifdef ZERO_ROOF_RADIUS\nv_roof_color=vec4(0.0,0.0,0.0,1.0);\n#ifdef LIGHTING_3D_MODE\nv_roof_color=apply_lighting(color,calculate_NdotL(vec3(0.0,0.0,1.0)));\n#else\nfloat roofNdotL=clamp(u_lightpos.z,0.0,1.0);roofNdotL=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),roofNdotL);v_roof_color.rgb+=clamp(color.rgb*roofNdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));\n#endif\nv_roof_color*=u_opacity;\n#endif\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),fillExtrusionPattern:Wi("uniform vec2 u_texsize;uniform sampler2D u_image;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;uniform lowp float u_opacity;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 imagecoord=mod(v_pos,1.0);vec2 pos=mix(pattern_tl/u_texsize,pattern_br/u_texsize,imagecoord);vec4 out_color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color,v_NdotL)*u_opacity;\n#else\nout_color=out_color*v_lighting;\n#endif\n#ifdef FAUX_AO\nfloat intensity=u_ao[0];float h=max(0.0,v_ao.z);float h_floors=h/u_ao[1];float y_shade=1.0-0.9*intensity*min(v_ao.y,1.0);float shade=(1.0-0.08*intensity)*(y_shade+(1.0-y_shade)*(1.0-pow(1.0-min(h_floors/16.0,1.0),16.0)))+0.08*intensity*min(h_floors/160.0,1.0);float concave=v_ao.x*v_ao.x;float x_shade=mix(1.0,mix(0.6,0.75,min(h_floors/30.0,1.0)),intensity)+0.1*intensity*min(h,1.0);shade*=mix(1.0,x_shade*x_shade*x_shade,concave);out_color.rgb=out_color.rgb*shade;\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\ngl_FragColor=out_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform float u_tile_units_to_pixels;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec4 a_pos_normal_ed;attribute vec2 a_centroid_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_pos_3;attribute vec3 a_pos_normal_3;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_tile_id;uniform float u_zoom_transition;uniform vec3 u_up_dir;uniform float u_height_lift;\n#endif\nvarying vec2 v_pos;varying vec4 v_lighting;\n#ifdef FAUX_AO\nuniform lowp vec2 u_ao;varying vec3 v_ao;\n#endif\n#ifdef LIGHTING_3D_MODE\nvarying float v_NdotL;\n#endif\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec4 pos_nx=floor(a_pos_normal_ed*0.5);mediump vec4 top_up_ny_start=a_pos_normal_ed-2.0*pos_nx;mediump vec3 top_up_ny=top_up_ny_start.xyz;float x_normal=pos_nx.z/8192.0;vec3 normal=top_up_ny.y==1.0 ? vec3(0.0,0.0,1.0) : normalize(vec3(x_normal,(2.0*top_up_ny.z-1.0)*(1.0-abs(x_normal)),0.0));float edgedistance=a_pos_normal_ed.w;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;base=max(0.0,base);height=max(0.0,height);float t=top_up_ny.x;float z=t > 0.0 ? height : base;vec2 centroid_pos=vec2(0.0);\n#if defined(HAS_CENTROID) || defined(TERRAIN)\ncentroid_pos=a_centroid_pos;\n#endif\nfloat ele=0.0;float h=z;vec3 p;float c_ele;\n#ifdef TERRAIN\nbool flat_roof=centroid_pos.x !=0.0 && t > 0.0;ele=elevation(pos_nx.xy);c_ele=flat_roof ? centroid_pos.y==0.0 ? elevationFromUint16(centroid_pos.x) : flatElevation(centroid_pos) : ele;h=flat_roof ? max(c_ele+height,ele+base+2.0) : ele+(t > 0.0 ? height : base==0.0 ?-5.0 : base);p=vec3(pos_nx.xy,h);\n#else\np=vec3(pos_nx.xy,z);\n#endif\n#ifdef PROJECTION_GLOBE_VIEW\nfloat lift=float((t+base) > 0.0)*u_height_lift;h+=lift;vec3 globe_normal=normalize(mix(a_pos_normal_3/16384.0,u_up_dir,u_zoom_transition));vec3 globe_pos=a_pos_3+globe_normal*(u_tile_up_scale*(p.z+lift));vec3 merc_pos=mercator_tile_position(u_inv_rot_matrix,p.xy,u_tile_id,u_merc_center)+u_up_dir*u_tile_up_scale*p.z;p=mix_globe_mercator(globe_pos,merc_pos,u_zoom_transition);\n#endif\nfloat hidden=float(centroid_pos.x==0.0 && centroid_pos.y==1.0);gl_Position=mix(u_matrix*vec4(p,1),AWAY,hidden);vec2 pos=normal.z==1.0\n? pos_nx.xy\n: vec2(edgedistance,z*u_height_factor);v_pos=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,display_size,u_tile_units_to_pixels,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float NdotL=0.0;\n#ifdef LIGHTING_3D_MODE\nNdotL=calculate_NdotL(normal);\n#else\nNdotL=clamp(dot(normal,u_lightpos),0.0,1.0);NdotL=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),NdotL);\n#endif\nif (normal.y !=0.0) {float r=0.84;\n#ifndef LIGHTING_3D_MODE\nr=mix(0.7,0.98,1.0-u_lightintensity);\n#endif\nNdotL*=(\n(1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),r,1.0)));}\n#ifdef FAUX_AO\nfloat concave=pos_nx.w-floor(pos_nx.w*0.5)*2.0;float start=top_up_ny_start.w;float y_ground=1.0-clamp(t+base,0.0,1.0);float top_height=height;\n#ifdef TERRAIN\ntop_height=mix(max(c_ele+height,ele+base+2.0),ele+height,float(centroid_pos.x==0.0))-ele;y_ground+=y_ground*5.0/max(3.0,top_height);\n#endif\nv_ao=vec3(mix(concave,-concave,start),y_ground,h-ele);NdotL*=(1.0+0.05*(1.0-top_up_ny.y)*u_ao[0]);\n#ifdef PROJECTION_GLOBE_VIEW\ntop_height+=u_height_lift;\n#endif\ngl_Position.z-=(0.0000006*(min(top_height,500.)+2.0*min(base,500.0)+60.0*concave+3.0*start))*gl_Position.w;\n#endif\n#ifdef LIGHTING_3D_MODE\nv_NdotL=NdotL;\n#else\nv_lighting.rgb+=clamp(NdotL*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;\n#endif \n#ifdef FOG\nv_fog_pos=fog_position(p);\n#endif\n}"),hillshadePrepare:Wi("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord) {\n#ifdef TERRAIN_DEM_FLOAT_FORMAT\nreturn texture2D(u_image,coord).a/4.0;\n#else\nvec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;\n#endif\n}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y));float b=getElevation(v_pos+vec2(0,-epsilon.y));float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y));float d=getElevation(v_pos+vec2(-epsilon.x,0));float e=getElevation(v_pos+vec2(epsilon.x,0));float f=getElevation(v_pos+vec2(-epsilon.x,epsilon.y));float g=getElevation(v_pos+vec2(0,epsilon.y));float h=getElevation(v_pos+vec2(epsilon.x,epsilon.y));float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2(\n(c+e+e+h)-(a+d+d+f),(f+g+g+h)-(a+b+b+c)\n)/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(\nderiv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:Wi("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;void main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef LIGHTING_3D_MODE\ngl_FragColor=apply_lighting(gl_FragColor);\n#endif\n#ifdef FOG\ngl_FragColor=fog_dither(fog_apply_premultiplied(gl_FragColor,v_fog_pos));\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),line:Wi("uniform lowp float u_device_pixel_ratio;uniform float u_alpha_discard_threshold;uniform highp vec2 u_trim_offset;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform sampler2D u_dash_image;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform sampler2D u_gradient_image;\n#endif\nuniform float u_border_width;uniform vec4 u_border_color;float luminance(vec3 c) {return (c.r+c.r+c.b+c.g+c.g+c.g)*0.1667;}\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nfloat linearstep(float edge0,float edge1,float x) {return clamp((x-edge0)/(edge1-edge0),0.0,1.0);}void main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);\n#ifdef RENDER_LINE_DASH\nfloat sdfdist=texture2D(u_dash_image,v_tex).a;float sdfgamma=1.0/(2.0*u_device_pixel_ratio)/dash.z;alpha*=linearstep(0.5-sdfgamma/floorwidth,0.5+sdfgamma/floorwidth,sdfdist);\n#endif\nhighp vec4 out_color;\n#ifdef RENDER_LINE_GRADIENT\nout_color=texture2D(u_gradient_image,v_uv.xy);\n#else\nout_color=color;\n#endif\nfloat trimmed=1.0;\n#ifdef RENDER_LINE_TRIM_OFFSET\nhighp float start=v_uv[2];highp float end=v_uv[3];highp float trim_start=u_trim_offset[0];highp float trim_end=u_trim_offset[1];highp float line_progress=(start+(v_uv.x)*(end-start));if (trim_end > trim_start) {if (line_progress <=trim_end && line_progress >=trim_start) {out_color=vec4(0,0,0,0);trimmed=0.0;}}\n#endif\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply_premultiplied(out_color,v_fog_pos));\n#endif\n#ifdef RENDER_LINE_ALPHA_DISCARD\nif (alpha < u_alpha_discard_threshold) {discard;}\n#endif\n#ifdef RENDER_LINE_BORDER\nfloat edgeBlur=(u_border_width+1.0/u_device_pixel_ratio);float alpha2=clamp(min(dist-(v_width2.t-edgeBlur),v_width2.s-dist)/edgeBlur,0.0,1.0);if (alpha2 < 1.) {float smoothAlpha=smoothstep(0.6,1.0,alpha2);\n#ifdef RENDER_LINE_BORDER_AUTO\nfloat Y=(out_color.a > 0.01) ? luminance(out_color.rgb/out_color.a) : 1.;float adjustment=(Y > 0.) ? 0.5/Y : 0.45;if (out_color.a > 0.25 && Y < 0.25) {vec3 borderColor=(Y > 0.) ? out_color.rgb : vec3(1,1,1)*out_color.a;out_color.rgb=out_color.rgb+borderColor*(adjustment*(1.0-smoothAlpha));} else {out_color.rgb*=(0.6 +0.4*smoothAlpha);}\n#else\nout_color.rgb=mix(u_border_color.rgb*u_border_color.a*trimmed,out_color.rgb,smoothAlpha);\n#endif\n}\n#endif\ngl_FragColor=out_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define EXTRUDE_SCALE 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nattribute highp vec4 a_packed;\n#endif\n#ifdef RENDER_LINE_DASH\nattribute float a_linesofar;\n#endif\nuniform mat4 u_matrix;uniform mat2 u_pixels_to_tile_units;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec4 v_uv;\n#ifdef RENDER_LINE_DASH\nuniform vec2 u_texsize;uniform float u_tile_units_to_pixels;varying vec2 v_tex;\n#endif\n#ifdef RENDER_LINE_GRADIENT\nuniform float u_image_height;\n#endif\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 dash\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize lowp vec4 dash\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*EXTRUDE_SCALE;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*EXTRUDE_SCALE*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\n#if defined(RENDER_LINE_GRADIENT) || defined(RENDER_LINE_TRIM_OFFSET)\nfloat a_uv_x=a_packed[0];float a_split_index=a_packed[1];highp float a_clip_start=a_packed[2];highp float a_clip_end=a_packed[3];\n#ifdef RENDER_LINE_GRADIENT\nhighp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec4(a_uv_x,a_split_index*texel_height-half_texel_height,a_clip_start,a_clip_end);\n#else\nv_uv=vec4(a_uv_x,0.0,a_clip_start,a_clip_end);\n#endif\n#endif\n#ifdef RENDER_LINE_DASH\nfloat scale=dash.z==0.0 ? 0.0 : u_tile_units_to_pixels/dash.z;float height=dash.y;v_tex=vec2(a_linesofar*scale/floorwidth,(-normal.y*height+dash.x+0.5)/u_texsize.y);\n#endif\nv_width2=vec2(outset,inset);\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),linePattern:Wi("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_tile_units_to_pixels;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl=pattern.xy;vec2 pattern_br=pattern.zw;vec2 display_size=(pattern_br-pattern_tl)/pixel_ratio;vec2 pattern_size=vec2(display_size.x/u_tile_units_to_pixels,display_size.y);float aspect=display_size.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x=mod(v_linesofar/pattern_size.x*aspect,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos=mix(pattern_tl*texel_size-texel_size,pattern_br*texel_size+texel_size,vec2(x,y));vec4 color=texture2D(u_image,pos);\n#ifdef LIGHTING_3D_MODE\ncolor=apply_lighting(color);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_linesofar;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mat2 u_pixels_to_tile_units;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern\n#pragma mapbox: define lowp float pixel_ratio\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern\n#pragma mapbox: initialize lowp float pixel_ratio\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist*u_pixels_to_tile_units,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2*u_pixels_to_tile_units,0.0,1.0)+projected_extrude;\n#ifndef RENDER_TO_TEXTURE\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#else\nv_gamma_scale=1.0;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;\n#ifdef FOG\nv_fog_pos=fog_position(pos);\n#endif\n}"),raster:Wi("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(\ndot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);vec3 out_color=mix(u_high_vec,u_low_vec,rgb);\n#ifdef LIGHTING_3D_MODE\nout_color=apply_lighting(out_color);\n#endif\n#ifdef FOG\nout_color=fog_dither(fog_apply(out_color,v_fog_pos));\n#endif\ngl_FragColor=vec4(out_color*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform vec2 u_perspective_transform;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {float w=1.0+dot(a_texture_pos,u_perspective_transform);gl_Position=u_matrix*vec4(a_pos*w,0,w);v_pos0=a_texture_pos/8192.0;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;\n#ifdef FOG\nv_fog_pos=fog_position(a_pos);\n#endif\n}"),symbolIcon:Wi("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_min_font_scale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetProjected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetProjected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetProjected_point.xy/offsetProjected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*max(a_min_font_scale,font_scale)+a_pxoffset/16.0);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change))*projection_transition_fade;}"),symbolSDF:Wi("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_pixeloffset;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetprojected_point;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 displacement=vec3(a_globe_normal.z,0,-a_globe_normal.x);offsetprojected_point=u_matrix*vec4(a_globe_anchor+displacement,1);\n#else\noffsetprojected_point=u_matrix*vec4(tile_anchor+vec2(1,0),0,1);\n#endif\nvec2 a=projected_point.xy/projected_point.w;vec2 b=offsetprojected_point.xy/offsetprojected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nvec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade);}"),symbolTextAndIcon:Wi("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec4 a_pos_offset;attribute vec4 a_tex_size;attribute vec4 a_projected_pos;attribute float a_fade_opacity;\n#ifdef PROJECTION_GLOBE_VIEW\nattribute vec3 a_globe_anchor;attribute vec3 a_globe_normal;\n#endif\nuniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec3 u_up_vector;uniform vec2 u_texsize_icon;\n#ifdef PROJECTION_GLOBE_VIEW\nuniform vec3 u_tile_id;uniform mat4 u_inv_rot_matrix;uniform vec2 u_merc_center;uniform vec3 u_camera_forward;uniform float u_zoom_transition;uniform vec3 u_ecef_origin;uniform mat4 u_tile_matrix;\n#endif\nvarying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_tex_size.xy;vec2 a_size=a_tex_size.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[3];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec2 tile_anchor=a_pos;vec3 h=elevationVector(tile_anchor)*elevation(tile_anchor);float globe_occlusion_fade;vec3 world_pos;vec3 mercator_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nmercator_pos=mercator_tile_position(u_inv_rot_matrix,tile_anchor,u_tile_id,u_merc_center);world_pos=mix_globe_mercator(a_globe_anchor+h,mercator_pos,u_zoom_transition);vec4 ecef_point=u_tile_matrix*vec4(world_pos,1.0);vec3 origin_to_point=ecef_point.xyz-u_ecef_origin;globe_occlusion_fade=dot(origin_to_point,u_camera_forward) >=0.0 ? 0.0 : 1.0;\n#else\nworld_pos=vec3(tile_anchor,0)+h;globe_occlusion_fade=1.0;\n#endif\nvec4 projected_point=u_matrix*vec4(world_pos,1);highp float camera_to_anchor_distance=projected_point.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(\n0.5+0.5*distance_ratio,0.0,1.5);size*=perspective_ratio;float font_scale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offset_projected_point=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projected_point.xy/projected_point.w;vec2 b=offset_projected_point.xy/offset_projected_point.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}vec4 projected_pos;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 proj_pos=mix_globe_mercator(a_projected_pos.xyz+h,mercator_pos,u_zoom_transition);projected_pos=u_label_plane_matrix*vec4(proj_pos,1.0);\n#else\nprojected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,h.z,1.0);\n#endif\nhighp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);float z=0.0;vec2 offset=rotation_matrix*(a_offset/32.0*font_scale);\n#ifdef TERRAIN\n#ifdef PITCH_WITH_MAP_TERRAIN\nvec4 tile_pos=u_label_plane_matrix_inv*vec4(a_projected_pos.xy+offset,0.0,1.0);z=elevation(tile_pos.xy);\n#endif\n#endif\nfloat occlusion_fade=occlusionFade(projected_point)*globe_occlusion_fade;\n#ifdef PROJECTION_GLOBE_VIEW\nvec3 xAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,u_up_vector)) : vec3(1,0,0);vec3 yAxis=u_pitch_with_map ? normalize(cross(a_globe_normal,xAxis)) : vec3(0,1,0);gl_Position=mix(u_coord_matrix*vec4(projected_pos.xyz/projected_pos.w+xAxis*offset.x+yAxis*offset.y,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#else\ngl_Position=mix(u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+offset,z,1.0),AWAY,float(projected_point.w <=0.0 || occlusion_fade==0.0));\n#endif\nfloat gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(occlusion_fade,fade_opacity[0]+fade_change));float projection_transition_fade=1.0;\n#if defined(PROJECTED_POS_ON_VIEWPORT) && defined(PROJECTION_GLOBE_VIEW)\nprojection_transition_fade=1.0-step(EPSILON,u_zoom_transition);\n#endif\nv_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity*projection_transition_fade,is_sdf);}"),terrainRaster:Wi("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nvarying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nvoid main() {vec4 color=texture2D(u_image0,v_pos0);\n#ifdef RENDER_SHADOWS\ncolor.xyz=shadowed_color(color.xyz,v_pos_light_view_0,v_pos_light_view_1,v_depth);\n#endif\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#else\ncolor=fog_dither(fog_apply_from_vert(color,v_fog_opacity));\n#endif\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_skirt_height;attribute vec2 a_pos;varying vec2 v_pos0;\n#ifdef FOG\nvarying float v_fog_opacity;\n#endif\n#ifdef RENDER_SHADOWS\nuniform mat4 u_light_matrix_0;uniform mat4 u_light_matrix_1;varying vec4 v_pos_light_view_0;varying vec4 v_pos_light_view_1;varying float v_depth;\n#endif\nconst float wireframeOffset=0.00015;void main() {vec3 decomposedPosAndSkirt=decomposeToPosAndSkirt(a_pos);float skirt=decomposedPosAndSkirt.z;vec2 decodedPos=decomposedPosAndSkirt.xy;float elevation=elevation(decodedPos)-skirt*u_skirt_height;\n#ifdef TERRAIN_WIREFRAME\nelevation+=wireframeOffset;\n#endif\nv_pos0=decodedPos/8192.0;gl_Position=u_matrix*vec4(decodedPos,elevation,1.0);\n#ifdef FOG\n#ifdef ZERO_EXAGGERATION\nv_fog_pos=fog_position(decodedPos);\n#else\nv_fog_opacity=fog(fog_position(vec3(decodedPos,elevation)));\n#endif\n#endif\n#ifdef RENDER_SHADOWS\nvec3 pos=vec3(decodedPos,elevation);v_pos_light_view_0=u_light_matrix_0*vec4(pos,1.);v_pos_light_view_1=u_light_matrix_1*vec4(pos,1.);v_depth=gl_Position.w;\n#endif\n}"),terrainDepth:Wi("#ifdef GL_ES\nprecision highp float;\n#endif\nvarying float v_depth;void main() {gl_FragColor=pack_depth(v_depth);}","uniform mat4 u_matrix;attribute vec2 a_pos;varying float v_depth;void main() {float elevation=elevation(a_pos);gl_Position=u_matrix*vec4(a_pos,elevation,1.0);v_depth=gl_Position.z/gl_Position.w;}"),skybox:Wi("\nvarying lowp vec3 v_uv;uniform lowp samplerCube u_cubemap;uniform lowp float u_opacity;uniform highp float u_temporal_offset;uniform highp vec3 u_sun_direction;float sun_disk(highp vec3 ray_direction,highp vec3 sun_direction) {highp float cos_angle=dot(normalize(ray_direction),sun_direction);const highp float cos_sun_angular_diameter=0.99996192306;const highp float smoothstep_delta=1e-5;return smoothstep(\ncos_sun_angular_diameter-smoothstep_delta,cos_sun_angular_diameter+smoothstep_delta,cos_angle);}float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec3 uv=v_uv;const float y_bias=0.015;uv.y+=y_bias;uv.y=pow(abs(uv.y),1.0/5.0);uv.y=map(uv.y,0.0,1.0,-1.0,1.0);vec3 sky_color=textureCube(u_cubemap,uv).rgb;\n#ifdef FOG\nsky_color=fog_apply_sky_gradient(v_uv.xzy,sky_color);\n#endif\nsky_color.rgb=dither(sky_color.rgb,gl_FragCoord.xy+u_temporal_offset);sky_color+=0.1*sun_disk(v_uv,u_sun_direction);gl_FragColor=vec4(sky_color*u_opacity,u_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",vo),skyboxGradient:Wi("varying highp vec3 v_uv;uniform lowp sampler2D u_color_ramp;uniform highp vec3 u_center_direction;uniform lowp float u_radius;uniform lowp float u_opacity;uniform highp float u_temporal_offset;void main() {float progress=acos(dot(normalize(v_uv),u_center_direction))/u_radius;vec4 color=texture2D(u_color_ramp,vec2(progress,0.5));\n#ifdef FOG\ncolor.rgb=fog_apply_sky_gradient(v_uv.xzy,color.rgb/color.a)*color.a;\n#endif\ncolor*=u_opacity;color.rgb=dither(color.rgb,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}",vo),skyboxCapture:Wi("\nvarying highp vec3 v_position;uniform highp float u_sun_intensity;uniform highp float u_luminance;uniform lowp vec3 u_sun_direction;uniform highp vec4 u_color_tint_r;uniform highp vec4 u_color_tint_m;\n#ifdef GL_ES\nprecision highp float;\n#endif\n#define BETA_R vec3(5.5e-6,13.0e-6,22.4e-6)\n#define BETA_M vec3(21e-6,21e-6,21e-6)\n#define MIE_G 0.76\n#define DENSITY_HEIGHT_SCALE_R 8000.0\n#define DENSITY_HEIGHT_SCALE_M 1200.0\n#define PLANET_RADIUS 6360e3\n#define ATMOSPHERE_RADIUS 6420e3\n#define SAMPLE_STEPS 10\n#define DENSITY_STEPS 4\nfloat ray_sphere_exit(vec3 orig,vec3 dir,float radius) {float a=dot(dir,dir);float b=2.0*dot(dir,orig);float c=dot(orig,orig)-radius*radius;float d=sqrt(b*b-4.0*a*c);return (-b+d)/(2.0*a);}vec3 extinction(vec2 density) {return exp(-vec3(BETA_R*u_color_tint_r.a*density.x+BETA_M*u_color_tint_m.a*density.y));}vec2 local_density(vec3 point) {float height=max(length(point)-PLANET_RADIUS,0.0);float exp_r=exp(-height/DENSITY_HEIGHT_SCALE_R);float exp_m=exp(-height/DENSITY_HEIGHT_SCALE_M);return vec2(exp_r,exp_m);}float phase_ray(float cos_angle) {return (3.0/(16.0*PI))*(1.0+cos_angle*cos_angle);}float phase_mie(float cos_angle) {return (3.0/(8.0*PI))*((1.0-MIE_G*MIE_G)*(1.0+cos_angle*cos_angle))/((2.0+MIE_G*MIE_G)*pow(1.0+MIE_G*MIE_G-2.0*MIE_G*cos_angle,1.5));}vec2 density_to_atmosphere(vec3 point,vec3 light_dir) {float ray_len=ray_sphere_exit(point,light_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(DENSITY_STEPS);vec2 density_point_to_atmosphere=vec2(0.0);for (int i=0; i < DENSITY_STEPS;++i) {vec3 point_on_ray=point+light_dir*((float(i)+0.5)*step_len);density_point_to_atmosphere+=local_density(point_on_ray)*step_len;;}return density_point_to_atmosphere;}vec3 atmosphere(vec3 ray_dir,vec3 sun_direction,float sun_intensity) {vec2 density_orig_to_point=vec2(0.0);vec3 scatter_r=vec3(0.0);vec3 scatter_m=vec3(0.0);vec3 origin=vec3(0.0,PLANET_RADIUS,0.0);float ray_len=ray_sphere_exit(origin,ray_dir,ATMOSPHERE_RADIUS);float step_len=ray_len/float(SAMPLE_STEPS);for (int i=0; i < SAMPLE_STEPS;++i) {vec3 point_on_ray=origin+ray_dir*((float(i)+0.5)*step_len);vec2 density=local_density(point_on_ray)*step_len;density_orig_to_point+=density;vec2 density_point_to_atmosphere=density_to_atmosphere(point_on_ray,sun_direction);vec2 density_orig_to_atmosphere=density_orig_to_point+density_point_to_atmosphere;vec3 extinction=extinction(density_orig_to_atmosphere);scatter_r+=density.x*extinction;scatter_m+=density.y*extinction;}float cos_angle=dot(ray_dir,sun_direction);float phase_r=phase_ray(cos_angle);float phase_m=phase_mie(cos_angle);vec3 beta_r=BETA_R*u_color_tint_r.rgb*u_color_tint_r.a;vec3 beta_m=BETA_M*u_color_tint_m.rgb*u_color_tint_m.a;return (scatter_r*phase_r*beta_r+scatter_m*phase_m*beta_m)*sun_intensity;}const float A=0.15;const float B=0.50;const float C=0.10;const float D=0.20;const float E=0.02;const float F=0.30;vec3 uncharted2_tonemap(vec3 x) {return ((x*(A*x+C*B)+D*E)/(x*(A*x+B)+D*F))-E/F;}void main() {vec3 ray_direction=v_position;ray_direction.y=pow(ray_direction.y,5.0);const float y_bias=0.015;ray_direction.y+=y_bias;vec3 color=atmosphere(normalize(ray_direction),u_sun_direction,u_sun_intensity);float white_scale=1.0748724675633854;color=uncharted2_tonemap((log2(2.0/pow(u_luminance,4.0)))*color)*white_scale;gl_FragColor=vec4(color,1.0);}","attribute highp vec3 a_pos_3f;uniform mat3 u_matrix_3f;varying highp vec3 v_position;float map(float value,float start,float end,float new_start,float new_end) {return ((value-start)*(new_end-new_start))/(end-start)+new_start;}void main() {vec4 pos=vec4(u_matrix_3f*a_pos_3f,1.0);v_position=pos.xyz;v_position.y*=-1.0;v_position.y=map(v_position.y,-1.0,1.0,0.0,1.0);gl_Position=vec4(a_pos_3f.xy,0.0,1.0);}"),globeRaster:Wi("uniform sampler2D u_image0;varying vec2 v_pos0;\n#ifndef FOG\nuniform highp vec3 u_frustum_tl;uniform highp vec3 u_frustum_tr;uniform highp vec3 u_frustum_br;uniform highp vec3 u_frustum_bl;uniform highp vec3 u_globe_pos;uniform highp float u_globe_radius;uniform vec2 u_viewport;\n#endif\nvoid main() {vec4 color;\n#ifdef CUSTOM_ANTIALIASING\nvec2 uv=gl_FragCoord.xy/u_viewport;highp vec3 ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,uv.x),mix(u_frustum_bl,u_frustum_br,uv.x),1.0-uv.y);vec3 dir=normalize(ray_dir);vec3 closest_point=dot(u_globe_pos,dir)*dir;float norm_dist_from_center=1.0-length(closest_point-u_globe_pos)/u_globe_radius;const float antialias_pixel=2.0;float antialias_factor=antialias_pixel*fwidth(norm_dist_from_center);float antialias=smoothstep(0.0,antialias_factor,norm_dist_from_center);vec4 raster=texture2D(u_image0,v_pos0);color=vec4(raster.rgb*antialias,raster.a*antialias);\n#else\ncolor=texture2D(u_image0,v_pos0);\n#endif\n#ifdef FOG\ncolor=fog_dither(fog_apply_premultiplied(color,v_fog_pos));\n#endif\ngl_FragColor=color;\n#ifdef TERRAIN_WIREFRAME\ngl_FragColor=vec4(1.0,0.0,0.0,0.8);\n#endif\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_proj_matrix;uniform mat4 u_normalize_matrix;uniform mat4 u_globe_matrix;uniform mat4 u_merc_matrix;uniform float u_zoom_transition;uniform vec2 u_merc_center;uniform mat3 u_grid_matrix;uniform float u_skirt_height;\n#ifdef GLOBE_POLES\nattribute vec3 a_globe_pos;attribute vec2 a_uv;\n#else\nattribute vec2 a_pos;\n#endif\nvarying vec2 v_pos0;const float wireframeOffset=1e3;float mercatorXfromLng(float lng) {return (180.0+lng)/360.0;}float mercatorYfromLat(float lat) {return (180.0-(RAD_TO_DEG*log(tan(QUARTER_PI+lat/2.0*DEG_TO_RAD))))/360.0;}vec3 latLngToECEF(vec2 latLng) {latLng=DEG_TO_RAD*latLng;float cosLat=cos(latLng[0]);float sinLat=sin(latLng[0]);float cosLng=cos(latLng[1]);float sinLng=sin(latLng[1]);float sx=cosLat*sinLng*GLOBE_RADIUS;float sy=-sinLat*GLOBE_RADIUS;float sz=cosLat*cosLng*GLOBE_RADIUS;return vec3(sx,sy,sz);}void main() {\n#ifdef GLOBE_POLES\nvec3 globe_pos=a_globe_pos;vec2 uv=a_uv;\n#else\nfloat tiles=u_grid_matrix[0][2];float idx=u_grid_matrix[1][2];float idy=u_grid_matrix[2][2];vec3 decomposed_pos_and_skirt=decomposeToPosAndSkirt(a_pos);vec3 latLng=u_grid_matrix*vec3(decomposed_pos_and_skirt.xy,1.0);float mercatorY=mercatorYfromLat(latLng[0]);float uvY=mercatorY*tiles-idy;float mercatorX=mercatorXfromLng(latLng[1]);float uvX=mercatorX*tiles-idx;vec3 globe_pos=latLngToECEF(latLng.xy);vec2 merc_pos=vec2(mercatorX,mercatorY);vec2 uv=vec2(uvX,uvY);\n#endif\nv_pos0=uv;vec2 tile_pos=uv*EXTENT;vec3 globe_derived_up_vector=normalize(globe_pos)*u_tile_up_scale;\n#ifdef GLOBE_POLES\nvec3 up_vector=globe_derived_up_vector;\n#else\nvec3 up_vector=elevationVector(tile_pos);\n#endif\nfloat height=elevation(tile_pos);\n#ifdef TERRAIN_WIREFRAME\nheight+=wireframeOffset;\n#endif\nglobe_pos+=up_vector*height;\n#ifndef GLOBE_POLES\nglobe_pos-=globe_derived_up_vector*u_skirt_height*decomposed_pos_and_skirt.z;\n#endif\n#ifdef GLOBE_POLES\nvec4 interpolated_pos=u_globe_matrix*vec4(globe_pos,1.0);\n#else\nvec4 globe_world_pos=u_globe_matrix*vec4(globe_pos,1.0);vec4 merc_world_pos=vec4(0.0);if (u_zoom_transition > 0.0) {merc_world_pos=vec4(merc_pos,height-u_skirt_height*decomposed_pos_and_skirt.z,1.0);merc_world_pos.xy-=u_merc_center;merc_world_pos.x=wrap(merc_world_pos.x,-0.5,0.5);merc_world_pos=u_merc_matrix*merc_world_pos;}vec4 interpolated_pos=vec4(mix(globe_world_pos.xyz,merc_world_pos.xyz,u_zoom_transition),1.0);\n#endif\ngl_Position=u_proj_matrix*interpolated_pos;\n#ifdef FOG\nv_fog_pos=fog_position((u_normalize_matrix*vec4(globe_pos,1.0)).xyz);\n#endif\n}"),globeAtmosphere:Wi("uniform float u_transition;uniform highp float u_fadeout_range;uniform highp float u_temporal_offset;uniform vec3 u_start_color;uniform vec4 u_color;uniform vec4 u_space_color;uniform vec4 u_high_color;uniform float u_star_intensity;uniform float u_star_size;uniform float u_star_density;uniform float u_horizon_angle;uniform mat4 u_rotation_matrix;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;highp float random(highp vec3 p) {p=fract(p*vec3(23.2342,97.1231,91.2342));p+=dot(p.zxy,p.yxz+123.1234);return fract(p.x*p.y);}float stars(vec3 p,float scale,vec2 offset) {vec2 uv_scale=(u_viewport/u_star_size)*scale;vec3 position=vec3(p.xy*uv_scale+offset*u_viewport,p.z);vec3 q=fract(position)-0.5;vec3 id=floor(position);float random_visibility=step(random(id),u_star_density);float circle=smoothstep(0.5+u_star_intensity,0.5,length(q));return circle*random_visibility;}void main() {highp vec3 dir=normalize(v_ray_dir);float globe_pos_dot_dir;\n#ifdef PROJECTION_GLOBE_VIEW\nglobe_pos_dot_dir=dot(u_globe_pos,dir);highp vec3 closest_point_forward=abs(globe_pos_dot_dir)*dir;float norm_dist_from_center=length(closest_point_forward-u_globe_pos)/u_globe_radius;if (norm_dist_from_center < 0.98) {discard;return;}\n#endif\nhighp vec3 horizon_dir=normalize(v_horizon_dir);float horizon_angle_mercator=dir.y < horizon_dir.y ?\n0.0 : max(acos(dot(dir,horizon_dir)),0.0);float horizon_angle;\n#ifdef PROJECTION_GLOBE_VIEW\nhighp vec3 closest_point=globe_pos_dot_dir*dir;float closest_point_to_center=length(closest_point-u_globe_pos);float theta=asin(clamp(closest_point_to_center/length(u_globe_pos),-1.0,1.0));horizon_angle=globe_pos_dot_dir < 0.0 ?\nPI-theta-u_horizon_angle : theta-u_horizon_angle;float angle_t=pow(u_transition,10.0);horizon_angle=mix(horizon_angle,horizon_angle_mercator,angle_t);\n#else\nhorizon_angle=horizon_angle_mercator;\n#endif\nhorizon_angle/=PI;float t=exp(-horizon_angle/u_fadeout_range);float alpha_0=u_color.a;float alpha_1=u_high_color.a;float alpha_2=u_space_color.a;vec3 color_stop_0=u_color.rgb;vec3 color_stop_1=u_high_color.rgb;vec3 color_stop_2=u_space_color.rgb;vec3 c0=mix(color_stop_2,color_stop_1,alpha_1);vec3 c1=mix(c0,color_stop_0,alpha_0);vec3 c2=mix(c0,c1,t);vec3 c =mix(color_stop_2,c2,t);float a0=mix(alpha_2,1.0,alpha_1);float a1=mix(a0,1.0,alpha_0);float a2=mix(a0,a1,t);float a =mix(alpha_2,a2,t);vec2 uv=gl_FragCoord.xy/u_viewport-0.5;float aspect_ratio=u_viewport.x/u_viewport.y;vec4 uv_dir=vec4(normalize(vec3(uv.x*aspect_ratio,uv.y,1.0)),1.0);uv_dir=u_rotation_matrix*uv_dir;vec3 n=abs(uv_dir.xyz);vec2 uv_remap=(n.x > n.y && n.x > n.z) ? uv_dir.yz/uv_dir.x:\n(n.y > n.x && n.y > n.z) ? uv_dir.zx/uv_dir.y:\nuv_dir.xy/uv_dir.z;uv_remap.x/=aspect_ratio;vec3 D=vec3(uv_remap,1.0);highp float star_field=0.0;if (u_star_intensity > 0.0) {star_field+=stars(D,1.2,vec2(0.0,0.0));star_field+=stars(D,1.0,vec2(1.0,0.0));star_field+=stars(D,0.8,vec2(0.0,1.0));star_field+=stars(D,0.6,vec2(1.0,1.0));star_field*=(1.0-pow(t,0.25+(1.0-u_high_color.a)*0.75));c+=star_field*alpha_2;}c=dither(c,gl_FragCoord.xy+u_temporal_offset);gl_FragColor=vec4(c,a);}","attribute vec3 a_pos;attribute vec2 a_uv;uniform vec3 u_frustum_tl;uniform vec3 u_frustum_tr;uniform vec3 u_frustum_br;uniform vec3 u_frustum_bl;uniform float u_horizon;varying highp vec3 v_ray_dir;varying highp vec3 v_horizon_dir;void main() {v_ray_dir=mix(\nmix(u_frustum_tl,u_frustum_tr,a_uv.x),mix(u_frustum_bl,u_frustum_br,a_uv.x),a_uv.y);v_horizon_dir=mix(\nmix(u_frustum_tl,u_frustum_bl,u_horizon),mix(u_frustum_tr,u_frustum_br,u_horizon),a_uv.x);gl_Position=vec4(a_pos,1.0);}")};function xs(u,n){const a=u.replace(/\s*\/\/[^\n]*\n/g,"\n").split("\n");for(let p of a)if(p=p.trim(),"#"===p[0]&&p.includes("if")&&!p.includes("endif")){p=p.replace("#","").replace(/ifdef|ifndef|elif|if/g,"").replace(/!|defined|\(|\)|\|\||&&/g,"").replace(/\s+/g," ").trim();const y=p.split(" ");for(const x of y)n.includes(x)||n.push(x)}}function Wi(u,n){const a=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,p=n.match(/attribute (highp |mediump |lowp )?([\w]+) ([\w]+)/g),y={},x=[...Ko];return xs(u,x),xs(n,x),{fragmentSource:u=u.replace(a,(D,I,R,U,z)=>(y[z]=!0,"define"===I?`\n#ifndef HAS_UNIFORM_u_${z}\nvarying ${R} ${U} ${z};\n#else\nuniform ${R} ${U} u_${z};\n#endif\n`:`\n#ifdef HAS_UNIFORM_u_${z}\n ${R} ${U} ${z} = u_${z};\n#endif\n`)),vertexSource:n=n.replace(a,(D,I,R,U,z)=>{const Q="float"===U?"vec2":"vec4",Se=z.match(/color/)?"color":Q;return y[z]?"define"===I?`\n#ifndef HAS_UNIFORM_u_${z}\nuniform lowp float u_${z}_t;\nattribute ${R} ${Q} a_${z};\nvarying ${R} ${U} ${z};\n#else\nuniform ${R} ${U} u_${z};\n#endif\n`:"vec4"===Se?`\n#ifndef HAS_UNIFORM_u_${z}\n ${z} = a_${z};\n#else\n ${R} ${U} ${z} = u_${z};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${z}\n ${z} = unpack_mix_${Se}(a_${z}, u_${z}_t);\n#else\n ${R} ${U} ${z} = u_${z};\n#endif\n`:"define"===I?`\n#ifndef HAS_UNIFORM_u_${z}\nuniform lowp float u_${z}_t;\nattribute ${R} ${Q} a_${z};\n#else\nuniform ${R} ${U} u_${z};\n#endif\n`:"vec4"===Se?`\n#ifndef HAS_UNIFORM_u_${z}\n ${R} ${U} ${z} = a_${z};\n#else\n ${R} ${U} ${z} = u_${z};\n#endif\n`:`\n#ifndef HAS_UNIFORM_u_${z}\n ${R} ${U} ${z} = unpack_mix_${Se}(a_${z}, u_${z}_t);\n#else\n ${R} ${U} ${z} = u_${z};\n#endif\n`}),staticAttributes:p,usedDefines:x}}class za{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffers=[],this.vao=null}bind(n,a,p,y,x,D,I){this.context=n;let R=this.boundPaintVertexBuffers.length!==y.length;for(let z=0;!R&&z{const ht=ne.paint.get("hillshade-shadow-color"),gt=ne.paint.get("hillshade-highlight-color"),Ot=ne.paint.get("hillshade-accent-color");let kt=ne.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===ne.paint.get("hillshade-illumination-anchor")&&(kt-=$e.transform.angle);const Lt=!$e.options.moving;return{u_matrix:He||$e.transform.calculateProjMatrix(et.tileID.toUnwrapped(),Lt),u_image:0,u_latrange:Ca(0,et.tileID),u_light:[ne.paint.get("hillshade-exaggeration"),kt],u_shadow:ht,u_highlight:gt,u_accent:Ot}})(u,a,p,u.terrain?n.projMatrix:null);u.prepareDrawProgram(I,z,n.toUnwrapped());const{tileBoundsBuffer:Se,tileBoundsIndexBuffer:je,tileBoundsSegments:Ye}=u.getTileBoundsBuffers(a);z.draw(I,R.TRIANGLES,y,x,D,l.CullFaceMode.disabled,Q,p.id,Se,je,Ye)}function ol(u,n,a){if(!n.needsDEMTextureUpload)return;const p=u.context,y=p.gl;p.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||u.getTileTexture(a.stride);const x=a.getPixels();n.demTexture?n.demTexture.update(x,{premultiply:!1}):n.demTexture=new l.Texture(p,x,y.RGBA,{premultiply:!1}),n.needsDEMTextureUpload=!1}function Zl(u,n,a,p,y,x){const D=u.context,I=D.gl;if(!n.dem)return;const R=n.dem;if(D.activeTexture.set(I.TEXTURE1),ol(u,n,R),!n.demTexture)return;n.demTexture.bind(I.NEAREST,I.CLAMP_TO_EDGE);const U=R.dim;D.activeTexture.set(I.TEXTURE0);let z=n.fbo;if(!z){const Ye=new l.Texture(D,{width:U,height:U,data:null},I.RGBA);Ye.bind(I.LINEAR,I.CLAMP_TO_EDGE),z=n.fbo=D.createFramebuffer(U,U,!0),z.colorAttachment.set(Ye.texture)}D.bindFramebuffer.set(z.framebuffer),D.viewport.set([0,0,U,U]);const{tileBoundsBuffer:Q,tileBoundsIndexBuffer:Se,tileBoundsSegments:je}=u.getMercatorTileBoundsBuffers();u.useProgram("hillshadePrepare").draw(D,I.TRIANGLES,p,y,x,l.CullFaceMode.disabled,((Ye,$e)=>{const et=$e.stride,ne=l.create();return l.ortho(ne,0,l.EXTENT,-l.EXTENT,0,0,1),l.translate(ne,ne,[0,-l.EXTENT,0]),{u_matrix:ne,u_image:1,u_dimension:[et,et],u_zoom:Ye.overscaledZ,u_unpack:$e.unpackVector}})(n.tileID,R),a.id,Q,Se,je),n.needsHillshadePrepare=!1}const ua=u=>({u_matrix:new l.UniformMatrix4f(u),u_image0:new l.Uniform1i(u),u_skirt_height:new l.Uniform1f(u)}),da=(u,n)=>({u_matrix:u,u_image0:0,u_skirt_height:n}),Ua=(u,n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye)=>({u_proj_matrix:Float32Array.from(u),u_globe_matrix:n,u_normalize_matrix:Float32Array.from(p),u_merc_matrix:a,u_zoom_transition:y,u_merc_center:x,u_image0:0,u_frustum_tl:D,u_frustum_tr:I,u_frustum_br:R,u_frustum_bl:U,u_globe_pos:z,u_globe_radius:Q,u_viewport:Se,u_grid_matrix:Ye?Float32Array.from(Ye):new Float32Array(9),u_skirt_height:je});function ja(u,n){return null!=u&&null!=n&&!(!u.hasData()||!n.hasData())&&null!=u.demTexture&&null!=n.demTexture&&u.tileID.key!==n.tileID.key}const Us=new class{constructor(){this.operations={}}newMorphing(u,n,a,p,y){if(u in this.operations){const x=this.operations[u];x.to.tileID.key!==a.tileID.key&&(x.queued=a)}else this.operations[u]={startTime:p,phase:0,duration:y,from:n,to:a,queued:null}}getMorphValuesForProxy(u){if(!(u in this.operations))return null;const n=this.operations[u];return{from:n.from,to:n.to,phase:n.phase}}update(u){for(const n in this.operations){const a=this.operations[n];for(a.phase=(u-a.startTime)/a.duration;a.phase>=1||!this._validOp(a);)if(!this._nextOp(a,u)){delete this.operations[n];break}}}_nextOp(u,n){return!!u.queued&&(u.from=u.to,u.to=u.queued,u.queued=null,u.phase=0,u.startTime=n,!0)}_validOp(u){return u.from.hasData()&&u.to.hasData()}},ha={0:null,1:"TERRAIN_VERTEX_MORPHING",2:"TERRAIN_WIREFRAME"};function Ea(u){return 6*Math.pow(1.5,22-u)}function Xo(u,n){const a=1<({u_matrix:u});function ea(u,n,a,p,y){if(y>0){const x=l.exported.now(),D=(x-u.timeAdded)/y,I=n?(x-n.timeAdded)/y:-1,R=a.getSource(),U=p.coveringZoomLevel({tileSize:R.tileSize,roundZoom:R.roundZoom}),z=!n||Math.abs(n.tileID.overscaledZ-U)>Math.abs(u.tileID.overscaledZ-U),Q=z&&u.refreshedUponExpiration?1:l.clamp(z?D:1-I,0,1);return u.refreshedUponExpiration&&D>=1&&(u.refreshedUponExpiration=!1),n?{opacity:1,mix:1-Q}:{opacity:Q,mix:0}}return{opacity:1,mix:0}}class Gl extends l.SourceCache{constructor(n){const a={type:"raster-dem",maxzoom:n.transform.maxZoom},p=new dn(uo(),null),y=st("mock-dem",a,p,n.style);super("mock-dem",y,!1),y.setEventedParent(this),this._sourceLoaded=!0}_loadTile(n,a){n.state="loaded",a(null)}}class sl extends l.SourceCache{constructor(n){const a=st("proxy",{type:"geojson",maxzoom:n.transform.maxZoom},new dn(uo(),null),n.style);super("proxy",a,!1),a.setEventedParent(this),this.map=this.getSource().map=n,this.used=this._sourceLoaded=!0,this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}update(n,a,p){if(n.freezeTileCoverage)return;this.transform=n;const y=n.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}).reduce((x,D)=>{if(x[D.key]="",!this._tiles[D.key]){const I=new l.Tile(D,this._source.tileSize*D.overscaleFactor(),n.tileZoom);I.state="loaded",this._tiles[D.key]=I}return x},{});for(const x in this._tiles)x in y||(this.freeFBO(x),this._tiles[x].unloadVectorData(),delete this._tiles[x])}freeFBO(n){const a=this.proxyCachedFBO[n];if(void 0!==a){const p=Object.values(a);this.renderCachePool.push(...p),delete this.proxyCachedFBO[n]}}deallocRenderCache(){this.renderCache.forEach(n=>n.fb.destroy()),this.renderCache=[],this.renderCachePool=[],this.proxyCachedFBO={}}}class nr extends l.OverscaledTileID{constructor(n,a,p){super(n.overscaledZ,n.wrap,n.canonical.z,n.canonical.x,n.canonical.y),this.proxyTileKey=a,this.projMatrix=p}}class ro extends l.Elevation{constructor(n,a){super(),this.painter=n,this.terrainTileForTile={},this.prevTerrainTileForTile={};const[p,y,x]=function(R){const U=new l.StructArrayLayout2i4,z=new l.StructArrayLayout3ui6,Q=131;U.reserve(17161),z.reserve(33800);const Se=l.EXTENT/128,je=l.EXTENT+Se/2,Ye=je+Se;for(let et=-Se;etje||et<0||et>je?24575:0,ht=l.clamp(Math.round(ne),0,l.EXTENT),gt=l.clamp(Math.round(et),0,l.EXTENT);U.emplaceBack(ht+He,gt)}const $e=(et,ne)=>{const He=ne*Q+et;z.emplaceBack(He+1,He,He+Q),z.emplaceBack(He+Q,He+Q+1,He+1)};for(let et=1;et<129;et++)for(let ne=1;ne<129;ne++)$e(ne,et);return[0,129].forEach(et=>{for(let ne=0;ne<130;ne++)$e(ne,et),$e(et,ne)}),[U,z,32768]}(),D=n.context;this.gridBuffer=D.createVertexBuffer(p,l.posAttributes.members),this.gridIndexBuffer=D.createIndexBuffer(y),this.gridSegments=l.SegmentVector.simpleSegment(0,0,p.length,y.length),this.gridNoSkirtSegments=l.SegmentVector.simpleSegment(0,0,p.length,x),this.proxyCoords=[],this.proxiedCoords={},this._visibleDemTiles=[],this._drapedRenderBatches=[],this._sourceTilesOverlap={},this.proxySourceCache=new sl(a.map),this.orthoMatrix=l.create(),l.ortho(this.orthoMatrix,"globe"===this.painter.transform.projection.name?.015:0,l.EXTENT,0,l.EXTENT,0,1);const I=D.gl;this._overlapStencilMode=new l.StencilMode({func:I.GEQUAL,mask:255},0,255,I.KEEP,I.KEEP,I.REPLACE),this._previousZoom=n.transform.zoom,this.pool=[],this._findCoveringTileCache={},this._tilesDirty={},this.style=a,this._useVertexMorphing=!0,this._exaggeration=1,this._mockSourceCache=new Gl(a.map)}set style(n){n.on("data",this._onStyleDataEvent.bind(this)),n.on("neworder",this._checkRenderCacheEfficiency.bind(this)),this._style=n,this._checkRenderCacheEfficiency(),this._style.map.on("moveend",()=>{this._clearLineLayersFromRenderCache()})}update(n,a,p){if(n&&n.terrain){this._style!==n&&(this.style=n),this.enabled=!0;const y=n.terrain.properties;this.sourceCache=0===n.terrain.drapeRenderMode?this._mockSourceCache:n._getSourceCache(y.get("source")),this._exaggeration=y.get("exaggeration");const x=()=>{this.sourceCache.used&&l.warnOnce(`Raster DEM source '${this.sourceCache.id}' is used both for terrain and as layer source.\nThis leads to lower resolution of hillshade. For full hillshade resolution but higher memory consumption, define another raster DEM source.`);const D=this.getScaledDemTileSize();this.sourceCache.update(a,D,!0),this.resetTileLookupCache(this.sourceCache.id)};this.sourceCache.usedForTerrain||(this.resetTileLookupCache(this.sourceCache.id),this.sourceCache.usedForTerrain=!0,x(),this._initializing=!0),x(),a.updateElevation(!0,p),this.resetTileLookupCache(this.proxySourceCache.id),this.proxySourceCache.update(a),this._emptyDEMTextureDirty=!0}else this._disable()}resetTileLookupCache(n){this._findCoveringTileCache[n]={}}getScaledDemTileSize(){return this.sourceCache.getSource().tileSize/128*this.proxySourceCache.getSource().tileSize}_checkRenderCacheEfficiency(){const n=this.renderCacheEfficiency(this._style);this._style.map._optimizeForTerrain||100!==n.efficiency&&l.warnOnce(`Terrain render cache efficiency is not optimal (${n.efficiency}%) and performance\n may be affected negatively, consider placing all background, fill and line layers before layer\n with id '${n.firstUndrapedLayer}' or create a map using optimizeForTerrain: true option.`)}_onStyleDataEvent(n){n.coord&&"source"===n.dataType?this._clearRenderCacheForTile(n.sourceCacheId,n.coord):"style"===n.dataType&&(this._invalidateRenderCache=!0)}_disable(){if(this.enabled&&(this.enabled=!1,this._sharedDepthStencil=void 0,this.proxySourceCache.deallocRenderCache(),this._style))for(const n in this._style._sourceCaches)this._style._sourceCaches[n].usedForTerrain=!1}destroy(){this._disable(),this._emptyDEMTexture&&this._emptyDEMTexture.destroy(),this._emptyDepthBufferTexture&&this._emptyDepthBufferTexture.destroy(),this.pool.forEach(n=>n.fb.destroy()),this.pool=[],this._depthFBO&&(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0)}_source(){return this.enabled?this.sourceCache:null}isUsingMockSource(){return this.sourceCache===this._mockSourceCache}exaggeration(){return this._exaggeration}get visibleDemTiles(){return this._visibleDemTiles}get drapeBufferSize(){const n=2*this.proxySourceCache.getSource().tileSize;return[n,n]}set useVertexMorphing(n){this._useVertexMorphing=n}updateTileBinding(n){if(!this.enabled)return;this.prevTerrainTileForTile=this.terrainTileForTile;const a=this.proxySourceCache,p=this.painter.transform;this._initializing&&(this._initializing=0===p._centerAltitude&&-1===this.getAtPointOrZero(l.MercatorCoordinate.fromLngLat(p.center),-1),this._emptyDEMTextureDirty=!this._initializing);const y=this.proxyCoords=a.getIds().map(R=>{const U=a.getTileByID(R).tileID;return U.projMatrix=p.calculateProjMatrix(U.toUnwrapped()),U});(function(R,U){const z=U.transform.pointCoordinate(U.transform.getCameraPoint()),Q=new l.Point(z.x,z.y);R.sort((Se,je)=>{if(je.overscaledZ-Se.overscaledZ)return je.overscaledZ-Se.overscaledZ;const Ye=new l.Point(Se.canonical.x+(1<{this.proxyToSource[R.key]={}}),this.terrainTileForTile={};const D=this._style._sourceCaches;for(const R in D){const U=D[R];if(!U.used||(U!==this.sourceCache&&this.resetTileLookupCache(U.id),this._setupProxiedCoordsForOrtho(U,n[R],x),U.usedForTerrain))continue;const z=n[R];U.getSource().reparseOverscaled&&this._assignTerrainTiles(z)}this.proxiedCoords[a.id]=y.map(R=>new nr(R,R.key,this.orthoMatrix)),this._assignTerrainTiles(y),this._prepareDEMTextures(),this._setupDrapedRenderBatches(),this._initFBOPool(),this._setupRenderCache(x),this.renderingToTexture=!1,this._updateTimestamp=l.exported.now();const I={};this._visibleDemTiles=[];for(const R of this.proxyCoords){const U=this.terrainTileForTile[R.key];if(!U)continue;const z=U.tileID.key;z in I||(this._visibleDemTiles.push(U),I[z]=z)}}_assignTerrainTiles(n){this._initializing||n.forEach(a=>{if(this.terrainTileForTile[a.key])return;const p=this._findTileCoveringTileID(a,this.sourceCache);p&&(this.terrainTileForTile[a.key]=p)})}_prepareDEMTextures(){const n=this.painter.context,a=n.gl;for(const p in this.terrainTileForTile){const y=this.terrainTileForTile[p],x=y.dem;!x||y.demTexture&&!y.needsDEMTextureUpload||(n.activeTexture.set(a.TEXTURE1),ol(this.painter,y,x))}}_prepareDemTileUniforms(n,a,p,y){if(!a||null==a.demTexture)return!1;const x=n.tileID.canonical,D=Math.pow(2,a.tileID.canonical.z-x.z),I=y||"";return p[`u_dem_tl${I}`]=[x.x*D%1,x.y*D%1],p[`u_dem_scale${I}`]=D,!0}get emptyDEMTexture(){return!this._emptyDEMTextureDirty&&this._emptyDEMTexture?this._emptyDEMTexture:this._updateEmptyDEMTexture()}get emptyDepthBufferTexture(){const n=this.painter.context,a=n.gl;if(!this._emptyDepthBufferTexture){const p=new l.RGBAImage({width:1,height:1},Uint8Array.of(255,255,255,255));this._emptyDepthBufferTexture=new l.Texture(n,p,a.RGBA,{premultiply:!1})}return this._emptyDepthBufferTexture}_getLoadedAreaMinimum(){let n=0;const a=this._visibleDemTiles.reduce((p,y)=>{if(!y.dem)return p;const x=y.dem.tree.minimums[0];return x>0&&n++,p+x},0);return n?a/n:0}_updateEmptyDEMTexture(){const n=this.painter.context,a=n.gl;n.activeTexture.set(a.TEXTURE2);const p=this._getLoadedAreaMinimum(),y=new l.RGBAImage({width:1,height:1},new Uint8Array(l.DEMData.pack(p,this.sourceCache.getSource().encoding)));this._emptyDEMTextureDirty=!1;let x=this._emptyDEMTexture;return x?x.update(y,{premultiply:!1}):x=this._emptyDEMTexture=new l.Texture(n,y,a.RGBA,{premultiply:!1}),x}setupElevationDraw(n,a,p){const y=this.painter.context,x=y.gl,D=(I=this.sourceCache.getSource().encoding,{u_dem:2,u_dem_prev:4,u_dem_unpack:l.DEMData.getUnpackVector(I),u_dem_tl:[0,0],u_dem_tl_prev:[0,0],u_dem_scale:0,u_dem_scale_prev:0,u_dem_size:0,u_dem_lerp:1,u_depth:3,u_depth_size_inv:[0,0],u_exaggeration:0});var I;D.u_dem_size=this.sourceCache.getSource().tileSize,D.u_exaggeration=this.exaggeration();let R=null,U=null,z=1;if(p&&p.morphing&&this._useVertexMorphing){const Q=p.morphing.srcDemTile,Se=p.morphing.dstDemTile;z=p.morphing.phase,Q&&Se&&(this._prepareDemTileUniforms(n,Q,D,"_prev")&&(U=Q),this._prepareDemTileUniforms(n,Se,D)&&(R=Se))}if(U&&R?(y.activeTexture.set(x.TEXTURE2),R.demTexture.bind(x.NEAREST,x.CLAMP_TO_EDGE,x.NEAREST),y.activeTexture.set(x.TEXTURE4),U.demTexture.bind(x.NEAREST,x.CLAMP_TO_EDGE,x.NEAREST),D.u_dem_lerp=z):(R=this.terrainTileForTile[n.tileID.key],y.activeTexture.set(x.TEXTURE2),(this._prepareDemTileUniforms(n,R,D)?R.demTexture:this.emptyDEMTexture).bind(x.NEAREST,x.CLAMP_TO_EDGE)),y.activeTexture.set(x.TEXTURE3),p&&p.useDepthForOcclusion?(this._depthTexture&&this._depthTexture.bind(x.NEAREST,x.CLAMP_TO_EDGE),this._depthFBO&&(D.u_depth_size_inv=[1/this._depthFBO.width,1/this._depthFBO.height])):(this.emptyDepthBufferTexture.bind(x.NEAREST,x.CLAMP_TO_EDGE),D.u_depth_size_inv=[1,1]),p&&p.useMeterToDem&&R){const Q=(1<{if(ne===qn)return;const An=[ha[qn],"PROJECTION_GLOBE_VIEW"];gt&&An.push("CUSTOM_ANTIALIASING"),sn&&An.push(ha[He]),et=U.useProgram("globeRaster",null,An),ne=qn},kt=U.colorModeForRenderPass(),Lt=new l.DepthMode($e.LEQUAL,l.DepthMode.ReadWrite,U.depthRangeFor3D);Us.update(je);const qt=l.calculateGlobeMercatorMatrix(ht),$t=[l.mercatorXfromLng(ht.center.lng),l.mercatorYfromLat(ht.center.lat)],cn=He?[!1,!0]:[!1],Wn=U.globeSharedBuffers,nn=[ht.width*l.exported.devicePixelRatio,ht.height*l.exported.devicePixelRatio],Mn=Float32Array.from(ht.globeMatrix),pn={useDenormalizedUpVectorScale:!0};if(cn.forEach(qn=>{const sn=U.transform,An=Ea(sn.zoom)*z.exaggeration();ne=-1;const Zn=qn?$e.LINES:$e.TRIANGLES;for(const kn of Se){const ti=Q.getTile(kn),Ii=l.StencilMode.disabled,$i=z.prevTerrainTileForTile[kn.key],mi=z.terrainTileForTile[kn.key];ja($i,mi)&&Us.newMorphing(kn.key,$i,mi,je,250),Ye.activeTexture.set($e.TEXTURE0),ti.texture.bind($e.LINEAR,$e.CLAMP_TO_EDGE);const Oi=Us.getMorphValuesForProxy(kn.key),cr=Oi?1:0;Oi&&l.extend$1(pn,{morphing:{srcDemTile:Oi.from,dstDemTile:Oi.to,phase:l.easeCubicInOut(Oi.phase)}});const lr=l.tileCornersToBounds(kn.canonical),Ci=l.getLatitudinalLod(lr.getCenter().lat),br=l.getGridMatrix(kn.canonical,lr,Ci,sn.worldSize/sn._pixelsPerMercatorPixel),Gr=l.globeNormalizeECEF(l.globeTileBounds(kn.canonical)),Ir=Ua(sn.projMatrix,Mn,qt,Gr,l.globeToMercatorTransition(sn.zoom),$t,sn.frustumCorners.TL,sn.frustumCorners.TR,sn.frustumCorners.BR,sn.frustumCorners.BL,sn.globeCenterInViewSpace,sn.globeRadius,nn,An,br);if(Ot(cr,qn),z.setupElevationDraw(ti,et,pn),U.prepareDrawProgram(Ye,et,kn.toUnwrapped()),Wn){const[Br,jo,is]=qn?Wn.getWirefameBuffers(U.context,Ci):Wn.getGridBuffers(Ci,0!==An);et.draw(Ye,Zn,Lt,Ii,kt,l.CullFaceMode.backCCW,Ir,"globe_raster",Br,jo,is)}}}),Wn){const qn=["GLOBE_POLES","PROJECTION_GLOBE_VIEW"];gt&&qn.push("CUSTOM_ANTIALIASING"),et=U.useProgram("globeRaster",null,qn);for(const sn of Se){const{x:An,y:Zn,z:kn}=sn.canonical,ti=0===Zn,Ii=Zn===(1<Ir.draw(Ye,$e.TRIANGLES,Lt,l.StencilMode.disabled,kt,l.CullFaceMode.disabled,Ua(ht.projMatrix,Ci,Ci,br,0,$t,ht.frustumCorners.TL,ht.frustumCorners.TR,ht.frustumCorners.BR,ht.frustumCorners.BL,ht.globeCenterInViewSpace,ht.globeRadius,nn,0),"globe_pole_raster",Br,Oi,cr);z.setupElevationDraw(lr,et,pn),U.prepareDrawProgram(Ye,et,sn.toUnwrapped()),ti&&Gr(et,$i),Ii&&(Ci=l.scale(l.create(),Ci,[1,-1,1]),Gr(et,mi))}}}}(y,x,D,I,R);else{const U=y.context,z=U.gl;let Q,Se;const je=y.options.showTerrainWireframe?2:0,Ye=(ht,gt)=>{if(Se===ht)return;const Ot=[ha[ht]];gt&&Ot.push(ha[je]),Q=y.useProgram("terrainRaster",null,Ot),Se=ht},$e=y.colorModeForRenderPass(),et=new l.DepthMode(z.LEQUAL,l.DepthMode.ReadWrite,y.depthRangeFor3D);Us.update(R);const ne=y.transform,He=Ea(ne.zoom)*x.exaggeration();(je?[!1,!0]:[!1]).forEach(ht=>{Se=-1;const gt=ht?z.LINES:z.TRIANGLES,[Ot,kt]=ht?x.getWirefameBuffer():[x.gridIndexBuffer,x.gridSegments];for(const Lt of I){const qt=D.getTile(Lt),$t=l.StencilMode.disabled,cn=x.prevTerrainTileForTile[Lt.key],Wn=x.terrainTileForTile[Lt.key];ja(cn,Wn)&&Us.newMorphing(Lt.key,cn,Wn,R,250),U.activeTexture.set(z.TEXTURE0),qt.texture.bind(z.LINEAR,z.CLAMP_TO_EDGE,z.LINEAR_MIPMAP_NEAREST);const nn=Us.getMorphValuesForProxy(Lt.key),Mn=nn?1:0;let pn;nn&&(pn={morphing:{srcDemTile:nn.from,dstDemTile:nn.to,phase:l.easeCubicInOut(nn.phase)}});const qn=da(Lt.projMatrix,Xo(Lt.canonical,ne.renderWorldCopies)?He/10:He);Ye(Mn,ht),x.setupElevationDraw(qt,Q,pn),y.prepareDrawProgram(U,Q,Lt.toUnwrapped()),Q.draw(U,gt,et,$t,$e,l.CullFaceMode.backCCW,qn,"terrain_raster",x.gridBuffer,Ot,kt)}})}}(a,this,this.proxySourceCache,n,this._updateTimestamp),this.renderingToTexture=!0,a.gpuTimingDeferredRenderEnd(),n.splice(0,n.length))}renderBatch(n){if(0===this._drapedRenderBatches.length)return n+1;this.renderingToTexture=!0;const a=this.painter,p=this.painter.context,y=this.proxySourceCache,x=this.proxiedCoords[y.id],D=this._drapedRenderBatches.shift(),I=[],R=a.style.order;let U=0;for(const z of x){const Q=y.getTileByID(z.proxyTileKey),Se=y.proxyCachedFBO[z.key]?y.proxyCachedFBO[z.key][n]:void 0,je=void 0!==Se?y.renderCache[Se]:this.pool[U++],Ye=void 0!==Se;if(Q.texture=je.tex,Ye&&!je.dirty){I.push(Q.tileID);continue}let $e;p.bindFramebuffer.set(je.fb.framebuffer),this.renderedToTile=!1,je.dirty&&(p.clear({color:l.Color.transparent,stencil:0}),je.dirty=!1);for(let et=D.start;et<=D.end;++et){const ne=a.style._layers[R[et]];if(ne.isHidden(a.transform.zoom))continue;const He=a.style._getLayerSourceCache(ne),ht=He?this.proxyToSource[z.key][He.id]:[z];if(!ht)continue;const gt=ht;p.viewport.set([0,0,je.fb.width,je.fb.height]),$e!==(He?He.id:null)&&(this._setupStencil(je,ht,ne,He),$e=He?He.id:null),a.renderLayer(a,He,ne,gt)}this.renderedToTile?(je.dirty=!0,I.push(Q.tileID)):Ye||--U,5===U&&(U=0,this.renderToBackBuffer(I))}return this.renderToBackBuffer(I),this.renderingToTexture=!1,p.bindFramebuffer.set(null),p.viewport.set([0,0,a.width,a.height]),D.end+1}postRender(){}renderCacheEfficiency(n){const a=n.order.length;if(0===a)return{efficiency:100};let p,y=0,x=0,D=!1;for(let I=0;Ia.dem).forEach(a=>{n=Math.min(n,a.dem.tree.minimums[0])}),0===n?n:(n-30)*this._exaggeration}raycast(n,a,p){if(!this._visibleDemTiles)return null;const y=this._visibleDemTiles.filter(x=>x.dem).map(x=>{const D=x.tileID,I=1<(null!==x.t?x.t:Number.MAX_VALUE)-(null!==D.t?D.t:Number.MAX_VALUE));for(const x of y){if(null==x.t)return null;const D=x.tile.dem.tree.raycast(x.minx,x.miny,x.maxx,x.maxy,n,a,p);if(null!=D)return D}return null}_createFBO(){const n=this.painter.context,a=n.gl,p=this.drapeBufferSize;n.activeTexture.set(a.TEXTURE0);const y=new l.Texture(n,{width:p[0],height:p[1],data:null},a.RGBA);y.bind(a.LINEAR,a.CLAMP_TO_EDGE);const x=n.createFramebuffer(p[0],p[1],!1);return x.colorAttachment.set(y.texture),x.depthAttachment=new dt(n,x.framebuffer),void 0===this._sharedDepthStencil?(this._sharedDepthStencil=n.createRenderbuffer(n.gl.DEPTH_STENCIL,p[0],p[1]),this._stencilRef=0,x.depthAttachment.set(this._sharedDepthStencil),n.clear({stencil:0})):x.depthAttachment.set(this._sharedDepthStencil),n.extTextureFilterAnisotropic&&!n.extTextureFilterAnisotropicForceOff&&a.texParameterf(a.TEXTURE_2D,n.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,n.extTextureFilterAnisotropicMax),{fb:x,tex:y,dirty:!1}}_initFBOPool(){for(;this.pool.length{const a=this._style._layers[n],p=a.isHidden(this.painter.transform.zoom);return"custom"===a.type?!p&&a.shouldRedrape():!p&&a.hasTransition()})}_clearLineLayersFromRenderCache(){let n=!1;for(const p of this._style._getSources())if(p instanceof Gn){n=!0;break}if(!n)return;const a={};for(let p=0;pa.renderCachePool.length){const D=Object.values(a.proxyCachedFBO);a.proxyCachedFBO={};for(let I=0;I=0;D--){const I=p[D];if(a.getTileByID(I.key),void 0!==a.proxyCachedFBO[I.key]){const R=n[I.key],U=this.proxyToSource[I.key];let z=0;for(const Q in U){const Se=U[Q],je=R[Q];if(!je||je.length!==Se.length||Se.some((Ye,$e)=>Ye!==je[$e]||y[Q]&&y[Q].hasOwnProperty(Ye.key))){z=-1;break}++z}for(const Q in a.proxyCachedFBO[I.key])a.renderCache[a.proxyCachedFBO[I.key][Q]].dirty=z<0||z!==Object.values(R).length}}const x=[...this._drapedRenderBatches];x.sort((D,I)=>I.end-I.start-(D.end-D.start));for(const D of x)for(const I of p){if(a.proxyCachedFBO[I.key])continue;let R=a.renderCachePool.pop();void 0===R&&a.renderCache.length<50&&(R=a.renderCache.length,a.renderCache.push(this._createFBO())),void 0!==R&&(a.proxyCachedFBO[I.key]={},a.proxyCachedFBO[I.key][D.start]=R,a.renderCache[R].dirty=!0)}this._tilesDirty={}}_setupStencil(n,a,p,y){if(!y||!this._sourceTilesOverlap[y.id])return void(this._overlapStencilType&&(this._overlapStencilType=!1));const x=this.painter.context,D=x.gl;if(a.length<=1)return void(this._overlapStencilType=!1);let I;if(p.isTileClipped())I=a.length,this._overlapStencilMode.test={func:D.EQUAL,mask:255},this._overlapStencilType="Clip";else{if(!(a[0].overscaledZ>a[a.length-1].overscaledZ))return void(this._overlapStencilType=!1);I=1,this._overlapStencilMode.test={func:D.GREATER,mask:255},this._overlapStencilType="Mask"}this._stencilRef+I>255&&(x.clear({stencil:0}),this._stencilRef=0),this._stencilRef+=I,this._overlapStencilMode.ref=this._stencilRef,p.isTileClipped()&&this._renderTileClippingMasks(a,this._overlapStencilMode.ref)}clipOrMaskOverlapStencilType(){return"Clip"===this._overlapStencilType||"Mask"===this._overlapStencilType}stencilModeForRTTOverlap(n){return this.renderingToTexture&&this._overlapStencilType?("Clip"===this._overlapStencilType&&(this._overlapStencilMode.ref=this.painter._tileClippingMaskIDs[n.key]),this._overlapStencilMode):l.StencilMode.disabled}_renderTileClippingMasks(n,a){const p=this.painter,y=this.painter.context,x=y.gl;p._tileClippingMaskIDs={},y.setColorMode(l.ColorMode.disabled),y.setDepthMode(l.DepthMode.disabled);const D=p.useProgram("clippingMask");for(const I of n){const R=p._tileClippingMaskIDs[I.key]=--a;D.draw(y,x.TRIANGLES,l.DepthMode.disabled,new l.StencilMode({func:x.ALWAYS,mask:0},R,255,x.KEEP,x.KEEP,x.REPLACE),l.ColorMode.disabled,l.CullFaceMode.disabled,fa(I.projMatrix),"$clipping",p.tileExtentBuffer,p.quadTriangleIndexBuffer,p.tileExtentSegments)}}pointCoordinate(n){const a=this.painter.transform;if(n.x<0||n.x>a.width||n.y<0||n.y>a.height)return null;const p=[n.x,n.y,1,1];l.transformMat4$1(p,p,a.pixelMatrixInverse),l.scale$1(p,p,1/p[3]),p[0]/=a.worldSize,p[1]/=a.worldSize;const y=a._camera.position,x=l.mercatorZfromAltitude(1,a.center.lat),D=[y[0],y[1],y[2]/x,0],I=l.subtract([],p.slice(0,3),D);l.normalize(I,I);const R=this.raycast(D,I,this._exaggeration);return null!==R&&R?(l.scaleAndAdd(D,D,I,R),D[3]=D[2],D[2]*=x,D):null}drawDepth(){const n=this.painter,a=n.context,p=this.proxySourceCache,y=Math.ceil(n.width),x=Math.ceil(n.height);if(!this._depthFBO||this._depthFBO.width===y&&this._depthFBO.height===x||(this._depthFBO.destroy(),this._depthFBO=void 0,this._depthTexture=void 0),!this._depthFBO){const D=a.gl,I=a.createFramebuffer(y,x,!0);a.activeTexture.set(D.TEXTURE0);const R=new l.Texture(a,{width:y,height:x,data:null},D.RGBA);R.bind(D.NEAREST,D.CLAMP_TO_EDGE),I.colorAttachment.set(R.texture);const U=a.createRenderbuffer(a.gl.DEPTH_COMPONENT16,y,x);I.depthAttachment.set(U),this._depthFBO=I,this._depthTexture=R}a.bindFramebuffer.set(this._depthFBO.framebuffer),a.viewport.set([0,0,y,x]),function(D,I,R,U){if("globe"===D.transform.projection.name)return;const z=D.context,Q=z.gl;z.clear({depth:1});const Se=D.useProgram("terrainDepth"),je=new l.DepthMode(Q.LESS,l.DepthMode.ReadWrite,D.depthRangeFor3D);for(const Ye of U){const $e=R.getTile(Ye),et=da(Ye.projMatrix,0);I.setupElevationDraw($e,Se),Se.draw(z,Q.TRIANGLES,je,l.StencilMode.disabled,l.ColorMode.unblended,l.CullFaceMode.backCCW,et,"terrain_depth",I.gridBuffer,I.gridIndexBuffer,I.gridNoSkirtSegments)}}(n,this,p,this.proxyCoords)}_setupProxiedCoordsForOrtho(n,a,p){if(n.getSource()instanceof Z)return this._setupProxiedCoordsForImageSource(n,a,p);this._findCoveringTileCache[n.id]=this._findCoveringTileCache[n.id]||{};const y=this.proxiedCoords[n.id]=[],x=this.proxyCoords;for(let I=0;I(z.min.x=Math.min(z.min.x,Q.x-I.x),z.min.y=Math.min(z.min.y,Q.y-I.y),z.max.x=Math.max(z.max.x,Q.x-I.x),z.max.y=Math.max(z.max.y,Q.y-I.y),z),{min:new l.Point(Number.MAX_VALUE,Number.MAX_VALUE),max:new l.Point(-Number.MAX_VALUE,-Number.MAX_VALUE)}),U=(z,Q)=>{const Se=z.wrap+z.canonical.x/(1<$e+R.max.x||je+Yeet+R.max.y};for(let z=0;zD.key===a.tileID.key);if(x)return x}if(a.tileID.key!==n.key){const x=n.canonical.z-a.tileID.canonical.z;let D,I,R;y=l.create();const U=a.tileID.wrap-n.wrap<0?(D=l.EXTENT>>x,I=D*((a.tileID.canonical.x<=Q){const Se=n.canonical.z-Q;a.getSource().reparseOverscaled?(I=Math.max(n.canonical.z+2,a.transform.tileZoom),D=new l.OverscaledTileID(I,n.wrap,Q,n.canonical.x>>Se,n.canonical.y>>Se)):0!==Se&&(I=Q,D=new l.OverscaledTileID(I,n.wrap,Q,n.canonical.x>>Se,n.canonical.y>>Se))}D.key!==n.key&&(U.push(D.key),p=a.getTile(D))}const z=Q=>{U.forEach(Se=>{y[Se]=Q}),U.length=0};for(I-=1;I>=R&&(!p||!p.hasData());I--){p&&z(p.tileID.key);const Q=D.calculateScaledKey(I);if(p=a.getTileByID(Q),p&&p.hasData())break;const Se=y[Q];if(null===Se)break;void 0===Se?U.push(Q):p=a.getTileByID(Se)}return z(p?p.tileID.key:null),p&&p.hasData()?p:null}findDEMTileFor(n){return this.enabled?this._findTileCoveringTileID(n,this.sourceCache):null}prepareDrawTile(){this.renderedToTile=!0}_clearRenderCacheForTile(n,a){let p=this._tilesDirty[n];p||(p=this._tilesDirty[n]={}),p[a.key]=!0}getWirefameBuffer(){if(!this.wireframeSegments){const n=function(a){let p=0;const y=new l.StructArrayLayout2ui4,x=131;for(let D=1;D<129;D++){for(let I=1;I<129;I++)p=D*x+I,y.emplaceBack(p,p+1),y.emplaceBack(p,p+x),y.emplaceBack(p+1,p+x),128===D&&y.emplaceBack(p+x,p+x+1);y.emplaceBack(p+1,p+1+x)}return y}();this.wireframeIndexBuffer=this.painter.context.createIndexBuffer(n),this.wireframeSegments=l.SegmentVector.simpleSegment(0,0,this.gridBuffer.length,n.length)}return[this.wireframeIndexBuffer,this.wireframeSegments]}}class Pi{static cacheKey(n,a,p,y){let x=`${a}${y?y.cacheKey:""}`;for(const D of p)n.usedDefines.includes(D)&&(x+=`/${D}`);return x}constructor(n,a,p,y,x,D){const I=n.gl;this.program=I.createProgram();const R=function(ne){const He=[];for(let ht=0;ht`#define ${ne}`));const Se=n.isWebGL2?"#version 300 es\n":"",je=Se+Q.concat(n.extStandardDerivatives&&0===Se.length?"#extension GL_OES_standard_derivatives : enable\n".concat(ca):ca,ca,la,rl.fragmentSource,vs.fragmentSource,p.fragmentSource).join("\n"),Ye=Se+Q.concat("\n#ifdef GL_ES\nprecision highp float;\n#else\n\n#if !defined(lowp)\n#define lowp\n#endif\n\n#if !defined(mediump)\n#define mediump\n#endif\n\n#if !defined(highp)\n#define highp\n#endif\n\n#endif",la,rl.vertexSource,vs.vertexSource,Jo.vertexSource,p.vertexSource).join("\n"),$e=I.createShader(I.FRAGMENT_SHADER);if(I.isContextLost())return void(this.failedToCreate=!0);I.shaderSource($e,je),I.compileShader($e),I.attachShader(this.program,$e);const et=I.createShader(I.VERTEX_SHADER);if(I.isContextLost())this.failedToCreate=!0;else{I.shaderSource(et,Ye),I.compileShader(et),I.attachShader(this.program,et),this.attributes={},this.numAttributes=z.length;for(let ne=0;ne({u_tile_tl_up:new l.Uniform3f(ne),u_tile_tr_up:new l.Uniform3f(ne),u_tile_br_up:new l.Uniform3f(ne),u_tile_bl_up:new l.Uniform3f(ne),u_tile_up_scale:new l.Uniform1f(ne)}))(n)),D.includes("FOG")&&(this.fogUniforms=(ne=>({u_fog_matrix:new l.UniformMatrix4f(ne),u_fog_range:new l.Uniform2f(ne),u_fog_color:new l.Uniform4f(ne),u_fog_horizon_blend:new l.Uniform1f(ne),u_fog_temporal_offset:new l.Uniform1f(ne),u_frustum_tl:new l.Uniform3f(ne),u_frustum_tr:new l.Uniform3f(ne),u_frustum_br:new l.Uniform3f(ne),u_frustum_bl:new l.Uniform3f(ne),u_globe_pos:new l.Uniform3f(ne),u_globe_radius:new l.Uniform1f(ne),u_globe_transition:new l.Uniform1f(ne),u_is_globe:new l.Uniform1i(ne),u_viewport:new l.Uniform2f(ne)}))(n))}var ne}setTerrainUniformValues(n,a){if(!this.terrainUniforms)return;const p=this.terrainUniforms;if(!this.failedToCreate){n.program.set(this.program);for(const y in a)p[y]&&p[y].set(this.program,y,a[y])}}setGlobeUniformValues(n,a){if(!this.globeUniforms)return;const p=this.globeUniforms;if(!this.failedToCreate){n.program.set(this.program);for(const y in a)p[y]&&p[y].set(this.program,y,a[y])}}setFogUniformValues(n,a){if(!this.fogUniforms)return;const p=this.fogUniforms;if(!this.failedToCreate){n.program.set(this.program);for(const y in a)p[y].set(this.program,y,a[y])}}draw(n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e){const et=n.gl;if(this.failedToCreate)return;n.program.set(this.program),n.setDepthMode(p),n.setStencilMode(y),n.setColorMode(x),n.setCullFace(D);for(const He of Object.keys(this.fixedUniforms))this.fixedUniforms[He].set(this.program,He,I[He]);Ye&&Ye.setUniforms(this.program,n,this.binderUniforms,Se,{zoom:je});const ne={[et.LINES]:2,[et.TRIANGLES]:3,[et.LINE_STRIP]:1}[a];for(const He of Q.get()){const ht=He.vaos||(He.vaos={});(ht[R]||(ht[R]=new za)).bind(n,this,U,Ye?Ye.getPaintVertexBuffers():[],z,He.vertexOffset,$e||[]),et.drawElements(a,He.primitiveLength*ne,et.UNSIGNED_SHORT,He.primitiveOffset*ne*2)}}}function Qo(u,n){const a=Math.pow(2,n.tileID.overscaledZ),p=n.tileSize*Math.pow(2,u.transform.tileZoom)/a,y=p*(n.tileID.canonical.x+n.tileID.wrap*a),x=p*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_tile_units_to_pixels:1/_n(n,1,u.transform.tileZoom),u_pixel_coord_upper:[y>>16,x>>16],u_pixel_coord_lower:[65535&y,65535&x]}}const Ao=l.create(),re=(u,n,a,p,y,x,D,I,R,U,z)=>{const Q=n.style.light,Se=Q.properties.get("position"),je=[Se.x,Se.y,Se.z],Ye=l.create$1();"viewport"===Q.properties.get("anchor")&&(l.fromRotation(Ye,-n.transform.angle),l.transformMat3(je,je,Ye));const $e=Q.properties.get("color"),et=n.transform,ne={u_matrix:u,u_lightpos:je,u_lightintensity:Q.properties.get("intensity"),u_lightcolor:[$e.r,$e.g,$e.b],u_vertical_gradient:+a,u_opacity:p,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:Ao,u_merc_center:[0,0],u_up_dir:[0,0,0],u_height_lift:0,u_ao:y,u_edge_radius:x};return"globe"===et.projection.name&&(ne.u_tile_id=[D.canonical.x,D.canonical.y,1<{const Se=re(u,n,a,p,y,x,D,R,U,z,Q),je={u_height_factor:-Math.pow(2,D.overscaledZ)/I.tileSize/8};return l.extend(Se,Qo(n,I),je)},G=u=>({u_matrix:u}),Ge=(u,n,a)=>l.extend(G(u),Qo(n,a)),zt=(u,n)=>({u_matrix:u,u_world:n}),ni=(u,n,a,p)=>l.extend(Ge(u,n,a),{u_world:p}),Ln=l.create(),Di=(u,n,a,p,y,x)=>{const D=u.transform,I="globe"===D.projection.name;let R;if("map"===x.paint.get("circle-pitch-alignment"))if(I){const z=l.globePixelsToTileUnits(D.zoom,n.canonical)*D._pixelsPerMercatorPixel;R=Float32Array.from([z,0,0,z])}else R=D.calculatePixelsToTileUnitsMatrix(a);else R=new Float32Array([D.pixelsToGLUnits[0],0,0,D.pixelsToGLUnits[1]]);const U={u_camera_to_center_distance:D.cameraToCenterDistance,u_matrix:u.translatePosMatrix(n.projMatrix,a,x.paint.get("circle-translate"),x.paint.get("circle-translate-anchor")),u_device_pixel_ratio:l.exported.devicePixelRatio,u_extrude_scale:R,u_inv_rot_matrix:Ln,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(I){U.u_inv_rot_matrix=p,U.u_merc_center=y,U.u_tile_id=[n.canonical.x,n.canonical.y,1<{const n=[];return"map"===u.paint.get("circle-pitch-alignment")&&n.push("PITCH_WITH_MAP"),"map"===u.paint.get("circle-pitch-scale")&&n.push("SCALE_WITH_MAP"),n},Oo=(u,n,a,p)=>{const y=l.EXTENT/a.tileSize;return{u_matrix:u,u_camera_to_center_distance:n.getCameraToCenterDistance(p),u_extrude_scale:[n.pixelsToGLUnits[0]/y,n.pixelsToGLUnits[1]/y]}},Do=(u,n,a=1)=>({u_matrix:u,u_color:n,u_overlay:0,u_overlay_scale:a}),bs=l.create(),al=(u,n,a,p,y,x,D)=>{const I=u.transform,R="globe"===I.projection.name,U=R?l.globePixelsToTileUnits(I.zoom,n.canonical)*I._pixelsPerMercatorPixel:_n(a,1,x),z={u_matrix:n.projMatrix,u_extrude_scale:U,u_intensity:D,u_inv_rot_matrix:bs,u_merc_center:[0,0],u_tile_id:[0,0,0],u_zoom_transition:0,u_up_dir:[0,0,0]};if(R){z.u_inv_rot_matrix=p,z.u_merc_center=y,z.u_tile_id=[n.canonical.x,n.canonical.y,1<{const I=u.transform,R=I.calculatePixelsToTileUnitsMatrix(n);return{u_matrix:Ui(u,n,a,p),u_pixels_to_tile_units:R,u_device_pixel_ratio:x,u_units_to_pixels:[1/I.pixelsToGLUnits[0],1/I.pixelsToGLUnits[1]],u_dash_image:0,u_gradient_image:1,u_image_height:y,u_texsize:js(a)?n.lineAtlasTexture.size:[0,0],u_tile_units_to_pixels:Ro(n,u.transform),u_alpha_discard_threshold:0,u_trim_offset:D}},xo=(u,n,a,p,y)=>{const x=u.transform;return{u_matrix:Ui(u,n,a,p),u_texsize:n.imageAtlasTexture.size,u_pixels_to_tile_units:x.calculatePixelsToTileUnitsMatrix(n),u_device_pixel_ratio:y,u_image:0,u_tile_units_to_pixels:Ro(n,x),u_units_to_pixels:[1/x.pixelsToGLUnits[0],1/x.pixelsToGLUnits[1]],u_alpha_discard_threshold:0}};function Ro(u,n){return 1/_n(u,1,n.tileZoom)}function Ui(u,n,a,p){return u.translatePosMatrix(p||n.tileID.projMatrix,n,a.paint.get("line-translate"),a.paint.get("line-translate-anchor"))}function js(u){const n=u.paint.get("line-dasharray").value;return n.value||"constant"!==n.kind}const wl=(u,n,a,p,y,x)=>{return{u_matrix:u,u_tl_parent:n,u_scale_parent:a,u_fade_t:p.mix,u_opacity:p.opacity*y.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:y.paint.get("raster-brightness-min"),u_brightness_high:y.paint.get("raster-brightness-max"),u_saturation_factor:(I=y.paint.get("raster-saturation"),I>0?1-1/(1.001-I):-I),u_contrast_factor:(D=y.paint.get("raster-contrast"),D>0?1/(1-D):1+D),u_spin_weights:No(y.paint.get("raster-hue-rotate")),u_perspective_transform:x};var D,I};function No(u){u*=Math.PI/180;const n=Math.sin(u),a=Math.cos(u);return[(2*a+1)/3,(-Math.sqrt(3)*n-a+1)/3,(Math.sqrt(3)*n-a+1)/3]}const kr=l.create(),ws=(u,n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e)=>{const et=y.transform,ne={u_is_size_zoom_constant:+("constant"===u||"source"===u),u_is_size_feature_constant:+("constant"===u||"camera"===u),u_size_t:n?n.uSizeT:0,u_size:n?n.uSize:0,u_camera_to_center_distance:et.cameraToCenterDistance,u_rotate_symbol:+a,u_aspect_ratio:et.width/et.height,u_fade_change:y.options.fadeDuration?y.symbolFadeChange:1,u_matrix:x,u_label_plane_matrix:D,u_coord_matrix:I,u_is_text:+R,u_pitch_with_map:+p,u_texsize:U,u_texture:0,u_tile_id:[0,0,0],u_zoom_transition:0,u_inv_rot_matrix:kr,u_merc_center:[0,0],u_camera_forward:[0,0,0],u_ecef_origin:[0,0,0],u_tile_matrix:kr,u_up_vector:[0,-1,0]};return"globe"===$e.name&&(ne.u_tile_id=[z.canonical.x,z.canonical.y,1<l.extend(ws(u,n,a,p,y,x,D,I,R,U,Q,Se,je,Ye,$e,et),{u_gamma_scale:p?y.transform.cameraToCenterDistance*Math.cos(y.terrain?0:y.transform._pitch):1,u_device_pixel_ratio:l.exported.devicePixelRatio,u_is_halo:+z}),Vs=(u,n,a,p,y,x,D,I,R,U,z,Q,Se,je,Ye,$e)=>l.extend(pa(u,n,a,p,y,x,D,I,!0,R,!0,z,Q,Se,je,Ye,$e),{u_texsize_icon:U,u_texture_icon:1}),ma=(u,n,a)=>({u_matrix:u,u_opacity:n,u_color:a}),Hl=(u,n,a,p,y)=>l.extend(function(x,D,I){const R=D.imageManager.getPattern(x.toString()),{width:U,height:z}=D.imageManager.getPixelSize(),Q=Math.pow(2,I.tileID.overscaledZ),Se=I.tileSize*Math.pow(2,D.transform.tileZoom)/Q,je=Se*(I.tileID.canonical.x+I.tileID.wrap*Q),Ye=Se*I.tileID.canonical.y;return{u_image:0,u_pattern_tl:R.tl,u_pattern_br:R.br,u_texsize:[U,z],u_pattern_size:R.displaySize,u_tile_units_to_pixels:1/_n(I,1,D.transform.tileZoom),u_pixel_coord_upper:[je>>16,Ye>>16],u_pixel_coord_lower:[65535&je,65535&Ye]}}(p,a,y),{u_matrix:u,u_opacity:n}),$s={fillExtrusion:u=>({u_matrix:new l.UniformMatrix4f(u),u_lightpos:new l.Uniform3f(u),u_lightintensity:new l.Uniform1f(u),u_lightcolor:new l.Uniform3f(u),u_vertical_gradient:new l.Uniform1f(u),u_opacity:new l.Uniform1f(u),u_edge_radius:new l.Uniform1f(u),u_ao:new l.Uniform2f(u),u_tile_id:new l.Uniform3f(u),u_zoom_transition:new l.Uniform1f(u),u_inv_rot_matrix:new l.UniformMatrix4f(u),u_merc_center:new l.Uniform2f(u),u_up_dir:new l.Uniform3f(u),u_height_lift:new l.Uniform1f(u)}),fillExtrusionPattern:u=>({u_matrix:new l.UniformMatrix4f(u),u_lightpos:new l.Uniform3f(u),u_lightintensity:new l.Uniform1f(u),u_lightcolor:new l.Uniform3f(u),u_vertical_gradient:new l.Uniform1f(u),u_height_factor:new l.Uniform1f(u),u_edge_radius:new l.Uniform1f(u),u_ao:new l.Uniform2f(u),u_tile_id:new l.Uniform3f(u),u_zoom_transition:new l.Uniform1f(u),u_inv_rot_matrix:new l.UniformMatrix4f(u),u_merc_center:new l.Uniform2f(u),u_up_dir:new l.Uniform3f(u),u_height_lift:new l.Uniform1f(u),u_image:new l.Uniform1i(u),u_texsize:new l.Uniform2f(u),u_pixel_coord_upper:new l.Uniform2f(u),u_pixel_coord_lower:new l.Uniform2f(u),u_tile_units_to_pixels:new l.Uniform1f(u),u_opacity:new l.Uniform1f(u)}),fill:u=>({u_matrix:new l.UniformMatrix4f(u)}),fillPattern:u=>({u_matrix:new l.UniformMatrix4f(u),u_image:new l.Uniform1i(u),u_texsize:new l.Uniform2f(u),u_pixel_coord_upper:new l.Uniform2f(u),u_pixel_coord_lower:new l.Uniform2f(u),u_tile_units_to_pixels:new l.Uniform1f(u)}),fillOutline:u=>({u_matrix:new l.UniformMatrix4f(u),u_world:new l.Uniform2f(u)}),fillOutlinePattern:u=>({u_matrix:new l.UniformMatrix4f(u),u_world:new l.Uniform2f(u),u_image:new l.Uniform1i(u),u_texsize:new l.Uniform2f(u),u_pixel_coord_upper:new l.Uniform2f(u),u_pixel_coord_lower:new l.Uniform2f(u),u_tile_units_to_pixels:new l.Uniform1f(u)}),circle:u=>({u_camera_to_center_distance:new l.Uniform1f(u),u_extrude_scale:new l.UniformMatrix2f(u),u_device_pixel_ratio:new l.Uniform1f(u),u_matrix:new l.UniformMatrix4f(u),u_inv_rot_matrix:new l.UniformMatrix4f(u),u_merc_center:new l.Uniform2f(u),u_tile_id:new l.Uniform3f(u),u_zoom_transition:new l.Uniform1f(u),u_up_dir:new l.Uniform3f(u)}),collisionBox:u=>({u_matrix:new l.UniformMatrix4f(u),u_camera_to_center_distance:new l.Uniform1f(u),u_extrude_scale:new l.Uniform2f(u)}),collisionCircle:u=>({u_matrix:new l.UniformMatrix4f(u),u_inv_matrix:new l.UniformMatrix4f(u),u_camera_to_center_distance:new l.Uniform1f(u),u_viewport_size:new l.Uniform2f(u)}),debug:u=>({u_color:new l.UniformColor(u),u_matrix:new l.UniformMatrix4f(u),u_overlay:new l.Uniform1i(u),u_overlay_scale:new l.Uniform1f(u)}),clippingMask:u=>({u_matrix:new l.UniformMatrix4f(u)}),heatmap:u=>({u_extrude_scale:new l.Uniform1f(u),u_intensity:new l.Uniform1f(u),u_matrix:new l.UniformMatrix4f(u),u_inv_rot_matrix:new l.UniformMatrix4f(u),u_merc_center:new l.Uniform2f(u),u_tile_id:new l.Uniform3f(u),u_zoom_transition:new l.Uniform1f(u),u_up_dir:new l.Uniform3f(u)}),heatmapTexture:u=>({u_image:new l.Uniform1i(u),u_color_ramp:new l.Uniform1i(u),u_opacity:new l.Uniform1f(u)}),hillshade:u=>({u_matrix:new l.UniformMatrix4f(u),u_image:new l.Uniform1i(u),u_latrange:new l.Uniform2f(u),u_light:new l.Uniform2f(u),u_shadow:new l.UniformColor(u),u_highlight:new l.UniformColor(u),u_accent:new l.UniformColor(u)}),hillshadePrepare:u=>({u_matrix:new l.UniformMatrix4f(u),u_image:new l.Uniform1i(u),u_dimension:new l.Uniform2f(u),u_zoom:new l.Uniform1f(u),u_unpack:new l.Uniform4f(u)}),line:u=>({u_matrix:new l.UniformMatrix4f(u),u_pixels_to_tile_units:new l.UniformMatrix2f(u),u_device_pixel_ratio:new l.Uniform1f(u),u_units_to_pixels:new l.Uniform2f(u),u_dash_image:new l.Uniform1i(u),u_gradient_image:new l.Uniform1i(u),u_image_height:new l.Uniform1f(u),u_texsize:new l.Uniform2f(u),u_tile_units_to_pixels:new l.Uniform1f(u),u_alpha_discard_threshold:new l.Uniform1f(u),u_trim_offset:new l.Uniform2f(u)}),linePattern:u=>({u_matrix:new l.UniformMatrix4f(u),u_texsize:new l.Uniform2f(u),u_pixels_to_tile_units:new l.UniformMatrix2f(u),u_device_pixel_ratio:new l.Uniform1f(u),u_image:new l.Uniform1i(u),u_units_to_pixels:new l.Uniform2f(u),u_tile_units_to_pixels:new l.Uniform1f(u),u_alpha_discard_threshold:new l.Uniform1f(u)}),raster:u=>({u_matrix:new l.UniformMatrix4f(u),u_tl_parent:new l.Uniform2f(u),u_scale_parent:new l.Uniform1f(u),u_fade_t:new l.Uniform1f(u),u_opacity:new l.Uniform1f(u),u_image0:new l.Uniform1i(u),u_image1:new l.Uniform1i(u),u_brightness_low:new l.Uniform1f(u),u_brightness_high:new l.Uniform1f(u),u_saturation_factor:new l.Uniform1f(u),u_contrast_factor:new l.Uniform1f(u),u_spin_weights:new l.Uniform3f(u),u_perspective_transform:new l.Uniform2f(u)}),symbolIcon:u=>({u_is_size_zoom_constant:new l.Uniform1i(u),u_is_size_feature_constant:new l.Uniform1i(u),u_size_t:new l.Uniform1f(u),u_size:new l.Uniform1f(u),u_camera_to_center_distance:new l.Uniform1f(u),u_rotate_symbol:new l.Uniform1i(u),u_aspect_ratio:new l.Uniform1f(u),u_fade_change:new l.Uniform1f(u),u_matrix:new l.UniformMatrix4f(u),u_label_plane_matrix:new l.UniformMatrix4f(u),u_coord_matrix:new l.UniformMatrix4f(u),u_is_text:new l.Uniform1i(u),u_pitch_with_map:new l.Uniform1i(u),u_texsize:new l.Uniform2f(u),u_tile_id:new l.Uniform3f(u),u_zoom_transition:new l.Uniform1f(u),u_inv_rot_matrix:new l.UniformMatrix4f(u),u_merc_center:new l.Uniform2f(u),u_camera_forward:new l.Uniform3f(u),u_tile_matrix:new l.UniformMatrix4f(u),u_up_vector:new l.Uniform3f(u),u_ecef_origin:new l.Uniform3f(u),u_texture:new l.Uniform1i(u)}),symbolSDF:u=>({u_is_size_zoom_constant:new l.Uniform1i(u),u_is_size_feature_constant:new l.Uniform1i(u),u_size_t:new l.Uniform1f(u),u_size:new l.Uniform1f(u),u_camera_to_center_distance:new l.Uniform1f(u),u_rotate_symbol:new l.Uniform1i(u),u_aspect_ratio:new l.Uniform1f(u),u_fade_change:new l.Uniform1f(u),u_matrix:new l.UniformMatrix4f(u),u_label_plane_matrix:new l.UniformMatrix4f(u),u_coord_matrix:new l.UniformMatrix4f(u),u_is_text:new l.Uniform1i(u),u_pitch_with_map:new l.Uniform1i(u),u_texsize:new l.Uniform2f(u),u_texture:new l.Uniform1i(u),u_gamma_scale:new l.Uniform1f(u),u_device_pixel_ratio:new l.Uniform1f(u),u_tile_id:new l.Uniform3f(u),u_zoom_transition:new l.Uniform1f(u),u_inv_rot_matrix:new l.UniformMatrix4f(u),u_merc_center:new l.Uniform2f(u),u_camera_forward:new l.Uniform3f(u),u_tile_matrix:new l.UniformMatrix4f(u),u_up_vector:new l.Uniform3f(u),u_ecef_origin:new l.Uniform3f(u),u_is_halo:new l.Uniform1i(u)}),symbolTextAndIcon:u=>({u_is_size_zoom_constant:new l.Uniform1i(u),u_is_size_feature_constant:new l.Uniform1i(u),u_size_t:new l.Uniform1f(u),u_size:new l.Uniform1f(u),u_camera_to_center_distance:new l.Uniform1f(u),u_rotate_symbol:new l.Uniform1i(u),u_aspect_ratio:new l.Uniform1f(u),u_fade_change:new l.Uniform1f(u),u_matrix:new l.UniformMatrix4f(u),u_label_plane_matrix:new l.UniformMatrix4f(u),u_coord_matrix:new l.UniformMatrix4f(u),u_is_text:new l.Uniform1i(u),u_pitch_with_map:new l.Uniform1i(u),u_texsize:new l.Uniform2f(u),u_texsize_icon:new l.Uniform2f(u),u_texture:new l.Uniform1i(u),u_texture_icon:new l.Uniform1i(u),u_gamma_scale:new l.Uniform1f(u),u_device_pixel_ratio:new l.Uniform1f(u),u_is_halo:new l.Uniform1i(u)}),background:u=>({u_matrix:new l.UniformMatrix4f(u),u_opacity:new l.Uniform1f(u),u_color:new l.UniformColor(u)}),backgroundPattern:u=>({u_matrix:new l.UniformMatrix4f(u),u_opacity:new l.Uniform1f(u),u_image:new l.Uniform1i(u),u_pattern_tl:new l.Uniform2f(u),u_pattern_br:new l.Uniform2f(u),u_texsize:new l.Uniform2f(u),u_pattern_size:new l.Uniform2f(u),u_pixel_coord_upper:new l.Uniform2f(u),u_pixel_coord_lower:new l.Uniform2f(u),u_tile_units_to_pixels:new l.Uniform1f(u)}),terrainRaster:ua,terrainDepth:ua,skybox:u=>({u_matrix:new l.UniformMatrix4f(u),u_sun_direction:new l.Uniform3f(u),u_cubemap:new l.Uniform1i(u),u_opacity:new l.Uniform1f(u),u_temporal_offset:new l.Uniform1f(u)}),skyboxGradient:u=>({u_matrix:new l.UniformMatrix4f(u),u_color_ramp:new l.Uniform1i(u),u_center_direction:new l.Uniform3f(u),u_radius:new l.Uniform1f(u),u_opacity:new l.Uniform1f(u),u_temporal_offset:new l.Uniform1f(u)}),skyboxCapture:u=>({u_matrix_3f:new l.UniformMatrix3f(u),u_sun_direction:new l.Uniform3f(u),u_sun_intensity:new l.Uniform1f(u),u_color_tint_r:new l.Uniform4f(u),u_color_tint_m:new l.Uniform4f(u),u_luminance:new l.Uniform1f(u)}),globeRaster:u=>({u_proj_matrix:new l.UniformMatrix4f(u),u_globe_matrix:new l.UniformMatrix4f(u),u_normalize_matrix:new l.UniformMatrix4f(u),u_merc_matrix:new l.UniformMatrix4f(u),u_zoom_transition:new l.Uniform1f(u),u_merc_center:new l.Uniform2f(u),u_image0:new l.Uniform1i(u),u_grid_matrix:new l.UniformMatrix3f(u),u_skirt_height:new l.Uniform1f(u),u_frustum_tl:new l.Uniform3f(u),u_frustum_tr:new l.Uniform3f(u),u_frustum_br:new l.Uniform3f(u),u_frustum_bl:new l.Uniform3f(u),u_globe_pos:new l.Uniform3f(u),u_globe_radius:new l.Uniform1f(u),u_viewport:new l.Uniform2f(u)}),globeAtmosphere:u=>({u_frustum_tl:new l.Uniform3f(u),u_frustum_tr:new l.Uniform3f(u),u_frustum_br:new l.Uniform3f(u),u_frustum_bl:new l.Uniform3f(u),u_horizon:new l.Uniform1f(u),u_transition:new l.Uniform1f(u),u_fadeout_range:new l.Uniform1f(u),u_color:new l.Uniform4f(u),u_high_color:new l.Uniform4f(u),u_space_color:new l.Uniform4f(u),u_star_intensity:new l.Uniform1f(u),u_star_density:new l.Uniform1f(u),u_star_size:new l.Uniform1f(u),u_temporal_offset:new l.Uniform1f(u),u_horizon_angle:new l.Uniform1f(u),u_rotation_matrix:new l.UniformMatrix4f(u)})};let Va;function es(u,n,a,p,y,x,D){const I=u.context,R=I.gl,U=u.transform,z=u.useProgram("collisionBox"),Q=[];let Se=0,je=0;for(let gt=0;gt0){const nn=l.create(),Mn=$t;l.mul(nn,Lt.placementInvProjMatrix,U.glCoordMatrix),l.mul(nn,nn,Lt.placementViewportMatrix),Q.push({circleArray:Wn,circleOffset:je,transform:Mn,invTransform:nn,projection:Lt.getProjection()}),Se+=Wn.length/4,je=Se}cn&&(u.terrain&&u.terrain.setupElevationDraw(kt,z),z.draw(I,R.LINES,l.DepthMode.disabled,l.StencilMode.disabled,u.colorModeForRenderPass(),l.CullFaceMode.disabled,Oo($t,U,kt,Lt.getProjection()),a.id,cn.layoutVertexBuffer,cn.indexBuffer,cn.segments,null,U.zoom,null,[cn.collisionVertexBuffer,cn.collisionVertexBufferExt]))}if(!D||!Q.length)return;const Ye=u.useProgram("collisionCircle"),$e=new l.StructArrayLayout2f1f2i16;$e.resize(4*Se),$e._trim();let et=0;for(const gt of Q)for(let Ot=0;Ot=0&&(Ye[gt.associatedIconIndex]={x:nn,y:Mn,z:pn,angle:kn})}else St(Lt,Se)}if(z){je.clear();const ht=u.icon.placedSymbolArray;for(let gt=0;gtnn.sortKey-Mn.sortKey);for(const nn of $t){const Mn=nn.state;if(u.terrain&&u.terrain.setupElevationDraw(Mn.tile,Mn.program,{useDepthForOcclusion:!qt,labelPlaneMatrixInv:Mn.labelPlaneMatrixInv}),Se.activeTexture.set(je.TEXTURE0),Mn.atlasTexture.bind(Mn.atlasInterpolation,je.CLAMP_TO_EDGE),Mn.atlasTextureIcon&&(Se.activeTexture.set(je.TEXTURE1),Mn.atlasTextureIcon&&Mn.atlasTextureIcon.bind(Mn.atlasInterpolationIcon,je.CLAMP_TO_EDGE)),Mn.isSDF){const pn=Mn.uniformValues;Mn.hasHalo&&(pn.u_is_halo=1,na(Mn.buffers,nn.segments,a,u,Mn.program,Ot,z,Q,pn)),pn.u_is_halo=0}na(Mn.buffers,nn.segments,a,u,Mn.program,Ot,z,Q,Mn.uniformValues)}}function na(u,n,a,p,y,x,D,I,R){const U=p.context,z=[u.dynamicLayoutVertexBuffer,u.opacityVertexBuffer,u.globeExtVertexBuffer];y.draw(U,U.gl.TRIANGLES,x,D,I,l.CullFaceMode.disabled,R,a.id,u.layoutVertexBuffer,u.indexBuffer,n,a.paint,p.transform.zoom,u.programConfigurations.get(a.id),z)}function oo(u,n,a,p,y,x,D){const I=u.context.gl,R=a.paint.get("fill-pattern"),U=R&&R.constantOr(1);let z,Q,Se,je,Ye;D?(Q=U&&!a.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",z=I.LINES):(Q=U?"fillPattern":"fill",z=I.TRIANGLES);for(const $e of p){const et=n.getTile($e);if(U&&!et.patternsLoaded())continue;const ne=et.getBucket(a);if(!ne)continue;u.prepareDrawTile();const He=ne.programConfigurations.get(a.id),ht=u.useProgram(Q,He);U&&(u.context.activeTexture.set(I.TEXTURE0),et.imageAtlasTexture.bind(I.LINEAR,I.CLAMP_TO_EDGE),He.updatePaintBuffers());const gt=R.constantOr(null);if(gt&&et.imageAtlas){const kt=et.imageAtlas.patternPositions[gt.toString()];kt&&He.setConstantPatternPositions(kt)}const Ot=u.translatePosMatrix($e.projMatrix,et,a.paint.get("fill-translate"),a.paint.get("fill-translate-anchor"));if(D){je=ne.indexBuffer2,Ye=ne.segments2;const kt=u.terrain&&u.terrain.renderingToTexture?u.terrain.drapeBufferSize:[I.drawingBufferWidth,I.drawingBufferHeight];Se="fillOutlinePattern"===Q&&U?ni(Ot,u,et,kt):zt(Ot,kt)}else je=ne.indexBuffer,Ye=ne.segments,Se=U?Ge(Ot,u,et):G(Ot);u.prepareDrawProgram(u.context,ht,$e.toUnwrapped()),ht.draw(u.context,z,y,u.stencilModeForClipping($e),x,l.CullFaceMode.disabled,Se,a.id,ne.layoutVertexBuffer,je,Ye,a.paint,u.transform.zoom,He)}}function $a(u,n,a,p,y,x,D){const I=u.context,R=I.gl,U=u.transform,z=a.paint.get("fill-extrusion-pattern"),Q=z.constantOr(1),Se=a.paint.get("fill-extrusion-opacity"),je=[a.paint.get("fill-extrusion-ambient-occlusion-intensity"),a.paint.get("fill-extrusion-ambient-occlusion-radius")],Ye=a.layout.get("fill-extrusion-edge-radius"),$e=Ye>0&&!a.paint.get("fill-extrusion-rounded-roof"),et=$e?0:Ye,ne="globe"===U.projection.name?l.fillExtrusionHeightLift():0,He="globe"===U.projection.name,ht=He?l.globeToMercatorTransition(U.zoom):0,gt=[l.mercatorXfromLng(U.center.lng),l.mercatorYfromLat(U.center.lat)],Ot=[];He&&Ot.push("PROJECTION_GLOBE_VIEW"),je[0]>0&&Ot.push("FAUX_AO"),$e&&Ot.push("ZERO_ROOF_RADIUS");for(const kt of p){const Lt=n.getTile(kt),qt=Lt.getBucket(a);if(!qt||qt.projection.name!==U.projection.name)continue;const $t=qt.programConfigurations.get(a.id),cn=u.useProgram(Q?"fillExtrusionPattern":"fillExtrusion",$t,Ot);if(u.terrain){const An=u.terrain;if(u.style.terrainSetForDrapingOnly())An.setupElevationDraw(Lt,cn,{useMeterToDem:!0});else{if(!qt.enableTerrain)continue;if(An.setupElevationDraw(Lt,cn,{useMeterToDem:!0}),Io(I,n,kt,qt,a,An),!qt.centroidVertexBuffer){const Zn=cn.attributes.a_centroid_pos;void 0!==Zn&&R.vertexAttrib2f(Zn,0,0)}}}Q&&(u.context.activeTexture.set(R.TEXTURE0),Lt.imageAtlasTexture.bind(R.LINEAR,R.CLAMP_TO_EDGE),$t.updatePaintBuffers());const Wn=z.constantOr(null);if(Wn&&Lt.imageAtlas){const An=Lt.imageAtlas.patternPositions[Wn.toString()];An&&$t.setConstantPatternPositions(An)}const nn=u.translatePosMatrix(kt.projMatrix,Lt,a.paint.get("fill-extrusion-translate"),a.paint.get("fill-extrusion-translate-anchor")),Mn=U.projection.createInversionMatrix(U,kt.canonical),pn=a.paint.get("fill-extrusion-vertical-gradient"),qn=Q?ce(nn,u,pn,Se,je,et,kt,Lt,ne,ht,gt,Mn):re(nn,u,pn,Se,je,et,kt,ne,ht,gt,Mn);u.prepareDrawProgram(I,cn,kt.toUnwrapped());const sn=[];u.terrain&&sn.push(qt.centroidVertexBuffer),He&&sn.push(qt.layoutVertexExtBuffer),cn.draw(I,I.gl.TRIANGLES,y,x,D,l.CullFaceMode.backCCW,qn,a.id,qt.layoutVertexBuffer,qt.indexBuffer,qt.segments,a.paint,u.transform.zoom,$t,sn)}}function Io(u,n,a,p,y,x){const D=[ne=>{let He=ne.canonical.x-1,ht=ne.wrap;return He<0&&(He=(1<{let He=ne.canonical.x+1,ht=ne.wrap;return He===1<new l.OverscaledTileID(ne.overscaledZ,ne.wrap,ne.canonical.z,ne.canonical.x,(0===ne.canonical.y?1<new l.OverscaledTileID(ne.overscaledZ,ne.wrap,ne.canonical.z,ne.canonical.x,ne.canonical.y===(1<{const He=n.getSource().minzoom,ht=Ot=>{const kt=n.getTileByID(Ot);if(kt&&kt.hasData())return kt.getBucket(y)},gt=[0,-1,1];for(const Ot of gt){if(ne.overscaledZ+Ot(R[0]=Math.min(ne.min.y,He.min.y),R[1]=Math.max(ne.max.y,He.max.y),R[2]=l.EXTENT-He.min.x>ne.max.x?He.min.x-l.EXTENT:ne.max.x,R),z=(ne,He)=>(R[0]=Math.min(ne.min.x,He.min.x),R[1]=Math.max(ne.max.x,He.max.x),R[2]=l.EXTENT-He.min.y>ne.max.y?He.min.y-l.EXTENT:ne.max.y,R),Q=[(ne,He)=>U(ne,He),(ne,He)=>U(He,ne),(ne,He)=>z(ne,He),(ne,He)=>z(He,ne)],Se=new l.Point(0,0);let je,Ye,$e;const et=(ne,He,ht,gt,Ot)=>{const kt=[[gt?ht:ne,gt?ne:ht,0],[gt?ht:He,gt?He:ht,0]],Lt=Ot<0?l.EXTENT+Ot:Ot,qt=[gt?Lt:(ne+He)/2,gt?(ne+He)/2:Lt,0];return 0===ht&&Ot<0||0!==ht&&Ot>0?x.getForTilePoints($e,[qt],!0,Ye):kt.push(qt),x.getForTilePoints(a,kt,!0,je),Math.max(kt[0][2],kt[1][2],qt[2])/x.exaggeration()};for(let ne=0;ne<4;ne++){const He=(ne<2?1:5)-ne,ht=p.borders[ne];if(0===ht.length)continue;const gt=$e=D[ne](a),Ot=I(gt);if(!(Ot&&Ot instanceof l.FillExtrusionBucket&&Ot.enableTerrain)||p.borderDoneWithNeighborZ[ne]===Ot.canonical.z&&Ot.borderDoneWithNeighborZ[He]===p.canonical.z||(Ye=x.findDEMTileFor(gt),!Ye||!Ye.dem))continue;if(!je){const $t=x.findDEMTileFor(a);if(!$t||!$t.dem)return;je=$t}const kt=Ot.borders[He];let Lt=0;const qt=Ot.borderDoneWithNeighborZ[He]!==p.canonical.z;if(p.canonical.z===Ot.canonical.z){for(let $t=0;$tWn[0]+3));)qt&&Ot.encodeCentroid(void 0,nn,!1),Lt++;if(nn&&LtWn[1]-3)&&(pn++,++Lt!==kt.length);)nn=Ot.featuresOnBorder[kt[Lt]];if(nn=Ot.featuresOnBorder[kt[Mn]],cn.intersectsCount()>1||nn.intersectsCount()>1||1!==pn){1!==pn&&(Lt=Mn),p.encodeCentroid(void 0,cn,!1),qt&&Ot.encodeCentroid(void 0,nn,!1);continue}const qn=Q[ne](cn,nn),sn=ne%2?l.EXTENT-1:0;Se.x=et(qn[0],Math.min(l.EXTENT-1,qn[1]),sn,ne<2,qn[2]),Se.y=0,p.encodeCentroid(Se,cn,!1),qt&&Ot.encodeCentroid(Se,nn,!1)}else p.encodeCentroid(void 0,cn,!1)}p.borderDoneWithNeighborZ[ne]=Ot.canonical.z,p.needsCentroidUpdate=!0,qt&&(Ot.borderDoneWithNeighborZ[He]=p.canonical.z,Ot.needsCentroidUpdate=!0)}else{for(const $t of ht)p.encodeCentroid(void 0,p.featuresOnBorder[$t],!1);if(qt){for(const $t of kt)Ot.encodeCentroid(void 0,Ot.featuresOnBorder[$t],!1);Ot.borderDoneWithNeighborZ[He]=p.canonical.z,Ot.needsCentroidUpdate=!0}p.borderDoneWithNeighborZ[ne]=Ot.canonical.z,p.needsCentroidUpdate=!0}}(p.needsCentroidUpdate||!p.centroidVertexBuffer&&0!==p.centroidVertexArray.length)&&p.uploadCentroid(u)}const fo=new l.Color(1,0,0,1),El=new l.Color(0,1,0,1),Za=new l.Color(0,0,1,1),ql=new l.Color(1,0,1,1),Zs=new l.Color(0,1,1,1);function gc(u,n,a){const p=u.context,y=u.transform,x=p.gl,D="globe"===y.projection.name,I=D?["PROJECTION_GLOBE_VIEW"]:null;let R=a.projMatrix;if(D&&l.globeToMercatorTransition(y.zoom)>0){const cn=l.transitionTileAABBinECEF(a.canonical,y),Wn=l.globeDenormalizeECEF(cn);R=l.multiply(new Float32Array(16),y.globeMatrix,Wn),l.multiply(R,y.projMatrix,R)}const U=u.useProgram("debug",null,I),z=n.getTileByID(a.key);u.terrain&&u.terrain.setupElevationDraw(z,U);const Q=l.DepthMode.disabled,Se=l.StencilMode.disabled,je=u.colorModeForRenderPass();p.activeTexture.set(x.TEXTURE0),u.emptyTexture.bind(x.LINEAR,x.CLAMP_TO_EDGE),D?z._makeGlobeTileDebugBuffers(u.context,y):z._makeDebugTileBoundsBuffers(u.context,y.projection);const $e=z._tileDebugBuffer||u.debugBuffer,et=z._tileDebugIndexBuffer||u.debugIndexBuffer,ne=z._tileDebugSegments||u.debugSegments;U.draw(p,x.LINE_STRIP,Q,Se,je,l.CullFaceMode.disabled,Do(R,l.Color.red),"$debug",$e,et,ne,null,null,null,[z._globeTileDebugBorderBuffer]);const He=z.latestRawTileData,ht=Math.floor((He&&He.byteLength||0)/1024),gt=n.getTile(a).tileSize,Ot=512/Math.min(gt,512)*(a.overscaledZ/y.zoom)*.5;let kt=a.canonical.toString();a.overscaledZ!==a.canonical.z&&(kt+=` => ${a.overscaledZ}`),kt+=` ${ht}kb`,function(cn,Wn){cn.initDebugOverlayCanvas();const nn=cn.debugOverlayCanvas,Mn=cn.context.gl,pn=cn.debugOverlayCanvas.getContext("2d");pn.clearRect(0,0,nn.width,nn.height),pn.shadowColor="white",pn.shadowBlur=2,pn.lineWidth=1.5,pn.strokeStyle="white",pn.textBaseline="top",pn.font="bold 36px Open Sans, sans-serif",pn.fillText(Wn,5,5),pn.strokeText(Wn,5,5),cn.debugOverlayTexture.update(nn),cn.debugOverlayTexture.bind(Mn.LINEAR,Mn.CLAMP_TO_EDGE)}(u,kt);const Lt=z._tileDebugTextBuffer||u.debugBuffer,qt=z._tileDebugTextIndexBuffer||u.quadTriangleIndexBuffer,$t=z._tileDebugTextSegments||u.debugSegments;U.draw(p,x.TRIANGLES,Q,Se,l.ColorMode.alphaBlended,l.CullFaceMode.disabled,Do(R,l.Color.transparent,Ot),"$debug",Lt,qt,$t,null,null,null,[z._globeTileDebugTextBuffer])}function Tl(u,n,a,p){Ta(u,0,n+a/2,u.transform.width,a,p)}function Yl(u,n,a,p){Ta(u,n-a/2,0,a,u.transform.height,p)}function Ta(u,n,a,p,y,x){const D=u.context,I=D.gl;I.enable(I.SCISSOR_TEST),I.scissor(n*l.exported.devicePixelRatio,a*l.exported.devicePixelRatio,p*l.exported.devicePixelRatio,y*l.exported.devicePixelRatio),D.clear({color:x}),I.disable(I.SCISSOR_TEST)}const _c=l.createLayout([{name:"a_pos_3f",components:3,type:"Float32"}]),{members:Zc}=_c;function Gs(u,n,a,p){u.emplaceBack(n,a,p)}class Ga{constructor(n){this.vertexArray=new l.StructArrayLayout3f12,this.indices=new l.StructArrayLayout3ui6,Gs(this.vertexArray,-1,-1,1),Gs(this.vertexArray,1,-1,1),Gs(this.vertexArray,-1,1,1),Gs(this.vertexArray,1,1,1),Gs(this.vertexArray,-1,-1,-1),Gs(this.vertexArray,1,-1,-1),Gs(this.vertexArray,-1,1,-1),Gs(this.vertexArray,1,1,-1),this.indices.emplaceBack(5,1,3),this.indices.emplaceBack(3,7,5),this.indices.emplaceBack(6,2,0),this.indices.emplaceBack(0,4,6),this.indices.emplaceBack(2,6,7),this.indices.emplaceBack(7,3,2),this.indices.emplaceBack(5,4,0),this.indices.emplaceBack(0,1,5),this.indices.emplaceBack(0,2,3),this.indices.emplaceBack(3,1,0),this.indices.emplaceBack(7,6,4),this.indices.emplaceBack(4,5,7),this.vertexBuffer=n.createVertexBuffer(this.vertexArray,Zc),this.indexBuffer=n.createIndexBuffer(this.indices),this.segment=l.SegmentVector.simpleSegment(0,0,36,12)}}function Hs(u,n,a,p,y,x){const D=u.gl,I=n.paint.get("sky-atmosphere-color"),R=n.paint.get("sky-atmosphere-halo-color"),U=n.paint.get("sky-atmosphere-sun-intensity"),z={u_matrix_3f:l.fromMat4(l.create$1(),p),u_sun_direction:y,u_sun_intensity:U,u_color_tint_r:[(Ye=I).r,Ye.g,Ye.b,Ye.a],u_color_tint_m:[($e=R).r,$e.g,$e.b,$e.a],u_luminance:5e-5};var Ye,$e;D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+x,n.skyboxTexture,0),a.draw(u,D.TRIANGLES,l.DepthMode.disabled,l.StencilMode.disabled,l.ColorMode.unblended,l.CullFaceMode.frontCW,z,"skyboxCapture",n.skyboxGeometry.vertexBuffer,n.skyboxGeometry.indexBuffer,n.skyboxGeometry.segment)}const F=l.createLayout([{type:"Float32",name:"a_pos",components:3},{type:"Float32",name:"a_uv",components:2}]);class we{constructor(n){const a=new l.StructArrayLayout5f20;a.emplaceBack(-1,1,1,0,0),a.emplaceBack(1,1,1,1,0),a.emplaceBack(1,-1,1,1,1),a.emplaceBack(-1,-1,1,0,1);const p=new l.StructArrayLayout3ui6;p.emplaceBack(0,1,2),p.emplaceBack(2,3,0),this.vertexBuffer=n.createVertexBuffer(a,F.members),this.indexBuffer=n.createIndexBuffer(p),this.segments=l.SegmentVector.simpleSegment(0,0,4,2)}destroy(){this.vertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy()}}const H={symbol:function(u,n,a,p,y){if("translucent"!==u.renderPass)return;const x=l.StencilMode.disabled,D=u.colorModeForRenderPass();a.layout.get("text-variable-anchor")&&function(I,R,U,z,Q,Se,je){const Ye=R.transform,$e="map"===Q,et="map"===Se;for(const ne of I){const He=z.getTile(ne),ht=He.getBucket(U);if(!ht||!ht.text||!ht.text.segments.get().length)continue;const gt=l.evaluateSizeForZoom(ht.textSizeData,Ye.zoom),Ot=_t(ne,ht.getProjection(),Ye),kt=Ye.calculatePixelsToTileUnitsMatrix(He),Lt=vt(Ot,He.tileID.canonical,et,$e,Ye,ht.getProjection(),kt),qt="none"!==U.layout.get("icon-text-fit")&&ht.hasIconData();if(gt){const $t=Math.pow(2,Ye.zoom-He.tileID.overscaledZ);Wl(ht,$e,et,je,l.symbolSize,Ye,Lt,ne,$t,gt,qt)}}}(p,u,a,n,a.layout.get("text-rotation-alignment"),a.layout.get("text-pitch-alignment"),y),0!==a.paint.get("icon-opacity").constantOr(1)&&Cl(u,n,a,p,!1,a.paint.get("icon-translate"),a.paint.get("icon-translate-anchor"),a.layout.get("icon-rotation-alignment"),a.layout.get("icon-pitch-alignment"),a.layout.get("icon-keep-upright"),x,D),0!==a.paint.get("text-opacity").constantOr(1)&&Cl(u,n,a,p,!0,a.paint.get("text-translate"),a.paint.get("text-translate-anchor"),a.layout.get("text-rotation-alignment"),a.layout.get("text-pitch-alignment"),a.layout.get("text-keep-upright"),x,D),n.map.showCollisionBoxes&&(es(u,n,a,p,a.paint.get("text-translate"),a.paint.get("text-translate-anchor"),!0),es(u,n,a,p,a.paint.get("icon-translate"),a.paint.get("icon-translate-anchor"),!1))},circle:function(u,n,a,p){if("translucent"!==u.renderPass)return;const y=a.paint.get("circle-opacity"),x=a.paint.get("circle-stroke-width"),D=a.paint.get("circle-stroke-opacity"),I=void 0!==a.layout.get("circle-sort-key").constantOr(1);if(0===y.constantOr(1)&&(0===x.constantOr(1)||0===D.constantOr(1)))return;const R=u.context,U=R.gl,z=u.transform,Q=u.depthModeForSublayer(0,l.DepthMode.ReadOnly),Se=l.StencilMode.disabled,je=u.colorModeForRenderPass(),Ye="globe"===z.projection.name,$e=[l.mercatorXfromLng(z.center.lng),l.mercatorYfromLat(z.center.lat)],et=[];for(let He=0;HeHe.sortKey-ht.sortKey);const ne={useDepthForOcclusion:!Ye};for(const He of et){const{programConfiguration:ht,program:gt,layoutVertexBuffer:Ot,globeExtVertexBuffer:kt,indexBuffer:Lt,uniformValues:qt,tile:$t}=He.state,cn=He.segments;u.terrain&&u.terrain.setupElevationDraw($t,gt,ne),u.prepareDrawProgram(R,gt,$t.tileID.toUnwrapped()),gt.draw(R,U.TRIANGLES,Q,Se,je,l.CullFaceMode.disabled,qt,a.id,Ot,Lt,cn,a.paint,z.zoom,ht,[kt])}},heatmap:function(u,n,a,p){if(0!==a.paint.get("heatmap-opacity"))if("offscreen"===u.renderPass){const y=u.context,x=y.gl,D=l.StencilMode.disabled,I=new l.ColorMode([x.ONE,x.ONE],l.Color.transparent,[!0,!0,!0,!0]);(function(je,Ye,$e,et){const ne=je.gl,He=Ye.width*et,ht=Ye.height*et;je.activeTexture.set(ne.TEXTURE1),je.viewport.set([0,0,He,ht]);let gt=$e.heatmapFbo;if(!gt||gt&&(gt.width!==He||gt.height!==ht)){gt&>.destroy();const Ot=ne.createTexture();ne.bindTexture(ne.TEXTURE_2D,Ot),ne.texParameteri(ne.TEXTURE_2D,ne.TEXTURE_WRAP_S,ne.CLAMP_TO_EDGE),ne.texParameteri(ne.TEXTURE_2D,ne.TEXTURE_WRAP_T,ne.CLAMP_TO_EDGE),ne.texParameteri(ne.TEXTURE_2D,ne.TEXTURE_MIN_FILTER,ne.LINEAR),ne.texParameteri(ne.TEXTURE_2D,ne.TEXTURE_MAG_FILTER,ne.LINEAR),gt=$e.heatmapFbo=je.createFramebuffer(He,ht,!1),function(kt,Lt,qt,$t,cn,Wn){const nn=kt.gl;nn.texImage2D(nn.TEXTURE_2D,0,kt.isWebGL2&&kt.extRenderToTextureHalfFloat?nn.RGBA16F:nn.RGBA,cn,Wn,0,nn.RGBA,kt.extRenderToTextureHalfFloat?kt.isWebGL2?nn.HALF_FLOAT:kt.extTextureHalfFloat.HALF_FLOAT_OES:nn.UNSIGNED_BYTE,null),$t.colorAttachment.set(qt)}(je,0,Ot,gt,He,ht)}else ne.bindTexture(ne.TEXTURE_2D,gt.colorAttachment.get()),je.bindFramebuffer.set(gt.framebuffer)})(y,u,a,"globe"===u.transform.projection.name?.5:.25),y.clear({color:l.Color.transparent});const R=u.transform,U="globe"===R.projection.name,z=U?["PROJECTION_GLOBE_VIEW"]:null,Q=U?l.CullFaceMode.frontCCW:l.CullFaceMode.disabled,Se=[l.mercatorXfromLng(R.center.lng),l.mercatorYfromLat(R.center.lat)];for(let je=0;je{const Ot=[];js(gt)&&Ot.push("RENDER_LINE_DASH"),gt.paint.get("line-gradient")&&Ot.push("RENDER_LINE_GRADIENT");const kt=gt.paint.get("line-trim-offset");0===kt[0]&&0===kt[1]||Ot.push("RENDER_LINE_TRIM_OFFSET");const Lt=gt.paint.get("line-pattern").constantOr(1),qt=1!==gt.paint.get("line-opacity").constantOr(1);return!Lt&&qt&&Ot.push("RENDER_LINE_ALPHA_DISCARD"),Ot})(a);let ht=He.includes("RENDER_LINE_ALPHA_DISCARD");u.terrain&&u.terrain.clipOrMaskOverlapStencilType()&&(ht=!1);for(const gt of p){const Ot=n.getTile(gt);if(je&&!Ot.patternsLoaded())continue;const kt=Ot.getBucket(a);if(!kt)continue;u.prepareDrawTile();const Lt=kt.programConfigurations.get(a.id),qt=u.useProgram($e,Lt,He),$t=Se.constantOr(null);if($t&&Ot.imageAtlas){const An=Ot.imageAtlas.patternPositions[$t.toString()];An&&Lt.setConstantPatternPositions(An)}const cn=U.constantOr(null),Wn=Q.constantOr(null);if(!je&&cn&&Wn&&Ot.lineAtlas){const An=Ot.lineAtlas.getDash(cn,Wn);An&&Lt.setConstantPatternPositions(An)}let[nn,Mn]=a.paint.get("line-trim-offset");("round"===Wn||"square"===Wn)&&nn!==Mn&&(0===nn&&(nn-=1),1===Mn&&(Mn+=1));const pn=u.terrain?gt.projMatrix:null,qn=je?xo(u,Ot,a,pn,R):$r(u,Ot,a,pn,kt.lineClipsArray.length,R,[nn,Mn]);if(Ye){const An=kt.gradients[a.id];let Zn=An.texture;if(a.gradientVersion!==An.version){let kn=256;if(a.stepInterpolant){const ti=n.getSource().maxzoom,Ii=gt.canonical.z===ti?Math.ceil(1<{qt.draw(et,ne.TRIANGLES,D,An,I,l.CullFaceMode.disabled,qn,a.id,kt.layoutVertexBuffer,kt.indexBuffer,kt.segments,a.paint,u.transform.zoom,Lt,[kt.layoutVertexBuffer2])};if(ht){const An=u.stencilModeForClipping(gt).ref;0===An&&u.terrain&&et.clear({stencil:0});const Zn={func:ne.EQUAL,mask:255};qn.u_alpha_discard_threshold=.8,sn(new l.StencilMode(Zn,An,255,ne.KEEP,ne.KEEP,ne.INVERT)),qn.u_alpha_discard_threshold=0,sn(new l.StencilMode(Zn,An,255,ne.KEEP,ne.KEEP,ne.KEEP))}else sn(u.stencilModeForClipping(gt))}ht&&(u.resetStencilClippingMasks(),u.terrain&&et.clear({stencil:0}))},fill:function(u,n,a,p){const y=a.paint.get("fill-color"),x=a.paint.get("fill-opacity");if(0===x.constantOr(1))return;const D=u.colorModeForRenderPass(),I=a.paint.get("fill-pattern"),R=u.opaquePassEnabledForLayer()&&!I.constantOr(1)&&1===y.constantOr(l.Color.transparent).a&&1===x.constantOr(0)?"opaque":"translucent";if(u.renderPass===R){const U=u.depthModeForSublayer(1,"opaque"===u.renderPass?l.DepthMode.ReadWrite:l.DepthMode.ReadOnly);oo(u,n,a,p,U,D,!1)}if("translucent"===u.renderPass&&a.paint.get("fill-antialias")){const U=u.depthModeForSublayer(a.getPaintProperty("fill-outline-color")?2:0,l.DepthMode.ReadOnly);oo(u,n,a,p,U,D,!0)}},"fill-extrusion":function(u,n,a,p){const y=a.paint.get("fill-extrusion-opacity");if(0!==y&&"translucent"===u.renderPass){const x=new l.DepthMode(u.context.gl.LEQUAL,l.DepthMode.ReadWrite,u.depthRangeFor3D);if(1!==y||a.paint.get("fill-extrusion-pattern").constantOr(1))$a(u,n,a,p,x,l.StencilMode.disabled,l.ColorMode.disabled),$a(u,n,a,p,x,u.stencilModeFor3D(),u.colorModeForRenderPass()),u.resetStencilClippingMasks();else{const D=u.colorModeForRenderPass();$a(u,n,a,p,x,l.StencilMode.disabled,D)}}},hillshade:function(u,n,a,p){if("offscreen"!==u.renderPass&&"translucent"!==u.renderPass)return;const y=u.context,x=u.depthModeForSublayer(0,l.DepthMode.ReadOnly),D=u.colorModeForRenderPass(),I=u.terrain&&u.terrain.renderingToTexture,[R,U]="translucent"!==u.renderPass||I?[{},p]:u.stencilConfigForOverlap(p);for(const z of U){const Q=n.getTile(z);if(Q.needsHillshadePrepare&&"offscreen"===u.renderPass)Zl(u,Q,a,x,l.StencilMode.disabled,D);else if("translucent"===u.renderPass){const Se=I&&u.terrain?u.terrain.stencilModeForRTTOverlap(z):R[z.overscaledZ];bl(u,z,Q,a,x,Se,D)}}y.viewport.set([0,0,u.width,u.height]),u.resetStencilClippingMasks()},raster:function(u,n,a,p,y,x){if("translucent"!==u.renderPass||0===a.paint.get("raster-opacity")||!p.length)return;const D=u.context,I=D.gl,R=n.getSource(),U=u.useProgram("raster"),z=u.colorModeForRenderPass(),Q=u.terrain&&u.terrain.renderingToTexture,[Se,je]=R instanceof Z||Q?[{},p]:u.stencilConfigForOverlap(p),Ye=je[je.length-1].overscaledZ,$e=!u.options.moving;for(const et of je){const ne=Q?l.DepthMode.disabled:u.depthModeForSublayer(et.overscaledZ-Ye,1===a.paint.get("raster-opacity")?l.DepthMode.ReadWrite:l.DepthMode.ReadOnly,I.LESS),He=et.toUnwrapped(),ht=n.getTile(et);if(Q&&(!ht||!ht.hasData()))continue;const gt=Q?et.projMatrix:u.transform.calculateProjMatrix(He,$e),Ot=u.terrain&&Q?u.terrain.stencilModeForRTTOverlap(et):Se[et.overscaledZ],kt=x?0:a.paint.get("raster-fade-duration");ht.registerFadeDuration(kt);const Lt=n.findLoadedParent(et,0),qt=ea(ht,Lt,n,u.transform,kt);let $t,cn;u.terrain&&u.terrain.prepareDrawTile();const Wn="nearest"===a.paint.get("raster-resampling")?I.NEAREST:I.LINEAR;D.activeTexture.set(I.TEXTURE0),ht.texture.bind(Wn,I.CLAMP_TO_EDGE),D.activeTexture.set(I.TEXTURE1),Lt?(Lt.texture.bind(Wn,I.CLAMP_TO_EDGE),$t=Math.pow(2,Lt.tileID.overscaledZ-ht.tileID.overscaledZ),cn=[ht.tileID.canonical.x*$t%1,ht.tileID.canonical.y*$t%1]):ht.texture.bind(Wn,I.CLAMP_TO_EDGE),ht.texture.useMipmap&&D.extTextureFilterAnisotropic&&u.transform.pitch>20&&I.texParameterf(I.TEXTURE_2D,D.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,D.extTextureFilterAnisotropicMax);const nn=wl(gt,cn||[0,0],$t||1,qt,a,R instanceof Z?R.perspectiveTransform:[0,0]);if(u.prepareDrawProgram(D,U,He),R instanceof Z)R.boundsBuffer&&R.boundsSegments&&U.draw(D,I.TRIANGLES,ne,l.StencilMode.disabled,z,l.CullFaceMode.disabled,nn,a.id,R.boundsBuffer,u.quadTriangleIndexBuffer,R.boundsSegments);else{const{tileBoundsBuffer:Mn,tileBoundsIndexBuffer:pn,tileBoundsSegments:qn}=u.getTileBoundsBuffers(ht);U.draw(D,I.TRIANGLES,ne,Ot,z,l.CullFaceMode.disabled,nn,a.id,Mn,pn,qn)}}u.resetStencilClippingMasks()},background:function(u,n,a,p){const y=a.paint.get("background-color"),x=a.paint.get("background-opacity");if(0===x)return;const D=u.context,I=D.gl,R=u.transform,U=R.tileSize,z=a.paint.get("background-pattern");if(u.isPatternMissing(z))return;const Q=!z&&1===y.a&&1===x&&u.opaquePassEnabledForLayer()?"opaque":"translucent";if(u.renderPass!==Q)return;const Se=l.StencilMode.disabled,je=u.depthModeForSublayer(0,"opaque"===Q?l.DepthMode.ReadWrite:l.DepthMode.ReadOnly),Ye=u.colorModeForRenderPass(),$e=u.useProgram(z?"backgroundPattern":"background");let et,ne=p;ne||(et=u.getBackgroundTiles(),ne=Object.values(et).map(He=>He.tileID)),z&&(D.activeTexture.set(I.TEXTURE0),u.imageManager.bind(u.context));for(const He of ne){const ht=He.toUnwrapped(),gt=p?He.projMatrix:u.transform.calculateProjMatrix(ht);u.prepareDrawTile();const Ot=n?n.getTile(He):et?et[He.key]:new l.Tile(He,U,R.zoom,u),kt=z?Hl(gt,x,u,z,{tileID:He,tileSize:U}):ma(gt,x,y);u.prepareDrawProgram(D,$e,ht);const{tileBoundsBuffer:Lt,tileBoundsIndexBuffer:qt,tileBoundsSegments:$t}=u.getTileBoundsBuffers(Ot);$e.draw(D,I.TRIANGLES,je,Se,Ye,l.CullFaceMode.disabled,kt,a.id,Lt,qt,$t)}},sky:function(u,n,a){const p=u.transform,y="mercator"===p.projection.name||"globe"===p.projection.name?1:l.smoothstep(7,8,p.zoom),x=a.paint.get("sky-opacity")*y;if(0===x)return;const D=u.context,I=a.paint.get("sky-type"),R=new l.DepthMode(D.gl.LEQUAL,l.DepthMode.ReadOnly,[0,1]),U=u.frameCounter/1e3%1;"atmosphere"===I?"offscreen"===u.renderPass?a.needsSkyboxCapture(u)&&(function(z,Q,Se,je){const Ye=z.context,$e=Ye.gl;let et=Q.skyboxFbo;if(!et){et=Q.skyboxFbo=Ye.createFramebuffer(32,32,!1),Q.skyboxGeometry=new Ga(Ye),Q.skyboxTexture=Ye.gl.createTexture(),$e.bindTexture($e.TEXTURE_CUBE_MAP,Q.skyboxTexture),$e.texParameteri($e.TEXTURE_CUBE_MAP,$e.TEXTURE_WRAP_S,$e.CLAMP_TO_EDGE),$e.texParameteri($e.TEXTURE_CUBE_MAP,$e.TEXTURE_WRAP_T,$e.CLAMP_TO_EDGE),$e.texParameteri($e.TEXTURE_CUBE_MAP,$e.TEXTURE_MIN_FILTER,$e.LINEAR),$e.texParameteri($e.TEXTURE_CUBE_MAP,$e.TEXTURE_MAG_FILTER,$e.LINEAR);for(let gt=0;gt<6;++gt)$e.texImage2D($e.TEXTURE_CUBE_MAP_POSITIVE_X+gt,0,$e.RGBA,32,32,0,$e.RGBA,$e.UNSIGNED_BYTE,null)}Ye.bindFramebuffer.set(et.framebuffer),Ye.viewport.set([0,0,32,32]);const ne=Q.getCenter(z,!0),He=z.useProgram("skyboxCapture"),ht=new Float64Array(16);l.identity(ht),l.rotateY(ht,ht,.5*-Math.PI),Hs(Ye,Q,He,ht,ne,0),l.identity(ht),l.rotateY(ht,ht,.5*Math.PI),Hs(Ye,Q,He,ht,ne,1),l.identity(ht),l.rotateX(ht,ht,.5*-Math.PI),Hs(Ye,Q,He,ht,ne,2),l.identity(ht),l.rotateX(ht,ht,.5*Math.PI),Hs(Ye,Q,He,ht,ne,3),l.identity(ht),Hs(Ye,Q,He,ht,ne,4),l.identity(ht),l.rotateY(ht,ht,Math.PI),Hs(Ye,Q,He,ht,ne,5),Ye.viewport.set([0,0,z.width,z.height])}(u,a),a.markSkyboxValid(u)):"sky"===u.renderPass&&function(z,Q,Se,je,Ye){const $e=z.context,et=$e.gl,ne=z.transform,He=z.useProgram("skybox");$e.activeTexture.set(et.TEXTURE0),et.bindTexture(et.TEXTURE_CUBE_MAP,Q.skyboxTexture);const ht=((gt,Ot,kt,Lt,qt)=>({u_matrix:gt,u_sun_direction:Ot,u_cubemap:0,u_opacity:Lt,u_temporal_offset:qt}))(ne.skyboxMatrix,Q.getCenter(z,!1),0,je,Ye);z.prepareDrawProgram($e,He),He.draw($e,et.TRIANGLES,Se,l.StencilMode.disabled,z.colorModeForRenderPass(),l.CullFaceMode.backCW,ht,"skybox",Q.skyboxGeometry.vertexBuffer,Q.skyboxGeometry.indexBuffer,Q.skyboxGeometry.segment)}(u,a,R,x,U):"gradient"===I&&"sky"===u.renderPass&&function(z,Q,Se,je,Ye){const $e=z.context,et=$e.gl,ne=z.transform,He=z.useProgram("skyboxGradient");Q.skyboxGeometry||(Q.skyboxGeometry=new Ga($e)),$e.activeTexture.set(et.TEXTURE0);let ht=Q.colorRampTexture;ht||(ht=Q.colorRampTexture=new l.Texture($e,Q.colorRamp,et.RGBA)),ht.bind(et.LINEAR,et.CLAMP_TO_EDGE);const gt=(Ot=ne.skyboxMatrix,kt=Q.getCenter(z,!1),Lt=Q.paint.get("sky-gradient-radius"),qt=je,$t=Ye,{u_matrix:Ot,u_color_ramp:0,u_center_direction:kt,u_radius:l.degToRad(Lt),u_opacity:qt,u_temporal_offset:$t});var Ot,kt,Lt,qt,$t;z.prepareDrawProgram($e,He),He.draw($e,et.TRIANGLES,Se,l.StencilMode.disabled,z.colorModeForRenderPass(),l.CullFaceMode.backCW,gt,"skyboxGradient",Q.skyboxGeometry.vertexBuffer,Q.skyboxGeometry.indexBuffer,Q.skyboxGeometry.segment)}(u,a,R,x,U)},debug:function(u,n,a){for(let p=0;py)return void(this.transform.fogCullDistSq=null);const x=p+.78*(y-p);this.transform.fogCullDistSq=x*x}get terrain(){return this.transform._terrainEnabled()&&this._terrain&&this._terrain.enabled?this._terrain:null}resize(n,a){if(this.width=n*l.exported.devicePixelRatio,this.height=a*l.exported.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(const p of this.style.order)this.style._layers[p].resize()}setup(){const n=this.context,a=new l.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(l.EXTENT,0),a.emplaceBack(0,l.EXTENT),a.emplaceBack(l.EXTENT,l.EXTENT),this.tileExtentBuffer=n.createVertexBuffer(a,l.posAttributes.members),this.tileExtentSegments=l.SegmentVector.simpleSegment(0,0,4,2);const p=new l.StructArrayLayout2i4;p.emplaceBack(0,0),p.emplaceBack(l.EXTENT,0),p.emplaceBack(0,l.EXTENT),p.emplaceBack(l.EXTENT,l.EXTENT),this.debugBuffer=n.createVertexBuffer(p,l.posAttributes.members),this.debugSegments=l.SegmentVector.simpleSegment(0,0,4,5);const y=new l.StructArrayLayout2i4;y.emplaceBack(-1,-1),y.emplaceBack(1,-1),y.emplaceBack(-1,1),y.emplaceBack(1,1),this.viewportBuffer=n.createVertexBuffer(y,l.posAttributes.members),this.viewportSegments=l.SegmentVector.simpleSegment(0,0,4,2);const x=new l.StructArrayLayout4i8;x.emplaceBack(0,0,0,0),x.emplaceBack(l.EXTENT,0,l.EXTENT,0),x.emplaceBack(0,l.EXTENT,0,l.EXTENT),x.emplaceBack(l.EXTENT,l.EXTENT,l.EXTENT,l.EXTENT),this.mercatorBoundsBuffer=n.createVertexBuffer(x,l.boundsAttributes.members),this.mercatorBoundsSegments=l.SegmentVector.simpleSegment(0,0,4,2);const D=new l.StructArrayLayout3ui6;D.emplaceBack(0,1,2),D.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=n.createIndexBuffer(D);const I=new l.StructArrayLayout1ui2;for(const U of[0,1,3,2,0])I.emplaceBack(U);this.debugIndexBuffer=n.createIndexBuffer(I),this.emptyTexture=new l.Texture(n,new l.RGBAImage({width:1,height:1},Uint8Array.of(0,0,0,0)),n.gl.RGBA),this.identityMat=l.create();const R=this.context.gl;this.stencilClearMode=new l.StencilMode({func:R.ALWAYS,mask:0},0,255,R.ZERO,R.ZERO,R.ZERO),this.loadTimeStamps.push(l.window.performance.now()),this.atmosphereBuffer=new we(this.context)}getMercatorTileBoundsBuffers(){return{tileBoundsBuffer:this.mercatorBoundsBuffer,tileBoundsIndexBuffer:this.quadTriangleIndexBuffer,tileBoundsSegments:this.mercatorBoundsSegments}}getTileBoundsBuffers(n){return n._makeTileBoundsBuffers(this.context,this.transform.projection),n._tileBoundsBuffer?{tileBoundsBuffer:n._tileBoundsBuffer,tileBoundsIndexBuffer:n._tileBoundsIndexBuffer,tileBoundsSegments:n._tileBoundsSegments}:this.getMercatorTileBoundsBuffers()}clearStencil(){const n=this.context,a=n.gl;this.nextStencilID=1,this.currentStencilSource=void 0,this._tileClippingMaskIDs={},this.useProgram("clippingMask").draw(n,a.TRIANGLES,l.DepthMode.disabled,this.stencilClearMode,l.ColorMode.disabled,l.CullFaceMode.disabled,fa(this.identityMat),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}resetStencilClippingMasks(){this.terrain||(this.currentStencilSource=void 0,this._tileClippingMaskIDs={})}_renderTileClippingMasks(n,a,p){if(!a||this.currentStencilSource===a.id||!n.isTileClipped()||!p||0===p.length)return;if(this._tileClippingMaskIDs&&!this.terrain){let I=!1;for(const R of p)if(void 0===this._tileClippingMaskIDs[R.key]){I=!0;break}if(!I)return}this.currentStencilSource=a.id;const y=this.context,x=y.gl;this.nextStencilID+p.length>256&&this.clearStencil(),y.setColorMode(l.ColorMode.disabled),y.setDepthMode(l.DepthMode.disabled);const D=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(const I of p){const R=a.getTile(I),U=this._tileClippingMaskIDs[I.key]=this.nextStencilID++,{tileBoundsBuffer:z,tileBoundsIndexBuffer:Q,tileBoundsSegments:Se}=this.getTileBoundsBuffers(R);D.draw(y,x.TRIANGLES,l.DepthMode.disabled,new l.StencilMode({func:x.ALWAYS,mask:0},U,255,x.KEEP,x.KEEP,x.REPLACE),l.ColorMode.disabled,l.CullFaceMode.disabled,fa(I.projMatrix),"$clipping",z,Q,Se)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();const n=this.nextStencilID++,a=this.context.gl;return new l.StencilMode({func:a.NOTEQUAL,mask:255},n,255,a.KEEP,a.KEEP,a.REPLACE)}stencilModeForClipping(n){if(this.terrain)return this.terrain.stencilModeForRTTOverlap(n);const a=this.context.gl;return new l.StencilMode({func:a.EQUAL,mask:255},this._tileClippingMaskIDs[n.key],0,a.KEEP,a.KEEP,a.REPLACE)}stencilConfigForOverlap(n){const a=this.context.gl,p=n.sort((D,I)=>I.overscaledZ-D.overscaledZ),y=p[p.length-1].overscaledZ,x=p[0].overscaledZ-y+1;if(x>1){this.currentStencilSource=void 0,this.nextStencilID+x>256&&this.clearStencil();const D={};for(let I=0;I=0;this.currentLayer--){const U=this.style._layers[p[this.currentLayer]],z=n._getLayerSourceCache(U);if(U.isSky())continue;const Q=z?D[z.id]:void 0;this._renderTileClippingMasks(U,z,Q),this.renderLayer(this,z,U,Q)}if(this.style.fog&&this.transform.projection.supportsFog&&function(U,z){const Q=U.context,Se=Q.gl,je=U.transform,Ye=new l.DepthMode(Se.LEQUAL,l.DepthMode.ReadOnly,[0,1]),$e=U.useProgram("globeAtmosphere",null,"globe"===je.projection.name?["PROJECTION_GLOBE_VIEW","FOG"]:["FOG"]),et=l.globeToMercatorTransition(je.zoom),ne=z.properties.get("color").toArray01(),He=z.properties.get("high-color").toArray01(),ht=z.properties.get("space-color").toArray01PremultipliedAlpha(),gt=l.identity$1([]);l.rotateY$1(gt,gt,-l.degToRad(je._center.lng)),l.rotateX$1(gt,gt,l.degToRad(je._center.lat)),l.rotateZ$1(gt,gt,je.angle),l.rotateX$1(gt,gt,-je._pitch);const Ot=l.fromQuat(new Float32Array(16),gt),kt=l.mapValue(z.properties.get("star-intensity"),0,1,0,.25),qt=l.mapValue(z.properties.get("horizon-blend"),0,1,5e-4,.25),$t=l.globeUseCustomAntiAliasing(U,Q,je)&&5e-4===qt?je.worldSize/(2*Math.PI*1.025)-1:je.globeRadius,cn=U.frameCounter/1e3%1,Wn=l.length(je.globeCenterInViewSpace),nn=Math.sqrt(Math.pow(Wn,2)-Math.pow($t,2)),Mn=Math.acos(nn/Wn),pn={u_frustum_tl:je.frustumCorners.TL,u_frustum_tr:je.frustumCorners.TR,u_frustum_br:je.frustumCorners.BR,u_frustum_bl:je.frustumCorners.BL,u_horizon:je.frustumCorners.horizon,u_transition:et,u_fadeout_range:qt,u_color:ne,u_high_color:He,u_space_color:ht,u_star_intensity:kt,u_star_size:5*l.exported.devicePixelRatio,u_star_density:0,u_temporal_offset:cn,u_horizon_angle:Mn,u_rotation_matrix:Ot};U.prepareDrawProgram(Q,$e);const qn=U.atmosphereBuffer;qn&&$e.draw(Q,Se.TRIANGLES,Ye,l.StencilMode.disabled,l.ColorMode.alphaBlended,l.CullFaceMode.backCW,pn,"skybox",qn.vertexBuffer,qn.indexBuffer,qn.segments)}(this,this.style.fog),this.renderPass="sky",(l.globeToMercatorTransition(this.transform.zoom)>0||"globe"!==this.transform.projection.name)&&this.transform.isHorizonVisible())for(this.currentLayer=0;this.currentLayer{const Q=n._getLayerSourceCache(z);Q&&!z.isHidden(this.transform.zoom)&&(!U||U.getSource().maxzoom0?a.pop():null}isPatternMissing(n){return null===n||void 0!==n&&!this.imageManager.getPattern(n.toString())}terrainRenderModeElevated(){return this.style&&!!this.style.getTerrain()&&!!this.terrain&&!this.terrain.renderingToTexture}currentGlobalDefines(){const n=this.terrain&&this.terrain.renderingToTexture,a=this.terrain&&0===this.terrain.exaggeration(),p=this.style&&this.style.fog,y=[];return this.terrainRenderModeElevated()&&y.push("TERRAIN"),"globe"===this.transform.projection.name&&y.push("GLOBE"),a&&y.push("ZERO_EXAGGERATION"),p&&!n&&0!==p.getOpacity(this.transform.pitch)&&y.push("FOG"),n&&y.push("RENDER_TO_TEXTURE"),this._showOverdrawInspector&&y.push("OVERDRAW_INSPECTOR"),y}useProgram(n,a,p){this.cache=this.cache||{};const y=p||[],x=this.currentGlobalDefines().concat(y),D=Pi.cacheKey(Ba[n],n,x,a);return this.cache[D]||(this.cache[D]=new Pi(this.context,n,Ba[n],a,$s[n],x)),this.cache[D]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.frontFace.setDefault(),this.context.cullFaceSide.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){const n=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(n.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=l.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new l.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this._terrain&&this._terrain.destroy(),this.globeSharedBuffers&&this.globeSharedBuffers.destroy(),this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy(),this.atmosphereBuffer&&this.atmosphereBuffer.destroy()}prepareDrawTile(){this.terrain&&this.terrain.prepareDrawTile()}prepareDrawProgram(n,a,p){if(this.terrain&&this.terrain.renderingToTexture)return;const y=this.style.fog;if(y){const x=y.getOpacity(this.transform.pitch),D=((I,R,U,z,Q,Se,je,Ye,$e,et,ne)=>{const He=I.transform,ht=R.properties.get("color").toArray01();ht[3]=z;const gt=I.frameCounter/1e3%1;return{u_fog_matrix:U?He.calculateFogTileMatrix(U):I.identityMat,u_fog_range:R.getFovAdjustedRange(He._fov),u_fog_color:ht,u_fog_horizon_blend:R.properties.get("horizon-blend"),u_fog_temporal_offset:gt,u_frustum_tl:Q,u_frustum_tr:Se,u_frustum_br:je,u_frustum_bl:Ye,u_globe_pos:$e,u_globe_radius:et,u_viewport:ne,u_globe_transition:l.globeToMercatorTransition(He.zoom),u_is_globe:+("globe"===He.projection.name)}})(this,y,p,x,this.transform.frustumCorners.TL,this.transform.frustumCorners.TR,this.transform.frustumCorners.BR,this.transform.frustumCorners.BL,this.transform.globeCenterInViewSpace,this.transform.globeRadius,[this.transform.width*l.exported.devicePixelRatio,this.transform.height*l.exported.devicePixelRatio]);a.setFogUniformValues(n,D)}}setTileLoadedFlag(n){this.tileLoaded=n}saveCanvasCopy(){const n=this.canvasCopy();n&&(this.frameCopies.push(n),this.tileLoaded=!1)}canvasCopy(){const n=this.context.gl,a=n.createTexture();return n.bindTexture(n.TEXTURE_2D,a),n.copyTexImage2D(n.TEXTURE_2D,0,n.RGBA,0,0,n.drawingBufferWidth,n.drawingBufferHeight,0),a}getCanvasCopiesAndTimestamps(){return{canvasCopies:this.frameCopies,timeStamps:this.loadTimeStamps}}averageElevationNeedsEasing(){if(!this.transform._elevation)return!1;const n=this.style&&this.style.fog;return!!n&&0!==n.getOpacity(this.transform.pitch)}getBackgroundTiles(){const n=this._backgroundTiles,a=this._backgroundTiles={},p=this.transform.coveringTiles({tileSize:512});for(const y of p)a[y.key]=n[y.key]||new l.Tile(y,512,this.transform.tileZoom,this);return a}clearBackgroundTiles(){this._backgroundTiles={}}}class wt{constructor(n=0,a=0,p=0,y=0){if(isNaN(n)||n<0||isNaN(a)||a<0||isNaN(p)||p<0||isNaN(y)||y<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=n,this.bottom=a,this.left=p,this.right=y}interpolate(n,a,p){return null!=a.top&&null!=n.top&&(this.top=l.number(n.top,a.top,p)),null!=a.bottom&&null!=n.bottom&&(this.bottom=l.number(n.bottom,a.bottom,p)),null!=a.left&&null!=n.left&&(this.left=l.number(n.left,a.left,p)),null!=a.right&&null!=n.right&&(this.right=l.number(n.right,a.right,p)),this}getCenter(n,a){const p=l.clamp((this.left+n-this.right)/2,0,n),y=l.clamp((this.top+a-this.bottom)/2,0,a);return new l.Point(p,y)}equals(n){return this.top===n.top&&this.bottom===n.bottom&&this.left===n.left&&this.right===n.right}clone(){return new wt(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}function yn(u,n){const a=l.getColumn(u,3);l.fromQuat(u,n),l.setColumn(u,3,a)}function xn(u,n){const a=l.identity$1([]);return l.rotateZ$1(a,a,-n),l.rotateX$1(a,a,-u),a}function xi(u,n){const a=[u[0],u[1],0],p=[n[0],n[1],0];if(l.length(a)>=1e-15){const D=l.normalize([],a);l.scale$2(p,D,l.dot(p,D)),n[0]=p[0],n[1]=p[1]}const y=l.cross([],n,u);if(l.len(y)<1e-15)return null;const x=Math.atan2(-y[1],y[0]);return xn(Math.atan2(Math.sqrt(u[0]*u[0]+u[1]*u[1]),-u[2]),x)}class Jr{constructor(n,a){this.position=n,this.orientation=a}get position(){return this._position}set position(n){if(n){const a=n instanceof l.MercatorCoordinate?n:new l.MercatorCoordinate(n[0],n[1],n[2]);this._renderWorldCopies&&(a.x=l.wrap(a.x,0,1)),this._position=a}else this._position=null}lookAtPoint(n,a){if(this.orientation=null,!this.position)return;const p=this.position,y=this._elevation?this._elevation.getAtPointOrZero(l.MercatorCoordinate.fromLngLat(n)):0,x=l.MercatorCoordinate.fromLngLat(n,y),D=[x.x-p.x,x.y-p.y,x.z-p.z];a||(a=[0,0,1]),a[2]=Math.abs(a[2]),this.orientation=xi(D,a)}setPitchBearing(n,a){this.orientation=xn(l.degToRad(n),l.degToRad(-a))}}class Pr{constructor(n,a){this._transform=l.identity([]),this.orientation=a,this.position=n}get mercatorPosition(){const n=this.position;return new l.MercatorCoordinate(n[0],n[1],n[2])}get position(){const n=l.getColumn(this._transform,3);return[n[0],n[1],n[2]]}set position(n){var a;n&&l.setColumn(this._transform,3,[(a=n)[0],a[1],a[2],1])}get orientation(){return this._orientation}set orientation(n){this._orientation=n||l.identity$1([]),n&&yn(this._transform,this._orientation)}getPitchBearing(){const n=this.forward(),a=this.right();return{bearing:Math.atan2(-a[1],a[0]),pitch:Math.atan2(Math.sqrt(n[0]*n[0]+n[1]*n[1]),-n[2])}}setPitchBearing(n,a){this._orientation=xn(n,a),yn(this._transform,this._orientation)}forward(){const n=l.getColumn(this._transform,2);return[-n[0],-n[1],-n[2]]}up(){const n=l.getColumn(this._transform,1);return[-n[0],-n[1],-n[2]]}right(){const n=l.getColumn(this._transform,0);return[n[0],n[1],n[2]]}getCameraToWorld(n,a){const p=new Float64Array(16);return l.invert(p,this.getWorldToCamera(n,a)),p}getWorldToCameraPosition(n,a,p){const y=this.position;l.scale$2(y,y,-n);const x=new Float64Array(16);return l.fromScaling(x,[p,p,p]),l.translate(x,x,y),x[10]*=a,x}getWorldToCamera(n,a){const p=new Float64Array(16),y=new Float64Array(4),x=this.position;return l.conjugate(y,this._orientation),l.scale$2(x,x,-n),l.fromQuat(p,y),l.translate(p,p,x),p[1]*=-1,p[5]*=-1,p[9]*=-1,p[13]*=-1,p[8]*=a,p[9]*=a,p[10]*=a,p[11]*=a,p}getCameraToClipPerspective(n,a,p,y){const x=new Float64Array(16);return l.perspective(x,n,a,p,y),x}getDistanceToElevation(n,a=!1){const p=0===n?0:l.mercatorZfromAltitude(n,a?l.latFromMercatorY(this.position[1]):this.position[1]),y=this.forward();return(p-this.position[2])/y[2]}clone(){return new Pr([...this.position],[...this.orientation])}}function xr(u,n){const a=Kr(u.projection,u.zoom,u.width,u.height),p=function(x,D,I,R,U){const z=new l.LngLat(I.lng-180*_r,I.lat),Q=new l.LngLat(I.lng+180*_r,I.lat),Se=x.project(z.lng,z.lat),je=x.project(Q.lng,Q.lat),Ye=-Math.atan2(je.y-Se.y,je.x-Se.x),$e=l.MercatorCoordinate.fromLngLat(I);$e.y=l.clamp($e.y,-1+_r,1-_r);const et=$e.toLngLat(),ne=x.project(et.lng,et.lat),He=l.MercatorCoordinate.fromLngLat(et);He.x+=_r;const ht=He.toLngLat(),gt=x.project(ht.lng,ht.lat),Ot=Bo(gt.x-ne.x,gt.y-ne.y,Ye),kt=l.MercatorCoordinate.fromLngLat(et);kt.y+=_r;const Lt=kt.toLngLat(),qt=x.project(Lt.lng,Lt.lat),$t=Bo(qt.x-ne.x,qt.y-ne.y,Ye),cn=Math.abs(Ot.x)/Math.abs($t.y),Wn=l.identity([]);l.rotateZ(Wn,Wn,-Ye*(1-(U?0:R)));const nn=l.identity([]);return l.scale(nn,nn,[1,1-(1-cn)*R,1]),nn[4]=-$t.x/$t.y*R,l.rotateZ(nn,nn,Ye),l.multiply(nn,Wn,nn),nn}(u.projection,0,u.center,a,n),y=ir(u);return l.scale(p,p,[y,y,1]),p}function ir(u){const n=u.projection,a=Kr(u.projection,u.zoom,u.width,u.height),p=so(n,u.center),y=so(n,l.LngLat.convert(n.center));return Math.pow(2,p*a+(1-a)*y)}function Kr(u,n,a,p,y=1/0){const x=u.range;if(!x)return 0;const D=Math.min(y,Math.max(a,p)),I=Math.log(D/1024)/Math.LN2;return l.smoothstep(x[0]+I,x[1]+I,n)}const _r=1/4e4;function so(u,n){const a=l.clamp(n.lat,-l.MAX_MERCATOR_LATITUDE,l.MAX_MERCATOR_LATITUDE),p=new l.LngLat(n.lng-180*_r,a),y=new l.LngLat(n.lng+180*_r,a),x=u.project(p.lng,a),D=u.project(y.lng,a),I=l.MercatorCoordinate.fromLngLat(p),R=l.MercatorCoordinate.fromLngLat(y),U=D.x-x.x,z=D.y-x.y,Q=R.x-I.x,Se=R.y-I.y,je=Math.sqrt((Q*Q+Se*Se)/(U*U+z*z));return Math.log(je)/Math.LN2}function Bo(u,n,a){const p=Math.cos(a),y=Math.sin(a);return{x:u*p-n*y,y:u*y+n*p}}class ao{constructor(n,a,p,y,x,D,I){this.tileSize=512,this._renderWorldCopies=void 0===x||x,this._minZoom=n||0,this._maxZoom=a||22,this._minPitch=p??0,this._maxPitch=y??60,this.setProjection(D),this.setMaxBounds(I),this.width=0,this.height=0,this._center=new l.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._nearZ=0,this._farZ=0,this._unmodified=!0,this._edgeInsets=new wt,this._projMatrixCache={},this._alignedProjMatrixCache={},this._fogTileMatrixCache={},this._distanceTileDataCache={},this._camera=new Pr,this._centerAltitude=0,this._averageElevation=0,this.cameraElevationReference="ground",this._pixelsPerMercatorPixel=1,this.globeRadius=0,this.globeCenterInViewSpace=[0,0,0],this._horizonShift=.1}clone(){const n=new ao(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies,this.getProjection());return n._elevation=this._elevation,n._centerAltitude=this._centerAltitude,n._centerAltitudeValidForExaggeration=this._centerAltitudeValidForExaggeration,n.tileSize=this.tileSize,n.mercatorFromTransition=this.mercatorFromTransition,n.width=this.width,n.height=this.height,n.cameraElevationReference=this.cameraElevationReference,n._center=this._center,n._setZoom(this.zoom),n._seaLevelZoom=this._seaLevelZoom,n.angle=this.angle,n._fov=this._fov,n._pitch=this._pitch,n._nearZ=this._nearZ,n._farZ=this._farZ,n._averageElevation=this._averageElevation,n._unmodified=this._unmodified,n._edgeInsets=this._edgeInsets.clone(),n._camera=this._camera.clone(),n._calcMatrices(),n.freezeTileCoverage=this.freezeTileCoverage,n.frustumCorners=this.frustumCorners,n}get elevation(){return this._elevation}set elevation(n){this._elevation!==n&&(this._elevation=n,this._updateCameraOnTerrain(),this._calcMatrices())}updateElevation(n,a=!1){const p=this._elevation&&this._elevation.exaggeration()!==this._centerAltitudeValidForExaggeration;(null==this._seaLevelZoom||p)&&this._updateCameraOnTerrain(),(n||p)&&this._constrainCamera(a),this._calcMatrices()}getProjection(){return l.pick(this.projection,["name","center","parallels"])}setProjection(n){this.projectionOptions=n||{name:"mercator"};const a=this.projection?this.getProjection():void 0;this.projection=l.getProjection(this.projectionOptions);const p=!B(a,this.getProjection());return p&&this._calcMatrices(),this.mercatorFromTransition=!1,p}setMercatorFromTransition(){const n=this.projection.name;this.mercatorFromTransition=!0,this.projectionOptions={name:"mercator"},this.projection=l.getProjection({name:"mercator"});const a=n!==this.projection.name;return a&&this._calcMatrices(),a}get minZoom(){return this._minZoom}set minZoom(n){this._minZoom!==n&&(this._minZoom=n,this.zoom=Math.max(this.zoom,n))}get maxZoom(){return this._maxZoom}set maxZoom(n){this._maxZoom!==n&&(this._maxZoom=n,this.zoom=Math.min(this.zoom,n))}get minPitch(){return this._minPitch}set minPitch(n){this._minPitch!==n&&(this._minPitch=n,this.pitch=Math.max(this.pitch,n))}get maxPitch(){return this._maxPitch}set maxPitch(n){this._maxPitch!==n&&(this._maxPitch=n,this.pitch=Math.min(this.pitch,n))}get renderWorldCopies(){return this._renderWorldCopies&&!0===this.projection.supportsWorldCopies}set renderWorldCopies(n){void 0===n?n=!0:null===n&&(n=!1),this._renderWorldCopies=n}get worldSize(){return this.tileSize*this.scale}get cameraWorldSizeForFog(){const n=Math.max(this._camera.getDistanceToElevation(this._averageElevation),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(n))}get cameraWorldSize(){const n=Math.max(this._camera.getDistanceToElevation(this._averageElevation,!0),Number.EPSILON);return this._worldSizeFromZoom(this._zoomFromMercatorZ(n))}get pixelsPerMeter(){return this.projection.pixelsPerMeter(this.center.lat,this.worldSize)}get cameraPixelsPerMeter(){return l.mercatorZfromAltitude(this.center.lat,this.cameraWorldSizeForFog)}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new l.Point(this.width,this.height)}get bearing(){return l.wrap(this.rotation,-180,180)}set bearing(n){this.rotation=n}get rotation(){return-this.angle/Math.PI*180}set rotation(n){const a=-n*Math.PI/180;var p,y,x,D,I,R,U,z,Q,Se;this.angle!==a&&(this._unmodified=!1,this.angle=a,this._calcMatrices(),this.rotationMatrix=(p=new l.ARRAY_TYPE(4),l.ARRAY_TYPE!=Float32Array&&(p[1]=0,p[2]=0),p[0]=1,p[3]=1,p),y=this.rotationMatrix,D=this.angle,I=(x=this.rotationMatrix)[0],R=x[1],U=x[2],z=x[3],Q=Math.sin(D),Se=Math.cos(D),y[0]=I*Se+U*Q,y[1]=R*Se+z*Q,y[2]=I*-Q+U*Se,y[3]=R*-Q+z*Se)}get pitch(){return this._pitch/Math.PI*180}set pitch(n){const a=l.clamp(n,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==a&&(this._unmodified=!1,this._pitch=a,this._calcMatrices())}get aspect(){return this.width/this.height}get fov(){return this._fov/Math.PI*180}get fovX(){return this._fov}get fovY(){const n=1/Math.tan(.5*this.fovX);return 2*Math.atan(1/this.aspect/n)}set fov(n){n=Math.max(.01,Math.min(60,n)),this._fov!==n&&(this._unmodified=!1,this._fov=l.degToRad(n),this._calcMatrices())}get averageElevation(){return this._averageElevation}set averageElevation(n){this._averageElevation=n,this._calcFogMatrices(),this._distanceTileDataCache={}}get zoom(){return this._zoom}set zoom(n){const a=Math.min(Math.max(n,this.minZoom),this.maxZoom);this._zoom!==a&&(this._unmodified=!1,this._setZoom(a),this._updateSeaLevelZoom(),this._constrain(),this._calcMatrices())}_setZoom(n){this._zoom=n,this.scale=this.zoomScale(n),this.tileZoom=Math.floor(n),this.zoomFraction=n-this.tileZoom}_updateCameraOnTerrain(){if(!this._elevation||!this._elevation.isDataAvailableAtPoint(this.locationCoordinate(this.center)))return this._centerAltitude=0,this._seaLevelZoom=null,void(this._centerAltitudeValidForExaggeration=void 0);const n=this._elevation;this._centerAltitude=n.getAtPointOrZero(this.locationCoordinate(this.center)),this._centerAltitudeValidForExaggeration=n.exaggeration(),this._updateSeaLevelZoom()}_updateSeaLevelZoom(){void 0!==this._centerAltitudeValidForExaggeration&&(this._seaLevelZoom=this._zoomFromMercatorZ((this.pixelsPerMeter*this._centerAltitude+this.cameraToCenterDistance)/this.worldSize))}sampleAverageElevation(){if(!this._elevation)return 0;const n=this._elevation,a=[[.5,.2],[.3,.5],[.5,.5],[.7,.5],[.5,.8]],p=this.horizonLineFromTop();let y=0,x=0;for(let D=0;Dn.maxzoom&&(a=n.maxzoom);const D=this.locationCoordinate(this.center),I=this.center.lat,R=1<{const Zn=new l.MercatorCoordinate(sn.x+25e-6,sn.y,sn.z),kn=new l.MercatorCoordinate(sn.x,sn.y+25e-6,sn.z),ti=sn.toLngLat(),Ii=Zn.toLngLat(),$i=kn.toLngLat(),mi=this.locationCoordinate(ti),Oi=this.locationCoordinate(Ii),cr=this.locationCoordinate($i),lr=Math.hypot(Oi.x-mi.x,Oi.y-mi.y),Ci=Math.hypot(cr.x-mi.x,cr.y-mi.y);return Math.sqrt(lr*Ci)*Ot/25e-6},Lt=sn=>{const An=ht,Zn=gt;return{aabb:l.tileAABB(this,R,0,0,0,sn,Zn,An,this.projection),zoom:0,x:0,y:0,minZ:Zn,maxZ:An,wrap:sn,fullyVisible:!1}},qt=[];let $t=[];const cn=a,Wn=n.reparseOverscaled?p:a,nn=sn=>sn*sn,Mn=nn(($e-this._centerAltitude)*Ye),pn=sn=>{if(!this._elevation||!sn.tileID||!x)return;const An=this._elevation.getMinMaxForTile(sn.tileID),Zn=sn.aabb;An?(Zn.min[2]=An.min,Zn.max[2]=An.max,Zn.center[2]=(Zn.min[2]+Zn.max[2])/2):(sn.shouldSplit=qn(sn),sn.shouldSplit||(Zn.min[2]=Zn.max[2]=Zn.center[2]=this._centerAltitude))},qn=sn=>{if(sn.zoom=.9)return!0}else if(y&&(kn=nn(sn.aabb.distanceZ(et)*Ye)),this.projection.isReprojectedInTileSpace&&p<=5){const mi=Math.pow(2,sn.zoom),Oi=kt(new l.MercatorCoordinate((sn.x+.5)/mi,(sn.y+.5)/mi));ti=Oi>.85?1:Oi}const Ii=An*An+Zn*Zn+kn;return Ii{if(Oi*nn(.707)0;){const sn=qt.pop(),An=sn.x,Zn=sn.y;let kn=sn.fullyVisible;if(!kn){const ti=sn.aabb.intersects(Se);if(0===ti)continue;kn=2===ti}if(sn.zoom!==cn&&qn(sn))for(let ti=0;ti<4;ti++){const Ii=(An<<1)+ti%2,$i=(Zn<<1)+(ti>>1),mi={aabb:x?sn.aabb.quadrant(ti):l.tileAABB(this,R,sn.zoom+1,Ii,$i,sn.wrap,sn.minZ,sn.maxZ,this.projection),zoom:sn.zoom+1,x:Ii,y:$i,wrap:sn.wrap,fullyVisible:kn,tileID:void 0,shouldSplit:void 0,minZ:sn.minZ,maxZ:sn.maxZ};y&&!z&&(mi.tileID=new l.OverscaledTileID(sn.zoom+1===cn?Wn:sn.zoom+1,sn.wrap,sn.zoom+1,Ii,$i),pn(mi)),qt.push(mi)}else{const ti=sn.zoom===cn?Wn:sn.zoom;if(n.minzoom&&n.minzoom>ti)continue;const Ii=U[0]-(.5+An+(sn.wrap<{const kn=[0,0,0,1],ti=[l.EXTENT,l.EXTENT,0,1],Ii=this.calculateFogTileMatrix(Zn.tileID.toUnwrapped());l.transformMat4$1(kn,kn,Ii),l.transformMat4$1(ti,ti,Ii);const $i=l.getAABBPointSquareDist(kn,ti);if(0===$i)return!0;let mi=!1;const Oi=this._elevation;if(Oi&&$i>sn&&0!==An){const cr=this.calculateProjMatrix(Zn.tileID.toUnwrapped());let lr;n.isTerrainDEM||(lr=Oi.getMinMaxForTile(Zn.tileID)),lr||(lr={min:gt,max:ht});const Ci=l.furthestTileCorner(this.rotation),br=[Ci[0]*l.EXTENT,Ci[1]*l.EXTENT,lr.max];l.transformMat4(br,br,cr),mi=(1-br[1])*this.height*.5sn.distanceSq-An.distanceSq).map(sn=>sn.tileID)}resize(n,a){this.width=n,this.height=a,this.pixelsToGLUnits=[2/n,-2/a],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(n){return Math.pow(2,n)}scaleZoom(n){return Math.log(n)/Math.LN2}project(n){const a=l.clamp(n.lat,-l.MAX_MERCATOR_LATITUDE,l.MAX_MERCATOR_LATITUDE),p=this.projection.project(n.lng,a);return new l.Point(p.x*this.worldSize,p.y*this.worldSize)}unproject(n){return this.projection.unproject(n.x/this.worldSize,n.y/this.worldSize)}get point(){return this.project(this.center)}get pointMerc(){return this.point._div(this.worldSize)}get pixelsPerMeterRatio(){return this.pixelsPerMeter/l.mercatorZfromAltitude(1,this.center.lat)/this.worldSize}setLocationAtPoint(n,a){let p,y;const x=this.centerPoint;if("globe"===this.projection.name){const I=this.worldSize;p=(a.x-x.x)/I,y=(a.y-x.y)/I}else{const I=this.pointCoordinate(a),R=this.pointCoordinate(x);p=I.x-R.x,y=I.y-R.y}const D=this.locationCoordinate(n);this.setLocation(new l.MercatorCoordinate(D.x-p,D.y-y))}setLocation(n){this.center=this.coordinateLocation(n),this.projection.wrap&&(this.center=this.center.wrap())}locationPoint(n){return this.projection.locationPoint(this,n)}locationPoint3D(n){return this.projection.locationPoint(this,n,!0)}pointLocation(n){return this.coordinateLocation(this.pointCoordinate(n))}pointLocation3D(n){return this.coordinateLocation(this.pointCoordinate3D(n))}locationCoordinate(n,a){const p=a?l.mercatorZfromAltitude(a,n.lat):void 0,y=this.projection.project(n.lng,n.lat);return new l.MercatorCoordinate(y.x,y.y,p)}coordinateLocation(n){return this.projection.unproject(n.x,n.y)}pointRayIntersection(n,a){const p=a??this._centerAltitude,y=[n.x,n.y,0,1],x=[n.x,n.y,1,1];l.transformMat4$1(y,y,this.pixelMatrixInverse),l.transformMat4$1(x,x,this.pixelMatrixInverse);const D=x[3];l.scale$1(y,y,1/y[3]),l.scale$1(x,x,1/D);const I=y[2],R=x[2];return{p0:y,p1:x,t:I===R?0:(p-I)/(R-I)}}screenPointToMercatorRay(n){const a=[n.x,n.y,0,1],p=[n.x,n.y,1,1];return l.transformMat4$1(a,a,this.pixelMatrixInverse),l.transformMat4$1(p,p,this.pixelMatrixInverse),l.scale$1(a,a,1/a[3]),l.scale$1(p,p,1/p[3]),a[2]=l.mercatorZfromAltitude(a[2],this._center.lat)*this.worldSize,p[2]=l.mercatorZfromAltitude(p[2],this._center.lat)*this.worldSize,l.scale$1(a,a,1/this.worldSize),l.scale$1(p,p,1/this.worldSize),new l.Ray([a[0],a[1],a[2]],l.normalize([],l.sub([],p,a)))}rayIntersectionCoordinate(n){const{p0:a,p1:p,t:y}=n,x=l.mercatorZfromAltitude(a[2],this._center.lat),D=l.mercatorZfromAltitude(p[2],this._center.lat);return new l.MercatorCoordinate(l.number(a[0],p[0],y)/this.worldSize,l.number(a[1],p[1],y)/this.worldSize,l.number(x,D,y))}pointCoordinate(n,a=this._centerAltitude){return this.projection.pointCoordinate(this,n.x,n.y,a)}pointCoordinate3D(n){if(!this.elevation)return this.pointCoordinate(n);let a=this.projection.pointCoordinate3D(this,n.x,n.y);if(a)return new l.MercatorCoordinate(a[0],a[1],a[2]);let p=0,y=this.horizonLineFromTop();if(n.y>y)return this.pointCoordinate(n);const x=.02*y,D=n.clone();for(let I=0;I<10&&y-p>x;I++){D.y=l.number(p,y,.66);const R=this.projection.pointCoordinate3D(this,D.x,D.y);R?(y=D.y,a=R):p=D.y}return a?new l.MercatorCoordinate(a[0],a[1],a[2]):this.pointCoordinate(n)}isPointAboveHorizon(n){return this.projection.isPointAboveHorizon(this,n)}isPointOnSurface(n){if(n.y<0||n.y>this.height||n.x<0||n.x>this.width)return!1;if(this.elevation||this.zoom>=l.GLOBE_ZOOM_THRESHOLD_MAX)return!this.isPointAboveHorizon(n);const a=this.pointCoordinate(n);return a.y>=0&&a.y<=1}_coordinatePoint(n,a){const p=a&&this.elevation?this.elevation.getAtPointOrZero(n,this._centerAltitude):this._centerAltitude,y=[n.x*this.worldSize,n.y*this.worldSize,p+n.toAltitude(),1];return l.transformMat4$1(y,y,this.pixelMatrix),y[3]>0?new l.Point(y[0]/y[3],y[1]/y[3]):new l.Point(Number.MAX_VALUE,Number.MAX_VALUE)}_getBoundsNonRectangular(){const{top:n,left:a}=this._edgeInsets,p=this.height-this._edgeInsets.bottom,y=this.width-this._edgeInsets.right,x=this.pointLocation3D(new l.Point(a,n)),D=this.pointLocation3D(new l.Point(y,n)),I=this.pointLocation3D(new l.Point(y,p)),R=this.pointLocation3D(new l.Point(a,p));let U=Math.min(x.lng,D.lng,I.lng,R.lng),z=Math.max(x.lng,D.lng,I.lng,R.lng),Q=Math.min(x.lat,D.lat,I.lat,R.lat),Se=Math.max(x.lat,D.lat,I.lat,R.lat);const je=Math.pow(2,-this.zoom)/16*270,Ye="globe"===this.projection.name?1:4,$e=(et,ne,He,ht,gt)=>{const Ot=(et+He)/2,kt=(ne+ht)/2,Lt=new l.Point(Ot,kt),{lng:qt,lat:$t}=this.pointLocation3D(Lt),cn=Math.max(0,U-qt,Q-$t,qt-z,$t-Se);U=Math.min(U,qt),z=Math.max(z,qt),Q=Math.min(Q,$t),Se=Math.max(Se,$t),(gtje)&&($e(et,ne,Ot,kt,gt+1),$e(Ot,kt,He,ht,gt+1))};if($e(a,n,y,n,1),$e(y,n,y,p,1),$e(y,p,a,p,1),$e(a,p,a,n,1),"globe"===this.projection.name){const[et,ne]=l.polesInViewport(this);et?(Se=90,z=180,U=-180):ne&&(Q=-90,z=180,U=-180)}return new l.LngLatBounds(new l.LngLat(U,Q),new l.LngLat(z,Se))}_getBoundsRectangular(n,a){const{top:p,left:y}=this._edgeInsets,x=this.height-this._edgeInsets.bottom,D=this.width-this._edgeInsets.right,I=new l.Point(y,p),R=new l.Point(D,p),U=new l.Point(D,x),z=new l.Point(y,x);let Q=this.pointCoordinate(I,n),Se=this.pointCoordinate(R,n);const je=this.pointCoordinate(U,a),Ye=this.pointCoordinate(z,a),$e=(et,ne)=>(ne.y-et.y)/(ne.x-et.x);return Q.y>1&&Se.y>=0?Q=new l.MercatorCoordinate((1-Ye.y)/$e(Ye,Q)+Ye.x,1):Q.y<0&&Se.y<=1&&(Q=new l.MercatorCoordinate(-Ye.y/$e(Ye,Q)+Ye.x,0)),Se.y>1&&Q.y>=0?Se=new l.MercatorCoordinate((1-je.y)/$e(je,Se)+je.x,1):Se.y<0&&Q.y<=1&&(Se=new l.MercatorCoordinate(-je.y/$e(je,Se)+je.x,0)),(new l.LngLatBounds).extend(this.coordinateLocation(Q)).extend(this.coordinateLocation(Se)).extend(this.coordinateLocation(Ye)).extend(this.coordinateLocation(je))}_getBoundsRectangularTerrain(){const n=this.elevation;if(!n.visibleDemTiles.length||n.isUsingMockSource())return this._getBoundsRectangular(0,0);const a=n.visibleDemTiles.reduce((p,y)=>{if(y.dem){const x=y.dem.tree;p.min=Math.min(p.min,x.minimums[0]),p.max=Math.max(p.max,x.maximums[0])}return p},{min:Number.MAX_VALUE,max:0});return this._getBoundsRectangular(a.min*n.exaggeration(),a.max*n.exaggeration())}getBounds(){return"mercator"===this.projection.name||"equirectangular"===this.projection.name?this._terrainEnabled()?this._getBoundsRectangularTerrain():this._getBoundsRectangular(0,0):this._getBoundsNonRectangular()}horizonLineFromTop(n=!0){const a=this.height/2/Math.tan(this._fov/2)/Math.tan(Math.max(this._pitch,.1))+this.centerOffset.y,p=this.height/2-a*(1-this._horizonShift);return n?Math.max(0,p):p}getMaxBounds(){return this.maxBounds}setMaxBounds(n){this.maxBounds=n,this.minLat=-l.MAX_MERCATOR_LATITUDE,this.maxLat=l.MAX_MERCATOR_LATITUDE,this.minLng=-180,this.maxLng=180,n&&(this.minLat=n.getSouth(),this.maxLat=n.getNorth(),this.minLng=n.getWest(),this.maxLng=n.getEast(),this.maxLngQ&&(I=Q-U),Q-zje&&(D=je-R),je-Se.5?ht-1:ht,gt>.5?gt-1:gt,0]),this.alignedProjMatrix=Ot,I=l.create(),l.scale(I,I,[this.width/2,-this.height/2,1]),l.translate(I,I,[1,-1,0]),this.labelPlaneMatrix=I,I=l.create(),l.scale(I,I,[1,-1,1]),l.translate(I,I,[-1,-1,0]),l.scale(I,I,[2/this.width,2/this.height,1]),this.glCoordMatrix=I,this.pixelMatrix=l.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),this._calcFogMatrices(),this._distanceTileDataCache={},I=l.invert(new Float64Array(16),this.pixelMatrix),!I)throw new Error("failed to invert matrix");if(this.pixelMatrixInverse=I,"globe"===this.projection.name||this.mercatorFromTransition){this.globeMatrix=l.calculateGlobeMatrix(this);const kt=[this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]];this.globeCenterInViewSpace=l.transformMat4(kt,kt,x),this.globeRadius=this.worldSize/2/Math.PI-1}else this.globeMatrix=I;this._projMatrixCache={},this._alignedProjMatrixCache={},this._pixelsToTileUnitsCache={}}_calcFogMatrices(){this._fogTileMatrixCache={};const n=this.cameraWorldSizeForFog,a=this.cameraPixelsPerMeter,p=this._camera.position,y=1/this.height/this._pixelsPerMercatorPixel,x=[n,n,a];l.scale$2(x,x,y),l.scale$2(p,p,-1),l.multiply$2(p,p,x);const D=l.create();l.translate(D,D,p),l.scale(D,D,x),this.mercatorFogMatrix=D,this.worldToFogMatrix=this._camera.getWorldToCameraPosition(n,a,y)}_computeCameraPosition(n){const a=(n=n||this.pixelsPerMeter)/this.pixelsPerMeter,p=this._camera.forward(),y=this.point,x=this._mercatorZfromZoom(this._seaLevelZoom?this._seaLevelZoom:this._zoom)*a-n/this.worldSize*this._centerAltitude;return[y.x/this.worldSize-p[0]*x,y.y/this.worldSize-p[1]*x,n/this.worldSize*this._centerAltitude-p[2]*x]}_updateCameraState(){this.height&&(this._camera.setPitchBearing(this._pitch,this.angle),this._camera.position=this._computeCameraPosition())}_translateCameraConstrained(n){const a=this._maxCameraBoundsDistance()*Math.cos(this._pitch),p=this._camera.position[2],y=n[2];let x=1;this.projection.wrap&&(this.center=this.center.wrap()),y>0&&(x=Math.min((a-p)/y,1)),this._camera.position=l.scaleAndAdd([],this._camera.position,n,x),this._updateStateFromCamera()}_updateStateFromCamera(){const n=this._camera.position,a=this._camera.forward(),{pitch:p,bearing:y}=this._camera.getPitchBearing(),x=l.mercatorZfromAltitude(this._centerAltitude,this.center.lat)*this._pixelsPerMercatorPixel,D=this._mercatorZfromZoom(this._maxZoom)*Math.cos(l.degToRad(this._maxPitch)),I=Math.max((n[2]-x)/Math.cos(p),D),R=this._zoomFromMercatorZ(I);l.scaleAndAdd(n,n,a,I),this._pitch=l.clamp(p,l.degToRad(this.minPitch),l.degToRad(this.maxPitch)),this.angle=l.wrap(y,-Math.PI,Math.PI),this._setZoom(l.clamp(R,this._minZoom,this._maxZoom)),this._updateSeaLevelZoom(),this._center=this.coordinateLocation(new l.MercatorCoordinate(n[0],n[1],n[2])),this._unmodified=!1,this._constrain(),this._calcMatrices()}_worldSizeFromZoom(n){return Math.pow(2,n)*this.tileSize}_mercatorZfromZoom(n){return this.cameraToCenterDistance/this._worldSizeFromZoom(n)}_minimumHeightOverTerrain(){const n=Math.min((null!=this._seaLevelZoom?this._seaLevelZoom:this._zoom)+4,this._maxZoom);return this._mercatorZfromZoom(n)}_zoomFromMercatorZ(n){return this.scaleZoom(this.cameraToCenterDistance/(n*this.tileSize))}zoomFromMercatorZAdjusted(n){let a=0,p=l.GLOBE_ZOOM_THRESHOLD_MAX,y=0,x=1/0;for(;p-a>1e-6&&p>a;){const D=a+.5*(p-a),I=this.tileSize*Math.pow(2,D),R=this.getCameraToCenterDistance(this.projection,D,I),U=this.scaleZoom(R/(n*this.tileSize)),z=Math.abs(D-U);zU||Se.y>1)return!0}return!1}isHorizonVisible(){return this.pitch+l.radToDeg(this.fovAboveCenter)>88||this.anyCornerOffEdge(new l.Point(0,0),new l.Point(this.width,this.height))}zoomDeltaToMovement(n,a){const p=l.length(l.sub([],this._camera.position,n)),y=this._zoomFromMercatorZ(p)+a;return p-this._mercatorZfromZoom(y)}getCameraPoint(){if("globe"===this.projection.name){const n=function([a,p,y],x){const D=[a,p,y,1];l.transformMat4$1(D,D,x);const I=D[3]=Math.max(D[3],1e-6);return D[0]/=I,D[1]/=I,D[2]/=I,D}([this.globeMatrix[12],this.globeMatrix[13],this.globeMatrix[14]],this.pixelMatrix);return new l.Point(n[0],n[1])}{const n=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new l.Point(0,n))}}getCameraToCenterDistance(n,a=this.zoom,p=this.worldSize){const y=Kr(n,a,this.width,this.height,1024),x=n.pixelSpaceConversion(this.center.lat,p,y);return.5/Math.tan(.5*this._fov)*this.height*x}getWorldToCameraMatrix(){const n=this._camera.getWorldToCamera(this.worldSize,"meters"===this.projection.zAxisUnit?this.pixelsPerMeter:1);return"globe"===this.projection.name&&l.multiply(n,n,this.globeMatrix),n}}function Es(u,n){let a=!1,p=null;const y=()=>{p=null,a&&(u(),p=setTimeout(y,n),a=!1)};return()=>(a=!0,p||y(),p)}class Ts{constructor(n){this._hashName=n&&encodeURIComponent(n),l.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=Es(this._updateHashUnthrottled.bind(this),300)}addTo(n){return this._map=n,l.window.addEventListener("hashchange",this._onHashChange,!1),n.on("moveend",this._updateHash),this}remove(){return this._map?(this._map.off("moveend",this._updateHash),l.window.removeEventListener("hashchange",this._onHashChange,!1),clearTimeout(this._updateHash()),this._map=void 0,this):this}getHashString(){const n=this._map;if(!n)return"";const a=Zo(n);if(this._hashName){const p=this._hashName;let y=!1;const x=l.window.location.hash.slice(1).split("&").map(D=>{const I=D.split("=")[0];return I===p?(y=!0,`${I}=${a}`):D}).filter(D=>D);return y||x.push(`${p}=${a}`),`#${x.join("&")}`}return`#${a}`}_getCurrentHash(){const n=l.window.location.hash.replace("#","");if(this._hashName){let a;return n.split("&").map(p=>p.split("=")).forEach(p=>{p[0]===this._hashName&&(a=p)}),(a&&a[1]||"").split("/")}return n.split("/")}_onHashChange(){const n=this._map;if(!n)return!1;const a=this._getCurrentHash();if(a.length>=3&&!a.some(p=>isNaN(p))){const p=n.dragRotate.isEnabled()&&n.touchZoomRotate.isEnabled()?+(a[3]||0):n.getBearing();return n.jumpTo({center:[+a[2],+a[1]],zoom:+a[0],bearing:p,pitch:+(a[4]||0)}),!0}return!1}_updateHashUnthrottled(){const n=l.window.location.href.replace(/(#.+)?$/,this.getHashString());l.window.history.replaceState(l.window.history.state,null,n)}}function Zo(u,n){const a=u.getCenter(),p=Math.round(100*u.getZoom())/100,y=Math.ceil((p*Math.LN2+Math.log(512/360/.5))/Math.LN10),x=Math.pow(10,y),D=Math.round(a.lng*x)/x,I=Math.round(a.lat*x)/x,R=u.getBearing(),U=u.getPitch();let z=n?`/${D}/${I}/${p}`:`${p}/${I}/${D}`;return(R||U)&&(z+="/"+Math.round(10*R)/10),U&&(z+=`/${Math.round(U)}`),z}const zo={linearity:.3,easing:l.bezier(0,0,.3,1)},ia=l.extend({deceleration:2500,maxSpeed:1400},zo),Da=l.extend({deceleration:20,maxSpeed:1400},zo),li=l.extend({deceleration:1e3,maxSpeed:360},zo),Ws=l.extend({deceleration:1e3,maxSpeed:90},zo);class Du{constructor(n){this._map=n,this.clear()}clear(){this._inertiaBuffer=[]}record(n){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:l.exported.now(),settings:n})}_drainInertiaBuffer(){const n=this._inertiaBuffer,a=l.exported.now();for(;n.length>0&&a-n[0].time>160;)n.shift()}_onMoveEnd(n){if(this._map._prefersReducedMotion()||(this._drainInertiaBuffer(),this._inertiaBuffer.length<2))return;const a={zoom:0,bearing:0,pitch:0,pan:new l.Point(0,0),pinchAround:void 0,around:void 0};for(const{settings:x}of this._inertiaBuffer)a.zoom+=x.zoomDelta||0,a.bearing+=x.bearingDelta||0,a.pitch+=x.pitchDelta||0,x.panDelta&&a.pan._add(x.panDelta),x.around&&(a.around=x.around),x.pinchAround&&(a.pinchAround=x.pinchAround);const p=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,y={};if(a.pan.mag()){const x=Jl(a.pan.mag(),p,l.extend({},ia,n||{}));y.offset=a.pan.mult(x.amount/a.pan.mag()),y.center=this._map.transform.center,ga(y,x)}if(a.zoom){const x=Jl(a.zoom,p,Da);y.zoom=this._map.transform.zoom+x.amount,ga(y,x)}if(a.bearing){const x=Jl(a.bearing,p,li);y.bearing=this._map.transform.bearing+l.clamp(x.amount,-179,179),ga(y,x)}if(a.pitch){const x=Jl(a.pitch,p,Ws);y.pitch=this._map.transform.pitch+x.amount,ga(y,x)}if(y.zoom||y.bearing){const x=void 0===a.pinchAround?a.around:a.pinchAround;y.around=x?this._map.unproject(x):this._map.getCenter()}return this.clear(),y.noMoveStart=!0,y}}function ga(u,n){(!u.duration||u.durationa.unproject(R)),I=x.reduce((R,U,z,Q)=>R.add(U.div(Q.length)),new l.Point(0,0));super(n,{points:x,point:I,lngLats:D,lngLat:a.unproject(I),originalEvent:p}),this._defaultPrevented=!1}}class Kl extends l.Event{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(n,a,p){super(n,{originalEvent:p}),this._defaultPrevented=!1}}class Xl{constructor(n,a){this._map=n,this._clickTolerance=a.clickTolerance}reset(){this._mousedownPos=void 0}wheel(n){return this._firePreventable(new Kl(n.type,this._map,n))}mousedown(n,a){return this._mousedownPos=a,this._firePreventable(new Zr(n.type,this._map,n))}mouseup(n){this._map.fire(new Zr(n.type,this._map,n))}preclick(n){const a=l.extend({},n);a.type="preclick",this._map.fire(new Zr(a.type,this._map,a))}click(n,a){this._mousedownPos&&this._mousedownPos.dist(a)>=this._clickTolerance||(this.preclick(n),this._map.fire(new Zr(n.type,this._map,n)))}dblclick(n){return this._firePreventable(new Zr(n.type,this._map,n))}mouseover(n){this._map.fire(new Zr(n.type,this._map,n))}mouseout(n){this._map.fire(new Zr(n.type,this._map,n))}touchstart(n){return this._firePreventable(new Dl(n.type,this._map,n))}touchmove(n){this._map.fire(new Dl(n.type,this._map,n))}touchend(n){this._map.fire(new Dl(n.type,this._map,n))}touchcancel(n){this._map.fire(new Dl(n.type,this._map,n))}_firePreventable(n){if(this._map.fire(n),n.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class yc{constructor(n){this._map=n}reset(){this._delayContextMenu=!1,this._contextMenuEvent=void 0}mousemove(n){this._map.fire(new Zr(n.type,this._map,n))}mousedown(){this._delayContextMenu=!0}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Zr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(n){this._delayContextMenu?this._contextMenuEvent=n:this._map.fire(new Zr(n.type,this._map,n)),this._map.listens("contextmenu")&&n.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class Ql{constructor(n,a){this._map=n,this._el=n.getCanvasContainer(),this._container=n.getContainer(),this._clickTolerance=a.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(n,a){this.isEnabled()&&n.shiftKey&&0===n.button&&(Me(),this._startPos=this._lastPos=a,this._active=!0)}mousemoveWindow(n,a){if(!this._active)return;const p=a,y=this._startPos,x=this._lastPos;if(!y||!x||x.equals(p)||!this._box&&p.dist(y){this._box&&(this._box.style.transform=`translate(${D}px,${R}px)`,this._box.style.width=I-D+"px",this._box.style.height=U-R+"px")})}mouseupWindow(n,a){if(!this._active)return;const p=this._startPos,y=a;if(p&&0===n.button){if(this.reset(),Ce(),p.x!==y.x||p.y!==y.y)return this._map.fire(new l.Event("boxzoomend",{originalEvent:n})),{cameraAnimation:x=>x.fitScreenCoordinates(p,y,this._map.getBearing(),{linear:!1})};this._fireEvent("boxzoomcancel",n)}}keydown(n){this._active&&27===n.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",n))}blur(){this.reset()}reset(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(this._box.remove(),this._box=null),de(),delete this._startPos,delete this._lastPos}_fireEvent(n,a){return this._map.fire(new l.Event(n,{originalEvent:a}))}}function Fr(u,n){const a={};for(let p=0;pthis.numTouches)&&(this.aborted=!0),this.aborted||(0===this.startTime&&(this.startTime=n.timeStamp),p.length===this.numTouches&&(this.centroid=function(y){const x=new l.Point(0,0);for(const D of y)x._add(D);return x.div(y.length)}(a),this.touches=Fr(p,a)))}touchmove(n,a,p){if(this.aborted||!this.centroid)return;const y=Fr(p,a);for(const x in this.touches){const D=y[x];(!D||D.dist(this.touches[x])>30)&&(this.aborted=!0)}}touchend(n,a,p){if((!this.centroid||n.timeStamp-this.startTime>500)&&(this.aborted=!0),0===p.length){const y=!this.aborted&&this.centroid;if(this.reset(),y)return y}}}class ll{constructor(n){this.singleTap=new Ha(n),this.numTaps=n.numTaps,this.reset()}reset(){this.lastTime=1/0,this.lastTap=void 0,this.count=0,this.singleTap.reset()}touchstart(n,a,p){this.singleTap.touchstart(n,a,p)}touchmove(n,a,p){this.singleTap.touchmove(n,a,p)}touchend(n,a,p){const y=this.singleTap.touchend(n,a,p);if(y){const x=n.timeStamp-this.lastTime<500,D=!this.lastTap||this.lastTap.dist(y)<30;if(x&&D||this.reset(),this.count++,this.lastTime=n.timeStamp,this.lastTap=y,this.count===this.numTaps)return this.reset(),y}}}class ts{constructor(){this._zoomIn=new ll({numTouches:1,numTaps:2}),this._zoomOut=new ll({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(n,a,p){this._zoomIn.touchstart(n,a,p),this._zoomOut.touchstart(n,a,p)}touchmove(n,a,p){this._zoomIn.touchmove(n,a,p),this._zoomOut.touchmove(n,a,p)}touchend(n,a,p){const y=this._zoomIn.touchend(n,a,p),x=this._zoomOut.touchend(n,a,p);return y?(this._active=!0,n.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:D=>D.easeTo({duration:300,zoom:D.getZoom()+1,around:D.unproject(y)},{originalEvent:n})}):x?(this._active=!0,n.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:D=>D.easeTo({duration:300,zoom:D.getZoom()-1,around:D.unproject(x)},{originalEvent:n})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}const Ds={0:1,2:2};class _a{constructor(n){this.reset(),this._clickTolerance=n.clickTolerance||1}blur(){this.reset()}reset(){this._active=!1,this._moved=!1,this._lastPoint=void 0,this._eventButton=void 0}_correctButton(n,a){return!1}_move(n,a){return{}}mousedown(n,a){if(this._lastPoint)return;const p=Ie(n);this._correctButton(n,p)&&(this._lastPoint=a,this._eventButton=p)}mousemoveWindow(n,a){const p=this._lastPoint;if(p)if(n.preventDefault(),null!=this._eventButton&&function(y,x){const D=Ds[x];return void 0===y.buttons||(y.buttons&D)!==D}(n,this._eventButton))this.reset();else if(this._moved||!(a.dist(p)0&&(this._active=!0);const y=Fr(p,a),x=new l.Point(0,0),D=new l.Point(0,0);let I=0;for(const U in y){const z=y[U],Q=this._touches[U];Q&&(x._add(z),D._add(z.sub(Q)),I++,y[U]=z)}if(this._touches=y,I{this._alertContainer.classList.remove("mapboxgl-touch-pan-blocker-show"),this._alertContainer.setAttribute("role","null")},500)}}class Ml{constructor(){this.reset()}reset(){this._active=!1,this._firstTwoTouches=void 0}_start(n){}_move(n,a,p){return{}}touchstart(n,a,p){this._firstTwoTouches||p.length<2||(this._firstTwoTouches=[p[0].identifier,p[1].identifier],this._start([a[0],a[1]]))}touchmove(n,a,p){const y=this._firstTwoTouches;if(!y)return;n.preventDefault();const[x,D]=y,I=Is(p,a,x),R=Is(p,a,D);if(!I||!R)return;const U=this._aroundCenter?null:I.add(R).div(2);return this._move([I,R],U,n)}touchend(n,a,p){if(!this._firstTwoTouches)return;const[y,x]=this._firstTwoTouches,D=Is(p,a,y),I=Is(p,a,x);D&&I||(this._active&&Ce(),this.reset())}touchcancel(){this.reset()}enable(n){this._enabled=!0,this._aroundCenter=!!n&&"center"===n.around}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}function Is(u,n,a){for(let p=0;pMath.abs(u.x)}class cl extends Ml{constructor(n){super(),this._map=n}reset(){super.reset(),this._valid=void 0,this._firstMove=void 0,this._lastPoints=void 0}_start(n){this._lastPoints=n,Ia(n[0].sub(n[1]))&&(this._valid=!1)}_move(n,a,p){const y=this._lastPoints;if(!y)return;const x=n[0].sub(y[0]),D=n[1].sub(y[1]);return this._map._cooperativeGestures&&!l.isFullscreen()&&p.touches.length<3||(this._valid=this.gestureBeginsVertically(x,D,p.timeStamp),!this._valid)?void 0:(this._lastPoints=n,this._active=!0,{pitchDelta:(x.y+D.y)/2*-.5})}gestureBeginsVertically(n,a,p){if(void 0!==this._valid)return this._valid;const y=n.mag()>=2,x=a.mag()>=2;if(!y&&!x)return;if(!y||!x)return null==this._firstMove&&(this._firstMove=p),p-this._firstMove<100&&void 0;const D=n.y>0==a.y>0;return Ia(n)&&Ia(a)&&D}}const hs={panStep:100,bearingStep:15,pitchStep:10};class Wc{constructor(){const n=hs;this._panStep=n.panStep,this._bearingStep=n.bearingStep,this._pitchStep=n.pitchStep,this._rotationDisabled=!1}blur(){this.reset()}reset(){this._active=!1}keydown(n){if(n.altKey||n.ctrlKey||n.metaKey)return;let a=0,p=0,y=0,x=0,D=0;switch(n.keyCode){case 61:case 107:case 171:case 187:a=1;break;case 189:case 109:case 173:a=-1;break;case 37:n.shiftKey?p=-1:(n.preventDefault(),x=-1);break;case 39:n.shiftKey?p=1:(n.preventDefault(),x=1);break;case 38:n.shiftKey?y=1:(n.preventDefault(),D=-1);break;case 40:n.shiftKey?y=-1:(n.preventDefault(),D=1);break;default:return}return this._rotationDisabled&&(p=0,y=0),{cameraAnimation:I=>{const R=I.getZoom();I.easeTo({duration:300,easeId:"keyboardHandler",easing:ul,zoom:a?Math.round(R)+a*(n.shiftKey?2:1):R,bearing:I.getBearing()+p*this._bearingStep,pitch:I.getPitch()+y*this._pitchStep,offset:[-x*this._panStep,-D*this._panStep],center:I.getCenter()},{originalEvent:n})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function ul(u){return u*(2-u)}const Hi=4.000244140625;class Mu{constructor(n,a){this._map=n,this._el=n.getCanvasContainer(),this._handler=a,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222,l.bindAll(["_onTimeout","_addScrollZoomBlocker","_showBlockerAlert"],this)}setZoomRate(n){this._defaultZoomRate=n}setWheelZoomRate(n){this._wheelZoomRate=n}isEnabled(){return!!this._enabled}isActive(){return this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(n){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!n&&"center"===n.around,this._map._cooperativeGestures&&this._addScrollZoomBlocker())}disable(){this.isEnabled()&&(this._enabled=!1,this._map._cooperativeGestures&&(clearTimeout(this._alertTimer),this._alertContainer.remove()))}wheel(n){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!(n.ctrlKey||n.metaKey||this.isZooming()||l.isFullscreen()))return void this._showBlockerAlert();"hidden"!==this._alertContainer.style.visibility&&(this._alertContainer.style.visibility="hidden",clearTimeout(this._alertTimer))}let a=n.deltaMode===l.window.WheelEvent.DOM_DELTA_LINE?40*n.deltaY:n.deltaY;const p=l.exported.now(),y=p-(this._lastWheelEventTime||0);this._lastWheelEventTime=p,0!==a&&a%Hi==0?this._type="wheel":0!==a&&Math.abs(a)<4?this._type="trackpad":y>400?(this._type=null,this._lastValue=a,this._timeout=setTimeout(this._onTimeout,40,n)):this._type||(this._type=Math.abs(y*a)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,a+=this._lastValue)),n.shiftKey&&a&&(a/=4),this._type&&(this._lastWheelEvent=n,this._delta-=a,this._active||this._start(n)),n.preventDefault()}_onTimeout(n){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(n)}_start(n){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);const a=oe(this._el,n);this._aroundPoint=this._aroundCenter?this._map.transform.centerPoint:a,this._aroundCoord=this._map.transform.pointCoordinate3D(this._aroundPoint),this._targetZoom=void 0,this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;const n=this._map.transform;"wheel"===this._type&&n.projection.wrap&&(n._center.lng>=180||n._center.lng<=-180)&&(this._prevEase=null,this._easing=null,this._lastWheelEvent=null,this._lastWheelEventTime=0);const a=()=>n._terrainEnabled()&&this._aroundCoord?n.computeZoomRelativeTo(this._aroundCoord):n.zoom;if(0!==this._delta){const R="wheel"===this._type&&Math.abs(this._delta)>Hi?this._wheelZoomRate:this._defaultZoomRate;let U=2/(1+Math.exp(-Math.abs(this._delta*R)));this._delta<0&&0!==U&&(U=1/U);const z=a(),Q=Math.pow(2,z),Se="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):Q;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(Se*U))),"wheel"===this._type&&(this._startZoom=z,this._easing=this._smoothOutEasing(200)),this._delta=0}const p="number"==typeof this._targetZoom?this._targetZoom:a(),y=this._startZoom,x=this._easing;let D,I=!1;if("wheel"===this._type&&y&&x){const R=Math.min((l.exported.now()-this._lastWheelEventTime)/200,1),U=x(R);D=l.number(y,p,U),R<1?this._frameId||(this._frameId=!0):I=!0}else D=p,I=!0;return this._active=!0,I&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._handler._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!I,zoomDelta:D-a(),around:this._aroundPoint,aroundCoord:this._aroundCoord,originalEvent:this._lastWheelEvent}}_smoothOutEasing(n){let a=l.ease;if(this._prevEase){const p=this._prevEase,y=(l.exported.now()-p.start)/p.duration,x=p.easing(y+.01)-p.easing(y),D=.27/Math.sqrt(x*x+1e-4)*.01,I=Math.sqrt(.0729-D*D);a=l.bezier(D,I,.25,1)}return this._prevEase={start:l.exported.now(),duration:n,easing:a},a}blur(){this.reset()}reset(){this._active=!1}_addScrollZoomBlocker(){this._map&&!this._alertContainer&&(this._alertContainer=fe("div","mapboxgl-scroll-zoom-blocker",this._map._container),this._alertContainer.textContent=/(Mac|iPad)/i.test(l.window.navigator.userAgent)?this._map._getUIString("ScrollZoomBlocker.CmdMessage"):this._map._getUIString("ScrollZoomBlocker.CtrlMessage"),this._alertContainer.style.fontSize=`${Math.max(10,Math.min(24,Math.floor(.05*this._el.clientWidth)))}px`)}_showBlockerAlert(){this._alertContainer.style.visibility="visible",this._alertContainer.classList.add("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","alert"),clearTimeout(this._alertTimer),this._alertTimer=setTimeout(()=>{this._alertContainer.classList.remove("mapboxgl-scroll-zoom-blocker-show"),this._alertContainer.setAttribute("role","null")},200)}}class Au{constructor(n,a){this._clickZoom=n,this._tapZoom=a}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class Uo{constructor(){this.reset()}reset(){this._active=!1}blur(){this.reset()}dblclick(n,a){return n.preventDefault(),{cameraAnimation:p=>{p.easeTo({duration:300,zoom:p.getZoom()+(n.shiftKey?-1:1),around:p.unproject(a)},{originalEvent:n})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class qc{constructor(){this._tap=new ll({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,this._swipePoint=void 0,this._swipeTouch=0,this._tapTime=0,this._tap.reset()}touchstart(n,a,p){this._swipePoint||(this._tapTime&&n.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?p.length>0&&(this._swipePoint=a[0],this._swipeTouch=p[0].identifier):this._tap.touchstart(n,a,p))}touchmove(n,a,p){if(this._tapTime){if(this._swipePoint){if(p[0].identifier!==this._swipeTouch)return;const y=a[0],x=y.y-this._swipePoint.y;return this._swipePoint=y,n.preventDefault(),this._active=!0,{zoomDelta:x/128}}}else this._tap.touchmove(n,a,p)}touchend(n,a,p){this._tapTime?this._swipePoint&&0===p.length&&this.reset():this._tap.touchend(n,a,p)&&(this._tapTime=n.timeStamp)}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class Su{constructor(n,a,p){this._el=n,this._mousePan=a,this._touchPan=p}enable(n){this._inertiaOptions=n||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class Pu{constructor(n,a,p){this._pitchWithRotate=n.pitchWithRotate,this._mouseRotate=a,this._mousePitch=p}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class ec{constructor(n,a,p,y){this._el=n,this._touchZoom=a,this._touchRotate=p,this._tapDragZoom=y,this._rotationDisabled=!1,this._enabled=!0}enable(n){this._touchZoom.enable(n),this._rotationDisabled||this._touchRotate.enable(n),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}const Ms=u=>u.zoom||u.drag||u.pitch||u.rotate;class Ou extends l.Event{}class Lh{constructor(){this.constants=[1,1,.01],this.radius=0}setup(n,a){const p=l.sub([],a,n);this.radius=l.length(p[2]<0?l.div([],p,this.constants):[p[0],p[1],0])}projectRay(n){l.div(n,n,this.constants),l.normalize(n,n),l.mul$1(n,n,this.constants);const a=l.scale$2([],n,this.radius);if(a[2]>0){const p=l.scale$2([],[0,0,1],l.dot(a,[0,0,1])),y=l.scale$2([],l.normalize([],[a[0],a[1],0]),this.radius),x=l.add([],a,l.scale$2([],l.sub([],l.add([],y,p),a),2));a[0]=x[0],a[1]=x[1]}return a}}function ya(u){return u.panDelta&&u.panDelta.mag()||u.zoomDelta||u.bearingDelta||u.pitchDelta}class Ma{constructor(n,a){this._map=n,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Du(n),this._bearingSnap=a.bearingSnap,this._previousActiveHandlers={},this._trackingEllipsoid=new Lh,this._dragOrigin=null,this._eventsInProgress={},this._addDefaultHandlers(a),l.bindAll(["handleEvent","handleWindowEvent"],this);const p=this._el;this._listeners=[[p,"touchstart",{passive:!0}],[p,"touchmove",{passive:!1}],[p,"touchend",void 0],[p,"touchcancel",void 0],[p,"mousedown",void 0],[p,"mousemove",void 0],[p,"mouseup",void 0],[l.window.document,"mousemove",{capture:!0}],[l.window.document,"mouseup",void 0],[p,"mouseover",void 0],[p,"mouseout",void 0],[p,"dblclick",void 0],[p,"click",void 0],[p,"keydown",{capture:!1}],[p,"keyup",void 0],[p,"wheel",{passive:!1}],[p,"contextmenu",void 0],[l.window,"blur",void 0]];for(const[y,x,D]of this._listeners)y.addEventListener(x,y===l.window.document?this.handleWindowEvent:this.handleEvent,D)}destroy(){for(const[n,a,p]of this._listeners)n.removeEventListener(a,n===l.window.document?this.handleWindowEvent:this.handleEvent,p)}_addDefaultHandlers(n){const a=this._map,p=a.getCanvasContainer();this._add("mapEvent",new Xl(a,n));const y=a.boxZoom=new Ql(a,n);this._add("boxZoom",y);const x=new ts,D=new Uo;a.doubleClickZoom=new Au(D,x),this._add("tapZoom",x),this._add("clickZoom",D);const I=new qc;this._add("tapDragZoom",I);const R=a.touchPitch=new cl(a);this._add("touchPitch",R);const U=new Lo(n),z=new Gc(n);a.dragRotate=new Pu(n,U,z),this._add("mouseRotate",U,["mousePitch"]),this._add("mousePitch",z,["mouseRotate"]);const Q=new Wa(n),Se=new Il(a,n);a.dragPan=new Su(p,Q,Se),this._add("mousePan",Q),this._add("touchPan",Se,["touchZoom","touchRotate"]);const je=new vc,Ye=new Iu;a.touchZoomRotate=new ec(p,Ye,je,I),this._add("touchRotate",je,["touchPan","touchZoom"]),this._add("touchZoom",Ye,["touchPan","touchRotate"]),this._add("blockableMapEvent",new yc(a));const $e=a.scrollZoom=new Mu(a,this);this._add("scrollZoom",$e,["mousePan"]);const et=a.keyboard=new Wc;this._add("keyboard",et);for(const ne of["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"])n.interactive&&n[ne]&&a[ne].enable(n[ne])}_add(n,a,p){this._handlers.push({handlerName:n,handler:a,allowed:p}),this._handlersById[n]=a}stop(n){if(!this._updatingCamera){for(const{handler:a}of this._handlers)a.reset();this._inertia.clear(),this._fireEvents({},{},n),this._changes=[]}}isActive(){for(const{handler:n}of this._handlers)if(n.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!Ms(this._eventsInProgress)||this.isZooming()}_isDragging(){return!!this._eventsInProgress.drag}_blockedByActive(n,a,p){for(const y in n)if(y!==p&&(!a||a.indexOf(y)<0))return!0;return!1}handleWindowEvent(n){this.handleEvent(n,`${n.type}Window`)}_getMapTouches(n){const a=[];for(const p of n)this._el.contains(p.target)&&a.push(p);return a}handleEvent(n,a){this._updatingCamera=!0;const p="renderFrame"===n.type,y=p?void 0:n,x={needsRenderFrame:!1},D={},I={},R=n.touches?this._getMapTouches(n.touches):void 0,U=R?xe(this._el,R):p?void 0:oe(this._el,n);for(const{handlerName:Se,handler:je,allowed:Ye}of this._handlers){if(!je.isEnabled())continue;let $e;this._blockedByActive(I,Ye,Se)?je.reset():je[a||n.type]&&($e=je[a||n.type](n,U,R),this.mergeHandlerResult(x,D,$e,Se,y),$e&&$e.needsRenderFrame&&this._triggerRenderFrame()),($e||je.isActive())&&(I[Se]=je)}const z={};for(const Se in this._previousActiveHandlers)I[Se]||(z[Se]=y);this._previousActiveHandlers=I,(Object.keys(z).length||ya(x))&&(this._changes.push([x,D,z]),this._triggerRenderFrame()),(Object.keys(I).length||ya(x))&&this._map._stop(!0),this._updatingCamera=!1;const{cameraAnimation:Q}=x;Q&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],Q(this._map))}mergeHandlerResult(n,a,p,y,x){if(!p)return;l.extend(n,p);const D={handlerName:y,originalEvent:p.originalEvent||x};void 0!==p.zoomDelta&&(a.zoom=D),void 0!==p.panDelta&&(a.drag=D),void 0!==p.pitchDelta&&(a.pitch=D),void 0!==p.bearingDelta&&(a.rotate=D)}_applyChanges(){const n={},a={},p={};for(const[y,x,D]of this._changes)y.panDelta&&(n.panDelta=(n.panDelta||new l.Point(0,0))._add(y.panDelta)),y.zoomDelta&&(n.zoomDelta=(n.zoomDelta||0)+y.zoomDelta),y.bearingDelta&&(n.bearingDelta=(n.bearingDelta||0)+y.bearingDelta),y.pitchDelta&&(n.pitchDelta=(n.pitchDelta||0)+y.pitchDelta),void 0!==y.around&&(n.around=y.around),void 0!==y.aroundCoord&&(n.aroundCoord=y.aroundCoord),void 0!==y.pinchAround&&(n.pinchAround=y.pinchAround),y.noInertia&&(n.noInertia=y.noInertia),l.extend(a,x),l.extend(p,D);this._updateMapTransform(n,a,p),this._changes=[]}_updateMapTransform(n,a,p){const y=this._map,x=y.transform,D=He=>[He.x,He.y,He.z];if((He=>{const ht=this._eventsInProgress.drag;return ht&&!this._handlersById[ht.handlerName].isActive()})()&&!ya(n)){const He=x.zoom;x.cameraElevationReference="sea",x.recenterOnTerrain(),x.cameraElevationReference="ground",He!==x.zoom&&this._map._update(!0)}if(x._isCameraConstrained&&y._stop(!0),!ya(n))return void this._fireEvents(a,p,!0);let{panDelta:I,zoomDelta:R,bearingDelta:U,pitchDelta:z,around:Q,aroundCoord:Se,pinchAround:je}=n;x._isCameraConstrained&&(R>0&&(R=0),x._isCameraConstrained=!1),void 0!==je&&(Q=je),(R||(He=>a.drag&&!this._eventsInProgress.drag)())&&Q&&(this._dragOrigin=D(x.pointCoordinate3D(Q)),this._trackingEllipsoid.setup(x._camera.position,this._dragOrigin)),x.cameraElevationReference="sea",y._stop(!0),Q=Q||y.transform.centerPoint,U&&(x.bearing+=U),z&&(x.pitch+=z),x._updateCameraState();const Ye=[0,0,0];if(I)if("mercator"===x.projection.name){const He=this._trackingEllipsoid.projectRay(x.screenPointToMercatorRay(Q).dir),ht=this._trackingEllipsoid.projectRay(x.screenPointToMercatorRay(Q.sub(I)).dir);Ye[0]=ht[0]-He[0],Ye[1]=ht[1]-He[1]}else{const He=x.pointCoordinate(Q);if("globe"===x.projection.name){I=I.rotate(-x.angle);const ht=x._pixelsPerMercatorPixel/x.worldSize;Ye[0]=-I.x*l.mercatorScale(l.latFromMercatorY(He.y))*ht,Ye[1]=-I.y*l.mercatorScale(x.center.lat)*ht}else{const ht=x.pointCoordinate(Q.sub(I));He&&ht&&(Ye[0]=ht.x-He.x,Ye[1]=ht.y-He.y)}}const $e=x.zoom,et=[0,0,0];if(R){const He=D(Se||x.pointCoordinate3D(Q)),ht={dir:l.normalize([],l.sub([],He,x._camera.position))};if(ht.dir[2]<0){const gt=x.zoomDeltaToMovement(He,R);l.scale$2(et,ht.dir,gt)}}const ne=l.add(Ye,Ye,et);x._translateCameraConstrained(ne),R&&Math.abs(x.zoom-$e)>1e-4&&x.recenterOnTerrain(),x.cameraElevationReference="ground",this._map._update(),n.noInertia||this._inertia.record(n),this._fireEvents(a,p,!0)}_fireEvents(n,a,p){const y=Ms(this._eventsInProgress),x=Ms(n),D={};for(const z in n){const{originalEvent:Q}=n[z];this._eventsInProgress[z]||(D[`${z}start`]=Q),this._eventsInProgress[z]=n[z]}!y&&x&&this._fireEvent("movestart",x.originalEvent);for(const z in D)this._fireEvent(z,D[z]);x&&this._fireEvent("move",x.originalEvent);for(const z in n){const{originalEvent:Q}=n[z];this._fireEvent(z,Q)}const I={};let R;for(const z in this._eventsInProgress){const{handlerName:Q,originalEvent:Se}=this._eventsInProgress[z];this._handlersById[Q].isActive()||(delete this._eventsInProgress[z],R=a[Q]||Se,I[`${z}end`]=R)}for(const z in I)this._fireEvent(z,I[z]);const U=Ms(this._eventsInProgress);if(p&&(y||x)&&!U){this._updatingCamera=!0;const z=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),Q=Se=>0!==Se&&-this._bearingSnap{this._frameId=void 0,this.handleEvent(new Ou("renderFrame",{timeStamp:n})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}const Sn="map.setFreeCameraOptions(...) and map.getFreeCameraOptions() are not yet supported for non-mercator projections.";class gr extends l.Evented{constructor(n,a){super(),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=a.bearingSnap,this._respectPrefersReducedMotion=!1!==a.respectPrefersReducedMotion,l.bindAll(["_renderFrameCallback"],this)}getCenter(){return new l.LngLat(this.transform.center.lng,this.transform.center.lat)}setCenter(n,a){return this.jumpTo({center:n},a)}panBy(n,a,p){return n=l.Point.convert(n).mult(-1),this.panTo(this.transform.center,l.extend({offset:n},a),p)}panTo(n,a,p){return this.easeTo(l.extend({center:n},a),p)}getZoom(){return this.transform.zoom}setZoom(n,a){return this.jumpTo({zoom:n},a),this}zoomTo(n,a,p){return this.easeTo(l.extend({zoom:n},a),p)}zoomIn(n,a){return this.zoomTo(this.getZoom()+1,n,a),this}zoomOut(n,a){return this.zoomTo(this.getZoom()-1,n,a),this}getBearing(){return this.transform.bearing}setBearing(n,a){return this.jumpTo({bearing:n},a),this}getPadding(){return this.transform.padding}setPadding(n,a){return this.jumpTo({padding:n},a),this}rotateTo(n,a,p){return this.easeTo(l.extend({bearing:n},a),p)}resetNorth(n,a){return this.rotateTo(0,l.extend({duration:1e3},n),a),this}resetNorthPitch(n,a){return this.easeTo(l.extend({bearing:0,pitch:0,duration:1e3},n),a),this}snapToNorth(n,a){return Math.abs(this.getBearing())n.aspect?p/(2*Math.tan(.5*n.fovX)*n.aspect):y/(2*Math.tan(.5*n.fovY)*n.aspect)}_cameraForBoundsOnGlobe(n,a,p,y,x,D){const I=n.clone(),R=this._extendCameraOptions(D);I.bearing=y,I.pitch=x;const U=l.LngLat.convert(a),z=l.LngLat.convert(p),Q=.5*(U.lat+z.lat),Se=.5*(U.lng+z.lng),je=l.latLngToECEF(Q,Se),Ye=l.normalize([],je),$e=l.normalize([],l.cross([],Ye,[0,1,0])),et=l.cross([],$e,Ye),ne=[$e[0],$e[1],$e[2],0,et[0],et[1],et[2],0,Ye[0],Ye[1],Ye[2],0,0,0,0,1],He=[je,l.latLngToECEF(U.lat,U.lng),l.latLngToECEF(z.lat,U.lng),l.latLngToECEF(z.lat,z.lng),l.latLngToECEF(U.lat,z.lng),l.latLngToECEF(Q,U.lng),l.latLngToECEF(Q,z.lng),l.latLngToECEF(U.lat,Se),l.latLngToECEF(z.lat,Se)];let ht=l.Aabb.fromPoints(He.map(kn=>[l.dot($e,kn),l.dot(et,kn),l.dot(Ye,kn)]));const gt=l.transformMat4([],ht.center,ne);0===l.squaredLength(gt)&&l.set(gt,0,0,1),l.normalize(gt,gt),l.scale$2(gt,gt,l.GLOBE_RADIUS),I.center=l.ecefToLatLng(gt);const Ot=I.getWorldToCameraMatrix(),kt=l.invert(new Float64Array(16),Ot);ht=l.Aabb.applyTransform(ht,l.multiply([],Ot,ne)),l.transformMat4(gt,gt,Ot);const Lt=.5*(ht.max[2]-ht.min[2]),qt=this._minimumAABBFrustumDistance(I,ht),$t=l.scale$2([],[0,0,1],Lt),cn=l.add($t,gt,$t),Wn=qt+(0===I.pitch?0:l.distance(gt,cn)),nn=I.globeCenterInViewSpace,Mn=l.sub([],gt,[nn[0],nn[1],nn[2]]);l.normalize(Mn,Mn),l.scale$2(Mn,Mn,Wn);const pn=l.add([],gt,Mn);l.transformMat4(pn,pn,kt);const qn=l.earthRadius/l.GLOBE_RADIUS,sn=l.length(pn),An=l.mercatorZfromAltitude(Math.max(sn*qn-l.earthRadius,Number.EPSILON),0),Zn=Math.min(I.zoomFromMercatorZAdjusted(An),R.maxZoom);return Zn>.5*(l.GLOBE_ZOOM_THRESHOLD_MIN+l.GLOBE_ZOOM_THRESHOLD_MAX)?(I.setProjection({name:"mercator"}),I.zoom=Zn,this._cameraForBounds(I,a,p,y,x,D)):{center:I.center,zoom:Zn,bearing:y,pitch:x}}queryTerrainElevation(n,a){const p=this.transform.elevation;return p?(a=l.extend({},{exaggerated:!0},a),p.getAtPoint(l.MercatorCoordinate.fromLngLat(n),null,a.exaggerated)):null}_cameraForBounds(n,a,p,y,x,D){if("globe"===n.projection.name)return this._cameraForBoundsOnGlobe(n,a,p,y,x,D);const I=n.clone(),R=this._extendCameraOptions(D),U=I.padding;I.bearing=y,I.pitch=x;const z=l.LngLat.convert(a),Q=l.LngLat.convert(p),Se=new l.LngLat(z.lng,Q.lat),je=new l.LngLat(Q.lng,z.lat),Ye=I.project(z),$e=I.project(Q),et=this.queryTerrainElevation(z),ne=this.queryTerrainElevation(Q),He=this.queryTerrainElevation(Se),ht=this.queryTerrainElevation(je),gt=[[Ye.x,Ye.y,Math.min(et||0,ne||0,He||0,ht||0)],[$e.x,$e.y,Math.max(et||0,ne||0,He||0,ht||0)]];let Ot=l.Aabb.fromPoints(gt);const kt=I.getWorldToCameraMatrix(),Lt=l.invert(new Float64Array(16),kt);Ot=l.Aabb.applyTransform(Ot,kt);const qt=l.sub([],Ot.max,Ot.min),$t=U.left||0,cn=U.right||0,Wn=U.bottom||0,nn=U.top||0,{left:Mn,right:pn,top:qn,bottom:sn}=R.padding,An=.5*($t+cn),Zn=.5*(nn+Wn),kn=Math.min(I.scaleZoom(I.scale*Math.min((I.width-($t+cn+Mn+pn))/qt[0],(I.height-(Wn+nn+sn+qn))/qt[1])),R.maxZoom),ti=I.scale/I.zoomScale(kn);Ot=new l.Aabb([Ot.min[0]-(Mn+An)*ti,Ot.min[1]-(sn+Zn)*ti,Ot.min[2]],[Ot.max[0]+(pn+An)*ti,Ot.max[1]+(qn+Zn)*ti,Ot.max[2]]);const Ii=.5*qt[2],$i=this._minimumAABBFrustumDistance(I,Ot),mi=[0,0,1,0];l.transformMat4$1(mi,mi,kt),l.normalize$2(mi,mi);const Oi=l.scale$2([],mi,$i+Ii),cr=l.add([],Ot.center,Oi),lr=("number"==typeof R.offset.x&&"number"==typeof R.offset.y?new l.Point(R.offset.x,R.offset.y):l.Point.convert(R.offset)).rotate(-l.degToRad(y));Ot.center[0]-=lr.x*ti,Ot.center[1]+=lr.y*ti,l.transformMat4(Ot.center,Ot.center,Lt),l.transformMat4(cr,cr,Lt);const Ci=[Ot.center[0],Ot.center[1],cr[2]*I.pixelsPerMeter];l.scale$2(Ci,Ci,1/I.worldSize);const br=l.lngFromMercatorX(Ci[0]),Gr=l.latFromMercatorY(Ci[1]),Ir=Math.min(I._zoomFromMercatorZ(Ci[2]),R.maxZoom),Br=new l.LngLat(br,Gr);return I.mercatorFromTransition&&Ir<.5*(l.GLOBE_ZOOM_THRESHOLD_MIN+l.GLOBE_ZOOM_THRESHOLD_MAX)?(I.setProjection({name:"globe"}),I.zoom=Ir,this._cameraForBounds(I,a,p,y,x,D)):{center:Br,zoom:Ir,bearing:y,pitch:x}}fitBounds(n,a,p){const y=this.cameraForBounds(n,a);return this._fitInternal(y,a,p)}fitScreenCoordinates(n,a,p,y,x){const D=l.Point.convert(n),I=l.Point.convert(a),R=new l.Point(Math.min(D.x,I.x),Math.min(D.y,I.y)),U=new l.Point(Math.max(D.x,I.x),Math.max(D.y,I.y));if("mercator"===this.transform.projection.name&&this.transform.anyCornerOffEdge(D,I))return this;const z=this.transform.pointLocation3D(R),Q=this.transform.pointLocation3D(U),Se=this.transform.pointLocation3D(new l.Point(R.x,U.y)),je=this.transform.pointLocation3D(new l.Point(U.x,R.y)),Ye=[Math.min(z.lng,Q.lng,Se.lng,je.lng),Math.min(z.lat,Q.lat,Se.lat,je.lat)],$e=[Math.max(z.lng,Q.lng,Se.lng,je.lng),Math.max(z.lat,Q.lat,Se.lat,je.lat)],et=y&&y.pitch?y.pitch:this.getPitch(),ne=this._cameraForBounds(this.transform,Ye,$e,p,et,y);return this._fitInternal(ne,y,x)}_fitInternal(n,a,p){return n?(delete(a=l.extend(n,a)).padding,a.linear?this.easeTo(a,p):this.flyTo(a,p)):this}jumpTo(n,a){this.stop();const p=n.preloadOnly?this.transform.clone():this.transform;let y=!1,x=!1,D=!1;return"zoom"in n&&p.zoom!==+n.zoom&&(y=!0,p.zoom=+n.zoom),void 0!==n.center&&(p.center=l.LngLat.convert(n.center)),"bearing"in n&&p.bearing!==+n.bearing&&(x=!0,p.bearing=+n.bearing),"pitch"in n&&p.pitch!==+n.pitch&&(D=!0,p.pitch=+n.pitch),null==n.padding||p.isPaddingEqual(n.padding)||(p.padding=n.padding),n.preloadOnly?(this._preloadTiles(p),this):(this.fire(new l.Event("movestart",a)).fire(new l.Event("move",a)),y&&this.fire(new l.Event("zoomstart",a)).fire(new l.Event("zoom",a)).fire(new l.Event("zoomend",a)),x&&this.fire(new l.Event("rotatestart",a)).fire(new l.Event("rotate",a)).fire(new l.Event("rotateend",a)),D&&this.fire(new l.Event("pitchstart",a)).fire(new l.Event("pitch",a)).fire(new l.Event("pitchend",a)),this.fire(new l.Event("moveend",a)))}getFreeCameraOptions(){return this.transform.projection.supportsFreeCamera||l.warnOnce(Sn),this.transform.getFreeCameraOptions()}setFreeCameraOptions(n,a){const p=this.transform;if(!p.projection.supportsFreeCamera)return l.warnOnce(Sn),this;this.stop();const y=p.zoom,x=p.pitch,D=p.bearing;p.setFreeCameraOptions(n);const I=y!==p.zoom,R=x!==p.pitch,U=D!==p.bearing;return this.fire(new l.Event("movestart",a)).fire(new l.Event("move",a)),I&&this.fire(new l.Event("zoomstart",a)).fire(new l.Event("zoom",a)).fire(new l.Event("zoomend",a)),U&&this.fire(new l.Event("rotatestart",a)).fire(new l.Event("rotate",a)).fire(new l.Event("rotateend",a)),R&&this.fire(new l.Event("pitchstart",a)).fire(new l.Event("pitch",a)).fire(new l.Event("pitchend",a)),this.fire(new l.Event("moveend",a)),this}easeTo(n,a){this._stop(!1,n.easeId),(!1===(n=l.extend({offset:[0,0],duration:500,easing:l.ease},n)).animate||this._prefersReducedMotion(n))&&(n.duration=0);const p=this.transform,y=this.getZoom(),x=this.getBearing(),D=this.getPitch(),I=this.getPadding(),R="zoom"in n?+n.zoom:y,U="bearing"in n?this._normalizeBearing(n.bearing,x):x,z="pitch"in n?+n.pitch:D,Q="padding"in n?n.padding:p.padding,Se=l.Point.convert(n.offset);let je,Ye,$e;if("globe"===p.projection.name){const $t=l.MercatorCoordinate.fromLngLat(p.center),cn=Se.rotate(-p.angle);$t.x+=cn.x/p.worldSize,$t.y+=cn.y/p.worldSize;const Wn=$t.toLngLat(),nn=l.LngLat.convert(n.center||Wn);this._normalizeCenter(nn),je=p.centerPoint.add(cn),Ye=new l.Point($t.x,$t.y).mult(p.worldSize),$e=new l.Point(l.mercatorXfromLng(nn.lng),l.mercatorYfromLat(nn.lat)).mult(p.worldSize).sub(Ye)}else{je=p.centerPoint.add(Se);const $t=p.pointLocation(je),cn=l.LngLat.convert(n.center||$t);this._normalizeCenter(cn),Ye=p.project($t),$e=p.project(cn).sub(Ye)}const et=p.zoomScale(R-y);let ne,He;n.around&&(ne=l.LngLat.convert(n.around),He=p.locationPoint(ne));const ht=this._zooming||R!==y,gt=this._rotating||x!==U,Ot=this._pitching||z!==D,kt=!p.isPaddingEqual(Q),Lt=$t=>cn=>{if(ht&&($t.zoom=l.number(y,R,cn)),gt&&($t.bearing=l.number(x,U,cn)),Ot&&($t.pitch=l.number(D,z,cn)),kt&&($t.interpolatePadding(I,Q,cn),je=$t.centerPoint.add(Se)),ne)$t.setLocationAtPoint(ne,He);else{const Wn=$t.zoomScale($t.zoom-y),nn=R>y?Math.min(2,et):Math.max(.5,et),Mn=Math.pow(nn,1-cn),pn=$t.unproject(Ye.add($e.mult(cn*Mn)).mult(Wn));$t.setLocationAtPoint($t.renderWorldCopies?pn.wrap():pn,je)}return n.preloadOnly||this._fireMoveEvents(a),$t};if(n.preloadOnly){const $t=this._emulate(Lt,n.duration,p);return this._preloadTiles($t),this}const qt={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=ht,this._rotating=gt,this._pitching=Ot,this._padding=kt,this._easeId=n.easeId,this._prepareEase(a,n.noMoveStart,qt),this._ease(Lt(p),$t=>{p.recenterOnTerrain(),this._afterEase(a,$t)},n),this}_prepareEase(n,a,p={}){this._moving=!0,this.transform.cameraElevationReference="sea",a||p.moving||this.fire(new l.Event("movestart",n)),this._zooming&&!p.zooming&&this.fire(new l.Event("zoomstart",n)),this._rotating&&!p.rotating&&this.fire(new l.Event("rotatestart",n)),this._pitching&&!p.pitching&&this.fire(new l.Event("pitchstart",n))}_fireMoveEvents(n){this.fire(new l.Event("move",n)),this._zooming&&this.fire(new l.Event("zoom",n)),this._rotating&&this.fire(new l.Event("rotate",n)),this._pitching&&this.fire(new l.Event("pitch",n))}_afterEase(n,a){if(this._easeId&&a&&this._easeId===a)return;this._easeId=void 0,this.transform.cameraElevationReference="ground";const p=this._zooming,y=this._rotating,x=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,p&&this.fire(new l.Event("zoomend",n)),y&&this.fire(new l.Event("rotateend",n)),x&&this.fire(new l.Event("pitchend",n)),this.fire(new l.Event("moveend",n))}flyTo(n,a){if(this._prefersReducedMotion(n)){const kn=l.pick(n,["center","zoom","bearing","pitch","around"]);return this.jumpTo(kn,a)}this.stop(),n=l.extend({offset:[0,0],speed:1.2,curve:1.42,easing:l.ease},n);const p=this.transform,y=this.getZoom(),x=this.getBearing(),D=this.getPitch(),I=this.getPadding(),R="zoom"in n?l.clamp(+n.zoom,p.minZoom,p.maxZoom):y,U="bearing"in n?this._normalizeBearing(n.bearing,x):x,z="pitch"in n?+n.pitch:D,Q="padding"in n?n.padding:p.padding,Se=p.zoomScale(R-y),je=l.Point.convert(n.offset);let Ye=p.centerPoint.add(je);const $e=p.pointLocation(Ye),et=l.LngLat.convert(n.center||$e);this._normalizeCenter(et);const ne=p.project($e),He=p.project(et).sub(ne);let ht=n.curve;const gt=Math.max(p.width,p.height),Ot=gt/Se,kt=He.mag();if("minZoom"in n){const kn=l.clamp(Math.min(n.minZoom,y,R),p.minZoom,p.maxZoom),ti=gt/p.zoomScale(kn-y);ht=Math.sqrt(ti/kt*2)}const Lt=ht*ht;function qt(kn){const ti=(Ot*Ot-gt*gt+(kn?-1:1)*Lt*Lt*kt*kt)/(2*(kn?Ot:gt)*Lt*kt);return Math.log(Math.sqrt(ti*ti+1)-ti)}function $t(kn){return(Math.exp(kn)-Math.exp(-kn))/2}function cn(kn){return(Math.exp(kn)+Math.exp(-kn))/2}const Wn=qt(0);let nn=function(kn){return cn(Wn)/cn(Wn+ht*kn)},Mn=function(kn){return gt*((cn(Wn)*($t(ti=Wn+ht*kn)/cn(ti))-$t(Wn))/Lt)/kt;var ti},pn=(qt(1)-Wn)/ht;if(Math.abs(kt)<1e-6||!isFinite(pn)){if(Math.abs(gt-Ot)<1e-6)return this.easeTo(n,a);const kn=Otn.maxDuration&&(n.duration=0);const qn=x!==U,sn=z!==D,An=!p.isPaddingEqual(Q),Zn=kn=>ti=>{const Ii=ti*pn,$i=1/nn(Ii);kn.zoom=1===ti?R:y+kn.scaleZoom($i),qn&&(kn.bearing=l.number(x,U,ti)),sn&&(kn.pitch=l.number(D,z,ti)),An&&(kn.interpolatePadding(I,Q,ti),Ye=kn.centerPoint.add(je));const mi=1===ti?et:kn.unproject(ne.add(He.mult(Mn(Ii))).mult($i));return kn.setLocationAtPoint(kn.renderWorldCopies?mi.wrap():mi,Ye),kn._updateCameraOnTerrain(),n.preloadOnly||this._fireMoveEvents(a),kn};if(n.preloadOnly){const kn=this._emulate(Zn,n.duration,p);return this._preloadTiles(kn),this}return this._zooming=!0,this._rotating=qn,this._pitching=sn,this._padding=An,this._prepareEase(a,!1),this._ease(Zn(p),()=>this._afterEase(a),n),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(n,a){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),this._easeFrameId=void 0,this._onEaseFrame=void 0),this._onEaseEnd){const p=this._onEaseEnd;this._onEaseEnd=void 0,p.call(this,a)}if(!n){const p=this.handlers;p&&p.stop(!1)}return this}_ease(n,a,p){!1===p.animate||0===p.duration?(n(1),a()):(this._easeStart=l.exported.now(),this._easeOptions=p,this._onEaseFrame=n,this._onEaseEnd=a,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_renderFrameCallback(){const n=Math.min((l.exported.now()-this._easeStart)/this._easeOptions.duration,1),a=this._onEaseFrame;a&&a(this._easeOptions.easing(n)),n<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()}_normalizeBearing(n,a){n=l.wrap(n,-180,180);const p=Math.abs(n-a);return Math.abs(n-360-a)180?-360:p<-180?360:0}_prefersReducedMotion(n){return this._respectPrefersReducedMotion&&l.exported.prefersReducedMotion&&!(n&&n.essential)}_emulate(n,a,p){const y=Math.ceil(15*a/1e3),x=[],D=n(p.clone());for(let I=0;I<=y;I++){const R=D(I/y);x.push(R.clone())}return x}}class hi{constructor(n={}){this.options=n,l.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)}getDefaultPosition(){return"bottom-right"}onAdd(n){const a=this.options&&this.options.compact;return this._map=n,this._container=fe("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=fe("button","mapboxgl-ctrl-attrib-button",this._container),fe("span","mapboxgl-ctrl-icon",this._compactButton).setAttribute("aria-hidden","true"),this._compactButton.type="button",this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=fe("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),a&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===a&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container}onRemove(){this._container.remove(),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0}_setElementTitle(n,a){const p=this._map._getUIString(`AttributionControl.${a}`);n.setAttribute("aria-label",p),n.removeAttribute("title"),n.firstElementChild&&n.firstElementChild.setAttribute("title",p)}_toggleAttribution(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-expanded","true"))}_updateEditLink(){let n=this._editLink;n||(n=this._editLink=this._container.querySelector(".mapbox-improve-map"));const a=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||l.config.ACCESS_TOKEN}];if(n){const p=a.reduce((y,x,D)=>(x.value&&(y+=`${x.key}=${x.value}${Dy.length-x.length),n=n.filter((y,x)=>{for(let D=x+1;D=0)return!1;return!0}),this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?n=[...this.options.customAttribution,...n]:n.unshift(this.options.customAttribution));const p=n.join(" | ");p!==this._attribHTML&&(this._attribHTML=p,n.length?(this._innerContainer.innerHTML=p,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}_updateCompact(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")}}class tc{constructor(){l.bindAll(["_updateLogo","_updateCompact"],this)}onAdd(n){this._map=n,this._container=fe("div","mapboxgl-ctrl");const a=fe("a","mapboxgl-ctrl-logo");return a.target="_blank",a.rel="noopener nofollow",a.href="https://www.mapbox.com/",a.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),a.setAttribute("rel","noopener nofollow"),this._container.appendChild(a),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){this._container.remove(),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)}getDefaultPosition(){return"bottom-left"}_updateLogo(n){n&&"metadata"!==n.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")}_logoRequired(){if(!this._map.style)return!0;const n=this._map.style._sourceCaches;if(0===Object.entries(n).length)return!0;for(const a in n){const p=n[a].getSource();if(p.hasOwnProperty("mapbox_logo")&&!p.mapbox_logo)return!1}return!0}_updateCompact(){const n=this._container.children;if(n.length){const a=n[0];this._map.getCanvasContainer().offsetWidth<250?a.classList.add("mapboxgl-compact"):a.classList.remove("mapboxgl-compact")}}}class Nr{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(n){const a=++this._id;return this._queue.push({callback:n,id:a,cancelled:!1}),a}remove(n){const a=this._currentlyRunning,p=a?this._queue.concat(a):this._queue;for(const y of p)if(y.id===n)return void(y.cancelled=!0)}run(n=0){const a=this._currentlyRunning=this._queue;this._queue=[];for(const p of a)if(!p.cancelled&&(p.callback(n),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}function dl(u,n,a){if(u=new l.LngLat(u.lng,u.lat),n){const p=new l.LngLat(u.lng-360,u.lat),y=new l.LngLat(u.lng+360,u.lat),x=360*Math.ceil(Math.abs(u.lng-a.center.lng)/360),D=a.locationPoint(u).distSqr(n),I=n.x<0||n.y<0||n.x>a.width||n.y>a.height;a.locationPoint(p).distSqr(n)180;){const p=a.locationPoint(u);if(p.x>=0&&p.y>=0&&p.x<=a.width&&p.y<=a.height)break;u.lng>a.center.lng?u.lng-=360:u.lng+=360}return u}const ra={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};class oi extends l.Evented{constructor(n,a){if(super(),(n instanceof l.window.HTMLElement||a)&&(n=l.extend({element:n},a)),l.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress","_clearFadeTimer"],this),this._anchor=n&&n.anchor||"center",this._color=n&&n.color||"#3FB1CE",this._scale=n&&n.scale||1,this._draggable=n&&n.draggable||!1,this._clickTolerance=n&&n.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=n&&n.rotation||0,this._rotationAlignment=n&&n.rotationAlignment||"auto",this._pitchAlignment=n&&n.pitchAlignment&&n.pitchAlignment||"auto",this._updateMoving=()=>this._update(!0),this._occludedOpacity=n&&n.occludedOpacity||.2,n&&n.element)this._element=n.element,this._offset=l.Point.convert(n&&n.offset||[0,0]);else{this._defaultMarker=!0,this._element=fe("div");const y=41,x=27,D=Pe("svg",{display:"block",height:y*this._scale+"px",width:x*this._scale+"px",viewBox:`0 0 ${x} ${y}`},this._element),I=Pe("radialGradient",{id:"shadowGradient"},Pe("defs",{},D));Pe("stop",{offset:"10%","stop-opacity":.4},I),Pe("stop",{offset:"100%","stop-opacity":.05},I),Pe("ellipse",{cx:13.5,cy:34.8,rx:10.5,ry:5.25,fill:"url(#shadowGradient)"},D),Pe("path",{fill:this._color,d:"M27,13.5C27,19.07 20.25,27 14.75,34.5C14.02,35.5 12.98,35.5 12.25,34.5C6.75,27 0,19.22 0,13.5C0,6.04 6.04,0 13.5,0C20.96,0 27,6.04 27,13.5Z"},D),Pe("path",{opacity:.25,d:"M13.5,0C6.04,0 0,6.04 0,13.5C0,19.22 6.75,27 12.25,34.5C13,35.52 14.02,35.5 14.75,34.5C20.25,27 27,19.07 27,13.5C27,6.04 20.96,0 13.5,0ZM13.5,1C20.42,1 26,6.58 26,13.5C26,15.9 24.5,19.18 22.22,22.74C19.95,26.3 16.71,30.14 13.94,33.91C13.74,34.18 13.61,34.32 13.5,34.44C13.39,34.32 13.26,34.18 13.06,33.91C10.28,30.13 7.41,26.31 5.02,22.77C2.62,19.23 1,15.95 1,13.5C1,6.58 6.58,1 13.5,1Z"},D),Pe("circle",{fill:"white",cx:13.5,cy:13.5,r:5.5},D),this._offset=l.Point.convert(n&&n.offset||[0,-14])}this._element.hasAttribute("aria-label")||this._element.setAttribute("aria-label","Map marker"),this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",y=>{y.preventDefault()}),this._element.addEventListener("mousedown",y=>{y.preventDefault()});const p=this._element.classList;for(const y in ra)p.remove(`mapboxgl-marker-anchor-${y}`);p.add(`mapboxgl-marker-anchor-${this._anchor}`),this._popup=null}addTo(n){return n===this._map||(this.remove(),this._map=n,n.getCanvasContainer().appendChild(this._element),n.on("move",this._updateMoving),n.on("moveend",this._update),n.on("remove",this._clearFadeTimer),n._addMarker(this),this.setDraggable(this._draggable),this._update(),n.on("click",this._onMapClick)),this}remove(){const n=this._map;return n&&(n.off("click",this._onMapClick),n.off("move",this._updateMoving),n.off("moveend",this._update),n.off("mousedown",this._addDragHandler),n.off("touchstart",this._addDragHandler),n.off("mouseup",this._onUp),n.off("touchend",this._onUp),n.off("mousemove",this._onMove),n.off("touchmove",this._onMove),n.off("remove",this._clearFadeTimer),n._removeMarker(this),this._map=void 0),this._clearFadeTimer(),this._element.remove(),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(n){return this._lngLat=l.LngLat.convert(n),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(!0),this}getElement(){return this._element}setPopup(n){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeAttribute("role"),this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),n){if(!("offset"in n.options)){const y=Math.sqrt(Math.pow(13.5,2)/2);n.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[y,-1*(24.6+y)],"bottom-right":[-y,-1*(24.6+y)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=n,n._marker=this,this._lngLat&&this._popup.setLngLat(this._lngLat),this._element.setAttribute("role","button"),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress),this._element.setAttribute("aria-expanded","false")}return this}_onKeyPress(n){const a=n.code,p=n.charCode||n.keyCode;"Space"!==a&&"Enter"!==a&&32!==p&&13!==p||this.togglePopup()}_onMapClick(n){const a=n.originalEvent.target,p=this._element;this._popup&&(a===p||p.contains(a))&&this.togglePopup()}getPopup(){return this._popup}togglePopup(){const n=this._popup;return n?(n.isOpen()?(n.remove(),this._element.setAttribute("aria-expanded","false")):this._map&&(n.addTo(this._map),this._element.setAttribute("aria-expanded","true")),this):this}_behindTerrain(){const n=this._map,a=this._pos;if(!n||!a)return!1;const p=n.unproject(a),y=n.getFreeCameraOptions();if(!y.position)return!1;const x=y.position.toLngLat();return x.distanceTo(p)<.9*x.distanceTo(this._lngLat)}_evaluateOpacity(){const n=this._map;if(!n)return;const a=this._pos;if(!a||a.x<0||a.x>n.transform.width||a.y<0||a.y>n.transform.height)return void this._clearFadeTimer();const p=n.unproject(a);let y;n._showingGlobe()&&l.isLngLatBehindGlobe(n.transform,this._lngLat)?y=0:(y=1-n._queryFogOpacity(p),n.transform._terrainEnabled()&&n.getTerrain()&&this._behindTerrain()&&(y*=this._occludedOpacity)),this._element.style.opacity=`${y}`,this._element.style.pointerEvents=y>0?"auto":"none",this._popup&&this._popup._setOpacity(y),this._fadeTimer=null}_clearFadeTimer(){this._fadeTimer&&(clearTimeout(this._fadeTimer),this._fadeTimer=null)}_updateDOM(){const n=this._pos;if(!n||!this._map)return;const a=this._offset.mult(this._scale);this._element.style.transform=`\n translate(${n.x}px,${n.y}px)\n ${ra[this._anchor]}\n ${this._calculateXYTransform()} ${this._calculateZTransform()}\n translate(${a.x}px,${a.y}px)\n `}_calculateXYTransform(){const n=this._pos,a=this._map,p=this.getPitchAlignment();if(!a||!n||"map"!==p)return"";if(!a._showingGlobe()){const R=a.getPitch();return R?`rotateX(${R}deg)`:""}const y=l.radToDeg(l.globeTiltAtLngLat(a.transform,this._lngLat)),x=n.sub(l.globeCenterToScreenPoint(a.transform)),D=Math.abs(x.x)+Math.abs(x.y);if(0===D)return"";const I=y/D;return`rotateX(${-x.y*I}deg) rotateY(${x.x*I}deg)`}_calculateZTransform(){const n=this._pos,a=this._map;if(!a||!n)return"";let p=0;const y=this.getRotationAlignment();if("map"===y)if(a._showingGlobe()){const x=a.project(new l.LngLat(this._lngLat.lng,this._lngLat.lat+.001)),D=a.project(new l.LngLat(this._lngLat.lng,this._lngLat.lat-.001)).sub(x);p=l.radToDeg(Math.atan2(D.y,D.x))-90}else p=-a.getBearing();else if("horizon"===y){const x=l.smoothstep(4,6,a.getZoom()),D=l.globeCenterToScreenPoint(a.transform);D.y+=x*a.transform.height;const I=n.sub(D),R=l.radToDeg(Math.atan2(I.y,I.x));p=(R>90?R-270:R+90)*(1-x)}return p+=this._rotation,p?`rotateZ(${p}deg)`:""}_update(n){l.window.cancelAnimationFrame(this._updateFrameId);const a=this._map;a&&(a.transform.renderWorldCopies&&(this._lngLat=dl(this._lngLat,this._pos,a.transform)),this._pos=a.project(this._lngLat),!0===n?this._updateFrameId=l.window.requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),a._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(a._showingGlobe()||a.getTerrain()||a.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(n){return this._offset=l.Point.convert(n),this._update(),this}_onMove(n){const a=this._map;if(!a)return;const p=this._pointerdownPos,y=this._positionDelta;if(p&&y){if(!this._isDragging){const x=this._clickTolerance||a._clickTolerance;if(n.point.dist(p)=this._endTime)return this._end;const a=l.easeCubicInOut((n-this._startTime)/(this._endTime-this._startTime));return this._start*(1-a)+this._end*a}isEasing(n){return n>=this._startTime&&n<=this._endTime}jumpTo(n){this._startTime=-1/0,this._endTime=-1/0,this._start=n,this._end=n}easeTo(n,a,p){this._start=this.getValue(a),this._end=n,this._startTime=a,this._endTime=a+p}}const Kc={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use \u2318 + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"},ns={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,optimizeForTerrain:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0},qa={showCompass:!0,showZoom:!0,visualizePitch:!1};class Dd{constructor(n,a,p=!1){this._clickTolerance=10,this.element=a,this.mouseRotate=new Lo({clickTolerance:n.dragRotate._mouseRotate._clickTolerance}),this.map=n,p&&(this.mousePitch=new Gc({clickTolerance:n.dragRotate._mousePitch._clickTolerance})),l.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),a.addEventListener("mousedown",this.mousedown),a.addEventListener("touchstart",this.touchstart,{passive:!1}),a.addEventListener("touchmove",this.touchmove),a.addEventListener("touchend",this.touchend),a.addEventListener("touchcancel",this.reset)}down(n,a){this.mouseRotate.mousedown(n,a),this.mousePitch&&this.mousePitch.mousedown(n,a),Me()}move(n,a){const p=this.map,y=this.mouseRotate.mousemoveWindow(n,a),x=y&&y.bearingDelta;if(x&&p.setBearing(p.getBearing()+x),this.mousePitch){const D=this.mousePitch.mousemoveWindow(n,a),I=D&&D.pitchDelta;I&&p.setPitch(p.getPitch()+I)}}off(){const n=this.element;n.removeEventListener("mousedown",this.mousedown),n.removeEventListener("touchstart",this.touchstart,{passive:!1}),n.removeEventListener("touchmove",this.touchmove),n.removeEventListener("touchend",this.touchend),n.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){de(),l.window.removeEventListener("mousemove",this.mousemove),l.window.removeEventListener("mouseup",this.mouseup)}mousedown(n){this.down(l.extend({},n,{ctrlKey:!0,preventDefault:()=>n.preventDefault()}),oe(this.element,n)),l.window.addEventListener("mousemove",this.mousemove),l.window.addEventListener("mouseup",this.mouseup)}mousemove(n){this.move(n,oe(this.element,n))}mouseup(n){this.mouseRotate.mouseupWindow(n),this.mousePitch&&this.mousePitch.mouseupWindow(n),this.offTemp()}touchstart(n){1!==n.targetTouches.length?this.reset():(this._startPos=this._lastPos=xe(this.element,n.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>n.preventDefault()},this._startPos))}touchmove(n){1!==n.targetTouches.length?this.reset():(this._lastPos=xe(this.element,n.targetTouches)[0],this.move({preventDefault:()=>n.preventDefault()},this._lastPos))}touchend(n){0===n.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)u.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=u.minPitch&&null!=u.maxPitch&&u.minPitch>u.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=u.minPitch&&u.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=u.maxPitch&&u.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(u.antialias&&l.isSafariWithAntialiasingBug(l.window)&&(u.antialias=!1,l.warnOnce("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new ao(u.minZoom,u.maxZoom,u.minPitch,u.maxPitch,u.renderWorldCopies),u),this._interactive=u.interactive,this._minTileCacheSize=u.minTileCacheSize,this._maxTileCacheSize=u.maxTileCacheSize,this._failIfMajorPerformanceCaveat=u.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=u.preserveDrawingBuffer,this._antialias=u.antialias,this._useWebGL2=u.useWebGL2,this._trackResize=u.trackResize,this._bearingSnap=u.bearingSnap,this._refreshExpiredTiles=u.refreshExpiredTiles,this._fadeDuration=u.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=u.crossSourceCollisions,this._collectResourceTiming=u.collectResourceTiming,this._optimizeForTerrain=u.optimizeForTerrain,this._language=this._parseLanguage(u.language),this._worldview=u.worldview,this._renderTaskQueue=new Nr,this._domRenderTaskQueue=new Nr,this._controls=[],this._markers=[],this._popups=[],this._mapId=l.uniqueId(),this._locale=l.extend({},Kc,u.locale),this._clickTolerance=u.clickTolerance,this._cooperativeGestures=u.cooperativeGestures,this._performanceMetricsCollection=u.performanceMetricsCollection,this._containerWidth=0,this._containerHeight=0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new Jc(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._requestManager=new l.RequestManager(u.transformRequest,u.accessToken,u.testMode),this._silenceAuthErrors=!!u.testMode,"string"==typeof u.container){if(this._container=l.window.document.getElementById(u.container),!this._container)throw new Error(`Container '${u.container}' not found.`)}else{if(!(u.container instanceof l.window.HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=u.container}if(this._container.childNodes.length>0&&l.warnOnce("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),u.maxBounds&&this.setMaxBounds(u.maxBounds),l.bindAll(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),void 0!==l.window&&(l.window.addEventListener("online",this._onWindowOnline,!1),l.window.addEventListener("resize",this._onWindowResize,!1),l.window.addEventListener("orientationchange",this._onWindowResize,!1),l.window.addEventListener("webkitfullscreenchange",this._onWindowResize,!1),l.window.addEventListener("visibilitychange",this._onVisibilityChange,!1)),this.handlers=new Ma(this,u),this._localFontFamily=u.localFontFamily,this._localIdeographFontFamily=u.localIdeographFontFamily,u.style&&this.setStyle(u.style,{localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),u.projection&&this.setProjection(u.projection),this._hash=u.hash&&new Ts("string"==typeof u.hash&&u.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:u.center,zoom:u.zoom,bearing:u.bearing,pitch:u.pitch}),u.bounds&&(this.resize(),this.fitBounds(u.bounds,l.extend({},u.fitBoundsOptions,{duration:0})))),this.resize(),u.attributionControl&&this.addControl(new hi({customAttribution:u.customAttribution})),this._logoControl=new tc,this.addControl(this._logoControl,u.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",n=>{this._update("style"===n.dataType),this.fire(new l.Event(`${n.dataType}data`,n))}),this.on("dataloading",n=>{this.fire(new l.Event(`${n.dataType}dataloading`,n))})}_getMapId(){return this._mapId}addControl(u,n){if(void 0===n&&(n=u.getDefaultPosition?u.getDefaultPosition():"top-right"),!u||!u.onAdd)return this.fire(new l.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const a=u.onAdd(this);this._controls.push(u);const p=this._controlPositions[n];return-1!==n.indexOf("bottom")?p.insertBefore(a,p.firstChild):p.appendChild(a),this}removeControl(u){if(!u||!u.onRemove)return this.fire(new l.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const n=this._controls.indexOf(u);return n>-1&&this._controls.splice(n,1),u.onRemove(this),this}hasControl(u){return this._controls.indexOf(u)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(u){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const n=!this._moving;return n&&this.fire(new l.Event("movestart",u)).fire(new l.Event("move",u)),this.fire(new l.Event("resize",u)),n&&this.fire(new l.Event("moveend",u)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(u){return this.transform.setMaxBounds(l.LngLatBounds.convert(u)),this._update()}setMinZoom(u){if((u=u??-2)>=-2&&u<=this.transform.maxZoom)return this.transform.minZoom=u,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=u,this._update(),this.getZoom()>u?this.setZoom(u):this.fire(new l.Event("zoomstart")).fire(new l.Event("zoom")).fire(new l.Event("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(u){if((u=u??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(u>=0&&u<=this.transform.maxPitch)return this.transform.minPitch=u,this._update(),this.getPitch()85)throw new Error("maxPitch must be less than or equal to 85");if(u>=this.transform.minPitch)return this.transform.maxPitch=u,this._update(),this.getPitch()>u?this.setPitch(u):this.fire(new l.Event("pitchstart")).fire(new l.Event("pitch")).fire(new l.Event("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(u){return this.transform.renderWorldCopies=u,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(u){return"auto"===u?l.window.navigator.language:Array.isArray(u)?0===u.length?void 0:u.map(n=>"auto"===n?l.window.navigator.language:n):u}setLanguage(u){const n=this._parseLanguage(u);if(!this.style||n===this._language)return this;this._language=n,this.style._reloadSources();for(const a of this._controls)a._setLanguage&&a._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(u){return this.style&&u!==this._worldview?(this._worldview=u,this.style._reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return"globe"===this.transform.projection.name}setProjection(u){return this._lazyInitEmptyStyle(),u?"string"==typeof u&&(u={name:u}):u=null,this._useExplicitProjection=!!u,this._prioritizeAndUpdateProjection(u,this.style.stylesheet?this.style.stylesheet.projection:null)}_updateProjectionTransition(){if("globe"!==this.getProjection().name)return;const u=this.transform,n=u.projection.name;let a;"globe"===n&&u.zoom>=l.GLOBE_ZOOM_THRESHOLD_MAX?(u.setMercatorFromTransition(),a=!0):"mercator"===n&&u.zoom=l.GLOBE_ZOOM_THRESHOLD_MAX?this.transform.setMercatorFromTransition():this.transform.setProjection(u),this.style.applyProjectionUpdate(),n){this.painter.clearBackgroundTiles();for(const a in this.style._sourceCaches)this.style._sourceCaches[a].clearTiles();this._update(!0),this._forceMarkerAndPopupUpdate(!0)}return this}project(u){return this.transform.locationPoint3D(l.LngLat.convert(u))}unproject(u){return this.transform.pointLocation3D(l.Point.convert(u))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(u,n,a){if("mouseenter"===u||"mouseover"===u){let p=!1;const y=D=>{const I=n.filter(U=>this.getLayer(U)),R=I.length?this.queryRenderedFeatures(D.point,{layers:I}):[];R.length?p||(p=!0,a.call(this,new Zr(u,this,D.originalEvent,{features:R}))):p=!1},x=()=>{p=!1};return{layers:new Set(n),listener:a,delegates:{mousemove:y,mouseout:x}}}if("mouseleave"===u||"mouseout"===u){let p=!1;const y=D=>{const I=n.filter(R=>this.getLayer(R));(I.length?this.queryRenderedFeatures(D.point,{layers:I}):[]).length?p=!0:p&&(p=!1,a.call(this,new Zr(u,this,D.originalEvent)))},x=D=>{p&&(p=!1,a.call(this,new Zr(u,this,D.originalEvent)))};return{layers:new Set(n),listener:a,delegates:{mousemove:y,mouseout:x}}}{const p=y=>{const x=n.filter(I=>this.getLayer(I)),D=x.length?this.queryRenderedFeatures(y.point,{layers:x}):[];D.length&&(y.features=D,a.call(this,y),delete y.features)};return{layers:new Set(n),listener:a,delegates:{[u]:p}}}}on(u,n,a){if(void 0===a)return super.on(u,n);Array.isArray(n)||(n=[n]);const p=this._createDelegatedListener(u,n,a);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[u]=this._delegatedListeners[u]||[],this._delegatedListeners[u].push(p);for(const y in p.delegates)this.on(y,p.delegates[y]);return this}once(u,n,a){if(void 0===a)return super.once(u,n);Array.isArray(n)||(n=[n]);const p=this._createDelegatedListener(u,n,a);for(const y in p.delegates)this.once(y,p.delegates[y]);return this}off(u,n,a){if(void 0===a)return super.off(u,n);n=new Set(Array.isArray(n)?n:[n]);const p=(x,D)=>{if(x.size!==D.size)return!1;for(const I of x)if(!D.has(I))return!1;return!0},y=this._delegatedListeners?this._delegatedListeners[u]:void 0;return y&&(x=>{for(let D=0;D{y?this.fire(new l.ErrorEvent(y)):x&&this._updateDiff(x,n)})}else"object"==typeof u&&this._updateDiff(u,n)}_updateDiff(u,n){try{this.style.setState(u)&&this._update(!0)}catch(a){l.warnOnce(`Unable to perform style diff: ${a.message||a.error||a}. Rebuilding the style from scratch.`),this._updateStyle(u,n)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(l.warnOnce("There is no style added to the map."),!1)}addSource(u,n){return this._lazyInitEmptyStyle(),this.style.addSource(u,n),this._update(!0)}isSourceLoaded(u){return!!this.style&&this.style._isSourceCacheLoaded(u)}areTilesLoaded(){const u=this.style&&this.style._sourceCaches;for(const n in u){const a=u[n]._tiles;for(const p in a){const y=a[p];if("loaded"!==y.state&&"errored"!==y.state)return!1}}return!0}addSourceType(u,n,a){this._lazyInitEmptyStyle(),this.style.addSourceType(u,n,a)}removeSource(u){return this.style.removeSource(u),this._updateTerrain(),this._update(!0)}getSource(u){return this.style.getSource(u)}addImage(u,n,{pixelRatio:a=1,sdf:p=!1,stretchX:y,stretchY:x,content:D}={}){if(this._lazyInitEmptyStyle(),n instanceof l.window.HTMLImageElement||l.window.ImageBitmap&&n instanceof l.window.ImageBitmap){const{width:I,height:R,data:U}=l.exported.getImageData(n);this.style.addImage(u,{data:new l.RGBAImage({width:I,height:R},U),pixelRatio:a,stretchX:y,stretchY:x,content:D,sdf:p,version:0})}else if(void 0===n.width||void 0===n.height)this.fire(new l.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:I,height:R}=n,U=n;this.style.addImage(u,{data:new l.RGBAImage({width:I,height:R},new Uint8Array(U.data)),pixelRatio:a,stretchX:y,stretchY:x,content:D,sdf:p,version:0,userImage:U}),U.onAdd&&U.onAdd(this,u)}}updateImage(u,n){const a=this.style.getImage(u);if(!a)return void this.fire(new l.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const p=n instanceof l.window.HTMLImageElement||l.window.ImageBitmap&&n instanceof l.window.ImageBitmap?l.exported.getImageData(n):n,{width:y,height:x}=p;void 0!==y&&void 0!==x?y===a.data.width&&x===a.data.height?(a.data.replace(p.data,!(n instanceof l.window.HTMLImageElement||l.window.ImageBitmap&&n instanceof l.window.ImageBitmap)),this.style.updateImage(u,a)):this.fire(new l.ErrorEvent(new Error(`The width and height of the updated image (${y}, ${x})\n must be that same as the previous version of the image\n (${a.data.width}, ${a.data.height})`))):this.fire(new l.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")))}hasImage(u){return u?!!this.style.getImage(u):(this.fire(new l.ErrorEvent(new Error("Missing required image id"))),!1)}removeImage(u){this.style.removeImage(u)}loadImage(u,n){l.getImage(this._requestManager.transformRequest(u,l.ResourceType.Image),(a,p)=>{n(a,p instanceof l.window.HTMLImageElement?l.exported.getImageData(p):p)})}listImages(){return this.style.listImages()}addLayer(u,n){return this._lazyInitEmptyStyle(),this.style.addLayer(u,n),this._update(!0)}moveLayer(u,n){return this.style.moveLayer(u,n),this._update(!0)}removeLayer(u){return this.style.removeLayer(u),this._update(!0)}getLayer(u){return this.style.getLayer(u)}setLayerZoomRange(u,n,a){return this.style.setLayerZoomRange(u,n,a),this._update(!0)}setFilter(u,n,a={}){return this.style.setFilter(u,n,a),this._update(!0)}getFilter(u){return this.style.getFilter(u)}setPaintProperty(u,n,a,p={}){return this.style.setPaintProperty(u,n,a,p),this._update(!0)}getPaintProperty(u,n){return this.style.getPaintProperty(u,n)}setLayoutProperty(u,n,a,p={}){return this.style.setLayoutProperty(u,n,a,p),this._update(!0)}getLayoutProperty(u,n){return this.style.getLayoutProperty(u,n)}setLight(u,n={}){return this._lazyInitEmptyStyle(),this.style.setLight(u,n),this._update(!0)}getLight(){return this.style.getLight()}setTerrain(u){return this._lazyInitEmptyStyle(),!u&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(u),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(u){return this._lazyInitEmptyStyle(),this.style.setFog(u),this._update(!0)}getFog(){return this.style?this.style.getFog():null}_queryFogOpacity(u){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(l.LngLat.convert(u),this.transform):0}setFeatureState(u,n){return this.style.setFeatureState(u,n),this._update()}removeFeatureState(u,n){return this.style.removeFeatureState(u,n),this._update()}getFeatureState(u){return this.style.getFeatureState(u)}_updateContainerDimensions(){if(!this._container)return;const u=this._container.getBoundingClientRect().width||400,n=this._container.getBoundingClientRect().height||300;let a,p,y,x=this._container;for(;x&&(!p||!y);){const D=l.window.getComputedStyle(x).transform;D&&"none"!==D&&(a=D.match(/matrix.*\((.+)\)/)[1].split(", "),a[0]&&"0"!==a[0]&&"1"!==a[0]&&(p=a[0]),a[3]&&"0"!==a[3]&&"1"!==a[3]&&(y=a[3])),x=x.parentElement}this._containerWidth=p?Math.abs(u/p):u,this._containerHeight=y?Math.abs(n/y):n}_detectMissingCSS(){"rgb(250, 128, 114)"!==l.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&l.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const u=this._container;u.classList.add("mapboxgl-map"),(this._missingCSSCanary=fe("div","mapboxgl-canary",u)).style.visibility="hidden",this._detectMissingCSS();const n=this._canvasContainer=fe("div","mapboxgl-canvas-container",u);this._interactive&&n.classList.add("mapboxgl-interactive"),this._canvas=fe("canvas","mapboxgl-canvas",n),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const a=this._controlContainer=fe("div","mapboxgl-control-container",u),p=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(y=>{p[y]=fe("div",`mapboxgl-ctrl-${y}`,a)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(u,n){const a=l.exported.devicePixelRatio||1;this._canvas.width=a*Math.ceil(u),this._canvas.height=a*Math.ceil(n),this._canvas.style.width=`${u}px`,this._canvas.style.height=`${n}px`}_addMarker(u){this._markers.push(u)}_removeMarker(u){const n=this._markers.indexOf(u);-1!==n&&this._markers.splice(n,1)}_addPopup(u){this._popups.push(u)}_removePopup(u){const n=this._popups.indexOf(u);-1!==n&&this._popups.splice(n,1)}_setupPainter(){const u=l.extend({},Y.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._useWebGL2&&this._canvas.getContext("webgl2",u),a=n||this._canvas.getContext("webgl",u)||this._canvas.getContext("experimental-webgl",u);a?(this._useWebGL2&&!n&&l.warnOnce("Failed to create WebGL 2 context. Using WebGL 1."),l.storeAuthState(a,!0),this.painter=new le(a,this.transform,!!n),this.on("data",p=>{"source"===p.dataType&&this.painter.setTileLoadedFlag(!0)}),l.exported$1.testSupport(a)):this.fire(new l.ErrorEvent(new Error("Failed to initialize WebGL")))}_contextLost(u){u.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new l.Event("webglcontextlost",{originalEvent:u}))}_contextRestored(u){this._setupPainter(),this.resize(),this._update(),this.fire(new l.Event("webglcontextrestored",{originalEvent:u}))}_onMapScroll(u){if(u.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(u){return this.style?(this._styleDirty=this._styleDirty||u,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(u){return this._update(),this._renderTaskQueue.add(u)}_cancelRenderFrame(u){this._renderTaskQueue.remove(u)}_requestDomTask(u){!this.loaded()||this.loaded()&&!this.isMoving()?u():this._domRenderTaskQueue.add(u)}_render(u){let n;const a=this.painter.context.extTimerQuery,p=l.exported.now();if(this.listens("gpu-timing-frame")&&(n=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,n)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],l.window.performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],l.window.performance.now())),this._renderTaskQueue.run(u),this._domRenderTaskQueue.run(u),this._removed)return;this._updateProjectionTransition();const y=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const I=this.transform.zoom,R=this.transform.pitch,U=l.exported.now(),z=new l.EvaluationParameters(I,{now:U,fadeDuration:y,pitch:R,transition:this.style.getTransition()});this.style.update(z)}this.style&&this.style.fog&&this.style.fog.hasTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let x=!1;if(this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),x=this._updateAverageElevation(p),this.style._updateSources(this.transform),this._forceMarkerAndPopupUpdate()):x=this._updateAverageElevation(p),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,y,this._crossSourceCollisions),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showTerrainWireframe:this.showTerrainWireframe,showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:y,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new l.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new l.Event("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),n){const I=l.exported.now()-p;a.endQueryEXT(a.TIME_ELAPSED_EXT,n),setTimeout(()=>{const R=a.getQueryObjectEXT(n,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(n),this.fire(new l.Event("gpu-timing-frame",{cpuTime:I,gpuTime:R})),l.window.performance.mark("frame-gpu",{startTime:p,detail:{gpuTime:R}})},50)}if(this.listens("gpu-timing-layer")){const I=this.painter.collectGpuTimers();setTimeout(()=>{const R=this.painter.queryGpuTimers(I);this.fire(new l.Event("gpu-timing-layer",{layerTimes:R}))},50)}if(this.listens("gpu-timing-deferred-render")){const I=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const R=this.painter.queryGpuTimeDeferredRender(I);this.fire(new l.Event("gpu-timing-deferred-render",{gpuTime:R}))},50)}const D=this._sourcesDirty||this._styleDirty||this._placementDirty||x;if(D||this._repaint)this.triggerRepaint();else{const I=!this.isMoving()&&this.loaded();if(I&&(x=this._updateAverageElevation(p,!0)),x)this.triggerRepaint();else if(this._triggerFrame(!1),I&&(this.fire(new l.Event("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const R=this._calculateSpeedIndex();this.fire(new l.Event("speedindexcompleted",{speedIndex:R})),this.speedIndexTiming=!1}}!this._loaded||this._fullyLoaded||D||(this._fullyLoaded=!0,l.LivePerformanceUtils.mark(l.PerformanceMarkers.fullLoad),this._performanceMetricsCollection&&l.postPerformanceEvent(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(u){for(const n of this._markers)u&&!this.getRenderWorldCopies()&&(n._lngLat=n._lngLat.wrap()),n._update();for(const n of this._popups)!u||this.getRenderWorldCopies()||n._trackPointer||(n._lngLat=n._lngLat.wrap()),n._update()}_updateAverageElevation(u,n=!1){const a=p=>(this.transform.averageElevation=p,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return 0!==this.transform.averageElevation&&a(0);if((n||u-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(u)){const p=this.transform.averageElevation;let y=this.transform.sampleAverageElevation(),x=!1;this.transform.elevation&&(x=this.transform.elevation.exaggeration()!==this._averageElevationExaggeration,this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(y)?y=0:this._averageElevationLastSampledAt=u;const D=Math.abs(p-y);if(D>1){if(this._isInitialLoad||x)return this._averageElevation.jumpTo(y),a(y);this._averageElevation.easeTo(y,u,300)}else if(D>1e-4)return this._averageElevation.jumpTo(y),a(y)}return!!this._averageElevation.isEasing(u)&&a(this._averageElevation.getValue(u))}_authenticate(){l.getMapSessionAPI(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,u=>{if(u&&(u.message===l.AUTH_ERR_MSG||401===u.status)){const n=this.painter.context.gl;l.storeAuthState(n,!1),this._logoControl instanceof tc&&this._logoControl._updateLogo(),n&&n.clear(n.DEPTH_BUFFER_BIT|n.COLOR_BUFFER_BIT|n.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new l.ErrorEvent(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),l.postMapLoadEvent(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_updateTerrain(){const u=this._isDragging();this.painter.updateTerrain(this.style,u)}_calculateSpeedIndex(){const u=this.painter.canvasCopy(),n=this.painter.getCanvasCopiesAndTimestamps();n.timeStamps.push(performance.now());const a=this.painter.context.gl,p=a.createFramebuffer();function y(x){a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,x,0);const D=new Uint8Array(a.drawingBufferWidth*a.drawingBufferHeight*4);return a.readPixels(0,0,a.drawingBufferWidth,a.drawingBufferHeight,a.RGBA,a.UNSIGNED_BYTE,D),D}return a.bindFramebuffer(a.FRAMEBUFFER,p),this._canvasPixelComparison(y(u),n.canvasCopies.map(y),n.timeStamps)}_canvasPixelComparison(u,n,a){let p=a[1]-a[0];const y=u.length/4;for(let x=0;x{const a=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,a&&this._render(n)}))}_preloadTiles(u){const n=this.style?Object.values(this.style._sourceCaches):[];return l.asyncAll(n,(a,p)=>a._preloadTiles(u,p),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(u){this._trackResize&&this.resize({originalEvent:u})._update()}_onVisibilityChange(){"hidden"===l.window.document.visibilityState&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(u){this._showTileBoundaries!==u&&(this._showTileBoundaries=u,this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(u){this._showTerrainWireframe!==u&&(this._showTerrainWireframe=u,this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(u){this._speedIndexTiming!==u&&(this._speedIndexTiming=u,this._update())}get showPadding(){return!!this._showPadding}set showPadding(u){this._showPadding!==u&&(this._showPadding=u,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(u){this._showCollisionBoxes!==u&&(this._showCollisionBoxes=u,u?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(u){this._showOverdrawInspector!==u&&(this._showOverdrawInspector=u,this._update())}get repaint(){return!!this._repaint}set repaint(u){this._repaint!==u&&(this._repaint=u,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(u){this._vertices=u,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(u){this._showTileAABBs!==u&&(this._showTileAABBs=u,u&&this._update())}_setCacheLimits(u,n){l.setCacheLimits(u,n)}get version(){return l.version}},NavigationControl:class{constructor(u){this.options=l.extend({},qa,u),this._container=fe("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",n=>n.preventDefault()),this.options.showZoom&&(l.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",n=>{this._map&&this._map.zoomIn({},{originalEvent:n})}),fe("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",n=>{this._map&&this._map.zoomOut({},{originalEvent:n})}),fe("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(l.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",n=>{const a=this._map;a&&(this.options.visualizePitch?a.resetNorthPitch({},{originalEvent:n}):a.resetNorth({},{originalEvent:n}))}),this._compassIcon=fe("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const u=this._map;if(!u)return;const n=u.getZoom(),a=n===u.getMaxZoom(),p=n===u.getMinZoom();this._zoomInButton.disabled=a,this._zoomOutButton.disabled=p,this._zoomInButton.setAttribute("aria-disabled",a.toString()),this._zoomOutButton.setAttribute("aria-disabled",p.toString())}_rotateCompassArrow(){const u=this._map;if(!u)return;const n=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(u.transform.pitch*(Math.PI/180)),.5)}) rotateX(${u.transform.pitch}deg) rotateZ(${u.transform.angle*(180/Math.PI)}deg)`:`rotate(${u.transform.angle*(180/Math.PI)}deg)`;u._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=n)})}onAdd(u){return this._map=u,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),u.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&u.on("pitch",this._rotateCompassArrow),u.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Dd(u,this._compass,this.options.visualizePitch)),this._container}onRemove(){const u=this._map;u&&(this._container.remove(),this.options.showZoom&&u.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&u.off("pitch",this._rotateCompassArrow),u.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(u,n){const a=fe("button",u,this._container);return a.type="button",a.addEventListener("click",n),a}_setButtonTitle(u,n){if(!this._map)return;const a=this._map._getUIString(`NavigationControl.${n}`);u.setAttribute("aria-label",a),u.firstElementChild&&u.firstElementChild.setAttribute("title",a)}},GeolocateControl:class extends l.Evented{constructor(u){super(),this.options=l.extend({geolocation:l.window.navigator.geolocation},oa,u),l.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Es(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(u){return this._map=u,this._container=fe("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(u){const n=(a=!!this.options.geolocation)=>{this._supportsGeolocation=a,u(a)};void 0!==this._supportsGeolocation?u(this._supportsGeolocation):void 0!==l.window.navigator.permissions?l.window.navigator.permissions.query({name:"geolocation"}).then(a=>n("denied"!==a.state)).catch(()=>n()):n()}_isOutOfMapMaxBounds(u){const n=this._map.getMaxBounds(),a=u.coords;return!!n&&(a.longituden.getEast()||a.latituden.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(u){if(this._map){if(this._isOutOfMapMaxBounds(u))return this._setErrorState(),this.fire(new l.Event("outofmaxbounds",u)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=u,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(u),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(u),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new l.Event("geolocate",u)),this._finish()}}_updateCamera(u){const n=new l.LngLat(u.coords.longitude,u.coords.latitude),a=u.coords.accuracy,p=this._map.getBearing(),y=l.extend({bearing:p},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(a),y,{geolocateSource:!0})}_updateMarker(u){if(u){const n=new l.LngLat(u.coords.longitude,u.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=u.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const u=this._map.transform,n=l.mercatorZfromAltitude(1,u._center.lat)*u.worldSize,a=Math.ceil(2*this._accuracy*n);this._circleElement.style.width=`${a}px`,this._circleElement.style.height=`${a}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&"number"==typeof this._heading?(this._userLocationDotMarker.setRotation(this._heading),this._dotElement.classList.add("mapboxgl-user-location-show-heading")):(this._dotElement.classList.remove("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(u){if(this._map){if(this.options.trackUserLocation)if(1===u.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===u.code&&this._noTimeout)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new l.Event("error",u)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(u){if(void 0!==this._map){if(this._container.addEventListener("contextmenu",n=>n.preventDefault()),this._geolocateButton=fe("button","mapboxgl-ctrl-geolocate",this._container),fe("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===u){l.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");const n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n)}else{const n=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",n),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",n)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=fe("div","mapboxgl-user-location"),this._dotElement.appendChild(fe("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(fe("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new oi({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=fe("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new oi({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",n=>{n.geolocateSource||"ACTIVE_LOCK"!==this._watchState||n.originalEvent&&"resize"===n.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this.fire(new l.Event("trackuserlocationend")))})}}_onDeviceOrientation(u){this._userLocationDotMarker&&(u.webkitCompassHeading?this._heading=u.webkitCompassHeading:!0===u.absolute&&(this._heading=-1*u.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return l.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new l.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new l.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new l.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let u;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(u={maximumAge:6e5,timeout:0},this._noTimeout=!0):(u=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,u),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const u=()=>{l.window.addEventListener("ondeviceorientationabsolute"in l.window?"deviceorientationabsolute":"deviceorientation",this._onDeviceOrientation)};void 0!==l.window.DeviceMotionEvent&&"function"==typeof l.window.DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(n=>{"granted"===n&&u()}).catch(console.error):u()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),l.window.removeEventListener("deviceorientation",this._onDeviceOrientation),l.window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:hi,ScaleControl:class{constructor(u){this.options=l.extend({},va,u),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),l.bindAll(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const u=this.options.maxWidth||100,n=this._map,a=n._containerHeight/2,p=n._containerWidth/2-u/2,y=n.unproject([p,a]),x=n.unproject([p+u,a]),D=y.distanceTo(x);if("imperial"===this.options.unit){const I=3.2808*D;I>5280?this._setScale(u,I/5280,"mile"):this._setScale(u,I,"foot")}else"nautical"===this.options.unit?this._setScale(u,D/1852,"nautical-mile"):D>=1e3?this._setScale(u,D/1e3,"kilometer"):this._setScale(u,D,"meter")}_setScale(u,n,a){this._map._requestDomTask(()=>{const p=function(x){const D=Math.pow(10,`${Math.floor(x)}`.length-1);let I=x/D;return I=I>=10?10:I>=5?5:I>=3?3:I>=2?2:I>=1?1:function(R){const U=Math.pow(10,Math.ceil(-Math.log(R)/Math.LN10));return Math.round(R*U)/U}(I),D*I}(n),y=p/n;this._container.innerHTML=this._isNumberFormatSupported&&"nautical-mile"!==a?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:a}).format(p):`${p} ${Lu[a]}`,this._container.style.width=u*y+"px"})}onAdd(u){return this._map=u,this._language=u.getLanguage(),this._container=fe("div","mapboxgl-ctrl mapboxgl-ctrl-scale",u.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(u){this._language=u,this._update()}setUnit(u){this.options.unit=u,this._update()}},FullscreenControl:class{constructor(u){this._fullscreen=!1,u&&u.container&&(u.container instanceof l.window.HTMLElement?this._container=u.container:l.warnOnce("Full screen control 'container' must be a DOM element.")),l.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in l.window.document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in l.window.document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(u){return this._map=u,this._container||(this._container=this._map.getContainer()),this._controlContainer=fe("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",l.warnOnce("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,l.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!l.window.document.fullscreenEnabled&&!l.window.document.webkitFullscreenEnabled)}_setupUI(){const u=this._fullscreenButton=fe("button","mapboxgl-ctrl-fullscreen",this._controlContainer);fe("span","mapboxgl-ctrl-icon",u).setAttribute("aria-hidden","true"),u.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),l.window.document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const u=this._getTitle();this._fullscreenButton.setAttribute("aria-label",u),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",u)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(l.window.document.fullscreenElement||l.window.document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?l.window.document.exitFullscreen?l.window.document.exitFullscreen():l.window.document.webkitCancelFullScreen&&l.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends l.Evented{constructor(u){super(),this.options=l.extend(Object.create(nc),u),l.bindAll(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(u&&u.className?u.className.trim().split(/\s+/):[])}addTo(u){return this._map&&this.remove(),this._map=u,this.options.closeOnClick&&u.on("preclick",this._onClose),this.options.closeOnMove&&u.on("move",this._onClose),u.on("remove",this.remove),this._update(),u._addPopup(this),this._focusFirstElement(),this._trackPointer?(u.on("mousemove",this._onMouseEvent),u.on("mouseup",this._onMouseEvent),u._canvasContainer.classList.add("mapboxgl-track-pointer")):u.on("move",this._update),this.fire(new l.Event("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const u=this._map;return u&&(u.off("move",this._update),u.off("move",this._onClose),u.off("preclick",this._onClose),u.off("click",this._onClose),u.off("remove",this.remove),u.off("mousemove",this._onMouseEvent),u.off("mouseup",this._onMouseEvent),u.off("drag",this._onMouseEvent),u._canvasContainer&&u._canvasContainer.classList.remove("mapboxgl-track-pointer"),u._removePopup(this),this._map=void 0),this.fire(new l.Event("close")),this}getLngLat(){return this._lngLat}setLngLat(u){this._lngLat=l.LngLat.convert(u),this._pos=null,this._trackPointer=!1,this._update();const n=this._map;return n&&(n.on("move",this._update),n.off("mousemove",this._onMouseEvent),n._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const u=this._map;return u&&(u.off("move",this._update),u.on("mousemove",this._onMouseEvent),u.on("drag",this._onMouseEvent),u._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(u){return this.setDOMContent(l.window.document.createTextNode(u))}setHTML(u){const n=l.window.document.createDocumentFragment(),a=l.window.document.createElement("body");let p;for(a.innerHTML=u;p=a.firstChild,p;)n.appendChild(p);return this.setDOMContent(n)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(u){return this.options.maxWidth=u,this._update(),this}setDOMContent(u){let n=this._content;if(n)for(;n.hasChildNodes();)n.firstChild&&n.removeChild(n.firstChild);else n=this._content=fe("div","mapboxgl-popup-content",this._container||void 0);if(n.appendChild(u),this.options.closeButton){const a=this._closeButton=fe("button","mapboxgl-popup-close-button",n);a.type="button",a.setAttribute("aria-label","Close popup"),a.setAttribute("aria-hidden","true"),a.innerHTML="×",a.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(u){return this._classList.add(u),this._updateClassList(),this}removeClassName(u){return this._classList.delete(u),this._updateClassList(),this}setOffset(u){return this.options.offset=u,this._update(),this}toggleClassName(u){let n;return this._classList.delete(u)?n=!1:(this._classList.add(u),n=!0),this._updateClassList(),n}_onMouseEvent(u){this._update(u.point)}_getAnchor(u){if(this.options.anchor)return this.options.anchor;const n=this._map,a=this._container,p=this._pos;if(!n||!a||!p)return"bottom";const y=a.offsetWidth,x=a.offsetHeight,D=p.xn.transform.width-y/2;if(p.y+un.transform.height-x){if(D)return"bottom-left";if(I)return"bottom-right"}return D?"left":I?"right":"bottom"}_updateClassList(){const u=this._container;if(!u)return;const n=[...this._classList];n.push("mapboxgl-popup"),this._anchor&&n.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&n.push("mapboxgl-popup-track-pointer"),u.className=n.join(" ")}_update(u){const n=this._map,a=this._content;if(!n||!this._lngLat&&!this._trackPointer||!a)return;let p=this._container;if(p||(p=this._container=fe("div","mapboxgl-popup",n.getContainer()),this._tip=fe("div","mapboxgl-popup-tip",p),p.appendChild(a)),this.options.maxWidth&&p.style.maxWidth!==this.options.maxWidth&&(p.style.maxWidth=this.options.maxWidth),n.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=dl(this._lngLat,this._pos,n.transform)),!this._trackPointer||u){const y=this._pos=this._trackPointer&&u?u:n.project(this._lngLat),x=Ru(this.options.offset),D=this._anchor=this._getAnchor(x.y),I=Ru(this.options.offset,D),R=y.add(I).round();n._requestDomTask(()=>{this._container&&D&&(this._container.style.transform=`${ra[D]} translate(${R.x}px,${R.y}px)`)})}if(!this._marker&&n._showingGlobe()){const y=l.isLngLatBehindGlobe(n.transform,this._lngLat)?0:1;this._setOpacity(y)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const u=this._container.querySelector(Yc);u&&u.focus()}_onClose(){this.remove()}_setOpacity(u){this._container&&(this._container.style.opacity=`${u}`),this._content&&(this._content.style.pointerEvents=u?"auto":"none")}},Marker:oi,Style:to,LngLat:l.LngLat,LngLatBounds:l.LngLatBounds,Point:l.Point,MercatorCoordinate:l.MercatorCoordinate,FreeCameraOptions:Jr,Evented:l.Evented,config:l.config,prewarm:function(){uo().acquire(mr)},clearPrewarmedResources:function(){const u=Ar;u&&(u.isPreloaded()&&1===u.numActive()?(u.release(mr),Ar=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return l.config.ACCESS_TOKEN},set accessToken(u){l.config.ACCESS_TOKEN=u},get baseApiUrl(){return l.config.API_URL},set baseApiUrl(u){l.config.API_URL=u},get workerCount(){return Xi.workerCount},set workerCount(u){Xi.workerCount=u},get maxParallelImageRequests(){return l.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(u){l.config.MAX_PARALLEL_IMAGE_REQUESTS=u},clearStorage(u){l.clearTileCache(u)},workerUrl:"",workerClass:null,setNow:l.exported.setNow,restoreNow:l.exported.restoreNow};return S}),h}()},5619:(Bn,Ct,P)=>{"use strict";P.d(Ct,{X:()=>m});var h=P(8645);class m extends h.x{constructor(l){super(),this._value=l}get value(){return this.getValue()}_subscribe(l){const B=super._subscribe(l);return!B.closed&&l.next(this._value),B}getValue(){const{hasError:l,thrownError:B,_value:Y}=this;if(l)throw B;return this._throwIfClosed(),Y}next(l){super.next(this._value=l)}}},5592:(Bn,Ct,P)=>{"use strict";P.d(Ct,{y:()=>ie});var h=P(305),m=P(7394),te=P(4850),l=P(8407),B=P(2653),Y=P(4674),C=P(1441);let ie=(()=>{class be{constructor(Me){Me&&(this._subscribe=Me)}lift(Me){const de=new be;return de.source=this,de.operator=Me,de}subscribe(Me,de,nt){const Ce=function K(be){return be&&be instanceof h.Lv||function Pe(be){return be&&(0,Y.m)(be.next)&&(0,Y.m)(be.error)&&(0,Y.m)(be.complete)}(be)&&(0,m.Nn)(be)}(Me)?Me:new h.Hp(Me,de,nt);return(0,C.x)(()=>{const{operator:oe,source:xe}=this;Ce.add(oe?oe.call(Ce,xe):xe?this._subscribe(Ce):this._trySubscribe(Ce))}),Ce}_trySubscribe(Me){try{return this._subscribe(Me)}catch(de){Me.error(de)}}forEach(Me,de){return new(de=fe(de))((nt,Ce)=>{const oe=new h.Hp({next:xe=>{try{Me(xe)}catch(Ie){Ce(Ie),oe.unsubscribe()}},error:Ce,complete:nt});this.subscribe(oe)})}_subscribe(Me){var de;return null===(de=this.source)||void 0===de?void 0:de.subscribe(Me)}[te.L](){return this}pipe(...Me){return(0,l.U)(Me)(this)}toPromise(Me){return new(Me=fe(Me))((de,nt)=>{let Ce;this.subscribe(oe=>Ce=oe,oe=>nt(oe),()=>de(Ce))})}}return be.create=Te=>new be(Te),be})();function fe(be){var Te;return null!==(Te=be??B.config.Promise)&&void 0!==Te?Te:Promise}},8645:(Bn,Ct,P)=>{"use strict";P.d(Ct,{x:()=>C});var h=P(5592),m=P(7394);const l=(0,P(2306).d)(fe=>function(){fe(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=P(9039),Y=P(1441);let C=(()=>{class fe extends h.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(K){const be=new ie(this,this);return be.operator=K,be}_throwIfClosed(){if(this.closed)throw new l}next(K){(0,Y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const be of this.currentObservers)be.next(K)}})}error(K){(0,Y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=K;const{observers:be}=this;for(;be.length;)be.shift().error(K)}})}complete(){(0,Y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:K}=this;for(;K.length;)K.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var K;return(null===(K=this.observers)||void 0===K?void 0:K.length)>0}_trySubscribe(K){return this._throwIfClosed(),super._trySubscribe(K)}_subscribe(K){return this._throwIfClosed(),this._checkFinalizedStatuses(K),this._innerSubscribe(K)}_innerSubscribe(K){const{hasError:be,isStopped:Te,observers:Me}=this;return be||Te?m.Lc:(this.currentObservers=null,Me.push(K),new m.w0(()=>{this.currentObservers=null,(0,B.P)(Me,K)}))}_checkFinalizedStatuses(K){const{hasError:be,thrownError:Te,isStopped:Me}=this;be?K.error(Te):Me&&K.complete()}asObservable(){const K=new h.y;return K.source=this,K}}return fe.create=(Pe,K)=>new ie(Pe,K),fe})();class ie extends C{constructor(Pe,K){super(),this.destination=Pe,this.source=K}next(Pe){var K,be;null===(be=null===(K=this.destination)||void 0===K?void 0:K.next)||void 0===be||be.call(K,Pe)}error(Pe){var K,be;null===(be=null===(K=this.destination)||void 0===K?void 0:K.error)||void 0===be||be.call(K,Pe)}complete(){var Pe,K;null===(K=null===(Pe=this.destination)||void 0===Pe?void 0:Pe.complete)||void 0===K||K.call(Pe)}_subscribe(Pe){var K,be;return null!==(be=null===(K=this.source)||void 0===K?void 0:K.subscribe(Pe))&&void 0!==be?be:m.Lc}}},305:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Hp:()=>nt,Lv:()=>be});var h=P(4674),m=P(7394),te=P(2653),l=P(3894),B=P(2420);const Y=fe("C",void 0,void 0);function fe(Ae,ye,Ue){return{kind:Ae,value:ye,error:Ue}}var Pe=P(7599),K=P(1441);class be extends m.w0{constructor(ye){super(),this.isStopped=!1,ye?(this.destination=ye,(0,m.Nn)(ye)&&ye.add(this)):this.destination=Ie}static create(ye,Ue,ct){return new nt(ye,Ue,ct)}next(ye){this.isStopped?xe(function ie(Ae){return fe("N",Ae,void 0)}(ye),this):this._next(ye)}error(ye){this.isStopped?xe(function C(Ae){return fe("E",void 0,Ae)}(ye),this):(this.isStopped=!0,this._error(ye))}complete(){this.isStopped?xe(Y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ye){this.destination.next(ye)}_error(ye){try{this.destination.error(ye)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Te=Function.prototype.bind;function Me(Ae,ye){return Te.call(Ae,ye)}class de{constructor(ye){this.partialObserver=ye}next(ye){const{partialObserver:Ue}=this;if(Ue.next)try{Ue.next(ye)}catch(ct){Ce(ct)}}error(ye){const{partialObserver:Ue}=this;if(Ue.error)try{Ue.error(ye)}catch(ct){Ce(ct)}else Ce(ye)}complete(){const{partialObserver:ye}=this;if(ye.complete)try{ye.complete()}catch(Ue){Ce(Ue)}}}class nt extends be{constructor(ye,Ue,ct){let X;if(super(),(0,h.m)(ye)||!ye)X={next:ye??void 0,error:Ue??void 0,complete:ct??void 0};else{let ve;this&&te.config.useDeprecatedNextContext?(ve=Object.create(ye),ve.unsubscribe=()=>this.unsubscribe(),X={next:ye.next&&Me(ye.next,ve),error:ye.error&&Me(ye.error,ve),complete:ye.complete&&Me(ye.complete,ve)}):X=ye}this.destination=new de(X)}}function Ce(Ae){te.config.useDeprecatedSynchronousErrorHandling?(0,K.O)(Ae):(0,l.h)(Ae)}function xe(Ae,ye){const{onStoppedNotification:Ue}=te.config;Ue&&Pe.z.setTimeout(()=>Ue(Ae,ye))}const Ie={closed:!0,next:B.Z,error:function oe(Ae){throw Ae},complete:B.Z}},7394:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Lc:()=>Y,w0:()=>B,Nn:()=>C});var h=P(4674);const te=(0,P(2306).d)(fe=>function(K){fe(this),this.message=K?`${K.length} errors occurred during unsubscription:\n${K.map((be,Te)=>`${Te+1}) ${be.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=K});var l=P(9039);class B{constructor(Pe){this.initialTeardown=Pe,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Pe;if(!this.closed){this.closed=!0;const{_parentage:K}=this;if(K)if(this._parentage=null,Array.isArray(K))for(const Me of K)Me.remove(this);else K.remove(this);const{initialTeardown:be}=this;if((0,h.m)(be))try{be()}catch(Me){Pe=Me instanceof te?Me.errors:[Me]}const{_finalizers:Te}=this;if(Te){this._finalizers=null;for(const Me of Te)try{ie(Me)}catch(de){Pe=Pe??[],de instanceof te?Pe=[...Pe,...de.errors]:Pe.push(de)}}if(Pe)throw new te(Pe)}}add(Pe){var K;if(Pe&&Pe!==this)if(this.closed)ie(Pe);else{if(Pe instanceof B){if(Pe.closed||Pe._hasParent(this))return;Pe._addParent(this)}(this._finalizers=null!==(K=this._finalizers)&&void 0!==K?K:[]).push(Pe)}}_hasParent(Pe){const{_parentage:K}=this;return K===Pe||Array.isArray(K)&&K.includes(Pe)}_addParent(Pe){const{_parentage:K}=this;this._parentage=Array.isArray(K)?(K.push(Pe),K):K?[K,Pe]:Pe}_removeParent(Pe){const{_parentage:K}=this;K===Pe?this._parentage=null:Array.isArray(K)&&(0,l.P)(K,Pe)}remove(Pe){const{_finalizers:K}=this;K&&(0,l.P)(K,Pe),Pe instanceof B&&Pe._removeParent(this)}}B.EMPTY=(()=>{const fe=new B;return fe.closed=!0,fe})();const Y=B.EMPTY;function C(fe){return fe instanceof B||fe&&"closed"in fe&&(0,h.m)(fe.remove)&&(0,h.m)(fe.add)&&(0,h.m)(fe.unsubscribe)}function ie(fe){(0,h.m)(fe)?fe():fe.unsubscribe()}},2653:(Bn,Ct,P)=>{"use strict";P.d(Ct,{config:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},2572:(Bn,Ct,P)=>{"use strict";P.d(Ct,{a:()=>Pe});var h=P(5592),m=P(7453),te=P(7715),l=P(2737),B=P(7400),Y=P(4564),C=P(2714),ie=P(8251),fe=P(7103);function Pe(...Te){const Me=(0,Y.yG)(Te),de=(0,Y.jO)(Te),{args:nt,keys:Ce}=(0,m.D)(Te);if(0===nt.length)return(0,te.D)([],Me);const oe=new h.y(function K(Te,Me,de=l.y){return nt=>{be(Me,()=>{const{length:Ce}=Te,oe=new Array(Ce);let xe=Ce,Ie=Ce;for(let Ae=0;Ae{const ye=(0,te.D)(Te[Ae],Me);let Ue=!1;ye.subscribe((0,ie.x)(nt,ct=>{oe[Ae]=ct,Ue||(Ue=!0,Ie--),Ie||nt.next(de(oe.slice()))},()=>{--xe||nt.complete()}))},nt)},nt)}}(nt,Me,Ce?xe=>(0,C.n)(Ce,xe):l.y));return de?oe.pipe((0,B.Z)(de)):oe}function be(Te,Me,de){Te?(0,fe.f)(de,Te,Me):Me()}},5211:(Bn,Ct,P)=>{"use strict";P.d(Ct,{z:()=>B});var h=P(7537),te=P(4564),l=P(7715);function B(...Y){return function m(){return(0,h.J)(1)}()((0,l.D)(Y,(0,te.yG)(Y)))}},4911:(Bn,Ct,P)=>{"use strict";P.d(Ct,{P:()=>te});var h=P(5592),m=P(4829);function te(l){return new h.y(B=>{(0,m.Xf)(l()).subscribe(B)})}},6232:(Bn,Ct,P)=>{"use strict";P.d(Ct,{E:()=>m});const m=new(P(5592).y)(B=>B.complete())},9315:(Bn,Ct,P)=>{"use strict";P.d(Ct,{D:()=>ie});var h=P(5592),m=P(7453),te=P(4829),l=P(4564),B=P(8251),Y=P(7400),C=P(2714);function ie(...fe){const Pe=(0,l.jO)(fe),{args:K,keys:be}=(0,m.D)(fe),Te=new h.y(Me=>{const{length:de}=K;if(!de)return void Me.complete();const nt=new Array(de);let Ce=de,oe=de;for(let xe=0;xe{Ie||(Ie=!0,oe--),nt[xe]=Ae},()=>Ce--,void 0,()=>{(!Ce||!Ie)&&(oe||Me.next(be?(0,C.n)(be,nt):nt),Me.complete())}))}});return Pe?Te.pipe((0,Y.Z)(Pe)):Te}},7715:(Bn,Ct,P)=>{"use strict";P.d(Ct,{D:()=>ct});var h=P(4829),m=P(7103),te=P(9360),l=P(8251);function B(X,ve=0){return(0,te.e)((me,Fe)=>{me.subscribe((0,l.x)(Fe,De=>(0,m.f)(Fe,X,()=>Fe.next(De),ve),()=>(0,m.f)(Fe,X,()=>Fe.complete(),ve),De=>(0,m.f)(Fe,X,()=>Fe.error(De),ve)))})}function Y(X,ve=0){return(0,te.e)((me,Fe)=>{Fe.add(X.schedule(()=>me.subscribe(Fe),ve))})}var fe=P(5592),K=P(4971),be=P(4674);function Me(X,ve){if(!X)throw new Error("Iterable cannot be null");return new fe.y(me=>{(0,m.f)(me,ve,()=>{const Fe=X[Symbol.asyncIterator]();(0,m.f)(me,ve,()=>{Fe.next().then(De=>{De.done?me.complete():me.next(De.value)})},0,!0)})})}var de=P(8382),nt=P(4026),Ce=P(4266),oe=P(3664),xe=P(5726),Ie=P(9853),Ae=P(541);function ct(X,ve){return ve?function Ue(X,ve){if(null!=X){if((0,de.c)(X))return function C(X,ve){return(0,h.Xf)(X).pipe(Y(ve),B(ve))}(X,ve);if((0,Ce.z)(X))return function Pe(X,ve){return new fe.y(me=>{let Fe=0;return ve.schedule(function(){Fe===X.length?me.complete():(me.next(X[Fe++]),me.closed||this.schedule())})})}(X,ve);if((0,nt.t)(X))return function ie(X,ve){return(0,h.Xf)(X).pipe(Y(ve),B(ve))}(X,ve);if((0,xe.D)(X))return Me(X,ve);if((0,oe.T)(X))return function Te(X,ve){return new fe.y(me=>{let Fe;return(0,m.f)(me,ve,()=>{Fe=X[K.h](),(0,m.f)(me,ve,()=>{let De,ze;try{({value:De,done:ze}=Fe.next())}catch(Ke){return void me.error(Ke)}ze?me.complete():me.next(De)},0,!0)}),()=>(0,be.m)(Fe?.return)&&Fe.return()})}(X,ve);if((0,Ae.L)(X))return function ye(X,ve){return Me((0,Ae.Q)(X),ve)}(X,ve)}throw(0,Ie.z)(X)}(X,ve):(0,h.Xf)(X)}},2438:(Bn,Ct,P)=>{"use strict";P.d(Ct,{R:()=>Pe});var h=P(4829),m=P(5592),te=P(1631),l=P(4266),B=P(4674),Y=P(7400);const C=["addListener","removeListener"],ie=["addEventListener","removeEventListener"],fe=["on","off"];function Pe(de,nt,Ce,oe){if((0,B.m)(Ce)&&(oe=Ce,Ce=void 0),oe)return Pe(de,nt,Ce).pipe((0,Y.Z)(oe));const[xe,Ie]=function Me(de){return(0,B.m)(de.addEventListener)&&(0,B.m)(de.removeEventListener)}(de)?ie.map(Ae=>ye=>de[Ae](nt,ye,Ce)):function be(de){return(0,B.m)(de.addListener)&&(0,B.m)(de.removeListener)}(de)?C.map(K(de,nt)):function Te(de){return(0,B.m)(de.on)&&(0,B.m)(de.off)}(de)?fe.map(K(de,nt)):[];if(!xe&&(0,l.z)(de))return(0,te.z)(Ae=>Pe(Ae,nt,Ce))((0,h.Xf)(de));if(!xe)throw new TypeError("Invalid event target");return new m.y(Ae=>{const ye=(...Ue)=>Ae.next(1Ie(ye)})}function K(de,nt){return Ce=>oe=>de[Ce](nt,oe)}},4829:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Xf:()=>Te});var h=P(7582),m=P(4266),te=P(4026),l=P(5592),B=P(8382),Y=P(5726),C=P(9853),ie=P(3664),fe=P(541),Pe=P(4674),K=P(3894),be=P(4850);function Te(Ae){if(Ae instanceof l.y)return Ae;if(null!=Ae){if((0,B.c)(Ae))return function Me(Ae){return new l.y(ye=>{const Ue=Ae[be.L]();if((0,Pe.m)(Ue.subscribe))return Ue.subscribe(ye);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ae);if((0,m.z)(Ae))return function de(Ae){return new l.y(ye=>{for(let Ue=0;Ue{Ae.then(Ue=>{ye.closed||(ye.next(Ue),ye.complete())},Ue=>ye.error(Ue)).then(null,K.h)})}(Ae);if((0,Y.D)(Ae))return oe(Ae);if((0,ie.T)(Ae))return function Ce(Ae){return new l.y(ye=>{for(const Ue of Ae)if(ye.next(Ue),ye.closed)return;ye.complete()})}(Ae);if((0,fe.L)(Ae))return function xe(Ae){return oe((0,fe.Q)(Ae))}(Ae)}throw(0,C.z)(Ae)}function oe(Ae){return new l.y(ye=>{(function Ie(Ae,ye){var Ue,ct,X,ve;return(0,h.mG)(this,void 0,void 0,function*(){try{for(Ue=(0,h.KL)(Ae);!(ct=yield Ue.next()).done;)if(ye.next(ct.value),ye.closed)return}catch(me){X={error:me}}finally{try{ct&&!ct.done&&(ve=Ue.return)&&(yield ve.call(Ue))}finally{if(X)throw X.error}}ye.complete()})})(Ae,ye).catch(Ue=>ye.error(Ue))})}},2096:(Bn,Ct,P)=>{"use strict";P.d(Ct,{of:()=>te});var h=P(4564),m=P(7715);function te(...l){const B=(0,h.yG)(l);return(0,m.D)(l,B)}},8251:(Bn,Ct,P)=>{"use strict";P.d(Ct,{x:()=>m});var h=P(305);function m(l,B,Y,C,ie){return new te(l,B,Y,C,ie)}class te extends h.Lv{constructor(B,Y,C,ie,fe,Pe){super(B),this.onFinalize=fe,this.shouldUnsubscribe=Pe,this._next=Y?function(K){try{Y(K)}catch(be){B.error(be)}}:super._next,this._error=ie?function(K){try{ie(K)}catch(be){B.error(be)}finally{this.unsubscribe()}}:super._error,this._complete=C?function(){try{C()}catch(K){B.error(K)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var B;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:Y}=this;super.unsubscribe(),!Y&&(null===(B=this.onFinalize)||void 0===B||B.call(this))}}}},6328:(Bn,Ct,P)=>{"use strict";P.d(Ct,{b:()=>te});var h=P(1631),m=P(4674);function te(l,B){return(0,m.m)(B)?(0,h.z)(l,B,1):(0,h.z)(l,1)}},2181:(Bn,Ct,P)=>{"use strict";P.d(Ct,{h:()=>te});var h=P(9360),m=P(8251);function te(l,B){return(0,h.e)((Y,C)=>{let ie=0;Y.subscribe((0,m.x)(C,fe=>l.call(B,fe,ie++)&&C.next(fe)))})}},4716:(Bn,Ct,P)=>{"use strict";P.d(Ct,{x:()=>m});var h=P(9360);function m(te){return(0,h.e)((l,B)=>{try{l.subscribe(B)}finally{B.add(te)}})}},7398:(Bn,Ct,P)=>{"use strict";P.d(Ct,{U:()=>te});var h=P(9360),m=P(8251);function te(l,B){return(0,h.e)((Y,C)=>{let ie=0;Y.subscribe((0,m.x)(C,fe=>{C.next(l.call(B,fe,ie++))}))})}},7537:(Bn,Ct,P)=>{"use strict";P.d(Ct,{J:()=>te});var h=P(1631),m=P(2737);function te(l=1/0){return(0,h.z)(m.y,l)}},1631:(Bn,Ct,P)=>{"use strict";P.d(Ct,{z:()=>ie});var h=P(7398),m=P(4829),te=P(9360),l=P(7103),B=P(8251),C=P(4674);function ie(fe,Pe,K=1/0){return(0,C.m)(Pe)?ie((be,Te)=>(0,h.U)((Me,de)=>Pe(be,Me,Te,de))((0,m.Xf)(fe(be,Te))),K):("number"==typeof Pe&&(K=Pe),(0,te.e)((be,Te)=>function Y(fe,Pe,K,be,Te,Me,de,nt){const Ce=[];let oe=0,xe=0,Ie=!1;const Ae=()=>{Ie&&!Ce.length&&!oe&&Pe.complete()},ye=ct=>oe{Me&&Pe.next(ct),oe++;let X=!1;(0,m.Xf)(K(ct,xe++)).subscribe((0,B.x)(Pe,ve=>{Te?.(ve),Me?ye(ve):Pe.next(ve)},()=>{X=!0},void 0,()=>{if(X)try{for(oe--;Ce.length&&oeUe(ve)):Ue(ve)}Ae()}catch(ve){Pe.error(ve)}}))};return fe.subscribe((0,B.x)(Pe,ye,()=>{Ie=!0,Ae()})),()=>{nt?.()}}(be,Te,fe,K)))}},4664:(Bn,Ct,P)=>{"use strict";P.d(Ct,{w:()=>l});var h=P(4829),m=P(9360),te=P(8251);function l(B,Y){return(0,m.e)((C,ie)=>{let fe=null,Pe=0,K=!1;const be=()=>K&&!fe&&ie.complete();C.subscribe((0,te.x)(ie,Te=>{fe?.unsubscribe();let Me=0;const de=Pe++;(0,h.Xf)(B(Te,de)).subscribe(fe=(0,te.x)(ie,nt=>ie.next(Y?Y(Te,nt,de,Me++):nt),()=>{fe=null,be()}))},()=>{K=!0,be()}))})}},8180:(Bn,Ct,P)=>{"use strict";P.d(Ct,{q:()=>l});var h=P(6232),m=P(9360),te=P(8251);function l(B){return B<=0?()=>h.E:(0,m.e)((Y,C)=>{let ie=0;Y.subscribe((0,te.x)(C,fe=>{++ie<=B&&(C.next(fe),B<=ie&&C.complete())}))})}},4552:(Bn,Ct,P)=>{"use strict";P.d(Ct,{l:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},7599:(Bn,Ct,P)=>{"use strict";P.d(Ct,{z:()=>h});const h={setTimeout(m,te,...l){const{delegate:B}=h;return B?.setTimeout?B.setTimeout(m,te,...l):setTimeout(m,te,...l)},clearTimeout(m){const{delegate:te}=h;return(te?.clearTimeout||clearTimeout)(m)},delegate:void 0}},4971:(Bn,Ct,P)=>{"use strict";P.d(Ct,{h:()=>m});const m=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},4850:(Bn,Ct,P)=>{"use strict";P.d(Ct,{L:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},4564:(Bn,Ct,P)=>{"use strict";P.d(Ct,{jO:()=>l,yG:()=>B});var h=P(4674);function te(C){return C[C.length-1]}function l(C){return(0,h.m)(te(C))?C.pop():void 0}function B(C){return function m(C){return C&&(0,h.m)(C.schedule)}(te(C))?C.pop():void 0}},7453:(Bn,Ct,P)=>{"use strict";P.d(Ct,{D:()=>B});const{isArray:h}=Array,{getPrototypeOf:m,prototype:te,keys:l}=Object;function B(C){if(1===C.length){const ie=C[0];if(h(ie))return{args:ie,keys:null};if(function Y(C){return C&&"object"==typeof C&&m(C)===te}(ie)){const fe=l(ie);return{args:fe.map(Pe=>ie[Pe]),keys:fe}}}return{args:C,keys:null}}},9039:(Bn,Ct,P)=>{"use strict";function h(m,te){if(m){const l=m.indexOf(te);0<=l&&m.splice(l,1)}}P.d(Ct,{P:()=>h})},2306:(Bn,Ct,P)=>{"use strict";function h(m){const l=m(B=>{Error.call(B),B.stack=(new Error).stack});return l.prototype=Object.create(Error.prototype),l.prototype.constructor=l,l}P.d(Ct,{d:()=>h})},2714:(Bn,Ct,P)=>{"use strict";function h(m,te){return m.reduce((l,B,Y)=>(l[B]=te[Y],l),{})}P.d(Ct,{n:()=>h})},1441:(Bn,Ct,P)=>{"use strict";P.d(Ct,{O:()=>l,x:()=>te});var h=P(2653);let m=null;function te(B){if(h.config.useDeprecatedSynchronousErrorHandling){const Y=!m;if(Y&&(m={errorThrown:!1,error:null}),B(),Y){const{errorThrown:C,error:ie}=m;if(m=null,C)throw ie}}else B()}function l(B){h.config.useDeprecatedSynchronousErrorHandling&&m&&(m.errorThrown=!0,m.error=B)}},7103:(Bn,Ct,P)=>{"use strict";function h(m,te,l,B=0,Y=!1){const C=te.schedule(function(){l(),Y?m.add(this.schedule(null,B)):this.unsubscribe()},B);if(m.add(C),!Y)return C}P.d(Ct,{f:()=>h})},2737:(Bn,Ct,P)=>{"use strict";function h(m){return m}P.d(Ct,{y:()=>h})},4266:(Bn,Ct,P)=>{"use strict";P.d(Ct,{z:()=>h});const h=m=>m&&"number"==typeof m.length&&"function"!=typeof m},5726:(Bn,Ct,P)=>{"use strict";P.d(Ct,{D:()=>m});var h=P(4674);function m(te){return Symbol.asyncIterator&&(0,h.m)(te?.[Symbol.asyncIterator])}},4674:(Bn,Ct,P)=>{"use strict";function h(m){return"function"==typeof m}P.d(Ct,{m:()=>h})},8382:(Bn,Ct,P)=>{"use strict";P.d(Ct,{c:()=>te});var h=P(4850),m=P(4674);function te(l){return(0,m.m)(l[h.L])}},3664:(Bn,Ct,P)=>{"use strict";P.d(Ct,{T:()=>te});var h=P(4971),m=P(4674);function te(l){return(0,m.m)(l?.[h.h])}},2664:(Bn,Ct,P)=>{"use strict";P.d(Ct,{b:()=>te});var h=P(5592),m=P(4674);function te(l){return!!l&&(l instanceof h.y||(0,m.m)(l.lift)&&(0,m.m)(l.subscribe))}},4026:(Bn,Ct,P)=>{"use strict";P.d(Ct,{t:()=>m});var h=P(4674);function m(te){return(0,h.m)(te?.then)}},541:(Bn,Ct,P)=>{"use strict";P.d(Ct,{L:()=>l,Q:()=>te});var h=P(7582),m=P(4674);function te(B){return(0,h.FC)(this,arguments,function*(){const C=B.getReader();try{for(;;){const{value:ie,done:fe}=yield(0,h.qq)(C.read());if(fe)return yield(0,h.qq)(void 0);yield yield(0,h.qq)(ie)}}finally{C.releaseLock()}})}function l(B){return(0,m.m)(B?.getReader)}},9360:(Bn,Ct,P)=>{"use strict";P.d(Ct,{A:()=>m,e:()=>te});var h=P(4674);function m(l){return(0,h.m)(l?.lift)}function te(l){return B=>{if(m(B))return B.lift(function(Y){try{return l(Y,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},7400:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Z:()=>l});var h=P(7398);const{isArray:m}=Array;function l(B){return(0,h.U)(Y=>function te(B,Y){return m(Y)?B(...Y):B(Y)}(B,Y))}},2420:(Bn,Ct,P)=>{"use strict";function h(){}P.d(Ct,{Z:()=>h})},8407:(Bn,Ct,P)=>{"use strict";P.d(Ct,{U:()=>te,z:()=>m});var h=P(2737);function m(...l){return te(l)}function te(l){return 0===l.length?h.y:1===l.length?l[0]:function(Y){return l.reduce((C,ie)=>ie(C),Y)}}},3894:(Bn,Ct,P)=>{"use strict";P.d(Ct,{h:()=>te});var h=P(2653),m=P(7599);function te(l){m.z.setTimeout(()=>{const{onUnhandledError:B}=h.config;if(!B)throw l;B(l)})}},9853:(Bn,Ct,P)=>{"use strict";function h(m){return new TypeError(`You provided ${null!==m&&"object"==typeof m?"an invalid object":`'${m}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}P.d(Ct,{z:()=>h})},863:(Bn,Ct,P)=>{var h={"./ion-accordion_2.entry.js":[8484,8592,8484],"./ion-action-sheet.entry.js":[9882,8592,9882],"./ion-alert.entry.js":[6304,8592,6304],"./ion-app_8.entry.js":[5860,8592,5860],"./ion-avatar_3.entry.js":[3544,3544],"./ion-back-button.entry.js":[505,8592,505],"./ion-backdrop.entry.js":[469,469],"./ion-breadcrumb_2.entry.js":[9857,8592,9857],"./ion-button_2.entry.js":[1372,1372],"./ion-card_5.entry.js":[3150,3150],"./ion-checkbox.entry.js":[7635,8592,7635],"./ion-chip.entry.js":[6673,6673],"./ion-col_3.entry.js":[1315,1315],"./ion-datetime-button.entry.js":[433,5248,433],"./ion-datetime_3.entry.js":[7059,5248,8592,7059],"./ion-fab_3.entry.js":[4087,8592,4087],"./ion-img.entry.js":[1745,1745],"./ion-infinite-scroll_2.entry.js":[9352,8592,9352],"./ion-input.entry.js":[4530,8592,4530],"./ion-item-option_3.entry.js":[8633,8592,8633],"./ion-item_8.entry.js":[5962,8592,5962],"./ion-loading.entry.js":[3483,8592,3483],"./ion-menu_3.entry.js":[2939,8592,8382],"./ion-modal.entry.js":[8577,8592,8577],"./ion-nav_2.entry.js":[5675,8592,5675],"./ion-picker-column-internal.entry.js":[9992,8592,9992],"./ion-picker-internal.entry.js":[9820,9820],"./ion-popover.entry.js":[185,8592,185],"./ion-progress-bar.entry.js":[5454,5454],"./ion-radio_2.entry.js":[4458,8592,4458],"./ion-range.entry.js":[7666,8592,7666],"./ion-refresher_2.entry.js":[7219,8592,7219],"./ion-reorder_2.entry.js":[2975,8592,2975],"./ion-ripple-effect.entry.js":[7465,7465],"./ion-route_4.entry.js":[4764,4764],"./ion-searchbar.entry.js":[3998,8592,3998],"./ion-segment_2.entry.js":[3672,8592,3672],"./ion-select_3.entry.js":[6754,8592,6754],"./ion-spinner.entry.js":[9588,8592,9588],"./ion-split-pane.entry.js":[9793,9793],"./ion-tab-bar_2.entry.js":[4090,8592,4090],"./ion-tab_2.entry.js":[2841,2841],"./ion-text.entry.js":[8811,8811],"./ion-textarea.entry.js":[3734,8592,3734],"./ion-toast.entry.js":[6642,8592,6642],"./ion-toggle.entry.js":[8866,8592,8866]};function m(te){if(!P.o(h,te))return Promise.resolve().then(()=>{var Y=new Error("Cannot find module '"+te+"'");throw Y.code="MODULE_NOT_FOUND",Y});var l=h[te],B=l[0];return Promise.all(l.slice(1).map(P.e)).then(()=>P(B))}m.keys=()=>Object.keys(h),m.id=863,Bn.exports=m},6814:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Do:()=>nt,EM:()=>rl,HT:()=>l,JF:()=>xs,JJ:()=>Bs,K0:()=>Y,Mx:()=>Tt,O5:()=>_i,PM:()=>Po,S$:()=>Te,V_:()=>ie,Ye:()=>Ce,b0:()=>de,bD:()=>to,ez:()=>Mo,q:()=>te,sg:()=>pi,tP:()=>Wt,uU:()=>Nt,w_:()=>B});var h=P(9212);let m=null;function te(){return m}function l(F){m||(m=F)}class B{}const Y=new h.OlP("DocumentToken");let C=(()=>{class F{historyGo(H){throw new Error("Not implemented")}static#e=this.\u0275fac=function(le){return new(le||F)};static#t=this.\u0275prov=h.Yz7({token:F,factory:()=>(0,h.f3M)(fe),providedIn:"platform"})}return F})();const ie=new h.OlP("Location Initialized");let fe=(()=>{class F extends C{constructor(){super(),this._doc=(0,h.f3M)(Y),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return te().getBaseHref(this._doc)}onPopState(H){const le=te().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",H,!1),()=>le.removeEventListener("popstate",H)}onHashChange(H){const le=te().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",H,!1),()=>le.removeEventListener("hashchange",H)}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(H){this._location.pathname=H}pushState(H,le,wt){this._history.pushState(H,le,wt)}replaceState(H,le,wt){this._history.replaceState(H,le,wt)}forward(){this._history.forward()}back(){this._history.back()}historyGo(H=0){this._history.go(H)}getState(){return this._history.state}static#e=this.\u0275fac=function(le){return new(le||F)};static#t=this.\u0275prov=h.Yz7({token:F,factory:()=>new F,providedIn:"platform"})}return F})();function Pe(F,we){if(0==F.length)return we;if(0==we.length)return F;let H=0;return F.endsWith("/")&&H++,we.startsWith("/")&&H++,2==H?F+we.substring(1):1==H?F+we:F+"/"+we}function K(F){const we=F.match(/#|\?|$/),H=we&&we.index||F.length;return F.slice(0,H-("/"===F[H-1]?1:0))+F.slice(H)}function be(F){return F&&"?"!==F[0]?"?"+F:F}let Te=(()=>{class F{historyGo(H){throw new Error("Not implemented")}static#e=this.\u0275fac=function(le){return new(le||F)};static#t=this.\u0275prov=h.Yz7({token:F,factory:()=>(0,h.f3M)(de),providedIn:"root"})}return F})();const Me=new h.OlP("appBaseHref");let de=(()=>{class F extends Te{constructor(H,le){super(),this._platformLocation=H,this._removeListenerFns=[],this._baseHref=le??this._platformLocation.getBaseHrefFromDOM()??(0,h.f3M)(Y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(H){this._removeListenerFns.push(this._platformLocation.onPopState(H),this._platformLocation.onHashChange(H))}getBaseHref(){return this._baseHref}prepareExternalUrl(H){return Pe(this._baseHref,H)}path(H=!1){const le=this._platformLocation.pathname+be(this._platformLocation.search),wt=this._platformLocation.hash;return wt&&H?`${le}${wt}`:le}pushState(H,le,wt,yn){const xn=this.prepareExternalUrl(wt+be(yn));this._platformLocation.pushState(H,le,xn)}replaceState(H,le,wt,yn){const xn=this.prepareExternalUrl(wt+be(yn));this._platformLocation.replaceState(H,le,xn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(H=0){this._platformLocation.historyGo?.(H)}static#e=this.\u0275fac=function(le){return new(le||F)(h.LFG(C),h.LFG(Me,8))};static#t=this.\u0275prov=h.Yz7({token:F,factory:F.\u0275fac,providedIn:"root"})}return F})(),nt=(()=>{class F extends Te{constructor(H,le){super(),this._platformLocation=H,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(H){this._removeListenerFns.push(this._platformLocation.onPopState(H),this._platformLocation.onHashChange(H))}getBaseHref(){return this._baseHref}path(H=!1){let le=this._platformLocation.hash;return null==le&&(le="#"),le.length>0?le.substring(1):le}prepareExternalUrl(H){const le=Pe(this._baseHref,H);return le.length>0?"#"+le:le}pushState(H,le,wt,yn){let xn=this.prepareExternalUrl(wt+be(yn));0==xn.length&&(xn=this._platformLocation.pathname),this._platformLocation.pushState(H,le,xn)}replaceState(H,le,wt,yn){let xn=this.prepareExternalUrl(wt+be(yn));0==xn.length&&(xn=this._platformLocation.pathname),this._platformLocation.replaceState(H,le,xn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(H=0){this._platformLocation.historyGo?.(H)}static#e=this.\u0275fac=function(le){return new(le||F)(h.LFG(C),h.LFG(Me,8))};static#t=this.\u0275prov=h.Yz7({token:F,factory:F.\u0275fac})}return F})(),Ce=(()=>{class F{constructor(H){this._subject=new h.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=H;const le=this._locationStrategy.getBaseHref();this._basePath=function Ae(F){if(new RegExp("^(https?:)?//").test(F)){const[,H]=F.split(/\/\/[^\/]+/);return H}return F}(K(Ie(le))),this._locationStrategy.onPopState(wt=>{this._subject.emit({url:this.path(!0),pop:!0,state:wt.state,type:wt.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(H=!1){return this.normalize(this._locationStrategy.path(H))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(H,le=""){return this.path()==this.normalize(H+be(le))}normalize(H){return F.stripTrailingSlash(function xe(F,we){if(!F||!we.startsWith(F))return we;const H=we.substring(F.length);return""===H||["/",";","?","#"].includes(H[0])?H:we}(this._basePath,Ie(H)))}prepareExternalUrl(H){return H&&"/"!==H[0]&&(H="/"+H),this._locationStrategy.prepareExternalUrl(H)}go(H,le="",wt=null){this._locationStrategy.pushState(wt,"",H,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(H+be(le)),wt)}replaceState(H,le="",wt=null){this._locationStrategy.replaceState(wt,"",H,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(H+be(le)),wt)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(H=0){this._locationStrategy.historyGo?.(H)}onUrlChange(H){return this._urlChangeListeners.push(H),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(le=>{this._notifyUrlChangeListeners(le.url,le.state)})),()=>{const le=this._urlChangeListeners.indexOf(H);this._urlChangeListeners.splice(le,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(H="",le){this._urlChangeListeners.forEach(wt=>wt(H,le))}subscribe(H,le,wt){return this._subject.subscribe({next:H,error:le,complete:wt})}static#e=this.normalizeQueryParams=be;static#t=this.joinWithSlash=Pe;static#n=this.stripTrailingSlash=K;static#i=this.\u0275fac=function(le){return new(le||F)(h.LFG(Te))};static#r=this.\u0275prov=h.Yz7({token:F,factory:()=>function oe(){return new Ce((0,h.LFG)(Te))}(),providedIn:"root"})}return F})();function Ie(F){return F.replace(/\/index.html$/,"")}var Ue=function(F){return F[F.Decimal=0]="Decimal",F[F.Percent=1]="Percent",F[F.Currency=2]="Currency",F[F.Scientific=3]="Scientific",F}(Ue||{}),X=function(F){return F[F.Format=0]="Format",F[F.Standalone=1]="Standalone",F}(X||{}),ve=function(F){return F[F.Narrow=0]="Narrow",F[F.Abbreviated=1]="Abbreviated",F[F.Wide=2]="Wide",F[F.Short=3]="Short",F}(ve||{}),me=function(F){return F[F.Short=0]="Short",F[F.Medium=1]="Medium",F[F.Long=2]="Long",F[F.Full=3]="Full",F}(me||{}),Fe=function(F){return F[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F}(Fe||{});function Ne(F,we){return Zt((0,h.cg1)(F)[h.wAp.DateFormat],we)}function ke(F,we){return Zt((0,h.cg1)(F)[h.wAp.TimeFormat],we)}function it(F,we){return Zt((0,h.cg1)(F)[h.wAp.DateTimeFormat],we)}function Qt(F,we){const H=(0,h.cg1)(F),le=H[h.wAp.NumberSymbols][we];if(typeof le>"u"){if(we===Fe.CurrencyDecimal)return H[h.wAp.NumberSymbols][Fe.Decimal];if(we===Fe.CurrencyGroup)return H[h.wAp.NumberSymbols][Fe.Group]}return le}function Cn(F){if(!F[h.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${F[h.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Zt(F,we){for(let H=we;H>-1;H--)if(typeof F[H]<"u")return F[H];throw new Error("Locale data API: locale data undefined")}function hn(F){const[we,H]=F.split(":");return{hours:+we,minutes:+H}}const Ve=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pt={},Kt=/((?:[^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]*)/;var wn=function(F){return F[F.Short=0]="Short",F[F.ShortGMT=1]="ShortGMT",F[F.Long=2]="Long",F[F.Extended=3]="Extended",F}(wn||{}),ei=function(F){return F[F.FullYear=0]="FullYear",F[F.Month=1]="Month",F[F.Date=2]="Date",F[F.Hours=3]="Hours",F[F.Minutes=4]="Minutes",F[F.Seconds=5]="Seconds",F[F.FractionalSeconds=6]="FractionalSeconds",F[F.Day=7]="Day",F}(ei||{}),di=function(F){return F[F.DayPeriods=0]="DayPeriods",F[F.Days=1]="Days",F[F.Months=2]="Months",F[F.Eras=3]="Eras",F}(di||{});function Lr(F,we,H,le){let wt=function ae(F){if(Z(F))return F;if("number"==typeof F&&!isNaN(F))return new Date(F);if("string"==typeof F){if(F=F.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(F)){const[wt,yn=1,xn=1]=F.split("-").map(xi=>+xi);return Mi(wt,yn-1,xn)}const H=parseFloat(F);if(!isNaN(F-H))return new Date(H);let le;if(le=F.match(Ve))return function ft(F){const we=new Date(0);let H=0,le=0;const wt=F[8]?we.setUTCFullYear:we.setFullYear,yn=F[8]?we.setUTCHours:we.setHours;F[9]&&(H=Number(F[9]+F[10]),le=Number(F[9]+F[11])),wt.call(we,Number(F[1]),Number(F[2])-1,Number(F[3]));const xn=Number(F[4]||0)-H,xi=Number(F[5]||0)-le,Jr=Number(F[6]||0),Pr=Math.floor(1e3*parseFloat("0."+(F[7]||0)));return yn.call(we,xn,xi,Jr,Pr),we}(le)}const we=new Date(F);if(!Z(we))throw new Error(`Unable to convert "${F}" into a date`);return we}(F);we=dr(H,we)||we;let xi,xn=[];for(;we;){if(xi=Kt.exec(we),!xi){xn.push(we);break}{xn=xn.concat(xi.slice(1));const xr=xn.pop();if(!xr)break;we=xr}}let Jr=wt.getTimezoneOffset();le&&(Jr=Bt(le,Jr),wt=function Gn(F,we,H){const le=H?-1:1,wt=F.getTimezoneOffset();return function Nn(F,we){return(F=new Date(F.getTime())).setMinutes(F.getMinutes()+we),F}(F,le*(Bt(we,wt)-wt))}(wt,le,!0));let Pr="";return xn.forEach(xr=>{const ir=function dt(F){if(Vt[F])return Vt[F];let we;switch(F){case"G":case"GG":case"GGG":we=Jt(di.Eras,ve.Abbreviated);break;case"GGGG":we=Jt(di.Eras,ve.Wide);break;case"GGGGG":we=Jt(di.Eras,ve.Narrow);break;case"y":we=gn(ei.FullYear,1,0,!1,!0);break;case"yy":we=gn(ei.FullYear,2,0,!0,!0);break;case"yyy":we=gn(ei.FullYear,3,0,!1,!0);break;case"yyyy":we=gn(ei.FullYear,4,0,!1,!0);break;case"Y":we=jt(1);break;case"YY":we=jt(2,!0);break;case"YYY":we=jt(3);break;case"YYYY":we=jt(4);break;case"M":case"L":we=gn(ei.Month,1,1);break;case"MM":case"LL":we=gn(ei.Month,2,1);break;case"MMM":we=Jt(di.Months,ve.Abbreviated);break;case"MMMM":we=Jt(di.Months,ve.Wide);break;case"MMMMM":we=Jt(di.Months,ve.Narrow);break;case"LLL":we=Jt(di.Months,ve.Abbreviated,X.Standalone);break;case"LLLL":we=Jt(di.Months,ve.Wide,X.Standalone);break;case"LLLLL":we=Jt(di.Months,ve.Narrow,X.Standalone);break;case"w":we=Dt(1);break;case"ww":we=Dt(2);break;case"W":we=Dt(1,!0);break;case"d":we=gn(ei.Date,1);break;case"dd":we=gn(ei.Date,2);break;case"c":case"cc":we=gn(ei.Day,1);break;case"ccc":we=Jt(di.Days,ve.Abbreviated,X.Standalone);break;case"cccc":we=Jt(di.Days,ve.Wide,X.Standalone);break;case"ccccc":we=Jt(di.Days,ve.Narrow,X.Standalone);break;case"cccccc":we=Jt(di.Days,ve.Short,X.Standalone);break;case"E":case"EE":case"EEE":we=Jt(di.Days,ve.Abbreviated);break;case"EEEE":we=Jt(di.Days,ve.Wide);break;case"EEEEE":we=Jt(di.Days,ve.Narrow);break;case"EEEEEE":we=Jt(di.Days,ve.Short);break;case"a":case"aa":case"aaa":we=Jt(di.DayPeriods,ve.Abbreviated);break;case"aaaa":we=Jt(di.DayPeriods,ve.Wide);break;case"aaaaa":we=Jt(di.DayPeriods,ve.Narrow);break;case"b":case"bb":case"bbb":we=Jt(di.DayPeriods,ve.Abbreviated,X.Standalone,!0);break;case"bbbb":we=Jt(di.DayPeriods,ve.Wide,X.Standalone,!0);break;case"bbbbb":we=Jt(di.DayPeriods,ve.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":we=Jt(di.DayPeriods,ve.Abbreviated,X.Format,!0);break;case"BBBB":we=Jt(di.DayPeriods,ve.Wide,X.Format,!0);break;case"BBBBB":we=Jt(di.DayPeriods,ve.Narrow,X.Format,!0);break;case"h":we=gn(ei.Hours,1,-12);break;case"hh":we=gn(ei.Hours,2,-12);break;case"H":we=gn(ei.Hours,1);break;case"HH":we=gn(ei.Hours,2);break;case"m":we=gn(ei.Minutes,1);break;case"mm":we=gn(ei.Minutes,2);break;case"s":we=gn(ei.Seconds,1);break;case"ss":we=gn(ei.Seconds,2);break;case"S":we=gn(ei.FractionalSeconds,1);break;case"SS":we=gn(ei.FractionalSeconds,2);break;case"SSS":we=gn(ei.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":we=ut(wn.Short);break;case"ZZZZZ":we=ut(wn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":we=ut(wn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":we=ut(wn.Long);break;default:return null}return Vt[F]=we,we}(xr);Pr+=ir?ir(wt,H,Jr):"''"===xr?"'":xr.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Pr}function Mi(F,we,H){const le=new Date(0);return le.setFullYear(F,we,H),le.setHours(0,0,0),le}function dr(F,we){const H=function ze(F){return(0,h.cg1)(F)[h.wAp.LocaleId]}(F);if(Pt[H]=Pt[H]||{},Pt[H][we])return Pt[H][we];let le="";switch(we){case"shortDate":le=Ne(F,me.Short);break;case"mediumDate":le=Ne(F,me.Medium);break;case"longDate":le=Ne(F,me.Long);break;case"fullDate":le=Ne(F,me.Full);break;case"shortTime":le=ke(F,me.Short);break;case"mediumTime":le=ke(F,me.Medium);break;case"longTime":le=ke(F,me.Long);break;case"fullTime":le=ke(F,me.Full);break;case"short":const wt=dr(F,"shortTime"),yn=dr(F,"shortDate");le=Ei(it(F,me.Short),[wt,yn]);break;case"medium":const xn=dr(F,"mediumTime"),xi=dr(F,"mediumDate");le=Ei(it(F,me.Medium),[xn,xi]);break;case"long":const Jr=dr(F,"longTime"),Pr=dr(F,"longDate");le=Ei(it(F,me.Long),[Jr,Pr]);break;case"full":const xr=dr(F,"fullTime"),ir=dr(F,"fullDate");le=Ei(it(F,me.Full),[xr,ir])}return le&&(Pt[H][we]=le),le}function Ei(F,we){return we&&(F=F.replace(/\{([^}]+)}/g,function(H,le){return null!=we&&le in we?we[le]:H})),F}function fn(F,we,H="-",le,wt){let yn="";(F<0||wt&&F<=0)&&(wt?F=1-F:(F=-F,yn=H));let xn=String(F);for(;xn.length0||xi>-H)&&(xi+=H),F===ei.Hours)0===xi&&-12===H&&(xi=12);else if(F===ei.FractionalSeconds)return function Li(F,we){return fn(F,3).substring(0,we)}(xi,we);const Jr=Qt(xn,Fe.MinusSign);return fn(xi,we,Jr,le,wt)}}function Jt(F,we,H=X.Format,le=!1){return function(wt,yn){return function Bi(F,we,H,le,wt,yn){switch(H){case di.Months:return function dn(F,we,H){const le=(0,h.cg1)(F),yn=Zt([le[h.wAp.MonthsFormat],le[h.wAp.MonthsStandalone]],we);return Zt(yn,H)}(we,wt,le)[F.getMonth()];case di.Days:return function Ht(F,we,H){const le=(0,h.cg1)(F),yn=Zt([le[h.wAp.DaysFormat],le[h.wAp.DaysStandalone]],we);return Zt(yn,H)}(we,wt,le)[F.getDay()];case di.DayPeriods:const xn=F.getHours(),xi=F.getMinutes();if(yn){const Pr=function It(F){const we=(0,h.cg1)(F);return Cn(we),(we[h.wAp.ExtraData][2]||[]).map(le=>"string"==typeof le?hn(le):[hn(le[0]),hn(le[1])])}(we),xr=function pe(F,we,H){const le=(0,h.cg1)(F);Cn(le);const yn=Zt([le[h.wAp.ExtraData][0],le[h.wAp.ExtraData][1]],we)||[];return Zt(yn,H)||[]}(we,wt,le),ir=Pr.findIndex(Kr=>{if(Array.isArray(Kr)){const[_r,so]=Kr,Bo=xn>=_r.hours&&xi>=_r.minutes,ao=xn0?Math.floor(wt/60):Math.ceil(wt/60);switch(F){case wn.Short:return(wt>=0?"+":"")+fn(xn,2,yn)+fn(Math.abs(wt%60),2,yn);case wn.ShortGMT:return"GMT"+(wt>=0?"+":"")+fn(xn,1,yn);case wn.Long:return"GMT"+(wt>=0?"+":"")+fn(xn,2,yn)+":"+fn(Math.abs(wt%60),2,yn);case wn.Extended:return 0===le?"Z":(wt>=0?"+":"")+fn(xn,2,yn)+":"+fn(Math.abs(wt%60),2,yn);default:throw new Error(`Unknown zone width "${F}"`)}}}const he=0,_e=4;function yt(F){return Mi(F.getFullYear(),F.getMonth(),F.getDate()+(_e-F.getDay()))}function Dt(F,we=!1){return function(H,le){let wt;if(we){const yn=new Date(H.getFullYear(),H.getMonth(),1).getDay()-1,xn=H.getDate();wt=1+Math.floor((xn+yn)/7)}else{const yn=yt(H),xn=function ot(F){const we=Mi(F,he,1).getDay();return Mi(F,0,1+(we<=_e?_e:_e+7)-we)}(yn.getFullYear()),xi=yn.getTime()-xn.getTime();wt=1+Math.round(xi/6048e5)}return fn(wt,F,Qt(le,Fe.MinusSign))}}function jt(F,we=!1){return function(H,le){return fn(yt(H).getFullYear(),F,Qt(le,Fe.MinusSign),we)}}const Vt={};function Bt(F,we){F=F.replace(/:/g,"");const H=Date.parse("Jan 01, 1970 00:00:00 "+F)/6e4;return isNaN(H)?we:H}function Z(F){return F instanceof Date&&!isNaN(F.valueOf())}const Re=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function vr(F){const we=parseInt(F);if(isNaN(we))throw new Error("Invalid integer literal when parsing "+F);return we}function Tt(F,we){we=encodeURIComponent(we);for(const H of F.split(";")){const le=H.indexOf("="),[wt,yn]=-1==le?[H,""]:[H.slice(0,le),H.slice(le+1)];if(wt.trim()===we)return decodeURIComponent(yn)}return null}class Kn{constructor(we,H,le,wt){this.$implicit=we,this.ngForOf=H,this.index=le,this.count=wt}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pi=(()=>{class F{set ngForOf(H){this._ngForOf=H,this._ngForOfDirty=!0}set ngForTrackBy(H){this._trackByFn=H}get ngForTrackBy(){return this._trackByFn}constructor(H,le,wt){this._viewContainer=H,this._template=le,this._differs=wt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(H){H&&(this._template=H)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const H=this._ngForOf;!this._differ&&H&&(this._differ=this._differs.find(H).create(this.ngForTrackBy))}if(this._differ){const H=this._differ.diff(this._ngForOf);H&&this._applyChanges(H)}}_applyChanges(H){const le=this._viewContainer;H.forEachOperation((wt,yn,xn)=>{if(null==wt.previousIndex)le.createEmbeddedView(this._template,new Kn(wt.item,this._ngForOf,-1,-1),null===xn?void 0:xn);else if(null==xn)le.remove(null===yn?void 0:yn);else if(null!==yn){const xi=le.get(yn);le.move(xi,xn),ki(xi,wt)}});for(let wt=0,yn=le.length;wt{ki(le.get(wt.currentIndex),wt)})}static ngTemplateContextGuard(H,le){return!0}static#e=this.\u0275fac=function(le){return new(le||F)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4))};static#t=this.\u0275dir=h.lG2({type:F,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return F})();function ki(F,we){F.context.$implicit=we.item}let _i=(()=>{class F{constructor(H,le){this._viewContainer=H,this._context=new or,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(H){this._context.$implicit=this._context.ngIf=H,this._updateView()}set ngIfThen(H){Ee("ngIfThen",H),this._thenTemplateRef=H,this._thenViewRef=null,this._updateView()}set ngIfElse(H){Ee("ngIfElse",H),this._elseTemplateRef=H,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 ngTemplateContextGuard(H,le){return!0}static#e=this.\u0275fac=function(le){return new(le||F)(h.Y36(h.s_b),h.Y36(h.Rgc))};static#t=this.\u0275dir=h.lG2({type:F,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return F})();class or{constructor(){this.$implicit=null,this.ngIf=null}}function Ee(F,we){if(we&&!we.createEmbeddedView)throw new Error(`${F} must be a TemplateRef, but received '${(0,h.AaK)(we)}'.`)}let Wt=(()=>{class F{constructor(H){this._viewContainerRef=H,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(H){if(this._shouldRecreateView(H)){const le=this._viewContainerRef;if(this._viewRef&&le.remove(le.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const wt=this._createContextForwardProxy();this._viewRef=le.createEmbeddedView(this.ngTemplateOutlet,wt,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(H){return!!H.ngTemplateOutlet||!!H.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(H,le,wt)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,le,wt),get:(H,le,wt)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,le,wt)}})}static#e=this.\u0275fac=function(le){return new(le||F)(h.Y36(h.s_b))};static#t=this.\u0275dir=h.lG2({type:F,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.TTD]})}return F})();function vn(F,we){return new h.vHH(2100,!1)}const $=new h.OlP("DATE_PIPE_DEFAULT_TIMEZONE"),Ze=new h.OlP("DATE_PIPE_DEFAULT_OPTIONS");let Nt=(()=>{class F{constructor(H,le,wt){this.locale=H,this.defaultTimezone=le,this.defaultOptions=wt}transform(H,le,wt,yn){if(null==H||""===H||H!=H)return null;try{return Lr(H,le??this.defaultOptions?.dateFormat??"mediumDate",yn||this.locale,wt??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(xn){throw vn()}}static#e=this.\u0275fac=function(le){return new(le||F)(h.Y36(h.soG,16),h.Y36($,24),h.Y36(Ze,24))};static#t=this.\u0275pipe=h.Yjl({name:"date",type:F,pure:!0,standalone:!0})}return F})(),Bs=(()=>{class F{constructor(H){this._locale=H}transform(H,le,wt){if(!function $o(F){return!(null==F||""===F||F!=F)}(H))return null;wt=wt||this._locale;try{return function Eo(F,we,H){return function Ar(F,we,H,le,wt,yn,xn=!1){let xi="",Jr=!1;if(isFinite(F)){let Pr=function Ti(F){let le,wt,yn,xn,xi,we=Math.abs(F)+"",H=0;for((wt=we.indexOf("."))>-1&&(we=we.replace(".","")),(yn=we.search(/e/i))>0?(wt<0&&(wt=yn),wt+=+we.slice(yn+1),we=we.substring(0,yn)):wt<0&&(wt=we.length),yn=0;"0"===we.charAt(yn);yn++);if(yn===(xi=we.length))le=[0],wt=1;else{for(xi--;"0"===we.charAt(xi);)xi--;for(wt-=yn,le=[],xn=0;yn<=xi;yn++,xn++)le[xn]=Number(we.charAt(yn))}return wt>22&&(le=le.splice(0,21),H=wt-1,wt=1),{digits:le,exponent:H,integerLen:wt}}(F);xn&&(Pr=function hr(F){if(0===F.digits[0])return F;const we=F.digits.length-F.integerLen;return F.exponent?F.exponent+=2:(0===we?F.digits.push(0,0):1===we&&F.digits.push(0),F.integerLen+=2),F}(Pr));let xr=we.minInt,ir=we.minFrac,Kr=we.maxFrac;if(yn){const Ts=yn.match(Re);if(null===Ts)throw new Error(`${yn} is not a valid digit info`);const Zo=Ts[1],zo=Ts[3],ia=Ts[5];null!=Zo&&(xr=vr(Zo)),null!=zo&&(ir=vr(zo)),null!=ia?Kr=vr(ia):null!=zo&&ir>Kr&&(Kr=ir)}!function yo(F,we,H){if(we>H)throw new Error(`The minimum number of digits after fraction (${we}) is higher than the maximum (${H}).`);let le=F.digits,wt=le.length-F.integerLen;const yn=Math.min(Math.max(we,wt),H);let xn=yn+F.integerLen,xi=le[xn];if(xn>0){le.splice(Math.max(F.integerLen,xn));for(let ir=xn;ir=5)if(xn-1<0){for(let ir=0;ir>xn;ir--)le.unshift(0),F.integerLen++;le.unshift(1),F.integerLen++}else le[xn-1]++;for(;wt=Pr?so.pop():Jr=!1),Kr>=10?1:0},0);xr&&(le.unshift(xr),F.integerLen++)}(Pr,ir,Kr);let _r=Pr.digits,so=Pr.integerLen;const Bo=Pr.exponent;let ao=[];for(Jr=_r.every(Ts=>!Ts);so0?ao=_r.splice(so,_r.length):(ao=_r,_r=[0]);const Es=[];for(_r.length>=we.lgSize&&Es.unshift(_r.splice(-we.lgSize,_r.length).join(""));_r.length>we.gSize;)Es.unshift(_r.splice(-we.gSize,_r.length).join(""));_r.length&&Es.unshift(_r.join("")),xi=Es.join(Qt(H,le)),ao.length&&(xi+=Qt(H,wt)+ao.join("")),Bo&&(xi+=Qt(H,Fe.Exponential)+"+"+Bo)}else xi=Qt(H,Fe.Infinity);return xi=F<0&&!Jr?we.negPre+xi+we.negSuf:we.posPre+xi+we.posSuf,xi}(F,function zi(F,we="-"){const H={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},le=F.split(";"),wt=le[0],yn=le[1],xn=-1!==wt.indexOf(".")?wt.split("."):[wt.substring(0,wt.lastIndexOf("0")+1),wt.substring(wt.lastIndexOf("0")+1)],xi=xn[0],Jr=xn[1]||"";H.posPre=xi.substring(0,xi.indexOf("#"));for(let xr=0;xr{class F{static#e=this.\u0275fac=function(le){return new(le||F)};static#t=this.\u0275mod=h.oAB({type:F});static#n=this.\u0275inj=h.cJS({})}return F})();const to="browser",fr="server";function Po(F){return F===fr}let rl=(()=>{class F{static#e=this.\u0275prov=(0,h.Yz7)({token:F,providedIn:"root",factory:()=>function zs(F){return F===to}((0,h.f3M)(h.Lbi))?new la((0,h.f3M)(Y),window):new Ba})}return F})();class la{constructor(we,H){this.document=we,this.window=H,this.offset=()=>[0,0]}setOffset(we){this.offset=Array.isArray(we)?()=>we:we}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(we){this.window.scrollTo(we[0],we[1])}scrollToAnchor(we){const H=function ca(F,we){const H=F.getElementById(we)||F.getElementsByName(we)[0];if(H)return H;if("function"==typeof F.createTreeWalker&&F.body&&"function"==typeof F.body.attachShadow){const le=F.createTreeWalker(F.body,NodeFilter.SHOW_ELEMENT);let wt=le.currentNode;for(;wt;){const yn=wt.shadowRoot;if(yn){const xn=yn.getElementById(we)||yn.querySelector(`[name="${we}"]`);if(xn)return xn}wt=le.nextNode()}}return null}(this.document,we);H&&(this.scrollToElement(H),H.focus())}setHistoryScrollRestoration(we){this.window.history.scrollRestoration=we}scrollToElement(we){const H=we.getBoundingClientRect(),le=H.left+this.window.pageXOffset,wt=H.top+this.window.pageYOffset,yn=this.offset();this.window.scrollTo(le-yn[0],wt-yn[1])}}class Ba{setOffset(we){}getScrollPosition(){return[0,0]}scrollToPosition(we){}scrollToAnchor(we){}setHistoryScrollRestoration(we){}}class xs{}},9862:(Bn,Ct,P)=>{"use strict";P.d(Ct,{JF:()=>wi,TP:()=>pe,WM:()=>Me,eN:()=>ke}),P(5861);var m=P(9212),te=P(2096),l=P(5592),B=P(7715),Y=P(6328),C=P(2181),ie=P(7398),fe=P(4716),Pe=P(4664),K=P(6814);class be{}class Te{}class Me{constructor(Tt){this.normalizedNames=new Map,this.lazyUpdate=null,Tt?"string"==typeof Tt?this.lazyInit=()=>{this.headers=new Map,Tt.split("\n").forEach(Et=>{const ln=Et.indexOf(":");if(ln>0){const vt=Et.slice(0,ln),Hn=vt.toLowerCase(),On=Et.slice(ln+1).trim();this.maybeSetNormalizedName(vt,Hn),this.headers.has(Hn)?this.headers.get(Hn).push(On):this.headers.set(Hn,[On])}})}:typeof Headers<"u"&&Tt instanceof Headers?(this.headers=new Map,Tt.forEach((Et,ln)=>{this.setHeaderEntries(ln,Et)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(Tt).forEach(([Et,ln])=>{this.setHeaderEntries(Et,ln)})}:this.headers=new Map}has(Tt){return this.init(),this.headers.has(Tt.toLowerCase())}get(Tt){this.init();const Et=this.headers.get(Tt.toLowerCase());return Et&&Et.length>0?Et[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Tt){return this.init(),this.headers.get(Tt.toLowerCase())||null}append(Tt,Et){return this.clone({name:Tt,value:Et,op:"a"})}set(Tt,Et){return this.clone({name:Tt,value:Et,op:"s"})}delete(Tt,Et){return this.clone({name:Tt,value:Et,op:"d"})}maybeSetNormalizedName(Tt,Et){this.normalizedNames.has(Et)||this.normalizedNames.set(Et,Tt)}init(){this.lazyInit&&(this.lazyInit instanceof Me?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Tt=>this.applyUpdate(Tt)),this.lazyUpdate=null))}copyFrom(Tt){Tt.init(),Array.from(Tt.headers.keys()).forEach(Et=>{this.headers.set(Et,Tt.headers.get(Et)),this.normalizedNames.set(Et,Tt.normalizedNames.get(Et))})}clone(Tt){const Et=new Me;return Et.lazyInit=this.lazyInit&&this.lazyInit instanceof Me?this.lazyInit:this,Et.lazyUpdate=(this.lazyUpdate||[]).concat([Tt]),Et}applyUpdate(Tt){const Et=Tt.name.toLowerCase();switch(Tt.op){case"a":case"s":let ln=Tt.value;if("string"==typeof ln&&(ln=[ln]),0===ln.length)return;this.maybeSetNormalizedName(Tt.name,Et);const vt=("a"===Tt.op?this.headers.get(Et):void 0)||[];vt.push(...ln),this.headers.set(Et,vt);break;case"d":const Hn=Tt.value;if(Hn){let On=this.headers.get(Et);if(!On)return;On=On.filter(Kn=>-1===Hn.indexOf(Kn)),0===On.length?(this.headers.delete(Et),this.normalizedNames.delete(Et)):this.headers.set(Et,On)}else this.headers.delete(Et),this.normalizedNames.delete(Et)}}setHeaderEntries(Tt,Et){const ln=(Array.isArray(Et)?Et:[Et]).map(Hn=>Hn.toString()),vt=Tt.toLowerCase();this.headers.set(vt,ln),this.maybeSetNormalizedName(Tt,vt)}forEach(Tt){this.init(),Array.from(this.normalizedNames.keys()).forEach(Et=>Tt(this.normalizedNames.get(Et),this.headers.get(Et)))}}class nt{encodeKey(Tt){return Ie(Tt)}encodeValue(Tt){return Ie(Tt)}decodeKey(Tt){return decodeURIComponent(Tt)}decodeValue(Tt){return decodeURIComponent(Tt)}}const oe=/%(\d[a-f0-9])/gi,xe={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Ie(Qe){return encodeURIComponent(Qe).replace(oe,(Tt,Et)=>xe[Et]??Tt)}function Ae(Qe){return`${Qe}`}class ye{constructor(Tt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Tt.encoder||new nt,Tt.fromString){if(Tt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Ce(Qe,Tt){const Et=new Map;return Qe.length>0&&Qe.replace(/^\?/,"").split("&").forEach(vt=>{const Hn=vt.indexOf("="),[On,Kn]=-1==Hn?[Tt.decodeKey(vt),""]:[Tt.decodeKey(vt.slice(0,Hn)),Tt.decodeValue(vt.slice(Hn+1))],pi=Et.get(On)||[];pi.push(Kn),Et.set(On,pi)}),Et}(Tt.fromString,this.encoder)}else Tt.fromObject?(this.map=new Map,Object.keys(Tt.fromObject).forEach(Et=>{const ln=Tt.fromObject[Et],vt=Array.isArray(ln)?ln.map(Ae):[Ae(ln)];this.map.set(Et,vt)})):this.map=null}has(Tt){return this.init(),this.map.has(Tt)}get(Tt){this.init();const Et=this.map.get(Tt);return Et?Et[0]:null}getAll(Tt){return this.init(),this.map.get(Tt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Tt,Et){return this.clone({param:Tt,value:Et,op:"a"})}appendAll(Tt){const Et=[];return Object.keys(Tt).forEach(ln=>{const vt=Tt[ln];Array.isArray(vt)?vt.forEach(Hn=>{Et.push({param:ln,value:Hn,op:"a"})}):Et.push({param:ln,value:vt,op:"a"})}),this.clone(Et)}set(Tt,Et){return this.clone({param:Tt,value:Et,op:"s"})}delete(Tt,Et){return this.clone({param:Tt,value:Et,op:"d"})}toString(){return this.init(),this.keys().map(Tt=>{const Et=this.encoder.encodeKey(Tt);return this.map.get(Tt).map(ln=>Et+"="+this.encoder.encodeValue(ln)).join("&")}).filter(Tt=>""!==Tt).join("&")}clone(Tt){const Et=new ye({encoder:this.encoder});return Et.cloneFrom=this.cloneFrom||this,Et.updates=(this.updates||[]).concat(Tt),Et}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Tt=>this.map.set(Tt,this.cloneFrom.map.get(Tt))),this.updates.forEach(Tt=>{switch(Tt.op){case"a":case"s":const Et=("a"===Tt.op?this.map.get(Tt.param):void 0)||[];Et.push(Ae(Tt.value)),this.map.set(Tt.param,Et);break;case"d":if(void 0===Tt.value){this.map.delete(Tt.param);break}{let ln=this.map.get(Tt.param)||[];const vt=ln.indexOf(Ae(Tt.value));-1!==vt&&ln.splice(vt,1),ln.length>0?this.map.set(Tt.param,ln):this.map.delete(Tt.param)}}}),this.cloneFrom=this.updates=null)}}class ct{constructor(){this.map=new Map}set(Tt,Et){return this.map.set(Tt,Et),this}get(Tt){return this.map.has(Tt)||this.map.set(Tt,Tt.defaultValue()),this.map.get(Tt)}delete(Tt){return this.map.delete(Tt),this}has(Tt){return this.map.has(Tt)}keys(){return this.map.keys()}}function ve(Qe){return typeof ArrayBuffer<"u"&&Qe instanceof ArrayBuffer}function me(Qe){return typeof Blob<"u"&&Qe instanceof Blob}function Fe(Qe){return typeof FormData<"u"&&Qe instanceof FormData}class ze{constructor(Tt,Et,ln,vt){let Hn;if(this.url=Et,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Tt.toUpperCase(),function X(Qe){switch(Qe){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||vt?(this.body=void 0!==ln?ln:null,Hn=vt):Hn=ln,Hn&&(this.reportProgress=!!Hn.reportProgress,this.withCredentials=!!Hn.withCredentials,Hn.responseType&&(this.responseType=Hn.responseType),Hn.headers&&(this.headers=Hn.headers),Hn.context&&(this.context=Hn.context),Hn.params&&(this.params=Hn.params),this.transferCache=Hn.transferCache),this.headers||(this.headers=new Me),this.context||(this.context=new ct),this.params){const On=this.params.toString();if(0===On.length)this.urlWithParams=Et;else{const Kn=Et.indexOf("?");this.urlWithParams=Et+(-1===Kn?"?":Kn_i.set(or,Tt.setHeaders[or]),pi)),Tt.setParams&&(ki=Object.keys(Tt.setParams).reduce((_i,or)=>_i.set(or,Tt.setParams[or]),ki)),new ze(Et,ln,Hn,{params:ki,headers:pi,context:rr,reportProgress:Kn,responseType:vt,withCredentials:On})}}var Ke=function(Qe){return Qe[Qe.Sent=0]="Sent",Qe[Qe.UploadProgress=1]="UploadProgress",Qe[Qe.ResponseHeader=2]="ResponseHeader",Qe[Qe.DownloadProgress=3]="DownloadProgress",Qe[Qe.Response=4]="Response",Qe[Qe.User=5]="User",Qe}(Ke||{});class Ht{constructor(Tt,Et=We.Ok,ln="OK"){this.headers=Tt.headers||new Me,this.status=void 0!==Tt.status?Tt.status:Et,this.statusText=Tt.statusText||ln,this.url=Tt.url||null,this.ok=this.status>=200&&this.status<300}}class dn extends Ht{constructor(Tt={}){super(Tt),this.type=Ke.ResponseHeader}clone(Tt={}){return new dn({headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class _n extends Ht{constructor(Tt={}){super(Tt),this.type=Ke.Response,this.body=void 0!==Tt.body?Tt.body:null}clone(Tt={}){return new _n({body:void 0!==Tt.body?Tt.body:this.body,headers:Tt.headers||this.headers,status:void 0!==Tt.status?Tt.status:this.status,statusText:Tt.statusText||this.statusText,url:Tt.url||this.url||void 0})}}class Ut extends Ht{constructor(Tt){super(Tt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Tt.url||"(unknown url)"}`:`Http failure response for ${Tt.url||"(unknown url)"}: ${Tt.status} ${Tt.statusText}`,this.error=Tt.error||null}}var We=function(Qe){return Qe[Qe.Continue=100]="Continue",Qe[Qe.SwitchingProtocols=101]="SwitchingProtocols",Qe[Qe.Processing=102]="Processing",Qe[Qe.EarlyHints=103]="EarlyHints",Qe[Qe.Ok=200]="Ok",Qe[Qe.Created=201]="Created",Qe[Qe.Accepted=202]="Accepted",Qe[Qe.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",Qe[Qe.NoContent=204]="NoContent",Qe[Qe.ResetContent=205]="ResetContent",Qe[Qe.PartialContent=206]="PartialContent",Qe[Qe.MultiStatus=207]="MultiStatus",Qe[Qe.AlreadyReported=208]="AlreadyReported",Qe[Qe.ImUsed=226]="ImUsed",Qe[Qe.MultipleChoices=300]="MultipleChoices",Qe[Qe.MovedPermanently=301]="MovedPermanently",Qe[Qe.Found=302]="Found",Qe[Qe.SeeOther=303]="SeeOther",Qe[Qe.NotModified=304]="NotModified",Qe[Qe.UseProxy=305]="UseProxy",Qe[Qe.Unused=306]="Unused",Qe[Qe.TemporaryRedirect=307]="TemporaryRedirect",Qe[Qe.PermanentRedirect=308]="PermanentRedirect",Qe[Qe.BadRequest=400]="BadRequest",Qe[Qe.Unauthorized=401]="Unauthorized",Qe[Qe.PaymentRequired=402]="PaymentRequired",Qe[Qe.Forbidden=403]="Forbidden",Qe[Qe.NotFound=404]="NotFound",Qe[Qe.MethodNotAllowed=405]="MethodNotAllowed",Qe[Qe.NotAcceptable=406]="NotAcceptable",Qe[Qe.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",Qe[Qe.RequestTimeout=408]="RequestTimeout",Qe[Qe.Conflict=409]="Conflict",Qe[Qe.Gone=410]="Gone",Qe[Qe.LengthRequired=411]="LengthRequired",Qe[Qe.PreconditionFailed=412]="PreconditionFailed",Qe[Qe.PayloadTooLarge=413]="PayloadTooLarge",Qe[Qe.UriTooLong=414]="UriTooLong",Qe[Qe.UnsupportedMediaType=415]="UnsupportedMediaType",Qe[Qe.RangeNotSatisfiable=416]="RangeNotSatisfiable",Qe[Qe.ExpectationFailed=417]="ExpectationFailed",Qe[Qe.ImATeapot=418]="ImATeapot",Qe[Qe.MisdirectedRequest=421]="MisdirectedRequest",Qe[Qe.UnprocessableEntity=422]="UnprocessableEntity",Qe[Qe.Locked=423]="Locked",Qe[Qe.FailedDependency=424]="FailedDependency",Qe[Qe.TooEarly=425]="TooEarly",Qe[Qe.UpgradeRequired=426]="UpgradeRequired",Qe[Qe.PreconditionRequired=428]="PreconditionRequired",Qe[Qe.TooManyRequests=429]="TooManyRequests",Qe[Qe.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",Qe[Qe.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",Qe[Qe.InternalServerError=500]="InternalServerError",Qe[Qe.NotImplemented=501]="NotImplemented",Qe[Qe.BadGateway=502]="BadGateway",Qe[Qe.ServiceUnavailable=503]="ServiceUnavailable",Qe[Qe.GatewayTimeout=504]="GatewayTimeout",Qe[Qe.HttpVersionNotSupported=505]="HttpVersionNotSupported",Qe[Qe.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",Qe[Qe.InsufficientStorage=507]="InsufficientStorage",Qe[Qe.LoopDetected=508]="LoopDetected",Qe[Qe.NotExtended=510]="NotExtended",Qe[Qe.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",Qe}(We||{});function Ne(Qe,Tt){return{body:Tt,headers:Qe.headers,context:Qe.context,observe:Qe.observe,params:Qe.params,reportProgress:Qe.reportProgress,responseType:Qe.responseType,withCredentials:Qe.withCredentials,transferCache:Qe.transferCache}}let ke=(()=>{class Qe{constructor(Et){this.handler=Et}request(Et,ln,vt={}){let Hn;if(Et instanceof ze)Hn=Et;else{let pi,ki;pi=vt.headers instanceof Me?vt.headers:new Me(vt.headers),vt.params&&(ki=vt.params instanceof ye?vt.params:new ye({fromObject:vt.params})),Hn=new ze(Et,ln,void 0!==vt.body?vt.body:null,{headers:pi,context:vt.context,params:ki,reportProgress:vt.reportProgress,responseType:vt.responseType||"json",withCredentials:vt.withCredentials,transferCache:vt.transferCache})}const On=(0,te.of)(Hn).pipe((0,Y.b)(pi=>this.handler.handle(pi)));if(Et instanceof ze||"events"===vt.observe)return On;const Kn=On.pipe((0,C.h)(pi=>pi instanceof _n));switch(vt.observe||"body"){case"body":switch(Hn.responseType){case"arraybuffer":return Kn.pipe((0,ie.U)(pi=>{if(null!==pi.body&&!(pi.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return pi.body}));case"blob":return Kn.pipe((0,ie.U)(pi=>{if(null!==pi.body&&!(pi.body instanceof Blob))throw new Error("Response is not a Blob.");return pi.body}));case"text":return Kn.pipe((0,ie.U)(pi=>{if(null!==pi.body&&"string"!=typeof pi.body)throw new Error("Response is not a string.");return pi.body}));default:return Kn.pipe((0,ie.U)(pi=>pi.body))}case"response":return Kn;default:throw new Error(`Unreachable: unhandled observe type ${vt.observe}}`)}}delete(Et,ln={}){return this.request("DELETE",Et,ln)}get(Et,ln={}){return this.request("GET",Et,ln)}head(Et,ln={}){return this.request("HEAD",Et,ln)}jsonp(Et,ln){return this.request("JSONP",Et,{params:(new ye).append(ln,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Et,ln={}){return this.request("OPTIONS",Et,ln)}patch(Et,ln,vt={}){return this.request("PATCH",Et,Ne(vt,ln))}post(Et,ln,vt={}){return this.request("POST",Et,Ne(vt,ln))}put(Et,ln,vt={}){return this.request("PUT",Et,Ne(vt,ln))}static#e=this.\u0275fac=function(ln){return new(ln||Qe)(m.LFG(be))};static#t=this.\u0275prov=m.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function bn(Qe,Tt){return Tt(Qe)}function Cn(Qe,Tt){return(Et,ln)=>Tt.intercept(Et,{handle:vt=>Qe(vt,ln)})}const pe=new m.OlP(""),lt=new m.OlP(""),Zt=new m.OlP(""),hn=new m.OlP("");function Yt(){let Qe=null;return(Tt,Et)=>{null===Qe&&(Qe=((0,m.f3M)(pe,{optional:!0})??[]).reduceRight(Cn,bn));const ln=(0,m.f3M)(m.I6F),vt=ln.add();return Qe(Tt,Et).pipe((0,fe.x)(()=>ln.remove(vt)))}}let Ve=(()=>{class Qe extends be{constructor(Et,ln){super(),this.backend=Et,this.injector=ln,this.chain=null,this.pendingTasks=(0,m.f3M)(m.I6F);const vt=(0,m.f3M)(hn,{optional:!0});this.backend=vt??Et}handle(Et){if(null===this.chain){const vt=Array.from(new Set([...this.injector.get(lt),...this.injector.get(Zt,[])]));this.chain=vt.reduceRight((Hn,On)=>function It(Qe,Tt,Et){return(ln,vt)=>(0,m.r_H)(Et,()=>Tt(ln,Hn=>Qe(Hn,vt)))}(Hn,On,this.injector),bn)}const ln=this.pendingTasks.add();return this.chain(Et,vt=>this.backend.handle(vt)).pipe((0,fe.x)(()=>this.pendingTasks.remove(ln)))}static#e=this.\u0275fac=function(ln){return new(ln||Qe)(m.LFG(Te),m.LFG(m.lqb))};static#t=this.\u0275prov=m.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const gn=/^\)\]\}',?\n/;let Jt=(()=>{class Qe{constructor(Et){this.xhrFactory=Et}handle(Et){if("JSONP"===Et.method)throw new m.vHH(-2800,!1);const ln=this.xhrFactory;return(ln.\u0275loadImpl?(0,B.D)(ln.\u0275loadImpl()):(0,te.of)(null)).pipe((0,Pe.w)(()=>new l.y(Hn=>{const On=ln.build();if(On.open(Et.method,Et.urlWithParams),Et.withCredentials&&(On.withCredentials=!0),Et.headers.forEach((ee,qe)=>On.setRequestHeader(ee,qe.join(","))),Et.headers.has("Accept")||On.setRequestHeader("Accept","application/json, text/plain, */*"),!Et.headers.has("Content-Type")){const ee=Et.detectContentTypeHeader();null!==ee&&On.setRequestHeader("Content-Type",ee)}if(Et.responseType){const ee=Et.responseType.toLowerCase();On.responseType="json"!==ee?ee:"text"}const Kn=Et.serializeBody();let pi=null;const ki=()=>{if(null!==pi)return pi;const ee=On.statusText||"OK",qe=new Me(On.getAllResponseHeaders()),St=function Fn(Qe){return"responseURL"in Qe&&Qe.responseURL?Qe.responseURL:/^X-Request-URL:/m.test(Qe.getAllResponseHeaders())?Qe.getResponseHeader("X-Request-URL"):null}(On)||Et.url;return pi=new dn({headers:qe,status:On.status,statusText:ee,url:St}),pi},rr=()=>{let{headers:ee,status:qe,statusText:St,url:en}=ki(),jn=null;qe!==We.NoContent&&(jn=typeof On.response>"u"?On.responseText:On.response),0===qe&&(qe=jn?We.Ok:0);let V=qe>=200&&qe<300;if("json"===Et.responseType&&"string"==typeof jn){const ue=jn;jn=jn.replace(gn,"");try{jn=""!==jn?JSON.parse(jn):null}catch(Xe){jn=ue,V&&(V=!1,jn={error:Xe,text:jn})}}V?(Hn.next(new _n({body:jn,headers:ee,status:qe,statusText:St,url:en||void 0})),Hn.complete()):Hn.error(new Ut({error:jn,headers:ee,status:qe,statusText:St,url:en||void 0}))},_i=ee=>{const{url:qe}=ki(),St=new Ut({error:ee,status:On.status||0,statusText:On.statusText||"Unknown Error",url:qe||void 0});Hn.error(St)};let or=!1;const Ee=ee=>{or||(Hn.next(ki()),or=!0);let qe={type:Ke.DownloadProgress,loaded:ee.loaded};ee.lengthComputable&&(qe.total=ee.total),"text"===Et.responseType&&On.responseText&&(qe.partialText=On.responseText),Hn.next(qe)},Be=ee=>{let qe={type:Ke.UploadProgress,loaded:ee.loaded};ee.lengthComputable&&(qe.total=ee.total),Hn.next(qe)};return On.addEventListener("load",rr),On.addEventListener("error",_i),On.addEventListener("timeout",_i),On.addEventListener("abort",_i),Et.reportProgress&&(On.addEventListener("progress",Ee),null!==Kn&&On.upload&&On.upload.addEventListener("progress",Be)),On.send(Kn),Hn.next({type:Ke.Sent}),()=>{On.removeEventListener("error",_i),On.removeEventListener("abort",_i),On.removeEventListener("load",rr),On.removeEventListener("timeout",_i),Et.reportProgress&&(On.removeEventListener("progress",Ee),null!==Kn&&On.upload&&On.upload.removeEventListener("progress",Be)),On.readyState!==On.DONE&&On.abort()}})))}static#e=this.\u0275fac=function(ln){return new(ln||Qe)(m.LFG(K.JF))};static#t=this.\u0275prov=m.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();const Bi=new m.OlP("XSRF_ENABLED"),he=new m.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),ot=new m.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class yt{}let Dt=(()=>{class Qe{constructor(Et,ln,vt){this.doc=Et,this.platform=ln,this.cookieName=vt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Et=this.doc.cookie||"";return Et!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,K.Mx)(Et,this.cookieName),this.lastCookieString=Et),this.lastToken}static#e=this.\u0275fac=function(ln){return new(ln||Qe)(m.LFG(K.K0),m.LFG(m.Lbi),m.LFG(he))};static#t=this.\u0275prov=m.Yz7({token:Qe,factory:Qe.\u0275fac})}return Qe})();function jt(Qe,Tt){const Et=Qe.url.toLowerCase();if(!(0,m.f3M)(Bi)||"GET"===Qe.method||"HEAD"===Qe.method||Et.startsWith("http://")||Et.startsWith("https://"))return Tt(Qe);const ln=(0,m.f3M)(yt).getToken(),vt=(0,m.f3M)(ot);return null!=ln&&!Qe.headers.has(vt)&&(Qe=Qe.clone({headers:Qe.headers.set(vt,ln)})),Tt(Qe)}var dt=function(Qe){return Qe[Qe.Interceptors=0]="Interceptors",Qe[Qe.LegacyInterceptors=1]="LegacyInterceptors",Qe[Qe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Qe[Qe.NoXsrfProtection=3]="NoXsrfProtection",Qe[Qe.JsonpSupport=4]="JsonpSupport",Qe[Qe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Qe[Qe.Fetch=6]="Fetch",Qe}(dt||{});function Nn(...Qe){const Tt=[ke,Jt,Ve,{provide:be,useExisting:Ve},{provide:Te,useExisting:Jt},{provide:lt,useValue:jt,multi:!0},{provide:Bi,useValue:!0},{provide:yt,useClass:Dt}];for(const Et of Qe)Tt.push(...Et.\u0275providers);return(0,m.MR2)(Tt)}const ae=new m.OlP("LEGACY_INTERCEPTOR_FN");function ft(){return function Bt(Qe,Tt){return{\u0275kind:Qe,\u0275providers:Tt}}(dt.LegacyInterceptors,[{provide:ae,useFactory:Yt},{provide:lt,useExisting:ae,multi:!0}])}let wi=(()=>{class Qe{static#e=this.\u0275fac=function(ln){return new(ln||Qe)};static#t=this.\u0275mod=m.oAB({type:Qe});static#n=this.\u0275inj=m.cJS({providers:[Nn(ft())]})}return Qe})()},9212:(Bn,Ct,P)=>{"use strict";P.d(Ct,{tb:()=>R0,AFp:()=>Wh,ip1:()=>Sw,hGG:()=>UM,z2F:()=>Oh,Ojb:()=>by,sBO:()=>En,Sil:()=>HI,EJc:()=>AM,Xts:()=>nu,SBq:()=>ph,lqb:()=>as,qLn:()=>Nl,vpe:()=>qr,XFs:()=>_i,OlP:()=>V,zs3:()=>pr,ZZ4:()=>Rf,aQg:()=>cm,soG:()=>iy,YKP:()=>zb,h0i:()=>Ph,R0b:()=>ar,FiY:()=>Tc,Lbi:()=>Tp,g9A:()=>qh,Qsj:()=>Xg,FYo:()=>hc,JOm:()=>Pc,tp0:()=>qs,Rgc:()=>Jm,dDg:()=>vM,eoX:()=>Aw,GfV:()=>bw,s_b:()=>P_,ifc:()=>Mo,T8G:()=>Mm,VuI:()=>fA,LMc:()=>mA,MMx:()=>jb,Lck:()=>KD,eFA:()=>zw,G48:()=>LM,Gpc:()=>Fn,f3M:()=>ji,$WT:()=>Qo,MR2:()=>Dc,_c5:()=>zM,qFp:()=>gA,r_H:()=>yg,rg0:()=>Fc,c2e:()=>ww,zSh:()=>vp,wAp:()=>op,I6F:()=>Q_,vHH:()=>Yt,lri:()=>Iw,rWj:()=>Mw,cg1:()=>t0,kuF:()=>Ft,kL8:()=>w1,dqk:()=>St,Z0I:()=>ln,eJc:()=>Os,QGY:()=>o0,F4k:()=>Y1,RDi:()=>bg,AaK:()=>Ei,qOj:()=>Cv,lbL:()=>vo,Xq5:()=>lx,TTD:()=>Zo,_Bn:()=>Bb,jDz:()=>Vb,xp6:()=>u_,uIk:()=>Uv,ekj:()=>Wv,Suo:()=>gb,Xpm:()=>ha,lG2:()=>Gl,Yz7:()=>qi,cJS:()=>Tt,oAB:()=>fa,Yjl:()=>sl,Y36:()=>yu,_UZ:()=>Qv,GkF:()=>e0,BQk:()=>$_,ynx:()=>V_,qZA:()=>j_,TgZ:()=>U_,EpF:()=>v1,n5z:()=>Id,LFG:()=>Dr,$8M:()=>Fh,$Z:()=>vm,NdJ:()=>s0,CRH:()=>vb,oxw:()=>eb,ALo:()=>iw,lcZ:()=>rw,xi3:()=>ow,Hsn:()=>nb,F$t:()=>tb,Q6J:()=>Zv,s9C:()=>a0,DdM:()=>Kb,iGM:()=>yb,MAs:()=>xb,KtG:()=>tc,CHM:()=>hi,LSH:()=>vf,P3R:()=>nm,Udp:()=>Hv,YNc:()=>jf,_uU:()=>Sb,Oqu:()=>m0,hij:()=>Y_,AsE:()=>g0,lnq:()=>_0,HOy:()=>y0,Gf:()=>_b});let m=null,l=1;const B=Symbol("SIGNAL");function Y(t){const i=m;return m=t,i}function Te(t){if((!Ue(t)||t.dirty)&&(t.dirty||t.lastCleanEpoch!==l)){if(!t.producerMustRecompute(t)&&!xe(t))return t.dirty=!1,void(t.lastCleanEpoch=l);t.producerRecomputeValue(t),t.dirty=!1,t.lastCleanEpoch=l}}function xe(t){ct(t);for(let i=0;i0}function ct(t){t.producerNode??=[],t.producerIndexOfThis??=[],t.producerLastReadVersion??=[]}let Ht=null;var Cn=P(8645),It=P(7394),pe=P(5619),lt=P(7398);const hn="https://g.co/ng/security#xss";class Yt extends Error{constructor(i,s){super(Ft(i,s)),this.code=i}}function Ft(t,i){return`NG0${Math.abs(t)}${i?": "+i:""}`}function Mi(t){for(let i in t)if(t[i]===Mi)return i;throw Error("Could not find renamed property on target object.")}function dr(t,i){for(const s in i)i.hasOwnProperty(s)&&!t.hasOwnProperty(s)&&(t[s]=i[s])}function Ei(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Ei).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const i=t.toString();if(null==i)return""+i;const s=i.indexOf("\n");return-1===s?i:i.substring(0,s)}function fn(t,i){return null==t||""===t?null===i?"":i:null==i||""===i?t:t+" "+i}const gn=Mi({__forward_ref__:Mi});function Fn(t){return t.__forward_ref__=Fn,t.toString=function(){return Ei(this())},t}function Jt(t){return Bi(t)?t():t}function Bi(t){return"function"==typeof t&&t.hasOwnProperty(gn)&&t.__forward_ref__===Fn}function ut(t){return t&&!!t.\u0275providers}const he=Mi({\u0275cmp:Mi}),_e=Mi({\u0275dir:Mi}),ot=Mi({\u0275pipe:Mi}),yt=Mi({\u0275mod:Mi}),Dt=Mi({\u0275fac:Mi}),jt=Mi({__NG_ELEMENT_ID__:Mi}),Vt=Mi({__NG_ENV_ID__:Mi});function dt(t){return"string"==typeof t?t:null==t?"":String(t)}function Re(t,i){throw new Yt(-201,!1)}function hr(t,i){null==t&&function Ti(t,i,s,d){throw new Error(`ASSERTION ERROR: ${t}`+(null==d?"":` [Expected=> ${s} ${d} ${i} <=Actual]`))}(i,t,null,"!=")}function qi(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Tt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Et(t){return vt(t,Kn)||vt(t,ki)}function ln(t){return null!==Et(t)}function vt(t,i){return t.hasOwnProperty(i)?t[i]:null}function On(t){return t&&(t.hasOwnProperty(pi)||t.hasOwnProperty(rr))?t[pi]:null}const Kn=Mi({\u0275prov:Mi}),pi=Mi({\u0275inj:Mi}),ki=Mi({ngInjectableDef:Mi}),rr=Mi({ngInjectorDef:Mi});var _i=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}(_i||{});let or;function Ee(){return or}function Be(t){const i=or;return or=t,i}function ee(t,i,s){const d=Et(t);return d&&"root"==d.providedIn?void 0===d.value?d.value=d.factory():d.value:s&_i.Optional?null:void 0!==i?i:void Re()}const St=globalThis;class V{constructor(i,s){this._desc=i,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof s?this.__NG_ELEMENT_ID__=s:void 0!==s&&(this.\u0275prov=qi({token:this,providedIn:s.providedIn||"root",factory:s.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const yi={},Vi="__NG_DI_FLAG__",Yi="ngTempTokenPath",Oe=/\n/gm,Ze="__source";let Nt;function Sr(t){const i=Nt;return Nt=t,i}function Qi(t,i=_i.Default){if(void 0===Nt)throw new Yt(-203,!1);return null===Nt?ee(t,void 0,i):Nt.get(t,i&_i.Optional?null:void 0,i)}function Dr(t,i=_i.Default){return(Ee()||Qi)(Jt(t),i)}function ji(t,i=_i.Default){return Dr(t,eo(i))}function eo(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Bs(t){const i=[];for(let s=0;si){T=b-1;break}}}for(;bb?"":g[Je+1].toLowerCase();const Gt=8&d?Rt:null;if(Gt&&-1!==Yo(Gt,q,0)||2&d&&q!==Rt){if(Wi(d))return!1;T=!0}}}}else{if(!T&&!Wi(d)&&!Wi(k))return!1;if(T&&Wi(k))continue;T=!1,d=k|1&d}}return Wi(d)||T}function Wi(t){return 0==(1&t)}function za(t,i,s,d){if(null===i)return-1;let g=0;if(d||!s){let b=!1;for(;g-1)for(s++;s0?'="'+A+'"':"")+"]"}else 8&d?g+="."+T:4&d&&(g+=" "+T);else""!==g&&!Wi(T)&&(i+=da(b,g),g=""),d=T,b=b||!Wi(d);s++}return""!==g&&(i+=da(b,g)),i}function ha(t){return ys(()=>{const i=re(t),s={...i,decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===Qs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Mo.Emulated,styles:t.styles||fr,_:null,schemas:t.schemas||null,tView:null,id:""};ce(s);const d=t.dependencies;return s.directiveDefs=G(d,!1),s.pipeDefs=G(d,!0),s.id=function zt(t){let i=0;const s=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,t.consts,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery].join("|");for(const g of s)i=Math.imul(31,i)+g.charCodeAt(0)<<0;return i+=2147483648,"c"+i}(s),s})}function Ea(t){return nr(t)||ro(t)}function Xo(t){return null!==t}function fa(t){return ys(()=>({type:t.type,bootstrap:t.bootstrap||fr,declarations:t.declarations||fr,imports:t.imports||fr,exports:t.exports||fr,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function ea(t,i){if(null==t)return to;const s={};for(const d in t)if(t.hasOwnProperty(d)){const g=t[d];let b,T,A=vo.None;Array.isArray(g)?(A=g[0],b=g[1],T=g[2]??b):(b=g,T=g),i?(s[b]=A!==vo.None?[d,A]:d,i[b]=T):s[b]=d}return s}function Gl(t){return ys(()=>{const i=re(t);return ce(i),i})}function sl(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function nr(t){return t[he]||null}function ro(t){return t[_e]||null}function Pi(t){return t[ot]||null}function Qo(t){const i=nr(t)||ro(t)||Pi(t);return null!==i&&i.standalone}function Ao(t,i){const s=t[yt]||null;if(!s&&!0===i)throw new Error(`Type ${Ei(t)} does not have '\u0275mod' property.`);return s}function re(t){const i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputTransforms:null,inputConfig:t.inputs||to,exportAs:t.exportAs||null,standalone:!0===t.standalone,signals:!0===t.signals,selectors:t.selectors||fr,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ea(t.inputs,i),outputs:ea(t.outputs),debugInfo:null}}function ce(t){t.features?.forEach(i=>i(t))}function G(t,i){if(!t)return null;const s=i?Pi:Ea;return()=>("function"==typeof t?t():t).map(d=>s(d)).filter(Xo)}const ni=0,Ln=1,Di=2,zr=3,Oo=4,Do=5,bs=6,al=7,$r=8,xo=9,Ro=10,Ui=11,js=12,wl=13,No=14,kr=15,ws=16,pa=17,Vs=18,ma=19,Hl=20,$s=21,Va=22,es=23,Gi=25,ta=1,Cs=7,na=9,oo=10;var $a=function(t){return t[t.None=0]="None",t[t.HasTransplantedViews=2]="HasTransplantedViews",t}($a||{});function Io(t){return Array.isArray(t)&&"object"==typeof t[ta]}function fo(t){return Array.isArray(t)&&!0===t[ta]}function El(t){return 0!=(4&t.flags)}function Za(t){return t.componentOffset>-1}function ql(t){return 1==(1&t.flags)}function Zs(t){return!!t.template}function gc(t){return 0!=(512&t[Di])}function ao(t,i){return t.hasOwnProperty(Dt)?t[Dt]:null}class Es{constructor(i,s,d){this.previousValue=i,this.currentValue=s,this.firstChange=d}isFirstChange(){return this.firstChange}}function Ts(t,i,s,d){null!==i?i.applyValueToInputSignal(i,d):t[s]=d}function Zo(){return zo}function zo(t){return t.type.prototype.ngOnChanges&&(t.setInput=Da),ia}function ia(){const t=Ws(this),i=t?.current;if(i){const s=t.previous;if(s===to)t.previous=i;else for(let d in i)s[d]=i[d];t.current=null,this.ngOnChanges(i)}}function Da(t,i,s,d,g){const b=this.declaredInputs[d],T=Ws(t)||function Du(t,i){return t[li]=i}(t,{previous:to,current:null}),A=T.current||(T.current={}),k=T.previous,q=k[b];A[b]=new Es(q&&q.currentValue,s,k===to),Ts(t,i,g,s)}Zo.ngInherit=!0;const li="__ngSimpleChanges__";function Ws(t){return t[li]||null}const Zr=function(t,i,s){};let Xl=!1;function Fr(t){for(;Array.isArray(t);)t=t[ni];return t}function ll(t,i){return Fr(i[t])}function ts(t,i){return Fr(i[t.index])}function _a(t,i){return t.data[i]}function Wa(t,i){return t[i]}function Lo(t,i){const s=i[t];return Io(s)?s:s[ni]}function Il(t){return 128==(128&t[Di])}function Is(t,i){return null==i?null:t[i]}function Hc(t){t[pa]=0}function Iu(t){1024&t[Di]||(t[Di]|=1024,Il(t)&&cl(t))}function vc(t){return 9216&t[Di]||t[es]?.dirty}function Ia(t){vc(t)?cl(t):64&t[Di]&&(function yc(){return Xl}()?(t[Di]|=1024,cl(t)):t[Ro].changeDetectionScheduler?.notify())}function cl(t){t[Ro].changeDetectionScheduler?.notify();let i=ul(t);for(;null!==i&&!(8192&i[Di])&&(i[Di]|=8192,Il(i));)i=ul(i)}function hs(t,i){if(256==(256&t[Di]))throw new Yt(911,!1);null===t[$s]&&(t[$s]=[]),t[$s].push(i)}function ul(t){const i=t[zr];return fo(i)?i[zr]:i}const Hi={lFrame:z(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pu(){return Hi.bindingsEnabled}function ec(){return null!==Hi.skipHydrationRootTNode}function Sn(){return Hi.lFrame.lView}function gr(){return Hi.lFrame.tView}function hi(t){return Hi.lFrame.contextLView=t,t[$r]}function tc(t){return Hi.lFrame.contextLView=null,t}function Nr(){let t=dl();for(;null!==t&&64===t.type;)t=t.parent;return t}function dl(){return Hi.lFrame.currentTNode}function oi(t,i){const s=Hi.lFrame;s.currentTNode=t,s.isParent=i}function nc(){return Hi.lFrame.isParent}function Yc(){Hi.lFrame.isParent=!1}function ns(){const t=Hi.lFrame;let i=t.bindingRootIndex;return-1===i&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function qa(){return Hi.lFrame.bindingIndex}function oa(){return Hi.lFrame.bindingIndex++}function va(t){const i=Hi.lFrame,s=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,s}function u(t,i){const s=Hi.lFrame;s.bindingIndex=s.bindingRootIndex=t,a(i)}function a(t){Hi.lFrame.currentDirectiveIndex=t}function y(){return Hi.lFrame.currentQueryIndex}function x(t){Hi.lFrame.currentQueryIndex=t}function D(t){const i=t[Ln];return 2===i.type?i.declTNode:1===i.type?t[Do]:null}function I(t,i,s){if(s&_i.SkipSelf){let g=i,b=t;for(;!(g=g.parent,null!==g||s&_i.Host||(g=D(b),null===g||(b=b[No],10&g.type))););if(null===g)return!1;i=g,t=b}const d=Hi.lFrame=U();return d.currentTNode=i,d.lView=t,!0}function R(t){const i=U(),s=t[Ln];Hi.lFrame=i,i.currentTNode=s.firstChild,i.lView=t,i.tView=s,i.contextLView=t,i.bindingIndex=s.bindingStartIndex,i.inI18n=!1}function U(){const t=Hi.lFrame,i=null===t?null:t.child;return null===i?z(t):i}function z(t){const i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=i),i}function Q(){const t=Hi.lFrame;return Hi.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Se=Q;function je(){const t=Q();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function $e(){return Hi.lFrame.selectedIndex}function et(t){Hi.lFrame.selectedIndex=t}function ne(){const t=Hi.lFrame;return _a(t.tView,t.selectedIndex)}let Lt=!0;function qt(){return Lt}function $t(t){Lt=t}function Wn(t,i){for(let s=i.directiveStart,d=i.directiveEnd;s=d)break}else i[k]<0&&(t[pa]+=65536),(A>14>16&&(3&t[Di])===i&&(t[Di]+=16384,sn(A,b)):sn(A,b)}const Zn=-1;class kn{constructor(i,s,d){this.factory=i,this.resolving=!1,this.canSeeViewProviders=s,this.injectImpl=d}}function Ci(t){return t!==Zn}function br(t){return 32767&t}function Ir(t,i){let s=function Gr(t){return t>>16}(t),d=i;for(;s>0;)d=d[No],s--;return d}let Br=!0;function jo(t){const i=Br;return Br=t,i}const sa=255,Aa=5;let co=0;const yr={};function go(t,i){const s=no(t,i);if(-1!==s)return s;const d=i[Ln];d.firstCreatePass&&(t.injectorIndex=i.length,rs(d.data,t),rs(i,null),rs(d.blueprint,null));const g=os(t,i),b=t.injectorIndex;if(Ci(g)){const T=br(g),A=Ir(g,i),k=A[Ln].data;for(let q=0;q<8;q++)i[b+q]=A[T+q]|k[T+q]}return i[b+8]=g,b}function rs(t,i){t.push(0,0,0,0,0,0,0,0,i)}function no(t,i){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===i[t.injectorIndex+8]?-1:t.injectorIndex}function os(t,i){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let s=0,d=null,g=i;for(;null!==g;){if(d=hp(g),null===d)return Zn;if(s++,g=g[No],-1!==d.injectorIndex)return d.injectorIndex|s<<16}return Zn}function xc(t,i,s){!function Er(t,i,s){let d;"string"==typeof s?d=s.charCodeAt(0)||0:s.hasOwnProperty(jt)&&(d=s[jt]),null==d&&(d=s[jt]=co++);const g=d&sa;i.data[t+(g>>Aa)]|=1<=0?i&sa:dp:i}(s);if("function"==typeof b){if(!I(i,t,d))return d&_i.Host?bc(g,0,d):Ya(i,s,d,g);try{let T;if(T=b(d),null!=T||d&_i.Optional)return T;Re()}finally{Se()}}else if("number"==typeof b){let T=null,A=no(t,i),k=Zn,q=d&_i.Host?i[kr][Do]:null;for((-1===A||d&_i.SkipSelf)&&(k=-1===A?os(t,i):i[A+8],k!==Zn&&rg(d,!1)?(T=i[Ln],A=br(k),i=Ir(k,i)):A=-1);-1!==A;){const ge=i[Ln];if(up(b,A,ge.data)){const Je=ku(A,i,s,T,d,q);if(Je!==yr)return Je}k=i[A+8],k!==Zn&&rg(d,i[Ln].data[A+8]===q)&&up(b,A,i)?(T=ge,A=br(k),i=Ir(k,i)):A=-1}}return g}function ku(t,i,s,d,g,b){const T=i[Ln],A=T.data[t+8],ge=Pl(A,T,s,null==d?Za(A)&&Br:d!=T&&0!=(3&A.type),g&_i.Host&&b===A);return null!==ge?fl(i,T,ge,A):yr}function Pl(t,i,s,d,g){const b=t.providerIndexes,T=i.data,A=1048575&b,k=t.directiveStart,ge=b>>20,Rt=g?A+ge:t.directiveEnd;for(let Gt=d?A:A+ge;Gt=k&&Tn.type===s)return Gt}if(g){const Gt=T[k];if(Gt&&Zs(Gt)&&Gt.type===s)return k}return null}function fl(t,i,s,d){let g=t[s];const b=i.data;if(function ti(t){return t instanceof kn}(g)){const T=g;T.resolving&&function ae(t,i){const s=i?`. Dependency path: ${i.join(" > ")} > ${t}`:"";throw new Yt(-200,`Circular dependency in DI detected for ${t}${s}`)}(function Bt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():dt(t)}(b[s]));const A=jo(T.canSeeViewProviders);T.resolving=!0;const q=T.injectImpl?Be(T.injectImpl):null;I(t,d,_i.Default);try{g=t[s]=T.factory(void 0,b,t,d),i.firstCreatePass&&s>=d.directiveStart&&function cn(t,i,s){const{ngOnChanges:d,ngOnInit:g,ngDoCheck:b}=i.type.prototype;if(d){const T=zo(i);(s.preOrderHooks??=[]).push(t,T),(s.preOrderCheckHooks??=[]).push(t,T)}g&&(s.preOrderHooks??=[]).push(0-t,g),b&&((s.preOrderHooks??=[]).push(t,b),(s.preOrderCheckHooks??=[]).push(t,b))}(s,b[s],i)}finally{null!==q&&Be(q),jo(A),T.resolving=!1,Se()}}return g}function up(t,i,s){return!!(s[i+(t>>Aa)]&1<{const i=t.prototype.constructor,s=i[Dt]||pl(i),d=Object.prototype;let g=Object.getPrototypeOf(t.prototype).constructor;for(;g&&g!==d;){const b=g[Dt]||pl(g);if(b&&b!==s)return b;g=Object.getPrototypeOf(g)}return b=>new b})}function pl(t){return Bi(t)?()=>{const i=pl(Jt(t));return i&&i()}:ao(t)}function hp(t){const i=t[Ln],s=i.type;return 2===s?i.declTNode:1===s?t[Do]:null}function Fh(t){return function ic(t,i){if("class"===i)return t.classes;if("style"===i)return t.styles;const s=t.attrs;if(s){const d=s.length;let g=0;for(;g{const d=function Xc(t){return function(...s){if(t){const d=t(...s);for(const g in d)this[g]=d[g]}}}(i);function g(...b){if(this instanceof g)return d.apply(this,b),this;const T=new g(...b);return A.annotation=T,A;function A(k,q,ge){const Je=k.hasOwnProperty(Nu)?k[Nu]:Object.defineProperty(k,Nu,{value:[]})[Nu];for(;Je.length<=ge;)Je.push(null);return(Je[ge]=Je[ge]||[]).push(T),k}}return s&&(g.prototype=Object.create(s.prototype)),g.prototype.ngMetadataName=t,g.annotationCls=g,g})}function Sa(t,i){t.forEach(s=>Array.isArray(s)?Sa(s,i):i(s))}function Ad(t,i,s){i>=t.length?t.push(s):t.splice(i,0,s)}function As(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Ss(t,i,s){let d=Ec(t,i);return d>=0?t[1|d]=s:(d=~d,function zh(t,i,s,d){let g=t.length;if(g==i)t.push(s,d);else if(1===g)t.push(d,t[0]),t[0]=s;else{for(g--,t.push(t[g-1],t[g]);g>i;)t[g]=t[g-2],g--;t[i]=s,t[i+1]=d}}(t,d,i,s)),d}function oc(t,i){const s=Ec(t,i);if(s>=0)return t[1|s]}function Ec(t,i){return function pp(t,i,s){let d=0,g=t.length>>s;for(;g!==d;){const b=d+(g-d>>1),T=t[b<i?g=b:d=b+1}return~(g<{s.push(T)};return Sa(i,T=>{const A=T;ss(A,b,[],d)&&(g||=[],g.push(A))}),void 0!==g&&Vh(g,b),s}function Vh(t,i){for(let s=0;s{i(b,d)})}}function ss(t,i,s,d){if(!(t=Jt(t)))return!1;let g=null,b=On(t);const T=!b&&nr(t);if(b||T){if(T&&!T.standalone)return!1;g=t}else{const k=t.ngModule;if(b=On(k),!b)return!1;g=k}const A=d.has(g);if(T){if(A)return!1;if(d.add(g),T.dependencies){const k="function"==typeof T.dependencies?T.dependencies():T.dependencies;for(const q of k)ss(q,i,s,d)}}else{if(!b)return!1;{if(null!=b.imports&&!A){let q;d.add(g);try{Sa(b.imports,ge=>{ss(ge,i,s,d)&&(q||=[],q.push(ge))})}finally{}void 0!==q&&Vh(q,i)}if(!A){const q=ao(g)||(()=>new g);i({provide:g,useFactory:q,deps:fr},g),i({provide:Uh,useValue:g,multi:!0},g),i({provide:nu,useValue:()=>Dr(g),multi:!0},g)}const k=b.providers;if(null!=k&&!A){const q=t;$h(k,ge=>{i(ge,q)})}}}return g!==t&&void 0!==t.providers}function $h(t,i){for(let s of t)ut(s)&&(s=s.\u0275providers),Array.isArray(s)?$h(s,i):i(s)}const Rl=Mi({provide:String,useValue:Mi});function yp(t){return null!==t&&"object"==typeof t&&Rl in t}function fs(t){return"function"==typeof t}const vp=new V("Set Injector scope."),iu={},gg={};let xp;function Hu(){return void 0===xp&&(xp=new Fd),xp}class as{}class Ka extends as{get destroyed(){return this._destroyed}constructor(i,s,d,g){super(),this.parent=s,this.source=d,this.scopes=g,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Yu(i,T=>this.processProvider(T)),this.records.set(pg,Mc(void 0,this)),g.has("environment")&&this.records.set(as,Mc(void 0,this));const b=this.records.get(vp);null!=b&&"string"==typeof b.value&&this.scopes.add(b.value),this.injectorDefTypes=new Set(this.get(Uh,fr,_i.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const s of this._ngOnDestroyHooks)s.ngOnDestroy();const i=this._onDestroyHooks;this._onDestroyHooks=[];for(const s of i)s()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(i){return this.assertNotDestroyed(),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){this.assertNotDestroyed();const s=Sr(this),d=Be(void 0);try{return i()}finally{Sr(s),Be(d)}}get(i,s=yi,d=_i.Default){if(this.assertNotDestroyed(),i.hasOwnProperty(Vt))return i[Vt](this);d=eo(d);const b=Sr(this),T=Be(void 0);try{if(!(d&_i.SkipSelf)){let k=this.records.get(i);if(void 0===k){const q=function Bd(t){return"function"==typeof t||"object"==typeof t&&t instanceof V}(i)&&Et(i);k=q&&this.injectableDefInScope(q)?Mc(Zh(i),iu):null,this.records.set(i,k)}if(null!=k)return this.hydrate(i,k)}return(d&_i.Self?Hu():this.parent).get(i,s=d&_i.Optional&&s===yi?null:s)}catch(A){if("NullInjectorError"===A.name){if((A[Yi]=A[Yi]||[]).unshift(Ei(i)),b)throw A;return function $o(t,i,s,d){const g=t[Yi];throw i[Ze]&&g.unshift(i[Ze]),t.message=function ds(t,i,s,d=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let g=Ei(i);if(Array.isArray(i))g=i.map(Ei).join(" -> ");else if("object"==typeof i){let b=[];for(let T in i)if(i.hasOwnProperty(T)){let A=i[T];b.push(T+":"+("string"==typeof A?JSON.stringify(A):Ei(A)))}g=`{${b.join(", ")}}`}return`${s}${d?"("+d+")":""}[${g}]: ${t.replace(Oe,"\n ")}`}("\n"+t.message,g,s,d),t.ngTokenPath=g,t[Yi]=null,t}(A,i,"R3InjectorError",this.source)}throw A}finally{Be(T),Sr(b)}}resolveInjectorInitializers(){const i=Sr(this),s=Be(void 0);try{const g=this.get(nu,fr,_i.Self);for(const b of g)b()}finally{Sr(i),Be(s)}}toString(){const i=[],s=this.records;for(const d of s.keys())i.push(Ei(d));return`R3Injector[${i.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Yt(205,!1)}processProvider(i){let s=fs(i=Jt(i))?i:Jt(i&&i.provide);const d=function _y(t){return yp(t)?Mc(void 0,t.useValue):Mc(Nd(t),iu)}(i);if(!fs(i)&&!0===i.multi){let g=this.records.get(s);g||(g=Mc(void 0,iu,!0),g.factory=()=>Bs(g.multi),this.records.set(s,g)),s=i,g.multi.push(i)}this.records.set(s,d)}hydrate(i,s){return s.value===iu&&(s.value=gg,s.value=s.factory()),"object"==typeof s.value&&s.value&&function qu(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(s.value)&&this._ngOnDestroyHooks.add(s.value),s.value}injectableDefInScope(i){if(!i.providedIn)return!1;const s=Jt(i.providedIn);return"string"==typeof s?"any"===s||this.scopes.has(s):this.injectorDefTypes.has(s)}removeOnDestroy(i){const s=this._onDestroyHooks.indexOf(i);-1!==s&&this._onDestroyHooks.splice(s,1)}}function Zh(t){const i=Et(t),s=null!==i?i.factory:ao(t);if(null!==s)return s;if(t instanceof V)throw new Yt(204,!1);if(t instanceof Function)return function _g(t){if(t.length>0)throw new Yt(204,!1);const s=function Hn(t){return t&&(t[Kn]||t[ki])||null}(t);return null!==s?()=>s.factory(t):()=>new t}(t);throw new Yt(204,!1)}function Nd(t,i,s){let d;if(fs(t)){const g=Jt(t);return ao(g)||Zh(g)}if(yp(t))d=()=>Jt(t.useValue);else if(function Gu(t){return!(!t||!t.useFactory)}(t))d=()=>t.useFactory(...Bs(t.deps||[]));else if(function Ic(t){return!(!t||!t.useExisting)}(t))d=()=>Dr(Jt(t.useExisting));else{const g=Jt(t&&(t.useClass||t.provide));if(!function Wu(t){return!!t.deps}(t))return ao(g)||Zh(g);d=()=>new g(...Bs(t.deps))}return d}function Mc(t,i,s=!1){return{factory:t,value:i,multi:s?[]:void 0}}function Yu(t,i){for(const s of t)Array.isArray(s)?Yu(s,i):s&&ut(s)?Yu(s.\u0275providers,i):i(s)}function yg(t,i){t instanceof Ka&&t.assertNotDestroyed();const d=Sr(t),g=Be(void 0);try{return i()}finally{Sr(d),Be(g)}}function Ep(t,i=null,s=null,d){const g=sc(t,i,s,d);return g.resolveInjectorInitializers(),g}function sc(t,i=null,s=null,d,g=new Set){const b=[s||fr,_p(t)];return d=d||("object"==typeof t?void 0:Ei(t)),new Ka(b,i||Hu(),d||null,g)}let Ho,pr=(()=>{class t{static#e=this.THROW_IF_NOT_FOUND=yi;static#t=this.NULL=new Fd;static create(s,d){if(Array.isArray(s))return Ep({name:""},d,s,"");{const g=s.name??"";return Ep({name:g},s.parent,s.providers,g)}}static#n=this.\u0275prov=qi({token:t,providedIn:"any",factory:()=>Dr(pg)});static#i=this.__NG_ELEMENT_ID__=-1}return t})();function Os(t){return!!Ao(t)}function bg(t){Ho=t}const Wh=new V("AppId",{providedIn:"root",factory:()=>wg}),wg="ng",qh=new V("Platform Initializer"),Tp=new V("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),by=new V("CSP nonce",{providedIn:"root",factory:()=>function Oa(){if(void 0!==Ho)return Ho;if(typeof document<"u")return document;throw new Yt(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Ra(t){return t instanceof Function?t():t}function Gd(t){return 128==(128&t.flags)}var Pc=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}(Pc||{});const Sy=/^>|^->||--!>|)/g,Oy="\u200b$1\u200b";const Sp=new Map;let Ry=0;const Qu="__ngContext__";function ls(t,i){Io(i)?(t[Qu]=i[ma],function Pp(t){Sp.set(t[ma],t)}(i)):t[Qu]=i}let qd;function Np(t,i){return qd(t,i)}function Oc(t,i,s,d,g){if(null!=d){let b,T=!1;fo(d)?b=d:Io(d)&&(T=!0,d=d[ni]);const A=Fr(d);0===t&&null!==s?null==g?cf(i,s,A):uu(i,s,A,g||null,!0):1===t&&null!==s?uu(i,s,A,g||null,!0):2===t?function Qd(t,i,s){const d=df(t,i);d&&function uf(t,i,s,d){t.removeChild(i,s,d)}(t,d,i,s)}(i,A,T):3===t&&i.destroyNode(A),null!=b&&function Bg(t,i,s,d,g){const b=s[Cs];b!==Fr(s)&&Oc(i,t,d,b,g);for(let A=oo;Ai.replace(Py,Oy))}(i))}function sf(t,i,s){return t.createElement(i,s)}function Pg(t,i){pf(t,i,i[Ui],2,null,null)}function cu(t,i){const s=t[na],d=s.indexOf(i);s.splice(d,1)}function Yd(t,i){if(t.length<=oo)return;const s=oo+i,d=t[s];if(d){const g=d[ws];null!==g&&g!==t&&cu(g,d),i>0&&(t[s-1][Oo]=d[Oo]);const b=As(t,oo+i);!function By(t,i){Pg(t,i),i[ni]=null,i[Do]=null}(d[Ln],d);const T=b[Vs];null!==T&&T.detachView(b[Ln]),d[zr]=null,d[Oo]=null,d[Di]&=-129}return d}function lf(t,i){if(!(256&i[Di])){const s=i[Ui];s.destroyNode&&pf(t,i,s,3,null,null),function af(t){let i=t[js];if(!i)return Up(t[Ln],t);for(;i;){let s=null;if(Io(i))s=i[js];else{const d=i[oo];d&&(s=d)}if(!s){for(;i&&!i[Oo]&&i!==t;)Io(i)&&Up(i[Ln],i),i=i[zr];null===i&&(i=t),Io(i)&&Up(i[Ln],i),s=i&&i[Oo]}i=s}}(i)}}function Up(t,i){if(!(256&i[Di])){i[Di]&=-129,i[Di]|=256,i[es]&&function Ie(t){if(ct(t),Ue(t))for(let i=0;i=0?d[T]():d[-T].unsubscribe(),b+=2}else s[b].call(d[s[b+1]]);null!==d&&(i[al]=null);const g=i[$s];if(null!==g){i[$s]=null;for(let b=0;b-1){const{encapsulation:b}=t.data[d.directiveStart+g];if(b===Mo.None||b===Mo.Emulated)return null}return ts(d,s)}}(t,i.parent,s)}function uu(t,i,s,d,g){t.insertBefore(i,s,d,g)}function cf(t,i,s){t.appendChild(i,s)}function Jd(t,i,s,d,g){null!==d?uu(t,i,s,d,g):cf(t,i,s)}function df(t,i){return t.parentNode(i)}function ed(t,i,s){return td(t,i,s)}let hf,gf,td=function Vp(t,i,s){return 40&t.type?ts(t,s):null};function Xd(t,i,s,d){const g=jp(t,d,i),b=i[Ui],A=ed(d.parent||i[Do],d,i);if(null!=g)if(Array.isArray(s))for(let k=0;kt,createScript:t=>t,createScriptURL:t=>t})}catch{}return gf}()?.createScriptURL(t)||t}class qp{constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hn})`}}function uc(t){return t instanceof qp?t.changingThisBreaksApplicationSecurity:t}function ih(t,i){const s=function cs(t){return t instanceof qp&&t.getTypeName()||null}(t);if(null!=s&&s!==i){if("ResourceURL"===s&&"URL"===i)return!0;throw new Error(`Required a safe ${i}, got a ${s} (see ${hn})`)}return s===i}const Vg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var ad=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}(ad||{});function vf(t){const i=hu();return i?i.sanitize(ad.URL,t)||"":ih(t,"URL")?uc(t):function _f(t){return(t=String(t)).match(Vg)?t:"unsafe:"+t}(dt(t))}function xf(t){const i=hu();if(i)return Wp(i.sanitize(ad.RESOURCE_URL,t)||"");if(ih(t,"ResourceURL"))return Wp(uc(t));throw new Yt(904,!1)}function nm(t,i,s){return function La(t,i){return"src"===i&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===i&&("base"===t||"link"===t)?xf:vf}(i,s)(t)}function hu(){const t=Sn();return t&&t[Ro].sanitizer}class ch{}let ud=()=>null;function ka(t,i,s=!1){return ud(t,i,s)}class av{}class Jg{}class lv{resolveComponentFactory(i){throw function pd(t){const i=Error(`No component factory found for ${Ei(t)}.`);return i.ngComponent=t,i}(i)}}let fh=(()=>{class t{static#e=this.NULL=new lv}return t})();function cv(){return kc(Nr(),Sn())}function kc(t,i){return new ph(ts(t,i))}let ph=(()=>{class t{constructor(s){this.nativeElement=s}static#e=this.__NG_ELEMENT_ID__=cv}return t})();function mh(t){return t instanceof ph?t.nativeElement:t}class hc{}let Xg=(()=>{class t{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function Qg(){const t=Sn(),s=Lo(Nr().index,t);return(Io(s)?s:t)[Ui]}()}return t})(),Pf=(()=>{class t{static#e=this.\u0275prov=qi({token:t,providedIn:"root",factory:()=>null})}return t})();const gh={};function Fc(t){const i=Y(null);try{return t()}finally{Y(i)}}function Nc(t){return!!mu(t)&&(Array.isArray(t)||!(t instanceof Map)&&Symbol.iterator in t)}function mu(t){return null!==t&&("function"==typeof t||"object"==typeof t)}class vh{constructor(){}supports(i){return Nc(i)}create(i){return new pv(i)}}const fv=(t,i)=>i;class pv{constructor(i){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=i||fv}forEachItem(i){let s;for(s=this._itHead;null!==s;s=s._next)i(s)}forEachOperation(i){let s=this._itHead,d=this._removalsHead,g=0,b=null;for(;s||d;){const T=!d||s&&s.currentIndex{T=this._trackByFn(g,A),null!==s&&Object.is(s.trackById,T)?(d&&(s=this._verifyReinsertion(s,A,T,g)),Object.is(s.item,A)||this._addIdentityChange(s,A)):(s=this._mismatch(s,A,T,g),d=!0),s=s._next,g++}),this.length=g;return this._truncate(s),this.collection=i,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;null!==i;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;null!==i;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,s,d,g){let b;return null===i?b=this._itTail:(b=i._prev,this._remove(i)),null!==(i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null))?(Object.is(i.item,s)||this._addIdentityChange(i,s),this._reinsertAfter(i,b,g)):null!==(i=null===this._linkedRecords?null:this._linkedRecords.get(d,g))?(Object.is(i.item,s)||this._addIdentityChange(i,s),this._moveAfter(i,b,g)):i=this._addAfter(new gd(s,d),b,g),i}_verifyReinsertion(i,s,d,g){let b=null===this._unlinkedRecords?null:this._unlinkedRecords.get(d,null);return null!==b?i=this._reinsertAfter(b,i._prev,g):i.currentIndex!=g&&(i.currentIndex=g,this._addToMoves(i,g)),i}_truncate(i){for(;null!==i;){const s=i._next;this._addToRemovals(this._unlink(i)),i=s}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,s,d){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(i);const g=i._prevRemoved,b=i._nextRemoved;return null===g?this._removalsHead=b:g._nextRemoved=b,null===b?this._removalsTail=g:b._prevRemoved=g,this._insertAfter(i,s,d),this._addToMoves(i,d),i}_moveAfter(i,s,d){return this._unlink(i),this._insertAfter(i,s,d),this._addToMoves(i,d),i}_addAfter(i,s,d){return this._insertAfter(i,s,d),this._additionsTail=null===this._additionsTail?this._additionsHead=i:this._additionsTail._nextAdded=i,i}_insertAfter(i,s,d){const g=null===s?this._itHead:s._next;return i._next=g,i._prev=s,null===g?this._itTail=i:g._prev=i,null===s?this._itHead=i:s._next=i,null===this._linkedRecords&&(this._linkedRecords=new e_),this._linkedRecords.put(i),i.currentIndex=d,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){null!==this._linkedRecords&&this._linkedRecords.remove(i);const s=i._prev,d=i._next;return null===s?this._itHead=d:s._next=d,null===d?this._itTail=s:d._prev=s,i}_addToMoves(i,s){return i.previousIndex===s||(this._movesTail=null===this._movesTail?this._movesHead=i:this._movesTail._nextMoved=i),i}_addToRemovals(i){return null===this._unlinkedRecords&&(this._unlinkedRecords=new e_),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,s){return i.item=s,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=i:this._identityChangesTail._nextIdentityChange=i,i}}class gd{constructor(i,s){this.item=i,this.trackById=s,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Of{constructor(){this._head=null,this._tail=null}add(i){null===this._head?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,s){let d;for(d=this._head;null!==d;d=d._nextDup)if((null===s||s<=d.currentIndex)&&Object.is(d.trackById,i))return d;return null}remove(i){const s=i._prevDup,d=i._nextDup;return null===s?this._head=d:s._nextDup=d,null===d?this._tail=s:d._prevDup=s,null===this._head}}class e_{constructor(){this.map=new Map}put(i){const s=i.trackById;let d=this.map.get(s);d||(d=new Of,this.map.set(s,d)),d.add(i)}get(i,s){const g=this.map.get(i);return g?g.get(i,s):null}remove(i){const s=i.trackById;return this.map.get(s).remove(i)&&this.map.delete(s),i}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function sm(t,i,s){const d=t.previousIndex;if(null===d)return d;let g=0;return s&&d{if(s&&s.key===g)this._maybeAddToChanges(s,d),this._appendAfter=s,s=s._next;else{const b=this._getOrCreateRecordForKey(g,d);s=this._insertBeforeOrAppend(s,b)}}),s){s._prev&&(s._prev._next=null),this._removalsHead=s;for(let d=s;null!==d;d=d._nextRemoved)d===this._mapHead&&(this._mapHead=null),this._records.delete(d.key),d._nextRemoved=d._next,d.previousValue=d.currentValue,d.currentValue=null,d._prev=null,d._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,s){if(i){const d=i._prev;return s._next=i,s._prev=d,i._prev=s,d&&(d._next=s),i===this._mapHead&&(this._mapHead=s),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=s,s._prev=this._appendAfter):this._mapHead=s,this._appendAfter=s,null}_getOrCreateRecordForKey(i,s){if(this._records.has(i)){const g=this._records.get(i);this._maybeAddToChanges(g,s);const b=g._prev,T=g._next;return b&&(b._next=T),T&&(T._prev=b),g._next=null,g._prev=null,g}const d=new t_(i);return this._records.set(i,d),d.currentValue=s,this._addToAdditions(d),d}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;null!==i;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;null!==i;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;null!=i;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,s){Object.is(s,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=s,this._addToChanges(i))}_addToAdditions(i){null===this._additionsHead?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){null===this._changesHead?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,s){i instanceof Map?i.forEach(s):Object.keys(i).forEach(d=>s(i[d],d))}}class t_{constructor(i){this.key=i,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function n_(){return new Rf([new vh])}let Rf=(()=>{class t{static#e=this.\u0275prov=qi({token:t,providedIn:"root",factory:n_});constructor(s){this.factories=s}static create(s,d){if(null!=d){const g=d.factories.slice();s=s.concat(g)}return new t(s)}static extend(s){return{provide:t,useFactory:d=>t.create(s,d||n_()),deps:[[t,new qs,new Tc]]}}find(s){const d=this.factories.find(g=>g.supports(s));if(null!=d)return d;throw new Yt(901,!1)}}return t})();function lm(){return new cm([new am])}let cm=(()=>{class t{static#e=this.\u0275prov=qi({token:t,providedIn:"root",factory:lm});constructor(s){this.factories=s}static create(s,d){if(d){const g=d.factories.slice();s=s.concat(g)}return new t(s)}static extend(s){return{provide:t,useFactory:d=>t.create(s,d||lm()),deps:[[t,new qs,new Tc]]}}find(s){const d=this.factories.find(g=>g.supports(s));if(d)return d;throw new Yt(901,!1)}}return t})();function Bc(t,i,s,d,g=!1){for(;null!==s;){const b=i[s.index];null!==b&&d.push(Fr(b)),fo(b)&&xh(b,d);const T=s.type;if(8&T)Bc(t,i,s.child,d);else if(32&T){const A=Np(s,i);let k;for(;k=A();)d.push(k)}else if(16&T){const A=$p(i,s);if(Array.isArray(A))d.push(...A);else{const k=ul(i[kr]);Bc(k[Ln],k,A,d,!0)}}s=g?s.projectionNext:s.next}return d}function xh(t,i){for(let s=oo;s!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:t=>{cl(t.lView)},consumerOnSignalRead(){this.lView[es]=this}};function fm(t){return i_(t[js])}function wh(t){return i_(t[Oo])}function i_(t){for(;null!==t&&!fo(t);)t=t[Oo];return t}function pm(t){return t.ngOriginalError}class Nl{constructor(){this._console=console}handleError(i){const s=this._findOriginalError(i);this._console.error("ERROR",i),s&&this._console.error("ORIGINAL ERROR",s)}_findOriginalError(i){let s=i&&pm(i);for(;s&&pm(s);)s=pm(s);return s||null}}const o_=new V("",{providedIn:"root",factory:()=>ji(Nl).handleError.bind(void 0)}),a_=new V("",{providedIn:"root",factory:()=>!1}),sr={};function u_(t=1){ym(gr(),Sn(),$e()+t,!1)}function ym(t,i,s,d){if(!d)if(3==(3&i[Di])){const b=t.preOrderCheckHooks;null!==b&&nn(i,b,s)}else{const b=t.preOrderHooks;null!==b&&Mn(i,b,0,s)}et(s)}function yu(t,i=_i.Default){const s=Sn();return null===s?Dr(t,i):hl(Nr(),s,Jt(t),i)}function vm(){throw new Error("invalid")}function xm(t,i,s,d,g,b){const T=Y(null);try{let A=null;g&vo.SignalBased&&(A=i[d][B]),null!==A&&void 0!==A.transformFn&&(b=A.transformFn(b)),g&vo.HasDecoratorInputTransform&&(b=t.inputTransforms[d].call(i,b)),null!==t.setInput?t.setInput(i,A,b,s,d):Ts(i,A,d,b)}finally{Y(T)}}function Ch(t,i,s,d,g,b,T,A,k,q,ge){const Je=i.blueprint.slice();return Je[ni]=g,Je[Di]=204|d,(null!==q||t&&2048&t[Di])&&(Je[Di]|=2048),Hc(Je),Je[zr]=Je[No]=t,Je[$r]=s,Je[Ro]=T||t&&t[Ro],Je[Ui]=A||t&&t[Ui],Je[xo]=k||t&&t[xo]||null,Je[Do]=b,Je[ma]=function Ly(){return Ry++}(),Je[bs]=ge,Je[Hl]=q,Je[kr]=2==i.type?t[kr]:Je,Je}function vu(t,i,s,d,g){let b=t.data[i];if(null===b)b=function zl(t,i,s,d,g){const b=dl(),T=nc(),k=t.data[i]=function p_(t,i,s,d,g,b){let T=i?i.injectorIndex:-1,A=0;return ec()&&(A|=128),{type:s,index:d,insertBeforeIndex:null,injectorIndex:T,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:A,providerIndexes:0,value:g,attrs:b,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,T?b:b&&b.parent,s,i,d,g);return null===t.firstChild&&(t.firstChild=k),null!==b&&(T?null==b.child&&null!==k.parent&&(b.child=k):null===b.next&&(b.next=k,k.prev=b)),k}(t,i,s,d,g),function Lu(){return Hi.lFrame.inI18n}()&&(b.flags|=32);else if(64&b.type){b.type=s,b.value=d,b.attrs=g;const T=function ra(){const t=Hi.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}();b.injectorIndex=null===T?-1:T.injectorIndex}return oi(b,!0),b}function _d(t,i,s,d){if(0===s)return-1;const g=i.length;for(let b=0;bGi&&ym(t,i,Gi,!1),Zr(T?2:0,g),s(d,g)}finally{et(b),Zr(T?3:1,g)}}function bm(t,i,s){if(El(i)){const d=Y(null);try{const b=i.directiveEnd;for(let T=i.directiveStart;Tnull;function vd(t,i,s,d,g){for(let b in i){if(!i.hasOwnProperty(b))continue;const T=i[b];if(void 0===T)continue;d??={};let A,k=vo.None;Array.isArray(T)?(A=T[0],k=T[1]):A=T;let q=b;if(null!==g){if(!g.hasOwnProperty(b))continue;q=g[b]}0===t?Th(d,s,q,A,k):Th(d,s,q,A)}return d}function Th(t,i,s,d,g){let b;t.hasOwnProperty(s)?(b=t[s]).push(i,d):b=t[s]=[i,d],void 0!==g&&b.push(g)}function Fa(t,i,s,d,g,b,T,A){const k=ts(i,s);let ge,q=i.inputs;!A&&null!=q&&(ge=q[d])?(Le(t,s,ge,d,g),Za(i)&&function __(t,i){const s=Lo(i,t);16&s[Di]||(s[Di]|=64)}(s,i.index)):3&i.type&&(d=function g_(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(d),g=null!=T?T(g,i.value||"",d):g,b.setProperty(k,d,g))}function Tm(t,i,s,d){if(Pu()){const g=null===d?null:{"":-1},b=function w_(t,i){const s=t.directiveRegistry;let d=null,g=null;if(s)for(let b=0;b0;){const s=t[--i];if("number"==typeof s&&s<0)return s}return 0})(T)!=A&&T.push(A),T.push(s,d,b)}}(t,i,d,_d(t,s,g.hostVars,sr),g)}function c(t,i,s,d,g,b){const T=ts(t,i);!function f(t,i,s,d,g,b,T){if(null==b)t.removeAttribute(i,g,s);else{const A=null==T?dt(b):T(b,d||"",g);t.setAttribute(i,g,A,s)}}(i[Ui],T,b,t.value,s,d,g)}function _(t,i,s,d,g,b){const T=b[i];if(null!==T)for(let A=0;At.nextProducerIndex;)t.producerNode.pop(),t.producerLastReadVersion.pop(),t.producerIndexOfThis.pop()}}(A,T),function dm(t){t.lView[es]!==t&&(t.lView=null,bh.push(t))}(A)),je()}}function rn(t,i){for(let s=fm(t);null!==s;s=wh(s))for(let d=oo;d-1&&(Yd(i,d),As(s,d))}this._attachedToViewContainer=!1}lf(this._lView[Ln],this._lView)}onDestroy(i){hs(this._lView,i)}markForCheck(){zn(this._cdRefInjectingView||this._lView)}detach(){this._lView[Di]&=-129}reattach(){Ia(this._lView),this._lView[Di]|=128}detectChanges(){this._lView[Di]|=1024,function at(t,i=!0){const s=t[Ro],d=s.rendererFactory;d.begin?.();try{!function xt(t){Pn(t,0);let i=0;for(;vc(t);){if(100===i)throw new Yt(103,!1);i++,Pn(t,1)}}(t)}catch(b){throw i&&se(t,b),b}finally{d.end?.(),s.inlineEffectRunner?.flush()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Yt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Pg(this._lView[Ln],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new Yt(902,!1);this._appRef=i,Ia(this._lView)}}let En=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=ai}return t})();function ai(t){return function gi(t,i,s){if(Za(t)&&!s){const d=Lo(t.index,i);return new Qn(d,d)}return 47&t.type?new Qn(i[kr],i):null}(Nr(),Sn(),16==(16&t))}let Zi=(()=>{class t{static#e=this.__NG_ELEMENT_ID__=Ki;static#t=this.__NG_ENV_ID__=s=>s}return t})();class wr extends Zi{constructor(i){super(),this._lView=i}onDestroy(i){return hs(this._lView,i),()=>function Wc(t,i){if(null===t[$s])return;const s=t[$s].indexOf(i);-1!==s&&t[$s].splice(s,1)}(this._lView,i)}}function Ki(){return new wr(Sn())}const Wr=new Set;function Cr(t){Wr.has(t)||(Wr.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}function mo(t){return i=>{setTimeout(t,void 0,i)}}const qr=class po extends Cn.x{constructor(i=!1){super(),this.__isAsync=i}emit(i){super.next(i)}subscribe(i,s,d){let g=i,b=s||(()=>null),T=d;if(i&&"object"==typeof i){const k=i;g=k.next?.bind(k),b=k.error?.bind(k),T=k.complete?.bind(k)}this.__isAsync&&(b=mo(b),g&&(g=mo(g)),T&&(T=mo(T)));const A=super.subscribe({next:g,error:b,complete:T});return i instanceof It.w0&&i.add(A),A}};function Ur(...t){}class ar{constructor({enableLongStackTrace:i=!1,shouldCoalesceEventChangeDetection:s=!1,shouldCoalesceRunChangeDetection:d=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qr(!1),this.onMicrotaskEmpty=new qr(!1),this.onStable=new qr(!1),this.onError=new qr(!1),typeof Zone>"u")throw new Yt(908,!1);Zone.assertZonePatched();const g=this;g._nesting=0,g._outer=g._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(g._inner=g._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(g._inner=g._inner.fork(Zone.longStackTraceZoneSpec)),g.shouldCoalesceEventChangeDetection=!d&&s,g.shouldCoalesceRunChangeDetection=d,g.lastRequestAnimationFrameId=-1,g.nativeRequestAnimationFrame=function ko(){const t="function"==typeof St.requestAnimationFrame;let i=St[t?"requestAnimationFrame":"setTimeout"],s=St[t?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&i&&s){const d=i[Zone.__symbol__("OriginalDelegate")];d&&(i=d);const g=s[Zone.__symbol__("OriginalDelegate")];g&&(s=g)}return{nativeRequestAnimationFrame:i,nativeCancelAnimationFrame:s}}().nativeRequestAnimationFrame,function Ks(t){const i=()=>{!function Qr(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(St,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Co(t),t.isCheckStableRunning=!0,wo(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Co(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(s,d,g,b,T,A)=>{if(function qo(t){return!(!Array.isArray(t)||1!==t.length)&&!0===t[0].data?.__ignore_ng_zone__}(A))return s.invokeTask(g,b,T,A);try{return Wo(t),s.invokeTask(g,b,T,A)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===b.type||t.shouldCoalesceRunChangeDetection)&&i(),Vo(t)}},onInvoke:(s,d,g,b,T,A,k)=>{try{return Wo(t),s.invoke(g,b,T,A,k)}finally{t.shouldCoalesceRunChangeDetection&&i(),Vo(t)}},onHasTask:(s,d,g,b)=>{s.hasTask(g,b),d===g&&("microTask"==b.change?(t._hasPendingMicrotasks=b.microTask,Co(t),wo(t)):"macroTask"==b.change&&(t.hasPendingMacrotasks=b.macroTask))},onHandleError:(s,d,g,b)=>(s.handleError(g,b),t.runOutsideAngular(()=>t.onError.emit(b)),!1)})}(g)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ar.isInAngularZone())throw new Yt(909,!1)}static assertNotInAngularZone(){if(ar.isInAngularZone())throw new Yt(909,!1)}run(i,s,d){return this._inner.run(i,s,d)}runTask(i,s,d,g){const b=this._inner,T=b.scheduleEventTask("NgZoneEvent: "+g,i,Tr,Ur,Ur);try{return b.runTask(T,s,d)}finally{b.cancelTask(T)}}runGuarded(i,s,d){return this._inner.runGuarded(i,s,d)}runOutsideAngular(i){return this._outer.run(i)}}const Tr={};function wo(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Co(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Wo(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Vo(t){t._nesting--,wo(t)}class ks{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qr,this.onMicrotaskEmpty=new qr,this.onStable=new qr,this.onError=new qr}run(i,s,d){return i.apply(s,d)}runGuarded(i,s,d){return i.apply(s,d)}runOutsideAngular(i){return i()}runTask(i,s,d,g){return i.apply(s,d)}}var nl=function(t){return t[t.EarlyRead=0]="EarlyRead",t[t.Write=1]="Write",t[t.MixedReadWrite=2]="MixedReadWrite",t[t.Read=3]="Read",t}(nl||{});const xd={destroy(){}};function Mm(t,i){!i&&function ru(t){if(!Ee()&&!function Fi(){return Nt}())throw new Yt(-203,!1)}();const s=i?.injector??ji(pr);if(!function lc(t){return"browser"===(t??ji(pr)).get(Tp)}(s))return xd;Cr("NgAfterNextRender");const d=s.get(Cu),g=d.handler??=new Sm,b=i?.phase??nl.MixedReadWrite,T=()=>{g.unregister(k),A()},A=s.get(Zi).onDestroy(T),k=new Am(s,b,()=>{T(),t()});return g.register(k),{destroy:T}}class Am{constructor(i,s,d){this.phase=s,this.callbackFn=d,this.zone=i.get(ar),this.errorHandler=i.get(Nl,null,{optional:!0})}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(i){this.errorHandler?.handleError(i)}}}class Sm{constructor(){this.executingCallbacks=!1,this.buckets={[nl.EarlyRead]:new Set,[nl.Write]:new Set,[nl.MixedReadWrite]:new Set,[nl.Read]:new Set},this.deferredCallbacks=new Set}register(i){(this.executingCallbacks?this.deferredCallbacks:this.buckets[i.phase]).add(i)}unregister(i){this.buckets[i.phase].delete(i),this.deferredCallbacks.delete(i)}execute(){let i=!1;this.executingCallbacks=!0;for(const s of Object.values(this.buckets))for(const d of s)i=!0,d.invoke();this.executingCallbacks=!1;for(const s of this.deferredCallbacks)this.buckets[s.phase].add(s);return this.deferredCallbacks.clear(),i}destroy(){for(const i of Object.values(this.buckets))i.clear();this.deferredCallbacks.clear()}}let Cu=(()=>{class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){const s=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const g of s)g();return!!this.handler?.execute()||s.length>0}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=qi({token:t,providedIn:"root",factory:()=>new t})}return t})();function Pm(t,i){const s=Lo(i,t),d=s[Ln];!function jl(t,i){for(let s=i.length;s0&&du(t,s,b.join(" "))}}(Rt,jr,Tn,d),void 0!==s&&function fC(t,i,s){const d=t.projection=[];for(let g=0;g=0;d--){const g=t[d];g.hostVars=i+=g.hostVars,g.hostAttrs=vs(g.hostAttrs,s=vs(s,g.hostAttrs))}}(d)}function mC(t,i){for(const s in i.inputs){if(!i.inputs.hasOwnProperty(s)||t.inputs.hasOwnProperty(s))continue;const d=i.inputs[s];if(void 0!==d&&(t.inputs[s]=d,t.declaredInputs[s]=i.declaredInputs[s],null!==i.inputTransforms)){const g=Array.isArray(d)?d[0]:d;if(!i.inputTransforms.hasOwnProperty(g))continue;t.inputTransforms??={},t.inputTransforms[g]=i.inputTransforms[g]}}}function D_(t){return t===to?{}:t===fr?[]:t}function _C(t,i){const s=t.viewQuery;t.viewQuery=s?(d,g)=>{i(d,g),s(d,g)}:i}function yC(t,i){const s=t.contentQueries;t.contentQueries=s?(d,g,b)=>{i(d,g,b),s(d,g,b)}:i}function vC(t,i){const s=t.hostBindings;t.hostBindings=s?(d,g)=>{i(d,g),s(d,g)}:i}function lx(t){const i=t.inputConfig,s={};for(const d in i)if(i.hasOwnProperty(d)){const g=i[d];Array.isArray(g)&&g[3]&&(s[d]=g[3])}t.inputTransforms=s}function Uf(t,i){return!i||null===i.firstChild||Gd(t)}function zm(t,i,s,d=!0){const g=i[Ln];if(function Uy(t,i,s,d){const g=oo+d,b=s.length;d>0&&(s[g-1][Oo]=i),d{class t{static#e=this.__NG_ELEMENT_ID__=HC}return t})();function HC(){return yx(Nr(),Sn())}const WC=P_,gx=class extends WC{constructor(i,s,d){super(),this._lContainer=i,this._hostTNode=s,this._hostLView=d}get element(){return kc(this._hostTNode,this._hostLView)}get injector(){return new Go(this._hostTNode,this._hostLView)}get parentInjector(){const i=os(this._hostTNode,this._hostLView);if(Ci(i)){const s=Ir(i,this._hostLView),d=br(i);return new Go(s[Ln].data[d+8],s)}return new Go(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){const s=_x(this._lContainer);return null!==s&&s[i]||null}get length(){return this._lContainer.length-oo}createEmbeddedView(i,s,d){let g,b;"number"==typeof d?g=d:null!=d&&(g=d.index,b=d.injector);const A=i.createEmbeddedViewImpl(s||{},b,null);return this.insertImpl(A,g,Uf(this._hostTNode,null)),A}createComponent(i,s,d,g,b){const T=i&&!function Md(t){return"function"==typeof t}(i);let A;if(T)A=s;else{const Tn=s||{};A=Tn.index,d=Tn.injector,g=Tn.projectableNodes,b=Tn.environmentInjector||Tn.ngModuleRef}const k=T?i:new ms(nr(i)),q=d||this.parentInjector;if(!b&&null==k.ngModule){const ii=(T?q:this.parentInjector).get(as,null);ii&&(b=ii)}nr(k.componentType??{});const Gt=k.create(q,g,null,b);return this.insertImpl(Gt.hostView,A,Uf(this._hostTNode,null)),Gt}insert(i,s){return this.insertImpl(i,s,!0)}insertImpl(i,s,d){const g=i._lView;if(function Ml(t){return fo(t[zr])}(g)){const A=this.indexOf(i);if(-1!==A)this.detach(A);else{const k=g[zr],q=new gx(k,k[Do],k[zr]);q.detach(q.indexOf(i))}}const b=this._adjustIndex(s),T=this._lContainer;return zm(T,g,b,d),i.attachToViewContainerRef(),Ad(Sv(T),b,i),i}move(i,s){return this.insert(i,s)}indexOf(i){const s=_x(this._lContainer);return null!==s?s.indexOf(i):-1}remove(i){const s=this._adjustIndex(i,-1),d=Yd(this._lContainer,s);d&&(As(Sv(this._lContainer),s),lf(d[Ln],d))}detach(i){const s=this._adjustIndex(i,-1),d=Yd(this._lContainer,s);return d&&null!=As(Sv(this._lContainer),s)?new Qn(d):null}_adjustIndex(i,s=0){return i??this.length+s}};function _x(t){return t[8]}function Sv(t){return t[8]||(t[8]=[])}function yx(t,i){let s;const d=i[t.index];return fo(d)?s=d:(s=w(d,i,null,t),i[t.index]=s,M(i,s)),vx(s,i,t,d),new gx(s,t,i)}let vx=function bx(t,i,s,d){if(t[Cs])return;let g;g=8&s.type?Fr(d):function qC(t,i){const s=t[Ui],d=s.createComment(""),g=ts(i,t);return uu(s,df(s,g),d,function Kd(t,i){return t.nextSibling(i)}(s,g),!1),d}(i,s),t[Cs]=g},Pv=()=>!1;function jc(t,i,s){return t[i]=s}function gs(t,i,s){return!Object.is(t[i],s)&&(t[i]=s,!0)}function Ih(t,i,s,d){const g=gs(t,i,s);return gs(t,i+1,d)||g}function jf(t,i,s,d,g,b,T,A){const k=Sn(),q=gr(),ge=t+Gi,Je=q.firstCreatePass?function XC(t,i,s,d,g,b,T,A,k){const q=i.consts,ge=vu(i,t,4,T||null,Is(q,A));Tm(i,s,ge,Is(q,k)),Wn(i,ge);const Je=ge.tView=Eh(2,ge,d,g,b,i.directiveRegistry,i.pipeRegistry,null,i.schemas,q,null);return null!==i.queries&&(i.queries.template(i,ge),Je.queries=i.queries.embeddedTView(ge)),ge}(ge,q,k,i,s,d,g,b,T):q.data[ge];oi(Je,!1);const Rt=wx(q,k,Je,t);qt()&&Xd(q,k,Rt,Je),ls(Rt,k);const Gt=w(Rt,k,Rt,Je);return k[ge]=Gt,M(k,Gt),function xx(t,i,s){return Pv(t,i,s)}(Gt,Je,k),ql(Je)&&yd(q,k,Je),null!=T&&wm(k,Je,A),jf}let wx=function Cx(t,i,s,d){return $t(!0),i[Ui].createComment("")};function Uv(t,i,s,d){const g=Sn();return gs(g,oa(),i)&&(gr(),c(ne(),g,t,i,s,d)),Uv}function Yf(t,i,s,d){return gs(t,oa(),s)?i+dt(s)+d:sr}function Kf(t,i,s,d,g,b,T,A){const q=function O_(t,i,s,d,g){const b=Ih(t,i,s,d);return gs(t,i+2,g)||b}(t,qa(),s,g,T);return va(3),q?i+dt(s)+d+dt(g)+b+dt(T)+A:sr}function Xf(t,i,s,d,g,b,T,A,k,q){const Je=function Vl(t,i,s,d,g,b){const T=Ih(t,i,s,d);return Ih(t,i+2,g,b)||T}(t,qa(),s,g,T,k);return va(4),Je?i+dt(s)+d+dt(g)+b+dt(T)+A+dt(k)+q:sr}function B_(t,i){return t<<17|i<<2}function Ed(t){return t>>17&32767}function jv(t){return 2|t}function Ah(t){return(131068&t)>>2}function Vv(t,i){return-131069&t|i<<2}function $v(t){return 1|t}function t1(t,i,s,d){const g=t[s+1],b=null===i;let T=d?Ed(g):Ah(g),A=!1;for(;0!==T&&(!1===A||b);){const q=t[T+1];FE(t[T],i)&&(A=!0,t[T+1]=d?$v(q):jv(q)),T=d?Ed(q):Ah(q)}A&&(t[s+1]=d?jv(g):$v(g))}function FE(t,i){return null===t||null==i||(Array.isArray(t)?t[1]:t)===i||!(!Array.isArray(t)||"string"!=typeof i)&&Ec(t,i)>=0}function Zv(t,i,s){const d=Sn();return gs(d,oa(),i)&&Fa(gr(),ne(),d,t,i,d[Ui],s,!1),Zv}function Gv(t,i,s,d,g){const T=g?"class":"style";Le(t,s,i.inputs[T],T,d)}function Hv(t,i,s){return pc(t,i,s,!1),Hv}function Wv(t,i){return pc(t,i,null,!0),Wv}function pc(t,i,s,d){const g=Sn(),b=gr(),T=va(2);b.firstUpdatePass&&function c1(t,i,s,d){const g=t.data;if(null===g[s+1]){const b=g[$e()],T=function l1(t,i){return i>=t.expandoStartIndex}(t,s);(function f1(t,i){return 0!=(t.flags&(i?8:16))})(b,d)&&null===i&&!T&&(i=!1),i=function GE(t,i,s,d){const g=function p(t){const i=Hi.lFrame.currentDirectiveIndex;return-1===i?null:t[i]}(t);let b=d?i.residualClasses:i.residualStyles;if(null===g)0===(d?i.classBindings:i.styleBindings)&&(s=Zm(s=qv(null,t,i,s,d),i.attrs,d),b=null);else{const T=i.directiveStylingLast;if(-1===T||t[T]!==g)if(s=qv(g,t,i,s,d),null===b){let k=function HE(t,i,s){const d=s?i.classBindings:i.styleBindings;if(0!==Ah(d))return t[Ed(d)]}(t,i,d);void 0!==k&&Array.isArray(k)&&(k=qv(null,t,i,k[1],d),k=Zm(k,i.attrs,d),function WE(t,i,s,d){t[Ed(s?i.classBindings:i.styleBindings)]=d}(t,i,d,k))}else b=function qE(t,i,s){let d;const g=i.directiveEnd;for(let b=1+i.directiveStylingLast;b0)&&(q=!0)):ge=s,g)if(0!==k){const Rt=Ed(t[A+1]);t[d+1]=B_(Rt,A),0!==Rt&&(t[Rt+1]=Vv(t[Rt+1],d)),t[A+1]=function OE(t,i){return 131071&t|i<<17}(t[A+1],d)}else t[d+1]=B_(A,0),0!==A&&(t[A+1]=Vv(t[A+1],d)),A=d;else t[d+1]=B_(k,0),0===A?A=d:t[k+1]=Vv(t[k+1],d),k=d;q&&(t[d+1]=jv(t[d+1])),t1(t,ge,d,!0),t1(t,ge,d,!1),function kE(t,i,s,d,g){const b=g?t.residualClasses:t.residualStyles;null!=b&&"string"==typeof i&&Ec(b,i)>=0&&(s[d+1]=$v(s[d+1]))}(i,ge,t,d,b),T=B_(A,k),b?i.classBindings=T:i.styleBindings=T}(g,b,i,s,T,d)}}(b,t,T,d),i!==sr&&gs(g,T,i)&&function d1(t,i,s,d,g,b,T,A){if(!(3&i.type))return;const k=t.data,q=k[A+1],ge=function RE(t){return 1==(1&t)}(q)?h1(k,i,s,g,Ah(q),T):void 0;z_(ge)||(z_(b)||function PE(t){return 2==(2&t)}(q)&&(b=h1(k,null,s,g,A,T)),function Js(t,i,s,d,g){if(i)g?t.addClass(s,d):t.removeClass(s,d);else{let b=-1===d.indexOf("-")?void 0:Pc.DashCase;null==g?t.removeStyle(s,d,b):("string"==typeof g&&g.endsWith("!important")&&(g=g.slice(0,-10),b|=Pc.Important),t.setStyle(s,d,g,b))}}(d,T,ll($e(),s),g,b))}(b,b.data[$e()],g,g[Ui],t,g[T+1]=function XE(t,i){return null==t||""===t||("string"==typeof i?t+=i:"object"==typeof t&&(t=Ei(uc(t)))),t}(i,s),d,T)}function qv(t,i,s,d,g){let b=null;const T=s.directiveEnd;let A=s.directiveStylingLast;for(-1===A?A=s.directiveStart:A++;A0;){const k=t[g],q=Array.isArray(k),ge=q?k[1]:k,Je=null===ge;let Rt=s[g+1];Rt===sr&&(Rt=Je?fr:void 0);let Gt=Je?oc(Rt,d):ge===d?Rt:void 0;if(q&&!z_(Gt)&&(Gt=oc(k,d)),z_(Gt)&&(A=Gt,T))return A;const Tn=t[g+1];g=T?Ed(Tn):Ah(Tn)}if(null!==i){let k=b?i.residualClasses:i.residualStyles;null!=k&&(A=oc(k,d))}return A}function z_(t){return void 0!==t}function U_(t,i,s,d){const g=Sn(),b=gr(),T=Gi+t,A=g[Ui],k=b.firstCreatePass?function bT(t,i,s,d,g,b){const T=i.consts,k=vu(i,t,2,d,Is(T,g));return Tm(i,s,k,Is(T,b)),null!==k.attrs&&wd(k,k.attrs,!1),null!==k.mergedAttrs&&wd(k,k.mergedAttrs,!0),null!==i.queries&&i.queries.elementStart(i,k),k}(T,b,g,i,s,d):b.data[T],q=_1(b,g,k,A,i,t);g[T]=q;const ge=ql(k);return oi(k,!0),id(A,q,k),32!=(32&k.flags)&&qt()&&Xd(b,g,q,k),0===function Uo(){return Hi.lFrame.elementDepthCount}()&&ls(q,g),function qc(){Hi.lFrame.elementDepthCount++}(),ge&&(yd(b,g,k),bm(b,k,g)),null!==d&&wm(g,k),U_}function j_(){let t=Nr();nc()?Yc():(t=t.parent,oi(t,!1));const i=t;(function Ms(t){return Hi.skipHydrationRootTNode===t})(i)&&function Ma(){Hi.skipHydrationRootTNode=null}(),function Su(){Hi.lFrame.elementDepthCount--}();const s=gr();return s.firstCreatePass&&(Wn(s,t),El(t)&&s.queries.elementEnd(t)),null!=i.classesWithoutHost&&function mi(t){return 0!=(8&t.flags)}(i)&&Gv(s,i,Sn(),i.classesWithoutHost,!0),null!=i.stylesWithoutHost&&function Oi(t){return 0!=(16&t.flags)}(i)&&Gv(s,i,Sn(),i.stylesWithoutHost,!1),j_}function Qv(t,i,s,d){return U_(t,i,s,d),j_(),Qv}let _1=(t,i,s,d,g,b)=>($t(!0),sf(d,g,function kt(){return Hi.lFrame.currentNamespace}()));function V_(t,i,s){const d=Sn(),g=gr(),b=t+Gi,T=g.firstCreatePass?function ET(t,i,s,d,g){const b=i.consts,T=Is(b,d),A=vu(i,t,8,"ng-container",T);return null!==T&&wd(A,T,!0),Tm(i,s,A,Is(b,g)),null!==i.queries&&i.queries.elementStart(i,A),A}(b,g,d,i,s):g.data[b];oi(T,!0);const A=y1(g,d,T,t);return d[b]=A,qt()&&Xd(g,d,A,T),ls(A,d),ql(T)&&(yd(g,d,T),bm(g,T,d)),null!=s&&wm(d,T),V_}function $_(){let t=Nr();const i=gr();return nc()?Yc():(t=t.parent,oi(t,!1)),i.firstCreatePass&&(Wn(i,t),El(t)&&i.queries.elementEnd(t)),$_}function e0(t,i,s){return V_(t,i,s),$_(),e0}let y1=(t,i,s,d)=>($t(!0),zp(i[Ui],""));function v1(){return Sn()}const Sh=void 0;var MT=["en",[["a","p"],["AM","PM"],Sh],[["AM","PM"],Sh,Sh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Sh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Sh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Sh,"{1} 'at' {0}",Sh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function IT(t){const s=Math.floor(Math.abs(t)),d=t.toString().replace(/^[^.]*\.?/,"").length;return 1===s&&0===d?1:5}];let rp={};function t0(t){const i=function AT(t){return t.toLowerCase().replace(/_/g,"-")}(t);let s=C1(i);if(s)return s;const d=i.split("-")[0];if(s=C1(d),s)return s;if("en"===d)return MT;throw new Yt(701,!1)}function w1(t){return t0(t)[op.PluralCase]}function C1(t){return t in rp||(rp[t]=St.ng&&St.ng.common&&St.ng.common.locales&&St.ng.common.locales[t]),rp[t]}var op=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}(op||{});const sp="en-US";let E1=sp;function o0(t){return!!t&&"function"==typeof t.then}function Y1(t){return!!t&&"function"==typeof t.subscribe}function s0(t,i,s,d){const g=Sn(),b=gr(),T=Nr();return function K1(t,i,s,d,g,b,T){const A=ql(d),q=t.firstCreatePass&&W(t),ge=i[$r],Je=j(i);let Rt=!0;if(3&d.type||T){const ii=ts(d,i),ui=T?T(ii):ii,Si=Je.length,Jn=T?Rr=>T(Fr(Rr[d.index])):d.index;let ur=null;if(!T&&A&&(ur=function CD(t,i,s,d){const g=t.cleanup;if(null!=g)for(let b=0;bk?A[k]:null}"string"==typeof T&&(b+=2)}return null}(t,i,g,d.index)),null!==ur)(ur.__ngLastListenerFn__||ur).__ngNextListenerFn__=b,ur.__ngLastListenerFn__=b,Rt=!1;else{b=Q1(d,i,ge,b,!1);const Rr=s.listen(ui,g,b);Je.push(b,Rr),q&&q.push(g,Jn,Si,Si+1)}}else b=Q1(d,i,ge,b,!1);const Gt=d.outputs;let Tn;if(Rt&&null!==Gt&&(Tn=Gt[g])){const ii=Tn.length;if(ii)for(let ui=0;ui-1?Lo(t.index,i):i);let k=X1(i,s,d,T),q=b.__ngNextListenerFn__;for(;q;)k=X1(i,s,q,T)&&k,q=q.__ngNextListenerFn__;return g&&!1===k&&T.preventDefault(),k}}function eb(t=1){return function Ye(t){return(Hi.lFrame.contextLView=function Al(t,i){for(;t>0;)i=i[No],t--;return i}(t,Hi.lFrame.contextLView))[$r]}(t)}function ED(t,i){let s=null;const d=function bl(t){const i=t.attrs;if(null!=i){const s=i.indexOf(5);if(!(1&s))return i[s+1]}return null}(t);for(let g=0;g{class t{static#e=this.__NG_ELEMENT_ID__=MD}return t})();const DD=Jm,ID=class extends DD{constructor(i,s,d){super(),this._declarationLView=i,this._declarationTContainer=s,this.elementRef=d}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(i,s){return this.createEmbeddedViewImpl(i,s)}createEmbeddedViewImpl(i,s,d){const g=function Bm(t,i,s,d){const g=i.tView,A=Ch(t,g,s,4096&t[Di]?4096:16,null,i,null,null,null,d?.injector??null,d?.dehydratedView??null);A[ws]=t[i.index];const q=t[Vs];return null!==q&&(A[Vs]=q.createEmbeddedView(g)),Nf(g,A,s),A}(this._declarationLView,this._declarationTContainer,i,{injector:s,dehydratedView:d});return new Qn(g)}};function MD(){return q_(Nr(),Sn())}function q_(t,i){return 4&t.type?new ID(i,t,kc(t,i)):null}class u0{constructor(i){this.queryList=i,this.matches=null}clone(){return new u0(this.queryList)}setDirty(){this.queryList.setDirty()}}class d0{constructor(i=[]){this.queries=i}createEmbeddedView(i){const s=i.queries;if(null!==s){const d=null!==i.contentQueries?i.contentQueries[0]:s.length,g=[];for(let b=0;b0)d.push(T[A/2]);else{const q=b[A+1],ge=i[-k];for(let Je=oo;Je($t(!0),function lu(t,i){return t.createText(i)}(i[Ui],d));function m0(t){return Y_("",t,""),m0}function Y_(t,i,s){const d=Sn(),g=Yf(d,t,i,s);return g!==sr&&rt(d,$e(),g),Y_}function g0(t,i,s,d,g){const b=Sn(),T=function Jf(t,i,s,d,g,b){const A=Ih(t,qa(),s,g);return va(2),A?i+dt(s)+d+dt(g)+b:sr}(b,t,i,s,d,g);return T!==sr&&rt(b,$e(),T),g0}function _0(t,i,s,d,g,b,T){const A=Sn(),k=Kf(A,t,i,s,d,g,b,T);return k!==sr&&rt(A,$e(),k),_0}function y0(t,i,s,d,g,b,T,A,k){const q=Sn(),ge=Xf(q,t,i,s,d,g,b,T,A,k);return ge!==sr&&rt(q,$e(),ge),y0}function v0(t,i,s,d,g){if(t=Jt(t),Array.isArray(t))for(let b=0;b>20;if(fs(t)||!t.multi){const Gt=new kn(q,g,yu),Tn=b0(k,i,g?ge:ge+Rt,Je);-1===Tn?(xc(go(A,T),b,k),x0(b,t,i.length),i.push(k),A.directiveStart++,A.directiveEnd++,g&&(A.providerIndexes+=1048576),s.push(Gt),T.push(Gt)):(s[Tn]=Gt,T[Tn]=Gt)}else{const Gt=b0(k,i,ge+Rt,Je),Tn=b0(k,i,ge,ge+Rt),ui=Tn>=0&&s[Tn];if(g&&!ui||!g&&!(Gt>=0&&s[Gt])){xc(go(A,T),b,k);const Si=function JD(t,i,s,d,g){const b=new kn(t,s,yu);return b.multi=[],b.index=i,b.componentProviders=0,Nb(b,g,d&&!s),b}(g?YD:qD,s.length,g,d,q);!g&&ui&&(s[Tn].providerFactory=Si),x0(b,t,i.length,0),i.push(k),A.directiveStart++,A.directiveEnd++,g&&(A.providerIndexes+=1048576),s.push(Si),T.push(Si)}else x0(b,t,Gt>-1?Gt:Tn,Nb(s[g?Tn:Gt],q,!g&&d));!g&&d&&ui&&s[Tn].componentProviders++}}}function x0(t,i,s,d){const g=fs(i),b=function Ja(t){return!!t.useClass}(i);if(g||b){const k=(b?Jt(i.useClass):i).prototype.ngOnDestroy;if(k){const q=t.destroyHooks||(t.destroyHooks=[]);if(!g&&i.multi){const ge=q.indexOf(s);-1===ge?q.push(s,[d,k]):q[ge+1].push(d,k)}else q.push(s,k)}}}function Nb(t,i,s){return s&&t.componentProviders++,t.multi.push(i)-1}function b0(t,i,s,d){for(let g=s;g{s.providersResolver=(d,g)=>function WD(t,i,s){const d=gr();if(d.firstCreatePass){const g=Zs(t);v0(s,d.data,d.blueprint,g,!0),v0(i,d.data,d.blueprint,g,!1)}}(d,g?g(t):t,i)}}class Ph{}class zb{}function KD(t,i){return new C0(t,i??null,[])}class C0 extends Ph{constructor(i,s,d){super(),this._parent=s,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Bf(this);const g=Ao(i);this._bootstrapComponents=Ra(g.bootstrap),this._r3Injector=sc(i,s,[{provide:Ph,useValue:this},{provide:fh,useValue:this.componentFactoryResolver},...d],Ei(i),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(i)}get injector(){return this._r3Injector}destroy(){const i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(s=>s()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}}class E0 extends zb{constructor(i){super(),this.moduleType=i}create(i){return new C0(this.moduleType,i,[])}}class Ub extends Ph{constructor(i){super(),this.componentFactoryResolver=new Bf(this),this.instance=null;const s=new Ka([...i.providers,{provide:Ph,useValue:this},{provide:fh,useValue:this.componentFactoryResolver}],i.parent||Hu(),i.debugName,new Set(["environment"]));this.injector=s,i.runEnvironmentInitializers&&s.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}}function jb(t,i,s=null){return new Ub({providers:t,parent:i,debugName:s,runEnvironmentInitializers:!0}).injector}let QD=(()=>{class t{constructor(s){this._injector=s,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(s){if(!s.standalone)return null;if(!this.cachedInjectors.has(s)){const d=jh(0,s.type),g=d.length>0?jb([d],this._injector,`Standalone[${s.type.name}]`):null;this.cachedInjectors.set(s,g)}return this.cachedInjectors.get(s)}ngOnDestroy(){try{for(const s of this.cachedInjectors.values())null!==s&&s.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=qi({token:t,providedIn:"environment",factory:()=>new t(Dr(as))})}return t})();function Vb(t){Cr("NgStandalone"),t.getStandaloneInjector=i=>i.get(QD).getOrCreateStandaloneInjector(t)}function Kb(t,i,s){const d=ns()+t,g=Sn();return g[d]===sr?jc(g,d,s?i.call(s):i()):function Um(t,i){return t[i]}(g,d)}function Km(t,i){const s=t[i];return s===sr?void 0:s}function iw(t,i){const s=gr();let d;const g=t+Gi;s.firstCreatePass?(d=function vI(t,i){if(i)for(let s=i.length-1;s>=0;s--){const d=i[s];if(t===d.name)return d}}(i,s.pipeRegistry),s.data[g]=d,d.onDestroy&&(s.destroyHooks??=[]).push(g,d.onDestroy)):d=s.data[g];const b=d.factory||(d.factory=ao(d.type)),A=Be(yu);try{const k=jo(!1),q=b();return jo(k),function kD(t,i,s,d){s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),i[s]=d}(s,Sn(),g,q),q}finally{Be(A)}}function rw(t,i,s){const d=t+Gi,g=Sn(),b=Wa(g,d);return Xm(g,d)?function Xb(t,i,s,d,g,b){const T=i+s;return gs(t,T,g)?jc(t,T+1,b?d.call(b,g):d(g)):Km(t,T+1)}(g,ns(),i,b.transform,s,b):b.transform(s)}function ow(t,i,s,d){const g=t+Gi,b=Sn(),T=Wa(b,g);return Xm(b,g)?function Qb(t,i,s,d,g,b,T){const A=i+s;return Ih(t,A,g,b)?jc(t,A+2,T?d.call(T,g,b):d(g,b)):Km(t,A+2)}(b,ns(),i,T.transform,s,d,T):T.transform(s,d)}function Xm(t,i){return t[Ln].data[i].pure}class bw{constructor(i){this.full=i;const s=i.split(".");this.major=s[0],this.minor=s[1],this.patch=s.slice(2).join(".")}}let ww=(()=>{class t{log(s){console.log(s)}warn(s){console.warn(s)}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();class GI{constructor(i,s){this.ngModuleFactory=i,this.componentFactories=s}}let HI=(()=>{class t{compileModuleSync(s){return new E0(s)}compileModuleAsync(s){return Promise.resolve(this.compileModuleSync(s))}compileModuleAndAllComponentsSync(s){const d=this.compileModuleSync(s),b=Ra(Ao(s).declarations).reduce((T,A)=>{const k=nr(A);return k&&T.push(new ms(k)),T},[]);return new GI(d,b)}compileModuleAndAllComponentsAsync(s){return Promise.resolve(this.compileModuleAndAllComponentsSync(s))}clearCache(){}clearCacheFor(s){}getModuleId(s){}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Q_=(()=>{class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new pe.X(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const s=this.taskId++;return this.pendingTasks.add(s),s}remove(s){this.pendingTasks.delete(s),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const Iw=new V(""),Mw=new V("");let P0,vM=(()=>{class t{constructor(s,d,g){this._ngZone=s,this.registry=d,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,P0||(function xM(t){P0=t}(g),g.addToWindow(d)),this._watchAngularEvents(),s.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ar.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let s=this._callbacks.pop();clearTimeout(s.timeoutId),s.doneCb()}});else{let s=this.getPendingTasks();this._callbacks=this._callbacks.filter(d=>!d.updateCb||!d.updateCb(s)||(clearTimeout(d.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(s=>({source:s.source,creationLocation:s.creationLocation,data:s.data})):[]}addCallback(s,d,g){let b=-1;d&&d>0&&(b=setTimeout(()=>{this._callbacks=this._callbacks.filter(T=>T.timeoutId!==b),s()},d)),this._callbacks.push({doneCb:s,timeoutId:b,updateCb:g})}whenStable(s,d,g){if(g&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(s,d,g),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(s){this.registry.registerApplication(s,this)}unregisterApplication(s){this.registry.unregisterApplication(s)}findProviders(s,d,g){return[]}static#e=this.\u0275fac=function(d){return new(d||t)(Dr(ar),Dr(Aw),Dr(Mw))};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac})}return t})(),Aw=(()=>{class t{constructor(){this._applications=new Map}registerApplication(s,d){this._applications.set(s,d)}unregisterApplication(s){this._applications.delete(s)}unregisterAllApplications(){this._applications.clear()}getTestability(s){return this._applications.get(s)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(s,d=!0){return P0?.findTestabilityInTree(this,s,d)??null}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();const Sw=new V("Application Initializer");let O0=(()=>{class t{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,d)=>{this.resolve=s,this.reject=d}),this.appInits=ji(Sw,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const s=[];for(const g of this.appInits){const b=g();if(o0(b))s.push(b);else if(Y1(b)){const T=new Promise((A,k)=>{b.subscribe({complete:A,error:k})});s.push(T)}}const d=()=>{this.done=!0,this.resolve()};Promise.all(s).then(()=>{d()}).catch(g=>{this.reject(g)}),0===s.length&&d(),this.initialized=!0}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const R0=new V("appBootstrapListener");function Rw(t,i){return Array.isArray(i)?i.reduce(Rw,t):{...t,...i}}let Oh=(()=>{class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=ji(o_),this.afterRenderEffectManager=ji(Cu),this.componentTypes=[],this.components=[],this.isStable=ji(Q_).hasPendingTasks.pipe((0,lt.U)(s=>!s)),this._injector=ji(as)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(s,d){const g=s instanceof Jg;if(!this._injector.get(O0).done)throw!g&&Qo(s),new Yt(405,!1);let T;T=g?s:this._injector.get(fh).resolveComponentFactory(s),this.componentTypes.push(T.componentType);const A=function wM(t){return t.isBoundToModule}(T)?void 0:this._injector.get(Ph),q=T.create(pr.NULL,[],d||T.selector,A),ge=q.location.nativeElement,Je=q.injector.get(Iw,null);return Je?.registerApplication(ge),q.onDestroy(()=>{this.detachView(q.hostView),ty(this.components,q),Je?.unregisterApplication(ge)}),this._loadComponent(q),q}tick(){if(this._runningTick)throw new Yt(101,!1);try{this._runningTick=!0;for(let s of this._views)s.detectChanges()}catch(s){this.internalErrorHandler(s)}finally{try{this.afterRenderEffectManager.execute()}catch(s){this.internalErrorHandler(s)}this._runningTick=!1}}attachView(s){const d=s;this._views.push(d),d.attachToAppRef(this)}detachView(s){const d=s;ty(this._views,d),d.detachFromAppRef()}_loadComponent(s){this.attachView(s.hostView),this.tick(),this.components.push(s);const d=this._injector.get(R0,[]);[...this._bootstrapListeners,...d].forEach(g=>g(s))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(s=>s()),this._views.slice().forEach(s=>s.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(s){return this._destroyListeners.push(s),()=>ty(this._destroyListeners,s)}destroy(){if(this._destroyed)throw new Yt(406,!1);const s=this._injector;s.destroy&&!s.destroyed&&s.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ty(t,i){const s=t.indexOf(i);s>-1&&t.splice(s,1)}let EM=(()=>{class t{constructor(){this.zone=ji(ar),this.applicationRef=ji(Oh)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function TM(){const t=ji(ar),i=ji(Nl);return s=>t.runOutsideAngular(()=>i.handleError(s))}let IM=(()=>{class t{constructor(){this.subscription=new It.w0,this.initialized=!1,this.zone=ji(ar),this.pendingTasks=ji(Q_)}initialize(){if(this.initialized)return;this.initialized=!0;let s=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(s=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ar.assertNotInAngularZone(),queueMicrotask(()=>{null!==s&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(s),s=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ar.assertInAngularZone(),s??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(d){return new(d||t)};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();const iy=new V("LocaleId",{providedIn:"root",factory:()=>ji(iy,_i.Optional|_i.SkipSelf)||function MM(){return typeof $localize<"u"&&$localize.locale||sp}()}),AM=new V("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),L0=new V("PlatformDestroyListeners");let Nw=(()=>{class t{constructor(s){this._injector=s,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(s,d){const g=function xl(t="zone.js",i){return"noop"===t?new ks:"zone.js"===t?new ar(i):t}(d?.ngZone,function Fw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}({eventCoalescing:d?.ngZoneEventCoalescing,runCoalescing:d?.ngZoneRunCoalescing}));return g.run(()=>{const b=function XD(t,i,s){return new C0(t,i,s)}(s.moduleType,this.injector,function kw(t){return[{provide:ar,useFactory:t},{provide:nu,multi:!0,useFactory:()=>{const i=ji(EM,{optional:!0});return()=>i.initialize()}},{provide:nu,multi:!0,useFactory:()=>{const i=ji(IM);return()=>{i.initialize()}}},{provide:o_,useFactory:TM}]}(()=>g)),T=b.injector.get(Nl,null);return g.runOutsideAngular(()=>{const A=g.onError.subscribe({next:k=>{T.handleError(k)}});b.onDestroy(()=>{ty(this._modules,b),A.unsubscribe()})}),function Ow(t,i,s){try{const d=s();return o0(d)?d.catch(g=>{throw i.runOutsideAngular(()=>t.handleError(g)),g}):d}catch(d){throw i.runOutsideAngular(()=>t.handleError(d)),d}}(T,g,()=>{const A=b.injector.get(O0);return A.runInitializers(),A.donePromise.then(()=>(function T1(t){hr(t,"Expected localeId to be defined"),"string"==typeof t&&(E1=t.toLowerCase().replace(/_/g,"-"))}(b.injector.get(iy,sp)||sp),this._moduleDoBootstrap(b),b))})})}bootstrapModule(s,d=[]){const g=Rw({},d);return function bM(t,i,s){const d=new E0(s);return Promise.resolve(d)}(0,0,s).then(b=>this.bootstrapModuleFactory(b,g))}_moduleDoBootstrap(s){const d=s.injector.get(Oh);if(s._bootstrapComponents.length>0)s._bootstrapComponents.forEach(g=>d.bootstrap(g));else{if(!s.instance.ngDoBootstrap)throw new Yt(-403,!1);s.instance.ngDoBootstrap(d)}this._modules.push(s)}onDestroy(s){this._destroyListeners.push(s)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Yt(404,!1);this._modules.slice().forEach(d=>d.destroy()),this._destroyListeners.forEach(d=>d());const s=this._injector.get(L0,null);s&&(s.forEach(d=>d()),s.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(d){return new(d||t)(Dr(pr))};static#t=this.\u0275prov=qi({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),Td=null;const Bw=new V("AllowMultipleToken");function zw(t,i,s=[]){const d=`Platform: ${i}`,g=new V(d);return(b=[])=>{let T=k0();if(!T||T.injector.get(Bw,!1)){const A=[...s,...b,{provide:g,useValue:!0}];t?t(A):function PM(t){if(Td&&!Td.get(Bw,!1))throw new Yt(400,!1);(function Pw(){!function _n(t){Ht=t}(()=>{throw new Yt(600,!1)})})(),Td=t;const i=t.get(Nw);(function jw(t){t.get(qh,null)?.forEach(s=>s())})(t)}(function Uw(t=[],i){return pr.create({name:i,providers:[{provide:vp,useValue:"platform"},{provide:L0,useValue:new Set([()=>Td=null])},...t]})}(A,d))}return function OM(t){const i=k0();if(!i)throw new Yt(401,!1);return i}()}}function k0(){return Td?.get(Nw)??null}function LM(){}const zM=zw(null,"core",[]);let UM=(()=>{class t{constructor(s){}static#e=this.\u0275fac=function(d){return new(d||t)(Dr(Oh))};static#t=this.\u0275mod=fa({type:t});static#n=this.\u0275inj=Tt({})}return t})();function fA(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}function mA(t,i){const s=nr(t),d=i.elementInjector||Hu();return new ms(s).create(d,i.projectableNodes,i.hostElement,i.environmentInjector)}function gA(t){const i=nr(t);if(!i)return null;const s=new ms(i);return{get selector(){return s.selector},get type(){return s.componentType},get inputs(){return s.inputs},get outputs(){return s.outputs},get ngContentSelectors(){return s.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}},6223:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Cf:()=>Ce,Fd:()=>Ko,Fj:()=>Me,JJ:()=>Yt,JU:()=>ie,On:()=>tn,a5:()=>pe,qQ:()=>la,u5:()=>Qo,wV:()=>$n});var h=P(9212),m=P(6814),te=P(7715),l=P(9315),B=P(7398);let Y=(()=>{class re{constructor(G,Ge){this._renderer=G,this._elementRef=Ge,this.onChange=zt=>{},this.onTouched=()=>{}}setProperty(G,Ge){this._renderer.setProperty(this._elementRef.nativeElement,G,Ge)}registerOnTouched(G){this.onTouched=G}registerOnChange(G){this.onChange=G}setDisabledState(G){this.setProperty("disabled",G)}static#e=this.\u0275fac=function(Ge){return new(Ge||re)(h.Y36(h.Qsj),h.Y36(h.SBq))};static#t=this.\u0275dir=h.lG2({type:re})}return re})(),C=(()=>{class re extends Y{static#e=this.\u0275fac=(()=>{let G;return function(zt){return(G||(G=h.n5z(re)))(zt||re)}})();static#t=this.\u0275dir=h.lG2({type:re,features:[h.qOj]})}return re})();const ie=new h.OlP("NgValueAccessor"),K={provide:ie,useExisting:(0,h.Gpc)(()=>Me),multi:!0},Te=new h.OlP("CompositionEventMode");let Me=(()=>{class re extends Y{constructor(G,Ge,zt){super(G,Ge),this._compositionMode=zt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function be(){const re=(0,m.q)()?(0,m.q)().getUserAgent():"";return/android (\d+)/.test(re.toLowerCase())}())}writeValue(G){this.setProperty("value",G??"")}_handleInput(G){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(G)}_compositionStart(){this._composing=!0}_compositionEnd(G){this._composing=!1,this._compositionMode&&this.onChange(G)}static#e=this.\u0275fac=function(Ge){return new(Ge||re)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(Te,8))};static#t=this.\u0275dir=h.lG2({type:re,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(Ge,zt){1&Ge&&h.NdJ("input",function(Ln){return zt._handleInput(Ln.target.value)})("blur",function(){return zt.onTouched()})("compositionstart",function(){return zt._compositionStart()})("compositionend",function(Ln){return zt._compositionEnd(Ln.target.value)})},features:[h._Bn([K]),h.qOj]})}return re})();function de(re){return null==re||("string"==typeof re||Array.isArray(re))&&0===re.length}const Ce=new h.OlP("NgValidators"),oe=new h.OlP("NgAsyncValidators");function De(re){return null}function ze(re){return null!=re}function Ke(re){return(0,h.QGY)(re)?(0,te.D)(re):re}function Ht(re){let ce={};return re.forEach(G=>{ce=null!=G?{...ce,...G}:ce}),0===Object.keys(ce).length?null:ce}function dn(re,ce){return ce.map(G=>G(re))}function Ut(re){return re.map(ce=>function _n(re){return!re.validate}(ce)?ce:G=>ce.validate(G))}function Ne(re){return null!=re?function We(re){if(!re)return null;const ce=re.filter(ze);return 0==ce.length?null:function(G){return Ht(dn(G,ce))}}(Ut(re)):null}function it(re){return null!=re?function ke(re){if(!re)return null;const ce=re.filter(ze);return 0==ce.length?null:function(G){const Ge=dn(G,ce).map(Ke);return(0,l.D)(Ge).pipe((0,B.U)(Ht))}}(Ut(re)):null}function Qt(re,ce){return null===re?[ce]:Array.isArray(re)?[...re,ce]:[re,ce]}function tt(re){return re?Array.isArray(re)?re:[re]:[]}function pt(re,ce){return Array.isArray(re)?re.includes(ce):re===ce}function Xt(re,ce){const G=tt(ce);return tt(re).forEach(zt=>{pt(G,zt)||G.push(zt)}),G}function bn(re,ce){return tt(ce).filter(G=>!pt(re,G))}class Cn{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(ce){this._rawValidators=ce||[],this._composedValidatorFn=Ne(this._rawValidators)}_setAsyncValidators(ce){this._rawAsyncValidators=ce||[],this._composedAsyncValidatorFn=it(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(ce){this._onDestroyCallbacks.push(ce)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(ce=>ce()),this._onDestroyCallbacks=[]}reset(ce=void 0){this.control&&this.control.reset(ce)}hasError(ce,G){return!!this.control&&this.control.hasError(ce,G)}getError(ce,G){return this.control?this.control.getError(ce,G):null}}class It extends Cn{get formDirective(){return null}get path(){return null}}class pe extends Cn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class lt{constructor(ce){this._cd=ce}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Yt=(()=>{class re extends lt{constructor(G){super(G)}static#e=this.\u0275fac=function(Ge){return new(Ge||re)(h.Y36(pe,2))};static#t=this.\u0275dir=h.lG2({type:re,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Ge,zt){2&Ge&&h.ekj("ng-untouched",zt.isUntouched)("ng-touched",zt.isTouched)("ng-pristine",zt.isPristine)("ng-dirty",zt.isDirty)("ng-valid",zt.isValid)("ng-invalid",zt.isInvalid)("ng-pending",zt.isPending)},features:[h.qOj]})}return re})();const ut="VALID",he="INVALID",_e="PENDING",ot="DISABLED";function dt(re){return null!=re&&!Array.isArray(re)&&"object"==typeof re}class Gn{constructor(ce,G){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(ce),this._assignAsyncValidators(G)}get validator(){return this._composedValidatorFn}set validator(ce){this._rawValidators=this._composedValidatorFn=ce}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(ce){this._rawAsyncValidators=this._composedAsyncValidatorFn=ce}get parent(){return this._parent}get valid(){return this.status===ut}get invalid(){return this.status===he}get pending(){return this.status==_e}get disabled(){return this.status===ot}get enabled(){return this.status!==ot}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(ce){this._assignValidators(ce)}setAsyncValidators(ce){this._assignAsyncValidators(ce)}addValidators(ce){this.setValidators(Xt(ce,this._rawValidators))}addAsyncValidators(ce){this.setAsyncValidators(Xt(ce,this._rawAsyncValidators))}removeValidators(ce){this.setValidators(bn(ce,this._rawValidators))}removeAsyncValidators(ce){this.setAsyncValidators(bn(ce,this._rawAsyncValidators))}hasValidator(ce){return pt(this._rawValidators,ce)}hasAsyncValidator(ce){return pt(this._rawAsyncValidators,ce)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(ce={}){this.touched=!0,this._parent&&!ce.onlySelf&&this._parent.markAsTouched(ce)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(ce=>ce.markAllAsTouched())}markAsUntouched(ce={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(G=>{G.markAsUntouched({onlySelf:!0})}),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce)}markAsDirty(ce={}){this.pristine=!1,this._parent&&!ce.onlySelf&&this._parent.markAsDirty(ce)}markAsPristine(ce={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(G=>{G.markAsPristine({onlySelf:!0})}),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce)}markAsPending(ce={}){this.status=_e,!1!==ce.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!ce.onlySelf&&this._parent.markAsPending(ce)}disable(ce={}){const G=this._parentMarkedDirty(ce.onlySelf);this.status=ot,this.errors=null,this._forEachChild(Ge=>{Ge.disable({...ce,onlySelf:!0})}),this._updateValue(),!1!==ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...ce,skipPristineCheck:G}),this._onDisabledChange.forEach(Ge=>Ge(!0))}enable(ce={}){const G=this._parentMarkedDirty(ce.onlySelf);this.status=ut,this._forEachChild(Ge=>{Ge.enable({...ce,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent}),this._updateAncestors({...ce,skipPristineCheck:G}),this._onDisabledChange.forEach(Ge=>Ge(!1))}_updateAncestors(ce){this._parent&&!ce.onlySelf&&(this._parent.updateValueAndValidity(ce),ce.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(ce){this._parent=ce}getRawValue(){return this.value}updateValueAndValidity(ce={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ut||this.status===_e)&&this._runAsyncValidator(ce.emitEvent)),!1!==ce.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!ce.onlySelf&&this._parent.updateValueAndValidity(ce)}_updateTreeValidity(ce={emitEvent:!0}){this._forEachChild(G=>G._updateTreeValidity(ce)),this.updateValueAndValidity({onlySelf:!0,emitEvent:ce.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ot:ut}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(ce){if(this.asyncValidator){this.status=_e,this._hasOwnPendingAsyncValidator=!0;const G=Ke(this.asyncValidator(this));this._asyncValidationSubscription=G.subscribe(Ge=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(Ge,{emitEvent:ce})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(ce,G={}){this.errors=ce,this._updateControlsErrors(!1!==G.emitEvent)}get(ce){let G=ce;return null==G||(Array.isArray(G)||(G=G.split(".")),0===G.length)?null:G.reduce((Ge,zt)=>Ge&&Ge._find(zt),this)}getError(ce,G){const Ge=G?this.get(G):this;return Ge&&Ge.errors?Ge.errors[ce]:null}hasError(ce,G){return!!this.getError(ce,G)}get root(){let ce=this;for(;ce._parent;)ce=ce._parent;return ce}_updateControlsErrors(ce){this.status=this._calculateStatus(),ce&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(ce)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?ot:this.errors?he:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_e)?_e:this._anyControlsHaveStatus(he)?he:ut}_anyControlsHaveStatus(ce){return this._anyControls(G=>G.status===ce)}_anyControlsDirty(){return this._anyControls(ce=>ce.dirty)}_anyControlsTouched(){return this._anyControls(ce=>ce.touched)}_updatePristine(ce={}){this.pristine=!this._anyControlsDirty(),this._parent&&!ce.onlySelf&&this._parent._updatePristine(ce)}_updateTouched(ce={}){this.touched=this._anyControlsTouched(),this._parent&&!ce.onlySelf&&this._parent._updateTouched(ce)}_registerOnCollectionChange(ce){this._onCollectionChange=ce}_setUpdateStrategy(ce){dt(ce)&&null!=ce.updateOn&&(this._updateOn=ce.updateOn)}_parentMarkedDirty(ce){return!ce&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(ce){return null}_assignValidators(ce){this._rawValidators=Array.isArray(ce)?ce.slice():ce,this._composedValidatorFn=function Dt(re){return Array.isArray(re)?Ne(re):re||null}(this._rawValidators)}_assignAsyncValidators(ce){this._rawAsyncValidators=Array.isArray(ce)?ce.slice():ce,this._composedAsyncValidatorFn=function Vt(re){return Array.isArray(re)?it(re):re||null}(this._rawAsyncValidators)}}const In=new h.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>bi}),bi="always";function Ri(re,ce,G=bi){(function uo(re,ce){const G=function mt(re){return re._rawValidators}(re);null!==ce.validator?re.setValidators(Qt(G,ce.validator)):"function"==typeof G&&re.setValidators([G]);const Ge=function an(re){return re._rawAsyncValidators}(re);null!==ce.asyncValidator?re.setAsyncValidators(Qt(Ge,ce.asyncValidator)):"function"==typeof Ge&&re.setAsyncValidators([Ge]);const zt=()=>re.updateValueAndValidity();Xi(ce._rawValidators,zt),Xi(ce._rawAsyncValidators,zt)})(re,ce),ce.valueAccessor.writeValue(re.value),(re.disabled||"always"===G)&&ce.valueAccessor.setDisabledState?.(re.disabled),function Eo(re,ce){ce.valueAccessor.registerOnChange(G=>{re._pendingValue=G,re._pendingChange=!0,re._pendingDirty=!0,"change"===re.updateOn&&hr(re,ce)})}(re,ce),function Ti(re,ce){const G=(Ge,zt)=>{ce.valueAccessor.writeValue(Ge),zt&&ce.viewToModelUpdate(Ge)};re.registerOnChange(G),ce._registerOnDestroy(()=>{re._unregisterOnChange(G)})}(re,ce),function zi(re,ce){ce.valueAccessor.registerOnTouched(()=>{re._pendingTouched=!0,"blur"===re.updateOn&&re._pendingChange&&hr(re,ce),"submit"!==re.updateOn&&re.markAsTouched()})}(re,ce),function Ar(re,ce){if(ce.valueAccessor.setDisabledState){const G=Ge=>{ce.valueAccessor.setDisabledState(Ge)};re.registerOnDisabledChange(G),ce._registerOnDestroy(()=>{re._unregisterOnDisabledChange(G)})}}(re,ce)}function Xi(re,ce){re.forEach(G=>{G.registerOnValidatorChange&&G.registerOnValidatorChange(ce)})}function hr(re,ce){re._pendingDirty&&re.markAsDirty(),re.setValue(re._pendingValue,{emitModelToViewChange:!1}),ce.viewToModelUpdate(re._pendingValue),re._pendingChange=!1}function _i(re,ce){const G=re.indexOf(ce);G>-1&&re.splice(G,1)}function or(re){return"object"==typeof re&&null!==re&&2===Object.keys(re).length&&"value"in re&&"disabled"in re}Promise.resolve();const Ee=class extends Gn{constructor(ce=null,G,Ge){super(function yt(re){return(dt(re)?re.validators:re)||null}(G),function jt(re,ce){return(dt(ce)?ce.asyncValidators:re)||null}(Ge,G)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(ce),this._setUpdateStrategy(G),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dt(G)&&(G.nonNullable||G.initialValueIsDefault)&&(this.defaultValue=or(ce)?ce.value:ce)}setValue(ce,G={}){this.value=this._pendingValue=ce,this._onChange.length&&!1!==G.emitModelToViewChange&&this._onChange.forEach(Ge=>Ge(this.value,!1!==G.emitViewToModelChange)),this.updateValueAndValidity(G)}patchValue(ce,G={}){this.setValue(ce,G)}reset(ce=this.defaultValue,G={}){this._applyFormState(ce),this.markAsPristine(G),this.markAsUntouched(G),this.setValue(this.value,G),this._pendingChange=!1}_updateValue(){}_anyControls(ce){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(ce){this._onChange.push(ce)}_unregisterOnChange(ce){_i(this._onChange,ce)}registerOnDisabledChange(ce){this._onDisabledChange.push(ce)}_unregisterOnDisabledChange(ce){_i(this._onDisabledChange,ce)}_forEachChild(ce){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(ce){or(ce)?(this.value=this._pendingValue=ce.value,ce.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=ce}},_t={provide:pe,useExisting:(0,h.Gpc)(()=>tn)},Wt=Promise.resolve();let tn=(()=>{class re extends pe{constructor(G,Ge,zt,ni,Ln,Di){super(),this._changeDetectorRef=Ln,this.callSetDisabledState=Di,this.control=new Ee,this._registered=!1,this.name="",this.update=new h.vpe,this._parent=G,this._setValidators(Ge),this._setAsyncValidators(zt),this.valueAccessor=function Hn(re,ce){if(!ce)return null;let G,Ge,zt;return Array.isArray(ce),ce.forEach(ni=>{ni.constructor===Me?G=ni:function ln(re){return Object.getPrototypeOf(re.constructor)===C}(ni)?Ge=ni:zt=ni}),zt||Ge||G||null}(0,ni)}ngOnChanges(G){if(this._checkForErrors(),!this._registered||"name"in G){if(this._registered&&(this._checkName(),this.formDirective)){const Ge=G.name.previousValue;this.formDirective.removeControl({name:Ge,path:this._getPath(Ge)})}this._setUpControl()}"isDisabled"in G&&this._updateDisabled(G),function Et(re,ce){if(!re.hasOwnProperty("model"))return!1;const G=re.model;return!!G.isFirstChange()||!Object.is(ce,G.currentValue)}(G,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(G){this.viewModel=G,this.update.emit(G)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ri(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(G){Wt.then(()=>{this.control.setValue(G,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(G){const Ge=G.isDisabled.currentValue,zt=0!==Ge&&(0,h.VuI)(Ge);Wt.then(()=>{zt&&!this.control.disabled?this.control.disable():!zt&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(G){return this._parent?function wi(re,ce){return[...ce.path,re]}(G,this._parent):[G]}static#e=this.\u0275fac=function(Ge){return new(Ge||re)(h.Y36(It,9),h.Y36(Ce,10),h.Y36(oe,10),h.Y36(ie,10),h.Y36(h.sBO,8),h.Y36(In,8))};static#t=this.\u0275dir=h.lG2({type:re,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.lbL.None,"disabled","isDisabled"],model:[h.lbL.None,"ngModel","model"],options:[h.lbL.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h._Bn([_t]),h.qOj,h.TTD]})}return re})();const Vn={provide:ie,useExisting:(0,h.Gpc)(()=>$n),multi:!0};let $n=(()=>{class re extends C{writeValue(G){this.setProperty("value",G??"")}registerOnChange(G){this.onChange=Ge=>{G(""==Ge?null:parseFloat(Ge))}}static#e=this.\u0275fac=(()=>{let G;return function(zt){return(G||(G=h.n5z(re)))(zt||re)}})();static#t=this.\u0275dir=h.lG2({type:re,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Ge,zt){1&Ge&&h.NdJ("input",function(Ln){return zt.onChange(Ln.target.value)})("blur",function(){return zt.onTouched()})},features:[h._Bn([Vn]),h.qOj]})}return re})(),fi=(()=>{class re{static#e=this.\u0275fac=function(Ge){return new(Ge||re)};static#t=this.\u0275mod=h.oAB({type:re});static#n=this.\u0275inj=h.cJS({})}return re})();function Po(re){return"number"==typeof re?re:parseFloat(re)}let Jo=(()=>{class re{constructor(){this._validator=De}ngOnChanges(G){if(this.inputName in G){const Ge=this.normalizeInput(G[this.inputName].currentValue);this._enabled=this.enabled(Ge),this._validator=this._enabled?this.createValidator(Ge):De,this._onChange&&this._onChange()}}validate(G){return this._validator(G)}registerOnValidatorChange(G){this._onChange=G}enabled(G){return null!=G}static#e=this.\u0275fac=function(Ge){return new(Ge||re)};static#t=this.\u0275dir=h.lG2({type:re,features:[h.TTD]})}return re})();const vs={provide:Ce,useExisting:(0,h.Gpc)(()=>Ko),multi:!0};let Ko=(()=>{class re extends Jo{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=G=>Po(G),this.createValidator=G=>function ye(re){return ce=>{if(de(ce.value)||de(re))return null;const G=parseFloat(ce.value);return!isNaN(G)&&G>re?{max:{max:re,actual:ce.value}}:null}}(G)}static#e=this.\u0275fac=(()=>{let G;return function(zt){return(G||(G=h.n5z(re)))(zt||re)}})();static#t=this.\u0275dir=h.lG2({type:re,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Ge,zt){2&Ge&&h.uIk("max",zt._enabled?zt.max:null)},inputs:{max:"max"},features:[h._Bn([vs]),h.qOj]})}return re})();const rl={provide:Ce,useExisting:(0,h.Gpc)(()=>la),multi:!0};let la=(()=>{class re extends Jo{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=G=>Po(G),this.createValidator=G=>function Ae(re){return ce=>{if(de(ce.value)||de(re))return null;const G=parseFloat(ce.value);return!isNaN(G)&&G{let G;return function(zt){return(G||(G=h.n5z(re)))(zt||re)}})();static#t=this.\u0275dir=h.lG2({type:re,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Ge,zt){2&Ge&&h.uIk("min",zt._enabled?zt.min:null)},inputs:{min:"min"},features:[h._Bn([rl]),h.qOj]})}return re})(),Ea=(()=>{class re{static#e=this.\u0275fac=function(Ge){return new(Ge||re)};static#t=this.\u0275mod=h.oAB({type:re});static#n=this.\u0275inj=h.cJS({imports:[fi]})}return re})(),Qo=(()=>{class re{static withConfig(G){return{ngModule:re,providers:[{provide:In,useValue:G.callSetDisabledState??bi}]}}static#e=this.\u0275fac=function(Ge){return new(Ge||re)};static#t=this.\u0275mod=h.oAB({type:re});static#n=this.\u0275inj=h.cJS({imports:[Ea]})}return re})()},6593:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Dx:()=>Un,b2:()=>lt,q6:()=>bn});var h=P(9212),m=P(6814);class te extends m.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class l extends te{static makeCurrent(){(0,m.HT)(new l)}onAndCancel(ft,Z,Re){return ft.addEventListener(Z,Re),()=>{ft.removeEventListener(Z,Re)}}dispatchEvent(ft,Z){ft.dispatchEvent(Z)}remove(ft){ft.parentNode&&ft.parentNode.removeChild(ft)}createElement(ft,Z){return(Z=Z||this.getDefaultDocument()).createElement(ft)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(ft){return ft.nodeType===Node.ELEMENT_NODE}isShadowRoot(ft){return ft instanceof DocumentFragment}getGlobalEventTarget(ft,Z){return"window"===Z?window:"document"===Z?ft:"body"===Z?ft.body:null}getBaseHref(ft){const Z=function Y(){return B=B||document.querySelector("base"),B?B.getAttribute("href"):null}();return null==Z?null:function C(ae){return new URL(ae,document.baseURI).pathname}(Z)}resetBaseElement(){B=null}getUserAgent(){return window.navigator.userAgent}getCookie(ft){return(0,m.Mx)(document.cookie,ft)}}let B=null,fe=(()=>{class ae{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(Re){return new(Re||ae)};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const Pe=new h.OlP("EventManagerPlugins");let K=(()=>{class ae{constructor(Z,Re){this._zone=Re,this._eventNameToPlugin=new Map,Z.forEach(st=>{st.manager=this}),this._plugins=Z.slice().reverse()}addEventListener(Z,Re,st){return this._findPluginFor(Re).addEventListener(Z,Re,st)}getZone(){return this._zone}_findPluginFor(Z){let Re=this._eventNameToPlugin.get(Z);if(Re)return Re;if(Re=this._plugins.find(on=>on.supports(Z)),!Re)throw new h.vHH(5101,!1);return this._eventNameToPlugin.set(Z,Re),Re}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(Pe),h.LFG(h.R0b))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();class be{constructor(ft){this._doc=ft}}const Te="ng-app-id";let Me=(()=>{class ae{constructor(Z,Re,st,on={}){this.doc=Z,this.appId=Re,this.nonce=st,this.platformId=on,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,m.PM)(on),this.resetHostNodes()}addStyles(Z){for(const Re of Z)1===this.changeUsageCount(Re,1)&&this.onStyleAdded(Re)}removeStyles(Z){for(const Re of Z)this.changeUsageCount(Re,-1)<=0&&this.onStyleRemoved(Re)}ngOnDestroy(){const Z=this.styleNodesInDOM;Z&&(Z.forEach(Re=>Re.remove()),Z.clear());for(const Re of this.getAllStyles())this.onStyleRemoved(Re);this.resetHostNodes()}addHost(Z){this.hostNodes.add(Z);for(const Re of this.getAllStyles())this.addStyleToHost(Z,Re)}removeHost(Z){this.hostNodes.delete(Z)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(Z){for(const Re of this.hostNodes)this.addStyleToHost(Re,Z)}onStyleRemoved(Z){const Re=this.styleRef;Re.get(Z)?.elements?.forEach(st=>st.remove()),Re.delete(Z)}collectServerRenderedStyles(){const Z=this.doc.head?.querySelectorAll(`style[${Te}="${this.appId}"]`);if(Z?.length){const Re=new Map;return Z.forEach(st=>{null!=st.textContent&&Re.set(st.textContent,st)}),Re}return null}changeUsageCount(Z,Re){const st=this.styleRef;if(st.has(Z)){const on=st.get(Z);return on.usage+=Re,on.usage}return st.set(Z,{usage:Re,elements:[]}),Re}getStyleElement(Z,Re){const st=this.styleNodesInDOM,on=st?.get(Re);if(on?.parentNode===Z)return st.delete(Re),on.removeAttribute(Te),on;{const In=this.doc.createElement("style");return this.nonce&&In.setAttribute("nonce",this.nonce),In.textContent=Re,this.platformIsServer&&In.setAttribute(Te,this.appId),Z.appendChild(In),In}}addStyleToHost(Z,Re){const st=this.getStyleElement(Z,Re),on=this.styleRef,In=on.get(Re)?.elements;In?In.push(st):on.set(Re,{elements:[st],usage:1})}resetHostNodes(){const Z=this.hostNodes;Z.clear(),Z.add(this.doc.head)}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(m.K0),h.LFG(h.AFp),h.LFG(h.Ojb,8),h.LFG(h.Lbi))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const de={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},nt=/%COMP%/g,Ae=new h.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function ct(ae,ft){return ft.map(Z=>Z.replace(nt,ae))}let X=(()=>{class ae{constructor(Z,Re,st,on,In,bi,wi,Ri=null){this.eventManager=Z,this.sharedStylesHost=Re,this.appId=st,this.removeStylesOnCompDestroy=on,this.doc=In,this.platformId=bi,this.ngZone=wi,this.nonce=Ri,this.rendererByCompId=new Map,this.platformIsServer=(0,m.PM)(bi),this.defaultRenderer=new ve(Z,In,wi,this.platformIsServer)}createRenderer(Z,Re){if(!Z||!Re)return this.defaultRenderer;this.platformIsServer&&Re.encapsulation===h.ifc.ShadowDom&&(Re={...Re,encapsulation:h.ifc.Emulated});const st=this.getOrCreateRenderer(Z,Re);return st instanceof Ht?st.applyToHost(Z):st instanceof Ke&&st.applyStyles(),st}getOrCreateRenderer(Z,Re){const st=this.rendererByCompId;let on=st.get(Re.id);if(!on){const In=this.doc,bi=this.ngZone,wi=this.eventManager,Ri=this.sharedStylesHost,mr=this.removeStylesOnCompDestroy,Xi=this.platformIsServer;switch(Re.encapsulation){case h.ifc.Emulated:on=new Ht(wi,Ri,Re,this.appId,mr,In,bi,Xi);break;case h.ifc.ShadowDom:return new ze(wi,Ri,Z,Re,In,bi,this.nonce,Xi);default:on=new Ke(wi,Ri,Re,mr,In,bi,Xi)}st.set(Re.id,on)}return on}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(K),h.LFG(Me),h.LFG(h.AFp),h.LFG(Ae),h.LFG(m.K0),h.LFG(h.Lbi),h.LFG(h.R0b),h.LFG(h.Ojb))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();class ve{constructor(ft,Z,Re,st){this.eventManager=ft,this.doc=Z,this.ngZone=Re,this.platformIsServer=st,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(ft,Z){return Z?this.doc.createElementNS(de[Z]||Z,ft):this.doc.createElement(ft)}createComment(ft){return this.doc.createComment(ft)}createText(ft){return this.doc.createTextNode(ft)}appendChild(ft,Z){(De(ft)?ft.content:ft).appendChild(Z)}insertBefore(ft,Z,Re){ft&&(De(ft)?ft.content:ft).insertBefore(Z,Re)}removeChild(ft,Z){ft&&ft.removeChild(Z)}selectRootElement(ft,Z){let Re="string"==typeof ft?this.doc.querySelector(ft):ft;if(!Re)throw new h.vHH(-5104,!1);return Z||(Re.textContent=""),Re}parentNode(ft){return ft.parentNode}nextSibling(ft){return ft.nextSibling}setAttribute(ft,Z,Re,st){if(st){Z=st+":"+Z;const on=de[st];on?ft.setAttributeNS(on,Z,Re):ft.setAttribute(Z,Re)}else ft.setAttribute(Z,Re)}removeAttribute(ft,Z,Re){if(Re){const st=de[Re];st?ft.removeAttributeNS(st,Z):ft.removeAttribute(`${Re}:${Z}`)}else ft.removeAttribute(Z)}addClass(ft,Z){ft.classList.add(Z)}removeClass(ft,Z){ft.classList.remove(Z)}setStyle(ft,Z,Re,st){st&(h.JOm.DashCase|h.JOm.Important)?ft.style.setProperty(Z,Re,st&h.JOm.Important?"important":""):ft.style[Z]=Re}removeStyle(ft,Z,Re){Re&h.JOm.DashCase?ft.style.removeProperty(Z):ft.style[Z]=""}setProperty(ft,Z,Re){null!=ft&&(ft[Z]=Re)}setValue(ft,Z){ft.nodeValue=Z}listen(ft,Z,Re){if("string"==typeof ft&&!(ft=(0,m.q)().getGlobalEventTarget(this.doc,ft)))throw new Error(`Unsupported event target ${ft} for event ${Z}`);return this.eventManager.addEventListener(ft,Z,this.decoratePreventDefault(Re))}decoratePreventDefault(ft){return Z=>{if("__ngUnwrap__"===Z)return ft;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>ft(Z)):ft(Z))&&Z.preventDefault()}}}function De(ae){return"TEMPLATE"===ae.tagName&&void 0!==ae.content}class ze extends ve{constructor(ft,Z,Re,st,on,In,bi,wi){super(ft,on,In,wi),this.sharedStylesHost=Z,this.hostEl=Re,this.shadowRoot=Re.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ri=ct(st.id,st.styles);for(const mr of Ri){const Xi=document.createElement("style");bi&&Xi.setAttribute("nonce",bi),Xi.textContent=mr,this.shadowRoot.appendChild(Xi)}}nodeOrShadowRoot(ft){return ft===this.hostEl?this.shadowRoot:ft}appendChild(ft,Z){return super.appendChild(this.nodeOrShadowRoot(ft),Z)}insertBefore(ft,Z,Re){return super.insertBefore(this.nodeOrShadowRoot(ft),Z,Re)}removeChild(ft,Z){return super.removeChild(this.nodeOrShadowRoot(ft),Z)}parentNode(ft){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(ft)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Ke extends ve{constructor(ft,Z,Re,st,on,In,bi,wi){super(ft,on,In,bi),this.sharedStylesHost=Z,this.removeStylesOnCompDestroy=st,this.styles=wi?ct(wi,Re.styles):Re.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Ht extends Ke{constructor(ft,Z,Re,st,on,In,bi,wi){const Ri=st+"-"+Re.id;super(ft,Z,Re,on,In,bi,wi,Ri),this.contentAttr=function ye(ae){return"_ngcontent-%COMP%".replace(nt,ae)}(Ri),this.hostAttr=function Ue(ae){return"_nghost-%COMP%".replace(nt,ae)}(Ri)}applyToHost(ft){this.applyStyles(),this.setAttribute(ft,this.hostAttr,"")}createElement(ft,Z){const Re=super.createElement(ft,Z);return super.setAttribute(Re,this.contentAttr,""),Re}}let dn=(()=>{class ae extends be{constructor(Z){super(Z)}supports(Z){return!0}addEventListener(Z,Re,st){return Z.addEventListener(Re,st,!1),()=>this.removeEventListener(Z,Re,st)}removeEventListener(Z,Re,st){return Z.removeEventListener(Re,st)}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(m.K0))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const _n=["alt","control","meta","shift"],Ut={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},We={alt:ae=>ae.altKey,control:ae=>ae.ctrlKey,meta:ae=>ae.metaKey,shift:ae=>ae.shiftKey};let Ne=(()=>{class ae extends be{constructor(Z){super(Z)}supports(Z){return null!=ae.parseEventName(Z)}addEventListener(Z,Re,st){const on=ae.parseEventName(Re),In=ae.eventCallback(on.fullKey,st,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,m.q)().onAndCancel(Z,on.domEventName,In))}static parseEventName(Z){const Re=Z.toLowerCase().split("."),st=Re.shift();if(0===Re.length||"keydown"!==st&&"keyup"!==st)return null;const on=ae._normalizeKey(Re.pop());let In="",bi=Re.indexOf("code");if(bi>-1&&(Re.splice(bi,1),In="code."),_n.forEach(Ri=>{const mr=Re.indexOf(Ri);mr>-1&&(Re.splice(mr,1),In+=Ri+".")}),In+=on,0!=Re.length||0===on.length)return null;const wi={};return wi.domEventName=st,wi.fullKey=In,wi}static matchEventFullKeyCode(Z,Re){let st=Ut[Z.key]||Z.key,on="";return Re.indexOf("code.")>-1&&(st=Z.code,on="code."),!(null==st||!st)&&(st=st.toLowerCase()," "===st?st="space":"."===st&&(st="dot"),_n.forEach(In=>{In!==st&&(0,We[In])(Z)&&(on+=In+".")}),on+=st,on===Re)}static eventCallback(Z,Re,st){return on=>{ae.matchEventFullKeyCode(on,Z)&&st.runGuarded(()=>Re(on))}}static _normalizeKey(Z){return"esc"===Z?"escape":Z}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(m.K0))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:ae.\u0275fac})}return ae})();const bn=(0,h.eFA)(h._c5,"browser",[{provide:h.Lbi,useValue:m.bD},{provide:h.g9A,useValue:function an(){l.makeCurrent()},multi:!0},{provide:m.K0,useFactory:function pt(){return(0,h.RDi)(document),document},deps:[]}]),Cn=new h.OlP(""),It=[{provide:h.rWj,useClass:class ie{addToWindow(ft){h.dqk.getAngularTestability=(Re,st=!0)=>{const on=ft.findTestabilityInTree(Re,st);if(null==on)throw new h.vHH(5103,!1);return on},h.dqk.getAllAngularTestabilities=()=>ft.getAllTestabilities(),h.dqk.getAllAngularRootElements=()=>ft.getAllRootElements(),h.dqk.frameworkStabilizers||(h.dqk.frameworkStabilizers=[]),h.dqk.frameworkStabilizers.push(Re=>{const st=h.dqk.getAllAngularTestabilities();let on=st.length;const In=function(){on--,0==on&&Re()};st.forEach(bi=>{bi.whenStable(In)})})}findTestabilityInTree(ft,Z,Re){return null==Z?null:ft.getTestability(Z)??(Re?(0,m.q)().isShadowRoot(Z)?this.findTestabilityInTree(ft,Z.host,!0):this.findTestabilityInTree(ft,Z.parentElement,!0):null)}},deps:[]},{provide:h.lri,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]},{provide:h.dDg,useClass:h.dDg,deps:[h.R0b,h.eoX,h.rWj]}],pe=[{provide:h.zSh,useValue:"root"},{provide:h.qLn,useFactory:function tt(){return new h.qLn},deps:[]},{provide:Pe,useClass:dn,multi:!0,deps:[m.K0,h.R0b,h.Lbi]},{provide:Pe,useClass:Ne,multi:!0,deps:[m.K0]},X,Me,K,{provide:h.FYo,useExisting:X},{provide:m.JF,useClass:fe,deps:[]},[]];let lt=(()=>{class ae{constructor(Z){}static withServerTransition(Z){return{ngModule:ae,providers:[{provide:h.AFp,useValue:Z.appId}]}}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(Cn,12))};static#t=this.\u0275mod=h.oAB({type:ae});static#n=this.\u0275inj=h.cJS({providers:[...pe,...It],imports:[m.ez,h.hGG]})}return ae})(),Un=(()=>{class ae{constructor(Z){this._doc=Z}getTitle(){return this._doc.title}setTitle(Z){this._doc.title=Z||""}static#e=this.\u0275fac=function(Re){return new(Re||ae)(h.LFG(m.K0))};static#t=this.\u0275prov=h.Yz7({token:ae,factory:function(Re){let st=null;return st=Re?new Re:function Ft(){return new Un((0,h.LFG)(m.K0))}(),st},providedIn:"root"})}return ae})();typeof window<"u"&&window},6800:(Bn,Ct,P)=>{"use strict";P.d(Ct,{gz:()=>To,y6:()=>Fi,OD:()=>St,eC:()=>pe,wN:()=>Zr,F0:()=>Ds,rH:()=>Lo,Bz:()=>dl,Hx:()=>ot});var h=P(9212),m=P(2664),te=P(7715),l=P(2096),B=P(5619),Y=P(2572);const ie=(0,P(2306).d)(S=>function(){S(this),this.name="EmptyError",this.message="no elements in sequence"});var fe=P(5211),Pe=P(4911),K=P(8407),be=P(5592),Te=P(4674);function Me(S,u){const n=(0,Te.m)(S)?S:()=>S,a=p=>p.error(n());return new be.y(u?p=>u.schedule(a,0,p):a)}var de=P(6232),nt=P(7394),Ce=P(9360),oe=P(8251);function xe(){return(0,Ce.e)((S,u)=>{let n=null;S._refCount++;const a=(0,oe.x)(u,void 0,void 0,void 0,()=>{if(!S||S._refCount<=0||0<--S._refCount)return void(n=null);const p=S._connection,y=n;n=null,p&&(!y||p===y)&&p.unsubscribe(),u.unsubscribe()});S.subscribe(a),a.closed||(n=S.connect())})}class Ie extends be.y{constructor(u,n){super(),this.source=u,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,(0,Ce.A)(u)&&(this.lift=u.lift)}_subscribe(u){return this.getSubject().subscribe(u)}getSubject(){const u=this._subject;return(!u||u.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:u}=this;this._subject=this._connection=null,u?.unsubscribe()}connect(){let u=this._connection;if(!u){u=this._connection=new nt.w0;const n=this.getSubject();u.add(this.source.subscribe((0,oe.x)(n,void 0,()=>{this._teardown(),n.complete()},a=>{this._teardown(),n.error(a)},()=>this._teardown()))),u.closed&&(this._connection=null,u=nt.w0.EMPTY)}return u}refCount(){return xe()(this)}}var Ae=P(8645),ye=P(6814),Ue=P(7398),ct=P(4664),X=P(8180),ve=P(4564),Fe=P(2181),De=P(1631);function ze(S){return(0,Ce.e)((u,n)=>{let a=!1;u.subscribe((0,oe.x)(n,p=>{a=!0,n.next(p)},()=>{a||n.next(S),n.complete()}))})}function Ke(S=Ht){return(0,Ce.e)((u,n)=>{let a=!1;u.subscribe((0,oe.x)(n,p=>{a=!0,n.next(p)},()=>a?n.complete():n.error(S())))})}function Ht(){return new ie}var dn=P(2737);function _n(S,u){const n=arguments.length>=2;return a=>a.pipe(S?(0,Fe.h)((p,y)=>S(p,y,a)):dn.y,(0,X.q)(1),n?ze(u):Ke(()=>new ie))}var Ut=P(6328);function We(S,u,n){const a=(0,Te.m)(S)||u||n?{next:S,error:u,complete:n}:S;return a?(0,Ce.e)((p,y)=>{var x;null===(x=a.subscribe)||void 0===x||x.call(a);let D=!0;p.subscribe((0,oe.x)(y,I=>{var R;null===(R=a.next)||void 0===R||R.call(a,I),y.next(I)},()=>{var I;D=!1,null===(I=a.complete)||void 0===I||I.call(a),y.complete()},I=>{var R;D=!1,null===(R=a.error)||void 0===R||R.call(a,I),y.error(I)},()=>{var I,R;D&&(null===(I=a.unsubscribe)||void 0===I||I.call(a)),null===(R=a.finalize)||void 0===R||R.call(a)}))}):dn.y}var Ne=P(4829);function ke(S){return(0,Ce.e)((u,n)=>{let y,a=null,p=!1;a=u.subscribe((0,oe.x)(n,void 0,void 0,x=>{y=(0,Ne.Xf)(S(x,ke(S)(u))),a?(a.unsubscribe(),a=null,y.subscribe(n)):p=!0})),p&&(a.unsubscribe(),a=null,y.subscribe(n))})}function mt(S){return S<=0?()=>de.E:(0,Ce.e)((u,n)=>{let a=[];u.subscribe((0,oe.x)(n,p=>{a.push(p),S{for(const p of a)n.next(p);n.complete()},void 0,()=>{a=null}))})}var pt=P(4716),Xt=P(2420),Cn=P(7537),It=P(6593);const pe="primary",lt=Symbol("RouteTitle");class Zt{constructor(u){this.params=u||{}}has(u){return Object.prototype.hasOwnProperty.call(this.params,u)}get(u){if(this.has(u)){const n=this.params[u];return Array.isArray(n)?n[0]:n}return null}getAll(u){if(this.has(u)){const n=this.params[u];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function hn(S){return new Zt(S)}function Yt(S,u,n){const a=n.path.split("/");if(a.length>S.length||"full"===n.pathMatch&&(u.hasChildren()||a.lengtha[y]===p)}return S===u}function Kt(S){return S.length>0?S[S.length-1]:null}function wn(S){return(0,m.b)(S)?S:(0,h.QGY)(S)?(0,te.D)(Promise.resolve(S)):(0,l.of)(S)}const ei={exact:function dr(S,u,n){if(!he(S.segments,u.segments)||!gn(S.segments,u.segments,n)||S.numberOfChildren!==u.numberOfChildren)return!1;for(const a in u.children)if(!S.children[a]||!dr(S.children[a],u.children[a],n))return!1;return!0},subset:fn},di={exact:function Mi(S,u){return Un(S,u)},subset:function Ei(S,u){return Object.keys(u).length<=Object.keys(S).length&&Object.keys(u).every(n=>Pt(S[n],u[n]))},ignored:()=>!0};function Lr(S,u,n){return ei[n.paths](S.root,u.root,n.matrixParams)&&di[n.queryParams](S.queryParams,u.queryParams)&&!("exact"===n.fragment&&S.fragment!==u.fragment)}function fn(S,u,n){return Li(S,u,u.segments,n)}function Li(S,u,n,a){if(S.segments.length>n.length){const p=S.segments.slice(0,n.length);return!(!he(p,n)||u.hasChildren()||!gn(p,n,a))}if(S.segments.length===n.length){if(!he(S.segments,n)||!gn(S.segments,n,a))return!1;for(const p in u.children)if(!S.children[p]||!fn(S.children[p],u.children[p],a))return!1;return!0}{const p=n.slice(0,S.segments.length),y=n.slice(S.segments.length);return!!(he(S.segments,p)&&gn(S.segments,p,a)&&S.children[pe])&&Li(S.children[pe],u,y,a)}}function gn(S,u,n){return u.every((a,p)=>di[n](S[p].parameters,a.parameters))}class Fn{constructor(u=new Jt([],{}),n={},a=null){this.root=u,this.queryParams=n,this.fragment=a}get queryParamMap(){return this._queryParamMap??=hn(this.queryParams),this._queryParamMap}toString(){return Dt.serialize(this)}}class Jt{constructor(u,n){this.segments=u,this.children=n,this.parent=null,Object.values(n).forEach(a=>a.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return jt(this)}}class Bi{constructor(u,n){this.path=u,this.parameters=n}get parameterMap(){return this._parameterMap??=hn(this.parameters),this._parameterMap}toString(){return Z(this)}}function he(S,u){return S.length===u.length&&S.every((n,a)=>n.path===u[a].path)}let ot=(()=>{class S{static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:()=>new yt,providedIn:"root"})}return S})();class yt{parse(u){const n=new uo(u);return new Fn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(u){const n=`/${Vt(u.root,!0)}`,a=function st(S){const u=Object.entries(S).map(([n,a])=>Array.isArray(a)?a.map(p=>`${Bt(n)}=${Bt(p)}`).join("&"):`${Bt(n)}=${Bt(a)}`).filter(n=>n);return u.length?`?${u.join("&")}`:""}(u.queryParams);return`${n}${a}${"string"==typeof u.fragment?`#${function Nn(S){return encodeURI(S)}(u.fragment)}`:""}`}}const Dt=new yt;function jt(S){return S.segments.map(u=>Z(u)).join("/")}function Vt(S,u){if(!S.hasChildren())return jt(S);if(u){const n=S.children[pe]?Vt(S.children[pe],!1):"",a=[];return Object.entries(S.children).forEach(([p,y])=>{p!==pe&&a.push(`${p}:${Vt(y,!1)}`)}),a.length>0?`${n}(${a.join("//")})`:n}{const n=function _e(S,u){let n=[];return Object.entries(S.children).forEach(([a,p])=>{a===pe&&(n=n.concat(u(p,a)))}),Object.entries(S.children).forEach(([a,p])=>{a!==pe&&(n=n.concat(u(p,a)))}),n}(S,(a,p)=>p===pe?[Vt(S.children[pe],!1)]:[`${p}:${Vt(a,!1)}`]);return 1===Object.keys(S.children).length&&null!=S.children[pe]?`${jt(S)}/${n[0]}`:`${jt(S)}/(${n.join("//")})`}}function dt(S){return encodeURIComponent(S).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Bt(S){return dt(S).replace(/%3B/gi,";")}function Gn(S){return dt(S).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ae(S){return decodeURIComponent(S)}function ft(S){return ae(S.replace(/\+/g,"%20"))}function Z(S){return`${Gn(S.path)}${function Re(S){return Object.entries(S).map(([u,n])=>`;${Gn(u)}=${Gn(n)}`).join("")}(S.parameters)}`}const on=/^[^\/()?;#]+/;function In(S){const u=S.match(on);return u?u[0]:""}const bi=/^[^\/()?;=#]+/,Ri=/^[^=?&#]+/,Xi=/^[^&#]+/;class uo{constructor(u){this.url=u,this.remaining=u}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Jt([],{}):new Jt([],this.parseChildren())}parseQueryParams(){const u={};if(this.consumeOptional("?"))do{this.parseQueryParam(u)}while(this.consumeOptional("&"));return u}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const u=[];for(this.peekStartsWith("(")||u.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),u.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let a={};return this.peekStartsWith("(")&&(a=this.parseParens(!1)),(u.length>0||Object.keys(n).length>0)&&(a[pe]=new Jt(u,n)),a}parseSegment(){const u=In(this.remaining);if(""===u&&this.peekStartsWith(";"))throw new h.vHH(4009,!1);return this.capture(u),new Bi(ae(u),this.parseMatrixParams())}parseMatrixParams(){const u={};for(;this.consumeOptional(";");)this.parseParam(u);return u}parseParam(u){const n=function wi(S){const u=S.match(bi);return u?u[0]:""}(this.remaining);if(!n)return;this.capture(n);let a="";if(this.consumeOptional("=")){const p=In(this.remaining);p&&(a=p,this.capture(a))}u[ae(n)]=ae(a)}parseQueryParam(u){const n=function mr(S){const u=S.match(Ri);return u?u[0]:""}(this.remaining);if(!n)return;this.capture(n);let a="";if(this.consumeOptional("=")){const x=function Ar(S){const u=S.match(Xi);return u?u[0]:""}(this.remaining);x&&(a=x,this.capture(a))}const p=ft(n),y=ft(a);if(u.hasOwnProperty(p)){let x=u[p];Array.isArray(x)||(x=[x],u[p]=x),x.push(y)}else u[p]=y}parseParens(u){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const a=In(this.remaining),p=this.remaining[a.length];if("/"!==p&&")"!==p&&";"!==p)throw new h.vHH(4010,!1);let y;a.indexOf(":")>-1?(y=a.slice(0,a.indexOf(":")),this.capture(y),this.capture(":")):u&&(y=pe);const x=this.parseChildren();n[y]=1===Object.keys(x).length?x[pe]:new Jt([],x),this.consumeOptional("//")}return n}peekStartsWith(u){return this.remaining.startsWith(u)}consumeOptional(u){return!!this.peekStartsWith(u)&&(this.remaining=this.remaining.substring(u.length),!0)}capture(u){if(!this.consumeOptional(u))throw new h.vHH(4011,!1)}}function _o(S){return S.segments.length>0?new Jt([],{[pe]:S}):S}function Eo(S){const u={};for(const[a,p]of Object.entries(S.children)){const y=Eo(p);if(a===pe&&0===y.segments.length&&y.hasChildren())for(const[x,D]of Object.entries(y.children))u[x]=D;else(y.segments.length>0||y.hasChildren())&&(u[a]=y)}return function zi(S){if(1===S.numberOfChildren&&S.children[pe]){const u=S.children[pe];return new Jt(S.segments.concat(u.segments),u.children)}return S}(new Jt(S.segments,u))}function hr(S){return S instanceof Fn}function yo(S){let u;const p=_o(function n(y){const x={};for(const I of y.children){const R=n(I);x[I.outlet]=R}const D=new Jt(y.url,x);return y===S&&(u=D),D}(S.root));return u??p}function vr(S,u,n,a){let p=S;for(;p.parent;)p=p.parent;if(0===u.length)return qi(p,p,p,n,a);const y=function Et(S){if("string"==typeof S[0]&&1===S.length&&"/"===S[0])return new Tt(!0,0,S);let u=0,n=!1;const a=S.reduce((p,y,x)=>{if("object"==typeof y&&null!=y){if(y.outlets){const D={};return Object.entries(y.outlets).forEach(([I,R])=>{D[I]="string"==typeof R?R.split("/"):R}),[...p,{outlets:D}]}if(y.segmentPath)return[...p,y.segmentPath]}return"string"!=typeof y?[...p,y]:0===x?(y.split("/").forEach((D,I)=>{0==I&&"."===D||(0==I&&""===D?n=!0:".."===D?u++:""!=D&&p.push(D))}),p):[...p,y]},[]);return new Tt(n,u,a)}(u);if(y.toRoot())return qi(p,p,new Jt([],{}),n,a);const x=function vt(S,u,n){if(S.isAbsolute)return new ln(u,!0,0);if(!n)return new ln(u,!1,NaN);if(null===n.parent)return new ln(n,!0,0);const a=Vr(S.commands[0])?0:1;return function Hn(S,u,n){let a=S,p=u,y=n;for(;y>p;){if(y-=p,a=a.parent,!a)throw new h.vHH(4005,!1);p=a.segments.length}return new ln(a,!1,p-y)}(n,n.segments.length-1+a,S.numberOfDoubleDots)}(y,p,S),D=x.processChildren?pi(x.segmentGroup,x.index,y.commands):Kn(x.segmentGroup,x.index,y.commands);return qi(p,x.segmentGroup,D,n,a)}function Vr(S){return"object"==typeof S&&null!=S&&!S.outlets&&!S.segmentPath}function Yr(S){return"object"==typeof S&&null!=S&&S.outlets}function qi(S,u,n,a,p){let x,y={};a&&Object.entries(a).forEach(([I,R])=>{y[I]=Array.isArray(R)?R.map(U=>`${U}`):`${R}`}),x=S===u?n:Qe(S,u,n);const D=_o(Eo(x));return new Fn(D,y,p)}function Qe(S,u,n){const a={};return Object.entries(S.children).forEach(([p,y])=>{a[p]=y===u?n:Qe(y,u,n)}),new Jt(S.segments,a)}class Tt{constructor(u,n,a){if(this.isAbsolute=u,this.numberOfDoubleDots=n,this.commands=a,u&&a.length>0&&Vr(a[0]))throw new h.vHH(4003,!1);const p=a.find(Yr);if(p&&p!==Kt(a))throw new h.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ln{constructor(u,n,a){this.segmentGroup=u,this.processChildren=n,this.index=a}}function Kn(S,u,n){if(S??=new Jt([],{}),0===S.segments.length&&S.hasChildren())return pi(S,u,n);const a=function ki(S,u,n){let a=0,p=u;const y={match:!1,pathIndex:0,commandIndex:0};for(;p=n.length)return y;const x=S.segments[p],D=n[a];if(Yr(D))break;const I=`${D}`,R=a0&&void 0===I)break;if(I&&R&&"object"==typeof R&&void 0===R.outlets){if(!Ee(I,R,x))return y;a+=2}else{if(!Ee(I,{},x))return y;a++}p++}return{match:!0,pathIndex:p,commandIndex:a}}(S,u,n),p=n.slice(a.commandIndex);if(a.match&&a.pathIndexy!==pe)&&S.children[pe]&&1===S.numberOfChildren&&0===S.children[pe].segments.length){const y=pi(S.children[pe],u,n);return new Jt(S.segments,y.children)}return Object.entries(a).forEach(([y,x])=>{"string"==typeof x&&(x=[x]),null!==x&&(p[y]=Kn(S.children[y],u,x))}),Object.entries(S.children).forEach(([y,x])=>{void 0===a[y]&&(p[y]=x)}),new Jt(S.segments,p)}}function rr(S,u,n){const a=S.segments.slice(0,u);let p=0;for(;p{"string"==typeof a&&(a=[a]),null!==a&&(u[n]=rr(new Jt([],{}),0,a))}),u}function or(S){const u={};return Object.entries(S).forEach(([n,a])=>u[n]=`${a}`),u}function Ee(S,u,n){return S==n.path&&Un(u,n.parameters)}const Be="imperative";var ee=function(S){return S[S.NavigationStart=0]="NavigationStart",S[S.NavigationEnd=1]="NavigationEnd",S[S.NavigationCancel=2]="NavigationCancel",S[S.NavigationError=3]="NavigationError",S[S.RoutesRecognized=4]="RoutesRecognized",S[S.ResolveStart=5]="ResolveStart",S[S.ResolveEnd=6]="ResolveEnd",S[S.GuardsCheckStart=7]="GuardsCheckStart",S[S.GuardsCheckEnd=8]="GuardsCheckEnd",S[S.RouteConfigLoadStart=9]="RouteConfigLoadStart",S[S.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",S[S.ChildActivationStart=11]="ChildActivationStart",S[S.ChildActivationEnd=12]="ChildActivationEnd",S[S.ActivationStart=13]="ActivationStart",S[S.ActivationEnd=14]="ActivationEnd",S[S.Scroll=15]="Scroll",S[S.NavigationSkipped=16]="NavigationSkipped",S}(ee||{});class qe{constructor(u,n){this.id=u,this.url=n}}class St extends qe{constructor(u,n,a="imperative",p=null){super(u,n),this.type=ee.NavigationStart,this.navigationTrigger=a,this.restoredState=p}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class en extends qe{constructor(u,n,a){super(u,n),this.urlAfterRedirects=a,this.type=ee.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var jn=function(S){return S[S.Redirect=0]="Redirect",S[S.SupersededByNewNavigation=1]="SupersededByNewNavigation",S[S.NoDataFromResolver=2]="NoDataFromResolver",S[S.GuardRejected=3]="GuardRejected",S}(jn||{}),V=function(S){return S[S.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",S[S.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",S}(V||{});class ue extends qe{constructor(u,n,a,p){super(u,n),this.reason=a,this.code=p,this.type=ee.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Xe extends qe{constructor(u,n,a,p){super(u,n),this.reason=a,this.code=p,this.type=ee.NavigationSkipped}}class _t extends qe{constructor(u,n,a,p){super(u,n),this.error=a,this.target=p,this.type=ee.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Wt extends qe{constructor(u,n,a,p){super(u,n),this.urlAfterRedirects=a,this.state=p,this.type=ee.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tn extends qe{constructor(u,n,a,p){super(u,n),this.urlAfterRedirects=a,this.state=p,this.type=ee.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vn extends qe{constructor(u,n,a,p,y){super(u,n),this.urlAfterRedirects=a,this.state=p,this.shouldActivate=y,this.type=ee.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Vn extends qe{constructor(u,n,a,p){super(u,n),this.urlAfterRedirects=a,this.state=p,this.type=ee.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class $n extends qe{constructor(u,n,a,p){super(u,n),this.urlAfterRedirects=a,this.state=p,this.type=ee.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Xn{constructor(u){this.route=u,this.type=ee.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class si{constructor(u){this.route=u,this.type=ee.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class fi{constructor(u){this.snapshot=u,this.type=ee.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class yi{constructor(u){this.snapshot=u,this.type=ee.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vi{constructor(u){this.snapshot=u,this.type=ee.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Yi{constructor(u){this.snapshot=u,this.type=ee.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class O{constructor(u,n,a){this.routerEvent=u,this.position=n,this.anchor=a,this.type=ee.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Oe{}class ${constructor(u){this.url=u}}class Nt{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Fi,this.attachRef=null}}let Fi=(()=>{class S{constructor(){this.contexts=new Map}onChildOutletCreated(n,a){const p=this.getOrCreateContext(n);p.outlet=a,this.contexts.set(n,p)}onChildOutletDestroyed(n){const a=this.getContext(n);a&&(a.outlet=null,a.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let a=this.getContext(n);return a||(a=new Nt,this.contexts.set(n,a)),a}getContext(n){return this.contexts.get(n)||null}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();class Sr{constructor(u){this._root=u}get root(){return this._root.value}parent(u){const n=this.pathFromRoot(u);return n.length>1?n[n.length-2]:null}children(u){const n=Qi(u,this._root);return n?n.children.map(a=>a.value):[]}firstChild(u){const n=Qi(u,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(u){const n=Dr(u,this._root);return n.length<2?[]:n[n.length-2].children.map(p=>p.value).filter(p=>p!==u)}pathFromRoot(u){return Dr(u,this._root).map(n=>n.value)}}function Qi(S,u){if(S===u.value)return u;for(const n of u.children){const a=Qi(S,n);if(a)return a}return null}function Dr(S,u){if(S===u.value)return[u];for(const n of u.children){const a=Dr(S,n);if(a.length)return a.unshift(u),a}return[]}class ho{constructor(u,n){this.value=u,this.children=n}toString(){return`TreeNode(${this.value})`}}function ji(S){const u={};return S&&S.children.forEach(n=>u[n.value.outlet]=n),u}class eo extends Sr{constructor(u,n){super(u),this.snapshot=n,Qs(this,u)}toString(){return this.snapshot.toString()}}function Bs(S){const u=function Xs(S){const y=new ds([],{},{},"",{},pe,S,null,{});return new ys("",new ho(y,[]))}(S),n=new B.X([new Bi("",{})]),a=new B.X({}),p=new B.X({}),y=new B.X({}),x=new B.X(""),D=new To(n,a,y,x,p,pe,S,u.root);return D.snapshot=u.root,new eo(new ho(D,[]),u)}class To{constructor(u,n,a,p,y,x,D,I){this.urlSubject=u,this.paramsSubject=n,this.queryParamsSubject=a,this.fragmentSubject=p,this.dataSubject=y,this.outlet=x,this.component=D,this._futureSnapshot=I,this.title=this.dataSubject?.pipe((0,Ue.U)(R=>R[lt]))??(0,l.of)(void 0),this.url=u,this.params=n,this.queryParams=a,this.fragment=p,this.data=y}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((0,Ue.U)(u=>hn(u))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,Ue.U)(u=>hn(u))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $o(S,u,n="emptyOnly"){let a;const{routeConfig:p}=S;return a=null===u||"always"!==n&&""!==p?.path&&(u.component||u.routeConfig?.loadComponent)?{params:{...S.params},data:{...S.data},resolve:{...S.data,...S._resolvedData??{}}}:{params:{...u.params,...S.params},data:{...u.data,...S.data},resolve:{...S.data,...u.data,...p?.data,...S._resolvedData}},p&&vo(p)&&(a.resolve[lt]=p.title),a}class ds{get title(){return this.data?.[lt]}constructor(u,n,a,p,y,x,D,I,R){this.url=u,this.params=n,this.queryParams=a,this.fragment=p,this.data=y,this.outlet=x,this.component=D,this.routeConfig=I,this._resolve=R}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??=hn(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=hn(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(a=>a.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ys extends Sr{constructor(u,n){super(n),this.url=u,Qs(this,n)}toString(){return Mo(this._root)}}function Qs(S,u){u.value._routerState=S,u.children.forEach(n=>Qs(S,n))}function Mo(S){const u=S.children.length>0?` { ${S.children.map(Mo).join(", ")} } `:"";return`${S.value}${u}`}function to(S){if(S.snapshot){const u=S.snapshot,n=S._futureSnapshot;S.snapshot=n,Un(u.queryParams,n.queryParams)||S.queryParamsSubject.next(n.queryParams),u.fragment!==n.fragment&&S.fragmentSubject.next(n.fragment),Un(u.params,n.params)||S.paramsSubject.next(n.params),function Ft(S,u){if(S.length!==u.length)return!1;for(let n=0;nUn(n.parameters,u[a].parameters))}(S.url,u.url);return n&&!(!S.parent!=!u.parent)&&(!S.parent||fr(S.parent,u.parent))}function vo(S){return"string"==typeof S.title||null===S.title}let Yo=(()=>{class S{constructor(){this.activated=null,this._activatedRoute=null,this.name=pe,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.parentContexts=(0,h.f3M)(Fi),this.location=(0,h.f3M)(h.s_b),this.changeDetector=(0,h.f3M)(h.sBO),this.environmentInjector=(0,h.f3M)(h.lqb),this.inputBinder=(0,h.f3M)(Po,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:a,previousValue:p}=n.name;if(a)return;this.isTrackedInParentContexts(p)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(p)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new h.vHH(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new h.vHH(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new h.vHH(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,a){this.activated=n,this._activatedRoute=a,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,a){if(this.isActivated)throw new h.vHH(4013,!1);this._activatedRoute=n;const p=this.location,x=n.snapshot.component,D=this.parentContexts.getOrCreateContext(this.name).children,I=new zs(n,D,p.injector);this.activated=p.createComponent(x,{index:p.length,injector:I,environmentInjector:a??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275dir=h.lG2({type:S,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[h.TTD]})}return S})();class zs{constructor(u,n,a){this.route=u,this.childContexts=n,this.parent=a}get(u,n){return u===To?this.route:u===Fi?this.childContexts:this.parent.get(u,n)}}const Po=new h.OlP("");let Jo=(()=>{class S{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:a}=n,p=(0,Y.a)([a.queryParams,a.params,a.data]).pipe((0,ct.w)(([y,x,D],I)=>(D={...y,...x,...D},0===I?(0,l.of)(D):Promise.resolve(D)))).subscribe(y=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==a||null===a.component)return void this.unsubscribeFromRouteData(n);const x=(0,h.qFp)(a.component);if(x)for(const{templateName:D}of x.inputs)n.activatedComponentRef.setInput(D,y[D]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,p)}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac})}return S})();function Ko(S,u,n){if(n&&S.shouldReuseRoute(u.value,n.value.snapshot)){const a=n.value;a._futureSnapshot=u.value;const p=function rl(S,u,n){return u.children.map(a=>{for(const p of n.children)if(S.shouldReuseRoute(a.value,p.value.snapshot))return Ko(S,a,p);return Ko(S,a)})}(S,u,n);return new ho(a,p)}{if(S.shouldAttach(u.value)){const y=S.retrieve(u.value);if(null!==y){const x=y.route;return x.value._futureSnapshot=u.value,x.children=u.children.map(D=>Ko(S,D)),x}}const a=function la(S){return new To(new B.X(S.url),new B.X(S.params),new B.X(S.queryParams),new B.X(S.fragment),new B.X(S.data),S.outlet,S.component,S)}(u.value),p=u.children.map(y=>Ko(S,y));return new ho(a,p)}}const ca="ngNavigationCancelingError";function Ba(S,u){const{redirectTo:n,navigationBehaviorOptions:a}=hr(u)?{redirectTo:u,navigationBehaviorOptions:void 0}:u,p=xs(!1,jn.Redirect,u);return p.url=n,p.navigationBehaviorOptions=a,p}function xs(S,u,n){const a=new Error("NavigationCancelingError: "+(S||""));return a[ca]=!0,a.cancellationCode=u,n&&(a.url=n),a}function za(S){return S&&S[ca]}let Ca=(()=>{class S{static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275cmp=h.Xpm({type:S,selectors:[["ng-component"]],standalone:!0,features:[h.jDz],decls:1,vars:0,template:function(a,p){1&a&&h._UZ(0,"router-outlet")},dependencies:[Yo],encapsulation:2})}return S})();function Ea(S){const u=S.children&&S.children.map(Ea),n=u?{...S,children:u}:{...S};return!n.component&&!n.loadComponent&&(u||n.loadChildren)&&n.outlet&&n.outlet!==pe&&(n.component=Ca),n}function Xo(S){return S.outlet||pe}function ea(S){if(!S)return null;if(S.routeConfig?._injector)return S.routeConfig._injector;for(let u=S.parent;u;u=u.parent){const n=u.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class nr{constructor(u,n,a,p,y){this.routeReuseStrategy=u,this.futureState=n,this.currState=a,this.forwardEvent=p,this.inputBindingEnabled=y}activate(u){const n=this.futureState._root,a=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,a,u),to(this.futureState.root),this.activateChildRoutes(n,a,u)}deactivateChildRoutes(u,n,a){const p=ji(n);u.children.forEach(y=>{const x=y.value.outlet;this.deactivateRoutes(y,p[x],a),delete p[x]}),Object.values(p).forEach(y=>{this.deactivateRouteAndItsChildren(y,a)})}deactivateRoutes(u,n,a){const p=u.value,y=n?n.value:null;if(p===y)if(p.component){const x=a.getContext(p.outlet);x&&this.deactivateChildRoutes(u,n,x.children)}else this.deactivateChildRoutes(u,n,a);else y&&this.deactivateRouteAndItsChildren(n,a)}deactivateRouteAndItsChildren(u,n){u.value.component&&this.routeReuseStrategy.shouldDetach(u.value.snapshot)?this.detachAndStoreRouteSubtree(u,n):this.deactivateRouteAndOutlet(u,n)}detachAndStoreRouteSubtree(u,n){const a=n.getContext(u.value.outlet),p=a&&u.value.component?a.children:n,y=ji(u);for(const x of Object.values(y))this.deactivateRouteAndItsChildren(x,p);if(a&&a.outlet){const x=a.outlet.detach(),D=a.children.onOutletDeactivated();this.routeReuseStrategy.store(u.value.snapshot,{componentRef:x,route:u,contexts:D})}}deactivateRouteAndOutlet(u,n){const a=n.getContext(u.value.outlet),p=a&&u.value.component?a.children:n,y=ji(u);for(const x of Object.values(y))this.deactivateRouteAndItsChildren(x,p);a&&(a.outlet&&(a.outlet.deactivate(),a.children.onOutletDeactivated()),a.attachRef=null,a.route=null)}activateChildRoutes(u,n,a){const p=ji(n);u.children.forEach(y=>{this.activateRoutes(y,p[y.value.outlet],a),this.forwardEvent(new Yi(y.value.snapshot))}),u.children.length&&this.forwardEvent(new yi(u.value.snapshot))}activateRoutes(u,n,a){const p=u.value,y=n?n.value:null;if(to(p),p===y)if(p.component){const x=a.getOrCreateContext(p.outlet);this.activateChildRoutes(u,n,x.children)}else this.activateChildRoutes(u,n,a);else if(p.component){const x=a.getOrCreateContext(p.outlet);if(this.routeReuseStrategy.shouldAttach(p.snapshot)){const D=this.routeReuseStrategy.retrieve(p.snapshot);this.routeReuseStrategy.store(p.snapshot,null),x.children.onOutletReAttached(D.contexts),x.attachRef=D.componentRef,x.route=D.route.value,x.outlet&&x.outlet.attach(D.componentRef,D.route.value),to(D.route.value),this.activateChildRoutes(u,null,x.children)}else{const D=ea(p.snapshot);x.attachRef=null,x.route=p,x.injector=D,x.outlet&&x.outlet.activateWith(p,x.injector),this.activateChildRoutes(u,null,x.children)}}else this.activateChildRoutes(u,null,a)}}class ro{constructor(u){this.path=u,this.route=this.path[this.path.length-1]}}class Pi{constructor(u,n){this.component=u,this.route=n}}function Qo(S,u,n){const a=S._root;return ce(a,u?u._root:null,n,[a.value])}function re(S,u){const n=Symbol(),a=u.get(S,n);return a===n?"function"!=typeof S||(0,h.Z0I)(S)?u.get(S):S:a}function ce(S,u,n,a,p={canDeactivateChecks:[],canActivateChecks:[]}){const y=ji(u);return S.children.forEach(x=>{(function G(S,u,n,a,p={canDeactivateChecks:[],canActivateChecks:[]}){const y=S.value,x=u?u.value:null,D=n?n.getContext(S.value.outlet):null;if(x&&y.routeConfig===x.routeConfig){const I=function Ge(S,u,n){if("function"==typeof n)return n(S,u);switch(n){case"pathParamsChange":return!he(S.url,u.url);case"pathParamsOrQueryParamsChange":return!he(S.url,u.url)||!Un(S.queryParams,u.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fr(S,u)||!Un(S.queryParams,u.queryParams);default:return!fr(S,u)}}(x,y,y.routeConfig.runGuardsAndResolvers);I?p.canActivateChecks.push(new ro(a)):(y.data=x.data,y._resolvedData=x._resolvedData),ce(S,u,y.component?D?D.children:null:n,a,p),I&&D&&D.outlet&&D.outlet.isActivated&&p.canDeactivateChecks.push(new Pi(D.outlet.component,x))}else x&&zt(u,D,p),p.canActivateChecks.push(new ro(a)),ce(S,null,y.component?D?D.children:null:n,a,p)})(x,y[x.value.outlet],n,a.concat([x.value]),p),delete y[x.value.outlet]}),Object.entries(y).forEach(([x,D])=>zt(D,n.getContext(x),p)),p}function zt(S,u,n){const a=ji(S),p=S.value;Object.entries(a).forEach(([y,x])=>{zt(x,p.component?u?u.children.getContext(y):null:u,n)}),n.canDeactivateChecks.push(new Pi(p.component&&u&&u.outlet&&u.outlet.isActivated?u.outlet.component:null,p))}function ni(S){return"function"==typeof S}function xo(S){return S instanceof ie||"EmptyError"===S?.name}const Ro=Symbol("INITIAL_VALUE");function Ui(){return(0,ct.w)(S=>(0,Y.a)(S.map(u=>u.pipe((0,X.q)(1),function me(...S){const u=(0,ve.yG)(S);return(0,Ce.e)((n,a)=>{(u?(0,fe.z)(S,n,u):(0,fe.z)(S,n)).subscribe(a)})}(Ro)))).pipe((0,Ue.U)(u=>{for(const n of u)if(!0!==n){if(n===Ro)return Ro;if(!1===n||n instanceof Fn)return n}return!0}),(0,Fe.h)(u=>u!==Ro),(0,X.q)(1)))}function $s(S){return(0,K.z)(We(u=>{if(hr(u))throw Ba(0,u)}),(0,Ue.U)(u=>!0===u))}class es{constructor(u){this.segmentGroup=u||null}}class Gi extends Error{constructor(u){super(),this.urlTree=u}}function ta(S){return Me(new es(S))}class na{constructor(u,n){this.urlSerializer=u,this.urlTree=n}lineralizeSegments(u,n){let a=[],p=n.root;for(;;){if(a=a.concat(p.segments),0===p.numberOfChildren)return(0,l.of)(a);if(p.numberOfChildren>1||!p.children[pe])return Me(new h.vHH(4e3,!1));p=p.children[pe]}}applyRedirectCommands(u,n,a){const p=this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),u,a);if(n.startsWith("/"))throw new Gi(p);return p}applyRedirectCreateUrlTree(u,n,a,p){const y=this.createSegmentGroup(u,n.root,a,p);return new Fn(y,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(u,n){const a={};return Object.entries(u).forEach(([p,y])=>{if("string"==typeof y&&y.startsWith(":")){const D=y.substring(1);a[p]=n[D]}else a[p]=y}),a}createSegmentGroup(u,n,a,p){const y=this.createSegments(u,n.segments,a,p);let x={};return Object.entries(n.children).forEach(([D,I])=>{x[D]=this.createSegmentGroup(u,I,a,p)}),new Jt(y,x)}createSegments(u,n,a,p){return n.map(y=>y.path.startsWith(":")?this.findPosParam(u,y,p):this.findOrReturn(y,a))}findPosParam(u,n,a){const p=a[n.path.substring(1)];if(!p)throw new h.vHH(4001,!1);return p}findOrReturn(u,n){let a=0;for(const p of n){if(p.path===u.path)return n.splice(a),p;a++}return u}}const oo={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function $a(S,u,n,a,p){const y=Io(S,u,n);return y.matched?(a=function bl(S,u){return S.providers&&!S._injector&&(S._injector=(0,h.MMx)(S.providers,u,`Route: ${S.path}`)),S._injector??u}(u,a),function Va(S,u,n,a){const p=u.canMatch;if(!p||0===p.length)return(0,l.of)(!0);const y=p.map(x=>{const D=re(x,S);return wn(function bs(S){return S&&ni(S.canMatch)}(D)?D.canMatch(u,n):(0,h.r_H)(S,()=>D(u,n)))});return(0,l.of)(y).pipe(Ui(),$s())}(a,u,n).pipe((0,Ue.U)(x=>!0===x?y:{...oo}))):(0,l.of)(y)}function Io(S,u,n){if("**"===u.path)return function fo(S){return{matched:!0,parameters:S.length>0?Kt(S).parameters:{},consumedSegments:S,remainingSegments:[],positionalParamSegments:{}}}(n);if(""===u.path)return"full"===u.pathMatch&&(S.hasChildren()||n.length>0)?{...oo}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const p=(u.matcher||Yt)(n,S,u);if(!p)return{...oo};const y={};Object.entries(p.posParams??{}).forEach(([D,I])=>{y[D]=I.path});const x=p.consumed.length>0?{...y,...p.consumed[p.consumed.length-1].parameters}:y;return{matched:!0,consumedSegments:p.consumed,remainingSegments:n.slice(p.consumed.length),parameters:x,positionalParamSegments:p.posParams??{}}}function El(S,u,n,a){return n.length>0&&function Zs(S,u,n){return n.some(a=>Tl(S,u,a)&&Xo(a)!==pe)}(S,n,a)?{segmentGroup:new Jt(u,ql(a,new Jt(n,S.children))),slicedSegments:[]}:0===n.length&&function gc(S,u,n){return n.some(a=>Tl(S,u,a))}(S,n,a)?{segmentGroup:new Jt(S.segments,Za(S,n,a,S.children)),slicedSegments:n}:{segmentGroup:new Jt(S.segments,S.children),slicedSegments:n}}function Za(S,u,n,a){const p={};for(const y of n)if(Tl(S,u,y)&&!a[Xo(y)]){const x=new Jt([],{});p[Xo(y)]=x}return{...a,...p}}function ql(S,u){const n={};n[pe]=u;for(const a of S)if(""===a.path&&Xo(a)!==pe){const p=new Jt([],{});n[Xo(a)]=p}return n}function Tl(S,u,n){return(!(S.hasChildren()||u.length>0)||"full"!==n.pathMatch)&&""===n.path}class _c{}class Ga{constructor(u,n,a,p,y,x,D){this.injector=u,this.configLoader=n,this.rootComponentType=a,this.config=p,this.urlTree=y,this.paramsInheritanceStrategy=x,this.urlSerializer=D,this.applyRedirects=new na(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(u){return new h.vHH(4002,`'${u.segmentGroup}'`)}recognize(){const u=El(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(u).pipe((0,Ue.U)(n=>{const a=new ds([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},pe,this.rootComponentType,null,{}),p=new ho(a,n),y=new ys("",p),x=function Ti(S,u,n=null,a=null){return vr(yo(S),u,n,a)}(a,[],this.urlTree.queryParams,this.urlTree.fragment);return x.queryParams=this.urlTree.queryParams,y.url=this.urlSerializer.serialize(x),this.inheritParamsAndData(y._root,null),{state:y,tree:x}}))}match(u){return this.processSegmentGroup(this.injector,this.config,u,pe).pipe(ke(a=>{if(a instanceof Gi)return this.urlTree=a.urlTree,this.match(a.urlTree.root);throw a instanceof es?this.noMatchError(a):a}))}inheritParamsAndData(u,n){const a=u.value,p=$o(a,n,this.paramsInheritanceStrategy);a.params=Object.freeze(p.params),a.data=Object.freeze(p.data),u.children.forEach(y=>this.inheritParamsAndData(y,a))}processSegmentGroup(u,n,a,p){return 0===a.segments.length&&a.hasChildren()?this.processChildren(u,n,a):this.processSegment(u,n,a,a.segments,p,!0).pipe((0,Ue.U)(y=>y instanceof ho?[y]:[]))}processChildren(u,n,a){const p=[];for(const y of Object.keys(a.children))"primary"===y?p.unshift(y):p.push(y);return(0,te.D)(p).pipe((0,Ut.b)(y=>{const x=a.children[y],D=function fa(S,u){const n=S.filter(a=>Xo(a)===u);return n.push(...S.filter(a=>Xo(a)!==u)),n}(n,y);return this.processSegmentGroup(u,D,x,y)}),function Qt(S,u){return(0,Ce.e)(function it(S,u,n,a,p){return(y,x)=>{let D=n,I=u,R=0;y.subscribe((0,oe.x)(x,U=>{const z=R++;I=D?S(I,U,z):(D=!0,U),a&&x.next(I)},p&&(()=>{D&&x.next(I),x.complete()})))}}(S,u,arguments.length>=2,!0))}((y,x)=>(y.push(...x),y)),ze(null),function an(S,u){const n=arguments.length>=2;return a=>a.pipe(S?(0,Fe.h)((p,y)=>S(p,y,a)):dn.y,mt(1),n?ze(u):Ke(()=>new ie))}(),(0,De.z)(y=>{if(null===y)return ta(a);const x=we(y);return function Hs(S){S.sort((u,n)=>u.value.outlet===pe?-1:n.value.outlet===pe?1:u.value.outlet.localeCompare(n.value.outlet))}(x),(0,l.of)(x)}))}processSegment(u,n,a,p,y,x){return(0,te.D)(n).pipe((0,Ut.b)(D=>this.processSegmentAgainstRoute(D._injector??u,n,D,a,p,y,x).pipe(ke(I=>{if(I instanceof es)return(0,l.of)(null);throw I}))),_n(D=>!!D),ke(D=>{if(xo(D))return function Ta(S,u,n){return 0===u.length&&!S.children[n]}(a,p,y)?(0,l.of)(new _c):ta(a);throw D}))}processSegmentAgainstRoute(u,n,a,p,y,x,D){return function Yl(S,u,n,a){return!!(Xo(S)===a||a!==pe&&Tl(u,n,S))&&Io(u,S,n).matched}(a,p,y,x)?void 0===a.redirectTo?this.matchSegmentAgainstRoute(u,p,a,y,x):this.allowRedirects&&D?this.expandSegmentAgainstRouteUsingRedirect(u,p,n,a,y,x):ta(p):ta(p)}expandSegmentAgainstRouteUsingRedirect(u,n,a,p,y,x){const{matched:D,consumedSegments:I,positionalParamSegments:R,remainingSegments:U}=Io(n,p,y);if(!D)return ta(n);p.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const z=this.applyRedirects.applyRedirectCommands(I,p.redirectTo,R);return this.applyRedirects.lineralizeSegments(p,z).pipe((0,De.z)(Q=>this.processSegment(u,a,n,Q.concat(U),x,!1)))}matchSegmentAgainstRoute(u,n,a,p,y){const x=$a(n,a,p,u);return"**"===a.path&&(n.children={}),x.pipe((0,ct.w)(D=>D.matched?this.getChildConfig(u=a._injector??u,a,p).pipe((0,ct.w)(({routes:I})=>{const R=a._loadedInjector??u,{consumedSegments:U,remainingSegments:z,parameters:Q}=D,Se=new ds(U,Q,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function le(S){return S.data||{}}(a),Xo(a),a.component??a._loadedComponent??null,a,function wt(S){return S.resolve||{}}(a)),{segmentGroup:je,slicedSegments:Ye}=El(n,U,z,I);if(0===Ye.length&&je.hasChildren())return this.processChildren(R,I,je).pipe((0,Ue.U)(et=>null===et?null:new ho(Se,et)));if(0===I.length&&0===Ye.length)return(0,l.of)(new ho(Se,[]));const $e=Xo(a)===y;return this.processSegment(R,I,je,Ye,$e?pe:y,!0).pipe((0,Ue.U)(et=>new ho(Se,et instanceof ho?[et]:[])))})):ta(n)))}getChildConfig(u,n,a){return n.children?(0,l.of)({routes:n.children,injector:u}):n.loadChildren?void 0!==n._loadedRoutes?(0,l.of)({routes:n._loadedRoutes,injector:n._loadedInjector}):function Hl(S,u,n,a){const p=u.canLoad;if(void 0===p||0===p.length)return(0,l.of)(!0);const y=p.map(x=>{const D=re(x,S);return wn(function Di(S){return S&&ni(S.canLoad)}(D)?D.canLoad(u,n):(0,h.r_H)(S,()=>D(u,n)))});return(0,l.of)(y).pipe(Ui(),$s())}(u,n,a).pipe((0,De.z)(p=>p?this.configLoader.loadChildren(u,n).pipe(We(y=>{n._loadedRoutes=y.routes,n._loadedInjector=y.injector})):function Cl(S){return Me(xs(!1,jn.GuardRejected))}())):(0,l.of)({routes:[],injector:u})}}function F(S){const u=S.value.routeConfig;return u&&""===u.path}function we(S){const u=[],n=new Set;for(const a of S){if(!F(a)){u.push(a);continue}const p=u.find(y=>a.value.routeConfig===y.value.routeConfig);void 0!==p?(p.children.push(...a.children),n.add(p)):u.push(a)}for(const a of n){const p=we(a.children);u.push(new ho(a.value,p))}return u.filter(a=>!n.has(a))}function xi(S){const u=S.children.map(n=>xi(n)).flat();return[S,...u]}function ir(S){return(0,ct.w)(u=>{const n=S(u);return n?(0,te.D)(n).pipe((0,Ue.U)(()=>u)):(0,l.of)(u)})}let Kr=(()=>{class S{buildTitle(n){let a,p=n.root;for(;void 0!==p;)a=this.getResolvedTitleForRoute(p)??a,p=p.children.find(y=>y.outlet===pe);return a}getResolvedTitleForRoute(n){return n.data[lt]}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:()=>(0,h.f3M)(_r),providedIn:"root"})}return S})(),_r=(()=>{class S extends Kr{constructor(n){super(),this.title=n}updateTitle(n){const a=this.buildTitle(n);void 0!==a&&this.title.setTitle(a)}static#e=this.\u0275fac=function(a){return new(a||S)(h.LFG(It.Dx))};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();const so=new h.OlP("",{providedIn:"root",factory:()=>({})}),Bo=new h.OlP("ROUTES");let ao=(()=>{class S{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,h.f3M)(h.Sil)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return(0,l.of)(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const a=wn(n.loadComponent()).pipe((0,Ue.U)(Zo),We(y=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=y}),(0,pt.x)(()=>{this.componentLoaders.delete(n)})),p=new Ie(a,()=>new Ae.x).pipe(xe());return this.componentLoaders.set(n,p),p}loadChildren(n,a){if(this.childrenLoaders.get(a))return this.childrenLoaders.get(a);if(a._loadedRoutes)return(0,l.of)({routes:a._loadedRoutes,injector:a._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(a);const y=function Es(S,u,n,a){return wn(S.loadChildren()).pipe((0,Ue.U)(Zo),(0,De.z)(p=>p instanceof h.YKP||Array.isArray(p)?(0,l.of)(p):(0,te.D)(u.compileModuleAsync(p))),(0,Ue.U)(p=>{a&&a(S);let y,x,D=!1;return Array.isArray(p)?(x=p,!0):(y=p.create(n).injector,x=y.get(Bo,[],{optional:!0,self:!0}).flat()),{routes:x.map(Ea),injector:y}}))}(a,this.compiler,n,this.onLoadEndListener).pipe((0,pt.x)(()=>{this.childrenLoaders.delete(a)})),x=new Ie(y,()=>new Ae.x).pipe(xe());return this.childrenLoaders.set(a,x),x}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();function Zo(S){return function Ts(S){return S&&"object"==typeof S&&"default"in S}(S)?S.default:S}let zo=(()=>{class S{static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:()=>(0,h.f3M)(ia),providedIn:"root"})}return S})(),ia=(()=>{class S{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,a){return n}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();const Da=new h.OlP(""),li=new h.OlP("");function Ws(S,u,n){const a=S.get(li),p=S.get(ye.K0);return S.get(h.R0b).runOutsideAngular(()=>{if(!p.startViewTransition||a.skipNextTransition)return a.skipNextTransition=!1,Promise.resolve();let y;const x=new Promise(R=>{y=R}),D=p.startViewTransition(()=>(y(),function Du(S){return new Promise(u=>{(0,h.T8G)(u,{injector:S})})}(S))),{onViewTransitionCreated:I}=a;return I&&(0,h.r_H)(S,()=>I({transition:D,from:u,to:n})),x})}let ga=(()=>{class S{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ae.x,this.transitionAbortSubject=new Ae.x,this.configLoader=(0,h.f3M)(ao),this.environmentInjector=(0,h.f3M)(h.lqb),this.urlSerializer=(0,h.f3M)(ot),this.rootContexts=(0,h.f3M)(Fi),this.location=(0,h.f3M)(ye.Ye),this.inputBindingEnabled=null!==(0,h.f3M)(Po,{optional:!0}),this.titleStrategy=(0,h.f3M)(Kr),this.options=(0,h.f3M)(so,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,h.f3M)(zo),this.createViewTransition=(0,h.f3M)(Da,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,l.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=p=>this.events.next(new si(p)),this.configLoader.onLoadStartListener=p=>this.events.next(new Xn(p))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const a=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:a})}setupNavigations(n,a,p){return this.transitions=new B.X({id:0,currentUrlTree:a,currentRawUrl:a,extractedUrl:this.urlHandlingStrategy.extract(a),urlAfterRedirects:this.urlHandlingStrategy.extract(a),rawUrl:a,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Be,restoredState:null,currentSnapshot:p.snapshot,targetSnapshot:null,currentRouterState:p,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Fe.h)(y=>0!==y.id),(0,Ue.U)(y=>({...y,extractedUrl:this.urlHandlingStrategy.extract(y.rawUrl)})),(0,ct.w)(y=>{this.currentTransition=y;let x=!1,D=!1;return(0,l.of)(y).pipe(We(I=>{this.currentNavigation={id:I.id,initialUrl:I.rawUrl,extractedUrl:I.extractedUrl,trigger:I.source,extras:I.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),(0,ct.w)(I=>{const R=!n.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!R&&"reload"!==(I.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const z="";return this.events.next(new Xe(I.id,this.urlSerializer.serialize(I.rawUrl),z,V.IgnoredSameUrlNavigation)),I.resolve(null),de.E}if(this.urlHandlingStrategy.shouldProcessUrl(I.rawUrl))return(0,l.of)(I).pipe((0,ct.w)(z=>{const Q=this.transitions?.getValue();return this.events.next(new St(z.id,this.urlSerializer.serialize(z.extractedUrl),z.source,z.restoredState)),Q!==this.transitions?.getValue()?de.E:Promise.resolve(z)}),function yn(S,u,n,a,p,y){return(0,De.z)(x=>function Zc(S,u,n,a,p,y,x="emptyOnly"){return new Ga(S,u,n,a,p,x,y).recognize()}(S,u,n,a,x.extractedUrl,p,y).pipe((0,Ue.U)(({state:D,tree:I})=>({...x,targetSnapshot:D,urlAfterRedirects:I}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,this.paramsInheritanceStrategy),We(z=>{y.targetSnapshot=z.targetSnapshot,y.urlAfterRedirects=z.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:z.urlAfterRedirects};const Q=new Wt(z.id,this.urlSerializer.serialize(z.extractedUrl),this.urlSerializer.serialize(z.urlAfterRedirects),z.targetSnapshot);this.events.next(Q)}));if(R&&this.urlHandlingStrategy.shouldProcessUrl(I.currentRawUrl)){const{id:z,extractedUrl:Q,source:Se,restoredState:je,extras:Ye}=I,$e=new St(z,this.urlSerializer.serialize(Q),Se,je);this.events.next($e);const et=Bs(this.rootComponentType).snapshot;return this.currentTransition=y={...I,targetSnapshot:et,urlAfterRedirects:Q,extras:{...Ye,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Q,(0,l.of)(y)}{const z="";return this.events.next(new Xe(I.id,this.urlSerializer.serialize(I.extractedUrl),z,V.IgnoredByUrlHandlingStrategy)),I.resolve(null),de.E}}),We(I=>{const R=new tn(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot);this.events.next(R)}),(0,Ue.U)(I=>(this.currentTransition=y={...I,guards:Qo(I.targetSnapshot,I.currentSnapshot,this.rootContexts)},y)),function js(S,u){return(0,De.z)(n=>{const{targetSnapshot:a,currentSnapshot:p,guards:{canActivateChecks:y,canDeactivateChecks:x}}=n;return 0===x.length&&0===y.length?(0,l.of)({...n,guardsResult:!0}):function wl(S,u,n,a){return(0,te.D)(S).pipe((0,De.z)(p=>function ma(S,u,n,a,p){const y=u&&u.routeConfig?u.routeConfig.canDeactivate:null;if(!y||0===y.length)return(0,l.of)(!0);const x=y.map(D=>{const I=ea(u)??p,R=re(D,I);return wn(function Do(S){return S&&ni(S.canDeactivate)}(R)?R.canDeactivate(S,u,n,a):(0,h.r_H)(I,()=>R(S,u,n,a))).pipe(_n())});return(0,l.of)(x).pipe(Ui())}(p.component,p.route,n,u,a)),_n(p=>!0!==p,!0))}(x,a,p,S).pipe((0,De.z)(D=>D&&function Ln(S){return"boolean"==typeof S}(D)?function No(S,u,n,a){return(0,te.D)(u).pipe((0,Ut.b)(p=>(0,fe.z)(function ws(S,u){return null!==S&&u&&u(new fi(S)),(0,l.of)(!0)}(p.route.parent,a),function kr(S,u){return null!==S&&u&&u(new Vi(S)),(0,l.of)(!0)}(p.route,a),function Vs(S,u,n){const a=u[u.length-1],y=u.slice(0,u.length-1).reverse().map(x=>function Ao(S){const u=S.routeConfig?S.routeConfig.canActivateChild:null;return u&&0!==u.length?{node:S,guards:u}:null}(x)).filter(x=>null!==x).map(x=>(0,Pe.P)(()=>{const D=x.guards.map(I=>{const R=ea(x.node)??n,U=re(I,R);return wn(function Oo(S){return S&&ni(S.canActivateChild)}(U)?U.canActivateChild(a,S):(0,h.r_H)(R,()=>U(a,S))).pipe(_n())});return(0,l.of)(D).pipe(Ui())}));return(0,l.of)(y).pipe(Ui())}(S,p.path,n),function pa(S,u,n){const a=u.routeConfig?u.routeConfig.canActivate:null;if(!a||0===a.length)return(0,l.of)(!0);const p=a.map(y=>(0,Pe.P)(()=>{const x=ea(u)??n,D=re(y,x);return wn(function zr(S){return S&&ni(S.canActivate)}(D)?D.canActivate(u,S):(0,h.r_H)(x,()=>D(u,S))).pipe(_n())}));return(0,l.of)(p).pipe(Ui())}(S,p.route,n))),_n(p=>!0!==p,!0))}(a,y,S,u):(0,l.of)(D)),(0,Ue.U)(D=>({...n,guardsResult:D})))})}(this.environmentInjector,I=>this.events.next(I)),We(I=>{if(y.guardsResult=I.guardsResult,hr(I.guardsResult))throw Ba(0,I.guardsResult);const R=new vn(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects),I.targetSnapshot,!!I.guardsResult);this.events.next(R)}),(0,Fe.h)(I=>!!I.guardsResult||(this.cancelNavigationTransition(I,"",jn.GuardRejected),!1)),ir(I=>{if(I.guards.canActivateChecks.length)return(0,l.of)(I).pipe(We(R=>{const U=new Vn(R.id,this.urlSerializer.serialize(R.extractedUrl),this.urlSerializer.serialize(R.urlAfterRedirects),R.targetSnapshot);this.events.next(U)}),(0,ct.w)(R=>{let U=!1;return(0,l.of)(R).pipe(function xn(S,u){return(0,De.z)(n=>{const{targetSnapshot:a,guards:{canActivateChecks:p}}=n;if(!p.length)return(0,l.of)(n);const y=new Set(p.map(I=>I.route)),x=new Set;for(const I of y)if(!x.has(I))for(const R of xi(I))x.add(R);let D=0;return(0,te.D)(x).pipe((0,Ut.b)(I=>y.has(I)?function Jr(S,u,n,a){const p=S.routeConfig,y=S._resolve;return void 0!==p?.title&&!vo(p)&&(y[lt]=p.title),function Pr(S,u,n,a){const p=Ve(S);if(0===p.length)return(0,l.of)({});const y={};return(0,te.D)(p).pipe((0,De.z)(x=>function xr(S,u,n,a){const p=ea(u)??a,y=re(S,p);return wn(y.resolve?y.resolve(u,n):(0,h.r_H)(p,()=>y(u,n)))}(S[x],u,n,a).pipe(_n(),We(D=>{y[x]=D}))),mt(1),function tt(S){return(0,Ue.U)(()=>S)}(y),ke(x=>xo(x)?de.E:Me(x)))}(y,S,u,a).pipe((0,Ue.U)(x=>(S._resolvedData=x,S.data=$o(S,S.parent,n).resolve,null)))}(I,a,S,u):(I.data=$o(I,I.parent,S).resolve,(0,l.of)(void 0))),We(()=>D++),mt(1),(0,De.z)(I=>D===x.size?(0,l.of)(n):de.E))})}(this.paramsInheritanceStrategy,this.environmentInjector),We({next:()=>U=!0,complete:()=>{U||this.cancelNavigationTransition(R,"",jn.NoDataFromResolver)}}))}),We(R=>{const U=new $n(R.id,this.urlSerializer.serialize(R.extractedUrl),this.urlSerializer.serialize(R.urlAfterRedirects),R.targetSnapshot);this.events.next(U)}))}),ir(I=>{const R=U=>{const z=[];U.routeConfig?.loadComponent&&!U.routeConfig._loadedComponent&&z.push(this.configLoader.loadComponent(U.routeConfig).pipe(We(Q=>{U.component=Q}),(0,Ue.U)(()=>{})));for(const Q of U.children)z.push(...R(Q));return z};return(0,Y.a)(R(I.targetSnapshot.root)).pipe(ze(null),(0,X.q)(1))}),ir(()=>this.afterPreactivation()),(0,ct.w)(()=>{const{currentSnapshot:I,targetSnapshot:R}=y,U=this.createViewTransition?.(this.environmentInjector,I.root,R.root);return U?(0,te.D)(U).pipe((0,Ue.U)(()=>y)):(0,l.of)(y)}),(0,Ue.U)(I=>{const R=function vs(S,u,n){const a=Ko(S,u._root,n?n._root:void 0);return new eo(a,u)}(n.routeReuseStrategy,I.targetSnapshot,I.currentRouterState);return this.currentTransition=y={...I,targetRouterState:R},this.currentNavigation.targetRouterState=R,y}),We(()=>{this.events.next(new Oe)}),((S,u,n,a)=>(0,Ue.U)(p=>(new nr(u,p.targetRouterState,p.currentRouterState,n,a).activate(S),p)))(this.rootContexts,n.routeReuseStrategy,I=>this.events.next(I),this.inputBindingEnabled),(0,X.q)(1),We({next:I=>{x=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new en(I.id,this.urlSerializer.serialize(I.extractedUrl),this.urlSerializer.serialize(I.urlAfterRedirects))),this.titleStrategy?.updateTitle(I.targetRouterState.snapshot),I.resolve(!0)},complete:()=>{x=!0}}),function bn(S){return(0,Ce.e)((u,n)=>{(0,Ne.Xf)(S).subscribe((0,oe.x)(n,()=>n.complete(),Xt.Z)),!n.closed&&u.subscribe(n)})}(this.transitionAbortSubject.pipe(We(I=>{throw I}))),(0,pt.x)(()=>{!x&&!D&&this.cancelNavigationTransition(y,"",jn.SupersededByNewNavigation),this.currentNavigation?.id===y.id&&(this.currentNavigation=null)}),ke(I=>{if(D=!0,za(I))this.events.next(new ue(y.id,this.urlSerializer.serialize(y.extractedUrl),I.message,I.cancellationCode)),function Wi(S){return za(S)&&hr(S.url)}(I)?this.events.next(new $(I.url)):y.resolve(!1);else{this.events.next(new _t(y.id,this.urlSerializer.serialize(y.extractedUrl),I,y.targetSnapshot??void 0));try{y.resolve(n.errorHandler(I))}catch(R){this.options.resolveNavigationPromiseOnError?y.resolve(!1):y.reject(R)}}return de.E}))}))}cancelNavigationTransition(n,a,p){const y=new ue(n.id,this.urlSerializer.serialize(n.extractedUrl),a,p);this.events.next(y),n.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();function Jl(S){return S!==Be}let Zr=(()=>{class S{static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:()=>(0,h.f3M)(Kl),providedIn:"root"})}return S})();class Dl{shouldDetach(u){return!1}store(u,n){}shouldAttach(u){return!1}retrieve(u){return null}shouldReuseRoute(u,n){return u.routeConfig===n.routeConfig}}let Kl=(()=>{class S extends Dl{static#e=this.\u0275fac=(()=>{let n;return function(p){return(n||(n=h.n5z(S)))(p||S)}})();static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),Xl=(()=>{class S{static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:()=>(0,h.f3M)(yc),providedIn:"root"})}return S})(),yc=(()=>{class S extends Xl{constructor(){super(...arguments),this.location=(0,h.f3M)(ye.Ye),this.urlSerializer=(0,h.f3M)(ot),this.options=(0,h.f3M)(so,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,h.f3M)(zo),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Fn,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=Bs(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(n){return this.location.subscribe(a=>{"popstate"===a.type&&n(a.url,a.state)})}handleRouterEvent(n,a){if(n instanceof St)this.stateMemento=this.createStateMemento();else if(n instanceof Xe)this.rawUrlTree=a.initialUrl;else if(n instanceof Wt){if("eager"===this.urlUpdateStrategy&&!a.extras.skipLocationChange){const p=this.urlHandlingStrategy.merge(a.finalUrl,a.initialUrl);this.setBrowserUrl(p,a)}}else n instanceof Oe?(this.currentUrlTree=a.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(a.finalUrl,a.initialUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a))):n instanceof ue&&(n.code===jn.GuardRejected||n.code===jn.NoDataFromResolver)?this.restoreHistory(a):n instanceof _t?this.restoreHistory(a,!0):n instanceof en&&(this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId)}setBrowserUrl(n,a){const p=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(p)||a.extras.replaceUrl){const x={...a.extras.state,...this.generateNgRouterState(a.id,this.browserPageId)};this.location.replaceState(p,"",x)}else{const y={...a.extras.state,...this.generateNgRouterState(a.id,this.browserPageId+1)};this.location.go(p,"",y)}}restoreHistory(n,a=!1){if("computed"===this.canceledNavigationResolution){const y=this.currentPageId-this.browserPageId;0!==y?this.location.historyGo(y):this.currentUrlTree===n.finalUrl&&0===y&&(this.resetState(n),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(a&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,a){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:a}:{navigationId:n}}static#e=this.\u0275fac=(()=>{let n;return function(p){return(n||(n=h.n5z(S)))(p||S)}})();static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();var Ql=function(S){return S[S.COMPLETE=0]="COMPLETE",S[S.FAILED=1]="FAILED",S[S.REDIRECTING=2]="REDIRECTING",S}(Ql||{});function Fr(S,u){S.events.pipe((0,Fe.h)(n=>n instanceof en||n instanceof ue||n instanceof _t||n instanceof Xe),(0,Ue.U)(n=>n instanceof en||n instanceof Xe?Ql.COMPLETE:n instanceof ue&&(n.code===jn.Redirect||n.code===jn.SupersededByNewNavigation)?Ql.REDIRECTING:Ql.FAILED),(0,Fe.h)(n=>n!==Ql.REDIRECTING),(0,X.q)(1)).subscribe(()=>{u()})}function Ha(S){throw S}const ll={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},ts={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ds=(()=>{class S{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,h.f3M)(h.c2e),this.stateManager=(0,h.f3M)(Xl),this.options=(0,h.f3M)(so,{optional:!0})||{},this.pendingTasks=(0,h.f3M)(h.I6F),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,h.f3M)(ga),this.urlSerializer=(0,h.f3M)(ot),this.location=(0,h.f3M)(ye.Ye),this.urlHandlingStrategy=(0,h.f3M)(zo),this._events=new Ae.x,this.errorHandler=this.options.errorHandler||Ha,this.navigated=!1,this.routeReuseStrategy=(0,h.f3M)(Zr),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,h.f3M)(Bo,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,h.f3M)(Po,{optional:!0}),this.eventsSubscription=new nt.w0,this.isNgZoneEnabled=(0,h.f3M)(h.R0b)instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:n=>{this.console.warn(n)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const n=this.navigationTransitions.events.subscribe(a=>{try{const p=this.navigationTransitions.currentTransition,y=this.navigationTransitions.currentNavigation;if(null!==p&&null!==y)if(this.stateManager.handleRouterEvent(a,y),a instanceof ue&&a.code!==jn.Redirect&&a.code!==jn.SupersededByNewNavigation)this.navigated=!0;else if(a instanceof en)this.navigated=!0;else if(a instanceof $){const x=this.urlHandlingStrategy.merge(a.url,p.currentRawUrl),D={info:p.extras.info,skipLocationChange:p.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Jl(p.source)};this.scheduleNavigation(x,Be,null,D,{resolve:p.resolve,reject:p.reject,promise:p.promise})}(function Wa(S){return!(S instanceof Oe||S instanceof $)})(a)&&this._events.next(a)}catch(p){this.navigationTransitions.transitionAbortSubject.next(p)}});this.eventsSubscription.add(n)}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Be,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((n,a)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(n,"popstate",a)},0)})}navigateToSyncWithBrowser(n,a,p){const y={replaceUrl:!0},x=p?.navigationId?p:null;if(p){const I={...p};delete I.navigationId,delete I.\u0275routerPageId,0!==Object.keys(I).length&&(y.state=I)}const D=this.parseUrl(n);this.scheduleNavigation(D,a,x,y)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(Ea),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(n,a={}){const{relativeTo:p,queryParams:y,fragment:x,queryParamsHandling:D,preserveFragment:I}=a,R=I?this.currentUrlTree.fragment:x;let z,U=null;switch(D){case"merge":U={...this.currentUrlTree.queryParams,...y};break;case"preserve":U=this.currentUrlTree.queryParams;break;default:U=y||null}null!==U&&(U=this.removeEmptyProps(U));try{z=yo(p?p.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),z=this.currentUrlTree.root}return vr(z,n,U,R??null)}navigateByUrl(n,a={skipLocationChange:!1}){const p=hr(n)?n:this.parseUrl(n),y=this.urlHandlingStrategy.merge(p,this.rawUrlTree);return this.scheduleNavigation(y,Be,null,a)}navigate(n,a={skipLocationChange:!1}){return function _a(S){for(let u=0;u(null!=y&&(a[p]=y),a),{})}scheduleNavigation(n,a,p,y,x){if(this.disposed)return Promise.resolve(!1);let D,I,R;x?(D=x.resolve,I=x.reject,R=x.promise):R=new Promise((z,Q)=>{D=z,I=Q});const U=this.pendingTasks.add();return Fr(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(U))}),this.navigationTransitions.handleNavigationRequest({source:a,restoredState:p,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:y,resolve:D,reject:I,promise:R,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),R.catch(z=>Promise.reject(z))}static#e=this.\u0275fac=function(a){return new(a||S)};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})(),Lo=(()=>{class S{constructor(n,a,p,y,x,D){this.router=n,this.route=a,this.tabIndexAttribute=p,this.renderer=y,this.el=x,this.locationStrategy=D,this.href=null,this.commands=null,this.onChanges=new Ae.x,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const I=x.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===I||"area"===I,this.isAnchorElement?this.subscription=n.events.subscribe(R=>{R instanceof en&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,a,p,y,x){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||a||p||y||x||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:(0,h.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,a){const p=this.renderer,y=this.el.nativeElement;null!==a?p.setAttribute(y,n,a):p.removeAttribute(y,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static#e=this.\u0275fac=function(a){return new(a||S)(h.Y36(Ds),h.Y36(To),h.$8M("tabindex"),h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(ye.S$))};static#t=this.\u0275dir=h.lG2({type:S,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(a,p){1&a&&h.NdJ("click",function(x){return p.onClick(x.button,x.ctrlKey,x.shiftKey,x.altKey,x.metaKey)}),2&a&&h.uIk("target",p.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[h.lbL.HasDecoratorInputTransform,"preserveFragment","preserveFragment",h.VuI],skipLocationChange:[h.lbL.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",h.VuI],replaceUrl:[h.lbL.HasDecoratorInputTransform,"replaceUrl","replaceUrl",h.VuI],routerLink:"routerLink"},standalone:!0,features:[h.Xq5,h.TTD]})}return S})();class Ml{}let Iu=(()=>{class S{constructor(n,a,p,y,x){this.router=n,this.injector=p,this.preloadingStrategy=y,this.loader=x}setUpPreloading(){this.subscription=this.router.events.pipe((0,Fe.h)(n=>n instanceof en),(0,Ut.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,a){const p=[];for(const y of a){y.providers&&!y._injector&&(y._injector=(0,h.MMx)(y.providers,n,`Route: ${y.path}`));const x=y._injector??n,D=y._loadedInjector??x;(y.loadChildren&&!y._loadedRoutes&&void 0===y.canLoad||y.loadComponent&&!y._loadedComponent)&&p.push(this.preloadConfig(x,y)),(y.children||y._loadedRoutes)&&p.push(this.processRoutes(D,y.children??y._loadedRoutes))}return(0,te.D)(p).pipe((0,Cn.J)())}preloadConfig(n,a){return this.preloadingStrategy.preload(a,()=>{let p;p=a.loadChildren&&void 0===a.canLoad?this.loader.loadChildren(n,a):(0,l.of)(null);const y=p.pipe((0,De.z)(x=>null===x?(0,l.of)(void 0):(a._loadedRoutes=x.routes,a._loadedInjector=x.injector,this.processRoutes(x.injector??n,x.routes))));if(a.loadComponent&&!a._loadedComponent){const x=this.loader.loadComponent(a);return(0,te.D)([y,x]).pipe((0,Cn.J)())}return y})}static#e=this.\u0275fac=function(a){return new(a||S)(h.LFG(Ds),h.LFG(h.Sil),h.LFG(h.lqb),h.LFG(Ml),h.LFG(ao))};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"})}return S})();const Al=new h.OlP("");let vc=(()=>{class S{constructor(n,a,p,y,x={}){this.urlSerializer=n,this.transitions=a,this.viewportScroller=p,this.zone=y,this.options=x,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},x.scrollPositionRestoration||="disabled",x.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof St?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof en?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof Xe&&n.code===V.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof O&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,a){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new O(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,a))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static#e=this.\u0275fac=function(a){h.$Z()};static#t=this.\u0275prov=h.Yz7({token:S,factory:S.\u0275fac})}return S})();function hs(S,u){return{\u0275kind:S,\u0275providers:u}}function Au(){const S=(0,h.f3M)(h.zs3);return u=>{const n=S.get(h.z2F);if(u!==n.components[0])return;const a=S.get(Ds),p=S.get(Uo);1===S.get(qc)&&a.initialNavigation(),S.get(Ms,null,h.XFs.Optional)?.setUpPreloading(),S.get(Al,null,h.XFs.Optional)?.init(),a.resetRootComponentType(n.componentTypes[0]),p.closed||(p.next(),p.complete(),p.unsubscribe())}}const Uo=new h.OlP("",{factory:()=>new Ae.x}),qc=new h.OlP("",{providedIn:"root",factory:()=>1}),Ms=new h.OlP("");function Ou(S){return hs(0,[{provide:Ms,useExisting:Iu},{provide:Ml,useExisting:S}])}function gr(S){return hs(9,[{provide:Da,useValue:Ws},{provide:li,useValue:{skipNextTransition:!!S?.skipInitialTransition,...S}}])}const tc=new h.OlP("ROUTER_FORROOT_GUARD"),Nr=[ye.Ye,{provide:ot,useClass:yt},Ds,Fi,{provide:To,useFactory:function cl(S){return S.routerState.root},deps:[Ds]},ao,[]];let dl=(()=>{class S{constructor(n){}static forRoot(n,a){return{ngModule:S,providers:[Nr,[],{provide:Bo,multi:!0,useValue:n},{provide:tc,useFactory:Yc,deps:[[Ds,new h.FiY,new h.tp0]]},{provide:so,useValue:a||{}},a?.useHash?{provide:ye.S$,useClass:ye.Do}:{provide:ye.S$,useClass:ye.b0},{provide:Al,useFactory:()=>{const S=(0,h.f3M)(ye.EM),u=(0,h.f3M)(h.R0b),n=(0,h.f3M)(so),a=(0,h.f3M)(ga),p=(0,h.f3M)(ot);return n.scrollOffset&&S.setOffset(n.scrollOffset),new vc(p,a,S,u,n)}},a?.preloadingStrategy?Ou(a.preloadingStrategy).\u0275providers:[],a?.initialNavigation?Ru(a):[],a?.bindToComponentInputs?hs(8,[Jo,{provide:Po,useExisting:Jo}]).\u0275providers:[],a?.enableViewTransitions?gr().\u0275providers:[],[{provide:Jc,useFactory:Au},{provide:h.tb,multi:!0,useExisting:Jc}]]}}static forChild(n){return{ngModule:S,providers:[{provide:Bo,multi:!0,useValue:n}]}}static#e=this.\u0275fac=function(a){return new(a||S)(h.LFG(tc,8))};static#t=this.\u0275mod=h.oAB({type:S});static#n=this.\u0275inj=h.cJS({})}return S})();function Yc(S){return"guarded"}function Ru(S){return["disabled"===S.initialNavigation?hs(3,[{provide:h.ip1,multi:!0,useFactory:()=>{const u=(0,h.f3M)(Ds);return()=>{u.setUpLocationChangeListener()}}},{provide:qc,useValue:2}]).\u0275providers:[],"enabledBlocking"===S.initialNavigation?hs(2,[{provide:qc,useValue:0},{provide:h.ip1,multi:!0,deps:[h.zs3],useFactory:u=>{const n=u.get(ye.V_,Promise.resolve());return()=>n.then(()=>new Promise(a=>{const p=u.get(Ds),y=u.get(Uo);Fr(p,()=>{a(!0)}),u.get(ga).afterPreactivation=()=>(a(!0),y.closed?(0,l.of)(void 0):y),p.initialNavigation()}))}}]).\u0275providers:[]]}const Jc=new h.OlP("")},703:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Ar:()=>be,N0:()=>fe});var h=P(9212),m=P(6814),te=P(7398),l=P(1631),B=P(4911),Y=P(2096),C=P(9862);const ie=new h.OlP("JWT_OPTIONS");let fe=(()=>{class Te{constructor(de=null){this.tokenGetter=de&&de.tokenGetter||function(){}}urlBase64Decode(de){let nt=de.replace(/-/g,"+").replace(/_/g,"/");switch(nt.length%4){case 0:break;case 2:nt+="==";break;case 3:nt+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(nt)}b64decode(de){let Ce="";if((de=String(de).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let xe,Ie,oe=0,Ae=0;Ie=de.charAt(Ae++);~Ie&&(xe=oe%4?64*xe+Ie:Ie,oe++%4)?Ce+=String.fromCharCode(255&xe>>(-2*oe&6)):0)Ie="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Ie);return Ce}b64DecodeUnicode(de){return decodeURIComponent(Array.prototype.map.call(this.b64decode(de),nt=>"%"+("00"+nt.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(de=this.tokenGetter()){return de instanceof Promise?de.then(nt=>this._decodeToken(nt)):this._decodeToken(de)}_decodeToken(de){if(!de||""===de)return null;const nt=de.split(".");if(3!==nt.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const Ce=this.urlBase64Decode(nt[1]);if(!Ce)throw new Error("Cannot decode the token.");return JSON.parse(Ce)}getTokenExpirationDate(de=this.tokenGetter()){return de instanceof Promise?de.then(nt=>this._getTokenExpirationDate(nt)):this._getTokenExpirationDate(de)}_getTokenExpirationDate(de){let nt;if(nt=this.decodeToken(de),!nt||!nt.hasOwnProperty("exp"))return null;const Ce=new Date(0);return Ce.setUTCSeconds(nt.exp),Ce}isTokenExpired(de=this.tokenGetter(),nt){return de instanceof Promise?de.then(Ce=>this._isTokenExpired(Ce,nt)):this._isTokenExpired(de,nt)}_isTokenExpired(de,nt){if(!de||""===de)return!0;const Ce=this.getTokenExpirationDate(de);return nt=nt||0,null!==Ce&&!(Ce.valueOf()>(new Date).valueOf()+1e3*nt)}getAuthScheme(de,nt){return"function"==typeof de?de(nt):de}}return Te.\u0275fac=function(de){return new(de||Te)(h.LFG(ie))},Te.\u0275prov=h.Yz7({token:Te,factory:Te.\u0275fac}),Te})();const Pe=Te=>Te instanceof Promise?(0,B.P)(()=>Te):(0,Y.of)(Te);let K=(()=>{class Te{constructor(de,nt,Ce){this.jwtHelper=nt,this.document=Ce,this.standardPorts=["80","443"],this.tokenGetter=de.tokenGetter,this.headerName=de.headerName||"Authorization",this.authScheme=de.authScheme||""===de.authScheme?de.authScheme:"Bearer ",this.allowedDomains=de.allowedDomains||[],this.disallowedRoutes=de.disallowedRoutes||[],this.throwNoTokenError=de.throwNoTokenError||!1,this.skipWhenExpired=de.skipWhenExpired}isAllowedDomain(de){const nt=new URL(de.url,this.document.location.origin);if(nt.host===this.document.location.host)return!0;const Ce=`${nt.hostname}${nt.port&&!this.standardPorts.includes(nt.port)?":"+nt.port:""}`;return this.allowedDomains.findIndex(oe=>"string"==typeof oe?oe===Ce:oe instanceof RegExp&&oe.test(Ce))>-1}isDisallowedRoute(de){const nt=new URL(de.url,this.document.location.origin);return this.disallowedRoutes.findIndex(Ce=>{if("string"==typeof Ce){const oe=new URL(Ce,this.document.location.origin);return oe.hostname===nt.hostname&&oe.pathname===nt.pathname}return Ce instanceof RegExp&&Ce.test(de.url)})>-1}handleInterception(de,nt,Ce){const oe=this.jwtHelper.getAuthScheme(this.authScheme,nt);if(!de&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let xe=(0,Y.of)(!1);return this.skipWhenExpired&&(xe=de?Pe(this.jwtHelper.isTokenExpired(de)):(0,Y.of)(!0)),de?xe.pipe((0,te.U)(Ie=>Ie&&this.skipWhenExpired?nt.clone():nt.clone({setHeaders:{[this.headerName]:`${oe}${de}`}})),(0,l.z)(Ie=>Ce.handle(Ie))):Ce.handle(nt)}intercept(de,nt){if(!this.isAllowedDomain(de)||this.isDisallowedRoute(de))return nt.handle(de);const Ce=this.tokenGetter(de);return Pe(Ce).pipe((0,l.z)(oe=>this.handleInterception(oe,de,nt)))}}return Te.\u0275fac=function(de){return new(de||Te)(h.LFG(ie),h.LFG(fe),h.LFG(m.K0))},Te.\u0275prov=h.Yz7({token:Te,factory:Te.\u0275fac}),Te})(),be=(()=>{class Te{constructor(de){if(de)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(de){return{ngModule:Te,providers:[{provide:C.TP,useClass:K,multi:!0},de.jwtOptionsProvider||{provide:ie,useValue:de.config},fe]}}}return Te.\u0275fac=function(de){return new(de||Te)(h.LFG(Te,12))},Te.\u0275mod=h.oAB({type:Te}),Te.\u0275inj=h.cJS({}),Te})()},7346:(Bn,Ct,P)=>{"use strict";P.d(Ct,{y4:()=>Fn,De:()=>Ei,dy:()=>fn,oU:()=>Yr,ki:()=>Z,O1:()=>ln,d8:()=>Gn,jP:()=>Eo,UN:()=>vt,r4:()=>_i,SH:()=>di,X1:()=>gn,xs:()=>or,t4:()=>Kt,j:()=>qi,H:()=>Qe,bk:()=>On,DN:()=>yo,Wn:()=>Hn,vk:()=>Kn});var h=P(5861),m=P(9212),te=P(6800),l=P(6814);class B{constructor(){this.m=new Map}reset(Be){this.m=new Map(Object.entries(Be))}get(Be,ee){const qe=this.m.get(Be);return void 0!==qe?qe:ee}getBoolean(Be,ee=!1){const qe=this.m.get(Be);return void 0===qe?ee:"string"==typeof qe?"true"===qe:!!qe}getNumber(Be,ee){const qe=parseFloat(this.m.get(Be));return isNaN(qe)?void 0!==ee?ee:NaN:qe}set(Be,ee){this.m.set(Be,ee)}}const Y=new B,Te=Ee=>de(Ee),de=(Ee=window)=>{if(typeof Ee>"u")return[];Ee.Ionic=Ee.Ionic||{};let Be=Ee.Ionic.platforms;return null==Be&&(Be=Ee.Ionic.platforms=nt(Ee),Be.forEach(ee=>Ee.document.documentElement.classList.add(`plt-${ee}`))),Be},nt=Ee=>{const Be=Y.get("platform");return Object.keys(_n).filter(ee=>{const qe=Be?.[ee];return"function"==typeof qe?qe(Ee):_n[ee](Ee)})},oe=Ee=>!!(Ht(Ee,/iPad/i)||Ht(Ee,/Macintosh/i)&&X(Ee)),Ae=Ee=>Ht(Ee,/android|sink/i),X=Ee=>dn(Ee,"(any-pointer:coarse)"),me=Ee=>Fe(Ee)||De(Ee),Fe=Ee=>!!(Ee.cordova||Ee.phonegap||Ee.PhoneGap),De=Ee=>{const Be=Ee.Capacitor;return!!Be?.isNative},Ht=(Ee,Be)=>Be.test(Ee.navigator.userAgent),dn=(Ee,Be)=>{var ee;return null===(ee=Ee.matchMedia)||void 0===ee?void 0:ee.call(Ee,Be).matches},_n={ipad:oe,iphone:Ee=>Ht(Ee,/iPhone/i),ios:Ee=>Ht(Ee,/iPhone|iPod/i)||oe(Ee),android:Ae,phablet:Ee=>{const Be=Ee.innerWidth,ee=Ee.innerHeight,qe=Math.min(Be,ee),St=Math.max(Be,ee);return qe>390&&qe<520&&St>620&&St<800},tablet:Ee=>{const Be=Ee.innerWidth,ee=Ee.innerHeight,qe=Math.min(Be,ee),St=Math.max(Be,ee);return oe(Ee)||(Ee=>Ae(Ee)&&!Ht(Ee,/mobile/i))(Ee)||qe>460&&qe<820&&St>780&&St<1400},cordova:Fe,capacitor:De,electron:Ee=>Ht(Ee,/electron/i),pwa:Ee=>{var Be;return!!(null!==(Be=Ee.matchMedia)&&void 0!==Be&&Be.call(Ee,"(display-mode: standalone)").matches||Ee.navigator.standalone)},mobile:X,mobileweb:Ee=>X(Ee)&&!me(Ee),desktop:Ee=>!X(Ee),hybrid:me};var ke=P(191),it=P(3630),Qt=P(8645),mt=P(2438),an=P(5619),tt=P(2572),pt=P(2096),Xt=P(7582),bn=P(2181),Cn=P(4664),It=P(2737),pe=P(9360),lt=P(8251);function hn(Ee,Be){return Ee===Be}var Yt=P(6223);const Ft=["tabsInner"];let Kt=(()=>{class Ee{constructor(ee,qe){this.doc=ee,this.backButton=new Qt.x,this.keyboardDidShow=new Qt.x,this.keyboardDidHide=new Qt.x,this.pause=new Qt.x,this.resume=new Qt.x,this.resize=new Qt.x,qe.run(()=>{let St;this.win=ee.defaultView,this.backButton.subscribeWithPriority=function(en,jn){return this.subscribe(V=>V.register(en,ue=>qe.run(()=>jn(ue))))},ei(this.pause,ee,"pause",qe),ei(this.resume,ee,"resume",qe),ei(this.backButton,ee,"ionBackButton",qe),ei(this.resize,this.win,"resize",qe),ei(this.keyboardDidShow,this.win,"ionKeyboardDidShow",qe),ei(this.keyboardDidHide,this.win,"ionKeyboardDidHide",qe),this._readyPromise=new Promise(en=>{St=en}),this.win?.cordova?ee.addEventListener("deviceready",()=>{St("cordova")},{once:!0}):St("dom")})}is(ee){return((Ee,Be)=>("string"==typeof Ee&&(Be=Ee,Ee=void 0),Te(Ee).includes(Be)))(this.win,ee)}platforms(){return Te(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(ee){return wn(this.win.location.href,ee)}isLandscape(){return!this.isPortrait()}isPortrait(){return this.win.matchMedia?.("(orientation: portrait)").matches}testUserAgent(ee){const qe=this.win.navigator;return!!(qe?.userAgent&&qe.userAgent.indexOf(ee)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.LFG(l.K0),m.LFG(m.R0b))},Ee.\u0275prov=m.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const wn=(Ee,Be)=>{Be=Be.replace(/[[\]\\]/g,"\\$&");const qe=new RegExp("[\\?&]"+Be+"=([^&#]*)").exec(Ee);return qe?decodeURIComponent(qe[1].replace(/\+/g," ")):null},ei=(Ee,Be,ee,qe)=>{Be&&Be.addEventListener(ee,St=>{qe.run(()=>{const en=St?.detail;Ee.next(en)})})};let di=(()=>{class Ee{constructor(ee,qe,St,en){this.location=qe,this.serializer=St,this.router=en,this.direction=Mi,this.animated=dr,this.guessDirection="forward",this.lastNavId=-1,en&&en.events.subscribe(jn=>{if(jn instanceof te.OD){const V=jn.restoredState?jn.restoredState.navigationId:jn.id;this.guessDirection=V{this.pop(),jn()})}navigateForward(ee,qe={}){return this.setDirection("forward",qe.animated,qe.animationDirection,qe.animation),this.navigate(ee,qe)}navigateBack(ee,qe={}){return this.setDirection("back",qe.animated,qe.animationDirection,qe.animation),this.navigate(ee,qe)}navigateRoot(ee,qe={}){return this.setDirection("root",qe.animated,qe.animationDirection,qe.animation),this.navigate(ee,qe)}back(ee={animated:!0,animationDirection:"back"}){return this.setDirection("back",ee.animated,ee.animationDirection,ee.animation),this.location.back()}pop(){var ee=this;return(0,h.Z)(function*(){let qe=ee.topOutlet;for(;qe;){if(yield qe.pop())return!0;qe=qe.parentOutlet}return!1})()}setDirection(ee,qe,St,en){this.direction=ee,this.animated=Lr(ee,qe,St),this.animationBuilder=en}setTopOutlet(ee){this.topOutlet=ee}consumeTransition(){let qe,ee="root";const St=this.animationBuilder;return"auto"===this.direction?(ee=this.guessDirection,qe=this.guessAnimation):(qe=this.animated,ee=this.direction),this.direction=Mi,this.animated=dr,this.animationBuilder=void 0,{direction:ee,animation:qe,animationBuilder:St}}navigate(ee,qe){if(Array.isArray(ee))return this.router.navigate(ee,qe);{const St=this.serializer.parse(ee.toString());return void 0!==qe.queryParams&&(St.queryParams={...qe.queryParams}),void 0!==qe.fragment&&(St.fragment=qe.fragment),this.router.navigateByUrl(St,qe)}}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.LFG(Kt),m.LFG(l.Ye),m.LFG(te.Hx),m.LFG(te.F0,8))},Ee.\u0275prov=m.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const Lr=(Ee,Be,ee)=>{if(!1!==Be){if(void 0!==ee)return ee;if("forward"===Ee||"back"===Ee)return Ee;if("root"===Ee&&!0===Be)return"forward"}},Mi="auto",dr=void 0;let Ei=(()=>{class Ee{get(ee,qe){const St=Li();return St?St.get(ee,qe):null}getBoolean(ee,qe){const St=Li();return!!St&&St.getBoolean(ee,qe)}getNumber(ee,qe){const St=Li();return St?St.getNumber(ee,qe):0}}return Ee.\u0275fac=function(ee){return new(ee||Ee)},Ee.\u0275prov=m.Yz7({token:Ee,factory:Ee.\u0275fac,providedIn:"root"}),Ee})();const fn=new m.OlP("USERCONFIG"),Li=()=>{if(typeof window<"u"){const Ee=window.Ionic;if(Ee?.config)return Ee.config}return null};class gn{constructor(Be={}){this.data=Be}get(Be){return this.data[Be]}}let Fn=(()=>{class Ee{constructor(){this.zone=(0,m.f3M)(m.R0b),this.applicationRef=(0,m.f3M)(m.z2F)}create(ee,qe,St){return new Jt(ee,qe,this.applicationRef,this.zone,St)}}return Ee.\u0275fac=function(ee){return new(ee||Ee)},Ee.\u0275prov=m.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();class Jt{constructor(Be,ee,qe,St,en){this.environmentInjector=Be,this.injector=ee,this.applicationRef=qe,this.zone=St,this.elementReferenceKey=en,this.elRefMap=new WeakMap,this.elEventsMap=new WeakMap}attachViewToDom(Be,ee,qe,St){return this.zone.run(()=>new Promise(en=>{const jn={...qe};void 0!==this.elementReferenceKey&&(jn[this.elementReferenceKey]=Be),en(Bi(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,Be,ee,jn,St,this.elementReferenceKey))}))}removeViewFromDom(Be,ee){return this.zone.run(()=>new Promise(qe=>{const St=this.elRefMap.get(ee);if(St){St.destroy(),this.elRefMap.delete(ee);const en=this.elEventsMap.get(ee);en&&(en(),this.elEventsMap.delete(ee))}qe()}))}}const Bi=(Ee,Be,ee,qe,St,en,jn,V,ue,Xe,_t)=>{const Wt=m.zs3.create({providers:ot(ue),parent:ee}),tn=(0,m.LMc)(V,{environmentInjector:Be,elementInjector:Wt}),vn=tn.instance,Vn=tn.location.nativeElement;if(ue&&(_t&&void 0!==vn[_t]&&console.error(`[Ionic Error]: ${_t} is a reserved property when using ${jn.tagName.toLowerCase()}. Rename or remove the "${_t}" property from ${V.name}.`),Object.assign(vn,ue)),Xe)for(const Xn of Xe)Vn.classList.add(Xn);const $n=he(Ee,vn,Vn);return jn.appendChild(Vn),qe.attachView(tn.hostView),St.set(Vn,tn),en.set(Vn,$n),Vn},ut=[ke.L,ke.a,ke.b,ke.c,ke.d],he=(Ee,Be,ee)=>Ee.run(()=>{const qe=ut.filter(St=>"function"==typeof Be[St]).map(St=>{const en=jn=>Be[St](jn.detail);return ee.addEventListener(St,en),()=>ee.removeEventListener(St,en)});return()=>qe.forEach(St=>St())}),_e=new m.OlP("NavParamsToken"),ot=Ee=>[{provide:_e,useValue:Ee},{provide:gn,useFactory:yt,deps:[_e]}],yt=Ee=>new gn(Ee),Dt=(Ee,Be)=>{const ee=Ee.prototype;Be.forEach(qe=>{Object.defineProperty(ee,qe,{get(){return this.el[qe]},set(St){this.z.runOutsideAngular(()=>this.el[qe]=St)}})})},jt=(Ee,Be)=>{const ee=Ee.prototype;Be.forEach(qe=>{ee[qe]=function(){const St=arguments;return this.z.runOutsideAngular(()=>this.el[qe].apply(this.el,St))}})},Vt=(Ee,Be,ee)=>{ee.forEach(qe=>Ee[qe]=(0,mt.R)(Be,qe))};function dt(Ee){return function(ee){const{defineCustomElementFn:qe,inputs:St,methods:en}=Ee;return void 0!==qe&&qe(),St&&Dt(ee,St),en&&jt(ee,en),ee}}const Bt=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],Nn=["present","dismiss","onDidDismiss","onWillDismiss"];let Gn=(()=>{let Ee=class{constructor(ee,qe,St){this.z=St,this.isCmpOpen=!1,this.el=qe.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,ee.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,ee.detectChanges()}),Vt(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}};return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(m.sBO),m.Y36(m.SBq),m.Y36(m.R0b))},Ee.\u0275dir=m.lG2({type:Ee,selectors:[["ion-popover"]],contentQueries:function(ee,qe,St){if(1&ee&&m.Suo(St,m.Rgc,5),2&ee){let en;m.iGM(en=m.CRH())&&(qe.template=en.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}}),Ee=(0,Xt.gn)([dt({inputs:Bt,methods:Nn})],Ee),Ee})();const ae=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],ft=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Z=(()=>{let Ee=class{constructor(ee,qe,St){this.z=St,this.isCmpOpen=!1,this.el=qe.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,ee.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,ee.detectChanges()}),Vt(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}};return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(m.sBO),m.Y36(m.SBq),m.Y36(m.R0b))},Ee.\u0275dir=m.lG2({type:Ee,selectors:[["ion-modal"]],contentQueries:function(ee,qe,St){if(1&ee&&m.Suo(St,m.Rgc,5),2&ee){let en;m.iGM(en=m.CRH())&&(qe.template=en.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}}),Ee=(0,Xt.gn)([dt({inputs:ae,methods:ft})],Ee),Ee})();const st=(Ee,Be)=>((Ee=Ee.filter(ee=>ee.stackId!==Be.stackId)).push(Be),Ee),bi=(Ee,Be)=>{const ee=Ee.createUrlTree(["."],{relativeTo:Be});return Ee.serializeUrl(ee)},wi=(Ee,Be)=>!Be||Ee.stackId!==Be.stackId,Ri=(Ee,Be)=>{if(!Ee)return;const ee=mr(Be);for(let qe=0;qe=Ee.length)return ee[qe];if(ee[qe]!==Ee[qe])return}},mr=Ee=>Ee.split("/").map(Be=>Be.trim()).filter(Be=>""!==Be),Xi=Ee=>{Ee&&(Ee.ref.destroy(),Ee.unlistenEvents())};class Ar{constructor(Be,ee,qe,St,en,jn){this.containerEl=ee,this.router=qe,this.navCtrl=St,this.zone=en,this.location=jn,this.views=[],this.skipTransition=!1,this.nextId=0,this.tabsPrefix=void 0!==Be?mr(Be):void 0}createView(Be,ee){const qe=bi(this.router,ee),St=Be?.location?.nativeElement,en=he(this.zone,Be.instance,St);return{id:this.nextId++,stackId:Ri(this.tabsPrefix,qe),unlistenEvents:en,element:St,ref:Be,url:qe}}getExistingView(Be){const ee=bi(this.router,Be),qe=this.views.find(St=>St.url===ee);return qe&&qe.ref.changeDetectorRef.reattach(),qe}setActive(Be){const ee=this.navCtrl.consumeTransition();let{direction:qe,animation:St,animationBuilder:en}=ee;const jn=this.activeView,V=wi(Be,jn);V&&(qe="back",St=void 0);const ue=this.views.slice();let Xe;const _t=this.router;_t.getCurrentNavigation?Xe=_t.getCurrentNavigation():_t.navigations?.value&&(Xe=_t.navigations.value),Xe?.extras?.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Wt=this.views.includes(Be),tn=this.insertView(Be,qe);Wt||Be.ref.changeDetectorRef.detectChanges();const vn=Be.animationBuilder;return void 0===en&&"back"===qe&&!V&&void 0!==vn&&(en=vn),jn&&(jn.animationBuilder=en),this.zone.runOutsideAngular(()=>this.wait(()=>(jn&&jn.ref.changeDetectorRef.detach(),Be.ref.changeDetectorRef.reattach(),this.transition(Be,jn,St,this.canGoBack(1),!1,en).then(()=>uo(Be,tn,ue,this.location,this.zone)).then(()=>({enteringView:Be,direction:qe,animation:St,tabSwitch:V})))))}canGoBack(Be,ee=this.getActiveStackId()){return this.getStack(ee).length>Be}pop(Be,ee=this.getActiveStackId()){return this.zone.run(()=>{const qe=this.getStack(ee);if(qe.length<=Be)return Promise.resolve(!1);const St=qe[qe.length-Be-1];let en=St.url;const jn=St.savedData;if(jn){const ue=jn.get("primary");ue?.route?._routerState?.snapshot.url&&(en=ue.route._routerState.snapshot.url)}const{animationBuilder:V}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(en,{...St.savedExtras,animation:V}).then(()=>!0)})}startBackTransition(){const Be=this.activeView;if(Be){const ee=this.getStack(Be.stackId),qe=ee[ee.length-2],St=qe.animationBuilder;return this.wait(()=>this.transition(qe,Be,"back",this.canGoBack(2),!0,St))}return Promise.resolve()}endBackTransition(Be){Be?(this.skipTransition=!0,this.pop(1)):this.activeView&&_o(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(Be){const ee=this.getStack(Be);return ee.length>0?ee[ee.length-1]:void 0}getRootUrl(Be){const ee=this.getStack(Be);return ee.length>0?ee[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(Xi),this.activeView=void 0,this.views=[]}getStack(Be){return this.views.filter(ee=>ee.stackId===Be)}insertView(Be,ee){return this.activeView=Be,this.views=((Ee,Be,ee)=>"root"===ee?st(Ee,Be):"forward"===ee?((Ee,Be)=>(Ee.indexOf(Be)>=0?Ee=Ee.filter(qe=>qe.stackId!==Be.stackId||qe.id<=Be.id):Ee.push(Be),Ee))(Ee,Be):((Ee,Be)=>Ee.indexOf(Be)>=0?Ee.filter(qe=>qe.stackId!==Be.stackId||qe.id<=Be.id):st(Ee,Be))(Ee,Be))(this.views,Be,ee),this.views.slice()}transition(Be,ee,qe,St,en,jn){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ee===Be)return Promise.resolve(!1);const V=Be?Be.element:void 0,ue=ee?ee.element:void 0,Xe=this.containerEl;return V&&V!==ue&&(V.classList.add("ion-page"),V.classList.add("ion-page-invisible"),V.parentElement!==Xe&&Xe.appendChild(V),Xe.commit)?Xe.commit(V,ue,{duration:void 0===qe?0:void 0,direction:qe,showGoBack:St,progressAnimation:en,animationBuilder:jn}):Promise.resolve(!1)}wait(Be){var ee=this;return(0,h.Z)(function*(){void 0!==ee.runningTask&&(yield ee.runningTask,ee.runningTask=void 0);const qe=ee.runningTask=Be();return qe.finally(()=>ee.runningTask=void 0),qe})()}}const uo=(Ee,Be,ee,qe,St)=>"function"==typeof requestAnimationFrame?new Promise(en=>{requestAnimationFrame(()=>{_o(Ee,Be,ee,qe,St),en()})}):Promise.resolve(),_o=(Ee,Be,ee,qe,St)=>{St.run(()=>ee.filter(en=>!Be.includes(en)).forEach(Xi)),Be.forEach(en=>{const V=qe.path().split("?")[0].split("#")[0];if(en!==Ee&&en.url!==V){const ue=en.element;ue.setAttribute("aria-hidden","true"),ue.classList.add("ion-page-hidden"),en.ref.changeDetectorRef.detach()}})};let Eo=(()=>{class Ee{constructor(ee,qe,St,en,jn,V,ue,Xe){this.parentOutlet=Xe,this.activatedView=null,this.proxyMap=new WeakMap,this.currentActivatedRoute$=new an.X(null),this.activated=null,this._activatedRoute=null,this.name=te.eC,this.stackWillChange=new m.vpe,this.stackDidChange=new m.vpe,this.activateEvents=new m.vpe,this.deactivateEvents=new m.vpe,this.parentContexts=(0,m.f3M)(te.y6),this.location=(0,m.f3M)(m.s_b),this.environmentInjector=(0,m.f3M)(m.lqb),this.inputBinder=(0,m.f3M)(hr,{optional:!0}),this.supportsBindingToComponentInputs=!0,this.config=(0,m.f3M)(Ei),this.navCtrl=(0,m.f3M)(di),this.nativeEl=en.nativeElement,this.name=ee||te.eC,this.tabsPrefix="true"===qe?bi(jn,ue):void 0,this.stackCtrl=new Ar(this.tabsPrefix,this.nativeEl,jn,this.navCtrl,V,St),this.parentContexts.onChildOutletCreated(this.name,this)}get activatedComponentRef(){return this.activated}set animation(ee){this.nativeEl.animation=ee}set animated(ee){this.nativeEl.animated=ee}set swipeGesture(ee){this._swipeGesture=ee,this.nativeEl.swipeHandler=ee?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:qe=>this.stackCtrl.endBackTransition(qe)}:void 0}ngOnDestroy(){this.stackCtrl.destroy(),this.inputBinder?.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const ee=this.getContext();ee?.route&&this.activateWith(ee.route,ee.injector)}new Promise(ee=>(0,it.c)(this.nativeEl,ee)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(ee,qe){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const qe=this.getContext();this.activatedView.savedData=new Map(qe.children.contexts);const St=this.activatedView.savedData.get("primary");if(St&&qe.route&&(St.route={...qe.route}),this.activatedView.savedExtras={},qe.route){const en=qe.route.snapshot;this.activatedView.savedExtras.queryParams=en.queryParams,this.activatedView.savedExtras.fragment=en.fragment}}const ee=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(ee)}}activateWith(ee,qe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=ee;let St,en=this.stackCtrl.getExistingView(ee);if(en){St=this.activated=en.ref;const V=en.savedData;V&&(this.getContext().children.contexts=V),this.updateActivatedRouteProxy(St.instance,ee)}else{const V=ee._futureSnapshot,ue=this.parentContexts.getOrCreateContext(this.name).children,Xe=new an.X(null),_t=this.createActivatedRouteProxy(Xe,ee),Wt=new zi(_t,ue,this.location.injector);St=this.activated=this.location.createComponent(V.routeConfig.component??V.component,{index:this.location.length,injector:Wt,environmentInjector:qe??this.environmentInjector}),Xe.next(St.instance),en=this.stackCtrl.createView(this.activated,ee),this.proxyMap.set(St.instance,_t),this.currentActivatedRoute$.next({component:St.instance,activatedRoute:ee})}this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activatedView=en,this.navCtrl.setTopOutlet(this);const jn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:en,tabSwitch:wi(en,jn)}),this.stackCtrl.setActive(en).then(V=>{this.activateEvents.emit(St.instance),this.stackDidChange.emit(V)})}canGoBack(ee=1,qe){return this.stackCtrl.canGoBack(ee,qe)}pop(ee=1,qe){return this.stackCtrl.pop(ee,qe)}getLastUrl(ee){const qe=this.stackCtrl.getLastUrl(ee);return qe?qe.url:void 0}getLastRouteView(ee){return this.stackCtrl.getLastUrl(ee)}getRootView(ee){return this.stackCtrl.getRootUrl(ee)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(ee,qe){const St=new te.gz;return St._futureSnapshot=qe._futureSnapshot,St._routerState=qe._routerState,St.snapshot=qe.snapshot,St.outlet=qe.outlet,St.component=qe.component,St._paramMap=this.proxyObservable(ee,"paramMap"),St._queryParamMap=this.proxyObservable(ee,"queryParamMap"),St.url=this.proxyObservable(ee,"url"),St.params=this.proxyObservable(ee,"params"),St.queryParams=this.proxyObservable(ee,"queryParams"),St.fragment=this.proxyObservable(ee,"fragment"),St.data=this.proxyObservable(ee,"data"),St}proxyObservable(ee,qe){return ee.pipe((0,bn.h)(St=>!!St),(0,Cn.w)(St=>this.currentActivatedRoute$.pipe((0,bn.h)(en=>null!==en&&en.component===St),(0,Cn.w)(en=>en&&en.activatedRoute[qe]),function Zt(Ee,Be=It.y){return Ee=Ee??hn,(0,pe.e)((ee,qe)=>{let St,en=!0;ee.subscribe((0,lt.x)(qe,jn=>{const V=Be(jn);(en||!Ee(St,V))&&(en=!1,St=V,qe.next(jn))}))})}())))}updateActivatedRouteProxy(ee,qe){const St=this.proxyMap.get(ee);if(!St)throw new Error("Could not find activated route proxy for view");St._futureSnapshot=qe._futureSnapshot,St._routerState=qe._routerState,St.snapshot=qe.snapshot,St.outlet=qe.outlet,St.component=qe.component,this.currentActivatedRoute$.next({component:ee,activatedRoute:qe})}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.$8M("name"),m.$8M("tabs"),m.Y36(l.Ye),m.Y36(m.SBq),m.Y36(te.F0),m.Y36(m.R0b),m.Y36(te.gz),m.Y36(Ee,12))},Ee.\u0275dir=m.lG2({type:Ee,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),Ee})();class zi{constructor(Be,ee,qe){this.route=Be,this.childContexts=ee,this.parent=qe}get(Be,ee){return Be===te.gz?this.route:Be===te.y6?this.childContexts:this.parent.get(Be,ee)}}const hr=new m.OlP("");let Ti=(()=>{class Ee{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(ee){this.unsubscribeFromRouteData(ee),this.subscribeToRouteData(ee)}unsubscribeFromRouteData(ee){this.outletDataSubscriptions.get(ee)?.unsubscribe(),this.outletDataSubscriptions.delete(ee)}subscribeToRouteData(ee){const{activatedRoute:qe}=ee,St=(0,tt.a)([qe.queryParams,qe.params,qe.data]).pipe((0,Cn.w)(([en,jn,V],ue)=>(V={...en,...jn,...V},0===ue?(0,pt.of)(V):Promise.resolve(V)))).subscribe(en=>{if(!ee.isActivated||!ee.activatedComponentRef||ee.activatedRoute!==qe||null===qe.component)return void this.unsubscribeFromRouteData(ee);const jn=(0,m.qFp)(qe.component);if(jn)for(const{templateName:V}of jn.inputs)ee.activatedComponentRef.setInput(V,en[V]);else this.unsubscribeFromRouteData(ee)});this.outletDataSubscriptions.set(ee,St)}}return Ee.\u0275fac=function(ee){return new(ee||Ee)},Ee.\u0275prov=m.Yz7({token:Ee,factory:Ee.\u0275fac}),Ee})();const yo=()=>({provide:hr,useFactory:vr,deps:[te.F0]});function vr(Ee){return Ee?.componentInputBindingEnabled?new Ti:null}const Vr=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let Yr=(()=>{let Ee=class{constructor(ee,qe,St,en,jn,V){this.routerOutlet=ee,this.navCtrl=qe,this.config=St,this.r=en,this.z=jn,V.detach(),this.el=this.r.nativeElement}onClick(ee){const qe=this.defaultHref||this.config.get("backButtonDefaultHref");this.routerOutlet?.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),ee.preventDefault()):null!=qe&&(this.navCtrl.navigateBack(qe,{animation:this.routerAnimation}),ee.preventDefault())}};return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(Eo,8),m.Y36(di),m.Y36(Ei),m.Y36(m.SBq),m.Y36(m.R0b),m.Y36(m.sBO))},Ee.\u0275dir=m.lG2({type:Ee,hostBindings:function(ee,qe){1&ee&&m.NdJ("click",function(en){return qe.onClick(en)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}}),Ee=(0,Xt.gn)([dt({inputs:Vr})],Ee),Ee})(),qi=(()=>{class Ee{constructor(ee,qe,St,en,jn){this.locationStrategy=ee,this.navCtrl=qe,this.elementRef=St,this.router=en,this.routerLink=jn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){if(this.routerLink?.urlTree){const ee=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=ee}}onClick(ee){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),ee.preventDefault()}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(l.S$),m.Y36(di),m.Y36(m.SBq),m.Y36(te.F0),m.Y36(te.rH,8))},Ee.\u0275dir=m.lG2({type:Ee,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(ee,qe){1&ee&&m.NdJ("click",function(en){return qe.onClick(en)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[m.TTD]}),Ee})(),Qe=(()=>{class Ee{constructor(ee,qe,St,en,jn){this.locationStrategy=ee,this.navCtrl=qe,this.elementRef=St,this.router=en,this.routerLink=jn,this.routerDirection="forward"}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){if(this.routerLink?.urlTree){const ee=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=ee}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(l.S$),m.Y36(di),m.Y36(m.SBq),m.Y36(te.F0),m.Y36(te.rH,8))},Ee.\u0275dir=m.lG2({type:Ee,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(ee,qe){1&ee&&m.NdJ("click",function(){return qe.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[m.TTD]}),Ee})();const Tt=["animated","animation","root","rootParams","swipeGesture"],Et=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let ln=(()=>{let Ee=class{constructor(ee,qe,St,en,jn,V){this.z=jn,V.detach(),this.el=ee.nativeElement,ee.nativeElement.delegate=en.create(qe,St),Vt(this,this.el,["ionNavDidChange","ionNavWillChange"])}};return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(m.SBq),m.Y36(m.lqb),m.Y36(m.zs3),m.Y36(Fn),m.Y36(m.R0b),m.Y36(m.sBO))},Ee.\u0275dir=m.lG2({type:Ee,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}}),Ee=(0,Xt.gn)([dt({inputs:Tt,methods:Et})],Ee),Ee})(),vt=(()=>{class Ee{constructor(ee){this.navCtrl=ee,this.ionTabsWillChange=new m.vpe,this.ionTabsDidChange=new m.vpe,this.tabBarSlot="bottom"}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:ee,tabSwitch:qe}){const St=ee.stackId;qe&&void 0!==St&&this.ionTabsWillChange.emit({tab:St})}onStackDidChange({enteringView:ee,tabSwitch:qe}){const St=ee.stackId;qe&&void 0!==St&&(this.tabBar&&(this.tabBar.selectedTab=St),this.ionTabsDidChange.emit({tab:St}))}select(ee){const qe="string"==typeof ee,St=qe?ee:ee.detail.tab,en=this.outlet.getActiveStackId()===St,jn=`${this.outlet.tabsPrefix}/${St}`;if(qe||ee.stopPropagation(),en){const V=this.outlet.getActiveStackId();if(this.outlet.getLastRouteView(V)?.url===jn)return;const Xe=this.outlet.getRootView(St);return this.navCtrl.navigateRoot(jn,{...Xe&&jn===Xe.url&&Xe.savedExtras,animated:!0,animationDirection:"back"})}{const V=this.outlet.getLastRouteView(St),ue=V?.url||jn,Xe=V?.savedExtras;return this.navCtrl.navigateRoot(ue,{...Xe,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(ee=>{const qe=ee.el.getAttribute("slot");qe!==this.tabBarSlot&&(this.tabBarSlot=qe,this.relocateTabBar())})}relocateTabBar(){const ee=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(ee):this.tabsInner.nativeElement.after(ee)}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(di))},Ee.\u0275dir=m.lG2({type:Ee,selectors:[["ion-tabs"]],viewQuery:function(ee,qe){if(1&ee&&m.Gf(Ft,7,m.SBq),2&ee){let St;m.iGM(St=m.CRH())&&(qe.tabsInner=St.first)}},hostBindings:function(ee,qe){1&ee&&m.NdJ("ionTabButtonClick",function(en){return qe.select(en)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}}),Ee})();const Hn=Ee=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Ee):"function"==typeof requestAnimationFrame?requestAnimationFrame(Ee):setTimeout(Ee);let On=(()=>{class Ee{constructor(ee,qe){this.injector=ee,this.elementRef=qe,this.onChange=()=>{},this.onTouched=()=>{}}writeValue(ee){this.elementRef.nativeElement.value=this.lastValue=ee,Kn(this.elementRef)}handleValueChange(ee,qe){ee===this.elementRef.nativeElement&&(qe!==this.lastValue&&(this.lastValue=qe,this.onChange(qe)),Kn(this.elementRef))}_handleBlurEvent(ee){ee===this.elementRef.nativeElement&&(this.onTouched(),Kn(this.elementRef))}registerOnChange(ee){this.onChange=ee}registerOnTouched(ee){this.onTouched=ee}setDisabledState(ee){this.elementRef.nativeElement.disabled=ee}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let ee;try{ee=this.injector.get(Yt.a5)}catch{}if(!ee)return;ee.statusChanges&&(this.statusChanges=ee.statusChanges.subscribe(()=>Kn(this.elementRef)));const qe=ee.control;qe&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(en=>{if(typeof qe[en]<"u"){const jn=qe[en].bind(qe);qe[en]=(...V)=>{jn(...V),Kn(this.elementRef)}}})}}return Ee.\u0275fac=function(ee){return new(ee||Ee)(m.Y36(m.zs3),m.Y36(m.SBq))},Ee.\u0275dir=m.lG2({type:Ee,hostBindings:function(ee,qe){1&ee&&m.NdJ("ionBlur",function(en){return qe._handleBlurEvent(en.target)})}}),Ee})();const Kn=Ee=>{Hn(()=>{const Be=Ee.nativeElement,ee=null!=Be.value&&Be.value.toString().length>0,qe=pi(Be);ki(Be,qe);const St=Be.closest("ion-item");St&&ki(St,ee?[...qe,"item-has-value"]:qe)})},pi=Ee=>{const Be=Ee.classList,ee=[];for(let qe=0;qe{const ee=Ee.classList;ee.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ee.add(...Be)},rr=(Ee,Be)=>Ee.substring(0,Be.length)===Be;class _i{shouldDetach(Be){return!1}shouldAttach(Be){return!1}store(Be,ee){}retrieve(Be){return null}shouldReuseRoute(Be,ee){if(Be.routeConfig!==ee.routeConfig)return!1;const qe=Be.params,St=ee.params,en=Object.keys(qe),jn=Object.keys(St);if(en.length!==jn.length)return!1;for(const V of en)if(St[V]!==qe[V])return!1;return!0}}class or{constructor(Be){this.ctrl=Be}create(Be){return this.ctrl.create(Be||{})}dismiss(Be,ee,qe){return this.ctrl.dismiss(Be,ee,qe)}getTop(){return this.ctrl.getTop()}}},451:(Bn,Ct,P)=>{"use strict";P.d(Ct,{BX:()=>_t,Br:()=>ue,w:()=>ze,dr:()=>pt,BJ:()=>Xt,oU:()=>_i,yp:()=>Cn,YG:()=>lt,Sm:()=>Zt,PM:()=>hn,FN:()=>Yt,Zi:()=>Ft,tO:()=>Un,hM:()=>Kt,wI:()=>wn,W2:()=>ei,IJ:()=>Mi,W4:()=>dr,zq:()=>Ei,fr:()=>fn,jY:()=>Li,Gu:()=>gn,gu:()=>Fn,pK:()=>he,Ie:()=>_e,Q$:()=>dt,q_:()=>Bt,yh:()=>Nn,Uj:()=>en,z0:()=>ae,fG:()=>ft,zc:()=>Z,yf:()=>V,uN:()=>st,I_:()=>Ri,nJ:()=>mr,Wo:()=>Xi,jP:()=>ki,Nd:()=>Eo,VI:()=>zi,cJ:()=>hr,GO:()=>Ti,t9:()=>yo,n0:()=>vr,PQ:()=>Yr,jI:()=>qi,g2:()=>ln,Bs:()=>vt,wd:()=>Hn,ho:()=>Kn,sr:()=>pi,Pc:()=>Yi,HT:()=>tn,IN:()=>Vn,as:()=>Ke,YI:()=>Ee,QI:()=>dn,j9:()=>_n,yF:()=>si});var h=P(9212),m=P(6223),te=P(7346),l=P(7582),B=P(2438),Y=P(6814),C=P(6800),Te=(P(4913),P(4232),P(4810),P(2655),P(6535),P(5551)),Me=P(8958),nt=(P(2413),P(2936)),oe=(P(1848),P(9942));P(2019);const ye=Te.i,ct=["*"];let ze=(()=>{class O extends te.bk{constructor($,Ze){super($,Ze)}writeValue($){this.elementRef.nativeElement.checked=this.lastValue=$,(0,te.vk)(this.elementRef)}_handleIonChange($){this.handleValueChange($,$.checked)}}return O.\u0275fac=function($){return new($||O)(h.Y36(h.zs3),h.Y36(h.SBq))},O.\u0275dir=h.lG2({type:O,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function($,Ze){1&$&&h.NdJ("ionChange",function(Fi){return Ze._handleIonChange(Fi.target)})},features:[h._Bn([{provide:m.JU,useExisting:O,multi:!0}]),h.qOj]}),O})(),Ke=(()=>{class O extends te.bk{constructor($,Ze){super($,Ze)}handleInputEvent($){this.handleValueChange($,$.value)}registerOnChange($){super.registerOnChange(Ze=>{$(""===Ze?null:parseFloat(Ze))})}}return O.\u0275fac=function($){return new($||O)(h.Y36(h.zs3),h.Y36(h.SBq))},O.\u0275dir=h.lG2({type:O,selectors:[["ion-input","type","number"]],hostBindings:function($,Ze){1&$&&h.NdJ("ionInput",function(Fi){return Ze.handleInputEvent(Fi.target)})},features:[h._Bn([{provide:m.JU,useExisting:O,multi:!0}]),h.qOj]}),O})(),dn=(()=>{class O extends te.bk{constructor($,Ze){super($,Ze)}_handleChangeEvent($){this.handleValueChange($,$.value)}}return O.\u0275fac=function($){return new($||O)(h.Y36(h.zs3),h.Y36(h.SBq))},O.\u0275dir=h.lG2({type:O,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function($,Ze){1&$&&h.NdJ("ionChange",function(Fi){return Ze._handleChangeEvent(Fi.target)})},features:[h._Bn([{provide:m.JU,useExisting:O,multi:!0}]),h.qOj]}),O})(),_n=(()=>{class O extends te.bk{constructor($,Ze){super($,Ze)}_handleInputEvent($){this.handleValueChange($,$.value)}}return O.\u0275fac=function($){return new($||O)(h.Y36(h.zs3),h.Y36(h.SBq))},O.\u0275dir=h.lG2({type:O,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"],["ion-range"]],hostBindings:function($,Ze){1&$&&h.NdJ("ionInput",function(Fi){return Ze._handleInputEvent(Fi.target)})},features:[h._Bn([{provide:m.JU,useExisting:O,multi:!0}]),h.qOj]}),O})();const Ut=(O,Oe)=>{const $=O.prototype;Oe.forEach(Ze=>{Object.defineProperty($,Ze,{get(){return this.el[Ze]},set(Nt){this.z.runOutsideAngular(()=>this.el[Ze]=Nt)},configurable:!0})})},We=(O,Oe)=>{const $=O.prototype;Oe.forEach(Ze=>{$[Ze]=function(){const Nt=arguments;return this.z.runOutsideAngular(()=>this.el[Ze].apply(this.el,Nt))}})},Ne=(O,Oe,$)=>{$.forEach(Ze=>O[Ze]=(0,B.R)(Oe,Ze))};function it(O){return function($){const{defineCustomElementFn:Ze,inputs:Nt,methods:Fi}=O;return void 0!==Ze&&Ze(),Nt&&Ut($,Nt),Fi&&We($,Fi),$}}let pt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-app"]],ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({})],O),O})(),Xt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-avatar"]],ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({})],O),O})(),Cn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-badge"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","mode"]})],O),O})(),lt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionFocus","ionBlur"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],O),O})(),Zt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["collapse"]})],O),O})(),hn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],O),O})(),Yt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["mode"]})],O),O})(),Ft=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","mode","translucent"]})],O),O})(),Un=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","mode"]})],O),O})(),Kt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","disabled","mode","outline"]})],O),O})(),wn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],O),O})(),ei=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-content"]],inputs:{color:"color",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],O),O})(),Mi=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],O),O})(),dr=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionFocus","ionBlur"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-fab-button"]],inputs:{activated:"activated",closeIcon:"closeIcon",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",show:"show",size:"size",target:"target",translucent:"translucent",type:"type"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["activated","closeIcon","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","show","size","target","translucent","type"]})],O),O})(),Ei=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-fab-list"]],inputs:{activated:"activated",side:"side"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["activated","side"]})],O),O})(),fn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["collapse","mode","translucent"]})],O),O})(),Li=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["fixed"]})],O),O})(),gn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["collapse","mode","translucent"]})],O),O})(),Fn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],O),O})(),he=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-input"]],inputs:{accept:"accept",autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",size:"size",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["accept","autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","legacy","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","size","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],O),O})(),_e=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-item"]],inputs:{button:"button",color:"color",counter:"counter",counterFormatter:"counterFormatter",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",fill:"fill",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",target:"target",type:"type"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["button","color","counter","counterFormatter","detail","detailIcon","disabled","download","fill","href","lines","mode","rel","routerAnimation","routerDirection","shape","target","type"]})],O),O})(),dt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","mode","position"]})],O),O})(),Bt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],O),O})(),Nn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-list-header"]],inputs:{color:"color",lines:"lines",mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","lines","mode"]})],O),O})(),ae=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],O),O})(),ft=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["autoHide","color","disabled","menu","mode","type"]})],O),O})(),Z=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["autoHide","menu"]})],O),O})(),st=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-note"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","mode"]})],O),O})(),Ri=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionChange","ionInput","ionFocus","ionBlur","ionKnobMoveStart","ionKnobMoveEnd"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-range"]],inputs:{activeBarStart:"activeBarStart",color:"color",debounce:"debounce",disabled:"disabled",dualKnobs:"dualKnobs",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",max:"max",min:"min",mode:"mode",name:"name",pin:"pin",pinFormatter:"pinFormatter",snaps:"snaps",step:"step",ticks:"ticks",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["activeBarStart","color","debounce","disabled","dualKnobs","label","labelPlacement","legacy","max","min","mode","name","pin","pinFormatter","snaps","step","ticks","value"]})],O),O})(),mr=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionRefresh","ionPull","ionStart"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],O),O})(),Xi=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],O),O})(),Eo=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-row"]],ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({})],O),O})(),zi=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionInput","ionChange","ionCancel","ionClear","ionBlur","ionFocus"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-searchbar"]],inputs:{animated:"animated",autocomplete:"autocomplete",autocorrect:"autocorrect",cancelButtonIcon:"cancelButtonIcon",cancelButtonText:"cancelButtonText",clearIcon:"clearIcon",color:"color",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",inputmode:"inputmode",mode:"mode",name:"name",placeholder:"placeholder",searchIcon:"searchIcon",showCancelButton:"showCancelButton",showClearButton:"showClearButton",spellcheck:"spellcheck",type:"type",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["animated","autocomplete","autocorrect","cancelButtonIcon","cancelButtonText","clearIcon","color","debounce","disabled","enterkeyhint","inputmode","mode","name","placeholder","searchIcon","showCancelButton","showClearButton","spellcheck","type","value"],methods:["setFocus","getInputElement"]})],O),O})(),hr=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionChange"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],O),O})(),Ti=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["disabled","layout","mode","type","value"]})],O),O})(),yo=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","legacy","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],O),O})(),vr=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["disabled","value"]})],O),O})(),Yr=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-spinner"]],inputs:{color:"color",duration:"duration",name:"name",paused:"paused"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","duration","name","paused"]})],O),O})(),qi=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionSplitPaneVisible"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["contentId","disabled","when"]})],O),O})(),ln=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",legacy:"legacy",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","legacy","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],O),O})(),vt=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-thumbnail"]],ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({})],O),O})(),Hn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","size"]})],O),O})(),Kn=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement,Ne(this,this.el,["ionChange","ionFocus","ionBlur"])}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-toggle"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",enableOnOffLabels:"enableOnOffLabels",justify:"justify",labelPlacement:"labelPlacement",legacy:"legacy",mode:"mode",name:"name",value:"value"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["alignment","checked","color","disabled","enableOnOffLabels","justify","labelPlacement","legacy","mode","name","value"]})],O),O})(),pi=(()=>{let O=class{constructor($,Ze,Nt){this.z=Nt,$.detach(),this.el=Ze.nativeElement}};return O.\u0275fac=function($){return new($||O)(h.Y36(h.sBO),h.Y36(h.SBq),h.Y36(h.R0b))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O=(0,l.gn)([it({inputs:["color","mode"]})],O),O})(),ki=(()=>{class O extends te.jP{constructor($,Ze,Nt,Fi,Sr,Qi,Dr,ho){super($,Ze,Nt,Fi,Sr,Qi,Dr,ho),this.parentOutlet=ho}}return O.\u0275fac=function($){return new($||O)(h.$8M("name"),h.$8M("tabs"),h.Y36(Y.Ye),h.Y36(h.SBq),h.Y36(C.F0),h.Y36(h.R0b),h.Y36(C.gz),h.Y36(O,12))},O.\u0275dir=h.lG2({type:O,selectors:[["ion-router-outlet"]],features:[h.qOj]}),O})(),_i=(()=>{class O extends te.oU{constructor($,Ze,Nt,Fi,Sr,Qi){super($,Ze,Nt,Fi,Sr,Qi)}}return O.\u0275fac=function($){return new($||O)(h.Y36(ki,8),h.Y36(te.SH),h.Y36(te.De),h.Y36(h.SBq),h.Y36(h.R0b),h.Y36(h.sBO))},O.\u0275cmp=h.Xpm({type:O,selectors:[["ion-back-button"]],features:[h.qOj],ngContentSelectors:ct,decls:1,vars:0,template:function($,Ze){1&$&&(h.F$t(),h.Hsn(0))},encapsulation:2,changeDetection:0}),O})(),Ee=(()=>{class O extends te.j{}return O.\u0275fac=(()=>{let Oe;return function(Ze){return(Oe||(Oe=h.n5z(O)))(Ze||O)}})(),O.\u0275dir=h.lG2({type:O,selectors:[["","routerLink","",5,"a",5,"area"]],features:[h.qOj]}),O})();const St={provide:m.Cf,useExisting:(0,h.Gpc)(()=>en),multi:!0};let en=(()=>{class O extends m.Fd{}return O.\u0275fac=(()=>{let Oe;return function(Ze){return(Oe||(Oe=h.n5z(O)))(Ze||O)}})(),O.\u0275dir=h.lG2({type:O,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function($,Ze){2&$&&h.uIk("max",Ze._enabled?Ze.max:null)},features:[h._Bn([St]),h.qOj]}),O})();const jn={provide:m.Cf,useExisting:(0,h.Gpc)(()=>V),multi:!0};let V=(()=>{class O extends m.qQ{}return O.\u0275fac=(()=>{let Oe;return function(Ze){return(Oe||(Oe=h.n5z(O)))(Ze||O)}})(),O.\u0275dir=h.lG2({type:O,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function($,Ze){2&$&&h.uIk("min",Ze._enabled?Ze.min:null)},features:[h._Bn([jn]),h.qOj]}),O})(),ue=(()=>{class O extends te.xs{constructor(){super(nt.a)}}return O.\u0275fac=function($){return new($||O)},O.\u0275prov=h.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),_t=(()=>{class O extends te.xs{constructor(){super(nt.b)}}return O.\u0275fac=function($){return new($||O)},O.\u0275prov=h.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),tn=(()=>{class O extends te.xs{constructor(){super(nt.l)}}return O.\u0275fac=function($){return new($||O)},O.\u0275prov=h.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})(),Vn=(()=>{class O extends te.xs{constructor(){super(nt.m),this.angularDelegate=(0,h.f3M)(te.y4),this.injector=(0,h.f3M)(h.zs3),this.environmentInjector=(0,h.f3M)(h.lqb)}create($){return super.create({...$,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return O.\u0275fac=function($){return new($||O)},O.\u0275prov=h.Yz7({token:O,factory:O.\u0275fac}),O})();class Xn extends te.xs{constructor(){super(nt.c),this.angularDelegate=(0,h.f3M)(te.y4),this.injector=(0,h.f3M)(h.zs3),this.environmentInjector=(0,h.f3M)(h.lqb)}create(Oe){return super.create({...Oe,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}let si=(()=>{class O extends te.xs{constructor(){super(nt.t)}}return O.\u0275fac=function($){return new($||O)},O.\u0275prov=h.Yz7({token:O,factory:O.\u0275fac,providedIn:"root"}),O})();const fi=(O,Oe,$)=>()=>{if(Oe.defaultView&&typeof window<"u"){(0,Me.s)({...O,_zoneGate:Fi=>$.run(Fi)});const Nt="__zone_symbol__addEventListener"in Oe.body?"__zone_symbol__addEventListener":"addEventListener";return function Ae(){var O=[];if(typeof window<"u"){var Oe=window;(!Oe.customElements||Oe.Element&&(!Oe.Element.prototype.closest||!Oe.Element.prototype.matches||!Oe.Element.prototype.remove||!Oe.Element.prototype.getRootNode))&&O.push(P.e(6748).then(P.t.bind(P,3342,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||Oe.NodeList&&!Oe.NodeList.prototype.forEach||!Oe.fetch||!function(){try{var Ze=new URL("b","http://a");return Ze.pathname="c%20d","http://a/c%20d"===Ze.href&&Ze.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&O.push(P.e(2214).then(P.t.bind(P,2668,23)))}return Promise.all(O)}().then(()=>((O,Oe)=>{if(!(typeof window>"u"))return ye(),(0,oe.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"],[0,"keydown","onKeydown"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"accept":[1],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[4],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"size":[2],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"placeholder":["placeholderChanged"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"legacy":[4],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[1,"ion-skeleton-text",{"animated":[4]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}],[49,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"fill":[1],"shape":[1],"href":[1],"rel":[1],"lines":[1],"counter":[4],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"counterFormatter":[16],"multipleInputs":[32],"focusable":[32],"counterString":[32]},[[0,"ionInput","handleIonInput"],[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"counterFormatter":["counterFormatterChanged"]}],[34,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[33,"ion-note",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"legacy":[4],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker-internal",[[33,"ion-picker-internal",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"legacy":[4],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"],"checked":["styleChanged"],"color":["styleChanged"],"disabled":["styleChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[34,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-internal",[[33,"ion-picker-column-internal",{"disabled":[4],"items":[16],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64]},null,{"value":["valueChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"legacy":[4]},null,{"checked":["styleChanged"],"disabled":["styleChanged"]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]]]'),Oe)})(0,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:te.Wn,jmp:Fi=>$.runOutsideAngular(Fi),ael(Fi,Sr,Qi,Dr){Fi[Nt](Sr,Qi,Dr)},rel(Fi,Sr,Qi,Dr){Fi.removeEventListener(Sr,Qi,Dr)}}))}};let Yi=(()=>{class O{static forRoot($){return{ngModule:O,providers:[{provide:te.dy,useValue:$},{provide:h.ip1,useFactory:fi,multi:!0,deps:[te.dy,Y.K0,h.R0b]},(0,te.DN)()]}}}return O.\u0275fac=function($){return new($||O)},O.\u0275mod=h.oAB({type:O}),O.\u0275inj=h.cJS({providers:[te.y4,Vn,Xn],imports:[Y.ez]}),O})()},2618:(Bn,Ct,P)=>{"use strict";P.d(Ct,{Zw:()=>Ie,aw:()=>Qt,X$:()=>it,sK:()=>Ne});var h=P(9212),m=P(2096),te=P(2664),l=P(9315),B=P(5211),Y=P(4911),C=P(8180),ie=P(8645),fe=P(4552);class Pe extends ie.x{constructor(an=1/0,tt=1/0,pt=fe.l){super(),this._bufferSize=an,this._windowTime=tt,this._timestampProvider=pt,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=tt===1/0,this._bufferSize=Math.max(1,an),this._windowTime=Math.max(1,tt)}next(an){const{isStopped:tt,_buffer:pt,_infiniteTimeWindow:Xt,_timestampProvider:bn,_windowTime:Cn}=this;tt||(pt.push(an),!Xt&&pt.push(bn.now()+Cn)),this._trimBuffer(),super.next(an)}_subscribe(an){this._throwIfClosed(),this._trimBuffer();const tt=this._innerSubscribe(an),{_infiniteTimeWindow:pt,_buffer:Xt}=this,bn=Xt.slice();for(let Cn=0;Cn{pt.unsubscribe(),mt()}});return(0,K.Xf)(an(...tt)).subscribe(pt)}function nt(mt,an,tt){let pt,Xt=!1;return mt&&"object"==typeof mt?({bufferSize:pt=1/0,windowTime:an=1/0,refCount:Xt=!1,scheduler:tt}=mt):pt=mt??1/0,function Me(mt={}){const{connector:an=(()=>new ie.x),resetOnError:tt=!0,resetOnComplete:pt=!0,resetOnRefCountZero:Xt=!0}=mt;return bn=>{let Cn,It,pe,lt=0,Zt=!1,hn=!1;const Yt=()=>{It?.unsubscribe(),It=void 0},Ft=()=>{Yt(),Cn=pe=void 0,Zt=hn=!1},Un=()=>{const Ve=Cn;Ft(),Ve?.unsubscribe()};return(0,Te.e)((Ve,Pt)=>{lt++,!hn&&!Zt&&Yt();const Kt=pe=pe??an();Pt.add(()=>{lt--,0===lt&&!hn&&!Zt&&(It=de(Un,Xt))}),Kt.subscribe(Pt),!Cn&<>0&&(Cn=new be.Hp({next:wn=>Kt.next(wn),error:wn=>{hn=!0,Yt(),It=de(Ft,tt,wn),Kt.error(wn)},complete:()=>{Zt=!0,Yt(),It=de(Ft,pt),Kt.complete()}}),(0,K.Xf)(Ve).subscribe(Cn))})(bn)}}({connector:()=>new Pe(pt,an,tt),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:Xt})}var Ce=P(7398),oe=P(6328),xe=P(4664);class Ie{}let Ae=(()=>{class mt extends Ie{getTranslation(tt){return(0,m.of)({})}static \u0275fac=(()=>{let tt;return function(Xt){return(tt||(tt=h.n5z(mt)))(Xt||mt)}})();static \u0275prov=h.Yz7({token:mt,factory:mt.\u0275fac})}return mt})();class ye{}let Ue=(()=>{class mt{handle(tt){return tt.key}static \u0275fac=function(pt){return new(pt||mt)};static \u0275prov=h.Yz7({token:mt,factory:mt.\u0275fac})}return mt})();function ct(mt,an){if(mt===an)return!0;if(null===mt||null===an)return!1;if(mt!=mt&&an!=an)return!0;let Xt,bn,Cn,tt=typeof mt;if(tt==typeof an&&"object"==tt){if(!Array.isArray(mt)){if(Array.isArray(an))return!1;for(bn in Cn=Object.create(null),mt){if(!ct(mt[bn],an[bn]))return!1;Cn[bn]=!0}for(bn in an)if(!(bn in Cn)&&typeof an[bn]<"u")return!1;return!0}if(!Array.isArray(an))return!1;if((Xt=mt.length)==an.length){for(bn=0;bn{ve(an[pt])?pt in mt?tt[pt]=me(mt[pt],an[pt]):Object.assign(tt,{[pt]:an[pt]}):Object.assign(tt,{[pt]:an[pt]})}),tt}class Fe{}let De=(()=>{class mt extends Fe{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(tt,pt){let Xt;return Xt="string"==typeof tt?this.interpolateString(tt,pt):"function"==typeof tt?this.interpolateFunction(tt,pt):tt,Xt}getValue(tt,pt){let Xt="string"==typeof pt?pt.split("."):[pt];pt="";do{pt+=Xt.shift(),!X(tt)||!X(tt[pt])||"object"!=typeof tt[pt]&&Xt.length?Xt.length?pt+=".":tt=void 0:(tt=tt[pt],pt="")}while(Xt.length);return tt}interpolateFunction(tt,pt){return tt(pt)}interpolateString(tt,pt){return pt?tt.replace(this.templateMatcher,(Xt,bn)=>{let Cn=this.getValue(pt,bn);return X(Cn)?Cn:Xt}):tt}static \u0275fac=(()=>{let tt;return function(Xt){return(tt||(tt=h.n5z(mt)))(Xt||mt)}})();static \u0275prov=h.Yz7({token:mt,factory:mt.\u0275fac})}return mt})();class ze{}let Ke=(()=>{class mt extends ze{compile(tt,pt){return tt}compileTranslations(tt,pt){return tt}static \u0275fac=(()=>{let tt;return function(Xt){return(tt||(tt=h.n5z(mt)))(Xt||mt)}})();static \u0275prov=h.Yz7({token:mt,factory:mt.\u0275fac})}return mt})();class Ht{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new h.vpe;onLangChange=new h.vpe;onDefaultLangChange=new h.vpe}const dn=new h.OlP("USE_STORE"),_n=new h.OlP("USE_DEFAULT_LANG"),Ut=new h.OlP("DEFAULT_LANGUAGE"),We=new h.OlP("USE_EXTEND");let Ne=(()=>{class mt{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;isolate;extend;loadingTranslations;pending=!1;_onTranslationChange=new h.vpe;_onLangChange=new h.vpe;_onDefaultLangChange=new h.vpe;_defaultLang;_currentLang;_langs=[];_translations={};_translationRequests={};get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(tt){this.isolate?this._defaultLang=tt:this.store.defaultLang=tt}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(tt){this.isolate?this._currentLang=tt:this.store.currentLang=tt}get langs(){return this.isolate?this._langs:this.store.langs}set langs(tt){this.isolate?this._langs=tt:this.store.langs=tt}get translations(){return this.isolate?this._translations:this.store.translations}set translations(tt){this.isolate?this._translations=tt:this.store.translations=tt}constructor(tt,pt,Xt,bn,Cn,It=!0,pe=!1,lt=!1,Zt){this.store=tt,this.currentLoader=pt,this.compiler=Xt,this.parser=bn,this.missingTranslationHandler=Cn,this.useDefaultLang=It,this.isolate=pe,this.extend=lt,Zt&&this.setDefaultLang(Zt)}setDefaultLang(tt){if(tt===this.defaultLang)return;let pt=this.retrieveTranslations(tt);typeof pt<"u"?(null==this.defaultLang&&(this.defaultLang=tt),pt.pipe((0,C.q)(1)).subscribe(Xt=>{this.changeDefaultLang(tt)})):this.changeDefaultLang(tt)}getDefaultLang(){return this.defaultLang}use(tt){if(tt===this.currentLang)return(0,m.of)(this.translations[tt]);let pt=this.retrieveTranslations(tt);return typeof pt<"u"?(this.currentLang||(this.currentLang=tt),pt.pipe((0,C.q)(1)).subscribe(Xt=>{this.changeLang(tt)}),pt):(this.changeLang(tt),(0,m.of)(this.translations[tt]))}retrieveTranslations(tt){let pt;return(typeof this.translations[tt]>"u"||this.extend)&&(this._translationRequests[tt]=this._translationRequests[tt]||this.getTranslation(tt),pt=this._translationRequests[tt]),pt}getTranslation(tt){this.pending=!0;const pt=this.currentLoader.getTranslation(tt).pipe(nt(1),(0,C.q)(1));return this.loadingTranslations=pt.pipe((0,Ce.U)(Xt=>this.compiler.compileTranslations(Xt,tt)),nt(1),(0,C.q)(1)),this.loadingTranslations.subscribe({next:Xt=>{this.translations[tt]=this.extend&&this.translations[tt]?{...Xt,...this.translations[tt]}:Xt,this.updateLangs(),this.pending=!1},error:Xt=>{this.pending=!1}}),pt}setTranslation(tt,pt,Xt=!1){pt=this.compiler.compileTranslations(pt,tt),this.translations[tt]=(Xt||this.extend)&&this.translations[tt]?me(this.translations[tt],pt):pt,this.updateLangs(),this.onTranslationChange.emit({lang:tt,translations:this.translations[tt]})}getLangs(){return this.langs}addLangs(tt){tt.forEach(pt=>{-1===this.langs.indexOf(pt)&&this.langs.push(pt)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(tt,pt,Xt){let bn;if(pt instanceof Array){let Cn={},It=!1;for(let pe of pt)Cn[pe]=this.getParsedResult(tt,pe,Xt),(0,te.b)(Cn[pe])&&(It=!0);if(It){const pe=pt.map(lt=>(0,te.b)(Cn[lt])?Cn[lt]:(0,m.of)(Cn[lt]));return(0,l.D)(pe).pipe((0,Ce.U)(lt=>{let Zt={};return lt.forEach((hn,Yt)=>{Zt[pt[Yt]]=hn}),Zt}))}return Cn}if(tt&&(bn=this.parser.interpolate(this.parser.getValue(tt,pt),Xt)),typeof bn>"u"&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(bn=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],pt),Xt)),typeof bn>"u"){let Cn={key:pt,translateService:this};typeof Xt<"u"&&(Cn.interpolateParams=Xt),bn=this.missingTranslationHandler.handle(Cn)}return typeof bn<"u"?bn:pt}get(tt,pt){if(!X(tt)||!tt.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,oe.b)(Xt=>(Xt=this.getParsedResult(Xt,tt,pt),(0,te.b)(Xt)?Xt:(0,m.of)(Xt))));{let Xt=this.getParsedResult(this.translations[this.currentLang],tt,pt);return(0,te.b)(Xt)?Xt:(0,m.of)(Xt)}}getStreamOnTranslationChange(tt,pt){if(!X(tt)||!tt.length)throw new Error('Parameter "key" required');return(0,B.z)((0,Y.P)(()=>this.get(tt,pt)),this.onTranslationChange.pipe((0,xe.w)(Xt=>{const bn=this.getParsedResult(Xt.translations,tt,pt);return"function"==typeof bn.subscribe?bn:(0,m.of)(bn)})))}stream(tt,pt){if(!X(tt)||!tt.length)throw new Error('Parameter "key" required');return(0,B.z)((0,Y.P)(()=>this.get(tt,pt)),this.onLangChange.pipe((0,xe.w)(Xt=>{const bn=this.getParsedResult(Xt.translations,tt,pt);return(0,te.b)(bn)?bn:(0,m.of)(bn)})))}instant(tt,pt){if(!X(tt)||!tt.length)throw new Error('Parameter "key" required');let Xt=this.getParsedResult(this.translations[this.currentLang],tt,pt);if((0,te.b)(Xt)){if(tt instanceof Array){let bn={};return tt.forEach((Cn,It)=>{bn[tt[It]]=tt[It]}),bn}return tt}return Xt}set(tt,pt,Xt=this.currentLang){this.translations[Xt][tt]=this.compiler.compile(pt,Xt),this.updateLangs(),this.onTranslationChange.emit({lang:Xt,translations:this.translations[Xt]})}changeLang(tt){this.currentLang=tt,this.onLangChange.emit({lang:tt,translations:this.translations[tt]}),null==this.defaultLang&&this.changeDefaultLang(tt)}changeDefaultLang(tt){this.defaultLang=tt,this.onDefaultLangChange.emit({lang:tt,translations:this.translations[tt]})}reloadLang(tt){return this.resetLang(tt),this.getTranslation(tt)}resetLang(tt){this._translationRequests[tt]=void 0,this.translations[tt]=void 0}getBrowserLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let tt=window.navigator.languages?window.navigator.languages[0]:null;return tt=tt||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,typeof tt>"u"?void 0:(-1!==tt.indexOf("-")&&(tt=tt.split("-")[0]),-1!==tt.indexOf("_")&&(tt=tt.split("_")[0]),tt)}getBrowserCultureLang(){if(typeof window>"u"||typeof window.navigator>"u")return;let tt=window.navigator.languages?window.navigator.languages[0]:null;return tt=tt||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,tt}static \u0275fac=function(pt){return new(pt||mt)(h.LFG(Ht),h.LFG(Ie),h.LFG(ze),h.LFG(Fe),h.LFG(ye),h.LFG(_n),h.LFG(dn),h.LFG(We),h.LFG(Ut))};static \u0275prov=h.Yz7({token:mt,factory:mt.\u0275fac})}return mt})(),it=(()=>{class mt{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(tt,pt){this.translate=tt,this._ref=pt}updateValue(tt,pt,Xt){let bn=Cn=>{this.value=void 0!==Cn?Cn:tt,this.lastKey=tt,this._ref.markForCheck()};if(Xt){let Cn=this.translate.getParsedResult(Xt,tt,pt);(0,te.b)(Cn.subscribe)?Cn.subscribe(bn):bn(Cn)}this.translate.get(tt,pt).subscribe(bn)}transform(tt,...pt){if(!tt||!tt.length)return tt;if(ct(tt,this.lastKey)&&ct(pt,this.lastParams))return this.value;let Xt;if(X(pt[0])&&pt.length)if("string"==typeof pt[0]&&pt[0].length){let bn=pt[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{Xt=JSON.parse(bn)}catch{throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${pt[0]}`)}}else"object"==typeof pt[0]&&!Array.isArray(pt[0])&&(Xt=pt[0]);return this.lastKey=tt,this.lastParams=pt,this.updateValue(tt,Xt),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(bn=>{this.lastKey&&bn.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(tt,Xt,bn.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(bn=>{this.lastKey&&(this.lastKey=null,this.updateValue(tt,Xt,bn.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(tt,Xt))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(pt){return new(pt||mt)(h.Y36(Ne,16),h.Y36(h.sBO,16))};static \u0275pipe=h.Yjl({name:"translate",type:mt,pure:!1});static \u0275prov=h.Yz7({token:mt,factory:mt.\u0275fac})}return mt})(),Qt=(()=>{class mt{static forRoot(tt={}){return{ngModule:mt,providers:[tt.loader||{provide:Ie,useClass:Ae},tt.compiler||{provide:ze,useClass:Ke},tt.parser||{provide:Fe,useClass:De},tt.missingTranslationHandler||{provide:ye,useClass:Ue},Ht,{provide:dn,useValue:tt.isolate},{provide:_n,useValue:tt.useDefaultLang},{provide:We,useValue:tt.extend},{provide:Ut,useValue:tt.defaultLanguage},Ne]}}static forChild(tt={}){return{ngModule:mt,providers:[tt.loader||{provide:Ie,useClass:Ae},tt.compiler||{provide:ze,useClass:Ke},tt.parser||{provide:Fe,useClass:De},tt.missingTranslationHandler||{provide:ye,useClass:Ue},{provide:dn,useValue:tt.isolate},{provide:_n,useValue:tt.useDefaultLang},{provide:We,useValue:tt.extend},{provide:Ut,useValue:tt.defaultLanguage},Ne]}}static \u0275fac=function(pt){return new(pt||mt)};static \u0275mod=h.oAB({type:mt});static \u0275inj=h.cJS({})}return mt})()},5861:(Bn,Ct,P)=>{"use strict";function h(te,l,B,Y,C,ie,fe){try{var Pe=te[ie](fe),K=Pe.value}catch(be){return void B(be)}Pe.done?l(K):Promise.resolve(K).then(Y,C)}function m(te){return function(){var l=this,B=arguments;return new Promise(function(Y,C){var ie=te.apply(l,B);function fe(K){h(ie,Y,C,fe,Pe,"next",K)}function Pe(K){h(ie,Y,C,fe,Pe,"throw",K)}fe(void 0)})}}P.d(Ct,{Z:()=>m})},7582:(Bn,Ct,P)=>{"use strict";function B(We,Ne,ke,it){var an,Qt=arguments.length,mt=Qt<3?Ne:null===it?it=Object.getOwnPropertyDescriptor(Ne,ke):it;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)mt=Reflect.decorate(We,Ne,ke,it);else for(var tt=We.length-1;tt>=0;tt--)(an=We[tt])&&(mt=(Qt<3?an(mt):Qt>3?an(Ne,ke,mt):an(Ne,ke))||mt);return Qt>3&&mt&&Object.defineProperty(Ne,ke,mt),mt}function be(We,Ne,ke,it){return new(ke||(ke=Promise))(function(mt,an){function tt(bn){try{Xt(it.next(bn))}catch(Cn){an(Cn)}}function pt(bn){try{Xt(it.throw(bn))}catch(Cn){an(Cn)}}function Xt(bn){bn.done?mt(bn.value):function Qt(mt){return mt instanceof ke?mt:new ke(function(an){an(mt)})}(bn.value).then(tt,pt)}Xt((it=it.apply(We,Ne||[])).next())})}function Ae(We){return this instanceof Ae?(this.v=We,this):new Ae(We)}function ye(We,Ne,ke){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Qt,it=ke.apply(We,Ne||[]),mt=[];return Qt={},an("next"),an("throw"),an("return"),Qt[Symbol.asyncIterator]=function(){return this},Qt;function an(It){it[It]&&(Qt[It]=function(pe){return new Promise(function(lt,Zt){mt.push([It,pe,lt,Zt])>1||tt(It,pe)})})}function tt(It,pe){try{!function pt(It){It.value instanceof Ae?Promise.resolve(It.value.v).then(Xt,bn):Cn(mt[0][2],It)}(it[It](pe))}catch(lt){Cn(mt[0][3],lt)}}function Xt(It){tt("next",It)}function bn(It){tt("throw",It)}function Cn(It,pe){It(pe),mt.shift(),mt.length&&tt(mt[0][0],mt[0][1])}}function ct(We){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ke,Ne=We[Symbol.asyncIterator];return Ne?Ne.call(We):(We=function nt(We){var Ne="function"==typeof Symbol&&Symbol.iterator,ke=Ne&&We[Ne],it=0;if(ke)return ke.call(We);if(We&&"number"==typeof We.length)return{next:function(){return We&&it>=We.length&&(We=void 0),{value:We&&We[it++],done:!We}}};throw new TypeError(Ne?"Object is not iterable.":"Symbol.iterator is not defined.")}(We),ke={},it("next"),it("throw"),it("return"),ke[Symbol.asyncIterator]=function(){return this},ke);function it(mt){ke[mt]=We[mt]&&function(an){return new Promise(function(tt,pt){!function Qt(mt,an,tt,pt){Promise.resolve(pt).then(function(Xt){mt({value:Xt,done:tt})},an)}(tt,pt,(an=We[mt](an)).done,an.value)})}}}P.d(Ct,{FC:()=>ye,KL:()=>ct,gn:()=>B,mG:()=>be,qq:()=>Ae}),"function"==typeof SuppressedError&&SuppressedError}},Bn=>{Bn(Bn.s=3108)}]); \ No newline at end of file diff --git a/runtime.5c00b4562f134a92.js b/runtime.5c00b4562f134a92.js new file mode 100644 index 00000000..77f95c53 --- /dev/null +++ b/runtime.5c00b4562f134a92.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function f(e){var r=g[e];if(void 0!==r)return r.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(r,a,c,n)=>{if(!a){var t=1/0;for(d=0;d=n)&&Object.keys(f.O).every(p=>f.O[p](a[o]))?a.splice(o--,1):(l=!1,n0&&e[d-1][2]>n;d--)e[d]=e[d-1];e[d]=[a,c,n]},f.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return f.d(r,{a:r}),r},(()=>{var r,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var n=Object.create(null);f.r(n);var d={};r=r||[null,e({}),e([]),e(e)];for(var t=2&c&&a;"object"==typeof t&&!~r.indexOf(t);t=e(t))Object.getOwnPropertyNames(t).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,f.d(n,d),n}})(),f.d=(e,r)=>{for(var a in r)f.o(r,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:r[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((r,a)=>(f.f[a](e,r),r),[])),f.u=e=>(({2214:"polyfills-core-js",6748:"polyfills-dom",8592:"common"}[e]||e)+"."+{185:"ec7c2780f32d9a4f",433:"1ebc9a1caea70989",469:"2dad78fe404d096a",505:"243e4adcc3646d7d",579:"6ed79c373f83f5e1",962:"15d012086f54e986",1315:"dc5521f963e4ba4e",1372:"049789db1a9c05dd",1745:"43da8ed3a83550af",2214:"e9b3457756bc2ca9",2841:"78ee00a2c2e64dfe",2912:"953224b437fc9e4f",2975:"18612941c0cbf5ad",3150:"bf0b42d10fb4b78e",3483:"641d1e89bd90f639",3544:"55827b13c2d5e2f0",3672:"e917aad16f9ba8c0",3734:"4e95f8c0a56d424d",3998:"c64f721d045730d5",4087:"db66ef8a109ac573",4090:"13e5e6fc3a42f9bc",4458:"99e9fced430ef937",4485:"f11eec5485904922",4530:"07789d0977a90397",4764:"0635bd3a2a2fcc3a",4882:"0746da0b521efd7a",5248:"b9f582f469842254",5454:"0eccc433a18a0595",5675:"5096099c01862d0b",5860:"65c4f663e067f0ac",5962:"9043fc63a5d0595e",6304:"ce5975176f2e3528",6416:"d2723744cffdb9ec",6642:"7076da7f58e06be4",6673:"6801f9b2a82684aa",6748:"516ff539260f3e0d",6754:"19a35a2430ba9096",7059:"34617710b1a82707",7219:"f63835907e853f3f",7250:"dd7a58df6c68d73e",7465:"5523aea818076ba2",7635:"d0b9d1f4c6c6de67",7666:"24537b2ea8d6bb4c",8315:"bf1570894ba06876",8382:"2b409b3cb06ad54b",8484:"aa4304650bb0a820",8577:"52ce6a56c6140f30",8592:"557d5670fd4f041f",8594:"3fd983801f5e017a",8633:"9b7a5e4ce63aec7e",8811:"f9369853f077be45",8866:"4db2bfc4d5f24800",9352:"1824a3c4aeabc76f",9588:"10e5e908d9a70ed5",9793:"3154faefc8b0b5c6",9820:"84c624a4a3200641",9857:"518fb0b02b3f2a97",9882:"b600ed44014945da",9992:"3d010baba94dc440"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),(()=>{var e={},r="app:";f.l=(a,c,n,d)=>{if(e[a])e[a].push(c);else{var t,l;if(void 0!==n)for(var o=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],t.parentNode&&t.parentNode.removeChild(t),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=s.bind(null,t.onerror),t.onload=s.bind(null,t.onload),l&&document.head.appendChild(t)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:r=>r},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={3666:0};f.f.j=(c,n)=>{var d=f.o(e,c)?e[c]:void 0;if(0!==d)if(d)n.push(d[2]);else if(3666!=c){var t=new Promise((b,s)=>d=e[c]=[b,s]);n.push(d[2]=t);var l=f.p+f.u(c),o=new Error;f.l(l,b=>{if(f.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var s=b&&("load"===b.type?"missing":b.type),u=b&&b.target&&b.target.src;o.message="Loading chunk "+c+" failed.\n("+s+": "+u+")",o.name="ChunkLoadError",o.type=s,o.request=u,d[1](o)}},"chunk-"+c,c)}else e[c]=0},f.O.j=c=>0===e[c];var r=(c,n)=>{var o,i,[d,t,l]=n,b=0;if(d.some(u=>0!==e[u])){for(o in t)f.o(t,o)&&(f.m[o]=t[o]);if(l)var s=l(f)}for(c&&c(n);b{"use strict";var e,v={},g={};function t(e){var f=g[e];if(void 0!==f)return f.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,t),a.exports}t.m=v,e=[],t.O=(f,a,c,b)=>{if(!a){var r=1/0;for(d=0;d=b)&&Object.keys(t.O).every(p=>t.O[p](a[n]))?a.splice(n--,1):(l=!1,b0&&e[d-1][2]>b;d--)e[d]=e[d-1];e[d]=[a,c,b]},t.n=e=>{var f=e&&e.__esModule?()=>e.default:()=>e;return t.d(f,{a:f}),f},(()=>{var f,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;t.t=function(a,c){if(1&c&&(a=this(a)),8&c||"object"==typeof a&&a&&(4&c&&a.__esModule||16&c&&"function"==typeof a.then))return a;var b=Object.create(null);t.r(b);var d={};f=f||[null,e({}),e([]),e(e)];for(var r=2&c&&a;"object"==typeof r&&!~f.indexOf(r);r=e(r))Object.getOwnPropertyNames(r).forEach(l=>d[l]=()=>a[l]);return d.default=()=>a,t.d(b,d),b}})(),t.d=(e,f)=>{for(var a in f)t.o(f,a)&&!t.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:f[a]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((f,a)=>(t.f[a](e,f),f),[])),t.u=e=>(({2214:"polyfills-core-js",6748:"polyfills-dom",8592:"common"}[e]||e)+"."+{185:"148db3edf3f541cd",433:"cef341761d760619",469:"a2803c28c005f4f2",505:"fd27da52b7a1275a",579:"6ed79c373f83f5e1",962:"104efbb8dc4483c5",1315:"47f532243e702ebc",1372:"4d08c3619ccb9c02",1745:"d1821f88b5b88536",2214:"e9b3457756bc2ca9",2841:"bb9b54b2ef2ba816",2912:"953224b437fc9e4f",2975:"62ffd62add59be22",3150:"58bfc3fd60eb642b",3483:"91811fdb183a3e14",3544:"852eb714f33ef324",3672:"06013441ef2f96e2",3734:"7a8ff8ec9e82884f",3998:"7c6bd11685c135f4",4087:"9b029ba21122026d",4090:"f398639c670f5e5d",4458:"5fd66ad24f883dd1",4485:"f11eec5485904922",4530:"0d8921ee1a086632",4764:"fc73c49a566dcee1",5454:"c21ce327af63c8e5",5675:"4f38009025b018d4",5860:"a2c78dc150394f51",5951:"5a427d3c573c8c1c",5962:"77be1af1d96a643b",6304:"0e514baccb2a35a6",6642:"6f1f0b0fc284bedc",6673:"5c0d9275b99698ef",6748:"516ff539260f3e0d",6754:"c47a7b77328193c0",7059:"5f539cff3f4c3aaa",7219:"815cd4f854766a3e",7250:"dd7a58df6c68d73e",7465:"83b0bb785617426f",7635:"31c6e8c9a782e3fa",7666:"29d433eae6578207",8058:"92bc3c5df214f8f0",8382:"1741ce35366784e1",8484:"0beab6348706abe3",8577:"4404aff3d1e23511",8592:"b80dfddfac2df0b6",8594:"9d98505708847739",8633:"ed9be4c6b313b021",8811:"ebab0417cd0088bd",8866:"c9fb9b42d8600530",8895:"e40046089c8493e3",9302:"450c869ee8f15fac",9352:"7d84c3937ff46d66",9588:"fbad7ea635d3c2fc",9793:"3cf2993fddb73d56",9820:"5e3b370abd56fba1",9857:"1213480377202a1b",9882:"e3658b6c6b8ad9ea",9992:"afc949ac608758b1"}[e]+".js"),t.miniCssF=e=>{},t.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={},f="app:";t.l=(a,c,b,d)=>{if(e[a])e[a].push(c);else{var r,l;if(void 0!==b)for(var n=document.getElementsByTagName("script"),i=0;i{r.onerror=r.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],r.parentNode&&r.parentNode.removeChild(r),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=s.bind(null,r.onerror),r.onload=s.bind(null,r.onload),l&&document.head.appendChild(r)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:f=>f},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="",(()=>{var e={3666:0};t.f.j=(c,b)=>{var d=t.o(e,c)?e[c]:void 0;if(0!==d)if(d)b.push(d[2]);else if(3666!=c){var r=new Promise((o,s)=>d=e[c]=[o,s]);b.push(d[2]=r);var l=t.p+t.u(c),n=new Error;t.l(l,o=>{if(t.o(e,c)&&(0!==(d=e[c])&&(e[c]=void 0),d)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+c+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,d[1](n)}},"chunk-"+c,c)}else e[c]=0},t.O.j=c=>0===e[c];var f=(c,b)=>{var n,i,[d,r,l]=b,o=0;if(d.some(u=>0!==e[u])){for(n in r)t.o(r,n)&&(t.m[n]=r[n]);if(l)var s=l(t)}for(c&&c(b);o.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #3880ff)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}body.dark{--ion-color-primary: #428cff;--ion-color-primary-rgb: 66, 140, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #3a7be0;--ion-color-primary-tint: #5598ff;--ion-color-secondary: #50c8ff;--ion-color-secondary-rgb: 80, 200, 255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #46b0e0;--ion-color-secondary-tint: #62ceff;--ion-color-tertiary: #6a64ff;--ion-color-tertiary-rgb: 106, 100, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #5d58e0;--ion-color-tertiary-tint: #7974ff;--ion-color-success: #2fdf75;--ion-color-success-rgb: 47, 223, 117;--ion-color-success-contrast: #000000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #29c467;--ion-color-success-tint: #44e283;--ion-color-warning: #ffd534;--ion-color-warning-rgb: 255, 213, 52;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0bb2e;--ion-color-warning-tint: #ffd948;--ion-color-danger: #ff4961;--ion-color-danger-rgb: 255, 73, 97;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #e04055;--ion-color-danger-tint: #ff5b71;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #ffffff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e}.ios body.dark{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-color-step-50: #0d0d0d;--ion-color-step-100: #1a1a1a;--ion-color-step-150: #262626;--ion-color-step-200: #333333;--ion-color-step-250: #404040;--ion-color-step-300: #4d4d4d;--ion-color-step-350: #595959;--ion-color-step-400: #666666;--ion-color-step-450: #737373;--ion-color-step-500: #808080;--ion-color-step-550: #8c8c8c;--ion-color-step-600: #999999;--ion-color-step-650: #a6a6a6;--ion-color-step-700: #b3b3b3;--ion-color-step-750: #bfbfbf;--ion-color-step-800: #cccccc;--ion-color-step-850: #d9d9d9;--ion-color-step-900: #e6e6e6;--ion-color-step-950: #f2f2f2;--ion-item-background: #000000;--ion-card-background: #1c1c1d}.ios body.dark ion-modal{--ion-background-color: var(--ion-color-step-100);--ion-toolbar-background: var(--ion-color-step-150);--ion-toolbar-border-color: var(--ion-color-step-250);--ion-item-background: var(--ion-color-step-150)}.md body.dark{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-border-color: #222222;--ion-color-step-50: #1e1e1e;--ion-color-step-100: #2a2a2a;--ion-color-step-150: #363636;--ion-color-step-200: #414141;--ion-color-step-250: #4d4d4d;--ion-color-step-300: #595959;--ion-color-step-350: #656565;--ion-color-step-400: #717171;--ion-color-step-450: #7d7d7d;--ion-color-step-500: #898989;--ion-color-step-550: #949494;--ion-color-step-600: #a0a0a0;--ion-color-step-650: #acacac;--ion-color-step-700: #b8b8b8;--ion-color-step-750: #c4c4c4;--ion-color-step-800: #d0d0d0;--ion-color-step-850: #dbdbdb;--ion-color-step-900: #e7e7e7;--ion-color-step-950: #f3f3f3;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}ion-refresher{z-index:10;background-color:#fff3}.instruction{color:var(--ion-color-dark-tint)}.info{color:var(--ion-color-medium);font-size:80%}.alert-radio-label.sc-ion-alert-md,.alert-checkbox-label.sc-ion-alert-md{padding:13px 26px 13px 52px;flex:1;color:var(--ion-color-step-850, #262626);font-size:14px;text-overflow:ellipsis;white-space:pre-line}.alert-radio-label.sc-ion-alert-ios,.alert-checkbox-label.sc-ion-alert-ios{white-space:pre-line;font-size:13px;padding-bottom:2px} diff --git a/styles.bc4974fee20802c3.css b/styles.bc4974fee20802c3.css deleted file mode 100644 index 04de5429..00000000 --- a/styles.bc4974fee20802c3.css +++ /dev/null @@ -1 +0,0 @@ -:root{--ion-color-primary: #5f872a;--ion-color-primary-rgb: 95, 135, 42;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #547725;--ion-color-primary-tint: #6f933f;--ion-color-secondary: #0cd1e8;--ion-color-secondary-rgb: 12, 209, 232;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #0bb8cc;--ion-color-secondary-tint: #24d6ea;--ion-color-tertiary: #7044ff;--ion-color-tertiary-rgb: 112, 68, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #633ce0;--ion-color-tertiary-tint: #7e57ff;--ion-color-success: #10dc60;--ion-color-success-rgb: 16, 220, 96;--ion-color-success-contrast: #ffffff;--ion-color-success-contrast-rgb: 255, 255, 255;--ion-color-success-shade: #0ec254;--ion-color-success-tint: #28e070;--ion-color-warning: #ffce00;--ion-color-warning-rgb: 255, 206, 0;--ion-color-warning-contrast: #ffffff;--ion-color-warning-contrast-rgb: 255, 255, 255;--ion-color-warning-shade: #e0b500;--ion-color-warning-tint: #ffd31a;--ion-color-danger: #f04141;--ion-color-danger-rgb: 245, 61, 61;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #d33939;--ion-color-danger-tint: #f25454;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 34, 34;--ion-color-dark-contrast: #ffffff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #ffffff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 244, 244;--ion-color-light-contrast: #000000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-default-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: .18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #3880ff) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 56, 128, 255) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #3171e0) !important;--ion-color-tint: var(--ion-color-primary-tint, #4c8dff) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #3dc2ff) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 61, 194, 255) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #36abe0) !important;--ion-color-tint: var(--ion-color-secondary-tint, #50c8ff) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #5260ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 82, 96, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #4854e0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #6370ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd36f) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 211, 111) !important;--ion-color-contrast: var(--ion-color-success-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-success-shade, #28ba62) !important;--ion-color-tint: var(--ion-color-success-tint, #42d77d) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #eb445a) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 235, 68, 90) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #cf3c4f) !important;--ion-color-tint: var(--ion-color-danger-tint, #ed576b) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #92949c) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 146, 148, 156) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #808289) !important;--ion-color-tint: var(--ion-color-medium-tint, #9d9fa6) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{inset:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: constant(safe-area-inset-top)){html{--ion-safe-area-top: constant(safe-area-inset-top);--ion-safe-area-bottom: constant(safe-area-inset-bottom);--ion-safe-area-left: constant(safe-area-inset-left);--ion-safe-area-right: constant(safe-area-inset-right)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #3880ff)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}body.dark{--ion-color-primary: #428cff;--ion-color-primary-rgb: 66, 140, 255;--ion-color-primary-contrast: #ffffff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #3a7be0;--ion-color-primary-tint: #5598ff;--ion-color-secondary: #50c8ff;--ion-color-secondary-rgb: 80, 200, 255;--ion-color-secondary-contrast: #ffffff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #46b0e0;--ion-color-secondary-tint: #62ceff;--ion-color-tertiary: #6a64ff;--ion-color-tertiary-rgb: 106, 100, 255;--ion-color-tertiary-contrast: #ffffff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #5d58e0;--ion-color-tertiary-tint: #7974ff;--ion-color-success: #2fdf75;--ion-color-success-rgb: 47, 223, 117;--ion-color-success-contrast: #000000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #29c467;--ion-color-success-tint: #44e283;--ion-color-warning: #ffd534;--ion-color-warning-rgb: 255, 213, 52;--ion-color-warning-contrast: #000000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0bb2e;--ion-color-warning-tint: #ffd948;--ion-color-danger: #ff4961;--ion-color-danger-rgb: 255, 73, 97;--ion-color-danger-contrast: #ffffff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #e04055;--ion-color-danger-tint: #ff5b71;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #ffffff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e}.ios body.dark{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-color-step-50: #0d0d0d;--ion-color-step-100: #1a1a1a;--ion-color-step-150: #262626;--ion-color-step-200: #333333;--ion-color-step-250: #404040;--ion-color-step-300: #4d4d4d;--ion-color-step-350: #595959;--ion-color-step-400: #666666;--ion-color-step-450: #737373;--ion-color-step-500: #808080;--ion-color-step-550: #8c8c8c;--ion-color-step-600: #999999;--ion-color-step-650: #a6a6a6;--ion-color-step-700: #b3b3b3;--ion-color-step-750: #bfbfbf;--ion-color-step-800: #cccccc;--ion-color-step-850: #d9d9d9;--ion-color-step-900: #e6e6e6;--ion-color-step-950: #f2f2f2;--ion-item-background: #000000;--ion-card-background: #1c1c1d}.ios body.dark ion-modal{--ion-background-color: var(--ion-color-step-100);--ion-toolbar-background: var(--ion-color-step-150);--ion-toolbar-border-color: var(--ion-color-step-250);--ion-item-background: var(--ion-color-step-150)}.md body.dark{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-border-color: #222222;--ion-color-step-50: #1e1e1e;--ion-color-step-100: #2a2a2a;--ion-color-step-150: #363636;--ion-color-step-200: #414141;--ion-color-step-250: #4d4d4d;--ion-color-step-300: #595959;--ion-color-step-350: #656565;--ion-color-step-400: #717171;--ion-color-step-450: #7d7d7d;--ion-color-step-500: #898989;--ion-color-step-550: #949494;--ion-color-step-600: #a0a0a0;--ion-color-step-650: #acacac;--ion-color-step-700: #b8b8b8;--ion-color-step-750: #c4c4c4;--ion-color-step-800: #d0d0d0;--ion-color-step-850: #dbdbdb;--ion-color-step-900: #e7e7e7;--ion-color-step-950: #f3f3f3;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}ion-refresher{z-index:10;background-color:#fff3}.instruction{color:var(--ion-color-dark-tint)}.info{color:var(--ion-color-medium);font-size:80%}.alert-radio-label.sc-ion-alert-md,.alert-checkbox-label.sc-ion-alert-md{padding:13px 26px 13px 52px;flex:1;color:var(--ion-color-step-850, #262626);font-size:14px;text-overflow:ellipsis;white-space:pre-line}.alert-radio-label.sc-ion-alert-ios,.alert-checkbox-label.sc-ion-alert-ios{white-space:pre-line;font-size:13px;padding-bottom:2px}