PageSourceSearch

https://gottayoga.app/js/chunk-vendors.ff4eb395.js

js gottayoga.app collected 2026-10-02 15:35:10 UTC 1,989,447 bytes, 3,343 lines download raw bytes

vendor: 4,214 bytes, line 1
1(self["webpackChunkGottaYoga"]=self["webpackChunkGottaYoga"]||[]).push([[998],{9711:function(e,t,n){"use strict";n.d(t,{BH:function(){return E},LL:function(){return V},ZR:function(){return M},gQ:function(){return te},hu:function(){return a},g5:function(){return o},US:function(){return u},tV:function(){return p},h$:function(){return d},L:function(){return h},r3:function(){return G},Sg:function(){return I},ne:function(){return ne},p$:function(){return f},vZ:function(){return X},gK:function(){return oe},pd:function(){return ee},aH:function(){return k},q4:function(){return w},P0:function(){return S},Pz:function(){return C},m9:function(){return ue},z$:function(){return x},GJ:function(){return q},ru:function(){return $},Xx:function(){return ce},L_:function(){return P},xb:function(){return Y},w1:function(){return N},hl:function(){return D},uI:function(){return A},Yr:function(){return L},b$:function(){return O},w9:function(){return H},cI:function(){return B},UI:function(){return K},Uo:function(){return de},xO:function(){return Z},zd:function(){return Q},DV:function(){return z},ug:function(){return le},dS:function(){return se},Wl:function(){return j},eu:function(){return R}});const r=()=>{},i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},a=function(e,t){if(!e)throw o(t)},o=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},l=function(e){const t=[];let n=0,r=0;while(n<e.length){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){const a=e[n++],o=e[n++],s=e[n++],l=((7&i)<<18|(63&a)<<12|(63&o)<<6|63&s)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(1023&l))}else{const a=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}}return t.join("")},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],a=i+1<e.length,o=a?e[i+1]:0,s=i+2<e.length,l=s?e[i+2]:0,u=t>>2,c=(3&t)<<4|o>>4;let d=(15&o)<<2|l>>6,h=63&l;s||(h=64,a||(d=64)),r.push(n[u],n[c],n[d],n[h])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):l(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],a=i<e.length,o=a?n[e.charAt(i)]:0;++i;const s=i<e.length,l=s?n[e.charAt(i)]:64;++i;const u=i<e.length,d=u?n[e.charAt(i)]:64;if(++i,null==t||null==o||null==l||null==d)throw new c;const h=t<<2|o>>4;if(r.push(h),64!==l){const e=o<<4&240|l>>2;if(r.push(e),64!==d){const e=l<<6&192|d;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
1class c extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const d=function(e){const t=s(e);return u.encodeByteArray(t,!0)},h=function(e){return d(e).replace(/\./g,"")},p=function(e){try{return u.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};
2/**
3 * @license
4 * Copyright 2017 Google LLC
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18function f(e){return m(void 0,e)}function m(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:const n=t;return new Date(n.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&v(n)&&(e[n]=m(e[n],t[n]));return e}function v(e){return"__proto__"!==e}
19/**
20 * @license
21 * Copyright 2022 Google LLC
22 *
23 * Licensed under the Apache License, Version 2.0 (the "License");
24 * you may not use this file except in compliance with the License.
25 * You may obtain a copy of the License at
26 *
27 *   http://www.apache.org/licenses/LICENSE-2.0
28 *
29 * Unless required by applicable law or agreed to in writing, software
30 * distributed under the License is distributed on an "AS IS" BASIS,
31 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
34 */function g(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}
35/**
36 * @license
37 * Copyright 2022 Google LLC
38 *
39 * Licensed under the Apache License, Version 2.0 (the "License");
40 * you may not use this file except in compliance with the License.
41 * You may obtain a copy of the License at
42 *
43 *   http://www.apache.org/licenses/LICENSE-2.0
44 *
45 * Unless required by applicable law or agreed to in writing, software
46 * distributed under the License is distributed on an "AS IS" BASIS,
47 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48 * See the License for the specific language governing permissions and
49 * limitations under the License.
50 */const y=()=>g().__FIREBASE_DEFAULTS__,_=()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",BASE_URL:"/"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0},b=()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&p(e[1]);return t&&JSON.parse(t)},T=()=>{try{return r()||y()||_()||b()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},w=e=>T()?.emulatorHosts?.[e],S=e=>{const t=w(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]},k=()=>T()?.config,C=e=>T()?.[`_${e}`]
51/**
52 * @license
53 * Copyright 2017 Google LLC
54 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
56 * you may not use this file except in compliance with the License.
57 * You may obtain a copy of the License at
58 *
59 *   http://www.apache.org/licenses/LICENSE-2.0
60 *
61 * Unless required by applicable law or agreed to in writing, software
62 * distributed under the License is distributed on an "AS IS" BASIS,
63 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64 * See the License for the specific language governing permissions and
65 * limitations under the License.
66 */;class E{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}
67/**
68 * @license
69 * Copyright 2021 Google LLC
70 *
71 * Licensed under the Apache License, Version 2.0 (the "License");
72 * you may not use this file except in compliance with the License.
73 * You may obtain a copy of the License at
74 *
75 *   http://www.apache.org/licenses/LICENSE-2.0
76 *
77 * Unless required by applicable law or agreed to in writing, software
78 * distributed under the License is distributed on an "AS IS" BASIS,
79 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
80 * See the License for the specific language governing permissions and
81 * limitations under the License.
82 */function I(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=t||"demo-project",i=e.iat||0,a=e.sub||e.user_id;if(!a)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const o={iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:a,user_id:a,firebase:{sign_in_provider:"custom",identities:{}},...e},s="";return[h(JSON.stringify(n)),h(JSON.stringify(o)),s].join(".")}
83/**
84 * @license
85 * Copyright 2017 Google LLC
86 *
87 * Licensed under the Apache License, Version 2.0 (the "License");
88 * you may not use this file except in compliance with the License.
89 * You may obtain a copy of the License at
90 *
91 *   http://www.apache.org/licenses/LICENSE-2.0
92 *
93 * Unless required by applicable law or agreed to in writing, software
94 * distributed under the License is distributed on an "AS IS" BASIS,
95 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
96 * See the License for the specific language governing permissions and
97 * limitations under the License.
98 */function x(){return"undefined"!==typeof navigator&&"string"===typeof navigator["userAgent"]?navigator["userAgent"]:""}function A(){return"undefined"!==typeof window&&!!(window["cordova"]||window["ph
98onegap"]||window["PhoneGap"])&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(x())}function P(){return"undefined"!==typeof navigator&&"Cloudflare-Workers"===navigator.userAgent}function $(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function O(){return"object"===typeof navigator&&"ReactNative"===navigator["product"]}function N(){const e=x();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function L(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}function D(){try{return"object"===typeof indexedDB}catch(e){return!1}}function R(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{t(i.error?.message||"")}}catch(n){t(n)}}))}
99/**
100 * @license
101 * Copyright 2017 Google LLC
102 *
103 * Licensed under the Apache License, Version 2.0 (the "License");
104 * you may not use this file except in compliance with the License.
105 * You may obtain a copy of the License at
106 *
107 *   http://www.apache.org/licenses/LICENSE-2.0
108 *
109 * Unless required by applicable law or agreed to in writing, software
110 * distributed under the License is distributed on an "AS IS" BASIS,
111 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112 * See the License for the specific language governing permissions and
113 * limitations under the License.
114 */
115const F="FirebaseError";class M extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=F,Object.setPrototypeOf(this,M.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,V.prototype.create)}}class V{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?U(i,n):"Error",o=`${this.serviceName}: ${a} (${r}).`,s=new M(r,o,n);return s}}function U(e,t){try{let n=0,r="";while(n<e.length){const i=e.indexOf("{$",n);if(-1===i){r+=e.substring(n);break}const a=e.indexOf("}",i+2);if(-1===a){r+=e.substring(n);break}const o=e.substring(i+2,a),s=t[o];r+=e.substring(n,i)+(null!=s?String(s):`<${o}?>`),n=a+1}return r}catch(n){return e}}
116/**
117 * @license
118 * Copyright 2017 Google LLC
119 *
120 * Licensed under the Apache License, Version 2.0 (the "License");
121 * you may not use this file except in compliance with the License.
122 * You may obtain a copy of the License at
123 *
124 *   http://www.apache.org/licenses/LICENSE-2.0
125 *
126 * Unless required by applicable law or agreed to in writing, software
127 * distributed under the License is distributed on an "AS IS" BASIS,
128 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129 * See the License for the specific language governing permissions and
130 * limitations under the License.
131 */function B(e){return JSON.parse(e)}function j(e){return JSON.stringify(e)}
132/**
133 * @license
134 * Copyright 2017 Google LLC
135 *
136 * Licensed under the Apache License, Version 2.0 (the "License");
137 * you may not use this file except in compliance with the License.
138 * You may obtain a copy of the License at
139 *
140 *   http://www.apache.org/licenses/LICENSE-2.0
141 *
142 * Unless required by applicable law or agreed to in writing, software
143 * distributed under the License is distributed on an "AS IS" BASIS,
144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
145 * See the License for the specific language governing permissions and
146 * limitations under the License.
147 */const W=function(e){let t={},n={},r={},i="";try{const a=e.split(".");t=B(p(a[0])||""),n=B(p(a[1])||""),i=a[2],r=n["d"]||{},delete n["d"]}catch(a){}return{header:t,claims:n,data:r,signature:i}},H=function(e){const t=W(e),n=t.claims;return!!n&&"object"===typeof n&&n.hasOwnProperty("iat")},q=function(e){const t=W(e).claims;return"object"===typeof t&&!0===t["admin"]};
148/**
149 * @license
150 * Copyright 2017 Google LLC
151 *
152 * Licensed under the Apache License, Version 2.0 (the "License");
153 * you may not use this file except in compliance with the License.
154 * You may obtain a copy of the License at
155 *
156 *   http://www.apache.org/licenses/LICENSE-2.0
157 *
158 * Unless required by applicable law or agreed to in writing, softw
158are
159 * distributed under the License is distributed on an "AS IS" BASIS,
160 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
161 * See the License for the specific language governing permissions and
162 * limitations under the License.
163 */
164function G(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function Y(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function K(e,t,n){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function X(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],a=t[i];if(J(n)&&J(a)){if(!X(n,a))return!1}else if(n!==a)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function J(e){return null!==e&&"object"===typeof e}
165/**
166 * @license
167 * Copyright 2022 Google LLC
168 *
169 * Licensed under the Apache License, Version 2.0 (the "License");
170 * you may not use this file except in compliance with the License.
171 * You may obtain a copy of the License at
172 *
173 *   http://www.apache.org/licenses/LICENSE-2.0
174 *
175 * Unless required by applicable law or agreed to in writing, software
176 * distributed under the License is distributed on an "AS IS" BASIS,
177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
178 * See the License for the specific language governing permissions and
179 * limitations under the License.
180 */
181/**
182 * @license
183 * Copyright 2017 Google LLC
184 *
185 * Licensed under the Apache License, Version 2.0 (the "License");
186 * you may not use this file except in compliance with the License.
187 * You may obtain a copy of the License at
188 *
189 *   http://www.apache.org/licenses/LICENSE-2.0
190 *
191 * Unless required by applicable law or agreed to in writing, software
192 * distributed under the License is distributed on an "AS IS" BASIS,
193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194 * See the License for the specific language governing permissions and
195 * limitations under the License.
196 */
197function Z(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function Q(e){const t={},n=e.replace(/^\?/,"").split("&");return n.forEach((e=>{if(e){const[n,r]=e.split("=");
197t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function ee(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}
198/**
199 * @license
200 * Copyright 2017 Google LLC
201 *
202 * Licensed under the Apache License, Version 2.0 (the "License");
203 * you may not use this file except in compliance with the License.
204 * You may obtain a copy of the License at
205 *
206 *   http://www.apache.org/licenses/LICENSE-2.0
207 *
208 * Unless required by applicable law or agreed to in writing, software
209 * distributed under the License is distributed on an "AS IS" BASIS,
210 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
211 * See the License for the specific language governing permissions and
212 * limitations under the License.
213 */class te{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(let e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(e,t){t||(t=0);const n=this.W_;if("string"===typeof e)for(let c=0;c<16;c++)n[c]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(let c=0;c<16;c++)n[c]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(let c=16;c<80;c++){const e=n[c-3]^n[c-8]^n[c-14]^n[c-16];n[c]=4294967295&(e<<1|e>>>31)}let r,i,a=this.chain_[0],o=this.chain_[1],s=this.chain_[2],l=this.chain_[3],u=this.chain_[4];for(let c=0;c<80;c++){c<40?c<20?(r=l^o&(s^l),i=1518500249):(r=o^s^l,i=1859775393):c<60?(r=o&s|l&(o|s),i=2400959708):(r=o^s^l,i=3395469782);const e=(a<<5|a>>>27)+r+u+i+n[c]&4294967295;u=l,l=s,s=4294967295&(o<<30|o>>>2),o=a,a=e}this.chain_[0]=this.chain_[0]+a&4294967295,this.chain_[1]=this.chain_[1]+o&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+u&4294967295}update(e,t){if(null==e)return;void 0===t&&(t=e.length);const n=t-this.blockSize;let r=0;const i=this.buf_;let a=this.inbuf_;while(r<t){if(0===a)while(r<=n)this.compress_(e,r),r+=this.blockSize;if("string"===typeof e){while(r<t)if(i[a]=e.charCodeAt(r),++a,++r,a===this.blockSize){this.compress_(i),a=0;break}}else while(r<t)if(i[a]=e[r],++a,++r,a===this.blockSize){this.compress_(i),a=0;break}}this.inbuf_=a,this.total_+=t}digest(){const e=[];let t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let r=this.blockSize-1;r>=56;r--)this.buf_[r]=255&t,t/=256;this.compress_(this.buf_);let n=0;for(let r=0;r<5;r++)for(let t=24;t>=0;t-=8)e[n]=this.chain_[r]>>t&255,++n;return e}}function ne(e,t){const n=new re(e,t);return n.subscribe.bind(n)}class re{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=ie(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=ae),void 0===r.error&&(r.error=ae),void 0===r.complete&&(r.complete=ae);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}})),this.observers.push(r),i}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>
213{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function ie(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}function ae(){}
214/**
215 * @license
216 * Copyright 2017 Google LLC
217 *
218 * Licensed under the Apache License, Version 2.0 (the "License");
219 * you may not use this file except in compliance with the License.
220 * You may obtain a copy of the License at
221 *
222 *   http://www.apache.org/licenses/LICENSE-2.0
223 *
224 * Unless required by applicable law or agreed to in writing, software
225 * distributed under the License is distributed on an "AS IS" BASIS,
226 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
227 * See the License for the specific language governing permissions and
228 * limitations under the License.
229 */function oe(e,t){return`${e} failed: ${t} argument `}
230/**
231 * @license
232 * Copyright 2017 Google LLC
233 *
234 * Licensed under the Apache License, Version 2.0 (the "License");
235 * you may not use this file except in compliance with the License.
236 * You may obtain a copy of the License at
237 *
238 *   http://www.apache.org/licenses/LICENSE-2.0
239 *
240 * Unless required by applicable law or agreed to in writing, software
241 * distributed under the License is distributed on an "AS IS" BASIS,
242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243 * See the License for the specific language governing permissions and
244 * limitations under the License.
245 */
246const se=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i>=55296&&i<=56319){const t=i-55296;r++,a(r<e.length,"Surrogate pair missing trail surrogate.");const n=e.charCodeAt(r)-56320;i=65536+(t<<10)+n}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},le=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};
247/**
248 * @license
249 * Copyright 2021 Google LLC
250 *
251 * Licensed under the Apache License, Version 2.0 (the "License");
252 * you may not use this file except in compliance with the License.
253 * You may obtain a copy of the License at
254 *
255 *   http://www.apache.org/licenses/LICENSE-2.0
256 *
257 * Unless required by applicable law or agreed to in writing, software
258 * distributed under the License is distributed on an "AS IS" BASIS,
259 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
260 * See the License for the specific language governing permissions and
261 * limitations under the License.
262 */
263function ue(e){return e&&e._delegate?e._delegate:e}
264/**
265 * @license
266 * Copyright 2025 Google LLC
267 *
268 * Licensed under the Apache License, Version 2.0 (the "License");
269 * you may not use this file except in compliance with the License.
270 * You may obtain a copy of the License at
271 *
272 *   http://www.apache.org/licenses/LICENSE-2.0
273 *
274 * Unless required by applicable law or agreed to in writing, software
275 * distributed under the License is distributed on an "AS IS" BASIS,
276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
277 * See the License for the specific language governing permissions and
278 * limitations under the License.
279 */function ce(e){try{const t=e.startsWith("http://")||e.startsWith("https://")?new URL(e).hostname:e;return t.endsWith(".cloudworkstations.dev")}catch{return!1}}async function de(e){const t=await fetch(e,{credentials:"include"});return t.ok}
280/**
281 * @license
282 * Copyright 2025 Google LLC
283 *
284 * Licensed under the Apache License, Version 2.0 (the "License");
285 * you may not use this file except in compliance with the License.
286 * You may obtain a copy of the License at
287 *
288 *   http://www.apache.org/licenses/LICENSE-2.0
289 *
290 * Unless required by applicable law or agreed to in writing, softw
290are
291 * distributed under the License is distributed on an "AS IS" BASIS,
292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
293 * See the License for the specific language governing permissions and
294 * limitations under the License.
295 */},3490:function(e,t,n){"use strict";var r=n(8908),i=function(e,t){return void 0===t&&(t=!1),function(n,i,o){if(n)e(n);else if(i.statusCode>=400&&i.statusCode<=599){var s=o;if(t)if(r.TextDecoder){var l=a(i.headers&&i.headers["content-type"]);try{s=new TextDecoder(l).decode(o)}catch(u){}}else s=String.fromCharCode.apply(null,new Uint8Array(o));e({cause:s})}else e(null,o)}};function a(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1];return"charset"===r.trim()?i.trim():e}),"utf-8")}e.exports=i},9603:function(e,t,n){"use strict";var r=n(8908),i=n(4863),a=n(7376);c.httpHandler=n(3490);
296/**
297 * @license
298 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
299 * Copyright (c) 2014 David Björklund
300 * Available under the MIT license
301 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
302 */
303var o=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();"undefined"===typeof t[r]?t[r]=i:Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]})),t):t};function s(e,t){for(var n=0;n<e.length;n++)t(e[n])}function l(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function u(e,t,n){var r=e;return a(t)?(n=t,"string"===typeof e&&(r={uri:e})):r=i({},t,{uri:e}),r.callback=n,r}function c(e,t,n){return t=u(e,t,n),d(t)}function d(e){if("undefined"===typeof e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,r,i){t||(t=!0,e.callback(n,r,i))};function r(){4===p.readyState&&setTimeout(s,0)}function i(){var e=void 0;if(e=p.response?p.response:p.responseText||h(p),b)try{e=JSON.parse(e)}catch(t){}return e}function a(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,T)}function s(){if(!d){var t;clearTimeout(f),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var r=T,a=null;return 0!==t?(r={body:i(),statusCode:t,method:v,headers:{},url:m,rawRequest:p},p.getAllResponseHeaders&&(r.headers=o(p.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var u,d,p=e.xhr||null;p||(p=e.cors||e.useXDR?new c.XDomainRequest:new c.XMLHttpRequest);var f,m=p.url=e.uri||e.url,v=p.method=e.method||"GET",g=e.body||e.data,y=p.headers=e.headers||{},_=!!e.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:v,url:m,rawRequest:p};if("json"in e&&!1!==e.json&&(b=!0,y["accept"]||y["Accept"]||(y["Accept"]="application/json"),"GET"!==v&&"HEAD"!==v&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),g=JSON.stringify(!0===e.json?g:e.json))),p.onreadystatechange=r,p.onload=s,p.onerror=a,p.onprogress=function(){},p.onabort=function(){d=!0},p.ontimeout=a,p.open(v,m,!_,e.username,e.password),_||(p.withCredentials=!!e.withCredentials),!_&&e.timeout>0&&(f=setTimeout((function(){if(!d){d=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",a(e)}}),e.timeout)),p.setRequestHeader)for(u in y)y.hasOwnProperty(u)&&p.setRequestHeader(u,y[u]);else if(e.headers&&!l(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"===typeof e.beforeSend&&e.beforeSend(p),p.send(g||null),p}function h(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(n){}return null}function p(){}e.exports=c,e.exports["default"]=c,c.XMLHttpRequest=r.XMLHttpRequest||p,c.XDomainRequest="withCredentials"in new c.XMLHttpRequest?c.XMLHttpRequest:r.XDomainRequest,s(["get","put","post","patch","head","delete"],(function(e){c["delete"===e?"del":e]=function(t,n,r){return n=u(t,n,r),n.method=e.toUpperCase(),d(n)}}))},2262:function(e,t,n){"use strict";n.d(t,{$y:function(){return ke},B:function(){return s},BK:function(){return je},BX:function(){return Pe},Bj:function(){return o},EB:function(){return u},Fl:function(){return Ye},IU:function(){return Ie},Jd:function(){return E},OT:function(){return Te},PG:function(){return Se},SU:function(){return Re},Tn:function(){return Fe},Um:function(){return be},Vh:function(){return qe},WL:function(){return Ve},X$:function(){return M},X3:function(){return Ee},XB:function(){return B},XI:function(){return Ne},Xl:function(){return xe},YL:function(){return Ae},YP:function(){return Qe},ZM:function(){return Be},dq:function(){return $e},fw:function(){return et},iH:function(){return Oe},j:function(){return F},lk:function(){return I},nZ:function(){return l},qj:function(){return _e},qq:function(){return d},yT:function(){return Ce}});var r=n(3577);
304/**
305* @vue/reactivity v3.5.43
306* (c) 2018-present Yuxi (Evan) You and Vue contributors
307* @license MIT
vendor: 5,739 bytes, line 308
308**/let i,a;class o{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!e&&i&&(i.active?(this.parent=i,this.index=(i.scopes||(i.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].pause()}for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes){const n=this.scopes.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}const n=this.effects.slice();for(e=0,t=n.length;e<t;e++)n[e].resume()}}run(e){if(this._active){const t=i;try{return i=this,e()}finally{i=t}}else 0}on(){1===++this._on&&(this.prevScope=i,i=this)}off(){if(this._on>0&&0===--this._on){if(i===this)i=this.prevScope;else{let e=i;while(e){if(e.prevScope===this){e.prevScope=this.prevScope;break}e=e.prevScope}}this.prevScope=void 0}}stop(e){if(this._active){let t,n;for(this._active=!1,t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(this.effects.length=0,t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.cleanups.length=0,this.scopes){const e=this.scopes.slice();for(t=0,n=e.length;t<n;t++)e[t].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0}}}function s(e){return new o(e)}function l(){return i}function u(e,t=!1){i&&i.cleanups.push(e)}const c=new WeakSet;class d{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,i&&(i.active?i.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,c.has(this)&&(c.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||m(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,x(this),y(this);const e=a,t=k;a=this,k=!0;try{return this.fn()}finally{0,_(this),a=e,k=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)w(e);this.deps=this.depsTail=void 0,x(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?c.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){b(this)&&this.run()}get dirty(){return b(this)}}let h,p,f=0;function m(e,t=!1){if(e.flags|=8,t)return e.next=p,void(p=e);e.next=h,h=e}function v(){f++}function g(){if(--f>0)return;if(p){let e=p;p=void 0;while(e){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;while(h){let n=h;h=void 0;while(n){const r=n.next;if(n.next=void 0,n.flags&=-9,1&n.flags)try{n.trigger()}catch(t){e||(e=t)}n=r}}if(e)throw e}function y(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function _(e){let t,n=e.depsTail,r=n;while(r){const e=r.prevDep;-1===r.version?(r===n&&(n=e),w(r),S(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=e}e.deps=t,e.depsTail=n}function b(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(T(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function T(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===A)return;if(e.globalVersion=A,!e.isSSR&&128&e.flags&&(!e.deps&&!e._dirty||!b(e)))return;e.flags|=2;const t=e.dep,n=a,i=k;a=e,k=!0;try{y(e);const o=e.fn(e._value);(0===t.version||(0,r.aU)(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{a=n,k=i,_(e),e.flags&=-3}}function w(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)w(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function S(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let k=!0;const C=[];function E(){C.push(k),k=!1}function I(){const e=C.pop();k=void 0===e||e}function x(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=a;a=void 0;try{t()}finally{a=e}}}let A=0;class P{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ${constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(e){if(!a||!k||a===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==a)t=this.activeLink=new P(a,this),a.deps?(t.prevDep=a.depsTail,a.depsTail.nextDep=t,a.depsTail=t):a.deps=a.depsTail=t,O(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=a.depsTail,t.nextDep=void 0,a.depsTail.nextDep=t,a.depsTail=t,a.deps===t&&(a.deps=e)}return t}trigger(e){this.version++,A++,this.notify(e)}notify(e){v();try{0;for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{g()}}}function O(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)O(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const N=new WeakMap,L=Symbol(""),D=Symbol(""),R=Symbol("");function F(e,t,n){if(k&&a){let t=N.get(e);t||N.set(e,t=new Map);let r=t.get(n);r||(t.set(n,r=new $),r.map=t,r.key=n),r.track()}}function M(e,t,n,i,a,o){const s=N.get(e);if(!s)return void A++;const l=e=>{e&&e.trigger()};if(v(),"clear"===t)s.forEach(l);else{const a=(0,r.kJ)(e),o=a&&(0,r.S0)(n);if(a&&"length"===n){const e=Number(i);
308s.forEach(((t,n)=>{("length"===n||n===R||!(0,r.yk)(n)&&n>=e)&&l(t)}))}else switch((void 0!==n||s.has(void 0))&&l(s.get(n)),o&&l(s.get(R)),t){case"add":a?o&&l(s.get("length")):(l(s.get(L)),(0,r._N)(e)&&l(s.get(D)));break;case"delete":a||(l(s.get(L)),(0,r._N)(e)&&l(s.get(D)));break;case"set":(0,r._N)(e)&&l(s.get(L));break}}g()}function V(e,t){const n=N.get(e);return n&&n.get(t)}function U(e){const t=Ie(e);return t===e?t:(F(t,"iterate",R),Ce(e)?t:ke(e)?Se(e)?t.map((e=>Pe(Ae(e)))):t.map(Pe):t.map(Ae))}function B(e){return F(e=Ie(e),"iterate",R),e}function j(e,t){return ke(e)?Se(e)?Pe(Ae(t)):Pe(t):Ae(t)}const W={__proto__:null,[Symbol.iterator](){return H(this,Symbol.iterator,(e=>j(this,e)))},concat(...e){return U(this).concat(...e.map((e=>(0,r.kJ)(e)?U(e):e)))},entries(){return H(this,"entries",(e=>(e[1]=j(this,e[1]),e)))},every(e,t){return G(this,"every",e,t,void 0,arguments)},filter(e,t){return G(this,"filter",e,t,(e=>e.map((e=>j(this,e)))),arguments)},find(e,t){return G(this,"find",e,t,(e=>j(this,e)),arguments)},findIndex(e,t){return G(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return G(this,"findLast",e,t,(e=>j(this,e)),arguments)},findLastIndex(e,t){return G(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return G(this,"forEach",e,t,void 0,arguments)},includes(...e){return Y(this,"includes",e)},indexOf(...e){return Y(this,"indexOf",e)},join(e){return U(this).join(e)},lastIndexOf(...e){return Y(this,"lastIndexOf",e)},map(e,t){return G(this,"map",e,t,void 0,arguments)},pop(){return K(this,"pop")},push(...e){return K(this,"push",e)},reduce(e,...t){return z(this,"reduce",e,t)},reduceRight(e,...t){return z(this,"reduceRight",e,t)},shift(){return K(this,"shift")},some(e,t){return G(this,"some",e,t,void 0,arguments)},splice(...e){return K(this,"splice",e)},toReversed(){return U(this).toReversed()},toSorted(e){return U(this).toSorted(e)},toSpliced(...e){return U(this).toSpliced(...e)},unshift(...e){return K(this,"unshift",e)},values(){return H(this,"values",(e=>j(this,e)))}};function H(e,t,n){const r=B(e),i=r[t]();return r===e||Ce(e)||(i._next=i.next,i.next=()=>{const e=i._next();return e.done||(e.value=n(e.value)),e}),i}const q=Array.prototype;function G(e,t,n,r,i,a){const o=B(e),s=o!==e&&!Ce(e),l=o[t];if(l!==q[t]){const t=l.apply(e,a);return s?Ae(t):t}let u=n;o!==e&&(s?u=function(t,r){return n.call(this,j(e,t),r,e)}:n.length>2&&(u=function(t,r){return n.call(this,t,r,e)}));const c=l.call(o,u,r);return s&&i?i(c):c}function z(e,t,n,r){const i=B(e),a=i!==e&&!Ce(e);let o=n,s=!1;i!==e&&(a?(s=0===r.length,o=function(t,r,i){return s&&(s=!1,t=j(e,t)),n.call(this,t,j(e,r),i,e)}):n.length>3&&(o=function(t,r,i){return n.call(this,t,r,i,e)}));const l=i[t](o,...r);return s?j(e,l):l}function Y(e,t,n){const r=Ie(e);F(r,"iterate",R);const i=r[t](...n);return-1!==i&&!1!==i||!Ee(n[0])?i:(n[0]=Ie(n[0]),r[t](...n))}function K(e,t,n=[]){E(),v();const r=Ie(e)[t].apply(e,n);return g(),I(),r}const X=(0,r.fY)("__proto__,__v_isRef,__isVue"),J=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(r.yk));function Z(e){(0,r.yk)(e)||(e=String(e));const t=Ie(this);return F(t,"has",e),t.hasOwnProperty(e)}class Q{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e["__v_skip"];const i=this._isReadonly,a=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return a;
308if("__v_raw"===t)return n===(i?a?ge:ve:a?me:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=(0,r.kJ)(e);if(!i){let e;if(o&&(e=W[t]))return e;if("hasOwnProperty"===t)return Z}const s=Reflect.get(e,t,$e(e)?e:n);if((0,r.yk)(t)?J.has(t):X(t))return s;if(i||F(e,"get",t),a)return s;if($e(s)){const e=o&&(0,r.S0)(t)?s:s.value;return i&&(0,r.Kn)(e)?Te(e):e}return(0,r.Kn)(s)?i?Te(s):_e(s):s}}class ee extends Q{constructor(e=!1){super(!1,e)}set(e,t,n,i){let a=e[t];const o=(0,r.kJ)(e)&&(0,r.S0)(t);if(!this._isShallow){const e=ke(a);if(Ce(n)||ke(n)||(a=Ie(a),n=Ie(n)),!o&&$e(a)&&!$e(n))return e||(a.value=n),!0}const s=o?Number(t)<e.length:(0,r.RI)(e,t),l=Reflect.set(e,t,n,$e(e)?e:i);return e===Ie(i)&&l&&(s?(0,r.aU)(n,a)&&M(e,"set",t,n,a):M(e,"add",t,n)),l}deleteProperty(e,t){const n=(0,r.RI)(e,t),i=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&M(e,"delete",t,void 0,i),a}has(e,t){const n=Reflect.has(e,t);return(0,r.yk)(t)&&J.has(t)||F(e,"has",t),n}ownKeys(e){return F(e,"iterate",(0,r.kJ)(e)?"length":L),Reflect.ownKeys(e)}}class te extends Q{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const ne=new ee,re=new te,ie=new ee(!0),ae=e=>e,oe=e=>Reflect.getPrototypeOf(e);function se(e,t,n){return function(...i){const a=this["__v_raw"],o=Ie(a),s=(0,r._N)(o),l="entries"===e||e===Symbol.iterator&&s,u="keys"===e&&s,c=a[e](...i),d=n?ae:t?Pe:Ae;return!t&&F(o,"iterate",u?D:L),(0,r.l7)(Object.create(c),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}}})}}function le(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function ue(e,t){const n={get(n){const i=this["__v_raw"],a=Ie(i),o=Ie(n);e||((0,r.aU)(n,o)&&F(a,"get",n),F(a,"get",o));const{has:s}=oe(a),l=t?ae:e?Pe:Ae;return s.call(a,n)?l(i.get(n)):s.call(a,o)?l(i.get(o)):void(i!==a&&i.get(n))},get size(){const t=this["__v_raw"];return!e&&F(Ie(t),"iterate",L),t.size},has(t){const n=this["__v_raw"],i=Ie(n),a=Ie(t);return e||((0,r.aU)(t,a)&&F(i,"has",t),F(i,"has",a)),t===a?n.has(t):n.has(t)||n.has(a)},forEach(n,r){const i=this,a=i["__v_raw"],o=Ie(a),s=t?ae:e?Pe:Ae;return!e&&F(o,"iterate",L),a.forEach(((e,t)=>n.call(r,s(e),s(t),i)))}};(0,r.l7)(n,e?{add:le("add"),set:le("set"),delete:le("delete"),clear:le("clear")}:{add(e){const n=Ie(this),i=oe(n),a=Ie(e),o=t||Ce(e)||ke(e)?e:a,s=i.has.call(n,o)||(0,r.aU)(e,o)&&i.has.call(n,e)||(0,r.aU)(a,o)&&i.has.call(n,a);return s||(n.add(o),M(n,"add",o,o)),this},set(e,n){t||Ce(n)||ke(n)||(n=Ie(n));const i=Ie(this),{has:a,get:o}=oe(i);let s=a.call(i,e);s||(e=Ie(e),s=a.call(i,e));const l=o.call(i,e);return i.set(e,n),s?(0,r.aU)(n,l)&&M(i,"set",e,n,l):M(i,"add",e,n),this},delete(e){const t=Ie(this),{has:n,get:r}=oe(t);let i=n.call(t,e);i||(e=Ie(e),i=n.call(t,e));const a=r?r.call(t,e):void 0,o=t.delete(e);return i&&M(t,"delete",e,void 0,a),o},clear(){const e=Ie(this),t=0!==e.size,n=void 0,r=e.clear();return t&&M(e,"clear",void 0,void 0,n),r}});const i=["keys","values","entries",Symbol.iterator];return i.forEach((r=>{n[r]=se(r,e,t)})),n}function ce(e,t){const n=ue(e,t);return(t,i,a)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get((0,r.RI)(n,i)&&i in t?n:t,i,a)}const de={get:ce(!1,!1)},he={get:ce(!1,!0)},pe={get:ce(!0,!1)};const fe=new WeakMap,me=new WeakMap,ve=new WeakMap,ge=new WeakMap;function ye(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function _e(e){return ke(e)?e:we(e,!1,ne,de,fe)}function be(e){return we(e,!1,ie,he,me)}function Te(e){return we(e,!0,re,pe,ve)}function we(e,t,n,i,a){if(!(0,r.Kn)(e))return e;if(e["__v_raw"]&&(!t||!e["__v_isReactive"]))return e;if(e["__v_skip"]||!Object.isExtensible(e))return e;const o=a.get(e);if(o)return o;const s=ye((0,r.W7)(e));if(0===s)return e;const l=new Proxy(e,2===s?i:n);return a.set(e,l),l}function Se(e){return ke(e)?Se(e["__v_raw"]):!(!e||!e["__v_isReactive"])}function ke(e){return!(!e||!e["__v_isReadonly"])}function Ce(e){return!(!e||!e["__v_isShallow"])}function Ee(e){return!!e&&!!e["__v_raw"]}function Ie(e){const t=e&&e["__v_raw"];return t?Ie(t):e}function xe(e){return!(0,r.RI)(e,"__v_skip")&&Object.isExtensible(e)&&(0,r.Nj)(e,"__v_skip",!0),e}const Ae=e=>(0,r.Kn)(e)?_e(e):e,Pe=e=>(0,r.Kn)(e)?Te(e):e;function $e(e){return!!e&&!0===e["__v_isRef"]}function Oe(e){return Le(e,!1)}function Ne(e){return Le(e,!0)}function Le(e,t){return $e(e)?e:new De(e,t)}class De{constructor(e,t){this.dep=new $,this["__v_isRef"]=!0,this["__v_isShallow"]=!1,this._rawValue=t?e:Ie(e),this._value=t?e:Ae(e),this["__v_isShallow"]=t}get value(){return this.dep.track(),this._value}set value(e){const t=this._rawValue,n=this["__v_isShallow"]||Ce(e)||ke(e);e=n?e:Ie(e),(0,r.aU)(e,t)&&(this._rawValue=e,this._value=n?e:Ae(e),this.dep.trigger())}}function Re(e){return $e(e)?e.value:e}function Fe(e){return(0,r.mf)(e)?e():Re(e)}const Me={get:(e,t,n)=>"__v_raw"===t?e:Re(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return $e(i)&&!$e(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ve(e){return Se(e)?e:new Proxy(e,Me)}
308class Ue{constructor(e){this["__v_isRef"]=!0,this._value=void 0;const t=this.dep=new $,{get:n,set:r}=e(t.track.bind(t),t.trigger.bind(t));this._get=n,this._set=r}get value(){return this._value=this._get()}set value(e){this._set(e)}}function Be(e){return new Ue(e)}function je(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Ge(e,n);return t}class We{constructor(e,t,n){this._object=e,this._defaultValue=n,this["__v_isRef"]=!0,this._value=void 0,this._key=(0,r.yk)(t)?t:String(t),this._raw=Ie(e);let i=!0,a=e;if(!(0,r.kJ)(e)||(0,r.yk)(this._key)||!(0,r.S0)(this._key))do{i=!Ee(a)||Ce(a)}while(i&&(a=a["__v_raw"]));this._shallow=i}get value(){let e=this._object[this._key];return this._shallow&&(e=Re(e)),this._value=void 0===e?this._defaultValue:e}set value(e){if(this._shallow&&$e(this._raw[this._key])){const t=this._object[this._key];if($e(t))return void(t.value=e)}this._object[this._key]=e}get dep(){return V(this._raw,this._key)}}class He{constructor(e){this._getter=e,this["__v_isRef"]=!0,this["__v_isReadonly"]=!0,this._value=void 0}get value(){return this._value=this._getter()}}function qe(e,t,n){return $e(e)?e:(0,r.mf)(e)?new He(e):(0,r.Kn)(e)&&arguments.length>1?Ge(e,t,n):Oe(e)}function Ge(e,t,n){return new We(e,t,n)}class ze{constructor(e,t,n){this.fn=e,this.setter=t,this._value=void 0,this.dep=new $(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=A-1,this.next=void 0,this.effect=this,this["__v_isReadonly"]=!t,this.isSSR=n}notify(){if(this.flags|=16,!(8&this.flags||a===this))return m(this,!0),!0}get value(){const e=this.dep.track();return T(this),e&&(e.version=this.dep.version),this._value}set value(e){this.setter&&this.setter(e)}}function Ye(e,t,n=!1){let i,a;(0,r.mf)(e)?i=e:(i=e.get,a=e.set);const o=new ze(i,a,n);return o}const Ke={},Xe=new WeakMap;let Je;function Ze(e,t=!1,n=Je){if(n){let t=Xe.get(n);t||Xe.set(n,t=[]),t.push(e)}else 0}function Qe(e,t,n=r.kT){const{immediate:i,deep:a,once:o,scheduler:s,augmentJob:u,call:c}=n,h=e=>a?e:Ce(e)||!1===a||0===a?et(e,1):et(e);let p,f,m,v,g=!1,y=!1;if($e(e)?(f=()=>e.value,g=Ce(e)):Se(e)?(f=()=>h(e),g=!0):(0,r.kJ)(e)?(y=!0,g=e.some((e=>Se(e)||Ce(e))),f=()=>e.map((e=>$e(e)?e.value:Se(e)?h(e):(0,r.mf)(e)?c?c(e,2):e():void 0))):f=(0,r.mf)(e)?t?c?()=>c(e,2):e:()=>{if(m){E();try{m()}finally{I()}}const t=Je;Je=p;try{return c?c(e,3,[v]):e(v)}finally{Je=t}}:r.dG,t&&a){const e=f,t=!0===a?1/0:a;f=()=>et(e(),t)}const _=l(),b=()=>{p.stop(),_&&_.active&&(0,r.Od)(_.effects,p)};if(o&&t){const e=t;t=(...t)=>{const n=e(...t);return b(),n}}let T=y?new Array(e.length).fill(Ke):Ke;const w=e=>{if(1&p.flags&&(p.dirty||e))if(t){const n=p.run();if(e||a||g||(y?n.some(((e,t)=>(0,r.aU)(e,T[t]))):(0,r.aU)(n,T))){m&&m();const e=Je;Je=p;try{const r=[n,T===Ke?void 0:y&&T[0]===Ke?[]:T,v];T=n,c?c(t,3,r):t(...r)}finally{Je=e}}}else p.run()};return u&&u(w),p=new d(f),p.scheduler=s?()=>s(w,!1):w,v=e=>Ze(e,!1,p),m=p.onStop=()=>{const e=Xe.get(p);if(e){if(c)c(e,4);else for(const t of e)t();Xe.delete(p)}},t?i?w(!0):T=p.run():s?s(w.bind(null,!0),!0):p.run(),b.pause=p.pause.bind(p),b.resume=p.resume.bind(p),b.stop=b,b}function et(e,t=1/0,n){if(t<=0||!(0,r.Kn)(e)||e["__v_skip"])return e;if(n=n||new Map,(n.get(e)||0)>=t)return e;if(n.set(e,t),t--,$e(e))et(e.value,t,n);else if((0,r.kJ)(e))for(let r=0;r<e.length;r++)et(e[r],t,n);else if((0,r.DM)(e)||(0,r._N)(e))e.forEach((e=>{et(e,t,n)}));else if((0,r.PO)(e)){for(const r in e)et(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&et(e[r],t,n)}return e}},6252:function(e,t,n){"use strict";n.d(t,{$d:function(){return o},Ah:function(){return He},F4:function(){return Wn},FN:function(){return nr},Fl:function(){return br},HY:function(){return Sn},Ho:function(){return Hn},JJ:function(){return O},Jd:function(){return We},Ko:function(){return rt},LL:function(){return Qe},Me:function(){return ye},P$:function(){return ce},Q2:function(){return et},Q6:function(){return ve},RC:function(){return Ie},U2:function(){return he},Uk:function(){return qn},Us:function(){return dn},Vf:function(){return dt},WI:function(){return it},Wm:function(){return Bn},Xn:function(){return Be},Y3:function(){return v},Y8:function(){return ie},YP:function(){return M},ZK:function(){return Sr},_:function(){return Un},aZ:function(){return ge},bv:function(){return Ue},dG:function(){return Xn},dl:function(){return $e},f3:function(){return N},h:function(){return Tr},iD:function(){return Ln},ic:function(){return je},j4:function(){return Dn},kq:function(){return Gn},lA:function(){return Rn},lR:function(){return Q},m0:function(){return R},nJ:function(){return oe},nK:function(){return me},se:function(){return Oe},sv:function(){return Cn},tT:function(){return $t},up:function(){return Je},w5:function(){return A},wF:function(){return Ve},wg:function(){return An},wy:function(){return P},xv:function(){return kn}});var r=n(2262),i=n(3577);function a(e,t,n,r){try{return r?e(...r):e()}catch(i){s(i,t,n)}}function o(e,t,n,r){if((0,i.mf)(e)){const o=a(e,t,n,r);return o&&(0,i.tI)(o)&&o.catch((e=>{s(e,t,n)})),o}if((0,i.kJ)(e)){const i=[];for(let a=0;a<e.length;a++)i.push(o(e[a],t,n,r));return i}}function s(e,t,n,o=!0){const s=t?t.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:c}=t&&t.appContext.config||i.kT;if(t){let i=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;while(i){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,s))return;i=i.parent}if(u)return(0,r.Jd)(),a(u,null,10,[e,o,s]),void(0,r.lk)()}l(e,n,s,o,c)}function l(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const u=[];let c=-1;const d=[];let h=null,p=0;const f=Promise.resolve();let m=null;function v(e){const t=m||f;return e?t.then(this?e.bind(this):e):t}function g(e){let t=c+1,n=u.length;while(t<n){const r=t+n>>>1,i=u[r],a=S(i);a<e||a===e&&2&i.flags?t=r+1:n=r}return t}function y(e){if(!(1&e.flags)){const t=S(e),n=u[u.length-1];!n||!(2&e.flags)&&t>=S(n)?u.push(e):u.splice(g(t),0,e),e.flags|=1,_()}}function _(){m||(m=f.then(k))}function b(e){if((0,i.kJ)(e))for(let t=0;t<e.length;t++)d.push(e[t]);else h&&-1===e.id?h.splice(p+1,0,e):1&e.flags||(d.push(e),e.flags|=1);_()}function T(e,t,n=c+1){for(0;n<u.length;n++){const t=u[n];if(t&&2&t.flags){if(e&&t.id!==e.uid)continue;0,u.splice(n,1),n--,4&t.flags&&(t.flags&=-2),t(),4&t.flags||(t.flags&=-2)}}}function w(e){if(d.length){const e=[...new Set(d)].sort(((e,t)=>S(e)-S(t)));if(d.length=0,h){for(let t=0;t<e.length;t++)h.push(e[t]);return}for(h=e,p=0;p<h.length;p++){const e=h[p];0,4&e.flags&&(e.flags&=-2),8&e.flags||e(),e.flags&=-2}h=null,p=0}}const S=e=>null==e.id?2&e.flags?-1:1/0:e.id;function k(e){i.dG;
308try{for(c=0;c<u.length;c++){const e=u[c];!e||8&e.flags||(4&e.flags&&(e.flags&=-2),a(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2))}}finally{for(;c<u.length;c++){const e=u[c];e&&(e.flags&=-2)}c=-1,u.length=0,w(e),m=null,(u.length||d.length)&&k(e)}}let C=!1;let E=null,I=null;function x(e){const t=E;return E=e,I=e&&e.type.__scopeId||null,t}function A(e,t=E,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&On(-1);const i=x(t),a=In.length;let o;try{o=e(...n)}finally{for(let e=In.length;e>a;e--)Pn();x(i),r._d&&On(1)}return o};return r._n=!0,r._c=!0,r._d=!0,r}function P(e,t){if(null===E)return e;const n=gr(E),a=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[e,s,l,u=i.kT]=t[o];e&&((0,i.mf)(e)&&(e={mounted:e,updated:e}),e.deep&&(0,r.fw)(s),a.push({dir:e,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return e}function $(e,t,n,i){const a=e.dirs,s=t&&t.dirs;for(let l=0;l<a.length;l++){const u=a[l];s&&(u.oldValue=s[l].value);let c=u.dir[i];c&&((0,r.Jd)(),o(c,n,8,[e.el,u,e,t]),(0,r.lk)())}}function O(e,t){if(tr){let n=tr.provides;const r=tr.parent&&tr.parent.provides;r===n&&(n=tr.provides=Object.create(r)),n[e]=t}}function N(e,t,n=!1){const r=nr();if(r||Pt){let a=Pt?Pt._context.provides:r?null==r.parent||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(a&&e in a)return a[e];if(arguments.length>1)return n&&(0,i.mf)(t)?t.call(r&&r.proxy):t}else 0}const L=Symbol.for("v-scx"),D=()=>{{const e=N(L);return e}};function R(e,t){return V(e,null,t)}function F(e,t){return V(e,null,{flush:"sync"})}function M(e,t,n){return V(e,t,n)}function V(e,t,n=i.kT){const{immediate:a,deep:s,flush:l,once:u}=n;const c=(0,i.l7)({},n);const d=t&&a||!t&&"post"!==l;let h;if(cr)if("sync"===l){const e=D();h=e.__watcherHandles||(e.__watcherHandles=[])}else if(!d){const e=()=>{};return e.stop=i.dG,e.resume=i.dG,e.pause=i.dG,e}const p=tr;c.call=(e,t,n)=>o(e,p,t,n);let f=!1;
308"post"===l?c.scheduler=e=>{cn(e,p&&p.suspense)}:"sync"!==l&&(f=!0,c.scheduler=(e,t)=>{t?e():y(e)}),c.augmentJob=e=>{t&&(e.flags|=4),f&&(e.flags|=2,p&&(e.id=p.uid,e.i=p))};const m=(0,r.YP)(e,t,c);return cr&&(h?h.push(m):d&&m()),m}function U(e,t,n){const r=this.proxy,a=(0,i.HD)(e)?e.includes(".")?B(r,e):()=>r[e]:e.bind(r,r);let o;(0,i.mf)(t)?o=t:(o=t.handler,n=t);const s=ar(this),l=V(a,o.bind(r),n);return s(),l}function B(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}const j=new WeakMap,W=Symbol("_vte"),H=e=>e.__isTeleport,q=e=>e&&(e.disabled||""===e.disabled),G=e=>e&&(e.defer||""===e.defer),z=e=>"undefined"!==typeof SVGElement&&e instanceof SVGElement,Y=e=>"function"===typeof MathMLElement&&e instanceof MathMLElement,K=(e,t)=>{const n=e&&e.to;if((0,i.HD)(n)){if(t){const e=t(n);return e}return null}return n},X={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,a,o,s,l,u){const{mc:c,pc:d,pbc:h,o:{insert:p,querySelector:f,createText:m,createComment:v,parentNode:g}}=u,y=q(t.props);let{dynamicChildren:_}=t;const b=(e,t,n)=>{16&e.shapeFlag&&c(e.children,t,n,i,a,o,s,l)},T=(e=t)=>{const n=q(e.props),r=e.target=K(e.props,f),a=te(r,e,m,p);r&&("svg"!==o&&z(r)?o="svg":"mathml"!==o&&Y(r)&&(o="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(r),n||(b(e,r,a),ee(e,!1)))},w=e=>{const t=()=>{if(j.get(e)===t){if(j.delete(e),q(e.props)){const t=g(e.el)||n;b(e,t,e.anchor),ee(e,!0)}T(e)}};j.set(e,t),cn(t,a)};if(null==e){const e=t.el=m(""),i=t.anchor=m("");if(p(e,n,r),p(i,n,r),G(t.props)||a&&a.pendingBranch)return void w(t);y&&(b(t,n,i),ee(t,!0)),T()}else{t.el=e.el;const r=t.anchor=e.anchor,c=j.get(e);if(c)return c.flags|=8,j.delete(e),void w(t);t.targetStart=e.targetStart;const p=t.target=e.target,m=t.targetAnchor=e.targetAnchor,v=q(e.props),g=v?n:p,b=v?r:m;if("svg"===o||z(p)?o="svg":("mathml"===o||Y(p))&&(o="mathml"),_?(h(e.dynamicChildren,_,g,i,a,o,s),vn(e,t,!0)):l||d(e,t,g,b,i,a,o,s,!1),y)v?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):J(t,n,r,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=K(t.props,f);e&&(t.target=e,J(t,e,null,u,0))}else v&&J(t,p,m,u,1);ee(t,y)}},remove(e,t,n,{um:r,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:d,props:h}=e,p=q(h),f=a||!p,m=j.get(e);if(m&&(m.flags|=8,j.delete(e)),d&&(i(u),i(c)),a&&i(l),!m&&(p||d)&&16&o)for(let v=0;v<s.length;v++){const e=s[v];r(e,t,n,f,!!e.dynamicChildren)}},move:J,hydrate:Z};function J(e,t,n,{o:{insert:r},m:i},a=2){0===a&&r(e.targetAnchor,t,n);const{el:o,anchor:s,shapeFlag:l,children:u,props:c}=e,d=2===a;if(d&&r(o,t,n),!j.has(e)&&(!d||q(c))&&16&l)for(let h=0;h<u.length;h++)i(u[h],t,n,2);d&&r(s,t,n)}function Z(e,t,n,r,i,a,{o:{nextSibling:o,parentNode:s,querySelector:l,insert:u,createText:c}},d){function h(e,n){let r=n;while(r){if(r&&8===r.nodeType)if("teleport start anchor"===r.data)t.targetStart=r;else if("teleport anchor"===r.data){t.targetAnchor=r,e._lpa=t.targetAnchor&&o(t.targetAnchor);break}r=o(r)}}function p(e,t){t.anchor=d(o(e),t,s(e),n,r,i,a)}const f=t.target=K(t.props,l),m=q(t.props);if(f){const l=f._lpa||f.firstChild;16&t.shapeFlag&&(m?(p(e,t),h(f,l),t.targetAnchor||te(f,t,c,u,s(e)===f?e:null)):(t.anchor=o(e),h(f,l),t.targetAnchor||te(f,t,c,u),d(l&&o(l),t,f,n,r,i,a))),ee(t,m)}else m&&16&t.shapeFlag&&(p(e,t),t.targetStart=e,t.targetAnchor=o(e));return t.anchor&&o(t.anchor)}const Q=X;function ee(e,t){const n=e.ctx;if(n&&n.ut){let r,i;t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);while(r&&r!==i)1===r.nodeType&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function te(e,t,n,r,i=null){const a=t.targetStart=n(""),o=t.targetAnchor=n("");return a[W]=o,e&&(r(a,e,i),r(o,e,i)),o}const ne=Symbol("_leaveCb"),re=Symbol("_enterCb");function ie(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ue((()=>{e.isMounted=!0})),We((()=>{e.isUnmounting=!0})),e}const ae=[Function,Array],oe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ae,onEnter:ae,onAfterEnter:ae,onEnterCancelled:ae,onBeforeLeave:ae,onLeave:ae,onAfterLeave:ae,onLeaveCancelled:ae,onBeforeAppear:ae,onAppear:ae,onAfterAppear:ae,onAppearCancelled:ae},se=e=>{const t=e.subTree;return t.component?se(t.component):t},le={name:"BaseTransition",props:oe,setup(e,{slots:t}){const n=nr(),i=ie();return()=>{const a=t.default&&ve(t.default(),!0),o=a&&a.length?ue(a):n.subTree?Gn():void 0;if(!o)return;const s=(0,r.IU)(e),{mode:l}=s;if(i.isLeaving)return pe(o);const u=fe(o);if(!u)return pe(o);let c=he(u,s,i,n,(e=>c=e));u.type!==Cn&&me(u,c);let d=n.subTree&&fe(n.subTree);if(d&&d.type!==Cn&&!Fn(d,u)&&se(n).type!==Cn){let e=he(d,s,i,n);if(me(d,e),"out-in"===l&&u.type!==Cn)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,8&n.job.flags||n.update(),delete e.afterLeave,d=void 0},pe(o);
308"in-out"===l&&u.type!==Cn?e.delayLeave=(e,t,n)=>{const r=de(i,d);r[String(d.key)]=d,e[ne]=()=>{t(),e[ne]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{n(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};function ue(e){let t=e[0];if(e.length>1){let n=!1;for(const r of e)if(r.type!==Cn){0,t=r,n=!0;break}}return t}const ce=le;function de(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function he(e,t,n,r,a){const{appear:s,mode:l,persisted:u=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:f,onLeave:m,onAfterLeave:v,onLeaveCancelled:g,onBeforeAppear:y,onAppear:_,onAfterAppear:b,onAppearCancelled:T}=t,w=String(e.key),S=de(n,e),k=(e,t)=>{e&&o(e,r,9,t)},E=(e,t)=>{const n=t[1];k(e,t),(0,i.kJ)(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},I={mode:l,persisted:u,beforeEnter(t){let r=c;if(!n.isMounted){if(!s)return;r=y||c}t[ne]&&t[ne](!0);const i=S[w];i&&Fn(e,i)&&i.el[ne]&&i.el[ne](),k(r,[t])},enter(t){if(!C&&S[w]===e)return;let r=d,i=h,a=p;if(!n.isMounted){if(!s)return;r=_||d,i=b||h,a=T||p}let o=!1;t[re]=e=>{o||(o=!0,k(e?a:i,[t]),I.delayedLeave&&I.delayedLeave(),t[re]=void 0)};const l=t[re].bind(null,!1);r?E(r,[t,l]):l()},leave(t,r){const i=String(e.key);if(t[re]&&t[re](!0),n.isUnmounting)return r();k(f,[t]);let a=!1;t[ne]=n=>{a||(a=!0,r(),k(n?g:v,[t]),t[ne]=void 0,S[i]===e&&delete S[i])};const o=t[ne].bind(null,!1);S[i]=e,m?E(m,[t,o]):o()},clone(e){const i=he(e,t,n,r,a);return a&&a(i),i}};return I}function pe(e){if(Ae(e))return e=Hn(e),e.children=null,e}function fe(e){if(!Ae(e))return H(e.type)&&e.children?ue(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(16&t)return n[0];if(32&t&&(0,i.mf)(n.default))return n.default()}}function me(e,t){if(6&e.shapeFlag&&e.component){e.transition=t;const n=e.component.subTree;me(H(n.type)&&fe(n)||n,t)}else 128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ve(e,t=!1,n){let r=[],i=0;for(let a=0;a<e.length;a++){let o=e[a];const s=null==n?o.key:String(n)+String(null!=o.key?o.key:a);o.type===Sn?(128&o.patchFlag&&i++,r=r.concat(ve(o.children,t,s))):(t||o.type!==Cn)&&r.push(null!=s?Hn(o,{key:s}):o)}if(i>1)for(let a=0;a<r.length;a++)r[a].patchFlag=-2;return r}function ge(e,t){return(0,i.mf)(e)?(()=>(0,i.l7)({name:e.name},t,{setup:e}))():e}function ye(){const e=nr();return e?(e.appContext.config.idPrefix||"v")+"-"+e.ids[0]+e.ids[1]++:""}function _e(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function be(e,t){let n;return!(!(n=Object.getOwnPropertyDescriptor(e,t))||n.configurable)}const Te=new WeakMap;function we(e,t,n,o,s=!1){if((0,i.kJ)(e))return void e.forEach(((e,r)=>we(e,t&&((0,i.kJ)(t)?t[r]:t),n,o,s)));if(Ee(o)&&!s)return void(512&o.shapeFlag&&o.type.__asyncResolved&&o.component.subTree.component&&we(e,t,n,o.component.subTree));const l=4&o.shapeFlag?gr(o.component):o.el,u=s?null:l,{i:c,r:d}=e;const h=t&&t.r,p=c.refs===i.kT?c.refs={}:c.refs,f=c.setupState,m=(0,r.IU)(f),v=f===i.kT?i.NO:e=>!be(p,e)&&(0,i.RI)(m,e),g=(e,t)=>!t||!be(p,t);if(null!=h&&h!==d)if(Se(t),(0,i.HD)(h))p[h]=null,v(h)&&(f[h]=null);else if((0,r.dq)(h)){const e=t;g(h,e.k)&&(h.value=null),e.k&&(p[e.k]=null)}if((0,i.mf)(d))a(d,c,12,[u,p]);else{const t=(0,i.HD)(d),a=(0,r.dq)(d);if(t||a){const r=()=>{if(e.f){const n=t?v(d)?f[d]:p[d]:g(d)||!e.k?d.value:p[e.k];if(s)(0,i.kJ)(n)&&(0,i.Od)(n,l);else if((0,i.kJ)(n))n.includes(l)||n.push(l);else if(t)p[d]=[l],v(d)&&(f[d]=p[d]);else{const t=[l];g(d,e.k)&&(d.value=t),e.k&&(p[e.k]=t)}}else t?(p[d]=u,v(d)&&(f[d]=u)):a&&(g(d,e.k)&&(d.value=u),e.k&&(p[e.k]=u))};if(u){const t=()=>{r(),Te.delete(e)};t.id=-1,Te.set(e,t),cn(t,n)}else Se(e),r()}else 0}}function Se(e){const t=Te.get(e);t&&(t.flags|=8,Te.delete(e))}const ke=e=>8===e.nodeType;(0,i.E9)().requestIdleCallback,(0,i.E9)().cancelIdleCallback;function Ce(e,t){if(ke(e)&&"["===e.data){let n=1,r=e.nextSibling;while(r){if(1===r.nodeType){const e=t(r);if(!1===e)break}else if(ke(r))if("]"===r.data){if(0===--n)break}else"["===r.data&&n++;r=r.nextSibling}}else t(e)}const Ee=e=>!!e.type.__asyncLoader;function Ie(e){(0,i.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:o=200,hydrate:l,timeout:u,suspensible:c=!0,onError:d}=e;let h,p=null,f=0;const m=()=>(f++,p=null,v()),v=()=>{let e;return p||(e=p=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),d)return new Promise(((t,n)=>{const r=()=>t(m()),i=()=>n(e);d(e,r,i,f+1)}));throw e})).then((t=>
308e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),h=t,t))))};return ge({name:"AsyncComponentWrapper",__asyncLoader:v,__asyncHydrate(e,t,n){const r=e.isConnected;let i=!1;(t.bu||(t.bu=[])).push((()=>i=!0));const a=()=>{i||!e.parentNode||r&&!e.isConnected||n()},o=l?()=>{const n=l(a,(t=>Ce(e,t)));n&&(t.bum||(t.bum=[])).push(n)}:a;h?o():v().then((()=>!t.isUnmounted&&o()))},get __asyncResolved(){return h},setup(){const e=tr;if(_e(e),h)return()=>xe(h,e);const t=t=>{p=null,s(t,e,13,!a)};if(c&&e.suspense||cr)return v().then((t=>()=>xe(t,e))).catch((e=>(t(e),()=>a?Bn(a,{error:e}):null)));const i=(0,r.iH)(!1),l=(0,r.iH)(),d=(0,r.iH)(!!o);let f,m;return He((()=>{null!=f&&clearTimeout(f),null!=m&&clearTimeout(m)})),o&&(m=setTimeout((()=>{e.isUnmounted||(d.value=!1)}),o)),null!=u&&(f=setTimeout((()=>{if(!e.isUnmounted&&!i.value&&!l.value){const e=new Error(`Async component timed out after ${u}ms.`);t(e),l.value=e}}),u)),v().then((()=>{e.isUnmounted||(i.value=!0,e.parent&&Ae(e.parent.vnode)&&e.parent.update())})).catch((n=>{e.isUnmounted?p=null:(t(n),l.value=n)})),()=>i.value&&h?xe(h,e):l.value&&a?Bn(a,{error:l.value}):n&&!d.value?xe(n,e):void 0}})}function xe(e,t){const{ref:n,props:r,children:i,ce:a}=t.vnode,o=Bn(e,r,i);return o.ref=n,o.ce=a,delete t.vnode.ce,o}const Ae=e=>e.type.__isKeepAlive;RegExp,RegExp;function Pe(e,t){return(0,i.kJ)(e)?e.some((e=>Pe(e,t))):(0,i.HD)(e)?e.split(",").includes(t):!!(0,i.Kj)(e)&&(e.lastIndex=0,e.test(t))}function $e(e,t){Ne(e,"a",t)}function Oe(e,t){Ne(e,"da",t)}function Ne(e,t,n=tr){const r=e.__wdc||(e.__wdc=()=>{let t=n;while(t){if(t.isDeactivated)return;t=t.parent}return e()});if(Fe(t,r,n),n){let e=n.parent;while(e&&e.parent)Ae(e.parent.vnode)&&Le(r,t,n,e),e=e.parent}}function Le(e,t,n,r){const a=Fe(t,e,r,!0);He((()=>{(0,i.Od)(r[t],a)}),n)}function De(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Re(e){return 128&e.shapeFlag?e.ssContent:e}function Fe(e,t,n=tr,i=!1){if(n){const a=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{(0,r.Jd)();const a=ar(n),s=o(t,n,e,i);return a(),(0,r.lk)(),s});return i?a.unshift(s):a.push(s),s}}const Me=e=>(t,n=tr)=>{cr&&"sp"!==e||Fe(e,((...e)=>t(...e)),n)},Ve=Me("bm"),Ue=Me("m"),Be=Me("bu"),je=Me("u"),We=Me("bum"),He=Me("um"),qe=Me("sp"),Ge=Me("rtg"),ze=Me("rtc");function Ye(e,t=tr){Fe("ec",e,t)}const Ke="components",Xe="directives";function Je(e,t){return tt(Ke,e,!0,t)||e}const Ze=Symbol.for("v-ndc");function Qe(e){return(0,i.HD)(e)?tt(Ke,e,!1)||e:e||Ze}function et(e){return tt(Xe,e)}function tt(e,t,n=!0,r=!1){const a=E||tr;if(a){const n=a.type;if(e===Ke){const e=yr(n,!1);if(e&&(e===t||e===(0,i._A)(t)||e===(0,i.kC)((0,i._A)(t))))return n}const o=nt(a[e]||n[e],t)||nt(a.appContext[e],t);return!o&&r?n:o}}function nt(e,t){return e&&(e[t]||e[(0,i._A)(t)]||e[(0,i.kC)((0,i._A)(t))])}function rt(e,t,n,a){let o;const s=n&&n[a],l=(0,i.kJ)(e);if(l||(0,i.HD)(e)){const n=l&&(0,r.PG)(e);let i=!1,a=!1;n&&(i=!(0,r.yT)(e),a=(0,r.$y)(e),e=(0,r.XB)(e)),o=new Array(e.length);for(let l=0,u=e.length;l<u;l++)o[l]=t(i?a?(0,r.BX)((0,r.YL)(e[l])):(0,r.YL)(e[l]):e[l],l,void 0,s&&s[l])}else if("number"===typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,s&&s[n])}else if((0,i.Kn)(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let r=0,i=n.length;r<i;r++){const i=n[r];o[r]=t(e[i],i,r,s&&s[r])}}else o=[];return n&&(n[a]=o),o}function it(e,t,n,r,a,o){if(null==n&&(n={}),E.ce||E.parent&&Ee(E.parent)&&E.parent.ce){const e=null!=o&&null==n.key?(0,i.l7)({},n,{key:o}):n,a=Object.keys(e).length>0;return"default"!==t&&(e.name=t),An(),Dn(Sn,null,[Bn("slot",e,r&&r())],a?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const l=In.length;let u;An();try{const a=s&&at(s(n)),l=n.key||o||a&&a.key;u=Dn(Sn,{key:(l&&!(0,i.yk)(l)?l:`_${t}`)+(!a&&r?"_fb":"")},a||(r?r():[]),a&&1===e._?64:-2)}catch(c){for(let e=In.length;e>l;e--)Pn();throw c}finally{s&&s._c&&(s._d=!0)}return!a&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),u}function at(e){return e.some((e=>!Rn(e)||e.type!==Cn&&!(e.type===Sn&&!at(e.children))))?e:null}const ot=e=>e?sr(e)?gr(e):ot(e.parent):null,st=(0,i.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ot(e.parent),$root:e=>ot(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>gt(e),$forceUpdate:e=>e.f||(e.f=()=>{y(e.update)}),$nextTick:e=>e.n||(e.n=v.bind(e.proxy)),$watch:e=>U.bind(e)}),lt=(e,t)=>e!==i.kT&&!e.__isScriptSetup&&(0,i.RI)(e,t),ut={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:a,data:o,props:s,accessCache:l,type:u,appContext:c}=e;if("$"!==t[0]){const e=l[t];if(void 0!==e)switch(e){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(lt(a,t))return l[t]=1,a[t];if(o!==i.kT&&(0,i.RI)(o,t))return l[t]=2,o[t];if((0,i.RI)(s,t))return l[t]=3,s[t];
308if(n!==i.kT&&(0,i.RI)(n,t))return l[t]=4,n[t];ht&&(l[t]=0)}}const d=st[t];let h,p;return d?("$attrs"===t&&(0,r.j)(e.attrs,"get",""),d(e)):(h=u.__cssModules)&&(h=h[t])?h:n!==i.kT&&(0,i.RI)(n,t)?(l[t]=4,n[t]):(p=c.config.globalProperties,(0,i.RI)(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:a,ctx:o}=e;return lt(a,t)?(a[t]=n,!0):r!==i.kT&&(0,i.RI)(r,t)?(r[t]=n,!0):!(0,i.RI)(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(o[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,props:o,type:s}},l){let u;return!!(n[l]||e!==i.kT&&"$"!==l[0]&&(0,i.RI)(e,l)||lt(t,l)||(0,i.RI)(o,l)||(0,i.RI)(r,l)||(0,i.RI)(st,l)||(0,i.RI)(a.config.globalProperties,l)||(u=s.__cssModules)&&u[l])},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:(0,i.RI)(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ct(e){return(0,i.kJ)(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function dt(e,t){return e&&t?(0,i.kJ)(e)&&(0,i.kJ)(t)?e.concat(t):(0,i.l7)({},ct(e),ct(t)):e||t}let ht=!0;function pt(e){const t=gt(e),n=e.proxy,a=e.ctx;ht=!1,t.beforeCreate&&mt(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:l,watch:u,provide:c,inject:d,created:h,beforeMount:p,mounted:f,beforeUpdate:m,updated:v,activated:g,deactivated:y,beforeDestroy:_,beforeUnmount:b,destroyed:T,unmounted:w,render:S,renderTracked:k,renderTriggered:C,errorCaptured:E,serverPrefetch:I,expose:x,inheritAttrs:A,components:P,directives:$,filters:N}=t,L=null;if(d&&ft(d,a,L),l)for(const r in l){const e=l[r];(0,i.mf)(e)&&(a[r]=e.bind(n))}if(o){0;const t=o.call(n,n);0,(0,i.Kn)(t)&&(e.data=(0,r.qj)(t))}if(ht=!0,s)for(const r in s){const e=s[r],t=(0,i.mf)(e)?e.bind(n,n):(0,i.mf)(e.get)?e.get.bind(n,n):i.dG;0;const o=!(0,i.mf)(e)&&(0,i.mf)(e.set)?e.set.bind(n):i.dG,l=br({get:t,set:o});Object.defineProperty(a,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(u)for(const r in u)vt(u[r],a,n,r);if(c){const e=(0,i.mf)(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{O(t,e[t])}))}function D(e,t){(0,i.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&mt(h,e,"c"),D(Ve,p),D(Ue,f),D(Be,m),D(je,v),D($e,g),D(Oe,y),D(Ye,E),D(ze,k),D(Ge,C),D(We,b),D(He,w),D(qe,I),(0,i.kJ)(x))if(x.length){const t=e.exposed||(e.exposed={});x.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t,enumerable:!0})}))}else e.exposed||(e.exposed={});S&&e.render===i.dG&&(e.render=S),null!=A&&(e.inheritAttrs=A),P&&(e.components=P),$&&(e.directives=$),I&&_e(e)}function ft(e,t,n=i.dG){(0,i.kJ)(e)&&(e=wt(e));for(const a in e){const n=e[a];let o;o=(0,i.Kn)(n)?"default"in n?N(n.from||a,n.default,!0):N(n.from||a):N(n),(0,r.dq)(o)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[a]=o}}function mt(e,t,n){o((0,i.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function vt(e,t,n,r){let a=r.includes(".")?B(n,r):()=>n[r];if((0,i.HD)(e)){const n=t[e];(0,i.mf)(n)&&M(a,n)}else if((0,i.mf)(e))M(a,e.bind(n));else if((0,i.Kn)(e))if((0,i.kJ)(e))e.forEach((e=>vt(e,t,n,r)));else{const r=(0,i.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,i.mf)(r)&&M(a,r,e)}else 0}function gt(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,l=o.get(t);let u;return l?u=l:a.length||n||r?(u={},a.length&&a.forEach((e=>yt(u,e,s,!0))),yt(u,t,s)):u=t,(0,i.Kn)(t)&&o.set(t,u),u}function yt(e,t,n,r=!1){const{mixins:i,extends:a}=t;a&&yt(e,a,n,!0),i&&i.forEach((t=>yt(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=_t[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const _t={data:bt,props:Ct,emits:Ct,methods:kt,computed:kt,beforeCreate:St,created:St,beforeMount:St,mounted:St,beforeUpdate:St,updated:St,beforeDestroy:St,beforeUnmount:St,destroyed:St,unmounted:St,activated:St,deactivated:St,errorCaptured:St,serverPrefetch:St,components:kt,directives:kt,watch:Et,provide:bt,inject:Tt};function bt(e,t){return t?e?function(){return(0,i.l7)((0,i.mf)(e)?e.call(this,this):e,(0,i.mf)(t)?t.call(this,this):t)}:t:e}function Tt(e,t){return kt(wt(e),wt(t))}function wt(e){if((0,i.kJ)(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function St(e,t){return e?[...new Set([].concat(e,t))]:t}function kt(e,t){return e?(0,i.l7)(Object.create(null),e,t):t}function Ct(e,t){return e?(0,i.kJ)(e)&&(0,i.kJ)(t)?[...new Set([...e,...t])]:(0,i.l7)(Object.create(null),ct(e),ct(null!=t?t:{})):t}function Et(e,t){if(!e)return t;if(!t)return e;const n=(0,i.l7)(Object.create(null),e);for(const r in t)n[r]=St(e[r],t[r]);return n}function It(){return{app:null,config:{isNativeTag:i.NO,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let xt=0;function At(e,t){return function(n,r=null){(0,i.mf)(n)||(n=(0,i.l7)({},n)),null==r||(0,i.Kn)(r)||(r=null);const a=It(),s=new WeakSet,l=[];let u=!1;const c=a.app={_uid:xt++,_component:n,_props:r,_container:null,_context:a,_instance:null,version:wr,get config(){return a.config},set config(e){0},use(e,...t){return s.has(e)||(e&&(0,i.mf)(e.install)?(s.add(e),e.install(c,...t)):(0,i.mf)(e)&&(s.add(e),e(c,...t))),c},mixin(e){return a.mixins.includes(e)||a.mixins.push(e),c}
308,component(e,t){return t?(a.components[e]=t,c):a.components[e]},directive(e,t){return t?(a.directives[e]=t,c):a.directives[e]},mount(i,o,s){if(!u){0;const l=c._ceVNode||Bn(n,r);return l.appContext=a,!0===s?s="svg":!1===s&&(s=void 0),o&&t?t(l,i):e(l,i,s),u=!0,c._container=i,i.__vue_app__=c,gr(l.component)}},onUnmount(e){l.push(e)},unmount(){u&&(o(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(e,t){return a.provides[e]=t,c},runWithContext(e){const t=Pt;Pt=c;try{return e()}finally{Pt=t}}};return c}}let Pt=null;function $t(e,t,n=i.kT){const a=nr();const o=(0,i._A)(t);const s=(0,i.rs)(t),l=Ot(e,o),u=(0,r.ZM)(((r,l)=>{let u,c,d=i.kT;return F((()=>{const t=e[o];(0,i.aU)(u,t)&&(u=t,l())})),{get(){return r(),n.get?n.get(u):u},set(e){const r=n.set?n.set(e):e;if(!(0,i.aU)(r,u)&&(d===i.kT||!(0,i.aU)(e,d)))return;const h=a.vnode.props,p=!!(h&&(t in h||o in h||s in h)&&(`onUpdate:${t}`in h||`onUpdate:${o}`in h||`onUpdate:${s}`in h));p||(u=e,l()),a.emit(`update:${t}`,r),(0,i.aU)(e,d)&&((0,i.aU)(e,r)&&!(0,i.aU)(r,c)||p&&d!==i.kT&&!(0,i.aU)(r,u))&&l(),d=e,c=r}}}));return u[Symbol.iterator]=()=>{let e=0;return{next(){return e<2?{value:e++?l||i.kT:u,done:!1}:{done:!0}}}},u}const Ot=(e,t)=>"modelValue"===t||"model-value"===t?e.modelModifiers:e[`${t}Modifiers`]||e[`${(0,i._A)(t)}Modifiers`]||e[`${(0,i.rs)(t)}Modifiers`];function Nt(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||i.kT;let a=n;const s=t.startsWith("update:"),l=s&&Ot(r,t.slice(7));let u;l&&(l.trim&&(a=n.map((e=>(0,i.HD)(e)?e.trim():e))),l.number&&(a=a.map(i.h5)));let c=r[u=(0,i.hR)(t)]||r[u=(0,i.hR)((0,i._A)(t))];!c&&s&&(c=r[u=(0,i.hR)((0,i.rs)(t))]),c&&o(c,e,6,a);const d=r[u+"Once"];if(d){if(e.emitted){if(e.emitted[u])return}else e.emitted={};e.emitted[u]=!0,o(d,e,6,a)}}const Lt=new WeakMap;function Dt(e,t,n=!1){const r=n?Lt:t.emitsCache,a=r.get(e);if(void 0!==a)return a;const o=e.emits;let s={},l=!1;if(!(0,i.mf)(e)){const r=e=>{const n=Dt(e,t,!0);n&&(l=!0,(0,i.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return o||l?((0,i.kJ)(o)?o.forEach((e=>s[e]=null)):(0,i.l7)(s,o),(0,i.Kn)(e)&&r.set(e,s),s):((0,i.Kn)(e)&&r.set(e,null),null)}function Rt(e,t){return!(!e||!(0,i.F7)(t))&&(t=t.slice(2),t="Once"===t?t:t.replace(/Once$/,""),(0,i.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,i.RI)(e,(0,i.rs)(t))||(0,i.RI)(e,t))}function Ft(e){const{type:t,vnode:n,proxy:r,withProxy:a,propsOptions:[o],slots:l,attrs:u,emit:c,render:d,renderCache:h,props:p,data:f,setupState:m,ctx:v,inheritAttrs:g}=e,y=x(e);let _,b;try{if(4&n.shapeFlag){const e=a||r,t=e;_=zn(d.call(t,e,h,p,m,f,v)),b=u}else{const e=t;0,_=zn(e.length>1?e(p,{attrs:u,slots:l,emit:c}):e(p,null)),b=t.props?u:Mt(u)}}catch(w){In.length=0,s(w,e,1),_=Bn(Cn)}let T=_;if(b&&!1!==g){const e=Object.keys(b),{shapeFlag:t}=T;e.length&&7&t&&(o&&e.some(i.tR)&&(b=Vt(b,o)),T=Hn(T,b,!1,!0))}if(n.dirs&&(T=Hn(T,null,!1,!0),T.dirs=T.dirs?T.dirs.concat(n.dirs):n.dirs),n.transition){const e=H(T.type)&&fe(T)||T;0,me(e,n.transition)}return _=T,x(y),_}const Mt=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,i.F7)(n))&&((t||(t={}))[n]=e[n]);return t},Vt=(e,t)=>{const n={};for(const r in e)(0,i.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Ut(e,t,n){const{props:r,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!i&&!s||s&&s.$stable)||r!==o&&(r?!o||Bt(r,o,u):!!o);if(1024&l)return!0;if(16&l)return r?Bt(r,o,u):!!o;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(jt(o,r,n)&&!Rt(u,n))return!0}}return!1}function Bt(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const a=r[i];if(jt(t,e,a)&&!Rt(n,a))return!0}return!1}function jt(e,t,n){const r=e[n],a=t[n];return"style"===n&&(0,i.Kn)(r)&&(0,i.Kn)(a)?!(0,i.WV)(r,a):r!==a}function Wt({vnode:e,parent:t,suspense:n},r){while(t){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.suspense.vnode.el=n.el=r,e=n),n!==e)break;(e=t.vnode).el=r,t=t.parent}n&&n.activeBranch===e&&(n.vnode.el=r)}const Ht={},qt=()=>Object.create(Ht),Gt=e=>Object.getPrototypeOf(e)===Ht;function zt(e,t,n,i=!1){const a={},o=qt();e.propsDefaults=Object.create(null),Kt(e,t,a,o);for(const r in e.propsOptions[0])r in a||(a[r]=void 0);n?e.props=i?a:(0,r.Um)(a):e.type.props?e.props=a:e.props=o,e.attrs=o}function Yt(e,t,n,a){const{props:o,attrs:s,vnode:{patchFlag:l}}=e,u=(0,r.IU)(o),[c]=e.propsOptions;let d=!1;if(!(a||l>0)||16&l){let r;Kt(e,t,o,s)&&(d=!0);for(const a in u)t&&((0,i.RI)(t,a)||(r=(0,i.rs)(a))!==a&&(0,i.RI)(t,r))||(c?!n||void 0===n[a]&&void 0===n[r]||(o[a]=Xt(c,u,a,void 0,e,!0)):delete o[a]);
308if(s!==u)for(const e in s)t&&(0,i.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r<n.length;r++){let a=n[r];if(Rt(e.emitsOptions,a))continue;const l=t[a];if(c)if((0,i.RI)(s,a))l!==s[a]&&(s[a]=l,d=!0);else{const t=(0,i._A)(a);o[t]=Xt(c,u,t,l,e,!1)}else l!==s[a]&&(s[a]=l,d=!0)}}d&&(0,r.X$)(e.attrs,"set","")}function Kt(e,t,n,a){const[o,s]=e.propsOptions;let l,u=!1;if(t)for(let r in t){if((0,i.Gg)(r))continue;const c=t[r];let d;o&&(0,i.RI)(o,d=(0,i._A)(r))?s&&s.includes(d)?(l||(l={}))[d]=c:n[d]=c:Rt(e.emitsOptions,r)||r in a&&c===a[r]||(a[r]=c,u=!0)}if(s){const t=(0,r.IU)(n),a=l||i.kT;for(let r=0;r<s.length;r++){const l=s[r];n[l]=Xt(o,t,l,a[l],e,!(0,i.RI)(a,l))}}return u}function Xt(e,t,n,r,a,o){const s=e[n];if(null!=s){const e=(0,i.RI)(s,"default");if(e&&void 0===r){const e=s.default;if(s.type!==Function&&!s.skipFactory&&(0,i.mf)(e)){const{propsDefaults:i}=a;if(n in i)r=i[n];else{const o=ar(a);r=i[n]=e.call(null,t),o()}}else r=e;a.ce&&a.ce._setProp(n,r)}s[0]&&(o&&!e?r=!1:!s[1]||""!==r&&r!==(0,i.rs)(n)||(r=!0))}return r}const Jt=new WeakMap;function Zt(e,t,n=!1){const r=n?Jt:t.propsCache,a=r.get(e);if(a)return a;const o=e.props,s={},l=[];let u=!1;if(!(0,i.mf)(e)){const r=e=>{u=!0;const[n,r]=Zt(e,t,!0);(0,i.l7)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!o&&!u)return(0,i.Kn)(e)&&r.set(e,i.Z6),i.Z6;if((0,i.kJ)(o))for(let d=0;d<o.length;d++){0;const e=(0,i._A)(o[d]);Qt(e)&&(s[e]=i.kT)}else if(o){0;for(const e in o){const t=(0,i._A)(e);if(Qt(t)){const n=o[e],r=s[t]=(0,i.kJ)(n)||(0,i.mf)(n)?{type:n}:(0,i.l7)({},n),a=r.type;let u=!1,c=!0;if((0,i.kJ)(a))for(let e=0;e<a.length;++e){const t=a[e],n=(0,i.mf)(t)&&t.name;if("Boolean"===n){u=!0;break}"String"===n&&(c=!1)}else u=(0,i.mf)(a)&&"Boolean"===a.name;r[0]=u,r[1]=c,(u||(0,i.RI)(r,"default"))&&l.push(t)}}}const c=[s,l];return(0,i.Kn)(e)&&r.set(e,c),c}function Qt(e){return"$"!==e[0]&&!(0,i.Gg)(e)}const en=e=>"_"===e||"_ctx"===e||"$stable"===e,tn=e=>(0,i.kJ)(e)?e.map(zn):[zn(e)],nn=(e,t,n)=>{if(t._n)return t;const r=A(((...e)=>tn(t(...e))),n);return r._c=!1,r},rn=(e,t,n)=>{const r=e._ctx;for(const a in e){if(en(a))continue;const n=e[a];if((0,i.mf)(n))t[a]=nn(a,n,r);else if(null!=n){0;const e=tn(n);t[a]=()=>e}}},an=(e,t)=>{const n=tn(t);e.slots.default=()=>n},on=(e,t,n)=>{for(const r in t)!n&&en(r)||(e[r]=t[r])},sn=(e,t,n)=>{const r=e.slots=qt();if(32&e.vnode.shapeFlag){const e=t._;e?(on(r,t,n),n&&(0,i.Nj)(r,"_",e,!0)):rn(t,r)}else t&&an(e,t)},ln=(e,t,n)=>{const{vnode:r,slots:a}=e;let o=!0,s=i.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?o=!1:on(a,t,n):(o=!t.$stable,rn(t,a)),s=t}else t&&(an(e,t),s={default:1});if(o)for(const i in a)en(i)||null!=s[i]||delete a[i]};function un(){}const cn=wn;function dn(e){return hn(e)}function hn(e,t){un();const n=(0,i.E9)();n.__VUE__=!0;const{insert:a,remove:o,patchProp:s,createElement:l,createText:u,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:f,setScopeId:m=i.dG,insertStaticContent:v}=e,g=(e,t,n,r=null,a=null,o=null,s,l=null,u=!!t.dynamicChildren)=>{if(e===t)return;e&&!Fn(e,t)&&(r=X(e),q(e,a,o,!0),e=null),-2===t.patchFlag&&(u=!1,t.dynamicChildren=null),t.dynamicChildren&&e&&e.dynamicChildren&&e.dynamicChildren.hasOnce&&(t.dynamicChildren===i.Z6&&(t.dynamicChildren=[]),t.dynamicChildren.hasOnce=!0);const{type:c,ref:d,shapeFlag:h}=t;switch(c){case kn:_(e,t,n,r);break;case Cn:b(e,t,n,r);break;case En:null==e&&S(t,n,r,s);break;case Sn:L(e,t,n,r,a,o,s,l,u);break;default:1&h?E(e,t,n,r,a,o,s,l,u):6&h?D(e,t,n,r,a,o,s,l,u):(64&h||128&h)&&c.process(e,t,n,r,a,o,s,l,u,Q)}null!=d&&a?we(d,e&&e.ref,o,t||e,!t):null==d&&e&&null!=e.ref&&we(e.ref,null,o,e,!0)},_=(e,t,n,r)=>{if(null==e)a(t.el=u(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},b=(e,t,n,r)=>{null==e?a(t.el=c(t.children||""),n,r):t.el=e.el},S=(e,t,n,r)=>{[e.el,e.anchor]=v(e.children,t,n,r,e.el,e.anchor)},k=({el:e,anchor:t},n,r)=>{let i;while(e&&e!==t)i=f(e),a(e,n,r),e=i;a(t,n,r)},C=({el:e,anchor:t})=>{let n;while(e&&e!==t)n=f(e),o(e),e=n;o(t)},E=(e,t,n,r,i,a,o,s,l)=>{if("svg"===t.type?o="svg":"math"===t.type&&(o="mathml"),null==e)I(t,n,r,i,a,o,s,l);else{const n=e.el&&e.el._isVueCE?e.el:null;try{n&&n._beginPatch(),P(e,t,i,a,o,s,l)}finally{n&&n._endPatch()}}},I=(e,t,n,r,o,u,c,d)=>{let p,f;const{props:m,shapeFlag:v,transition:g,dirs:y}=e;if(p=e.el=l(e.type,u,m&&m.is,m),8&v?h(p,e.children):16&v&&A(e.children,p,null,r,o,pn(e,u),c,d),y&&$(e,null,r,"created"),x(p,e,e.scopeId,c,r),m){for(const e in m)"value"===e||(0,i.Gg)(e)||s(p,e,null,m[e],u,r);"value"in m&&s(p,"value",null,m.value,u),(f=m.onVnodeBeforeMount)&&Jn(f,r,e)}
vendor: 3,865 bytes, line 308
308y&&$(e,null,r,"beforeMount");const _=mn(o,g);if(_&&g.beforeEnter(p),a(p,t,n),(f=m&&m.onVnodeMounted)||_||y){cn((()=>{try{f&&Jn(f,r,e),_&&g.enter(p),y&&$(e,null,r,"mounted")}finally{0}}),o)}},x=(e,t,n,r,i)=>{if(n&&m(e,n),r)for(let a=0;a<r.length;a++)m(e,r[a]);if(i){let n=i.subTree;if(t===n||Tn(n.type)&&(n.ssContent===t||n.ssFallback===t)){const t=i.vnode;x(e,t,t.scopeId,t.slotScopeIds,i.parent)}}},A=(e,t,n,r,i,a,o,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?Yn(e[u]):zn(e[u]);g(null,l,t,n,r,i,a,o,s)}},P=(e,t,n,r,a,o,l)=>{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const f=e.props||i.kT,m=t.props||i.kT;let v;if(n&&fn(n,!1),(v=m.onVnodeBeforeUpdate)&&Jn(v,n,t,e),p&&$(t,e,n,"beforeUpdate"),n&&fn(n,!0),!d||e.dynamicChildren&&e.dynamicChildren.length===d.length||(c=0,l=!1,d=null),(f.innerHTML&&null==m.innerHTML||f.textContent&&null==m.textContent)&&h(u,""),d?O(e.dynamicChildren,d,u,n,r,pn(t,a),o):l||U(e,t,u,null,n,r,pn(t,a),o,!1),c>0){if(16&c)N(u,f,m,n,a);else if(2&c&&f.class!==m.class&&s(u,"class",null,m.class,a),4&c&&s(u,"style",f.style,m.style,a),8&c){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const r=e[t],i=f[r],o=m[r];o===i&&"value"!==r||s(u,r,i,o,a,n)}}1&c&&e.children!==t.children&&h(u,t.children)}else l||null!=d||N(u,f,m,n,a);((v=m.onVnodeUpdated)||p)&&cn((()=>{v&&Jn(v,n,t,e),p&&$(t,e,n,"updated")}),r)},O=(e,t,n,r,i,a,o)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===Sn||!Fn(l,u)||198&l.shapeFlag)?p(l.el):n;g(l,u,c,null,r,i,a,o,!0)}},N=(e,t,n,r,a)=>{if(t!==n){if(t!==i.kT)for(const o in t)(0,i.Gg)(o)||o in n||s(e,o,t[o],null,a,r);for(const o in n){if((0,i.Gg)(o))continue;const l=n[o],u=t[o];l!==u&&"value"!==o&&s(e,o,u,l,a,r)}"value"in n&&s(e,"value",t.value,n.value,a)}},L=(e,t,n,r,i,o,s,l,c)=>{const d=t.el=e?e.el:u(""),h=t.anchor=e?e.anchor:u("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(a(d,n,r),a(h,n,r),A(t.children||[],n,h,i,o,s,l,c)):p>0&&64&p&&f&&e.dynamicChildren&&e.dynamicChildren.length===f.length?(O(e.dynamicChildren,f,n,i,o,s,l),(null!=t.key||i&&t===i.subTree)&&vn(e,t,!0)):U(e,t,n,h,i,o,s,l,c)},D=(e,t,n,r,i,a,o,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?i.ctx.activate(t,n,r,o,l):R(t,n,r,i,a,o,l):F(e,t,l)},R=(e,t,n,r,i,a,o)=>{const s=e.component=er(e,r,i);if(Ae(e)&&(s.ctx.renderer=Q),dr(s,!1,o),s.asyncDep){if(i&&i.registerDep(s,M,o),!e.el){const r=s.subTree=Bn(Cn);b(null,r,t,n),e.placeholder=r.el}}else M(s,e,t,n,i,a,o)},F=(e,t,n)=>{const r=t.component=e.component;if(Ut(e,t,n)){if(r.asyncDep&&!r.asyncResolved)return t.el=e.el,void V(r,t,n);r.next=t,r.update()}else t.el=e.el,r.vnode=t},M=(e,t,n,a,o,s,l)=>{const u=()=>{if(e.isMounted){let{next:t,bu:n,u:r,parent:a,vnode:u}=e;{const n=yn(e);if(n)return t&&(t.el=u.el,V(e,t,l)),void n.asyncDep.then((()=>{cn((()=>{e.isUnmounted||d()}),o)}))}let c,h=t;0,fn(e,!1),t?(t.el=u.el,V(e,t,l)):t=u,n&&(0,i.ir)(n),(c=t.props&&t.props.onVnodeBeforeUpdate)&&Jn(c,a,t,u),fn(e,!0);const f=Ft(e);0;const m=e.subTree;e.subTree=f,g(m,f,p(m.el),X(m),e,o,s),t.el=f.el,null===h&&Wt(e,f.el),r&&cn(r,o),(c=t.props&&t.props.onVnodeUpdated)&&cn((()=>Jn(c,a,t,u)),o)}else{let r;const{el:l,props:u}=t,{bm:c,m:d,parent:h,root:p,type:f}=e,m=Ee(t);if(fn(e,!1),c&&(0,i.ir)(c),!m&&(r=u&&u.onVnodeBeforeMount)&&Jn(r,h,t),fn(e,!0),l&&te){const t=()=>{e.subTree=Ft(e),te(l,e.subTree,e,o,null)};m&&f.__asyncHydrate?f.__asyncHydrate(l,e,t):t()}else{p.ce&&p.ce._hasShadowRoot()&&p.ce._injectChildStyle(f,e.parent?e.parent.type:void 0);const r=e.subTree=Ft(e);0,g(null,r,n,a,e,o,s),t.el=r.el}if(d&&cn(d,o),!m&&(r=u&&u.onVnodeMounted)){const e=t;cn((()=>Jn(r,h,e)),o)}(256&t.shapeFlag||h&&Ee(h.vnode)&&256&h.vnode.shapeFlag)&&e.a&&cn(e.a,o),e.isMounted=!0,t=n=a=null}};e.scope.on();const c=e.effect=new r.qq(u);e.scope.off();const d=e.update=c.run.bind(c),h=e.job=c.runIfDirty.bind(c);
308h.i=e,h.id=e.uid,c.scheduler=()=>y(h),fn(e,!0),d()},V=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,Yt(e,t.props,i,n),ln(e,t.children,n),(0,r.Jd)(),T(e),(0,r.lk)()},U=(e,t,n,r,i,a,o,s,l=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:f}=t;if(p>0){if(128&p)return void j(u,d,n,r,i,a,o,s,l);if(256&p)return void B(u,d,n,r,i,a,o,s,l)}8&f?(16&c&&K(u,i,a),d!==u&&h(n,d)):16&c?16&f?j(u,d,n,r,i,a,o,s,l):K(u,i,a,!0):(8&c&&h(n,""),16&f&&A(d,n,r,i,a,o,s,l))},B=(e,t,n,r,a,o,s,l,u)=>{e=e||i.Z6,t=t||i.Z6;const c=e.length,d=t.length,h=Math.min(c,d);let p;for(p=0;p<h;p++){const r=t[p]=u?Yn(t[p]):zn(t[p]);g(e[p],r,n,null,a,o,s,l,u)}c>d?K(e,a,o,!0,!1,h):A(t,n,r,a,o,s,l,u,h)},j=(e,t,n,r,a,o,s,l,u)=>{let c=0;const d=t.length;let h=e.length-1,p=d-1;while(c<=h&&c<=p){const r=e[c],i=t[c]=u?Yn(t[c]):zn(t[c]);if(!Fn(r,i))break;g(r,i,n,null,a,o,s,l,u),c++}while(c<=h&&c<=p){const r=e[h],i=t[p]=u?Yn(t[p]):zn(t[p]);if(!Fn(r,i))break;g(r,i,n,null,a,o,s,l,u),h--,p--}if(c>h){if(c<=p){const e=p+1,i=e<d?t[e].el:r;while(c<=p)g(null,t[c]=u?Yn(t[c]):zn(t[c]),n,i,a,o,s,l,u),c++}}else if(c>p)while(c<=h)q(e[c],a,o,!0),c++;else{const f=c,m=c,v=new Map;for(c=m;c<=p;c++){const e=t[c]=u?Yn(t[c]):zn(t[c]);null!=e.key&&v.set(e.key,c)}let y,_=0;const b=p-m+1;let T=!1,w=0;const S=new Array(b);for(c=0;c<b;c++)S[c]=0;for(c=f;c<=h;c++){const r=e[c];if(_>=b){q(r,a,o,!0);continue}let i;if(null!=r.key)i=v.get(r.key);else for(y=m;y<=p;y++)if(0===S[y-m]&&Fn(r,t[y])){i=y;break}void 0===i?q(r,a,o,!0):(S[i-m]=c+1,i>=w?w=i:T=!0,g(r,t[i],n,null,a,o,s,l,u),_++)}const k=T?gn(S):i.Z6;for(y=k.length-1,c=b-1;c>=0;c--){const e=m+c,i=t[e],h=t[e+1],p=e+1<d?h.el||bn(h):r;0===S[c]?g(null,i,n,p,a,o,s,l,u):T&&(y<0||c!==k[y]?H(i,n,p,2):y--)}}},H=(e,t,n,r,i=null)=>{const{el:s,type:l,transition:u,children:c,shapeFlag:d}=e;if(6&d)return void H(e.component.subTree,t,n,r);if(128&d)return void e.suspense.move(t,n,r);if(64&d)return void l.move(e,t,n,Q);if(l===Sn){a(s,t,n);for(let e=0;e<c.length;e++)H(c[e],t,n,r);return void a(e.anchor,t,n)}if(l===En)return void k(e,t,n);const h=2!==r&&1&d&&u;if(h)if(0===r)u.persisted&&!s[ne]?a(s,t,n):(u.beforeEnter(s),a(s,t,n),cn((()=>u.enter(s)),i));else{const{leave:r,delayLeave:i,afterLeave:l}=u,c=()=>{e.ctx.isUnmounted?o(s):a(s,t,n)},d=()=>{const e=s._isLeaving||!!s[ne];s._isLeaving&&s[ne](!0),u.persisted&&!e?c():r(s,(()=>{c(),l&&l()}))};i?i(s,c,d):d()}else a(s,t,n)},q=(e,t,n,i=!1,a=!1)=>{const{type:o,props:s,ref:l,children:u,dynamicChildren:c,shapeFlag:d,patchFlag:h,dirs:p,cacheIndex:f,memo:m}=e;if((-2===h||c&&c.hasOnce)&&(a=!1),null!=l&&((0,r.Jd)(),we(l,null,n,e,!0),(0,r.lk)()),null==f||e.ctx&&e.ctx!==t||(t.renderCache[f]=void 0),256&d)return void t.ctx.deactivate(e);const v=1&d&&p,g=!Ee(e);let y;if(g&&(y=s&&s.onVnodeBeforeUnmount)&&Jn(y,t,e),6&d)Y(e.component,n,i);else{if(128&d)return void e.suspense.unmount(n,i);v&&$(e,null,t,"beforeUnmount"),64&d?e.type.remove(e,t,n,Q,i):c&&!c.hasOnce&&(o!==Sn||h>0&&64&h)?K(c,t,n,!1,!0):(o===Sn&&384&h||!a&&16&d)&&K(u,t,n),i&&G(e)}const _=null!=m&&null==f;(g&&(y=s&&s.onVnodeUnmounted)||v||_)&&cn((()=>{y&&Jn(y,t,e),v&&$(e,null,t,"unmounted"),_&&(e.el=null)}),n)},G=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Sn)return void z(n,r);if(t===En)return C(e),void(i&&!i.persisted&&i.afterLeave&&i.afterLeave());const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,a);r?r(e.el,a,o):o()}else a()},z=(e,t)=>{let n;while(e!==t)n=f(e),o(e),e=n;o(t)},Y=(e,t,n)=>{const{bum:r,scope:a,job:o,subTree:s,um:l,m:u,a:c}=e;_n(u),_n(c),r&&(0,i.ir)(r),a.stop(),o?(o.flags|=8,q(s,e,t,n)):e.vnode.el&&s&&(s.transition=e.vnode.transition,q(s,e,t,n)),l&&cn(l,t),cn((()=>{e.isUnmounted=!0}),t)},K=(e,t,n,r=!1,i=!1,a=0)=>{for(let o=a;o<e.length;o++)q(e[o],t,n,r,i)},X=e=>{if(6&e.shapeFlag)return X(e.component.subTree);if(128&e.shapeFlag)return e.suspense.next();const t=f(e.anchor||e.el),n=t&&t[W];return n?f(n):t};let J=!1;const Z=(e,t,n)=>{let r;null==e?t._vnode&&(q(t._vnode,null,null,!0),r=t._vnode.component):g(t._vnode||null,e,t,null,null,null,n),t._vnode=e,J||(J=!0,T(r),w(),J=!1)},Q={p:g,um:q,m:H,r:G,mt:R,mc:A,pc:U,pbc:O,n:X,o:e};let ee,te;return t&&([ee,te]=t(Q)),{render:Z,hydrate:ee,createApp:At(Z,ee)}}function pn({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function fn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function mn(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function vn(e,t,n=!1){const r=e.children,a=t.children;if((0,i.kJ)(r)&&(0,i.kJ)(a))for(let i=0;i<r.length;i++){const e=r[i];let t=a[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=a[i]=Yn(a[i]),t.el=e.el),n||-2===t.patchFlag||vn(e,t)),t.type===kn&&(-1===t.patchFlag&&(t=a[i]=Yn(t)),t.el=e.el),t.type!==Cn||t.el||(t.el=e.el)}}function gn(e){const t=e.slice(),n=[0];let r,i,a,o,s;const l=e.length;for(r=0;r<l;r++){const l=e[r];if(0!==l){if(i=n[n.length-1],e[i]<l){t[r]=i,n.push(r);continue}a=0,o=n.length-1;while(a<o)s=a+o>>1,e[n[s]]<l?a=s+1:o=s;l<e[n[a]]&&(a>0&&(t[r]=n[a-1]),n[a]=r)}}a=n.length,o=n[a-1];while(a-- >0)n[a]=o,o=t[o];return n}function yn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:yn(t)}function _n(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function bn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?bn(t.subTree):null}const Tn=e=>e.__isSuspense;function wn(e,t){t&&t.pendingBranch?(0,i.kJ)(e)?t.effects.push(...e):t.effects.push(e):b(e)}const Sn=Symbol.for("v-fgt"),kn=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt"),En=Symbol.for("v-stc"),In=[];let xn=null;function An(e=!1){In.push(xn=e?null:[])}function Pn(){In.pop(),xn=In[In.length-1]||null}let $n=1;function On(e,t=!1){$n+=e,e<0&&xn&&t&&(xn.hasOnce=!0)}function Nn(e){return e.dynamicChildren=$n>0?xn||i.Z6:null,Pn(),$n>0&&xn&&xn.push(e),e}function Ln(e,t,n,r,i,a){return Nn(Un(e,t,n,r,i,a,!0))}function Dn(e,t,n,r,i){return Nn(Bn(e,t,n,r,i,!0))}function Rn(e){return!!e&&!0===e.__v_isVNode}function Fn(e,t){return e.type===t.type&&e.key===t.key}const Mn=({key:e})=>null!=e?e:null,Vn=({ref:e,ref_key:t,ref_for:n})=>("number"===typeof e&&(e=""+e),null!=e?(0,i.HD)(e)||(0,r.dq)(e)||(0,i.mf)(e)?{i:E,r:e,k:t,f:!!n}:e:null);function Un(e,t=null,n=null,r=0,a=null,o=(e===Sn?0:1),s=!1,l=!1){const u={__v_isVNode:!0,__v_skip:!0,t
308ype:e,props:t,key:t&&Mn(t),ref:t&&Vn(t),scopeId:I,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:E};return l?(Kn(u,n),128&o&&e.normalize(u)):n&&(u.shapeFlag|=(0,i.HD)(n)?8:16),$n>0&&!s&&xn&&(u.patchFlag>0||6&o)&&32!==u.patchFlag&&xn.push(u),u}const Bn=jn;function jn(e,t=null,n=null,a=0,o=null,s=!1){if(e&&e!==Ze||(e=Cn),Rn(e)){const r=Hn(e,t,!0);return n&&Kn(r,n),$n>0&&!s&&xn&&(6&r.shapeFlag?xn[xn.indexOf(e)]=r:xn.push(r)),r.patchFlag=-2,r}if(_r(e)&&(e=e.__vccOpts),t){t=Wn(t);let{class:e,style:n}=t;e&&!(0,i.HD)(e)&&(t.class=(0,i.C_)(e)),(0,i.Kn)(n)&&((0,r.X3)(n)&&!(0,i.kJ)(n)&&(n=(0,i.l7)({},n)),t.style=(0,i.j5)(n))}const l=(0,i.HD)(e)?1:Tn(e)?128:H(e)?64:(0,i.Kn)(e)?4:(0,i.mf)(e)?2:0;return Un(e,t,n,a,o,l,s,!0)}function Wn(e){return e?(0,r.X3)(e)||Gt(e)?(0,i.l7)({},e):e:null}function Hn(e,t,n=!1,r=!1){const{props:a,ref:o,patchFlag:s,children:l,transition:u}=e,c=t?Xn(a||{},t):a,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Mn(c),ref:t&&t.ref?n&&o?(0,i.kJ)(o)?o.concat(Vn(t)):[o,Vn(t)]:Vn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Sn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return u&&r&&me(d,u.clone(d)),d}function qn(e=" ",t=0){return Bn(kn,null,e,t)}function Gn(e="",t=!1){return t?(An(),Dn(Cn,null,e)):Bn(Cn,null,e)}function zn(e){return null==e||"boolean"===typeof e?Bn(Cn):(0,i.kJ)(e)?Bn(Sn,null,e.slice()):Rn(e)?Yn(e):Bn(kn,null,String(e))}function Yn(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Hn(e)}function Kn(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,i.kJ)(t))n=16;else if("object"===typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Kn(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Gt(t)?3===r&&E&&(1===E.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=E}}else if((0,i.mf)(t)){if(65&r)return void Kn(e,{default:t});t={default:t,_ctx:E},n=32}else t=String(t),64&r?(n=16,t=[qn(t)]):n=8;e.children=t,e.shapeFlag|=n}function Xn(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=(0,i.C_)([t.class,r.class]));else if("style"===e)t.style=(0,i.j5)([t.style,r.style]);else if((0,i.F7)(e)){const n=t[e],a=r[e];!a||n===a||(0,i.kJ)(n)&&n.includes(a)?null!=a||null!=n||(0,i.tR)(e)||(t[e]=a):t[e]=n?[].concat(n,a):a}else""!==e&&(t[e]=r[e])}return t}function Jn(e,t,n,r=null){o(e,t,7,[n,r])}const Zn=It();let Qn=0;function er(e,t,n){const a=e.type,o=(t?t.appContext:e.appContext)||Zn,s={uid:Qn++,vnode:e,type:a,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new r.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Zt(a,o),emitsOptions:Dt(a,o),emit:null,emitted:null,propsDefaults:i.kT,inheritAttrs:a.inheritAttrs,ctx:i.kT,data:i.kT,props:i.kT,attrs:i.kT,slots:i.kT,refs:i.kT,setupState:i.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=Nt.bind(null,s),e.ce&&e.ce(s),s}let tr=null;const nr=()=>tr||E;let rr,ir;{const e=(0,i.E9)(),t=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),e=>{r.length>1?r.forEach((t=>t(e))):r[0](e)}};rr=t("__VUE_INSTANCE_SETTERS__",(e=>tr=e)),ir=t("__VUE_SSR_SETTERS__",(e=>cr=e))}const ar=e=>{const t=tr;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},or=()=>{tr&&tr.scope.off(),rr(null)};function sr(e){return 4&e.vnode.shapeFlag}let lr,ur,cr=!1;function dr(e,t=!1,n=!1){t&&ir(t);const{props:r,children:i}=e.vnode,a=sr(e);zt(e,r,a,t),sn(e,i,n||t);const o=a?hr(e,t):void 0;return t&&ir(!1),o}function hr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ut);const{setup:o}=n;if(o){(0,r.Jd)();const n=e.setupContext=o.length>1?vr(e):null,l=ar(e),u=a(o,e,0,[e.props,n]),c=(0,i.tI)(u);if((0,r.lk)(),l(),!c&&!e.sp||Ee(e)||_e(e),c){if(u.then(or,or),t)return u.then((n=>{ir(!0);try{pr(e,n,t)}finally{ir(!1)}})).catch((t=>{s(t,e,0)}));e.asyncDep=u}else pr(e,u,t)}else fr(e,t)}
308function pr(e,t,n){(0,i.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,i.Kn)(t)&&(e.setupState=(0,r.WL)(t)),fr(e,n)}function fr(e,t,n){const a=e.type;if(!e.render){if(!t&&lr&&!a.render){const t=a.template||gt(e).template;if(t){0;const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:o,compilerOptions:s}=a,l=(0,i.l7)((0,i.l7)({isCustomElement:n,delimiters:o},r),s);a.render=lr(t,l)}}e.render=a.render||i.dG,ur&&ur(e)}{const t=ar(e);(0,r.Jd)();try{pt(e)}finally{(0,r.lk)(),t()}}}const mr={get(e,t){return(0,r.j)(e,"get",""),e[t]}};function vr(e){const t=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,mr),slots:e.slots,emit:e.emit,expose:t}}function gr(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get(t,n){return n in t?t[n]:n in st?st[n](e):void 0},has(e,t){return t in e||t in st}})):e.proxy}function yr(e,t=!0){return(0,i.mf)(e)?e.displayName||e.name:e.name||t&&e.__name}function _r(e){return(0,i.mf)(e)&&"__vccOpts"in e}const br=(e,t)=>{const n=(0,r.Fl)(e,t,cr);return n};function Tr(e,t,n){try{On(-1);const r=arguments.length;return 2===r?(0,i.Kn)(t)&&!(0,i.kJ)(t)?Rn(t)?Bn(e,null,[t]):Bn(e,t):Bn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Rn(n)&&(n=[n]),Bn(e,t,n))}finally{On(1)}}const wr="3.5.43",Sr=i.dG},9963:function(e,t,n){"use strict";n.d(t,{D2:function(){return ze},F8:function(){return M},W3:function(){return _e},YZ:function(){return Ue},iM:function(){return qe},nr:function(){return $e},ri:function(){return Ze},sY:function(){return Je},uT:function(){return b}});var r=n(6252),i=n(3577),a=n(2262);
309/**
310* @vue/runtime-dom v3.5.43
311* (c) 2018-present Yuxi (Evan) You and Vue contributors
312* @license MIT
vendor: 4,972 bytes, lines 313-314
313**/
314let o;const s="undefined"!==typeof window&&window.trustedTypes;if(s)try{o=s.createPolicy("vue",{createHTML:e=>e})}catch(tt){}const l=o?e=>o.createHTML(e):e=>e,u="http://www.w3.org/2000/svg",c="http://www.w3.org/1998/Math/MathML",d="undefined"!==typeof document?document:null,h=d&&d.createElement("template"),p={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i="svg"===t?d.createElementNS(u,e):"mathml"===t?d.createElementNS(c,e):n?d.createElement(e,{is:n}):d.createElement(e);return"select"===e&&r&&null!=r.multiple&&i.setAttribute("multiple",r.multiple),i},createText:e=>d.createTextNode(e),createComment:e=>d.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>d.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,a){const o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling)){while(1)if(t.insertBefore(i.cloneNode(!0),n),i===a||!(i=i.nextSibling))break}else{h.innerHTML=l("svg"===r?`<svg>${e}</svg>`:"mathml"===r?`<math>${e}</math>`:e);const i=h.content;if("svg"===r||"mathml"===r){const e=i.firstChild;while(e.firstChild)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},f="transition",m="animation",v=Symbol("_vtc"),g={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},y=(0,i.l7)({},r.nJ,g),_=e=>(e.displayName="Transition",e.props=y,e),b=_(((e,{slots:t})=>(0,r.h)(r.P$,S(e),t))),T=(e,t=[])=>{(0,i.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},w=e=>!!e&&((0,i.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function S(e){const t={};for(const i in e)i in g||(t[i]=e[i]);if(!1===e.css)return t;const{name:n="v",type:r,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=k(a),v=m&&m[0],y=m&&m[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:S,onLeave:C,onLeaveCancelled:A,onBeforeAppear:$=_,onAppear:O=b,onAppearCancelled:N=S}=t,D=(e,t,n,r)=>{e._enterCancelled=r,I(e,t?d:l),I(e,t?c:s),n&&n()},R=(e,t)=>{e._isLeaving=!1,I(e,h),I(e,f),I(e,p),t&&t()},F=e=>(t,n)=>{const i=e?O:b,a=()=>D(t,e,n);T(i,[t,a]),x((()=>{I(t,e?u:o),E(t,e?d:l),w(i)||P(t,r,v,a)}))};return(0,i.l7)(t,{onBeforeEnter(e){T(_,[e]),E(e,o),E(e,s)},onBeforeAppear(e){T($,[e]),E(e,u),E(e,c)},onEnter:F(!1),onAppear:F(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>R(e,t);E(e,h),e._enterCancelled?(E(e,p),L(e)):(L(e),E(e,p)),x((()=>{e._isLeaving&&(I(e,h),E(e,f),w(C)||P(e,r,y,n))})),T(C,[e,n])},onEnterCancelled(e){D(e,!1,void 0,!0),T(S,[e])},onAppearCancelled(e){D(e,!0,void 0,!0),T(N,[e])},onLeaveCancelled(e){R(e),T(A,[e])}})}function k(e){if(null==e)return null;if((0,i.Kn)(e))return[C(e.enter),C(e.leave)];{const t=C(e);return[t,t]}}function C(e){const t=(0,i.He)(e);return t}function E(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[v]||(e[v]=new Set)).add(t)}function I(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[v];n&&(n.delete(t),n.size||(e[v]=void 0))}function x(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let A=0;function P(e,t,n,r){const i=e._endId=++A,a=()=>{i===e._endId&&r()};if(null!=n)return setTimeout(a,n);const{type:o,timeout:s,propCount:l}=$(e,t);if(!o)return r();const u=o+"end";let c=0;const d=()=>{e.removeEventListener(u,h),a()},h=t=>{t.target===e&&++c>=l&&d()};setTimeout((()=>{c<l&&d()}),s+1),e.addEventListener(u,h)}function $(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),i=r(`${f}Delay`),a=r(`${f}Duration`),o=O(i,a),s=r(`${m}Delay`),l=r(`${m}Duration`),u=O(s,l);let c=null,d=0,h=0;t===f?o>0&&(c=f,d=o,h=a.length):t===m?u>0&&(c=m,d=u,h=l.length):(d=Math.max(o,u),c=d>0?o>u?f:m:null,h=c?c===f?a.length:l.length:0);const p=c===f&&/\b(?:transform|all)(?:,|$)/.test(r(`${f}Property`).toString());return{type:c,timeout:d,propCount:h,hasTransform:p}}function O(e,t){while(e.length<t.length)e=e.concat(e);return Math.max(...t.map(((t,n)=>N(t)+N(e[n]))))}function N(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function L(e){const t=e?e.ownerDocument:document;return t.body.offsetHeight}function D(e,t,n){const r=e[v];r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const R=Symbol("_vod"),F=Symbol("_vsh"),M={name:"show",beforeMount(e,{value:t},{transition:n}){e[R]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):V(e,t)}
314,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!==!n&&(r?t?(r.beforeEnter(e),V(e,!0),r.enter(e)):r.leave(e,(()=>{V(e,!1)})):V(e,t))},beforeUnmount(e,{value:t}){V(e,t)}};function V(e,t){e.style.display=t?e[R]:"none",e[F]=!t}const U=Symbol("");const B=/(?:^|;)\s*display\s*:/;function j(e,t,n){const r=e.style,a=(0,i.HD)(n);let o=!1;if(n&&!a){if(t)if((0,i.HD)(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&H(r,t,"")}else for(const e in t)null==n[e]&&H(r,e,"");for(const a in n){"display"===a&&(o=!0);const s=n[a];null!=s?Y(e,a,!(0,i.HD)(t)&&t?t[a]:void 0,s)||H(r,a,s):H(r,a,"")}}else if(a){if(t!==n){const e=r[U];e&&(n+=";"+e),r.cssText=n,o=B.test(n)}}else t&&e.removeAttribute("style");R in e&&(e[R]=o?r.display:"",e[F]&&(r.display="none"))}const W=/\s*!important$/;function H(e,t,n){if((0,i.kJ)(n))n.forEach((n=>H(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))W.test(n)?e.setProperty(t,n.replace(W,""),"important"):e.setProperty(t,n);else{const r=z(e,t);W.test(n)?e.setProperty((0,i.rs)(r),n.replace(W,""),"important"):e[r]=n}}const q=["Webkit","Moz","ms"],G={};function z(e,t){const n=G[t];if(n)return n;let r=(0,i._A)(t);if("filter"!==r&&r in e)return G[t]=r;r=(0,i.kC)(r);for(let i=0;i<q.length;i++){const n=q[i]+r;if(n in e)return G[t]=n}return t}function Y(e,t,n,r){return"TEXTAREA"===e.tagName&&("width"===t||"height"===t)&&(0,i.HD)(r)&&n===r}const K="http://www.w3.org/1999/xlink";function X(e,t,n,r,a,o=(0,i.Pq)(t)){r&&t.startsWith("xlink:")?null==n?e.removeAttributeNS(K,t.slice(6,t.length)):e.setAttributeNS(K,t,n):null==n||o&&!(0,i.yA)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":(0,i.yk)(n)?String(n):n)}function J(e,t,n,r,a){if("innerHTML"===t||"textContent"===t)return void(null!=n&&(e[t]="innerHTML"===t?l(n):n));const o=e.tagName;if("value"===t&&"PROGRESS"!==o&&!o.includes("-")){const r="OPTION"===o?e.getAttribute("value")||"":e.value,i=null==n?"checkbox"===e.type?"on":"":String(n);return r===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=(0,i.yA)(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(tt){0}s&&e.removeAttribute(a||t)}function Z(e,t,n,r){e.addEventListener(t,n,r)}function Q(e,t,n,r){e.removeEventListener(t,n,r)}const ee=Symbol("_vei");function te(e,t,n,r,i=null){const a=e[ee]||(e[ee]={}),o=a[t];if(r&&o)o.value=r;else{const[n,s]=ie(t);if(r){const o=a[t]=le(r,i);Z(e,n,o,s)}else o&&(Q(e,n,o,s),a[t]=void 0)}}const ne=/(Once|Passive|Capture)$/,re=/^on:?(?:Once|Passive|Capture)$/;function ie(e){let t,n;while((n=e.match(ne))&&!re.test(e))t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;const r=":"===e[2]?e.slice(3):(0,i.rs)(e.slice(2));return[r,t]}let ae=0;const oe=Promise.resolve(),se=()=>ae||(oe.then((()=>ae=0)),ae=Date.now());function le(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const a=n.value;if((0,i.kJ)(a)){const n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};const i=a.slice(),o=[e];for(let a=0;a<i.length;a++){if(e._stopped)break;const n=i[a];n&&(0,r.$d)(n,t,5,o)}}else(0,r.$d)(a,t,5,[e])};return n.value=e,n.attached=se(),n}const ue=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ce=(e,t,n,r,a,o)=>{const s="svg"===a;"class"===t?D(e,r,s):"style"===t?j(e,n,r):(0,i.F7)(t)?(0,i.tR)(t)||te(e,t,n,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):de(e,t,r,s))?(J(e,t,r),e.tagName.includes("-")||"value"!==t&&"checked"!==t&&"selected"!==t||X(e,t,r,s,o,"value"!==t)):e._isVueCE&&(he(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!(0,i.HD)(r)))?J(e,(0,i._A)(t),r,o,t):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),X(e,t,r,s))};function de(e,t,n,r){if(r)return"innerHTML"===t||"textContent"===t||!!(t in e&&ue(t)&&(0,i.mf)(n));if("spellcheck"===t||"draggable"===t||"translate"===t||"autocorrect"===t)return!1;if("sandbox"===t&&"IFRAME"===e.tagName)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}return(!ue(t)||!(0,i.HD)(n))&&t in e}function he(e,t){const n=e._def.props;if(!n)return!1;const r=(0,i._A)(t);return Array.isArray(n)?n.some((e=>(0,i._A)(e)===r)):Object.keys(n).some((e=>(0,i._A)(e)===r))}"undefined"!==typeof HTMLElement&&HTMLElement;const pe=new WeakMap,fe=new WeakMap,me=Symbol("_moveCb"),ve=Symbol("_enterCb"),ge=e=>(delete e.props.mode,e),ye=ge({name:"TransitionGroup",props:(0,i.l7)({},y,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.FN)(),i=(0,r.Y8)();let o,s;return(0,r.ic)((()=>
314{if(!o.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!ke(o[0].el,n.vnode.el,t))return void(o=[]);o.forEach(be),o.forEach(Te);const r=o.filter(we);L(n.vnode.el),r.forEach((e=>{const n=e.el,r=n.style;E(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const i=n[me]=e=>{e&&e.target!==n||e&&!e.propertyName.endsWith("transform")||(n.removeEventListener("transitionend",i),n[me]=null,I(n,t))};n.addEventListener("transitionend",i)})),o=[]})),()=>{const l=(0,a.IU)(e),u=S(l);let c=l.tag||r.HY;if(o=[],s)for(let e=0;e<s.length;e++){const t=s[e];t.el&&t.el instanceof Element&&!t.el[F]&&(o.push(t),(0,r.nK)(t,(0,r.U2)(t,u,i,n)),pe.set(t,Se(t.el)))}s=t.default?(0,r.Q6)(t.default()):[];for(let e=0;e<s.length;e++){const t=s[e];null!=t.key&&(0,r.nK)(t,(0,r.U2)(t,u,i,n))}return(0,r.Wm)(c,null,s)}}}),_e=ye;function be(e){const t=e.el;t[me]&&t[me](),t[ve]&&t[ve]()}function Te(e){fe.set(e,Se(e.el))}function we(e){const t=pe.get(e),n=fe.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const t=e.el,n=t.style,a=t.getBoundingClientRect();let o=1,s=1;return t.offsetWidth&&(o=a.width/t.offsetWidth),t.offsetHeight&&(s=a.height/t.offsetHeight),Number.isFinite(o)&&0!==o||(o=1),Number.isFinite(s)&&0!==s||(s=1),Math.abs(o-1)<.01&&(o=1),Math.abs(s-1)<.01&&(s=1),n.transform=n.webkitTransform=`translate(${r/o}px,${i/s}px)`,n.transitionDuration="0s",e}}function Se(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function ke(e,t,n){const r=e.cloneNode(),i=e[v];i&&i.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const a=1===t.nodeType?t:t.parentNode;a.appendChild(r);const{hasTransform:o}=$(r);return a.removeChild(r),o}const Ce=e=>{const t=e.props["onUpdate:modelValue"]||!1;return(0,i.kJ)(t)?e=>(0,i.ir)(t,e):t};function Ee(e){e.target.composing=!0}function Ie(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xe=Symbol("_assign"),Ae=Symbol("_initialValue");function Pe(e,t,n){return t&&(e=e.trim()),n&&(e=(0,i.h5)(e)),e}const $e={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&("text"===e.type?e[Ae]=e.defaultValue.replace(/[\r\n]/g,""):"textarea"===e.type&&(e[Ae]=e.defaultValue.replace(/\r\n?/g,"\n"))),e[xe]=Ce(i);const a=r||i.props&&"number"===i.props.type;Z(e,t?"change":"input",(t=>{t.target.composing||e[xe](Pe(e.value,n,a))})),(n||a)&&Z(e,"change",(()=>{e.value=Pe(e.value,n,a)})),t||(Z(e,"compositionstart",Ee),Z(e,"compositionend",Ie),Z(e,"change",Ie))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){const i=null==t?"":t,a=e[Ae];delete e[Ae],void 0===a||"text"!==e.type&&"textarea"!==e.type||e.value===a?e.value=i:e[xe](Pe(e.value,n,r))},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:a,number:o}},s){if(e[xe]=Ce(s),e.composing)return;const l=!o&&"number"!==e.type||/^0\d/.test(e.value)?e.value:(0,i.h5)(e.value),u=null==t?"":t;if(l===u)return;const c=e.getRootNode();if((c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&"range"!==e.type){if(r&&t===n)return;if(a&&e.value.trim()===u)return}e.value=u}},Oe={deep:!0,created(e,t,n){e[xe]=Ce(n),Z(e,"change",(()=>{const t=e._modelValue,n=Me(e),r=e.checked,a=e[xe];if((0,i.kJ)(t)){const e=(0,i.hq)(t,n),o=-1!==e;if(r&&!o)a(t.concat(n));else if(!r&&o){const n=[...t];n.splice(e,1),a(n)}}else if((0,i.DM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),a(e)}else a(Ve(e,r))}))},mounted:Ne,beforeUpdate(e,t,n){e[xe]=Ce(n),Ne(e,t,n)}};function Ne(e,{value:t,oldValue:n},r){let a;if(e._modelValue=t,(0,i.kJ)(t))a=(0,i.hq)(t,r.props.value)>-1;else if((0,i.DM)(t))a=t.has(r.props.value);else{if(t===n)return;a=(0,i.WV)(t,Ve(e,!0))}e.checked!==a&&(e.checked=a)}const Le={created(e,{value:t},n){e.checked=(0,i.WV)(t,n.props.value),e[xe]=Ce(n),Z(e,"change",(()=>{e[xe](Me(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e[xe]=Ce(r),t!==n&&(e.checked=(0,i.WV)(t,r.props.value))}},De={deep:!0,created(e,{value:t,modifiers:{number:n}},a){e._modelValue=t,Z(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,i.h5)(Me(e)):Me(e))),a=e.multiple,o=a?(0,i.DM)(e._modelValue)?new Set(t):t:t[0],s=e._pendingValue=[a,a?(0,i.kJ)(o)?t.slice():t:o];try{e[xe](o)}finally{(0,r.Y3)((()=>{e._pendingValue===s&&(e._pendingValue=void 0)}))}})),e[xe]=Ce(a)},mounted(e,{value:t}){Fe(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[xe]=Ce(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,n&&n[0]===e.multiple&&Re(t,n[1],n[0])||Fe(e,t)}};function Re(e,t,n){if(!n)return(0,i.WV)(e,t);if((0,i.kJ)(e))return(0,i.WV)(e,t);if((0,i.DM)(e)){if(e.size!==t.length)return!1;for(const n of t)if(!e.has(n))return!1;return!0}return!1}function Fe(e,t){const n=e.multiple,r=(0,i.kJ)(t);if(!n||r||(0,i.DM)(t)){for(let a=0,o=e.options.length;a<o;a++){const o=e.options[a],s=Me(o);if(n)if(r){const e=typeof s;o.selected="string"===e||"number"===e?t.some((e=>String(e)===String(s))):(0,i.hq)(t,s)>-1}else o.selected=t.has(s);else if((0,i.WV)(Me(o),t))return void(e.selectedIndex!==a&&(e.selectedIndex=a))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Me(e){return"_value"in e?e._value:e.value}function Ve(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ue={created(e,t,n){je(e,t,n,null,"created")},mounted(e,t,n){je(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){je(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){je(e,t,n,r,"updated")}};function Be(e,t){switch(e){case"SELECT":return De;case"TEXTAREA":return $e;default:switch(t){case"checkbox":return Oe;case"radio":return Le;default:return $e}}}function je(e,t,n,r,i){const a=Be(e.tagName,n.props&&n.props.type),o=a[i];o&&o(e,t,n,r)}const We=["ctrl","shift","alt","meta"],He={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>
314We.some((n=>e[`${n}Key`]&&!t.includes(n)))},qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(n,...r)=>{for(let e=0;e<t.length;e++){const r=He[t[e]];if(r&&r(n,t))return}return e(n,...r)})},Ge={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ze=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=n=>{if(!("key"in n))return;const r=(0,i.rs)(n.key);return t.some((e=>e===r||Ge[e]===r))?e(n):void 0})},Ye=(0,i.l7)({patchProp:ce},p);let Ke;function Xe(){return Ke||(Ke=(0,r.Us)(Ye))}const Je=(...e)=>{Xe().render(...e)},Ze=(...e)=>{const t=Xe().createApp(...e);const{mount:n}=t;return t.mount=e=>{const r=et(e);if(!r)return;const a=t._component;(0,i.mf)(a)||a.render||a.template||(a.template=r.innerHTML),1===r.nodeType&&(r.textContent="");const o=n(r,!1,Qe(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t};function Qe(e){return e instanceof SVGElement?"svg":"function"===typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function et(e){if((0,i.HD)(e)){const t=document.querySelector(e);return t}return e}},3577:function(e,t,n){"use strict";
315/**
316* @vue/shared v3.5.43
317* (c) 2018-present Yuxi (Evan) You and Vue contributors
318* @license MIT
vendor: 1,534 bytes, lines 319-320
319**/
320function r(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}n.d(t,{C_:function(){return J},DM:function(){return v},E9:function(){return W},F7:function(){return l},Gg:function(){return A},HD:function(){return b},He:function(){return B},Kj:function(){return y},Kn:function(){return w},NO:function(){return s},Nj:function(){return V},Od:function(){return d},PO:function(){return I},Pq:function(){return ee},RI:function(){return p},S0:function(){return x},W7:function(){return E},WV:function(){return oe},Z6:function(){return a},_A:function(){return O},_N:function(){return m},aU:function(){return F},dG:function(){return o},fY:function(){return r},h5:function(){return U},hR:function(){return R},hq:function(){return se},ir:function(){return M},j5:function(){return G},kC:function(){return D},kJ:function(){return f},kT:function(){return i},l7:function(){return c},mf:function(){return _},rs:function(){return L},tI:function(){return S},tR:function(){return u},vs:function(){return Z},yA:function(){return te},yk:function(){return T},yl:function(){return q},zw:function(){return ue}});const i={},a=[],o=()=>{},s=()=>!1,l=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),u=e=>e.startsWith("onUpdate:"),c=Object.assign,d=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},h=Object.prototype.hasOwnProperty,p=(e,t)=>h.call(e,t),f=Array.isArray,m=e=>"[object Map]"===C(e),v=e=>"[object Set]"===C(e),g=e=>"[object Date]"===C(e),y=e=>"[object RegExp]"===C(e),_=e=>
320"function"===typeof e,b=e=>"string"===typeof e,T=e=>"symbol"===typeof e,w=e=>null!==e&&"object"===typeof e,S=e=>(w(e)||_(e))&&_(e.then)&&_(e.catch),k=Object.prototype.toString,C=e=>k.call(e),E=e=>C(e).slice(8,-1),I=e=>"[object Object]"===C(e),x=e=>b(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,A=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),P=e=>{const t=Object.create(null);return n=>{const r=t[n];return r||(t[n]=e(n))}},$=/-\w/g,O=P((e=>e.replace($,(e=>e.slice(1).toUpperCase())))),N=/\B([A-Z])/g,L=P((e=>e.replace(N,"-$1").toLowerCase())),D=P((e=>e.charAt(0).toUpperCase()+e.slice(1))),R=P((e=>{const t=e?`on${D(e)}`:"";return t})),F=(e,t)=>!Object.is(e,t),M=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},V=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},B=e=>{const t=b(e)?Number(e):NaN;return isNaN(t)?e:t};let j;const W=()=>j||(j="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{});const H="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",q=r(H);function G(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=b(r)?X(r):G(r);if(i)for(const e in i)t[e]=i[e]}return t}if(b(e)||w(e))return e}const z=/;(?![^(]*\))/g,Y=/:([^]+)/,K=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function X(e){const t={};return e.replace(K,(e=>e.startsWith("/*")?"":e)).split(z).forEach((e=>{if(e){const n=e.split(Y);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function J(e){let t="";if(b(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=J(e[n]);r&&(t+=r+" ")}else if(w(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Z(e){if(!e)return null;let{class:t,style:n}=e;return t&&!b(t)&&(e.class=J(t)),n&&(e.style=G(n)),e}const Q="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ee=r(Q);function te(e){return!!e||""===e}function ne(e,t,n){if(e.length!==t.length)return!1;let r=!0;for(let i=0;r&&i<e.length;i++)r=oe(e[i],t[i],n);return r}function re(e,t,n){if(e.size!==t.size)return!1;const r=Array.from(t),i=new Uint8Array(r.length);for(const a of e){let e=-1;for(let t=0;t<r.length;t++)if(!i[t]&&oe(a,r[t],n)){e=t;break}if(e<0)return!1;i[e]=1}return!0}function ie(e,t,n){let r=m(e),i=m(t);if(r||i)return!(!r||!i)&&re(e,t,n);if(r=v(e),i=v(t),r||i)return!(!r||!i)&&re(e,t,n);const a=Object.keys(e).length,o=Object.keys(t).length;if(a!==o)return!1;for(const s in e){const r=e.hasOwnProperty(s),i=t.hasOwnProperty(s);if(r&&!i||!r&&i||!oe(e[s],t[s],n))return!1}return String(e)===String(t)}function ae(e,t,n,r){n||(n=[new Map,new Map]);const[i,a]=n;if(i.has(e)||a.has(t))return i.get(e)===t&&a.get(t)===e;i.set(e,t),a.set(t,e);const o=r(e,t,n);return i.delete(e),a.delete(t),o}function oe(e,t,n){if(e===t)return!0;let r=g(e),i=g(t);return r||i?!(!r||!i)&&e.getTime()===t.getTime():(r=T(e),i=T(t),r||i?e===t:(r=f(e),i=f(t),r||i?!(!r||!i)&&ae(e,t,n,ne):(r=w(e),i=w(t),r||i?!(!r||!i)&&ae(e,t,n,ie):String(e)===String(t))))}function se(e,t){return e.findIndex((e=>oe(e,t)))}const le=e=>!(!e||!0!==e["__v_isRef"]),ue=e=>b(e)?e:null==e?"":f(e)||w(e)&&(e.toString===k||!_(e.toString))?le(e)?ue(e.value):JSON.stringify(e,ce,2):String(e),ce=(e,t)=>le(t)?ce(e,t.value):m(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[de(t,r)+" =>"]=n,e)),{})}:v(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>de(e)))}:T(t)?de(t):!w(t)||f(t)||I(t)?t:String(t),de=(e,t="")=>{var n;return T(e)?`Symbol(${null!=(n=e.description)?n:t})`:e}},2167:function(e,t){"use strict";function n(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"===typeof n.find)return n.find.call(e,t);for(var r=0;r<e.length;r++)if(Object.prototype.hasOwnProperty.call(e,r)){var i=e[r];if(t.call(void 0,i,r,e))return i}}function r(e,t){return void 0===t&&(t=Object),t&&"function"===typeof t.freeze?t.freeze(e):e}function i(e,t){if(null===e||"object"!==typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var a=r({HTML:"text/html",isHTML:function(e){return e===a.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),s=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,l=new RegExp("[\\-\\.0-9"+s.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),u=new RegExp("^"+s.source+l.source+"*(?::"+s.source+l.source+"*)?$");t.assign=i,t.find=n,t.freeze=r,t.MIME_TYPE=a,t.NAMESPACE=o,t.nameStartChar=s,t.nameChar=l,t.tagNamePattern=u},6129:function(e,t,n){var r=n(2167),i=n(1146),a=n(1045),o=n(6925),s=i.DOMImplementation,l=r.NAMESPACE,u=o.ParseError,c=o.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(e,t,n){if(!e){if(t instanceof f)return t;e=t}var r={},i=e instanceof Function;function a(t){var a=e[t];!a&&i&&(a=2==e.length?function(n){e(t,n)}:e),r[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+v(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),r}function f(){this.cdata=!1}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function v(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>
vendor: 4,705 bytes, line 320
320=t+n||t?new java.lang.String(e,t,n)+"":e}function y(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var n=this.options,r=new c,i=n.domBuilder||new f,o=n.errorHandler,s=n.locator,u=n.xmlns||{},h=/\/x?html?$/.test(t),m=h?a.HTML_ENTITIES:a.XML_ENTITIES;s&&i.setDocumentLocator(s),r.errorHandler=p(o,i,s),r.domBuilder=n.domBuilder||i,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var v=n.normalizeLineEndings||d;return e&&"string"===typeof e?r.parse(v(e),u,m):r.errorHandler.error("invalid doc source"),i.doc},f.prototype={startDocument:function(){this.doc=(new s).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),o=r.length;y(this,a),this.currentElement=a,this.locator&&m(this.locator,a);for(var s=0;s<o;s++){e=r.getURI(s);var l=r.getValue(s),u=(n=r.getQName(s),i.createAttributeNS(e,n));this.locator&&m(r.getLocator(s),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&m(this.locator,n),y(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.apply(this,arguments),e){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&m(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=g.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&m(this.locator,r),y(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&m(this.locator,i),y(this,i),this.doc.doctype=i}},warning:function(e){console.warn("[xmldom warning]\t"+e,v(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,v(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){f.prototype[e]=function(){return null}})),t.DOMParser=h},1146:function(e,t,n){var r=n(2167),i=r.find,a=r.NAMESPACE,o=r.tagNamePattern;function s(e){return""!==e}function l(e){return e?e.split(/[\t\n\f\r ]+/).filter(s):[]}function u(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function c(e){if(!e)return[];var t=l(e);return Object.keys(t.reduce(u,{}))}function d(e){return function(t){return e&&-1!==e.indexOf(t)}}function h(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function p(e,t){var n=e.prototype;if(!(n instanceof t)){function r(){}r.prototype=t.prototype,r=new r,h(n,r),e.prototype=n=r}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var f={},m=f.ELEMENT_NODE=1,v=f.ATTRIBUTE_NODE=2,g=f.TEXT_NODE=3,y=f.CDATA_SECTION_NODE=4,_=f.ENTITY_REFERENCE_NODE=5,b=f.ENTITY_NODE=6,T=f.PROCESSING_INSTRUCTION_NODE=7,w=f.COMMENT_NODE=8,S=f.DOCUMENT_NODE=9,k=f.DOCUMENT_TYPE_NODE=10,C=f.DOCUMENT_FRAGMENT_NODE=11,E=f.NOTATION_NODE=12,I={},x={},A=(I.INDEX_SIZE_ERR=(x[1]="Index size error",1),I.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),I.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3)),P=(I.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),I.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5)),$=(I.NO_DATA_ALLOWED_ERR=(x[6]="No data allowed",6),I.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),I.NOT_FOUND_ERR=(x[8]="Not found",8)),O=(I.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),I.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10)),N=I.INVALID_STATE_ERR=(x[11]="Invalid state",11);I.SYNTAX_ERR=(x[12]="Syntax error",12),I.INVALID_MODIFICATION_ERR=(x[13]="Invalid modification",13),I.NAMESPACE_ERR=(x[14]="Invalid namespace",14),I.INVALID_ACCESS_ERR=(x[15]="Invalid access",15);function L(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,L);return n.code=e,t&&(this.message=this.message+": "+t),n}function D(){}function R(e,t){this._node=e,this._refresh=t,F(this)}function F(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);
320if(Oe(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var r=n.length;r in e;r++)Object.prototype.hasOwnProperty.call(e,r)&&delete e[r];h(n,e),e._inc=t}}function M(){this._nameIndex=Object.create(null)}function V(e,t){var n=e.length;while(n--)if(e[n]===t)return n}function U(e,t){e._nameIndex[t.nodeName]=t}function B(e,t){e._nameIndex[t.nodeName]===t&&delete e._nameIndex[t.nodeName]}function j(e,t,n,r){if(r?(t[V(t,r)]=n,B(t,r)):t[t.length++]=n,U(t,n),e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&J(i,e,r),X(i,e,n))}}function W(e,t,n){var r=V(t,n);if(!(r>=0))throw new L($,new Error(e.tagName+"@"+n));var i=t.length-1;while(r<i)t[r]=t[++r];if(t.length=i,B(t,n),e){var a=e.ownerDocument;a&&(J(a,e,n),n.ownerElement=null)}}function H(){}function q(){}function G(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function z(e,t){return Y(e,null,{enter:function(e){return!t(e)||Y.STOP}})===Y.STOP}function Y(e,t,n){var r=[{node:e,context:t,phase:Y.ENTER}];while(r.length>0){var i=r.pop();if(i.phase===Y.ENTER){var a=n.enter(i.node,i.context);if(a===Y.STOP)return Y.STOP;if(r.push({node:i.node,context:a,phase:Y.EXIT}),null===a||void 0===a)continue;var o=i.node.lastChild;while(o)r.push({node:o,context:a,phase:Y.ENTER}),o=o.previousSibling}else n.exit&&n.exit(i.node,i.context)}}function K(){this.ownerDocument=this}function X(e,t,n){e&&e._inc++;var r=n.namespaceURI;r===a.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function J(e,t,n,r){e&&e._inc++;var i=n.namespaceURI;i===a.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function Z(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{var i=t.firstChild,a=0;while(i)r[a++]=i,i=i.nextSibling;r.length=a,delete r[r.length]}}}function Q(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,Z(e.ownerDocument,e),t}function ee(e){return e&&(e.nodeType===q.DOCUMENT_NODE||e.nodeType===q.DOCUMENT_FRAGMENT_NODE||e.nodeType===q.ELEMENT_NODE)}function te(e){return e&&(re(e)||ie(e)||ne(e)||e.nodeType===q.DOCUMENT_FRAGMENT_NODE||e.nodeType===q.COMMENT_NODE||e.nodeType===q.PROCESSING_INSTRUCTION_NODE)}function ne(e){return e&&e.nodeType===q.DOCUMENT_TYPE_NODE}function re(e){return e&&e.nodeType===q.ELEMENT_NODE}function ie(e){return e&&e.nodeType===q.TEXT_NODE}function ae(e,t){var n=e.childNodes||[];if(i(n,re)||ne(t))return!1;var r=i(n,ne);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function oe(e,t){var n=e.childNodes||[];function r(e){return re(e)&&e!==t}if(i(n,r))return!1;var a=i(n,ne);return!(t&&a&&n.indexOf(a)>n.indexOf(t))}function se(e,t,n){if(!ee(e))throw new L(A,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new L($,"child not in parent");if(!te(t)||ne(t)&&e.nodeType!==q.DOCUMENT_NODE)throw new L(A,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function le(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];
320if(t.nodeType===q.DOCUMENT_FRAGMENT_NODE){var o=a.filter(re);if(o.length>1||i(a,ie))throw new L(A,"More than one element or text in fragment");if(1===o.length&&!ae(e,n))throw new L(A,"Element in fragment can not be inserted before doctype")}if(re(t)&&!ae(e,n))throw new L(A,"Only one element can be added and only after doctype");if(ne(t)){if(i(r,ne))throw new L(A,"Only one doctype is allowed");var s=i(r,re);if(n&&r.indexOf(s)<r.indexOf(n))throw new L(A,"Doctype can only be inserted before an element");if(!n&&s)throw new L(A,"Doctype can not be appended since element is present")}}function ue(e,t,n){var r=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===q.DOCUMENT_FRAGMENT_NODE){var o=a.filter(re);if(o.length>1||i(a,ie))throw new L(A,"More than one element or text in fragment");if(1===o.length&&!oe(e,n))throw new L(A,"Element in fragment can not be inserted before doctype")}if(re(t)&&!oe(e,n))throw new L(A,"Only one element can be added and only after doctype");if(ne(t)){function s(e){return ne(e)&&e!==n}if(i(r,s))throw new L(A,"Only one doctype is allowed");var l=i(r,re);if(n&&r.indexOf(l)<r.indexOf(n))throw new L(A,"Doctype can only be inserted before an element")}}function ce(e,t,n,r){se(e,t,n),e.nodeType===q.DOCUMENT_NODE&&(r||le)(e,t,n);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===C){var a=t.firstChild;if(null==a)return t;var o=t.lastChild}else a=o=t;var s=n?n.previousSibling:e.lastChild;a.previousSibling=s,o.nextSibling=n,s?s.nextSibling=a:e.firstChild=a,null==n?e.lastChild=o:n.previousSibling=o;do{a.parentNode=e;var l=e.ownerDocument||e;de(a,l)}while(a!==o&&(a=a.nextSibling));return Z(e.ownerDocument||e,e),t.nodeType==C&&(t.firstChild=t.lastChild=null),t}function de(e,t){if(e.ownerDocument!==t){if(e.ownerDocument=t,e.nodeType===m&&e.attributes)for(var n=0;n<e.attributes.length;n++){var r=e.attributes.item(n);r&&(r.ownerDocument=t)}var i=e.firstChild;while(i)de(i,t),i=i.nextSibling}}function he(e,t){t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,Z(e.ownerDocument,e,t);var n=e.ownerDocument||e;return de(t,n),t}function pe(){this._nsMap={}}function fe(){}function me(){}function ve(){}function ge(){}function ye(){}function _e(){}function be(){}function Te(){}function we(){}function Se(){}function ke(){}function Ce(){}function Ee(e,t,n){var r=!!n&&!!n.requireWellFormed,i=[],a=9==this.nodeType&&this.documentElement||this,o=a.prefix,s=a.namespaceURI;if(s&&null==o){o=a.lookupPrefix(s);if(null==o)var l=[{namespace:s,prefix:null}]}return Ae(this,i,e,t,l,r),i.join("")}function Ie(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!i)return!1;if("xml"===r&&i===a.XML||i===a.XMLNS)return!1;var o=n.length;while(o--){var s=n[o];if(s.prefix===r)return s.namespace!==i}return!0}function xe(e,t,n,r){if(r&&!o.test(t))throw new L(N,'The attribute name "'+t+'" is not a valid XML QName');e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,G),'"')}function Ae(e,t,n,r,i,s){i||(i=[]),Y(e,{ns:i,isHTML:n},{enter:function(e,n){var i=n.ns,l=n.isHTML;if(r){if(e=r(e),!e)return null;if("string"==typeof e)return t.push(e),null}switch(e.nodeType){case m:var u=e.attributes,c=u.length,d=e.tagName;l=a.isHTML(e.namespaceURI)||l;var h=d;if(!l&&!e.prefix&&e.namespaceURI){for(var p,f=0;f<u.length;f++)if("xmlns"===u.item(f).name){p=u.item(f).value;break}if(!p)for(var b=i.length-1;b>=0;b--){var E=i[b];if(""===E.prefix&&E.namespace===e.namespaceURI){p=E.namespace;break}}if(p!==e.namespaceURI)for(b=i.length-1;b>=0;b--){E=i[b];if(E.namespace===e.namespaceURI){E.prefix&&(h=E.prefix+":"+d);break}}}if(s&&!o.test(h))throw new L(N,'The element name "'+h+'" is not a valid XML QName');t.push("<",h);for(var I=i.slice(),x=0;x<c;x++){var A=u.item(x);"xmlns"==A.prefix?I.push({prefix:A.localName,namespace:A.value}):"xmlns"==A.nodeName&&I.push({prefix:"",namespace:A.value})}for(x=0;x<c;x++){A=u.item(x);if(Ie(A,l,I)){var P=A.prefix||"",$=A.namespaceURI;xe(t,P?"xmlns:"+P:"xmlns",$,s),I.push({prefix:P,namespace:$})}var O=r?r(A):A;
vendor: 9,180 bytes, line 320
320O&&("string"===typeof O?t.push(O):xe(t,O.name,O.value,s))}if(d===h&&Ie(e,l,I)){var D=e.prefix||"";$=e.namespaceURI;xe(t,D?"xmlns:"+D:"xmlns",$,s),I.push({prefix:D,namespace:$})}var R=e.firstChild;if(R||l&&!/^(?:meta|link|img|br|hr|input)$/i.test(d)){if(t.push(">"),l&&/^script$/i.test(d)){while(R)R.data?t.push(R.data):Ae(R,t,l,r,I.slice(),s),R=R.nextSibling;return t.push("</",d,">"),null}return{ns:I,isHTML:l,tag:h}}return t.push("/>"),null;case S:case C:return{ns:i.slice(),isHTML:l,tag:null};case v:return xe(t,e.name,e.value,s),null;case g:return t.push(e.data.replace(/[<&>]/g,G)),null;case y:if(s&&-1!==e.data.indexOf("]]>"))throw new L(N,'The CDATASection data contains "]]>"');return t.push("<![CDATA[",e.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case w:if(s&&-1!==e.data.indexOf("--\x3e"))throw new L(N,'The comment node data contains "--\x3e"');return t.push("\x3c!--",e.data,"--\x3e"),null;case k:if(s){if(!o.test(e.name))throw new L(N,'The doctype name "'+e.name+'" is not a valid XML Name');if(e.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(e.publicId))throw new L(N,"DocumentType publicId is not a valid PubidLiteral");if(e.systemId&&!/^("[^"]*"|'[^']*')$/.test(e.systemId))throw new L(N,"DocumentType systemId is not a valid SystemLiteral");if(e.internalSubset&&-1!==e.internalSubset.indexOf("]>"))throw new L(N,'DocumentType internalSubset contains "]>"')}var F=e.publicId,M=e.systemId;if(t.push("<!DOCTYPE ",e.name),F)t.push(" PUBLIC ",F),M&&"."!=M&&t.push(" ",M),t.push(">");else if(M&&"."!=M)t.push(" SYSTEM ",M,">");else{var V=e.internalSubset;V&&t.push(" [",V,"]"),t.push(">")}return null;case T:if(s){if(!o.test(e.target)||-1!==e.target.indexOf(":")||"xml"===e.target.toLowerCase())throw new L(N,'The processing instruction target "'+e.target+'" is not a valid XML NCName or is reserved');if(-1!==e.data.indexOf("?>"))throw new L(N,'The ProcessingInstruction data contains "?>"')}return t.push("<?",e.target," ",e.data,"?>"),null;case _:if(s&&!o.test(e.nodeName))throw new L(N,'The entity reference name "'+e.nodeName+'" is not a valid XML Name');return t.push("&",e.nodeName,";"),null;default:return t.push("??",e.nodeName),null}},exit:function(e,n){n&&n.tag&&t.push("</",n.tag,">")}})}function Pe(e,t,n){var r;return Y(t,null,{enter:function(t,i){var a=t.cloneNode(!1);a.ownerDocument=e,a.parentNode=null,null===i?r=a:i.appendChild(a);var o=t.nodeType===v||n;return o?a:null}}),r}function $e(e,t,n){var r;return Y(t,null,{enter:function(t,i){var a=new t.constructor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var s=t[o];"object"!=typeof s&&s!=a[o]&&(a[o]=s)}t.childNodes&&(a.childNodes=new D),a.ownerDocument=e;var l=n;switch(a.nodeType){case m:var u=t.attributes,c=a.attributes=new M,d=u.length;c._ownerElement=a;for(var h=0;h<d;h++)a.setAttributeNode($e(e,u.item(h),!0));break;case v:l=!0}return null!==i?i.appendChild(a):r=a,l?a:null}}),r}function Oe(e,t,n){e[t]=n}L.prototype=Error.prototype,h(I,L),D.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t,n){for(var r=!!n&&!!n.requireWellFormed,i=[],a=0;a<this.length;a++)Ae(this[a],i,e,t,null,r);return i.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},R.prototype.item=function(e){return F(this),this[e]||null},p(R,D),M.prototype={length:0,item:D.prototype.item,getNamedItem:function(e){var t=this.length;while(t--){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new L(O);var n=this._nameIndex[e.nodeName];return j(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new L(O);return t=this.getNamedItemNS(e.namespaceURI,e.localName),j(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return W(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return W(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){var n=this.length;while(n--){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},H.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var r=new K;if(r.implementation=this,r.childNodes=new D,r.doctype=n||null,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new _e;return r.name=e,r.nodeName=e,r.publicId=t||"",r.systemId=n||"",r}},q.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return ce(this,e,t)},replaceChild:function(e,t){ce(this,e,t,ue),t&&this.removeChild(t)},removeChild:function(e){return Q(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return $e(this.ownerDocument||this,this,e)},normalize:function(){Y(this,null,{enter:function(e){var t=e.firstChild;while(t){var n=t.nextSibling;if(null!==n&&n.nodeType===g&&t.nodeType===g){var r=[],i=n;while(null!==i&&i.nodeType===g)r.push(i.data),i=i.nextSibling;var a=t.nextSibling;while(a!==i){var o=a.nextSibling;a.parentNode=null,a.previousSibling=null,a.nextSibling=null,a=o}t.nextSibling=i,null!==i?i.previousSibling=t:e.lastChild=t,t.appendData(r.join("")),Z(e.ownerDocument,e),t=i}else t=n}return!0}})},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){var t=this;while(t){var n=t._nsMap;if(n)for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&n[r]===e)return r;t=t.nodeType==v?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){var t=this;while(t){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==v?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return null==t}},h(f,q),h(f,q.prototype),Y.STOP=Symbol("walkDOM.STOP"),Y.ENTER=0,Y.EXIT=1,K.prototype={nodeName:"#document",nodeType:S,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==C){var n=e.firstChild;while(n){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return ce(this,e,t),de(e,this),null===this.documentElement&&e.nodeType===m&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Q(this,e)},replaceChild:function(e,t){ce(this,e,t,ue),de(e,this),t&&this.removeChild(t),re(e)&&(this.documentElement=e)},importNode:function(e,t){return Pe(this,e,t)},getElementById:function(e){var t=null;return z(this.documentElement,(function(n){if(n.nodeType==m&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=c(e);return new R(this,(function(n){var r=[];return t.length>0&&z(n.documentElement,(function(i){if(i!==n&&i.nodeType===m){var a=i.getAttribute("class");if(a){var o=e===a;if(!o){var s=c(a);o=t.every(d(s))}o&&r.push(i)}}})),r}))},createElement:function(e){var t=new pe;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new D;var n=t.attributes=new M;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new Se;return e.ownerDocument=this,e.childNodes=new D,e},createTextNode:function(e){var t=new ve;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ge;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){if(-1!==e.indexOf("]]>"))throw new L(P,'data contains "]]>"');var t=new ye;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ke;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new fe;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){if(!o.test(e))throw new L(P,'not a valid xml name "'+e+'"');var t=new we;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new pe,r=t.split(":"),i=n.attributes=new M;return n.childNodes=new D,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new fe,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},p(K,q),pe.prototype={nodeType:m,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
vendor: 3,475 bytes, line 320
320,appendChild:function(e){return e.nodeType===C?this.insertBefore(e,null):he(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new R(this,(function(t){var n=[];return z(t,(function(r){r===t||r.nodeType!=m||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new R(this,(function(n){var r=[];return z(n,(function(i){i===n||i.nodeType!==m||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},K.prototype.getElementsByTagName=pe.prototype.getElementsByTagName,K.prototype.getElementsByTagNameNS=pe.prototype.getElementsByTagNameNS,p(pe,q),fe.prototype.nodeType=v,p(fe,q),me.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(x[A])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var r=this.data.substring(0,e),i=this.data.substring(e+t);n=r+n+i,this.nodeValue=this.data=n,this.length=n.length}},p(me,q),ve.prototype={nodeName:"#text",nodeType:g,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},p(ve,me),ge.prototype={nodeName:"#comment",nodeType:w},p(ge,me),ye.prototype={nodeName:"#cdata-section",nodeType:y},p(ye,me),_e.prototype.nodeType=k,p(_e,q),be.prototype.nodeType=E,p(be,q),Te.prototype.nodeType=b,p(Te,q),we.prototype.nodeType=_,p(we,q),Se.prototype.nodeName="#document-fragment",Se.prototype.nodeType=C,p(Se,q),ke.prototype.nodeType=T,p(ke,q),Ce.prototype.serializeToString=function(e,t,n,r){return Ee.call(e,t,n,r)},q.prototype.toString=Ee;try{Object.defineProperty&&(Object.defineProperty(R.prototype,"length",{get:function(){return F(this),this.$$length}}),Object.defineProperty(q.prototype,"textContent",{get:function(){if(this.nodeType===m||this.nodeType===C){var e=[];return Y(this,null,{enter:function(t){return t.nodeType===m||t.nodeType===C||(t.nodeType===T||t.nodeType===w?null:void e.push(t.nodeValue))}}),e.join("")}return this.nodeValue},set:function(e){switch(this.nodeType){case m:case C:while(this.firstChild)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Oe=function(e,t,n){e["$$"+t]=n})}catch(Ne){}t.DocumentType=_e,t.DOMException=L,t.DOMImplementation=H,t.Element=pe,t.Node=q,t.NodeList=D,t.walkDOM=Y,t.XMLSerializer=Ce},1045:function(e,t,n){"use strict";var r=n(2167).freeze;t.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=r
vendor: 28,727 bytes, line 320
320({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}),
320t.entityMap=t.HTML_ENTITIES},3969:function(e,t,n){var r=n(1146);r.DOMImplementation,r.XMLSerializer,t.DOMParser=n(6129).DOMParser},6925:function(e,t,n){var r=n(2167).NAMESPACE,i=n(2167).tagNamePattern,a=0,o=1,s=2,l=3,u=4,c=5,d=6,h=7;function p(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,p)}function f(){}function m(e,t,n,a,o){function s(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function l(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?s(parseInt(t.substr(1).replace("x","0x"))):(o.error("entity n
320ot found:"+e),e)}function u(t){if(t>E){var n=e.substring(E,t).replace(/&#?\w+;/g,l);m&&c(E),a.characters(n,0,t-E),E=t}}function c(t,n){while(t>=h&&(n=f.exec(e)))d=n.index,h=d+n[0].length,m.lineNumber++;m.columnNumber=t-d+1}var d=0,h=0,f=/.*(?:\r\n?|\n)|.*$/g,m=a.locator,T=[{currentNSMap:t}],C={},E=0;while(1){try{var I=e.indexOf("<",E);if(I<0){if(!e.substr(E).match(/^\s*$/)){var x=a.doc,A=x.createTextNode(e.substr(E));x.appendChild(A),a.currentElement=A}return}switch(I>E&&u(I),e.charAt(I+1)){case"/":var P=e.indexOf(">",I+3),$=e.substring(I+2,P).replace(/^([\s\S]*?[^ \t\n\r])?[ \t\n\r]*$/,"$1"),O=T.pop();P<0?($=e.substring(I+2).replace(/[\s<].*/,""),o.error("end tag name: "+$+" is not complete:"+O.tagName),P=I+1+$.length):$.match(/\s</)?($=$.replace(/[\s<].*/,""),o.error("end tag name: "+$+" maybe not complete"),P=I+1+$.length):/[ \t\n\r]/.test($)&&i.test($.split(/[ \t\n\r]/)[0])&&o.error('end tag name is followed by whitespace and trailing content: "'+$+'"');var N=O.localNSMap,L=O.tagName==$,D=L||O.tagName&&O.tagName.toLowerCase()==$.toLowerCase();if(D){if(a.endElement(O.uri,O.localName,$),N)for(var R in N)Object.prototype.hasOwnProperty.call(N,R)&&a.endPrefixMapping(R);L||o.fatalError("end tag name: "+$+" is not match the current start tagName:"+O.tagName)}else T.push(O);P++;break;case"?":m&&c(I),P=S(e,I,a);break;case"!":m&&c(I),P=w(e,I,a,o);break;default:m&&c(I);var F=new k,M=T[T.length-1].currentNSMap,V=(P=g(e,I,F,M,l,o),F.length);if(!F.closed&&b(e,P,F.tagName,C)&&(F.closed=!0,n.nbsp||o.warning("unclosed xml attribute")),m&&V){for(var U=v(m,{}),B=0;B<V;B++){var j=F[B];c(j.offset),j.locator=v(m,{})}a.locator=U,y(F,a,M)&&T.push(F),a.locator=m}else y(F,a,M)&&T.push(F);r.isHTML(F.uri)&&!F.closed?P=_(e,P,F.tagName,l,a):P++}}catch(W){if(W instanceof p)throw W;o.error("element parse error: "+W),P=-1}P>E?E=P:u(Math.max(I,E)+1)}}function v(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function g(e,t,n,i,p,f){function m(e,t,r){n.attributeNames.hasOwnProperty(e)&&f.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,p),r)}var v,g=++t,y=a;while(1){var _=e.charAt(g);if(y===a&&"<"===_)throw new Error("unexpected < in tag name: "+e.slice(t,g));switch(_){case"=":if(y===o)v=e.slice(t,g),y=l;else{if(y!==s)throw new Error("attribute equal must after attrName");y=l}break;case"'":case'"':if(y===l||y===o){if(y===o&&(f.warning('attribute value must after "="'),v=e.slice(t,g)),t=g+1,g=e.indexOf(_,t),!(g>0))throw new Error("attribute value no end '"+_+"' match");b=e.slice(t,g),m(v,b,t-1),y=c}else{if(y!=u)throw new Error('attribute value must after "="');b=e.slice(t,g),m(v,b,t),f.warning('attribute "'+v+'" missed start quot('+_+")!!"),t=g+1,y=c}break;case"/":switch(y){case a:n.setTagName(e.slice(t,g));case c:case d:case h:y=h,n.closed=!0;case u:case o:break;case s:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return f.error("unexpected end of input"),y==a&&n.setTagName(e.slice(t,g)),g;case">":switch(y){case a:n.setTagName(e.slice(t,g));case c:case d:case h:break;case u:case o:b=e.slice(t,g),"/"===b.slice(-1)&&(n.closed=!0,b=b.slice(0,-1));case s:y===s&&(b=v),y==u?(f.warning('attribute "'+b+'" missed quot(")!'),m(v,b,t)):(r.isHTML(i[""])&&b.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+b+'" missed value!! "'+b+'" instead!!'),m(b,b,t));break;case l:throw new Error("attribute value missed!!")}return g;case"€":_=" ";default:if(_<=" ")switch(y){case a:n.setTagName(e.slice(t,g)),y=d;break;case o:v=e.slice(t,g),y=s;break;case u:var b=e.slice(t,g);f.warning('attribute "'+b+'" missed quot(")!!'),m(v,b,t);case c:y=d;break}else switch(y){case s:n.tagName;r.isHTML(i[""])&&v.match(/^(?:disabled|checked|selected)$/i)||f.warning('attribute "'+v+'" missed value!! "'+v+'" instead2!!'),m(v,v,t),t=g,y=o;break;case c:f.warning('attribute space is required"'+v+'"!!');case d:y=o,t=g;break;case l:y=u,t=g;break;case h:throw new Error("elements closed character '/' and '>' must be connected to")}}g++}}function y(e,t,n){var i=e.tagName,a=null,o=e.length;while(o--){var s=e[o],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var d=s.prefix=l.slice(0,c),h=l.slice(c+1),p="xmlns"===d&&h;else h=l,d=null,p="xmlns"===l&&"";s.localName=h,!1!==p&&(null==a&&(a={},n=Object.create(n)),n[p]=a[p]=u,s.uri=r.XMLNS,t.startPrefixMapping(p,u))}o=e.length;while(o--){s=e[o];d=s.prefix;d&&("xml"===d&&(s.uri=r.XML),"xmlns"!==d&&(s.uri=n[d||""]))}c=i.indexOf(":");c>0?(d=e.prefix=i.slice(0,c),h=e.localName=i.slice(c+1)):(d=null,h=e.localName=i);var f=e.uri=n[d||""];if(t.startElement(f,h,i,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(f,h,i),a)for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&t.endPrefixMapping(d)}function _(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),o=e.substring(t+1,a);if(/[&<]/.test(o))return/^script$/i.test(n)?(i.characters(o,0,o.length),a):(o=o.replace(/&#?\w+;/g,r),i.characters(o,0,o.length),a)}return t+1}function b(e,t,n,r){var i=r[n];return null==i&&(i=e.lastIndexOf("</"+n+">"),i<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function T(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function w(e,t,n,r){var i=e.charAt(t+2);switch(i){case"-":if("-"===e.charAt(t+3)){var a=e.indexOf("--\x3e",t+4);return a>t?(n.comment(e,t+4,a-t-4),a+3):(r.error("Unclosed comment"),-1)}return-1;default:if("CDATA["==e.substr(t+3,6)){a=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,a-t-9),n.endCDATA(),a+3}var o=C(e,t),s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0],u=!1,c=!1;s>3&&(/^public$/i.test(o[2][0])?(u=o[3][0],c=s>4&&o[4][0]):/^system$/i.test(o[2][0])&&(c=o[3][0]));var d=o[s-1];return n.startDTD(l,u,c),n.endDTD(),d.index+d[0].length}}return-1}function S(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function k(){this.attributeNames={}}function C(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);while(n=i.exec(e))if(r.push(n),n[1])return r}p.prototype=new Error,p.prototype.name=p.name,f.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),T(t,t={}),m(e,t,n,r,this.errorHandler),r.endDocument()}},k.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=f,t.ParseError=p},9662:function(e,t,n){var r=n(614),i=n(6330),a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a function")}},9670:function(e,t,n){var r=n(111),i=String,a=TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not an object")}},1318:function(e,t,n){var r=n(5656),i=n(1400),a=n(6244),o=function(e){return function(t,n,o){var s,l=r(t),u=a(l),c=i(o,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},3658:function(e,t,n){"use strict";var r=n(9781),i=n(3157),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=s?function(e,t){if(i(e)&&!o(e,"length").writable)throw a("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},4326:function(e,t,n){var r=n(84),i=r({}.toString),a=r("".slice);e.exports=function(e){return a(i(e),8,-1)}},9920:function(e,t,n){var r=n(2597),i=n(3887),a=n(1236),o=n(3070);e.exports=function(e,t,n){for(var s=i(t),l=o.f,u=a.f,c=0;c<s.length;c++){var d=s[c];r(e,d)||n&&r(n,d)||l(e,d,u(t,d))}}},8880:function(e,t,n){var r=n(9781),i=n(3070),a=n(9114);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var r=n(614),i=n(3070),a=n(6339),o=n(3072);e.exports=function(e,t,n,s){s||(s={});var l=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&a(n,u,s),s.global)l?e[t]=n:o(t,n);else{try{s.unsafe?e[t]&&(l=!0):delete e[t]}catch(c){}
vendor: 8,711 bytes, line 320
320l?e[t]=n:i.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},3072:function(e,t,n){var r=n(7854),i=Object.defineProperty;e.exports=function(e,t){try{i(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},9781:function(e,t,n){var r=n(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n="undefined"==typeof t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:function(e,t,n){var r=n(7854),i=n(111),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},7207:function(e){var t=TypeError,n=9007199254740991;e.exports=function(e){if(e>n)throw t("Maximum allowed index exceeded");return e}},8113:function(e,t,n){var r=n(5005);e.exports=r("navigator","userAgent")||""},7392:function(e,t,n){var r,i,a=n(7854),o=n(8113),s=a.process,l=a.Deno,u=s&&s.versions||l&&l.version,c=u&&u.v8;c&&(r=c.split("."),i=r[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&o&&(r=o.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/),r&&(i=+r[1]))),e.exports=i},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var r=n(7854),i=n(1236).f,a=n(8880),o=n(8052),s=n(3072),l=n(9920),u=n(4705);e.exports=function(e,t){var n,c,d,h,p,f,m=e.target,v=e.global,g=e.stat;if(c=v?r:g?r[m]||s(m,{}):(r[m]||{}).prototype,c)for(d in t){if(p=t[d],e.dontCallGetSet?(f=i(c,d),h=f&&f.value):h=c[d],n=u(v?d:m+(g?".":"#")+d,e.forced),!n&&void 0!==h){if(typeof p==typeof h)continue;l(p,h)}(e.sham||h&&h.sham)&&a(p,"sham",!0),o(c,d,p,e)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},4374:function(e,t,n){var r=n(7293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var r=n(4374),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(e,t,n){var r=n(9781),i=n(2597),a=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,s=i(a,"name"),l=s&&"something"===function(){}.name,u=s&&(!r||r&&o(a,"name").configurable);e.exports={EXISTS:s,PROPER:l,CONFIGURABLE:u}},84:function(e,t,n){var r=n(4374),i=Function.prototype,a=i.call,o=r&&i.bind.bind(a,a);e.exports=function(e){return r?o(e):function(){return a.apply(e,arguments)}}},1702:function(e,t,n){var r=n(4326),i=n(84);e.exports=function(e){if("Function"===r(e))return i(e)}},5005:function(e,t,n){var r=n(7854),i=n(614),a=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e]):r[e]&&r[e][t]}},8173:function(e,t,n){var r=n(9662),i=n(8554);e.exports=function(e,t){var n=e[t];return i(n)?void 0:r(n)}},7854:function(e,t,n){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2597:function(e,t,n){var r=n(1702),i=n(7908),a=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},3501:function(e){e.exports={}},4664:function(e,t,n){var r=n(9781),i=n(7293),a=n(317);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var r=n(1702),i=n(7293),a=n(4326),o=Object,s=r("".split);e.exports=i((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?s(e,""):o(e)}:o},2788:function(e,t,n){var r=n(1702),i=n(614),a=n(5465),o=r(Function.toString);i(a.inspectSource)||(a.inspectSource=function(e){return o(e)}),e.exports=a.inspectSource},9909:function(e,t,n){var r,i,a,o=n(4811),s=n(7854),l=n(111),u=n(8880),c=n(2597),d=n(5465),h=n(6200),p=n(3501),f="Object already initialized",m=s.TypeError,v=s.WeakMap,g=function(e){return a(e)?i(e):r(e,{})},y=function(e){return function(t){var n;if(!l(t)||(n=i(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}};if(o||d.state){var _=d.state||(d.state=new v);_.get=_.get,_.has=_.has,_.set=_.set,r=function(e,t){if(_.has(e))throw m(f);return t.facade=e,_.set(e,t),t},i=function(e){return _.get(e)||{}},a=function(e){return _.has(e)}}else{var b=h("state");p[b]=!0,r=function(e,t){if(c(e,b))throw m(f);return t.facade=e,u(e,b,t),t},i=function(e){return c(e,b)?e[b]:{}},a=function(e){return c(e,b)}}e.exports={set:r,get:i,has:a,enforce:g,getterFor:y}},3157:function(e,t,n){var r=n(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:function(e,t,n){var r=n(4154),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===i}:function(e){return"function"==typeof e}},4705:function(e,t,n){var r=n(7293),i=n(614),a=/#|\.prototype\./,o=function(e,t){var n=l[s(e)];return n==c||n!=u&&(i(t)?r(t):!!t)},s=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},8554:function(e){e.exports=function(e){return null===e||void 0===e}},111:function(e,t,n){var r=n(614),i=n(4154),a=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===a}:function(e){return"object"==typeof e?null!==e:r(e)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var r=n(5005),i=n(614),a=n(7976),o=n(3307),s=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,s(e))}},6244:function(e,t,n){var r=n(7466);e.exports=function(e){return r(e.length)}},6339:function(e,t,n){var r=n(7293),i=n(614),a=n(2597),o=n(9781),s=n(6530).CONFIGURABLE,l=n(2788),u=n(9909),c=u.enforce,d=u.get,h=Object.defineProperty,p=o&&!r((function(){return 8!==h((function(){}),"length",{value:8}).length})),f=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||s&&e.name!==t)&&(o?h(e,"name",{value:t,configurable:!0}):e.name=t),p&&n&&a(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?o&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=c(e);return a(r,"source")||(r.source=f.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return i(this)&&d(this).source||l(this)}),"toString")},8631:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},3070:function(e,t,n){var r=n(9781),i=n(4664),a=n(3353),o=n(9670),s=n(4948),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",p="writable";t.f=r?a?function(e,t,n){if(o(e),t=s(t),o(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var r=c(e,t);r&&r[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:d in n?n[d]:r[d],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=s(t),o(n),i)try{return u(e,t,n)}catch(r){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var r=n(9781),i=n(6916),a=n(5296),o=n(9114),s=n(5656),l=n(4948),u=n(2597),c=n(4664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return o(!i(a.f,e,t),e[t])}},8006:function(e,t,n){var r=n(6324),i=n(748),a=i.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},7976:function(e,t,n){var r=n(1702);e.exports=r({}.isPrototypeOf)},6324:function(e,t,n){var r=n(1702),i=n(2597),a=n(5656),o=n(1318).indexOf,s=n(3501),l=r([].push);e.exports=function(e,t){var n,r=a(e),u=0,c=[];for(n in r)!i(s,n)&&i(r,n)&&l(c,n);while(t.length>u)i(r,n=t[u++])&&(~o(c,n)||l(c,n));return c}},5296:function(e,t){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);t.f=i?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3806:function(e,t,n){var r=n(6916),i=n(614),a=n(111),o=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&i(n=e.toString)&&!a(s=r(n,e)))return s;if(i(n=e.valueOf)&&!a(s=r(n,e)))return s;if("string"!==t&&i(n=e.toString)&&!a(s=r(n,e)))return s;throw o("Can't convert object to primitive value")}},3887:function(e,t,n){var r=n(5005),i=n(1702),a=n(8006),o=n(5181),s=n(9670),l=i([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(s(e)),n=o.f;return n?l(t,n(e)):t}},4488:function(e,t,n){var r=n(8554),i=TypeError;e.exports=function(e){if(r(e))throw i("Can't call method on "+e);return e}}
320,6200:function(e,t,n){var r=n(2309),i=n(9289),a=r("keys");e.exports=function(e){return a[e]||(a[e]=i(e))}},5465:function(e,t,n){var r=n(7854),i=n(3072),a="__core-js_shared__",o=r[a]||i(a,{});e.exports=o},2309:function(e,t,n){var r=n(1913),i=n(5465);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"})},3922:function(e,t,n){var r=n(7392),i=n(7293);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(e,t,n){var r=n(9303),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},5656:function(e,t,n){var r=n(8361),i=n(4488);e.exports=function(e){return r(i(e))}},9303:function(e,t,n){var r=n(8631);e.exports=function(e){var t=+e;return t!==t||0===t?0:r(t)}},7466:function(e,t,n){var r=n(9303),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},7908:function(e,t,n){var r=n(4488),i=Object;e.exports=function(e){return i(r(e))}},7593:function(e,t,n){var r=n(6916),i=n(111),a=n(2190),o=n(8173),s=n(3806),l=n(5112),u=TypeError,c=l("toPrimitive");e.exports=function(e,t){if(!i(e)||a(e))return e;var n,l=o(e,c);if(l){if(void 0===t&&(t="default"),n=r(l,e,t),!i(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},4948:function(e,t,n){var r=n(7593),i=n(2190);e.exports=function(e){var t=r(e,"string");return i(t)?t:t+""}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(n){return"Object"}}},9289:function(e,t,n){var r=n(1702),i=0,a=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++i+a,36)}},3307:function(e,t,n){var r=n(3922);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var r=n(9781),i=n(7293);e.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var r=n(7854),i=n(614),a=r.WeakMap;e.exports=i(a)&&/native code/.test(String(a))},5112:function(e,t,n){var r=n(7854),i=n(2309),a=n(2597),o=n(9289),s=n(3922),l=n(3307),u=i("wks"),c=r.Symbol,d=c&&c["for"],h=l?c:c&&c.withoutSetter||o;e.exports=function(e){if(!a(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&a(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):h(t)}return u[e]}},7658:function(e,t,n){"use strict";var r=n(2109),i=n(7908),a=n(6244),o=n(3658),s=n(7207),l=n(7293),u=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:u||c},{push:function(e){var t=i(this),n=a(t),r=arguments.length;s(n+r);for(var l=0;l<r;l++)t[n]=arguments[l],n++;return o(t,n),n}})},9144:function(e,t,n){var r,i="undefined"!==typeof n.g?n.g:"undefined"!==typeof window?window:{},a=n(5893);"undefined"!==typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=r},8908:function(e,t,n){var r;r="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},e.exports=r},7376:function(e){e.exports=n;var t=Object.prototype.toString;function n(e){if(!e)return!1;var n=t.call(e);return"[object Function]"===n||"function"===typeof e&&"[object RegExp]"!==n||"undefined"!==typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}},7537:function(e,t){function n(e){if(e&&"object"===typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"===typeof e)return o[e];var n=String(e),a=r[n.toLowerCase()];if(a)return a;a=i[n.toLowerCase()];return a||(1===n.length?n.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"===typeof e){var n=e.which||e.keyCode||e.charCode;if(null===n||void 0===n)return!1;if("string"===typeof t){var a=r[t.toLowerCase()];if(a)return a===n;a=i[t.toLowerCase()];if(a)return a===n}else if("number"===typeof t)return t===n;return!1}},t=e.exports=n;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};
321/*!
322 * Programatically add the following
323 */
324for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r["f"+a]=a+111;for(a=0;a<10;a++)r["numpad "+a]=a+96;var o=t.names=t.title={};for(a in r)o[r[a]]=a;for(var s in i)r[s]=i[s]},9483:function(e,t,n){
325/*!
326    localForage -- Offline Storage, Improved
327    Version 1.9.0
328    https://localforage.github.io/localForage
329    (c) 2013-2017 Mozilla, Apache License 2.0
330*/
331(function(t){e.exports=t()})((function(){return function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){var l=void 0;if(!s&&l)return require(o,!0);if(a)return a(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){var n=t[o][1][e];return i(n||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var a=void 0,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(e,t,r){(function(e){"use strict";var n,r,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}
331),n=function(){s.data=a=++a%2}}else if(e.setImmediate||"undefined"===typeof e.MessageChannel)n="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;r=!0;var n=u.length;while(n){t=u,u=[],e=-1;while(++e<n)t[e]();n=u.length}r=!1}function d(e){1!==u.push(e)||r||n()}t.exports=d}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],2:[function(e,t,n){"use strict";var r=e(1);function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!==typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function c(e,t,n){this.promise=e,"function"===typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"===typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(e,t,n){r((function(){var r;try{r=t(n)}catch(i){return a.reject(e,i)}r===e?a.reject(e,new TypeError("Cannot resolve promise with itself")):a.resolve(e,r)}))}function h(e){var t=e&&e.then;if(e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof t)return function(){t.apply(e,arguments)}}function p(e,t){var n=!1;function r(t){n||(n=!0,a.reject(e,t))}function i(t){n||(n=!0,a.resolve(e,t))}function o(){t(i,r)}var s=f(o);"error"===s.status&&r(s.value)}function f(e,t){var n={};try{n.value=e(t),n.status="success"}catch(r){n.status="error",n.value=r}return n}function m(e){return e instanceof this?e:a.resolve(new this(i),e)}function v(e){var t=new this(i);return a.reject(t,e)}function g(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var o=new Array(n),s=0,l=-1,u=new this(i);while(++l<n)c(e[l],l);return u;function c(e,i){function l(e){o[i]=e,++s!==n||r||(r=!0,a.resolve(u,o))}t.resolve(e).then(l,(function(e){r||(r=!0,a.reject(u,e))}))}}function y(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var n=e.length,r=!1;if(!n)return this.resolve([]);var o=-1,s=new this(i);while(++o<n)l(e[o]);return s;function l(e){t.resolve(e).then((function(e){r||(r=!0,a.resolve(s,e))}),(function(e){r||(r=!0,a.reject(s,e))}))}}t.exports=u,u.prototype["catch"]=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!==typeof e&&this.state===s||"function"!==typeof t&&this.state===o)return this;var n=new this.constructor(i);if(this.state!==l){var r=this.state===s?e:t;d(n,r,this.outcome)}else this.queue.push(new c(n,e,t));return n},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var n=f(h,t);if("error"===n.status)return a.reject(e,n.value);var r=n.value;if(r)p(e,r);else{e.state=s,e.outcome=t;var i=-1,o=e.queue.length;while(++i<o)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;var n=-1,r=e.queue.length;while(++n<r)e.queue[n].callRejected(t);return e},u.resolve=m,u.reject=v,u.all=g,u.race=y},{1:1}],3:[function(e,t,r){(function(t){"use strict";"function"!==typeof t.Promise&&(t.Promise=e(2))}).call(this,"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{2:2}],4:[function(e,t,n){"use strict";var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(){try{if("undefined"!==typeof indexedDB)return indexedDB;if("undefined"!==typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!==typeof mozIndexedDB)return mozIndexedDB;if("undefined"!==typeof OIndexedDB)return OIndexedDB;if("undefined"!==typeof msIndexedDB)return msIndexedDB}catch(e){return}}var o=a();function s(){try{if(!o||!o.open)return!1;var e="undefined"!==typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),t="function"===typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!e||t)&&"undefined"!==typeof indexedDB&&"undefined"!==typeof IDBKeyRange}catch(n){return!1}}function l(e,t){e=e||[],t=t||{};try{return new Blob(e,t)}catch(a){if("TypeError"!==a.name)throw a;for(var n="undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof MSBlobBuilder?MSBlobBuilder:"undefined"!==typeof MozBlobBuilder?MozBlobBuilder:WebKitBlobBuilder,r=new n,i=0;i<e.length;i+=1)r.append(e[i]);return r.getBlob(t.type)}}"undefined"===typeof Promise&&e(3);var u=Promise;function c(e,t){t&&e.then((function(e){t(null,e)}),(function(e){t(e)}))}function d(e,t,n){"function"===typeof t&&e.then(t),"function"===typeof n&&e["catch"](n)}function h(e){return"string"!==typeof e&&(console.warn(e+" used as a key, but it is not a string."),e=String(e)),e}function p(){if(arguments.length&&"function"===typeof arguments[arguments.length-1])return arguments[arguments.length-1]}var f="local-forage-detect-blob-support",m=void 0,v={},g=Object.prototype.toString,y="readonly",_="readwrite";function b(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),i=0;i<t;i++)r[i]=e.charCodeAt(i);return n}function T(e){return new u((function(t){var n=e.transaction(f,_),r=l([""]);n.objectStore(f).put(r,"key"),n.onabort=function(e){e.preventDefault(),e.stopPropagation(),t(!1)},n.oncomplete=function(){var e=navigator.userAgent.match(/Chrome\/(\d+)/),n=navigator.userAgent.match(/Edge\//);t(n||!e||parseInt(e[1],10)>=43)}}))["catch"]((function(){return!1}))}function w(e){return"boolean"===typeof m?u.resolve(m):T(e).then((function(e){return m=e,m}))}function S(e){var t=v[e.name],n={};n.promise=new u((function(e,t){n.resolve=e,n.reject=t})),t.deferredOperations.push(n),t.dbReady?t.dbReady=t.dbReady.then((function(){return n.promise})):t.dbReady=n.promise}function k(e){var t=v[e.name],n=t.deferredOperations.pop();if(n)return n.resolve(),n.promise}function C(e,t){var n=v[e.name],r=n.deferredOperations.pop();if(r)return r.reject(t),r.promise}function E(e,t){return new u((function(n,r){if(v[e.name]=v[e.name]||R(),e.db){if(!t)return n(e.db);S(e),e.db.close()}var i=[e.name];t&&i.push(e.version);var a=o.open.apply(o,i);t&&(a.onupgradeneeded=function(t){var n=a.result;try{n.createObjectStore(e.storeName),t.oldVersion<=1&&n.createObjectStore(f)}catch(r){if("ConstraintError"!==r.name)throw r;console.warn('The database "'+e.name+'" has been upgraded from version '+t.oldVersion+" to version "+t.newVersion+', but the storage "'+e.storeName+'" already exists.')}}),a.onerror=function(e){e.preventDefault(),r(a.error)},a.onsuccess=function(){n(a.result),k(e)}}))}function I(e){return E(e,!1)}function x(e){return E(e,!0)}function A(e,t){if(!e.db)return!0;var n=!e.db.objectStoreNames.contains(e.storeName),r=e.version<e.db.version,i=e.version>e.db.version;if(r&&(e.version!==t&&console.warn('The database "'+e.name+"\" can't be downgraded from version "+e.db.version+" to version "+e.version+"."),e.version=e.db.version),i||n){if(n){var a=e.db.version+1;a>e.version&&(e.version=a)}return!0}return!1}function P(e){return new u((function(t,n){var r=new FileReader;r.onerror=n,r.onloadend=function(n){var r=btoa(n.target.result||"");t({__local_forage_encoded_blob:!0,data:r,type:e.type})},r.readAsBinaryString(e)}))}function $(e){var t=b(atob(e.data));return l([t],{type:e.type})}function O(e){return e&&e.__local_forage_encoded_blob}function N(e){var t=this,n=t._initReady().then((function(){var e=v[t._dbInfo.name];if(e&&e.dbReady)return e.dbReady}));return d(n,e,e),n}function L(e){S(e);for(var t=v[e.name],n=t.forages,r=0;r<n.length;r++){var i=n[r];i._dbInfo.db&&(i._dbInfo.db.close(),i._dbInfo.db=null)}return e.db=null,I(e).then((function(t){return e.db=t,A(e)?x(e):t})).then((function(r){e.db=t.db=r;
vendor: 16,329 bytes, line 331
331for(var i=0;i<n.length;i++)n[i]._dbInfo.db=r}))["catch"]((function(t){throw C(e,t),t}))}function D(e,t,n,r){void 0===r&&(r=1);try{var i=e.db.transaction(e.storeName,t);n(null,i)}catch(a){if(r>0&&(!e.db||"InvalidStateError"===a.name||"NotFoundError"===a.name))return u.resolve().then((function(){if(!e.db||"NotFoundError"===a.name&&!e.db.objectStoreNames.contains(e.storeName)&&e.version<=e.db.version)return e.db&&(e.version=e.db.version+1),x(e)})).then((function(){return L(e).then((function(){D(e,t,n,r-1)}))}))["catch"](n);n(a)}}function R(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function F(e){var t=this,n={db:null};if(e)for(var r in e)n[r]=e[r];var i=v[n.name];i||(i=R(),v[n.name]=i),i.forages.push(t),t._initReady||(t._initReady=t.ready,t.ready=N);var a=[];function o(){return u.resolve()}for(var s=0;s<i.forages.length;s++){var l=i.forages[s];l!==t&&a.push(l._initReady()["catch"](o))}var c=i.forages.slice(0);return u.all(a).then((function(){return n.db=i.db,I(n)})).then((function(e){return n.db=e,A(n,t._defaultConfig.version)?x(n):e})).then((function(e){n.db=i.db=e,t._dbInfo=n;for(var r=0;r<c.length;r++){var a=c[r];a!==t&&(a._dbInfo.db=n.db,a._dbInfo.version=n.version)}}))}function M(e,t){var n=this;e=h(e);var r=new u((function(t,r){n.ready().then((function(){D(n._dbInfo,y,(function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=o.get(e);s.onsuccess=function(){var e=s.result;void 0===e&&(e=null),O(e)&&(e=$(e)),t(e)},s.onerror=function(){r(s.error)}}catch(l){r(l)}}))}))["catch"](r)}));return c(r,t),r}function V(e,t){var n=this,r=new u((function(t,r){n.ready().then((function(){D(n._dbInfo,y,(function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=o.openCursor(),l=1;s.onsuccess=function(){var n=s.result;if(n){var r=n.value;O(r)&&(r=$(r));var i=e(r,n.key,l++);void 0!==i?t(i):n["continue"]()}else t()},s.onerror=function(){r(s.error)}}catch(u){r(u)}}))}))["catch"](r)}));return c(r,t),r}function U(e,t,n){var r=this;e=h(e);var i=new u((function(n,i){var a;r.ready().then((function(){return a=r._dbInfo,"[object Blob]"===g.call(t)?w(a.db).then((function(e){return e?t:P(t)})):t})).then((function(t){D(r._dbInfo,_,(function(a,o){if(a)return i(a);try{var s=o.objectStore(r._dbInfo.storeName);null===t&&(t=void 0);var l=s.put(t,e);o.oncomplete=function(){void 0===t&&(t=null),n(t)},o.onabort=o.onerror=function(){var e=l.error?l.error:l.transaction.error;i(e)}}catch(u){i(u)}}))}))["catch"](i)}));return c(i,n),i}function B(e,t){var n=this;e=h(e);var r=new u((function(t,r){n.ready().then((function(){D(n._dbInfo,_,(function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=o["delete"](e);a.oncomplete=function(){t()},a.onerror=function(){r(s.error)},a.onabort=function(){var e=s.error?s.error:s.transaction.error;r(e)}}catch(l){r(l)}}))}))["catch"](r)}));return c(r,t),r}function j(e){var t=this,n=new u((function(e,n){t.ready().then((function(){D(t._dbInfo,_,(function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName),o=a.clear();i.oncomplete=function(){e()},i.onabort=i.onerror=function(){var e=o.error?o.error:o.transaction.error;n(e)}}catch(s){n(s)}}))}))["catch"](n)}));return c(n,e),n}function W(e){var t=this,n=new u((function(e,n){t.ready().then((function(){D(t._dbInfo,y,(function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName),o=a.count();o.onsuccess=function(){e(o.result)},o.onerror=function(){n(o.error)}}catch(s){n(s)}}))}))["catch"](n)}));return c(n,e),n}function H(e,t){var n=this,r=new u((function(t,r){e<0?t(null):n.ready().then((function(){D(n._dbInfo,y,(function(i,a){if(i)return r(i);try{var o=a.objectStore(n._dbInfo.storeName),s=!1,l=o.openKeyCursor();l.onsuccess=function(){var n=l.result;n?0===e||s?t(n.key):(s=!0,n.advance(e)):t(null)},l.onerror=function(){r(l.error)}}catch(u){r(u)}}))}))["catch"](r)}));return c(r,t),r}function q(e){var t=this,n=new u((function(e,n){t.ready().then((function(){D(t._dbInfo,y,(function(r,i){if(r)return n(r);try{var a=i.objectStore(t._dbInfo.storeName),o=a.openKeyCursor(),s=[];o.onsuccess=function(){var t=o.result;t?(s.push(t.key),t["continue"]()):e(s)},o.onerror=function(){n(o.error)}}catch(l){n(l)}}))}))["catch"](n)}));return c(n,e),n}function G(e,t){t=p.apply(this,arguments);var n=this.config();e="function"!==typeof e&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;if(e.name){var a=e.name===n.name&&i._dbInfo.db,s=a?u.resolve(i._dbInfo.db):I(e).then((function(t){var n=v[e.name],r=n.forages;n.db=t;for(var i=0;i<r.length;i++)r[i]._dbInfo.db=t;return t}));r=e.storeName?s.then((function(t){if(t.objectStoreNames.contains(e.storeName)){var n=t.version+1;S(e);var r=v[e.name],i=r.forages;t.close();for(var a=0;a<i.length;a++){var s=i[a];s._dbInfo.db=null,s._dbInfo.version=n}var l=new u((function(t,r){var i=o.open(e.name,n);i.onerror=function(e){var t=i.result;t.close(),r(e)},i.onupgradeneeded=function(){var t=i.result;t.deleteObjectStore(e.storeName)},i.onsuccess=function(){var e=i.result;e.close(),t(e)}}));return l.then((function(e){r.db=e;for(var t=0;t<i.length;t++){var n=i[t];n._dbInfo.db=e,k(n._dbInfo)}}))["catch"]((function(t){throw(C(e,t)||u.resolve())["catch"]((function(){})),t}))}})):s.then((function(t){S(e);var n=v[e.name],r=n.forages;t.close();for(var i=0;i<r.length;i++){var a=r[i];a._dbInfo.db=null}var s=new u((function(t,n){var r=o.deleteDatabase(e.name);r.onerror=r.onblocked=function(e){var t=r.result;t&&t.close(),n(e)},r.onsuccess=function(){var e=r.result;e&&e.close(),t(e)}}));return s.then((function(e){n.db=e;for(var t=0;t<r.length;t++){var i=r[t];k(i._dbInfo)}}))["catch"]((function(t){throw(C(e,t)||u.resolve())["catch"]((function(){})),t}))}))}else r=u.reject("Invalid arguments");return c(r,t),r}var z={_driver:"asyncStorage",_initStorage:F,_support:s(),iterate:V,getItem:M,setItem:U,removeItem:B,clear:j,length:W,key:H,keys:q,dropInstance:G};function Y(){return"function"===typeof openDatabase}var K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X="~~local_forage_type~",J=/^~~local_forage_type~([^~]+)~/,Z="__lfsc__:",Q=Z.length,ee="arbf",te="blob",ne="si08",re="ui08",ie="uic8",ae="si16",oe="si32",se="ur16",le="ui32",ue="fl32",ce="fl64",de=Q+ee.length,he=Object.prototype.toString;function pe(e){var t,n,r,i,a,o=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);var u=new ArrayBuffer(o),c=new Uint8Array(u);for(t=0;t<s;t+=4)n=K.indexOf(e[t]),r=K.indexOf(e[t+1]),i=K.indexOf(e[t+2]),a=K.indexOf(e[t+3]),c[l++]=n<<2|r>>4,c[l++]=(15&r)<<4|i>>2,c[l++]=(3&i)<<6|63&a;return u}function fe(e){var t,n=new Uint8Array(e),r="";for(t=0;t<n.length;t+=3)r+=K[n[t]>>2],r+=K[(3&n[t])<<4|n[t+1]>>4],r+=K[(15&n[t+1])<<2|n[t+2]>>6],r+=K[63&n[t+2]];return n.length%3===2?r=r.substring(0,r.length-1)+"=":n.length%3===1&&(r=r.substring(0,r.length-2)+"=="),r}function me(e,t){var n="";if(e&&(n=he.call(e)),e&&("[object ArrayBuffer]"===n||e.buffer&&"[object ArrayBuffer]"===he.call(e.buffer))){var r,i=Z;e instanceof ArrayBuffer?(r=e,i+=ee):(r=e.buffer,"[object Int8Array]"===n?i+=ne:"[object Uint8Array]"===n?i+=re:"[object Uint8ClampedArray]"===n?i+=ie:"[object Int16Array]"===n?i+=ae:"[object Uint16Array]"===n?i+=se:"[object Int32Array]"===n?i+=oe:"[object Uint32Array]"===n?i+=le:"[object Float32Array]"===n?i+=ue:"[object Float64Array]"===n?i+=ce:t(new Error("Failed to get type for BinaryArray"))),t(i+fe(r))}else if("[object Blob]"===n){var a=new FileReader;a.onload=function(){var n=X+e.type+"~"+fe(this.result);t(Z+te+n)},a.readAsArrayBuffer(e)}else try{t(JSON.stringify(e))}catch(o){console.error("Couldn't convert value into a JSON string: ",e),t(null,o)}}function ve(e){if(e.substring(0,Q)!==Z)return JSON.parse(e);var t,n=e.substring(de),r=e.substring(Q,de);if(r===te&&J.test(n)){var i=n.match(J);t=i[1],n=n.substring(i[0].length)}var a=pe(n);switch(r){case ee:return a;case te:return l([a],{type:t});case ne:return new Int8Array(a);case re:return new Uint8Array(a);case ie:return new Uint8ClampedArray(a);case ae:return new Int16Array(a);case se:return new Uint16Array(a);case oe:return new Int32Array(a);case le:return new Uint32Array(a);case ue:return new Float32Array(a);case ce:return new Float64Array(a);default:throw new Error("Unkown type: "+r)}}var ge={serialize:me,deserialize:ve,stringToBuffer:pe,bufferToString:fe};function ye(e,t,n,r){e.executeSql("CREATE TABLE IF NOT EXISTS "+t.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],n,r)}function _e(e){var t=this,n={db:null};if(e)for(var r in e)n[r]="string"!==typeof e[r]?e[r].toString():e[r];var i=new u((function(e,r){try{n.db=openDatabase(n.name,String(n.version),n.description,n.size)}catch(i){return r(i)}n.db.transaction((function(i){ye(i,n,(function(){t._dbInfo=n,e()}),(function(e,t){r(t)}))}),r)}));return n.serializer=ge,i}function be(e,t,n,r,i,a){e.executeSql(n,r,i,(function(e,o){o.code===o.SYNTAX_ERR?e.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[t.storeName],(function(e,s){s.rows.length?a(e,o):ye(e,t,(function(){e.executeSql(n,r,i,a)}),a)}),a):a(e,o)}),a)}function Te(e,t){var n=this;e=h(e);var r=new u((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"SELECT * FROM "+i.storeName+" WHERE key = ? LIMIT 1",[e],(function(e,n){var r=n.rows.length?n.rows.item(0).value:null;r&&(r=i.serializer.deserialize(r)),t(r)}),(function(e,t){r(t)}))}))}))["catch"](r)}));return c(r,t),r}function we(e,t){var n=this,r=new u((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"SELECT * FROM "+i.storeName,[],(function(n,r){for(var a=r.rows,o=a.length,s=0;s<o;s++){var l=a.item(s),u=l.value;if(u&&(u=i.serializer.deserialize(u)),u=e(u,l.key,s+1),void 0!==u)return void t(u)}t()}),(function(e,t){r(t)}))}))}))["catch"](r)}));return c(r,t),r}function Se(e,t,n,r){var i=this;e=h(e);var a=new u((function(a,o){i.ready().then((function(){void 0===t&&(t=null);var s=t,l=i._dbInfo;l.serializer.serialize(t,(function(t,u){u?o(u):l.db.transaction((function(n){be(n,l,"INSERT OR REPLACE INTO "+l.storeName+" (key, value) VALUES (?, ?)",[e,t],(function(){a(s)}),(function(e,t){o(t)}))}),(function(t){if(t.code===t.QUOTA_ERR){if(r>0)return void a(Se.apply(i,[e,s,n,r-1]));o(t)}}))}))}))["catch"](o)}));return c(a,n),a}function ke(e,t,n){return Se.apply(this,[e,t,n,1])}function Ce(e,t){var n=this;e=h(e);var r=new u((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"DELETE FROM "+i.storeName+" WHERE key = ?",[e],(function(){t()}),(function(e,t){r(t)}))}))}))["catch"](r)}));return c(r,t),r}function Ee(e){var t=this,n=new u((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){be(t,r,"DELETE FROM "+r.storeName,[],(function(){e()}),(function(e,t){n(t)}))}))}))["catch"](n)}));return c(n,e),n}function Ie(e){var t=this,n=new u((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){be(t,r,"SELECT COUNT(key) as c FROM "+r.storeName,[],(function(t,n){var r=n.rows.item(0).c;e(r)}),(function(e,t){n(t)}))}))}))["catch"](n)}));return c(n,e),n}function xe(e,t){var n=this,r=new u((function(t,r){n.ready().then((function(){var i=n._dbInfo;i.db.transaction((function(n){be(n,i,"SELECT key FROM "+i.storeName+" WHERE id = ? LIMIT 1",[e+1],(function(e,n){var r=n.rows.length?n.rows.item(0).key:null;t(r)}),(function(e,t){r(t)}))}))}))["catch"](r)}));return c(r,t),r}function Ae(e){var t=this,n=new u((function(e,n){t.ready().then((function(){var r=t._dbInfo;r.db.transaction((function(t){be(t,r,"SELECT key FROM "+r.storeName,[],(function(t,n){for(var r=[],i=0;i<n.rows.length;i++)r.push(n.rows.item(i).key);e(r)}),(function(e,t){n(t)}))}))}))["catch"](n)}));return c(n,e),n}function Pe(e){return new u((function(t,n){e.transaction((function(r){r.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],(function(n,r){for(var i=[],a=0;a<r.rows.length;a++)i.push(r.rows.item(a).name);t({db:e,storeNames:i})}),(function(e,t){n(t)}))}),(function(e){n(e)}))}))}function $e(e,t){t=p.apply(this,arguments);var n=this.config();e="function"!==typeof e&&e||{},e.name||(e.name=e.name||n.name,e.storeName=e.storeName||n.storeName);var r,i=this;return r=e.name?new u((function(t){var r;r=e.name===n.name?i._dbInfo.db:openDatabase(e.name,"","",0),e.storeName?t({db:r,storeNames:[e.storeName]}):t(Pe(r))})).then((function(e){return new u((function(t,n){e.db.transaction((function(r){function i(e){return new u((function(t,n){r.executeSql("DROP TABLE IF EXISTS "+e,[],(function(){t()}),(function(e,t){n(t)}))}))}for(var a=[],o=0,s=e.storeNames.length;o<s;o++)a.push(i(e.storeNames[o]));u.all(a).then((function(){t()}))["catch"]((function(e){n(e)}))}),(function(e){n(e)}))}))})):u.reject("Invalid arguments"),c(r,t),r}var Oe={_driver:"webSQLStorage",_initStorage:_e,_support:Y(),iterate:we,getItem:Te,setItem:ke,removeItem:Ce,clear:Ee,length:Ie,key:xe,keys:Ae,dropInstance:$e};function Ne(){try{return"undefined"!==typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(e){return!1}}function Le(e,t){var n=e.name+"/";return e.storeName!==t.storeName&&(n+=e.storeName+"/"),n}function De(){var e="_localforage_support_test";try{return localStorage.setItem(e,!0),localStorage.removeItem(e),!1}catch(t){return!0}}function Re(){return!De()||localStorage.length>0}function Fe(e){var t=this,n={};if(e)for(var r in e)n[r]=e[r];return n.keyPrefix=Le(e,t._defaultConfig),Re()?(t._dbInfo=n,n.serializer=ge,u.resolve()):u.reject()}function Me(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo.keyPrefix,n=localStorage.length-1;n>=0;n--){var r=localStorage.key(n);0===r.indexOf(e)&&localStorage.removeItem(r)}}));return c(n,e),n}function Ve(e,t){var n=this;e=h(e);var r=n.ready().then((function(){var t=n._dbInfo,r=localStorage.getItem(t.keyPrefix+e);return r&&(r=t.serializer.deserialize(r)),r}));return c(r,t),r}function Ue(e,t){var n=this,r=n.ready().then((function(){for(var t=n._dbInfo,r=t.keyPrefix,i=r.length,a=localStorage.length,o=1,s=0;s<a;s++){var l=localStorage.key(s);if(0===l.indexOf(r)){var u=localStorage.getItem(l);if(u&&(u=t.serializer.deserialize(u)),u=e(u,l.substring(i),o++),void 0!==u)return u}}}));return c(r,t),r}function Be(e,t){var n=this,r=n.ready().then((function(){var t,r=n._dbInfo;try{t=localStorage.key(e)}catch(i){t=null}return t&&(t=t.substring(r.keyPrefix.length)),t}));return c(r,t),r}function je(e){var t=this,n=t.ready().then((function(){for(var e=t._dbInfo,n=localStorage.length,r=[],i=0;i<n;i++){var a=localStorage.key(i);0===a.indexOf(e.keyPrefix)&&r.push(a.substring(e.keyPrefix.length))}return r}));return c(n,e),n}function We(e){var t=this,n=t.keys().then((function(e){return e.length}));return c(n,e),n}function He(e,t){var n=this;e=h(e);var r=n.ready().then((function(){var t=n._dbInfo;localStorage.removeItem(t.keyPrefix+e)}));return c(r,t),r}function qe(e,t,n){var r=this;e=h(e);var i=r.ready().then((function(){void 0===t&&(t=null);var n=t;return new u((function(i,a){var o=r._dbInfo;o.serializer.serialize(t,(function(t,r){if(r)a(r);else try{localStorage.setItem(o.keyPrefix+e,t),i(n)}catch(s){"QuotaExceededError"!==s.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==s.name||a(s),a(s)}}))}))}));return c(i,n),i}function Ge(e,t){if(t=p.apply(this,arguments),e="function"!==typeof e&&e||{},!e.name){var n=this.config();e.name=e.name||n.name,e.storeName=e.storeName||n.storeName}var r,i=this;return r=e.name?new u((function(t){e.storeName?t(Le(e,i._defaultConfig)):t(e.name+"/")})).then((function(e){for(var t=localStorage.length-1;t>=0;t--){var n=localStorage.key(t);0===n.indexOf(e)&&localStorage.removeItem(n)}})):u.reject("Invalid arguments"),c(r,t),r}var ze={_driver:"localStorageWrapper",_initStorage:Fe,_support:Ne(),iterate:Ue,getItem:Ve,setItem:qe,removeItem:He,clear:Me,length:We,key:Be,keys:je,dropInstance:Ge},Ye=function(e,t){return e===t||"number"===typeof e&&"number"===typeof t&&isNaN(e)&&isNaN(t)},Ke=function(e,t){var n=e.length,r=0;while(r<n){if(Ye(e[r],t))return!0;r++}return!1},Xe=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Je={},Ze={},Qe={INDEXEDDB:z,WEBSQL:Oe,LOCALSTORAGE:ze},et=[Qe.INDEXEDDB._driver,Qe.WEBSQL._driver,Qe.LOCALSTORAGE._driver],tt
331=["dropInstance"],nt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(tt),rt={description:"",driver:et.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function it(e,t){e[t]=function(){var n=arguments;return e.ready().then((function(){return e[t].apply(e,n)}))}}function at(){for(var e=1;e<arguments.length;e++){var t=arguments[e];if(t)for(var n in t)t.hasOwnProperty(n)&&(Xe(t[n])?arguments[0][n]=t[n].slice():arguments[0][n]=t[n])}return arguments[0]}var ot=function(){function e(t){for(var n in i(this,e),Qe)if(Qe.hasOwnProperty(n)){var r=Qe[n],a=r._driver;this[n]=a,Je[a]||this.defineDriver(r)}this._defaultConfig=at({},rt),this._config=at({},this._defaultConfig,t),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver)["catch"]((function(){}))}return e.prototype.config=function(e){if("object"===("undefined"===typeof e?"undefined":r(e))){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var t in e){if("storeName"===t&&(e[t]=e[t].replace(/\W/g,"_")),"version"===t&&"number"!==typeof e[t])return new Error("Database version must be a number.");this._config[t]=e[t]}return!("driver"in e)||!e.driver||this.setDriver(this._config.driver)}return"string"===typeof e?this._config[e]:this._config},e.prototype.defineDriver=function(e,t,n){var r=new u((function(t,n){try{var r=e._driver,i=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!e._driver)return void n(i);for(var a=nt.concat("_initStorage"),o=0,s=a.length;o<s;o++){var l=a[o],d=!Ke(tt,l);if((d||e[l])&&"function"!==typeof e[l])return void n(i)}var h=function(){for(var t=function(e){return function(){var t=new Error("Method "+e+" is not implemented by the current driver"),n=u.reject(t);return c(n,arguments[arguments.length-1]),n}},n=0,r=tt.length;n<r;n++){var i=tt[n];e[i]||(e[i]=t(i))}};h();var p=function(n){Je[r]&&console.info("Redefining LocalForage driver: "+r),Je[r]=e,Ze[r]=n,t()};"_support"in e?e._support&&"function"===typeof e._support?e._support().then(p,n):p(!!e._support):p(!0)}catch(f){n(f)}}));return d(r,t,n),r},e.prototype.driver=function(){return this._driver||null},e.prototype.getDriver=function(e,t,n){var r=Je[e]?u.resolve(Je[e]):u.reject(new Error("Driver not found."));return d(r,t,n),r},e.prototype.getSerializer=function(e){var t=u.resolve(ge);return d(t,e),t},e.prototype.ready=function(e){var t=this,n=t._driverSet.then((function(){return null===t._ready&&(t._ready=t._initDriver()),t._ready}));return d(n,e,e),n},e.prototype.setDriver=function(e,t,n){var r=this;Xe(e)||(e=[e]);var i=this._getSupportedDrivers(e);function a(){r._config.driver=r.driver()}function o(e){return r._extend(e),a(),r._ready=r._initStorage(r._config),r._ready}function s(e){return function(){var t=0;function n(){while(t<e.length){var i=e[t];return t++,r._dbInfo=null,r._ready=null,r.getDriver(i).then(o)["catch"](n)}a();var s=new Error("No available storage method found.");return r._driverSet=u.reject(s),r._driverSet}return n()}}var l=null!==this._driverSet?this._driverSet["catch"]((function(){return u.resolve()})):u.resolve();return this._driverSet=l.then((function(){var e=i[0];return r._dbInfo=null,r._ready=null,r.getDriver(e).then((function(e){r._driver=e._driver,a(),r._wrapLibraryMethodsWithReady(),r._initDriver=s(i)}))}))["catch"]((function(){a();var e=new Error("No available storage method found.");return r._driverSet=u.reject(e),r._driverSet})),d(this._driverSet,t,n),this._driverSet},e.prototype.supports=function(e){return!!Ze[e]},e.prototype._extend=function(e){at(this,e)},e.prototype._getSupportedDrivers=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];this.supports(i)&&t.push(i)}return t},e.prototype._wrapLibraryMethodsWithReady=function(){for(var e=0,t=nt.length;e<t;e++)it(this,nt[e])},e.prototype.createInstance=function(t){return new e(t)},e}(),st=new ot;t.exports=st},{3:3}]},{},[4])(4)}))},9773:function(){},4221:function(e,t,n){var r=n(6894).getUint64,i=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===n.version?(n.earliestPresentationTime=t.getUint32(i),n.firstOffset=t.getUint32(i+4),i+=8):(n.earliestPresentationTime=r(e.subarray(i)),n.firstOffset=r(e.subarray(i+8)),i+=16),i+=2;var a=t.getUint16(i);for(i+=2;a>0;i+=12,a--)n.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return n};e.exports=i},1489:function(e){var t,n,r,i,a,o,s,l=9e4;t=function(e){return e*l},n=function(e,t){return e*t},r=function(e){return e/l},i=function(e,t){return e/t},a=function(e,n){return t(i(e,n))},o=function(e,t){return n(r(e),t)},s=function(e,t,n){return r(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:t,secondsToAudioTs:n,videoTsToSeconds:r,audioTsToSeconds:i,audioTsToVideoTs:a,videoTsToAudioTs:o,metadataTsToSeconds:s}},6894:function(e){var t=Math.pow(2,32),n=function(e){var n,r=new DataView(e.buffer,e.byteOffset,e.byteLength);return r.getBigUint64?(n=r.getBigUint64(0),n<Number.MAX_SAFE_INTEGER?
331Number(n):n):r.getUint32(0)*t+r.getUint32(4)};e.exports={getUint64:n,MAX_UINT32:t}},5974:function(e){function t(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(i){r=i}return[r,n]}e.exports=t},4863:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports["default"]=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0},9945:function(e){(function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,r=/^([^\/?#]*)([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):t;var s=o.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=o.normalizePath(d)}else u.path=s.path,a.params||(u.params=s.params,a.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){e=e.split("").reverse().join("").replace(i,"");while(e.length!==(e=e.replace(a,"")).length);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=o})()},9532:function(e,t,n){"use strict";n.d(t,{Z:function(){return fp}});var r=n(8908),i=n.n(r),a=n(9144),o=n.n(a);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}var l=n(7537),u=n.n(l);function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}var p=n(5974),f=n.n(p),m=n(9603),v=n.n(m),g=n(3407),y=n.n(g);n(7658);function _(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function b(e,t,n){return b=_()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),a=new i;return n&&d(a,n.prototype),a},b.apply(null,arguments)}function T(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}var w=n(9945),S=n.n(w),k="http://example.com",C=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=i().location&&i().location.href||"");var n="function"===typeof i().URL,r=/^\/\//.test(e),a=!i().location&&!/\/\//i.test(e);if(n?e=new(i().URL)(e,i().location||k):/\/\//i.test(e)||(e=S().buildAbsoluteURL(i().location&&i().location.href||"",e)),n){var o=new URL(t,e);return a?o.href.slice(k.length):r?o.href.slice(o.protocol.length):o.href}return S().buildAbsoluteURL(e,t)},E=C,I=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);
331else for(var i=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,i)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(),x=function(e){return i().atob?i().atob(e):Buffer.from(e,"base64").toString("binary")};function A(e){for(var t=x(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}
332/*! @name m3u8-parser @version 4.8.0 @license Apache-2.0 */
333var P,$=function(e){function t(){var t;return t=e.call(this)||this,t.buffer="",t}h(t,e);var n=t.prototype;return n.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(I),O=String.fromCharCode(9),N=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},L=function(){var e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},D=function(e){var t,n=e.split(L()),r={},i=n.length;while(i--)""!==n[i]&&(t=/([^=]*)=(.*)/.exec(n[i]).slice(1),t[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},R=function(e){function t(){var t;return t=e.call(this)||this,t.customParsers=[],t.tagMappers=[],t}h(t,e);var n=t.prototype;return n.push=function(e){var t,n,r=this;if(e=e.trim(),0!==e.length)if("#"===e[0]){var i=this.tagMappers.reduce((function(t,n){var r=n(e);return r===e?t:t.concat([r])}),[e]);i.forEach((function(e){for(var i=0;i<r.customParsers.length;i++)if(r.customParsers[i].call(r,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)r.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void r.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void r.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e),t)return n=s(N(t[1]),{type:"tag",tagType:"byterange"}),void r.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){var a=D(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=N(a.BYTERANGE))}r.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e),t){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=D(t[1]),n.attributes.RESOLUTION){var o=n.attributes.RESOLUTION.split("x"),l={};o[0]&&(l.width=parseInt(o[0],10)),o[1]&&(l.height=parseInt(o[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}r.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=D(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)r.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)r.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"}
vendor: 21,939 bytes, line 333
333,t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=D(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void r.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=D(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=D(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(O)),void r.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=D(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=N(n.attributes.BYTERANGE)),void r.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=D(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void r.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=D(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void r.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=D(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void r.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=D(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void r.trigger("data",n);r.trigger("data",{type:"tag",data:e.slice(4)})}}}else r.trigger("data",{type:"comment",text:e.slice(1)})}))}else this.trigger("data",{type:"uri",uri:e})},n.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,a=e.segment;"function"!==typeof i&&(i=function(e){return e}),this.customParsers.push((function(e){var o=n.exec(e);if(o)return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map,r=function(e){return t.test(e)?n(e):e};this.tagMappers.push(r)},t}(I),F=function(e){return e.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()}))},M=function(e){var t={};return Object.keys(e).forEach((function(n){t[F(n)]=e[n]})),t},V=function(e){var t=e.serverControl,n=e.targetDuration,r=e.partTargetDuration;if(t){var i="#EXT-X-SERVER-CONTROL",a="holdBack",o="partHoldBack",s=n&&3*n,l=r&&2*r;n&&!t.hasOwnProperty(a)&&(t[a]=s,this.trigger("info",{message:i+" defaulting HOLD-BACK to targetDuration * 3 ("+s+")."})),s&&t[a]<s&&(this.trigger("warn",{message:i+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+s+")"}),t[a]=s),r&&!t.hasOwnProperty(o)&&(t[o]=3*r,this.trigger("info",{message:i+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[o]+")."})),r&&t[o]<l&&(this.trigger("warn",{message:i+" clamping PART-HOLD-BACK ("+t[o]+") to partTargetDuration * 2 ("+l+")."}),t[o]=l)}},U=function(e){function t(){var t;t=e.call(this)||this,t.lineStream=new $,t.parseStream=new R,t.lineStream.pipe(t.parseStream);var n,r,i=c(t),a=[],o={},l=!1,u=function(){},d={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},h="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",p=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var f=0,m=0;return t.on("end",(function(){o.uri||!o.parts&&!o.preloadHints||(!o.map&&n&&(o.map=n),!o.key&&r&&(o.key=r),o.timeline||"number"!==typeof p||(o.timeline=p),t.manifest.preloadSegment=o)})),t.parseStream.on("data",(function(e){var t,c;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(o.byterange=t,t.length=e.length,"offset"in e||(e.offset=f)),"offset"in e&&(o.byterange=t,t.offset=e.offset),f=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(o.duration=e.duration),0===e.duration&&(o.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if(e.attributes.KEYFORMAT===h){var t=["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"];return-1===t.indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:A(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},"undefined"!==typeof e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,p=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),r&&(n.key=r)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes?(o.attributes||(o.attributes={}),s(o.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],c={default:/yes/i.test(e.attributes.DEFAULT)},c.default?c.autoselect=!0:c.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(c.language=e.attributes.LANGUAGE),e.attributes.URI&&(c.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(c.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(c.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(c.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=c}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){p+=1,o.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){"undefined"===typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),o.dateTimeString=e.dateTimeString,o.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,V.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){o.cueOut=e.data},"cue-out-cont":function(){o.cueOutCont=e.data},"cue-in":function(){o.cueIn=e.data},skip:function(){this.manifest.skip=M(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;l=!0;var n=this.manifest.segments.length,r=M(e.attributes);o.parts=o.parts||[],o.parts.push(r),r.byterange&&(r.byterange.hasOwnProperty("offset")||(r.byterange.offset=m),m=r.byterange.offset+r.byterange.length);var i=o.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+i+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=M(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),V.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=M(e.attributes),r=n.type&&"PART"===n.type;o.preloadHints=o.preloadHints||[],o.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=r?m:0,r&&(m=n.byterange.offset+n.byterange.length)));var i=o.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+i+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<o.preloadHints.length-1;a++){var s=o.preloadHints[a];s.type&&(s.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+i+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=M(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,r=["LAST-MSN","URI"];l&&r.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,r)},"part-inf":function(){this.manifest.partInf=M(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),V.call(this,this.manifest)}}[e.tagType]||u).call(i)},uri:function(){o.uri=e.uri,a.push(o),this.manifest.targetDuration&&!("duration"in o)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),o.duration=this.manifest.targetDuration),r&&(o.key=r),o.timeline=p,n&&(o.map=n),m=0,o={}},comment:function(){},custom:function(){e.segment?(o.custom=o.custom||{},o.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)})),t}h(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var r=[];n.forEach((function(e){t.hasOwnProperty(e)||r.push(e)})),r.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+r.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(I),B={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},j=["video","audio","text"],W=["Video","Audio","Text"],H=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){var r=("00"+Number(t).toString(16)).slice(-2),i=("00"+Number(n).toString(16)).slice(-2);return"avc1."+r+"00"+i})):e},q=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),j.forEach((function(r){var i=B[r].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=r;var a=e.substring(0,i[1].length),o=e.replace(a,"");n.push({type:a,details:o,mediaType:r})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n},G=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return q(i.playlists[0].attributes.CODECS)}return null},z=function(e){return void 0===e&&(e=""),B.audio.test(e.trim().toLowerCase())},Y=function(e){return void 0===e&&(e=""),B.text.test(e.trim().toLowerCase())},K=function(e){if(e&&"string"===typeof e){var t=e.toLowerCase().split(",").map((function(e){return H(e.trim())})),n="video";1===t.length&&z(t[0])?n="audio":1===t.length&&Y(t[0])&&(n="application");var r="mp4";return t.every((function(e){return B.mp4.test(e)}))?r="mp4":t.every((function(e){return B.webm.test(e)}))?r="webm":t.every((function(e){return B.ogg.test(e)}))&&(r="ogg"),n+"/"+r+';codecs="'+e+'"'}},X=function(e){return void 0===e&&(e=""),i().MediaSource&&i().MediaSource.isTypeSupported&&i().MediaSource.isTypeSupported(K(e))||!1},J=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<W.length;t++){var n=W[t];if(B["muxer"+n].test(e))return!0}return!1}))},Z="mp4a.40.2",Q="avc1.4d400d",ee=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,te=/^application\/dash\+xml/i,ne=function(e){return ee.test(e)?"hls":te.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},re=function(e){return e.toString(2).length},ie=function(e){return Math.ceil(re(e)/8)},ae=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},oe=function(e){return ae(e)},se=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||oe(e)||e instanceof ArrayBuffer||(e="number"!==typeof e||"number"===typeof e&&e!==e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},le=i().BigInt||Number,ue=[le("0x1"),le("0x100"),le("0x10000"),le("0x1000000"),le("0x100000000"),le("0x10000000000"),le("0x1000000000000"),le("0x100000000000000"),le("0x10000000000000000")],ce=(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}(),function(e,t){var n=void 0===t?{}:t,r=n.signed,i=void 0!==r&&r,a=n.le,o=void 0!==a&&a;e=se(e);var s=o?"reduce":"reduceRight",l=e[s]?e[s]:Array.prototype[s],u=l.call(e,(function(t,n,r){var i=o?r:Math.abs(r+1-e.length);return t+le(n)*ue[i]}),le(0));if(i){var c=ue[e.length]/le(2)-le(1);u=le(u),u>c&&(u-=c,u-=c,u-=le(2))}return Number(u)}),de=function(e,t){var n=void 0===t?{}:t,r=n.le,i=void 0!==r&&r;("bigint"!==typeof e&&"number"!==typeof e||"number"===typeof e&&e!==e)&&(e=0),e=le(e);for(var a=ie(e),o=new Uint8Array(new ArrayBuffer(a)),s=0;s<a;s++){var l=i?s:Math.abs(s+1-o.length);o[l]=Number(e/ue[s]&le(255)),e<0&&(o[l]=Math.abs(~o[l]),o[l]-=0===s?1:2)}return o},he=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,se(e));try{return decodeURIComponent(escape(t))}catch(n){}return t},pe=function(e,t){if("string"!==typeof e&&e&&"function"===typeof e.toString&&(e=e.toString()),"string"!==typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n},fe=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!==typeof e})),t.length<=1)return se(t[0]);var r=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),i=new Uint8Array(r),a=0;return t.forEach((function(e){e=se(e),i.set(e,a),a+=e.byteLength})),i},me=function(e,t,n){var r=void 0===n?{}:n,i=r.offset,a=void 0===i?0:i,o=r.mask,s=void 0===o?[]:o;e=se(e),t=se(t);var l=t.every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,(function(t,n){var r=s[n]?s[n]&e[a+n]:e[a+n];return t===r}))},ve=function(e,t,n){t.forEach((function(t){for(var r in e.mediaGroups[t])for(var i in e.mediaGroups[t][r]){var a=e.mediaGroups[t][r][i];n(a,t,r,i)}}))},ge=n(3969),ye=function(e){return!!e&&"object"===typeof e},_e=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return"object"!==typeof n||Object.keys(n).forEach((function(r){Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=t[r].concat(n[r]):ye(t[r])&&ye(n[r])?t[r]=e(t[r],n[r]):t[r]=n[r]})),t}),{})},be=function(e){return Object.keys(e).map((function(t){return e[t]}))},Te=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n},we=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},Se=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},ke=function(e,t){return e.reduce((function(e,n,r){return n[t]&&e.push(r),e}),[])},Ce=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},Ee=function(e,t){return be(e.reduce((function(e,n){return n.forEach((function(n){e[t(n)]=n})),e}),{}))},Ie={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},xe=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,a=void 0===r?"":r,o=e.range,s=void 0===o?"":o,l=e.indexRange,u=void 0===l?"":l,c={uri:a,resolvedUri:E(n||"",a)};if(s||u){var d,h=s||u,p=h.split("-"),f=i().BigInt?i().BigInt(p[0]):parseInt(p[0],10),m=i().BigInt?i().BigInt(p[1]):parseInt(p[1],10);f<Number.MAX_SAFE_INTEGER&&"bigint"===typeof f&&(f=Number(f)),m<Number.MAX_SAFE_INTEGER&&"bigint"===typeof m&&(m=Number(m)),d="bigint"===typeof m||"bigint"===typeof f?i().BigInt(m)-i().BigInt(f)+i().BigInt(1):m-f+1,"bigint"===typeof d&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),c.byterange={length:d,offset:f}}return c},Ae=function(e){var t;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?i().BigInt(e.offset)+i().BigInt(e.length)-i().BigInt(1):e.offset+e.length-1,e.offset+"-"+t},Pe=function(e){return e&&"number"!==typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},$e={static:function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration,a=e.periodDuration,o=Pe(e.endNumber),s=t/r;return"number"===typeof o?{start:0,end:o}:"number"===typeof a?{start:0,end:a/s}:{start:0,end:i/s}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,a=void 0===i?1:i,o=e.duration,s=e.periodStart,l=void 0===s?0:s,u=e.minimumUpdatePeriod,c=void 0===u?0:u,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=Pe(e.endNumber),f=(t+n)/1e3,m=r+l,v=f+c,g=v-m,y=Math.ceil(g*a/o),_=Math.floor((f-m-h)*a
333/o),b=Math.floor((f-m)*a/o);return{start:Math.max(0,_),end:"number"===typeof p?p:Math.min(y,b)}}},Oe=function(e){return function(t){var n=e.duration,r=e.timescale,i=void 0===r?1:r,a=e.periodStart,o=e.startNumber,s=void 0===o?1:o;return{number:s+t,duration:n/i,timeline:a,time:t*n}}},Ne=function(e){var t=e.type,n=e.duration,r=e.timescale,i=void 0===r?1:r,a=e.periodDuration,o=e.sourceDuration,s=$e[t](e),l=s.start,u=s.end,c=Te(l,u).map(Oe(e));if("static"===t){var d=c.length-1,h="number"===typeof a?a:o;c[d].duration=h-n/i*d}return c},Le=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,a=e.indexRange,o=void 0===a?"":a,s=e.periodStart,l=e.presentationTime,u=e.number,c=void 0===u?0:u,d=e.duration;if(!t)throw new Error(Ie.NO_BASE_URL);var h=xe({baseUrl:t,source:r.sourceURL,range:r.range}),p=xe({baseUrl:t,source:t,indexRange:o});if(p.map=h,d){var f=Ne(e);f.length&&(p.duration=f[0].duration,p.timeline=f[0].timeline)}else i&&(p.duration=i,p.timeline=s);return p.presentationTime=l||s,p.number=c,[p]},De=function(e,t,n){var r,a=e.sidx.map?e.sidx.map:null,o=e.sidx.duration,s=e.timeline||0,l=e.sidx.byterange,u=l.offset+l.length,c=t.timescale,d=t.references.filter((function(e){return 1!==e.referenceType})),h=[],p=e.endList?"static":"dynamic",f=e.sidx.timeline,m=f,v=e.mediaSequence||0;r="bigint"===typeof t.firstOffset?i().BigInt(u)+t.firstOffset:u+t.firstOffset;for(var g=0;g<d.length;g++){var y=t.references[g],_=y.referencedSize,b=y.subsegmentDuration,T=void 0;T="bigint"===typeof r?r+i().BigInt(_)-i().BigInt(1):r+_-1;var w=r+"-"+T,S={baseUrl:n,timescale:c,timeline:s,periodStart:f,presentationTime:m,number:v,duration:b,sourceDuration:o,indexRange:w,type:p},k=Le(S)[0];a&&(k.map=a),h.push(k),r+="bigint"===typeof r?i().BigInt(_):_,m+=b/c,v++}return e.segments=h,e},Re=["AUDIO","SUBTITLES"],Fe=1/60,Me=function(e){return Ee(e,(function(e){var t=e.timeline;return t})).sort((function(e,t){return e.timeline>t.timeline?1:-1}))},Ve=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},Ue=function(e){var t=[];return ve(e,Re,(function(e,n,r,i){t=t.concat(e.playlists||[])})),t},Be=function(e){var t=e.playlist,n=e.mediaSequence;t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},je=function(e){var t=e.oldPlaylists,n=e.newPlaylists,r=e.timelineStarts;n.forEach((function(e){e.discontinuitySequence=Ce(r,(function(t){var n=t.timeline;return n===e.timeline}));var n=Ve(t,e.attributes.NAME);if(n&&!e.sidx){var i=e.segments[0],a=Ce(n.segments,(function(e){return Math.abs(e.presentationTime-i.presentationTime)<Fe}));if(-1===a)return Be({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);var o=n.segments[a];o.discontinuity&&!i.discontinuity&&(i.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),Be({playlist:e,mediaSequence:n.segments[a].number})}}))},We=function(e){var t=e.oldManifest,n=e.newManifest,r=t.playlists.concat(Ue(t)),i=n.playlists.concat(Ue(n));return n.timelineStarts=Me([t.timelineStarts,n.timelineStarts]),je({oldPlaylists:r,newPlaylists:i,timelineStarts:n.timelineStarts}),n},He=function(e){return e&&e.uri+"-"+Ae(e.byterange)},qe=function(e){var t=be(e.reduce((function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var r;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(r=e[n].segments).push.apply(r,t.segments);t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t,e[n].attributes.timelineStarts=[];return e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{}));return t.map((function(e){return e.discontinuityStarts=ke(e.segments||[],"discontinuity"),e}))},Ge=function(e,t){var n=He(e.sidx),r=n&&t[n]&&t[n].sidx;return r&&De(e,r,e.sidx.resolvedUri),e},ze=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=Ge(e[n],t);return e},Ye=function(e,t){var n,r=e.attributes,i=e.segments,a=e.sidx,o=e.mediaSequence,s=e.discontinuitySequence,l=e.discontinuityStarts,u={attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===r.type,timeline:r.periodStart,resolvedUri:"",targetDuration:r.duration,discontinuitySequence:s,discontinuityStarts:l,timelineStarts:r.timelineStarts,mediaSequence:o,segments:i};return r.contentProtection&&(u.contentProtection=r.contentProtection),a&&(u.sidx=a),t&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u},Ke=function(e){var t,n=e.attributes,r=e.segments,i=e.mediaSequence,a=e.discontinuityStarts,o=e.discontinuitySequence;"undefined"===typeof r&&(r=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var s=(t={NAME:n.id,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t);return n.codecs&&(s.CODECS=n.codecs),{attributes:s,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:o,mediaSequence:i,segments:r}},Xe=function(e,t,n){var r;void 0===t&&(t={}),void 0===n&&(n=!1);var i=e.reduce((function(e,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var l=a?" ("+a+")":"";s=""+i.attributes.lang+l}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=Ge(Ye(i,n),t);return e[s].playlists.push(u),"undefined"===typeof r&&"main"===a&&(r=i,r.default=!0),e}),{});if(!r){var a=Object.keys(i)[0];i[a].default=!0}return i},Je=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var r=n.attributes.lang||"text";return e[r]||(e[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[r].playlists.push(Ge(Ke(n),t)),e}),{})}
vendor: 8,067 bytes, line 333
333,Ze=function(e){return e.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,r=t.language;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},t.hasOwnProperty("aspectRatio")&&(e[r].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[r].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[r]["3D"]=t["3D"])})),e):e}),{})},Qe=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,a=e.discontinuityStarts,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:r};return n.frameRate&&(o.attributes["FRAME-RATE"]=n.frameRate),n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},et=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},tt=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},nt=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},rt=function(e,t){e.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=Ce(t,(function(t){var n=t.timeline;return n===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))}))},it=function(e){return e?Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(r.playlists)}),[]):[]},at=function(e){var t,n=e.dashPlaylists,r=e.locations,i=e.sidxMapping,a=void 0===i?{}:i,o=e.previousManifest;if(!n.length)return{};var s=n[0].attributes,l=s.sourceDuration,u=s.type,c=s.suggestedPresentationDelay,d=s.minimumUpdatePeriod,h=qe(n.filter(et)).map(Qe),p=qe(n.filter(tt)),f=qe(n.filter(nt)),m=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),v={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:ze(h,a)};d>=0&&(v.minimumUpdatePeriod=1e3*d),r&&(v.locations=r),"dynamic"===u&&(v.suggestedPresentationDelay=c);var g=0===v.playlists.length,y=p.length?Xe(p,a,g):null,_=f.length?Je(f,a):null,b=h.concat(it(y),it(_)),T=b.map((function(e){var t=e.timelineStarts;return t}));return v.timelineStarts=Me(T),rt(b,v.timelineStarts),y&&(v.mediaGroups.AUDIO.audio=y),_&&(v.mediaGroups.SUBTITLES.subs=_),m.length&&(v.mediaGroups["CLOSED-CAPTIONS"].cc=Ze(m)),o?We({oldManifest:o,newManifest:v}):v},ot=function(e,t,n){var r=e.NOW,i=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,l=e.periodStart,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=(r+i)/1e3,p=a+u,f=h+d,m=f-p;return Math.ceil((m*s-t)/n)},st=function(e,t){for(var n=e.type,r=e.minimumUpdatePeriod,i=void 0===r?0:r,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,c=e.startNumber,d=void 0===c?1:c,h=e.periodStart,p=[],f=-1,m=0;m<t.length;m++){var v=t[m],g=v.d,y=v.r||0,_=v.t||0;f<0&&(f=_),_&&_>f&&(f=_);var b=void 0;if(y<0){var T=m+1;b=T===t.length?"dynamic"===n&&i>0&&o.indexOf("$Number$")>0?ot(e,f,g):(s*u-f)/g:(t[T].t-f)/g}else b=y+1;var w=d+p.length+b,S=d+p.length;while(S<w)p.push({number:S,duration:g/u,time:f,timeline:h}),f+=g,S++}return p},lt=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ut=function(e){return function(t,n,r,i){if("$$"===t)return"$";if("undefined"===typeof e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(i=r?parseInt(i,10):1,a.length>=i?a:""+new Array(i-a.length+1).join("0")+a)}},ct=function(e,t){return e.replace(lt,ut(t))},dt=function(e,t){return e.duration||t?e.duration?Ne(e):st(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]},ht=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,a=xe({baseUrl:e.baseUrl,source:ct(i.sourceURL,n),range:i.range}),o=dt(e,t);return o.map((function(t){n.Number=t.number,n.Time=t.time;var r=ct(e.media||"",n),i=e.timescale||1,o=e.presentationTimeOffset||0,s=e.periodStart+(t.time-o)/i,l={uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:E(e.baseUrl||"",r),map:a,number:t.number,presentationTime:s};return l}))},pt=function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,a=xe({baseUrl:n,source:i.sourceURL,range:i.range}),o=xe({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o},ft=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(Ie.SEGMENT_TIME_UNSPECIFIED);var o,s=i.map((function(t){return pt(e,t)}));n&&(o=Ne(e)),t&&(o=st(e,t));var l=o.map((function(t,n){if(s[n]){var r=s[n],i=e.timescale||1,o=e.presentationTimeOffset||0;return r.timeline=t.timeline,r.duration=t.duration,r.number=t.number,r.presentationTime=a+(t.time-o)/i,r}})).filter((function(e){return e}));return l},mt=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=ht,t=_e(r,i.template)):i.base?(n=Le,t=_e(r,i.base)):i.list&&(n=ft,t=_e(r,i.list));var a={attributes:r};if(!n)return a;var o=n(t,i.segmentTimeline);if(t.duration){var s=t,l=s.duration,u=s.timescale,c=void 0===u?1:u;t.duration=l/c}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,i.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},vt=function(e){return e.map(mt)},gt=function(e,t){return Se(e.childNodes).filter((function(e){var n=e.tagName;return n===t}))},yt=function(e){return e.textContent.trim()},_t=function(e){return parseFloat(e.split("/").reduce((function(e,t){return e/t})))},bt=function(e){var t=31536e3,n=2592e3,r=86400,i=3600,a=60,o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,s=o.exec(e);if(!s)return 0;var l=s.slice(1),u=l[0],c=l[1],d=l[2],h=l[3],p=l[4],f=l[5];return parseFloat(u||0)*t+parseFloat(c||0)*n+parseFloat(d||0)*r+parseFloat(h||0)*i+parseFloat(p||0)*a+parseFloat(f||0)},Tt=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},wt={mediaPresentationDuration:function(e){return bt(e)},availabilityStartTime:function(e){return Tt(e)/1e3},minimumUpdatePeriod:function(e){return bt(e)},suggestedPresentationDelay:function(e){return bt(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return bt(e)},start:function(e){return bt(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},frameRate:function(e){return _t(e)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?bt(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},St=function(e){return e&&e.attributes?Se(e.attributes).reduce((function(e,t){var n=wt[t.name]||wt.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},kt={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Ct=function(e,t){return t.length?we(e.map((function(e){return t.map((function(t){return E(e,yt(t))}))}))):e},Et=function(e){var t=gt(e,"SegmentTemplate")[0],n=gt(e,"SegmentList")[0],r=n&&gt(n,"SegmentURL").map((function(e){return _e({tag:"SegmentURL"},St(e))})),i=gt(e,"SegmentBase")[0],a=n||t,o=a&&gt(a,"SegmentTimeline")[0],s=n||i||t,l=s&&gt(s,"Initialization")[0],u=t&&St(t);u&&l?u.initialization=l&&St(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var c={template:u,segmentTimeline:o&&gt(o,"S").map((function(e){return St(e)})),list:n&&_e(St(n),{segmentUrls:r,initialization:St(l)}),base:i&&_e(St(i),{initialization:St(l)})};
333return Object.keys(c).forEach((function(e){c[e]||delete c[e]})),c},It=function(e,t,n){return function(r){var i=gt(r,"BaseURL"),a=Ct(t,i),o=_e(e,St(r)),s=Et(r);return a.map((function(e){return{segmentInfo:_e(n,s),attributes:_e(o,{baseUrl:e})}}))}},xt=function(e){return e.reduce((function(e,t){var n=St(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var r=kt[n.schemeIdUri];if(r){e[r]={attributes:n};var i=gt(t,"cenc:pssh")[0];if(i){var a=yt(i);e[r].pssh=a&&A(a)}}return e}),{})},At=function(e){if("urn:scte:dash:cc:cea-608:2015"===e.schemeIdUri){var t="string"!==typeof e.value?[]:e.value.split(";");return t.map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var r=e.split("=");t=r[0],n=r[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}}))}if("urn:scte:dash:cc:cea-708:2015"===e.schemeIdUri){var n="string"!==typeof e.value?[]:e.value.split(";");return n.map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),r=n[0],i=n[1],a=void 0===i?"":i;t.channel=r,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),r=n[0],i=n[1];"lang"===r?t.language=i:"er"===r?t.easyReader=Number(i):"war"===r?t.aspectRatio=Number(i):"3D"===r&&(t["3D"]=Number(i))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}))}},Pt=function(e,t,n){return function(r){var i=St(r),a=Ct(t,gt(r,"BaseURL")),o=gt(r,"Role")[0],s={role:St(o)},l=_e(e,i,s),u=gt(r,"Accessibility")[0],c=At(St(u));c&&(l=_e(l,{captionServices:c}));var d=gt(r,"Label")[0];if(d&&d.childNodes.length){var h=d.childNodes[0].nodeValue.trim();l=_e(l,{label:h})}var p=xt(gt(r,"ContentProtection"));Object.keys(p).length&&(l=_e(l,{contentProtection:p}));var f=Et(r),m=gt(r,"Representation"),v=_e(n,f);return we(m.map(It(l,a,v)))}},$t=function(e,t){return function(n,r){var i=Ct(t,gt(n.node,"BaseURL")),a=_e(e,{periodStart:n.attributes.start});"number"===typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var o=gt(n.node,"AdaptationSet"),s=Et(n.node);return we(o.map(Pt(a,i,s)))}},Ot=function(e){var t=e.attributes,n=e.priorPeriodAttributes,r=e.mpdType;return"number"===typeof t.start?t.start:n&&"number"===typeof n.start&&"number"===typeof n.duration?n.start+n.duration:n||"static"!==r?null:0},Nt=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,l=void 0===s?0:s,u=gt(e,"Period");if(!u.length)throw new Error(Ie.INVALID_NUMBER_OF_PERIOD);var c=gt(e,"Location"),d=St(e),h=Ct([i],gt(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=o,d.clientOffset=l,c.length&&(d.locations=c.map(yt));var p=[];return u.forEach((function(e,t){var n=St(e),r=p[t-1];n.start=Ot({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:d.type}),p.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:we(p.map($t(d,h)))}},Lt=function(e){if(""===e)throw new Error(Ie.DASH_EMPTY_MANIFEST);var t,n,r=new ge.DOMParser;try{t=r.parseFromString(e,"application/xml"),n=t&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(i){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(Ie.DASH_INVALID_XML);return n},Dt=function(e){var t=gt(e,"UTCTiming")[0];if(!t)return null;var n=St(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Ie.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},Rt=function(e,t){void 0===t&&(t={});var n=Nt(Lt(e),t),r=vt(n.representationInfo);return at({dashPlaylists:r,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},Ft=function(e){return Dt(Lt(e))},Mt=n(4221),Vt=n.n(Mt),Ut=se([73,68,51]),Bt=function(e,t){void 0===t&&(t=0),e=se(e);var n=e[t+5],r=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],i=(16&n)>>4;return i?r+20:r+10},jt=function e(t,n){return void 0===n&&(n=0),t=se(t),t.length-n<10||!me(t,Ut,{offset:n})?n:(n+=Bt(t,n),e(t,n))}
333,Wt=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"===typeof e?pe(e):e}),Ht=function(e){return Array.isArray(e)?e.map((function(e){return Wt(e)})):[Wt(e)]},qt=function(e){e=se(e);var t=[],n=0;while(e.length>n){var r=e[n],i=0,a=0;a++;var o=e[a];a++;while(128&o)i=(127&o)<<7,o=e[a],a++;i+=127&o;for(var s=0;s<P.length;s++){var l=P[s],u=l.id,c=l.parser;if(r===u){t.push(c(e.subarray(a,a+i)));break}}n+=i+a}return t};P=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=he(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=qt(e.subarray(t.size))||[],t}},{id:4,parser:function(e){var t={tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:qt(e.subarray(13))};return t}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var Gt=function e(t,n,r){void 0===r&&(r=!1),n=Ht(n),t=se(t);var i=[];if(!n.length)return i;var a=0;while(a<t.length){var o=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,s=t.subarray(a+4,a+8);if(0===o)break;var l=a+o;if(l>t.length){if(r)break;l=t.length}var u=t.subarray(a+8,l);me(s,n[0])&&(1===n.length?i.push(u):i.push.apply(i,e(u,n.slice(1),r))),a=l}return i},zt={EBML:se([26,69,223,163]),DocType:se([66,130]),Segment:se([24,83,128,103]),SegmentInfo:se([21,73,169,102]),Tracks:se([22,84,174,107]),Track:se([174]),TrackNumber:se([215]),DefaultDuration:se([35,227,131]),TrackEntry:se([174]),TrackType:se([131]),FlagDefault:se([136]),CodecID:se([134]),CodecPrivate:se([99,162]),VideoTrack:se([224]),AudioTrack:se([225]
333),Cluster:se([31,67,182,117]),Timestamp:se([231]),TimestampScale:se([42,215,177]),BlockGroup:se([160]),BlockDuration:se([155]),Block:se([161]),SimpleBlock:se([163])},Yt=[128,64,32,16,8,4,2,1],Kt=function(e){for(var t=1,n=0;n<Yt.length;n++){if(e&Yt[n])break;t++}return t},Xt=function(e,t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var i=Kt(e[t]),a=e.subarray(t,t+i);return n&&(a=Array.prototype.slice.call(e,t,t+i),a[0]^=Yt[i-1]),{length:i,value:ce(a,{signed:r}),bytes:a}},Jt=function e(t){return"string"===typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"===typeof t?de(t):t},Zt=function(e){return Array.isArray(e)?e.map((function(e){return Jt(e)})):[Jt(e)]},Qt=function e(t,n,r){if(r>=n.length)return n.length;var i=Xt(n,r,!1);if(me(t.bytes,i.bytes))return r;var a=Xt(n,r+i.length);return e(t,n,r+a.length+a.value+i.length)},en=function e(t,n){n=Zt(n),t=se(t);var r=[];if(!n.length)return r;var i=0;while(i<t.length){var a=Xt(t,i,!1),o=Xt(t,i+a.length),s=i+a.length+o.length;127===o.value&&(o.value=Qt(a,t,s),o.value!==t.length&&(o.value-=s));var l=s+o.value>t.length?t.length:s+o.value,u=t.subarray(s,l);me(n[0],a.bytes)&&(1===n.length?r.push(u):r=r.concat(e(u,n.slice(1))));var c=a.length+o.length+u.length;i+=c}return r},tn=se([0,0,0,1]),nn=se([0,0,1]),rn=se([0,0,3]),an=function(e){var t=[],n=1;while(n<e.length-2)me(e.subarray(n,n+3),rn)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var r=e.length-t.length,i=new Uint8Array(r),a=0;for(n=0;n<r;a++,n++)a===t[0]&&(a++,t.shift()),i[n]=e[a];return i},on=function(e,t,n,r){void 0===r&&(r=1/0),e=se(e),n=[].concat(n);var i,a=0,o=0;while(a<e.length&&(o<r||i)){var s=void 0;if(me(e.subarray(a),tn)?s=4:me(e.subarray(a),nn)&&(s=3),s){if(o++,i)return an(e.subarray(i,a));var l=void 0;"h264"===t?l=31&e[a+s]:"h265"===t&&(l=e[a+s]>>1&63),-1!==n.indexOf(l)&&(i=a+s),a+=s+("h264"===t?1:2)}else a++}return e.subarray(0,0)},sn=function(e,t,n){return on(e,"h264",t,n)},ln=function(e,t,n){return on(e,"h265",t,n)},un={webm:se([119,101,98,109]),matroska:se([109,97,116,114,111,115,107,97]),flac:se([102,76,97,67]),ogg:se([79,103,103,83]),ac3:se([11,119]),riff:se([82,73,70,70]),avi:se([65,86,73]),wav:se([87,65,86,69]),"3gp":se([102,116,121,112,51,103]),mp4:se([102,116,121,112]),fmp4:se([115,116,121,112]),mov:se([102,116,121,112,113,116]),moov:se([109,111,111,118]),moof:se([109,111,111,102])},cn={aac:function(e){var t=jt(e);return me(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=jt(e);return me(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=en(e,[zt.EBML,zt.DocType])[0];return me(t,un.webm)},mkv:function(e){var t=en(e,[zt.EBML,zt.DocType])[0];return me(t,un.matroska)},mp4:function(e){return!cn["3gp"](e)&&!cn.mov(e)&&(!(!me(e,un.mp4,{offset:4})&&!me(e,un.fmp4,{offset:4}))||(!(!me(e,un.moof,{offset:4})&&!me(e,un.moov,{offset:4}))||void 0))},mov:function(e){return me(e,un.mov,{offset:4})},"3gp":function(e){return me(e,un["3gp"],{offset:4})},ac3:function(e){var t=jt(e);return me(e,un.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];var t=0;while(t+188<e.length&&t<188){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=jt(e);return me(e,un.flac,{offset:t})},ogg:function(e){return me(e,un.ogg)},avi:function(e){return me(e,un.riff)&&me(e,un.avi,{offset:8})},wav:function(e){return me(e,un.riff)&&me(e,un.wav,{offset:8})},h264:function(e){return sn(e,7,3).length},h265:function(e){return ln(e,[32,33],3).length}},dn=Object.keys(cn).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);dn.forEach((function(e){var t=cn[e];cn[e]=function(e){return t(se(e))}}));var hn=cn,pn=function(e){e=se(e);for(var t=0;t<dn.length;t++){var n=dn[t];if(hn[n](e))return n}return""},fn=function(e){return Gt(e,["moof"]).length>0},mn=n(1489);function vn(e){return vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},vn(e)}function gn(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function yn(e){var t="function"===typeof Map?new Map:void 0;return yn=function(e){if(null===e||!gn(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return b(e,arguments,vn(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),d(n,e)},yn(e)}for(
334/**
335 * @license
336 * Video.js 7.21.7 <http://videojs.com/>
337 * Copyright Brightcove, Inc. <https://www.brightcove.com/>
338 * Available under Apache License Version 2.0
339 * <https://github.com/videojs/video.js/blob/main/LICENSE>
340 *
341 * Includes vtt.js <https://github.com/mozilla/vtt.js>
342 * Available under Apache License Version 2.0
343 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
344 */
345var _n,bn="7.21.7",Tn={},wn=function(e,t){return Tn[e]=Tn[e]||[],t&&(Tn[e]=Tn[e].concat(t)),Tn[e]},Sn=function(e,t){wn(e,t)},kn=function(e,t){var n=wn(e).indexOf(t);return!(n<=-1)&&(Tn[e]=Tn[e].slice(),Tn[e].splice(n,1),!0)},Cn=function(e,t){wn(e,[].concat(t).map((function(t){var n=function n(){return kn(e,n),t.apply(void 0,arguments)};return n})))},En={prefixed:!0},In=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],xn=In[0],An=0;An<In.length;An++)if(In[An][1]in o()){_n=In[An];break}
vendor: 63,155 bytes, line 345
345if(_n){for(var Pn=0;Pn<_n.length;Pn++)En[xn[Pn]]=_n[Pn];En.prefixed=_n[0]!==xn[0]}var $n=[],On=function(e,t){return function(n,r,a){var o=t.levels[r],s=new RegExp("^("+o+")$");if("log"!==n&&a.unshift(n.toUpperCase()+":"),a.unshift(e+":"),$n){$n.push([].concat(a));var l=$n.length-1e3;$n.splice(0,l>0?l:0)}if(i().console){var u=i().console[n];u||"debug"!==n||(u=i().console.info||i().console.log),u&&o&&s.test(n)&&u[Array.isArray(a)?"apply":"call"](i().console,a)}}};function Nn(e){var t,n="info",r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t("log",n,r)};return t=On(e,r),r.createLogger=function(t){return Nn(e+": "+t)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"===typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},r.history=function(){return $n?[].concat($n):[]},r.history.filter=function(e){return($n||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},r.history.clear=function(){$n&&($n.length=0)},r.history.disable=function(){null!==$n&&($n.length=0,$n=null)},r.history.enable=function(){null===$n&&($n=[])},r.error=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t("error",n,r)},r.warn=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t("warn",n,r)},r.debug=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t("debug",n,r)},r}var Ln=Nn("VIDEOJS"),Dn=Ln.createLogger,Rn=Object.prototype.toString,Fn=function(e){return Bn(e)?Object.keys(e):[]};function Mn(e,t){Fn(e).forEach((function(n){return t(e[n],n)}))}function Vn(e,t,n){return void 0===n&&(n=0),Fn(e).reduce((function(n,r){return t(n,e[r],r)}),n)}function Un(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?s.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&Mn(t,(function(t,n){e[n]=t}))})),e)}function Bn(e){return!!e&&"object"===typeof e}function jn(e){return Bn(e)&&"[object Object]"===Rn.call(e)&&e.constructor===Object}function Wn(e,t){if(!e||!t)return"";if("function"===typeof i().getComputedStyle){var n;try{n=i().getComputedStyle(e)}catch(r){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var Hn=i().navigator&&i().navigator.userAgent||"",qn=/AppleWebKit\/([\d.]+)/i.exec(Hn),Gn=qn?parseFloat(qn.pop()):null,zn=/iPod/i.test(Hn),Yn=function(){var e=Hn.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Kn=/Android/i.test(Hn),Xn=function(){var e=Hn.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),Jn=Kn&&Xn<5&&Gn<537,Zn=/Firefox/i.test(Hn),Qn=/Edg/i.test(Hn),er=!Qn&&(/Chrome/i.test(Hn)||/CriOS/i.test(Hn)),tr=function(){var e=Hn.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),nr=function(){var e=/MSIE\s(\d+)\.\d/.exec(Hn),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Hn)&&/rv:11.0/.test(Hn)&&(t=11),t}(),rr=/Safari/i.test(Hn)&&!er&&!Kn&&!Qn,ir=/Windows/i.test(Hn),ar=Boolean(fr()&&("ontouchstart"in i()||i().navigator.maxTouchPoints||i().DocumentTouch&&i().document instanceof i().DocumentTouch)),or=/iPad/i.test(Hn)||rr&&ar&&!/iPhone/i.test(Hn),sr=/iPhone/i.test(Hn)&&!or,lr=sr||or||zn,ur=(rr||lr)&&!er,cr=Object.freeze({__proto__:null,IS_IPOD:zn,IOS_VERSION:Yn,IS_ANDROID:Kn,ANDROID_VERSION:Xn,IS_NATIVE_ANDROID:Jn,IS_FIREFOX:Zn,IS_EDGE:Qn,IS_CHROME:er,CHROME_VERSION:tr,IE_VERSION:nr,IS_SAFARI:rr,IS_WINDOWS:ir,TOUCH_ENABLED:ar,IS_IPAD:or,IS_IPHONE:sr,IS_IOS:lr,IS_ANY_SAFARI:ur});function dr(e){return"string"===typeof e&&Boolean(e.trim())}function hr(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function pr(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function fr(){return o()===i().document}function mr(e){return Bn(e)&&1===e.nodeType}function vr(){try{return i().parent!==i().self}catch(e){return!0}}function gr(e){return function(t,n){if(!dr(t))return o()[e](null);dr(n)&&(n=o().querySelector(n));var r=mr(n)?n:o();return r[e]&&r[e](t)}}function yr(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=o().createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Ln.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?_r(i,n):i[e]===n&&"tabIndex"!==e||(i[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){i.setAttribute(e,n[e])})),r&&Mr(i,r),i}function _r(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function br(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function Tr(e,t){return hr(t),e.classList?e.classList.contains(t):pr(t).test(e.className)}function wr(e,t){return e.classList?e.classList.add(t):Tr(e,t)||(e.className=(e.className+" "+t).trim()),e}function Sr(e,t){return e?(e.classList?e.classList.remove(t):(hr(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(Ln.warn("removeClass was called with an element that doesn't exist"),null)}function kr(e,t,n){var r=Tr(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!r),n!==r)return n?wr(e,t):Sr(e,t),e}function Cr(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null===r||"undefined"===typeof r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function Er(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var a=r[i].name,o=r[i].value;"boolean"!==typeof e[a]&&-1===n.indexOf(","+a+",")||(o=null!==o),t[a]=o}return t}function Ir(e,t){return e.getAttribute(t)}function xr(e,t,n){e.setAttribute(t,n)}function Ar(e,t){e.removeAttribute(t)}function Pr(){o().body.focus(),o().onselectstart=function(){return!1}}function $r(){o().onselectstart=function(){return!0}}function Or(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(Wn(e,"height"))),n.width||(n.width=parseFloat(Wn(e,"width"))),n}}function Nr(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;while(e.offsetParent&&e!==o()[En.fullscreenElement])r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{left:r,top:i,width:t,height:n}}function Lr(e,t){var n={x:0,y:0};if(lr){var r=e;while(r&&"html"!==r.nodeName.toLowerCase()){var i=Wn(r,"transform");if(/^matrix/.test(i)){var a=i.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(i)){var o=i.slice(9,-1).split(/,\s/).map(Number);n.x+=o[12],n.y+=o[13]}r=r.parentNode}}var s={},l=Nr(t.target),u=Nr(e),c=u.width,d=u.height,h=t.offsetY-(u.top-l.top),p=t.offsetX-(u.left-l.left);return t.changedTouches&&(p=t.changedTouches[0].pageX-u.left,h=t.changedTouches[0].pageY+u.top,lr&&(p-=n.x,h-=n.y)),s.y=1-Math.max(0,Math.min(1,h/d)),s.x=Math.max(0,Math.min(1,p/c)),s}function Dr(e){return Bn(e)&&3===e.nodeType}function Rr(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function Fr(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),mr(e)||Dr(e)?e:"string"===typeof e&&/\S/.test(e)?o().createTextNode(e):void 0})).filter((function(e){return e}))}function Mr(e,t){return Fr(t).forEach((function(t){return e.appendChild(t)})),e}function Vr(e,t){return Mr(Rr(e),t)}function Ur(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Br,jr=gr("querySelector"),Wr=gr("querySelectorAll"),Hr=Object.freeze({__proto__:null,isReal:fr,isEl:mr,isInFrame:vr,createEl:yr,textContent:_r,prependTo:br,hasClass:Tr,addClass:wr,removeClass:Sr,toggleClass:kr,setAttributes:Cr,getAttributes:Er,getAttribute:Ir,setAttribute:xr,removeAttribute:Ar,blockTextSelection:Pr,unblockTextSelection:$r,getBoundingClientRect:Or,findPosition:Nr,getPointerPosition:Lr,isTextNode:Dr,emptyEl:Rr,normalizeContent:Fr,appendContent:Mr,insertContent:Vr,isSingleLeftClick:Ur,$:jr,$$:Wr}),qr=!1,Gr=function(){if(!1!==Br.options.autoSetup){var e=Array.prototype.slice.call(o().getElementsByTagName("video")),t=Array.prototype.slice.call(o().getElementsByTagName("audio")),n=Array.prototype.slice.call(o().getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,a=r.length;i<a;i++){var s=r[i];if(!s||!s.getAttribute){zr(1);break}if(void 0===s.player){var l=s.getAttribute("data-setup");null!==l&&Br(s)}}else qr||zr(1)}};function zr(e,t){fr()&&(t&&(Br=t),i().setTimeout(Gr,e))}function Yr(){qr=!0,i().removeEventListener("load",Yr)}fr()&&("complete"===o().readyState?Yr():i().addEventListener("load",Yr));var Kr,Xr=function(e){var t=o().createElement("style");return t.className=e,t},Jr=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Zr=3,Qr=Zr;function ei(){return Qr++}i().WeakMap||(Kr=function(){function e(){this.vdata="vdata"+Math.floor(i().performance&&i().performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||ei();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];Ln("We have no data for this element",e)},t.has=function(e){var t=e[this.vdata];return t in this.data},t["delete"]=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var ti,ni=i().WeakMap?new WeakMap:new Kr;function ri(e,t){if(ni.has(e)){var n=ni.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&ni["delete"](e)}}function ii(e,t,n,r){n.forEach((function(n){e(t,n,r)}))}function ai(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var r=e||i().event;for(var a in e={},r)"layerX"!==a&&"layerY"!==a&&"keyLocation"!==a&&"webkitMovementX"!==a&&"webkitMovementY"!==a&&"path"!==a&&("returnValue"===a&&r.preventDefault||(e[a]=r[a]));if(e.target||(e.target=e.srcElement||o()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=o().documentElement,l=o().body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var oi=function(){if("boolean"!==typeof ti){ti=!1;try{var e=Object.defineProperty({},"passive",{get:function(){ti=!0}});i().addEventListener("test",null,e),i().removeEventListener("test",null,e)}catch(t){}}return ti},si=["touchstart","touchmove"];function li(e,t,n){if(Array.isArray(t))return ii(li,e,t,n);ni.has(e)||ni.set(e,{});var r=ni.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=ei()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=ai(t);var i=r.handlers[t.type];if(i)for(var a=i.slice(0),o=0,s=a.length;o<s;o++){if(t.isImmediatePropagationStopped())break;try{a[o].call(e,t,n)}catch(l){Ln.error(l)}}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;oi()&&si.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function ui(e,t,n){if(ni.has(e)){var r=ni.get(e);if(r.handlers){if(Array.isArray(t))return ii(ui,e,t,n);var i=function(e,t){r.handlers[t]=[],ri(e,t)};if(void 0!==t){var a=r.handlers[t];if(a)if(n){if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);ri(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function ci(e,t,n){var r=ni.has(e)?ni.get(e):{},i=e.parentNode||e.ownerDocument;if("string"===typeof t?t={type:t,target:e}:t.target||(t.target=e),t=ai(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)ci.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){ni.has(t.target)||ni.set(t.target,{});var a=ni.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"===typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function di(e,t,n){if(Array.isArray(t))return ii(di,e,t,n);var r=function r(){ui(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||ei(),li(e,t,r)}function hi(e,t,n){var r=function r(){ui(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||ei(),li(e,t,r)}var pi,fi=Object.freeze({__proto__:null,fixEvent:ai,on:li,off:ui,trigger:ci,one:di,any:hi}),mi=30,vi=function(e,t,n){t.guid||(t.guid=ei());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},gi=function(e,t){var n=i().performance.now(),r=function(){var r=i().performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)};return r},yi=function(e,t,n,r){var a;void 0===r&&(r=i());var o=function(){r.clearTimeout(a),a=null},s=function(){var i=this,o=arguments,s=function(){a=null,s=null,n||e.apply(i,o)};!a&&n&&e.apply(i,o),r.clearTimeout(a),a=r.setTimeout(s,t)};return s.cancel=o,s},_i=function(){};_i.prototype.allowedEvents_={},_i.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},li(this,e,t),this.addEventListener=n},_i.prototype.addEventListener=_i.prototype.on,_i.prototype.off=function(e,t){ui(this,e,t)},_i.prototype.removeEventListener=_i.prototype.off,_i.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},di(this,e,t),this.addEventListener=n},_i.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},hi(this,e,t),this.addEventListener=n},_i.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=ai(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),ci(this,e)},_i.prototype.dispatchEvent=_i.prototype.trigger,_i.prototype.queueTrigger=function(e){var t=this;pi||(pi=new Map);var n=e.type||e,r=pi.get(this);r||(r=new Map,pi.set(this,r));var a=r.get(n);r["delete"](n),i().clearTimeout(a);var o=i().setTimeout((function(){r["delete"](n),0===r.size&&(r=null,pi["delete"](t)),t.trigger(e)}),0);r.set(n,o)};var bi=function(e){return"function"===typeof e.name?e.name():"string"===typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},Ti=function(e){return e instanceof _i||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},wi=function(e,t){Ti(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},Si=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},ki=function(e,t,n){if(!e||!e.nodeName&&!Ti(e))throw new Error("Invalid target for "+bi(t)+"#"+n+"; must be a DOM node or evented object.")},Ci=function(e,t,n){if(!Si(e))throw new Error("Invalid event type for "+bi(t)+"#"+n+"; must be a non-empty string or array.")},Ei=function(e,t,n){if("function"!==typeof e)throw new Error("Invalid listener for "+bi(t)+"#"+n+"; must be a function.")},Ii=function(e,t,n){var r,i,a,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(r=e.eventBusEl_,t.length>=3&&t.shift(),i=t[0],a=t[1]):(r=t[0],i=t[1],a=t[2]),ki(r,e,n),Ci(i,e,n),Ei(a,e,n),a=vi(e,a),{isTargetingSelf:o,target:r,type:i,listener:a}},xi=function(e,t,n,r){ki(e,e,t),e.nodeName?fi[t](e,n,r):e[t](n,r)},Ai={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ii(this,n,"on"),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(xi(o,"on",s,l),!a){var u=function(){return e.off(o,s,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,xi(this,"on","dispose",u),xi(o,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ii(this,n,"one"),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(a)xi(o,"one",s,l);else{var u=function t(){e.off(o,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};u.guid=l.guid,xi(o,"one",s,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ii(this,n,"any"),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(a)xi(o,"any",s,l);else{var u=function t(){e.off(o,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];l.apply(null,r)};u.guid=l.guid,xi(o,"any",s,u)}},off:function(e,t,n){if(!e||Si(e))ui(this.eventBusEl_,e,t);else{var r=e,i=t;ki(r,this,"off"),Ci(i,this,"off"),Ei(n,this,"off"),n=vi(this,n),this.off("dispose",n),r.nodeName?(ui(r,i,n),ui(r,"dispose",n)):Ti(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){ki(this.eventBusEl_,this,"trigger");var n=e&&"string"!==typeof e?e.type:e;if(!Si(n)){var r="Invalid event type for "+bi(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(r);(this.log||Ln).error(r)}return ci(this.eventBusEl_,e,t)}};function Pi(e,t){void 0===t&&(t={});var n=t,r=n.eventBusKey;if(r){if(!e[r].nodeName)throw new Error('The eventBusKey "'+r+'" does not refer to an element.');e.eventBusEl_=e[r]}else e.eventBusEl_=yr("span",{className:"vjs-event-bus"});return Un(e,Ai),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&ni.has(e)&&ni["delete"](e)})),i().setTimeout((function(){e.eventBusEl_=null}),0)})),e}var $i={state:{},setState:function(e){var t,n=this;return"function"===typeof e&&(e=e()),Mn(e,(function(e,r){n.state[r]!==e&&(t=t||{},t[r]={from:n.state[r],to:e}),n.state[r]=e})),t&&Ti(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Oi(e,t){return Un(e,$i),e.state=Un({},e.state,t),"function"===typeof e.handleStateChanged&&Ti(e)&&e.on("statechanged",e.handleStateChanged),e}var Ni=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},Li=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},Di=function(e,t){return Li(e)===Li(t)};function Ri(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&Mn(t,(function(t,n){jn(t)?(jn(e[n])||(e[n]={}),e[n]=Ri(e[n],t)):e[n]=t}))})),e}var Fi=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t["delete"]=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Mi=i().Map?i().Map:Fi,Vi=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t["delete"]=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Ui=i().Set?i().Set:Vi,Bi=function(){function e(e,t,n){var r=this;if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Ri({},this.options_),t=this.options_=Ri(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var i=e&&e.id&&e.id()||"no_player";this.id_=i+"_component_"+ei()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((function(e){return r.addClass(e)})),!1!==t.evented&&(Pi(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Oi(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Ui,this.setIntervalIds_=new Ui,this.rafIds_=new Ui,this.namedRafs_=new Mi,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(e){if(void 0===e&&(e={}),!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var t=this.children_.length-1;t>=0;t--)this.children_[t].dispose&&this.children_[t].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Ri(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return yr(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split("-")[0],s=i&&i[o],l=n;return a&&a[e]?l=a[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],i=r;return"undefined"===typeof r&&(i=e),i}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var r=this,i=0;i<t.length;i++)if(r=r.getChild(t[i]),!r||!r.getChild)return;return r},t.addChild=function(t,n,r){var i,a;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"===typeof t){a=Li(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!==typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"===typeof i.id&&(this.childIndex_[i.id()]=i),a=a||i.name&&Li(i.name()),a&&(this.childNameIndex_[a]=i,this.childNameIndex_[Ni(a)]=i),"function"===typeof i.el&&i.el()){var l=null;this.children_[r+1]&&(this.children_[r+1].el_?l=this.children_[r+1].el_:mr(this.children_[r+1])&&(l=this.children_[r+1])),this.contentEl().insertBefore(i.el(),l)}return i},t.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[Li(e.name())]=null,this.childNameIndex_[Ni(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,a=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(n,r);a&&(t[n]=a)}},o=e.getComponent("Tech");r=Array.isArray(n)?n:Object.keys(n),r.concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var r,i;return"string"===typeof e?(r=e,i=n[r]||t.options_[r]||{}):(r=e.name,i=e),{name:r,opts:i}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||Li(t.name));return n&&!o.isTech(n)})).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return jr(e,t||this.contentEl())},t.$$=function(e,t){return Wr(e,t||this.contentEl())},t.hasClass=function(e){return Tr(this.el_,e)},t.addClass=function(e){wr(this.el_,e)},t.removeClass=function(e){Sr(this.el_,e)},t.toggleClass=function(e,t){kr(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Ir(this.el_,e)},t.setAttribute=function(e,t){xr(this.el_,e,t)},t.removeAttribute=function(e){Ar(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+Li(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Wn(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){var n="offset"+Li(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(u().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null,r=10,a=200;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i().performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY,o=Math.sqrt(i*i+a*a);o>r&&(e=!1)}}));var o=function(){e=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(r){if(n=null,!0===e){var o=i().performance.now()-t;o<a&&(r.preventDefault(),this.trigger("tap"))}}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=vi(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=vi(this,e),this.clearTimersOnDispose_(),n=i().setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_["delete"](n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_["delete"](e),i().clearTimeout(e)),e},t.setInterval=function(e,t){e=vi(this,e),this.clearTimersOnDispose_();var n=i().setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_["delete"](e),i().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=vi(this,e),t=i().requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_["delete"](t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=vi(this,t);var r=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_["delete"](e)}));return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_["delete"](e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_["delete"](e),i().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],r=t[1];e[n].forEach((function(t,n){return e[r](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!==typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,i=e.getComponent("Tech"),a=i&&i.isTech(n),o=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!o)throw r=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=Li(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,u=Object.keys(l);if(l&&u.length>0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Ni(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function ji(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function Wi(e,t,n,r){return ji(e,r,n.length-1),n[r][t]}function Hi(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Wi.bind(null,"start",0,e),end:Wi.bind(null,"end",1,e)},i().Symbol&&i().Symbol.iterator&&(t[i().Symbol.iterator]=function(){return(e||[]).values()}),t}function qi(e,t){return Array.isArray(e)?Hi(e):void 0===e||void 0===t?Hi():Hi([[e,t]])}function Gi(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=qi(0,0));for(var a=0;a<e.length;a++)n=e.start(a),r=e.end(a),r>t&&(r=t),i+=r-n;return i/t}function zi(e){if(e instanceof zi)return e;"number"===typeof e?this.code=e:"string"===typeof e?this.message=e:Bn(e)&&("number"===typeof e.code&&(this.code=e.code),Un(this,e)),this.message||(this.message=zi.defaultMessages[this.code]||"")}Bi.prototype.supportsRaf_="function"===typeof i().requestAnimationFrame&&"function"===typeof i().cancelAnimationFrame,Bi.registerComponent("Component",Bi),zi.prototype.code=0,zi.prototype.message="",zi.prototype.status=null,zi.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],zi.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Yi=0;Yi<zi.errorTypes.length;Yi++)zi[zi.errorTypes[Yi]]=Yi,zi.prototype[zi.errorTypes[Yi]]=Yi;function Ki(e){return void 0!==e&&null!==e&&"function"===typeof e.then}function Xi(e){Ki(e)&&e.then(null,(function(e){}))}var Ji=function(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,r){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))});return t},Zi=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track})),r=Array.prototype.map.call(t,(function(e){var t=Ji(e.track);return e.src&&(t.src=e.src),t}));return r.concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(Ji))},Qi=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},ea={textTracksToJson:Zi,jsonToTextTracks:Qi,trackToJson_:Ji},ta="vjs-modal-dialog",na=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.close_=function(e){return r.close(e)},r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=yr("div",{className:ta+"-content"},{role:"document"}),r.descEl_=yr("p",{className:ta+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),_r(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return ta+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"===typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"===typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),Vr(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),Rr(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return"undefined"!==typeof e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=o().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),u().isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(u().isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}o().activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof i().HTMLAnchorElement||e instanceof i().HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof i().HTMLInputElement||e instanceof i().HTMLSelectElement||e instanceof i().HTMLTextAreaElement||e instanceof i().HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof i().HTMLIFrameElement||e instanceof i().HTMLObjectElement||e instanceof i().HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(Bi);na.prototype.options_={pauseOnOpen:!0,temporary:!0},Bi.registerComponent("ModalDialog",na);var ra=function(e){function t(t){var n;void 0===t&&(t=[]),n=e.call(this)||this,n.tracks_=[],Object.defineProperty(c(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}h(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},Ti(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(_i);for(var ia in ra.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},ra.prototype.allowedEvents_)ra.prototype["on"+ia]=null;var aa=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},oa=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){aa(t,t[r]);break}return n=e.call(this,t)||this,n.changing_=!1,n}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&aa(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,aa(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(ra),sa=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},la=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){sa(t,t[r]);break}return n=e.call(this,t)||this,n.changing_=!1,Object.defineProperty(c(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&sa(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,sa(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(ra),ua=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);var r=["metadata","chapters"];-1===r.indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(ra),ca=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"===typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"===typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),da=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),ha={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},pa={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},fa={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},ma={disabled:"disabled",hidden:"hidden",showing:"showing"},va=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+ei(),kind:t.kind||"",language:t.language||""},i=t.label||"",a=function(e){Object.defineProperty(c(n),e,{get:function(){return r[e]},set:function(){}})};for(var o in r)a(o);return Object.defineProperty(c(n),"label",{get:function(){return i},set:function(e){e!==i&&(i=e,this.trigger("labelchange"))}}),n}return h(t,e),t}(_i),ga=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o().createElement("a");n.href=e;for(var r={},a=0;a<t.length;a++)r[t[a]]=n[t[a]];return"http:"===r.protocol&&(r.host=r.host.replace(/:80$/,"")),"https:"===r.protocol&&(r.host=r.host.replace(/:443$/,"")),r.protocol||(r.protocol=i().location.protocol),r.host||(r.host=i().location.host),r},ya=function(e){if(!e.match(/^https?:\/\//)){var t=o().createElement("a");t.href=e,e=t.href}return e},_a=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},ba=function(e,t){void 0===t&&(t=i().location);var n=ga(e),r=":"===n.protocol?t.protocol:n.protocol,a=r+n.host!==t.protocol+t.host;return a},Ta=Object.freeze({__proto__:null,parseUrl:ga,getAbsoluteURL:ya,getFileExtension:_a,isCrossOrigin:ba}),wa=function(e,t){var n=new(i().WebVTT.Parser)(i(),i().vttjs,i().WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(i().console&&i().console.groupCollapsed&&i().console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach((function(e){return Ln.error(e)})),i().console&&i().console.groupEnd&&i().console.groupEnd()),n.flush()},Sa=function(e,t){var n={uri:e},r=ba(e);r&&(n.cors=r);var a="use-credentials"===t.tech_.crossOrigin();a&&(n.withCredentials=a),v()(n,vi(this,(function(e,n,r){if(e)return Ln.error(e,n);t.loaded_=!0,"function"!==typeof i().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return wa(r,t);Ln.error("vttjs failed to load, stopping trying to process "+t.src)})):wa(r,t)})))},ka=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=Ri(t,{kind:fa[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=ma[r.mode]||"disabled",a=r["default"];"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),n=e.call(this,r)||this,n.tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var o=new da(n.cues_),s=new da(n.activeCues_),l=!1;n.timeupdateHandler=vi(c(n),(function(e){void 0===e&&(e={}),this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}));var u=function(){n.stopTracking()};return n.tech_.one("dispose",u),"disabled"!==i&&n.startTracking(),Object.defineProperties(c(n),{default:{get:function(){return a},set:function(){}},mode:{get:function(){return i},set:function(e){ma[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Sa(this.src,this),this.stopTracking(),"disabled"!==i&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];(i.startTime<=e&&i.endTime>=e||i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e)&&t.push(i)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(l=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==r.kind&&"captions"!==r.kind)&&Sa(n.src,c(n))):n.loaded_=!0,n}h(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)},n.addCue=function(e){var t=e;if(!("getCueAsHTML"in t)){for(var n in t=new(i().vttjs.VTTCue)(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),a=0;a<r.length;a++)r[a]!==this&&r[a].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){var t=this.cues_.length;while(t--){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(va);ka.prototype.allowedEvents_={cuechange:"cuechange"};var Ca=function(e){function t(t){var n;void 0===t&&(t={});var r=Ri(t,{kind:pa[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(c(n),"enabled",{get:function(){return i},set:function(e){"boolean"===typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return h(t,e),t}(va),Ea=function(e){function t(t){var n;void 0===t&&(t={});var r=Ri(t,{kind:ha[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(c(n),"selected",{get:function(){return i},set:function(e){"boolean"===typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return h(t,e),t}(va),Ia=0,xa=1,Aa=2,Pa=3,$a=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new ka(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n["default"]=i["default"],Object.defineProperties(c(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=Ia,i.addEventListener("loadeddata",(function(){r=Aa,n.trigger({type:"load",target:c(n)})})),n}return h(t,e),t}(_i);$a.prototype.allowedEvents_={load:"load"},$a.NONE=Ia,$a.LOADING=xa,$a.LOADED=Aa,$a.ERROR=Pa;var Oa={audio:{ListClass:oa,TrackClass:Ca,capitalName:"Audio"},video:{ListClass:la,TrackClass:Ea,capitalName:"Video"},text:{ListClass:ua,TrackClass:ka,capitalName:"Text"}};Object.keys(Oa).forEach((function(e){Oa[e].getterName=e+"Tracks",Oa[e].privateName=e+"Tracks_"}));var Na={remoteText:{ListClass:ua,TrackClass:ka,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:ca,TrackClass:$a,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},La=s({},Oa,Na);function Da(e,t,n,r,i){void 0===i&&(i={});var a=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var o=new La.text.TrackClass(i);return a.addTrack(o),o}Na.names=Object.keys(Na),Oa.names=Object.keys(Oa),La.names=[].concat(Na.names).concat(Oa.names);var Ra=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,r=e.call(this,null,t,n)||this,r.onDurationChange_=function(e){return r.onDurationChange(e)},r.trackProgress_=function(e){return r.trackProgress(e)},r.trackCurrentTime_=function(e){return r.trackCurrentTime(e)},r.stopTrackingCurrentTime_=function(e){return r.stopTrackingCurrentTime(e)},r.disposeSourceHandler_=function(e){return r.disposeSourceHandler(e)},r.queuedHanders_=new Set,r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),La.names.forEach((function(e){var n=La[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==t.preloadTextTracks,r.autoRemoteTextTracks_=new La.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}h(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(vi(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return qi(0,0)},n.bufferedPercent=function(){return Gi(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Oa.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],r=n.length;while(r--){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}}))},n.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new zi(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?qi(0,0):qi()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Oa.names.forEach((function(t){var n=Oa[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",(function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var e=this;if(!i().WebVTT)if(o().body.contains(this.el())){if(!this.options_["vtt.js"]&&jn(y())&&Object.keys(y()).length>0)return void this.trigger("vttjsloaded");var t=o().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),i().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++){var s=t[e];s.removeEventListener("cuechange",a)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return Da(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Ri(e,{tech:this});return new Na.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Ln.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||i().Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=ei();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){t.queuedHanders_.has(n)&&(t.queuedHanders_["delete"](n),e())}))):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_["delete"](e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=Li(e),t.techs_[e]=n,t.techs_[Ni(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=Li(e),i()&&i().videojs&&i().videojs[e]?(Ln.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i().videojs[e]):void 0)},t}(Bi);La.names.forEach((function(e){var t=La[e];Ra.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Ra.prototype.featuresVolumeControl=!0,Ra.prototype.featuresMuteControl=!0,Ra.prototype.featuresFullscreenResize=!1,Ra.prototype.featuresPlaybackRate=!1,Ra.prototype.featuresProgressEvents=!1,Ra.prototype.featuresSourceset=!1,Ra.prototype.featuresTimeupdateEvents=!1,Ra.prototype.featuresNativeTextTracks=!1,Ra.prototype.featuresVideoFrameCallback=!1,Ra.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t),n)return n;return""},e.selectSourceHandler=function(t,n){for(var r,i=e.sourceHandlers||[],a=0;a<i.length;a++)if(r=i[a].canHandleSource(t,n),r)return i[a];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.forEach((function(e){var t=this[e];"function"===typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Ln.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Bi.registerComponent("Tech",Ra),Ra.registerTech("Tech",Ra),Ra.defaultTechOrder_=[];var Fa={},Ma={},Va={};function Ua(e,t){Fa[e]=Fa[e]||[],Fa[e].push(t)}function Ba(e,t,n){e.setTimeout((function(){return Qa(t,Fa[t.type],n,e)}),1)}function ja(e,t){e.forEach((function(e){return e.setTech&&e.setTech(t)}))}function Wa(e,t,n){return e.reduceRight(Ka(n),t[n]())}function Ha(e,t,n,r){return t[n](e.reduce(Ka(n),r))}function qa(e,t,n,r){void 0===r&&(r=null);var i="call"+Li(n),a=e.reduce(Ka(i),r),o=a===Va,s=o?null:t[n](a);return Xa(e,n,s,o),s}var Ga={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},za={setCurrentTime:1,setMuted:1,setVolume:1},Ya={play:1,pause:1};function Ka(e){return function(t,n){return t===Va?Va:n[e]?n[e](t):t}}function Xa(e,t,n,r){for(var i=e.length-1;i>=0;i--){var a=e[i];a[t]&&a[t](r,n)}}function Ja(e){Ma[e.id()]=null}function Za(e,t){var n=Ma[e.id()],r=null;if(void 0===n||null===n)return r=t(e),Ma[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var a=n[i],o=a[0],s=a[1];o===t&&(r=s)}return null===r&&(r=t(e),n.push([t,r])),r}function Qa(e,t,n,r,i,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===i&&(i=[]),void 0===a&&(a=!1);var o=t,s=o[0],l=o.slice(1);if("string"===typeof s)Qa(e,Fa[s],n,r,i,a);else if(s){var u=Za(r,s);if(!u.setSource)return i.push(u),Qa(e,l,n,r,i,a);u.setSource(Un({},e),(function(t,o){if(t)return Qa(e,l,n,r,i,a);i.push(u),Qa(o,e.type===o.type?l:Fa[o.type],n,r,i,a)}))}else l.length?Qa(e,l,n,r,i,a):a?n(e,i):Qa(e,Fa["*"],n,r,i,!0)}var eo={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/d
345ash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},to=function(e){void 0===e&&(e="");var t=_a(e),n=eo[t.toLowerCase()];return n||""},no=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var a=r[i];if(a.type&&a.src&&a.src===t)return a.type}return to(t)},ro=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):Bn(t)&&n.push(t)})),t=n}else t="string"===typeof t&&t.trim()?[io({src:t})]:Bn(t)&&"string"===typeof t.src&&t.src&&t.src.trim()?[io(t)]:[];return t};function io(e){if(!e.type){var t=to(e.src);t&&(e.type=t)}return e}var ao=function(e){function t(t,n,r){var i,a=Ri({createEl:!1},n);if(i=e.call(this,t,a,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,s=n.playerOptions.techOrder;o<s.length;o++){var l=Li(s[o]),u=Ra.getTech(l);if(l||(u=Bi.getComponent(l)),u&&u.isSupported()){t.loadTech_(l);break}}return i}return h(t,e),t}(Bi);Bi.registerComponent("MediaLoader",ao);var oo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.options_.controlText&&r.controlText(r.options_.controlText),r.handleMouseOver_=function(e){return r.handleMouseOver(e)},r.handleMouseOut_=function(e){return r.handleMouseOut(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.emitTapEvents(),r.enable(),r}h(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=Un({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Ln.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=Un({role:"button"},n),this.tabIndex_=t.tabIndex;var r=yr(e,t,n);return r.appendChild(yr("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=yr("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,_r(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){u().isEventKey(t,"Space")||u().isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Bi);Bi.registerComponent("ClickableComponent",oo);var so=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update(),r.update_=function(e){return r.update(e)},t.on("posterchange",r.update_),r}h(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){var e=yr("div",{className:"vjs-poster",tabIndex:-1});return e},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(nr||Qn)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Xi(this.player_.play()):this.player_.pause()}},t}(oo);Bi.registerComponent("PosterImage",so);var lo="#222",uo="#ccc",co={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 4,712 bytes, line 345
345script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function ho(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function po(e,t,n){try{e.style[t]=n}catch(r){return}}var fo=function(e){function t(t,n,r){var a;a=e.call(this,t,n,r)||this;var o=function(e){return a.updateDisplay(e)};return t.on("loadstart",(function(e){return a.toggleDisplay(e)})),t.on("texttrackchange",o),t.on("loadedmetadata",(function(e){return a.preselectTrack(e)})),t.ready(vi(c(a),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",o),t.on("playerresize",o),i().addEventListener("orientationchange",o),t.on("dispose",(function(){return i().removeEventListener("orientationchange",o)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),a}h(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,o=0;o<i.length;o++){var s=i[o];a&&a.enabled&&a.language&&a.language===s.language&&s.kind in r?s.kind===a.kind?n=s:n||(n=s):a&&!a.enabled?(n=null,e=null,t=null):s["default"]&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"===typeof i().WebVTT&&i().WebVTT.processCues(i(),[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{var a=null,o=null,s=e.length;while(s--){var l=e[s];"showing"===l.mode&&("descriptions"===l.kind?a=l:o=l)}o?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(o)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;while(r--){var a=n[r];if(a){var o=a.displayState;if(t.color&&(o.firstChild.style.color=t.color),t.textOpacity&&po(o.firstChild,"color",ho(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(o.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&po(o.firstChild,"backgroundColor",ho(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?po(o,"backgroundColor",ho(t.windowColor,t.windowOpacity)):o.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px "+lo+", 2px 2px 4px "+lo+", 2px 2px 5px "+lo:"raised"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px "+lo+", 2px 2px "+lo+", 3px 3px "+lo:"depressed"===t.edgeStyle?o.firstChild.style.textShadow="1px 1px "+uo+", 0 1px "+uo+", -1px -1px "+lo+", 0 -1px "+lo:"uniform"===t.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px "+lo+", 0 0 4px "+lo+", 0 0 4px "+lo+", 0 0 4px "+lo)),t.fontPercent&&1!==t.fontPercent){var s=i().parseFloat(o.style.fontSize);o.style.fontSize=s*t.fontPercent+"px",o.style.height="auto",o.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=co[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"===typeof i().WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],a=0;a<r.activeCues.length;++a)t.push(r.activeCues[a]);i().WebVTT.processCues(i(),t,this.el_);for(var o=0;o<e.length;++o){for(var s=e[o],l=0;l<s.activeCues.length;++l){var u=s.activeCues[l].displayState;wr(u,"vjs-text-track-cue"),wr(u,"vjs-text-track-cue-"+(s.language?s.language:o)),s.language&&xr(u,"lang",s.language)}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(Bi);Bi.registerComponent("TextTrackDisplay",fo);var mo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
345Video Player"),r=yr("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(Bi);Bi.registerComponent("LoadingSpinner",mo);var vo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),e="button",t=Un({className:this.buildCSSClass()},t),n=Un({type:"button"},n);var r=yr(e,t,n);return r.appendChild(yr("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return Ln.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Bi.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){u().isEventKey(t,"Space")||u().isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(oo);Bi.registerComponent("Button",vo);var go=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.mouseused_=!1,r.on("mousedown",(function(e){return r.handleMouseDown(e)})),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Xi(t),void(!this.player_.tech(!0)||(nr||Qn)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(i){var a=function(){return i.focus()};Ki(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(vo);go.prototype.controlText_="Play Video",Bi.registerComponent("BigPlayButton",go);var yo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.controlText(n&&n.controlText||r.localize("Close")),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){u().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(vo);Bi.registerComponent("CloseButton",yo);var _o=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",(function(e){return r.handlePlay(e)})),r.on(t,"pause",(function(e){return r.handlePause(e)})),n.replay&&r.on(t,"ended",(function(e){return r.handleEnded(e)})),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Xi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(vo);_o.prototype.controlText_="Play",Bi.registerComponent("PlayToggle",_o);var bo=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),i=i>0||o>0?i+":":"",r=((i||a>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n},To=bo;function wo(e){To=e}function So(){To=bo}function ko(e,t){return void 0===t&&(t=e),To(e,t)}var Co=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,["timeupdate","ended"],(function(e){return r.updateContent(e)})),r.updateTextNode_(),r}h(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),r=yr("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+" "},{role:"presentation"});return n.appendChild(r),this.contentEl_=yr("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=ko(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,Ln.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=o().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Bi);Co.prototype.labelText_="Time",Co.prototype.controlText_="Time",Bi.registerComponent("TimeDisplay",Co);var Eo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(Co);Eo.prototype.labelText_="Current Time",Eo.prototype.controlText_="Current Time",Bi.registerComponent("CurrentTimeDisplay",Eo);var Io=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=function(e){return r.updateContent(e)};
vendor: 54,157 bytes, line 345
345return r.on(t,"durationchange",i),r.on(t,"loadstart",i),r.on(t,"loadedmetadata",i),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(Co);Io.prototype.labelText_="Duration",Io.prototype.controlText_="Duration",Bi.registerComponent("DurationDisplay",Io);var xo=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),r=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(r),t.appendChild(n),t},t}(Bi);Bi.registerComponent("TimeDivider",xo);var Ao=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"durationchange",(function(e){return r.updateContent(e)})),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(yr("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"===typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(Co);Ao.prototype.labelText_="Remaining Time",Ao.prototype.controlText_="Remaining Time",Bi.registerComponent("RemainingTimeDisplay",Ao);var Po=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.updateShowing(),r.on(r.player(),"durationchange",(function(e){return r.updateShowing(e)})),r}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=yr("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(yr("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+" "})),this.contentEl_.appendChild(o().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Bi);Bi.registerComponent("LiveDisplay",Po);var $o=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.updateLiveEdgeStatus(),r.player_.liveTracker&&(r.updateLiveEdgeStatusHandler_=function(e){return r.updateLiveEdgeStatus(e)},r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatusHandler_)),r}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=yr("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(vo);$o.prototype.controlText_="Seek to live, currently playing live",Bi.registerComponent("SeekToLive",$o);var Oo=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},No=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.handleMouseDown_=function(e){return r.handleMouseDown(e)},r.handleMouseUp_=function(e){return r.handleMouseUp(e)},r.handleKeyDown_=function(e){return r.handleKeyDown(e)},r.handleClick_=function(e){return r.handleClick(e)},r.handleMouseMove_=function(e){return r.handleMouseMove(e)},r.update_=function(e){return r.update(e)},r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}h(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=Un({tabIndex:0},n),r=Un({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||er||e.preventDefault(),Pr(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;$r(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(Oo(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Lr(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){u().isEventKey(t,"Left")||u().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):u().isEventKey(t,"Right")||u().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Bi);Bi.registerComponent("Slider",No);var Lo=function(e,t){return Oo(e/t*100,0,100).toFixed(2)+"%"},Do=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.partEls_=[],r.on(t,"progress",(function(e){return r.update(e)})),r}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=yr("span",{className:"vjs-control-text"}),r=yr("span",{textContent:this.localize("Loaded")}),i=o().createTextNode(": ");return this.percentageEl_=yr("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(i),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),i=t.player_.bufferedEnd(),a=t.partEls_,o=Lo(i,r);t.percent_!==o&&(t.el_.style.width=o,_r(t.percentageEl_,o),t.percent_=o);for(var s=0;s<n.length;s++){var l=n.start(s),u=n.end(s),c=a[s];c||(c=t.el_.appendChild(yr()),a[s]=c),c.dataset.start===l&&c.dataset.end===u||(c.dataset.start=l,c.dataset.end=u,c.style.left=Lo(l,i),c.style.width=Lo(u-l,i))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Bi);Bi.registerComponent("LoadProgressBar",Do);var Ro=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update=gi(vi(c(r),r.update),mi),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=Nr(this.el_),i=Or(this.player_.el()),a=e.width*t;if(i&&r){var o=e.left-i.left+a,s=e.width-a+(i.right-e.right),l=r.width/2;o<l?l+=l-o:s<l&&(l=s),l<0?l=0:l>r.width&&(l=r.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){_r(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,o=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var s=i.player_.liveTracker.liveWindow(),l=s-t*s;a=(l<1?"":"-")+ko(l,s)}else a=ko(n,o);i.update(e,t,a),r&&r()}))},t}(Bi);Bi.registerComponent("TimeTooltip",Ro);var Fo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update=gi(vi(c(r),r.update),mi),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(Bi);Fo.prototype.options_={children:[]},lr||Kn||Fo.prototype.options_.children.push("timeTooltip"),Bi.registerComponent("PlayProgressBar",Fo);var Mo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update=gi(vi(c(r),r.update),mi),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,(function(){n.el_.style.left=e.width*t+"px"}))},t}(Bi);Mo.prototype.options_={children:["timeTooltip"]},Bi.registerComponent("MouseTimeDisplay",Mo);var Vo=5,Uo=12,Bo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.setEventHandlers_(),r}h(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=vi(this,this.update),this.update=gi(this.update_,mi),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.on(o(),"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===o().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,mi))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==o().visibilityState){var r=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ko(e,i),ko(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(Or(n.el()),n.getProgress())})),r}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Ur(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Ur(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var r=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(r>=.99)return void i.seekToLiveEdge();var a=i.seekableStart(),o=i.liveCurrentTime();if(n=a+r*i.liveWindow(),n>=o&&(n=o),n<=a&&(n=a+.1),n===1/0)return}else n=r*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Xi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+Vo)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-Vo)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(u().isEventKey(t,"Space")||u().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(u().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(u().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(u()(t))){t.preventDefault(),t.stopPropagation();var r=10*(u().codes[u()(t)]-u().codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*r):this.userSeek_(this.player_.duration()*r)}else u().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Vo*Uo)):u().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Vo*Uo)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.off(o(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(No);Bo.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},lr||Kn||Bo.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Bi.registerComponent("SeekBar",Bo);var jo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.handleMouseMove=gi(vi(c(r),r.handleMouseMove),mi),r.throttledHandleMouseSeek=gi(vi(c(r),r.handleMouseSeek),mi),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.handleMouseDownHandler_=function(e){return r.handleMouseDown(e)},r.enable(),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var i=t.el(),a=Nr(i),o=Lr(i,e).x;o=Oo(o,0,1),r&&r.update(a,o),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Xi(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Bi);jo.prototype.options_={children:["seekBar"]},Bi.registerComponent("ProgressControl",jo);var Wo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return r.handlePictureInPictureChange(e)})),r.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return r.handlePictureInPictureEnabledChange(e)})),r.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){var e="audio"===t.currentType().substring(0,5);e||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),r.hide()):r.show()})),r.disable(),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){o().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(vo);Wo.prototype.controlText_="Picture-in-Picture",Bi.registerComponent("PictureInPictureToggle",Wo);var Ho=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"fullscreenchange",(function(e){return r.handleFullscreenChange(e)})),!1===o()[t.fsApi_.fullscreenEnabled]&&r.disable(),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(vo);Ho.prototype.controlText_="Fullscreen",Bi.registerComponent("FullscreenToggle",Ho);var qo=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Go=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Bi);Bi.registerComponent("VolumeLevel",Go);var zo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update=gi(vi(c(r),r.update),mi),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,r){if(!n){var i=Or(this.el_),a=Or(this.player_.el()),o=e.width*t;if(!a||!i)return;var s=e.left-a.left+o,l=e.width-o+(a.right-e.right),u=i.width/2;s<u?u+=u-s:l<u&&(u=l),u<0?u=0:u>i.width&&(u=i.width),this.el_.style.right="-"+u+"px"}this.write(r+"%")},n.write=function(e){_r(this.el_,e)},n.updateVolume=function(e,t,n,r,i){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,r.toFixed(0)),i&&i()}))},t}(Bi);Bi.registerComponent("VolumeLevelTooltip",zo);var Yo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update=gi(vi(c(r),r.update),mi),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var r=this,i=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,i,(function(){n?r.el_.style.bottom=e.height*t+"px":r.el_.style.left=e.width*t+"px"}))},t}(Bi);Yo.prototype.options_={children:["volumeLevelTooltip"]},Bi.registerComponent("MouseVolumeLevelDisplay",Yo);var Ko=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on("slideractive",(function(e){return r.updateLastVolume_(e)})),r.on(t,"volumechange",(function(e){return r.updateARIAAttributes(e)})),t.ready((function(){return r.updateARIAAttributes()})),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Ur(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),r=Or(n),i=this.vertical(),a=Lr(n,e);a=i?a.y:a.x,a=Oo(a,0,1),t.update(r,a,i)}Ur(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(No);Ko.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},lr||Kn||Ko.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ko.prototype.playerEvent="volumechange",Bi.registerComponent("VolumeBar",Ko);var Xo=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,("undefined"===typeof n.volumeBar||jn(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,qo(c(r),t),r.throttledHandleMouseMove=gi(vi(c(r),r.handleMouseMove),mi),r.handleMouseUpHandler_=function(e){return r.handleMouseUp(e)},r.on("mousedown",(function(e){return r.handleMouseDown(e)})),r.on("touchstart",(function(e){return r.handleMouseDown(e)})),r.on("mousemove",(function(e){return r.handleMouseMove(e)})),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}h(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Bi);Xo.prototype.options_={children:["volumeBar"]},Bi.registerComponent("VolumeControl",Xo);var Jo=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Zo=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,Jo(c(r),t),r.on(t,["loadstart","volumechange"],(function(e){return r.update(e)})),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;lr&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)Sr(this.el_,"vjs-vol-"+n);wr(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(vo);Zo.prototype.controlText_="Mute",Bi.registerComponent("MuteToggle",Zo);var Qo=function(e){function t(t,n){var r;return void 0===n&&(n={}),"undefined"!==typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"===typeof n.volumeControl||jn(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),r=e.call(this,t,n)||this,r.handleKeyPressHandler_=function(e){return r.handleKeyPress(e)},r.on(t,["loadstart"],(function(e){return r.volumePanelState_(e)})),r.on(r.muteToggle,"keyup",(function(e){return r.handleKeyPress(e)})),r.on(r.volumeControl,"keyup",(function(e){return r.handleVolumeControlKeyUp(e)})),r.on("keydown",(function(e){return r.handleKeyPress(e)})),r.on("mouseover",(function(e){return r.handleMouseOver(e)})),r.on("mouseout",(function(e){return r.handleMouseOut(e)})),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}h(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){u().isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),li(o(),"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),ui(o(),"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){u().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Bi);Qo.prototype.options_={children:["muteToggle","volumeControl"]},Bi.registerComponent("VolumePanel",Qo);var es=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",(function(e){return r.handleKeyDown(e)})),r.boundHandleBlur_=function(e){return r.handleBlur(e)},r.boundHandleTapClick_=function(e){return r.handleTapClick(e)},r}h(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Bi&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Bi&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"===typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=yr(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),li(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||o().activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){u().isEventKey(e,"Left")||u().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(u().isEventKey(e,"Right")||u().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice(),n=t.length&&t[0].hasClass("vjs-menu-title");n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Bi);Bi.registerComponent("Menu",es);var ts=function(e){function t(t,n){var r;void 0===n&&(n={}),r=e.call(this,t,n)||this,r.menuButton_=new vo(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=vo.prototype.buildCSSClass();r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0;var a=function(e){return r.handleClick(e)};return r.handleMenuKeyUp_=function(e){return r.handleMenuKeyUp(e)},r.on(r.menuButton_,"tap",a),r.on(r.menuButton_,"click",a),r.on(r.menuButton_,"keydown",(function(e){return r.handleKeyDown(e)})),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),li(o(),"keyup",r.handleMenuKeyUp_)})),r.on("mouseleave",(function(e){return r.handleMouseLeave(e)})),r.on("keydown",(function(e){return r.handleSubmenuKeyDown(e)})),r}h(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e=new es(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=yr("li",{className:"vjs-menu-title",textContent:Li(this.options_.title),tabIndex:-1}),n=new Bi(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";!0===this.options_.inline?t+="-inline":t+="-popup";var n=vo.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),ui(o(),"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){u().isEventKey(e,"Esc")||u().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),u().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(u().isEventKey(e,"Up")||u().isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(u().isEventKey(e,"Esc")||u().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(u().isEventKey(e,"Esc")||u().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),u().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),lr&&vr())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Bi);Bi.registerComponent("MenuButton",ts);var ns=function(e){function t(t,n){var r,i=n.tracks;if(r=e.call(this,t,n)||this,r.items.length<=1&&r.hide(),!i)return c(r);var a=vi(c(r),r.update);return i.addEventListener("removetrack",a),i.addEventListener("addtrack",a),i.addEventListener("labelchange",a),r.player_.on("ready",a),r.player_.on("dispose",(function(){i.removeEventListener("removetrack",a),i.removeEventListener("addtrack",a),i.removeEventListener("labelchange",a)})),r}return h(t,e),t}(ts);Bi.registerComponent("TrackButton",ns);var rs=["Tab","Esc","Up","Down","Right","Left"],is=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}h(t,e);var n=t.prototype;return n.createEl=function(t,n,r){this.nonIconControl=!0;var i=e.prototype.createEl.call(this,"li",Un({className:"vjs-menu-item",tabIndex:-1},n),r);return i.replaceChild(yr("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),i.querySelector(".vjs-icon-placeholder")),i},n.handleKeyDown=function(t){rs.some((function(e){return u().isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(oo);Bi.registerComponent("MenuItem",is);var as=function(e){function t(t,n){var r,a=n.track,s=t.textTracks();n.label=a.label||a.language||"Unknown",n.selected="showing"===a.mode,r=e.call(this,t,n)||this,r.track=a,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var l,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(c(r),t)},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(c(r),t)};(t.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",d),r.on("dispose",(function(){t.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",d)})),void 0===s.onchange)&&r.on(["tap","click"],(function(){if("object"!==typeof i().Event)try{l=new(i().Event)("change")}catch(e){}l||(l=o().createEvent("Event"),l.initEvent("change",!0,!0)),s.dispatchEvent(l)}));return r.handleTracksChange(),r}h(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var a=r[i];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(is);Bi.registerComponent("TextTrackMenuItem",as);var os=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}h(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var a=t[r];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var a=t[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(as);Bi.registerComponent("OffTextTrackMenuItem",os);var ss=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}h(t,e);var n=t.prototype;return n.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=as),this.label_&&(n=this.label_+" off"),e.push(new os(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var a=r[i];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(ns);Bi.registerComponent("TextTrackButton",ss);var ls=function(e){function t(t,n){var r,i=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o<a.endTime,r=e.call(this,t,n)||this,r.track=i,r.cue=a,r}h(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(is);Bi.registerComponent("ChaptersTrackMenuItem",ls);var us=function(e){function t(t,n,r){var i;return i=e.call(this,t,n,r)||this,i.selectCurrentItem_=function(){i.items.forEach((function(e){e.selected(i.track_.activeCues[0]===e.cue)}))},i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){if(!t||!t.track||"chapters"===t.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),e.prototype.update.call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(Li(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],a=new ls(this.player_,{track:this.track_,cue:i});e.push(a)}return e},t}(ss);us.prototype.kind_="chapters",us.prototype.controlText_="Chapters",Bi.registerComponent("ChaptersButton",us);var cs=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var a=t.textTracks(),o=vi(c(i),i.handleTracksChange);return a.addEventListener("change",o),i.on("dispose",(function(){a.removeEventListener("change",o)})),i}h(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var a=t[r];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ss);cs.prototype.kind_="descriptions",cs.prototype.controlText_="Descriptions",Bi.registerComponent("DescriptionsButton",cs);var ds=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ss);ds.prototype.kind_="subtitles",ds.prototype.controlText_="Subtitles",Bi.registerComponent("SubtitlesButton",ds);var hs=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",r=e.call(this,t,n)||this,r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}h(t,e);var n=t.prototype;return n.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(as);Bi.registerComponent("CaptionSettingsMenuItem",hs);var ps=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new hs(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ss);ps.prototype.kind_="captions",ps.prototype.controlText_="Captions",Bi.registerComponent("CaptionsButton",ps);var fs=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i=e.prototype.createEl.call(this,t,n,r),a=i.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(yr("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(yr("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),i},t}(as);Bi.registerComponent("SubsCapsMenuItem",fs);var ms=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(Li(r.label_)),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new hs(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,fs),t},t}(ss);ms.prototype.kinds_=["captions","subtitles"],ms.prototype.controlText_="Subtitles",Bi.registerComponent("SubsCapsButton",ms);var vs=function(e){function t(t,n){var r,i=n.track,a=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,r=e.call(this,t,n)||this,r.track=i,r.addClass("vjs-"+i.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(c(r),t)};return a.addEventListener("change",o),r.on("dispose",(function(){a.removeEventListener("change",o)})),r}h(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i=e.prototype.createEl.call(this,t,n,r),a=i.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(yr("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(yr("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),i},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),r=0;r<n.length;r++){var i=n[r];i!==this.track&&(i.enabled=i===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(is);Bi.registerComponent("AudioTrackMenuItem",vs);var gs=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new vs(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(ns);gs.prototype.controlText_="Audio Track",Bi.registerComponent("AudioTrackButton",gs);var ys=function(e){function t(t,n){var r,i=n.rate,a=parseFloat(i,10);return n.label=i,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,r=e.call(this,t,n)||this,r.label=i,r.rate=a,r.on(t,"ratechange",(function(e){return r.update(e)})),r}h(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(is);ys.prototype.contentElType="button",Bi.registerComponent("PlaybackRateMenuItem",ys);var _s=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.menuButton_.el_.setAttribute("aria-describedby",r.labelElId_),r.updateVisibility(),r.updateLabel(),r.on(t,"loadstart",(function(e){return r.updateVisibility(e)})),r.on(t,"ratechange",(function(e){return r.updateLabel(e)})),r.on(t,"playbackrateschange",(function(e){return r.handlePlaybackRateschange(e)})),r}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=yr("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new ys(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),r=n.indexOf(t),i=(r+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(ts);_s.prototype.controlText_="Playback Rate",Bi.registerComponent("PlaybackRateMenuButton",_s);var bs=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,r){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,r)},t}(Bi);Bi.registerComponent("Spacer",bs);var Ts=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:" "})},t}(bs);Bi.registerComponent("CustomControlSpacer",Ts);var ws=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Bi);ws.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in o()&&ws.prototype.options_.children.splice(ws.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Bi.registerComponent("ControlBar",ws);var Ss=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"error",(function(e){return r.open(e)})),r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(na);Ss.prototype.options_=s({},na.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Bi.registerComponent("ErrorDisplay",Ss);var ks="vjs-text-track-settings",Cs=["#000","Black"],Es=["#00F","Blue"],Is=["#0FF","Cyan"],xs=["#0F0","Green"],As=["#F0F","Magenta"],Ps=["#F00","Red"],$s=["#FFF","White"],Os=["#FF0","Yellow"],Ns=["1","Opaque"],Ls=["0.5","Semi-Transparent"],Ds=["0","Transparent"],Rs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Cs,$s,Ps,xs,Es,Os,As,Is]},backgroundOpacity:{selector:".vjs-bg-opacity >
345 select",id:"captions-background-opacity-%s",label:"Transparency",options:[Ns,Ls,Ds]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[$s,Cs,Ps,xs,Es,Os,As,Is]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Ns,Ls]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Ds,Ls,Ns]}};function Fs(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function Ms(e,t){var n=e.options[e.options.selectedIndex].value;return Fs(n,t)}function Vs(e,t,n){if(t)for(var r=0;r<e.options.length;
vendor: 37,930 bytes, line 345
345r++)if(Fs(e.options[r].value,n)===t){e.selectedIndex=r;break}}Rs.windowColor.options=Rs.backgroundColor.options;var Us=function(e){function t(t,n){var r;return n.temporary=!1,r=e.call(this,t,n)||this,r.updateDisplay=r.updateDisplay.bind(c(r)),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=yr("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),Mn(Rs,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}h(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=Rs[e],a=i.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(i.options.map((function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',r.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return yr("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return yr("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return yr("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return Vn(Rs,(function(t,n,r){var i=Ms(e.$(n.selector),n.parser);return void 0!==i&&(t[r]=i),t}),{})},n.setValues=function(e){var t=this;Mn(Rs,(function(n,r){Vs(t.$(n.selector),e[r],n.parser)}))},n.setDefaults=function(){var e=this;Mn(Rs,(function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(i().localStorage.getItem(ks))}catch(t){Ln.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?i().localStorage.setItem(ks,JSON.stringify(e)):i().localStorage.removeItem(ks)}catch(t){Ln.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(na);Bi.registerComponent("TextTrackSettings",Us);var Bs=function(e){function t(t,n){var r,a=n.ResizeObserver||i().ResizeObserver;null===n.ResizeObserver&&(a=!1);var o=Ri({createEl:!a,reportTouchActivity:!1},n);return r=e.call(this,t,o)||this,r.ResizeObserver=n.ResizeObserver||i().ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=yi((function(){r.resizeHandler()}),100,!1,c(r)),a?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){ui(this,"resize",e),ui(this,"unload",t),t=null};li(r.el_.contentWindow,"unload",t),li(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Bi);Bi.registerComponent("ResizeManager",Bs);var js={trackingThreshold:20,liveTolerance:15},Ws=function(e){function t(t,n){var r,i=Ri(js,n,{createEl:!1});return r=e.call(this,t,i)||this,r.handleVisibilityChange_=function(e){return r.handleVisibilityChange(e)},r.trackLiveHandler_=function(){return r.trackLive_()},r.handlePlay_=function(e){return r.handlePlay(e)},r.handleFirstTimeupdate_=function(e){return r.handleFirstTimeupdate(e)},r.handleSeeked_=function(e){return r.handleSeeked(e)},r.seekToLiveEdge_=function(e){return r.seekToLiveEdge(e)},r.reset_(),r.on(r.player_,"durationchange",(function(e){return r.handleDurationchange(e)})),r.on(r.player_,"canplay",(function(){return r.toggleTracking()})),nr&&"hidden"in o()&&"visibilityState"in o()&&r.on(o(),"visibilitychange",r.handleVisibilityChange_),r}h(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(o().hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(i().performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),a=this.player_.currentTime(),o=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-a)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,mi),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){var e=this.player_.seekable(),t=[],n=e?e.length:0;while(n--)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"===typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(o(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Bi);Bi.registerComponent("LiveTracker",Ws);var Hs,qs=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&-1===r.indexOf(o)&&r.push(o)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},Gs=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=o().createElement(this.nodeName.toLowerCase());t.innerHTML=e;var n=o().createDocumentFragment();while(t.childNodes.length)n.appendChild(t.childNodes[0]);return this.innerText="",i().Element.prototype.appendChild.call(this,n),this.innerHTML}}),zs=function(e,t){for(var n={},r=0;r<e.length;r++)if(n=Object.getOwnPropertyDescriptor(e[r],t),n&&n.set&&n.get)break;return n.enumerable=!0,n.configurable=!0,n},Ys=function(e){return zs([e.el(),i().HTMLMediaElement.prototype,i().Element.prototype,Gs],"innerHTML")},Ks=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=Ys(e),i=function(n){return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=n.apply(t,i);return qs(e),o}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=i(n[e]))})),Object.defineProperty(t,"innerHTML",Ri(r,{set:i(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},Xs=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?ya(i().Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return i().Element.prototype.setAttribute.call(this,"src",e),e}}),Js=function(e){return zs([e.el(),i().HTMLMediaElement.prototype,Xs],"src")},Zs=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=Js(e),r=t.setAttribute,i=t.load;Object.defineProperty(t,"src",Ri(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var a=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=i.call(t);return qs(e)||(e.triggerSourceset(""),Ks(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):qs(e)||Ks(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=i,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Qs=function(e,t,n,r){void 0===r&&(r=!0);var i=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return i(e),e}};return r&&(a.set=i),Object.defineProperty(e,t,a)},el=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,a=!1;if(r.featuresVideoFrameCallback=r.featuresVideoFrameCallback&&"VIDEO"===r.el_.tagName,i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){var o=r.el_.childNodes,s=o.length,l=[];while(s--){var u=o[s],c=u.nodeName.toLowerCase();"track"===c&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(u),r.remoteTextTracks().addTrack(u.track),r.textTracks().addTrack(u.track),a||r.el_.hasAttribute("crossorigin")||!ba(u.src)||(a=!0)):l.push(u))}for(var d=0;d<l.length;d++)r.el_.removeChild(l[d])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&a&&Ln.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(ar||sr||Jn)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}h(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Zs(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(e){var t=n.el()[r+"Tracks"];t.removeEventListener(e,n[r+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Oa[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var a={change:function(n){var r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&t[Na.remoteText.getterName]().trigger(r)},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,a=0;a<r.length;a++)if(r[a]===i[t]){n=!0;break}n||e.push(i[t])}while(e.length)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach((function(e){var n=a[e];r.addEventListener(e,n),t.on("dispose",(function(t){return r.removeEventListener(e,n)}))})),this.on("loadstart",o),this.on("dispose",(function(e){return t.off("loadstart",o)}))}},n.proxyNativeTracks_=function(){var e=this;Oa.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=o().createElement("video");var r=this.options_.tag&&Er(this.options_.tag),i=Ri({},r);ar&&!0===this.options_.nativeControlsForTouch||delete i.controls,Cr(e,Un(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!==typeof this.options_.preload&&xr(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var a=["loop","muted","playsinline","autoplay"],s=0;s<a.length;s++){var l=a[s],u=this.options_[l];"undefined"!==typeof u&&(u?xr(e,l,l):Ar(e,l),e[l]=u)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")}))}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready((function(){i.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&ur?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){Ln(t,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&Kn&&er&&0===this.el_.currentTime){var t=function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"===typeof this.el_.webkitEnterFullScreen){var e=i().navigator&&i().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Xi(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}}),0);else try{e.webkitEnterFullScreen()}catch(t){this.trigger("fullscreenerror",t)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=o().createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks){var n=this.$$("track"),r=n.length;while(r--)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])}},n.getVideoPlaybackQuality=function(){if("function"===typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!==typeof this.el().webkitDroppedFrameCount&&"undefined"!==typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),i().performance&&"function"===typeof i().performance.now?e.creationTime=i().performance.now():i().performance&&i().performance.timing&&"number"===typeof i().performance.timing.navigationStart&&(e.creationTime=i().Date.now()-i().performance.timing.navigationStart),e},t}(Ra);Qs(el,"TEST_VID",(function(){if(fr()){var e=o().createElement("video"),t=o().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),el.isSupported=function(){try{el.TEST_VID.volume=.5}catch(e){return!1}return!(!el.TEST_VID||!el.TEST_VID.canPlayType)},el.canPlayType=function(e){return el.TEST_VID.canPlayType(e)},el.canPlaySource=function(e,t){return el.canPlayType(e.type)},el.canControlVolume=function(){try{var e=el.TEST_VID.volume;el.TEST_VID.volume=e/2+.1;var t=e!==el.TEST_VID.volume;return t&&lr?(i().setTimeout((function(){el&&el.prototype&&(el.prototype.featuresVolumeControl=e!==el.TEST_VID.volume)})),!1):t}catch(n){return!1}},el.canMuteVolume=function(){try{var e=el.TEST_VID.muted;return el.TEST_VID.muted=!e,el.TEST_VID.muted?xr(el.TEST_VID,"muted","muted"):Ar(el.TEST_VID,"muted","muted"),e!==el.TEST_VID.muted}catch(t){return!1}},el.canControlPlaybackRate=function(){if(Kn&&er&&tr<58)return!1;try{var e=el.TEST_VID.playbackRate;return el.TEST_VID.playbackRate=e/2+.1,e!==el.TEST_VID.playbackRate}catch(t){return!1}},el.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(o().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},el.supportsNativeTextTracks=function(){return ur||lr&&er},el.supportsNativeVideoTracks=function(){return!(!el.TEST_VID||!el.TEST_VID.videoTracks)},el.supportsNativeAudioTracks=function(){return!(!el.TEST_VID||!el.TEST_VID.audioTracks)},el.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];Qs(el.prototype,t,(function(){return el[n]()}),!0)})),el.prototype.featuresVolumeControl=el.canControlVolume(),el.prototype.movingMediaElementInDOM=!lr,el.prototype.featuresFullscreenResize=!0,el.prototype.featuresProgressEvents=!0,el.prototype.featuresTimeupdateEvents=!0,el.prototype.featuresVideoFrameCallback=!(!el.TEST_VID||!el.TEST_VID.requestVideoFrameCallback),el.patchCanPlayType=function(){Xn>=4&&!Zn&&!er&&(Hs=el.TEST_VID&&el.TEST_VID.constructor.prototype.canPlayType,el.TEST_VID.constructor.prototype.canPlayType=function(e){var t=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;return e&&t.test(e)?"maybe":Hs.call(this,e)})},el.unpatchCanPlayType=function(){var e=el.TEST_VID.constructor.prototype.canPlayType;return Hs&&(el.TEST_VID.constructor.prototype.canPlayType=Hs),e},el.patchCanPlayType(),el.disposeMediaElement=function(e){if(e){e.parentNode&&e.parentNode.removeChild(e);while(e.hasChildNodes())e.removeChild(e.firstChild);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},el.resetMediaElement=function(e){if(e){var t=e.querySelectorAll("source"),n=t.length;while(n--)e.removeChild(t[n]);e.removeAttribute("src"),"function"===typeof e.load&&function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){el.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){el.prototype["set"+Li(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){el.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){el.prototype["set"+Li(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){el.prototype[e]=function(){return this.el_[e]()}})),Ra.withSourceHandlers(el),el.nativeSourceHandler={},el.nativeSourceHandler.canPlayType=function(e){try{return el.TEST_VID.canPlayType(e)}catch(t){return""}},el.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return el.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=_a(e.src);return el.nativeSourceHandler.canPlayType("video/"+n)}return""},el.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},el.nativeSourceHandler.dispose=function(){},el.registerSourceHandler(el.nativeSourceHandler),Ra.registerTech("Html5",el);var tl=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],nl={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},rl=["tiny","xsmall","small","medium","large","xlarge","huge"],il={};rl.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;il[e]="vjs-layout-"+t}));var al={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},ol=function(e){function t(n,r,i){var a;if(n.id=n.id||r.id||"vjs_video_"+ei(),r=Un(t.getTagSettings(n),r),r.initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"===typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(r.language=s.getAttribute("lang"))}else{var l=n;while(l&&1===l.nodeType){if(Er(l).hasOwnProperty("lang")){r.language=l.getAttribute("lang");break}l=l.parentNode}}if(a=e.call(this,null,r,i)||this,a.boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=Dn(a.id_),a.fsApi_=En,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&Er(n),a.language(a.options_.language),r.languages){var u={};Object.getOwnPropertyNames(r.languages).forEach((function(e){u[e.toLowerCase()]=r.languages[e]})),a.languages_=u}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=r.poster||"",a.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach((function(e){if("function"!==typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),Pi(c(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(li(o(),a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var d=Ri(a.options_);r.plugins&&Object.keys(r.plugins).forEach((function(e){a[e](r.plugins[e])})),r.debug&&a.debug(!0),a.options_.playerOptions=d,a.middleware_=[],a.playbackRates(r.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),ar&&a.addClass("vjs-touch-enabled"),lr||a.addClass("vjs-workinghover"),t.players[a.id_]=c(a);var h=bn.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}h(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),ui(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),ui(o(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Ja(this),La.names.forEach((function(e){var t=La[e],r=n[t.getterName]();r&&r.off&&r.off()})),e.prototype.dispose.call(this,{restoreEl:this.options_.restoreEl})},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),a="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:a||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=Er(n);if(a){t=this.el_=n,n=this.tag=o().createElement("video");while(t.children.length)n.appendChild(t.firstChild);Tr(t,"video-js")||wr(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(r){}}))}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(nr||er&&ir)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){a&&"class"===e||t.setAttribute(e,s[e]),a&&n.setAttribute(e,s[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=Xr("vjs-styles-dimensions");var l=jr(".vjs-styles-defaults"),u=jr("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var c=n.getElementsByTagName("a"),d=0;d<c.length;d++){var h=c.item(d);wr(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),br(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):Ln.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?Ln.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},n.fluid=function(e){var t=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,Ti(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),wi(this,(function(){t.on(["playerreset","resize"],t.boundUpdateStyleEl_)}))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==i().VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var a=n.split(":"),o=a[1]/a[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,r=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(r),Jr(this.styleEl_,"\n      ."+r+" {\n        width: "+e+"px;\n        height: "+t+"px;\n      }\n\n      ."+r+".vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: "+100*o+"%;\n      }\n    ")}else{var s="number"===typeof this.width_?this.width_:this.options_.width,l="number"===typeof this.height_?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(s>=0&&(u.width=s),l>=0&&(u.height=l))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=Li(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(Ra.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var a=this.autoplay();("string"===typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};
vendor: 3,036 bytes, line 345
345La.names.forEach((function(e){var t=La[e];o[t.getterName]=n[t.privateName]})),Un(o,this.options_[r]),Un(o,this.options_[i]),Un(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s=Ra.getTech(e);if(!s)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(vi(this,this.handleTechReady_),!0),ea.jsonToTextTracks(this.textTracksJson_||[],this.tech_),tl.forEach((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+Li(e)+"_"](t)}))})),Object.keys(nl).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+nl[e]+"_"].bind(n),event:t}):n["handleTech"+nl[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||br(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;La.names.forEach((function(t){var n=La[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=ea.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&Ln.warn("Using the tech directly can be dangerous. I hope you know 
345what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"===typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if(Ki(r))return r["catch"]((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():r():(n=this.play(),Ki(n)&&(n=n["catch"](r))),Ki(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})}))["catch"]((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!==typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=no(this,t)),this.cache_.source=Ri({},e,{src:t,type:n});for(var r=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),i=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var l=Er(a[s]);i.push(l),l.src&&l.src===t&&o.push(l.src)}o.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime(),n=function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))};this.on("timeupdate",n)},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Ln.warn("Passing the `starttime` option to the player will be deprecated 
345in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Xi(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){if(this.controls_){var t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}));t||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"===typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=o()[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in za)return Ha(this.middleware_,this.tech_,e,t);if(e in Ya)return qa(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw Ln(n),n}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Ga)return Wa(this.middleware_,this.tech_,e);if(e in Ya)return qa(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Ln("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Ln("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Ln(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||i().Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Xi),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),r=Boolean(ur||lr);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!n&&r&&this.load());var i=this.techGet_("play"),a=r&&this.hasClass("vjs-ended");a&&this.resetProgressBar_(),null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}
vendor: 25,970 bytes, line 345
345))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||qi(0,0)},n.scrubbing=function(e){if("undefined"===typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return"undefined"!==typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;e=parseFloat(e),e<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=qi(0,0)),e},n.bufferedPercent=function(){return Gi(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||i().Promise;if(t){var n=this;return new t((function(t,r){function i(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){i(),t()}function o(e,t){i(),r(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);var s=n.requestFullscreenHelper_(e);s&&(s.then(i,i),s.then(t,r))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||i().Promise;if(e){var t=this;return new e((function(e,n){function r(){t.off("fullscreenerror",a),t.off("fullscreenchange",i)}function i(){r(),e()}function a(e,t){r(),n(t)}t.one("fullscreenchange",i),t.one("fullscreenerror",a);var o=t.exitFullscreenHelper_();o&&(o.then(r,r),o.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=o()[this.fsApi_.exitFullscreen]();return t&&Xi(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0===!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o().documentElement.style.overflow,li(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow="hidden",wr(o().body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){u().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,ui(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow=this.docOrigOverflow,Sr(o().body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in o()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in o())return o().exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){var n=function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;var n=["button","checkbox","hidden","radio","reset","submit"];if("input"===t)return-1===n.indexOf(e.type);var r=["textarea"];return-1!==r.indexOf(t)};n(this.el_.ownerDocument.activeElement)||("function"===typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return u().isEventKey(e,"f")}:n,i=t.muteKey,a=void 0===i?function(e){return u().isEventKey(e,"m")}:i,s=t.playPauseKey,l=void 0===s?function(e){return u().isEventKey(e,"k")||u().isEventKey(e,"Space")}:s;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var c=Bi.getComponent("FullscreenToggle");!1!==o()[this.fsApi_.fullscreenEnabled]&&c.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation();var d=Bi.getComponent("MuteToggle");d.prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation();var h=Bi.getComponent("PlayToggle");h.prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],a=Ra.getTech(i);if(a||(a=Bi.getComponent(i)),a){if(a.isSupported()&&(t=a.canPlayType(e),t))return t}else Ln.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map((function(e){return[e,Ra.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Ln.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var r;return e.some((function(e){return t.some((function(t){if(r=n(e,t),r)return!0}))})),r},a=function(e){return function(t,n){return e(n,t)}},o=function(e,t){var r=e[0],i=e[1];if(i.canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return t=this.options_.sourceOrder?i(e,r,a(o)):i(r,e,o),t||!1},n.handleSrc_=function(e,t){var n=this;if("undefined"===typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var r=ro(e);if(r.length){if(this.changingSrc_=!0,t||(this.cache_.sources=r),this.updateSourceCaches_(r[0]),Ba(this,r[0],(function(e,i){n.middleware_=i,t||(n.cache_.sources=r),n.updateSourceCaches_(e);var a=n.src_(e);if(a)return r.length>1?n.handleSrc_(r.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0),void n.triggerReady());ja(i,n.tech_)})),this.options_.retryOnError&&r.length>1){var i=function(){n.error(null),n.handleSrc_(r.slice(1),!0)},a=function(){n.off("error",i)};this.one("error",i),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",i),n.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.options_.notSupportedMessage})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(Di(n.tech,this.techName_)?(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready((function(){t.changingSrc_=!1})),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||i().Promise;if(this.paused()||!t)this.doReset_();else{var n=this.play();Xi(n.then((function(){return e.doReset_()})))}},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),Ti(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar||{},t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"===typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"===typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"===typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(wn("beforeerror").forEach((function(n){var r=n(t,e);Bn(r)&&!Array.isArray(r)||"string"===typeof r||"number"===typeof r||null===r?e=r:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new zi(e),this.addClass("vjs-error"),Ln.error("(CODE:"+this.error_.code+" "+zi.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),wn("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=vi(this,this.reportUserActivity),i=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())},a=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(t){r(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",i),this.on("mouseup",o),this.on("mouseleave",o);var s,l=this.getChild("controlBar");!l||lr||Kn||(l.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),l.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var e=this.options_.inactivityTimeout;e<=0||(s=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),r=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(r),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||i().Promise;if(n){if(e){var r=[];return this.isInPictureInPicture()&&r.push(this.exitPictureInPicture()),this.isFullscreen()&&r.push(this.exitFullscreen()),this.audioPosterMode()&&r.push(this.audioPosterMode(!1)),n.all(r).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){var e=this.tech_&&this.tech_;e.hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){var e=this.tech_&&this.tech_;e.show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!==typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||i().Promise;if(n){if(e){if(this.audioOnlyMode()){var r=this.audioOnlyMode(!1);return r.then((function(){t.enablePosterModeUI_()}))}return n.resolve().then((function(){t.enablePosterModeUI_()}))}return n.resolve().then((function(){t.disablePosterModeUI_()}))}if(e)return this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_();this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e,n=t.track;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),Ti(this)&&this.trigger("languagechange"))},n.languages=function(){return Ri(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Ri(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];r=Ri(r),r.player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var r=new na(this,t);return this.addChild(r),r.on("dispose",(function(){n.removeChild(r)})),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<rl.length;n++){var r=rl[n],i=this.breakpoints_[r];if(t<=i){if(e===r)return;e&&this.removeClass(il[e]),this.addClass(il[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Un({},al,e),this.updateCurrentBreakpoint_()),Un(this.breakpoints_)},n.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;return e!==t?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return il[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"===typeof e){this.reset(),this.cache_.media=Ri(e);var r=this.cache_.media,i=r.artwork,a=r.poster,o=r.src,s=r.textTracks;!i&&a&&(this.cache_.media.artwork=[{src:a,type:to(a)}]),o&&this.src(o),a&&this.poster(a),Array.isArray(s)&&s.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t=this.currentSources(),n=Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})),r={src:t,textTracks:n};return e&&(r.poster=e,r.artwork=[{src:r.poster,type:to(r.poster)}]),r}return Ri(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=Er(e),r=n["data-setup"];if(Tr(e,"vjs-fill")&&(n.fill=!0),Tr(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=f()(r||"{}"),a=i[0],o=i[1];a&&Ln.error(a),Un(n,o)}if(Un(t,n),e.hasChildNodes())for(var s=e.childNodes,l=0,u=s.length;l<u;l++){var c=s[l],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(Er(c)):"track"===d&&t.tracks.push(Er(c))}return t},n.flexNotSupported_=function(){var e=o().createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"===typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Bi);La.names.forEach((function(e){var t=La[e];ol.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),ol.prototype.crossorigin=ol.prototype.crossOrigin,ol.players={};var sl=i().navigator;ol.prototype.options_={techOrder:Ra.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:sl&&(sl.languages&&sl.languages[0]||sl.userLanguage||sl.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){ol.prototype[e]=function(){return this.techGet_(e)}})),tl.forEach((function(e){ol.prototype["handleTech"+Li(e)+"_"]=function(){return this.trigger(e)}})),Bi.registerComponent("Player",ol);var ll="plugin",ul="activePlugins_",cl={},dl=function(e){return cl.hasOwnProperty(e)},hl=function(e){return dl(e)?cl[e]:void 0},pl=function(e,t){e[ul]=e[ul]||{},e[ul][t]=!0},fl=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},ml=function(e,t){var n=function(){fl(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return pl(this,e),fl(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n},vl=function(e,t){return t.prototype.name=e,function(){fl(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=b(t,[this].concat(r));return this[e]=function(){return a},fl(this,a.getEventHash()),a}},gl=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Pi(this),delete this.trigger,Oi(this,this.constructor.defaultState),pl(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),ci(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[ul][e]=!1,this.player=this.state=null,t[e]=vl(e,cl[e])},e.isBasic=function(t){var n="string"===typeof t?hl(t):t;return"function"===typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!==typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(dl(t))Ln.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(ol.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!==typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return cl[t]=n,t!==ll&&(e.isBasic(n)?ol.prototype[t]=ml(t,n):ol.prototype[t]=vl(t,n)),n},e.deregisterPlugin=function(e){if(e===ll)throw new Error("Cannot de-register base plugin.");dl(e)&&(delete cl[e],delete ol.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(cl)),e.forEach((function(e){var n=hl(e);n&&(t=t||{},t[e]=n)})),t},e.getPluginVersion=function(e){var t=hl(e);return t&&t.VERSION||""},e}();gl.getPlugin=hl,gl.BASE_PLUGIN_NAME=ll,gl.registerPlugin(ll,gl),ol.prototype.usingPlugin=function(e){return!!this[ul]&&!0===this[ul][e]},ol.prototype.hasPlugin=function(e){return!!dl(e)};var yl=!1,_l=function(e,t){void 0===t&&(t={}),yl||(Ln.warn("videojs.extend is deprecated as of Video.js 7.22.0 and will be removed in Video.js 8.0.0"),yl=!0);var n=function(){e.apply(this,arguments)},r={};for(var i in"object"===typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"===typeof t&&(n=t),T(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},bl=function(e){return 0===e.indexOf("#")?e.slice(1):e};function Tl(e,t,n){var r=Tl.getPlayer(e);if(r)return t&&Ln.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"===typeof e?jr("#"+bl(e)):e;if(!mr(i))throw new TypeError("The element or ID supplied is not val
345id. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||Ln.warn("The element supplied is not included in the DOM"),t=t||{},!0===t.restoreEl&&(t.restoreEl=(i.parentNode&&i.parentNode.hasAttribute("data-vjs-player")?i.parentNode:i).cloneNode(!0)),wn("beforesetup").forEach((function(e){var n=e(i,Ri(t));Bn(n)&&!Array.isArray(n)?t=Ri(t,n):Ln.error("please return an object in beforesetup hooks")}));var a=Bi.getComponent("Player");return r=new a(i,t,n),wn("setup").forEach((function(e){return e(r)})),r}if(Tl.hooks_=Tn,Tl.hooks=wn,Tl.hook=Sn,Tl.hookOnce=Cn,Tl.removeHook=kn,!0!==i().VIDEOJS_NO_DYNAMIC_STYLE&&fr()){var wl=jr(".vjs-styles-defaults");if(!wl){wl=Xr("vjs-styles-defaults");var Sl=jr("head");Sl&&Sl.insertBefore(wl,Sl.firstChild),Jr(wl,"\n      .video-js {\n        width: 300px;\n        height: 150px;\n      }\n\n      .vjs-fluid:not(.vjs-audio-only-mode) {\n        padding-top: 56.25%\n      }\n    ")}}zr(1,Tl),Tl.VERSION=bn,Tl.options=ol.prototype.options_,Tl.getPlayers=function(){return ol.players},Tl.getPlayer=function(e){var t,n=ol.players;if("string"===typeof e){var r=bl(e),i=n[r];if(i)return i;t=jr("#"+r)}else t=e;if(mr(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},Tl.getAllPlayers=function(){return Object.keys(ol.players).map((function(e){return ol.players[e]})).filter(Boolean)},Tl.players=ol.players,Tl.getComponent=Bi.getComponent,Tl.registerComponent=function(e,t){Ra.isTech(t)&&Ln.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Bi.registerComponent.call(Bi,e,t)},Tl.getTech=Ra.getTech,Tl.registerTech=Ra.registerTech,Tl.use=Ua,Object.defineProperty(Tl,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Tl.middleware,"TERMINATOR",{value:Va,writeable:!1,enumerable:!0}),Tl.browser=cr,Tl.TOUCH_ENABLED=ar,Tl.extend=_l,Tl.mergeOptions=Ri,Tl.bind=vi,Tl.registerPlugin=gl.registerPlugin,Tl.deregisterPlugin=gl.deregisterPlugin,Tl.plugin=function(e,t){return Ln.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),gl.registerPlugin(e,t)},Tl.getPlugins=gl.getPlugins,Tl.getPlugin=gl.getPlugin,Tl.getPluginVersion=gl.getPluginVersion,Tl.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Tl.options.languages=Ri(Tl.options.languages,(n={},n[e]=t,n)),Tl.options.languages[e]},Tl.log=Ln,Tl.createLogger=Dn,Tl.createTimeRange=Tl.createTimeRanges=qi,Tl.formatTime=ko,Tl.setFormatTime=wo,Tl.resetFormatTime=So,Tl.parseUrl=ga,Tl.isCrossOrigin=ba,Tl.EventTarget=_i,Tl.on=li,Tl.one=di,Tl.off=ui,Tl.trigger=ci,Tl.xhr=v(),Tl.TextTrack=ka,Tl.AudioTrack=Ca,Tl.VideoTrack=Ea,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Tl[e]=function(){return Ln.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Hr[e].apply(null,arguments)}})),Tl.computedStyle=Wn,Tl.dom=Hr,Tl.url=Ta,Tl.defineLazyProperty=Qs,Tl.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});
346/*! @name @videojs/http-streaming @version 2.16.3 @license Apache-2.0 */
347var kl=E,Cl=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},El=function(e){return Tl.log.debug?Tl.log.debug.bind(Tl,"VHS:",e+" >"):function(){}},Il=1/30,xl=3*Il,Al=function(e,t){var n,r=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&r.push([e.start(n),e.end(n)]);return Tl.createTimeRanges(r)},Pl=function(e,t){return Al(e,(function(e,n){return e-xl<=t&&n+xl>=t}))},$l=function(e,t){return Al(e,(function(e){return e-Il>=t}))},Ol=function(e){if(e.length<2)return Tl.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var r=e.end(n-1),i=e.start(n);t.push([r,i])}return Tl.createTimeRanges(t)},Nl=function(e,t){var n=null,r=null,i=0,a=[],o=[];if(!e||!e.length||!t||!t.length)return Tl.createTimeRange();var s=e.length;while(s--)a.push({time:e.start(s),type:"start"}),a.push({time:e.end(s),type:"end"});s=t.length;while(s--)a.push({time:t.start(s),type:"start"}),a.push({time:t.end(s),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),s=0;s<a.length;s++)"start"===a[s].type?(i++,2===i&&(n=a[s].time)):"end"===a[s].type&&(i--,1===i&&(r=a[s].time)),null!==n&&null!==r&&(o.push([n,r]),n=null,r=null);return Tl.createTimeRanges(o)},Ll=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},Dl=function(e,t,n){void 0===n&&(n=1);var r=e.length?e.end(e.length-1):0;return(r-t)/n},Rl=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},Fl=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
vendor: 17,218 bytes, line 347
347if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},Ml=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},Vl=function(e,t){var n=0;if(!e||!e.length)return n;for(var r=0;r<e.length;r++){var i=e.start(r),a=e.end(r);t>a||(n+=t>i&&t<=a?a-t:a-i)}return n},Ul=Tl.createTimeRange,Bl=function(e,t){if(!t.preload)return t.duration;var n=0;return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},jl=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(r,i){e.push({duration:r.duration,segmentIndex:n,partIndex:i,part:r,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},Wl=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},Hl=function(e){var t=e.preloadSegment;if(t){var n=t.parts,r=t.preloadHints,i=(r||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return i+=n&&n.length?n.length:0,i}},ql=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=Wl(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},Gl=function(e,t){var n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if("undefined"!==typeof i.start)return{result:i.start,precise:!0};if("undefined"!==typeof i.end)return{result:i.end-i.duration,precise:!0}}while(r--){if(i=e.segments[r],"undefined"!==typeof i.end)return{result:n+i.end,precise:!0};if(n+=Bl(e,i),"undefined"!==typeof i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}},zl=function(e,t){for(var n,r=0,i=t-e.mediaSequence;i<e.segments.length;i++){if(n=e.segments[i],"undefined"!==typeof n.start)return{result:n.start-r,precise:!0};if(r+=Bl(e,n),"undefined"!==typeof n.end)return{result:n.end-r,precise:!0}}return{result:-1,precise:!1}},Yl=function(e,t,n){if("undefined"===typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var r=Gl(e,t);if(r.precise)return r.result;var i=zl(e,t);return i.precise?i.result:r.result+n},Kl=function(e,t,n){if(!e)return 0;if("number"!==typeof n&&(n=0),"undefined"===typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return i()[1/0]}return Yl(e,t,n)},Xl=function(e){var t=e.defaultDuration,n=e.durationList,r=e.startIndex,i=e.endIndex,a=0;if(r>i){var o=[i,r];r=o[0],i=o[1]}if(r<0){for(var s=r;s<Math.min(0,i);s++)a+=t;r=0}for(var l=r;l<i;l++)a+=n[l].duration;return a},Jl=function(e,t,n,r){if(!e||!e.segments)return null;if(e.endList)return Kl(e);if(null===t)return null;t=t||0;var i=Yl(e,e.mediaSequence+e.segments.length,t);return n&&(r="number"===typeof r?r:ql(null,e),i-=r),Math.max(0,i)},Zl=function(e,t,n){var r=!0,i=t||0,a=Jl(e,t,r,n);return null===a?Ul():Ul(i,a)},Ql=function(e){for(var t=e.playlist,n=e.currentTime,r=e.startingSegmentIndex,i=e.startingPartIndex,a=e.startTime,o=e.experimentalExactManifestTimings,s=n-a,l=jl(t),u=0,c=0;c<l.length;c++){var d=l[c];if(r===d.segmentIndex&&("number"!==typeof i||"number"!==typeof d.partIndex||i===d.partIndex)){u=c;break}}if(s<0){if(u>0)for(var h=u-1;h>=0;h--){var p=l[h];if(s+=p.duration,o){if(s<0)continue}else if(s+Il<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-Xl({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(u<0){for(var f=u;f<0;f++)if(s-=t.targetDuration,s<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};u=0}for(var m=u;m<l.length;m++){var v=l[m];if(s-=v.duration,o){if(s>0)continue}else if(s-Il>=0)continue;return{partIndex:v.partIndex,segmentIndex:v.segmentIndex,startTime:a+Xl({defaultDuration:t.targetDuration,durationList:l,startIndex:u,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},eu=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},tu=function(e){return e.excludeUntil&&e.excludeUntil===1/0},nu=function(e){var t=eu(e);return!e.disabled&&!t},ru=function(e){return e.disabled},iu=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},au=function(e,t){return t.attributes&&t.attributes[e]},ou=function(e,t,n,r){if(void 0===r&&(r=0),!au("BANDWIDTH",n))return NaN;var i=e*n.attributes.BANDWIDTH;return(i-8*r)/t},su=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!nu(e)&&(e.attributes.BANDWIDTH||0)<n})).length},lu=function(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))},uu=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},r=!1;for(var i in n){for(var a in n[i])if(r=t(n[i][a]),r)break;if(r)break}return!!r},cu=function(e){if(!e||!e.playlists||!e.playlists.length){var t=uu(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));return t}for(var n=function(t){var n=e.playlists[t],r=n.attributes&&n.attributes.CODECS;if(r&&r.split(",").every((function(e){return z(e)})))return"continue";var i=uu(e,(function(e){return lu(n,e)}));return i?"continue":{v:!1}},r=0;r<e.playlists.length;r++){var i=n(r);if("continue"!==i&&"object"===typeof i)return i.v}return!0},du={liveEdgeDelay:ql,duration:Kl,seekable:Zl,getMediaInfoForTime:Ql,isEnabled:nu,isDisabled:ru,isBlacklisted:eu,isIncompatible:tu,playlistEnd:Jl,isAes:iu,hasAttribute:au,estimateSegmentRequestTime:ou,isLowestEnabledRendition:su,isAudioOnly:cu,playlistMatch:lu,segmentDurationWithParts:Bl},hu=Tl.log,pu=function(e,t){return e+"-"+t},fu=function(e,t,n){return"placeholder-uri-"+e+"-"+t+"-"+n},mu=function(e){var t=e.onwarn,n=e.oninfo,r=e.manifestString,i=e.customTagParsers,a=void 0===i?[]:i,o=e.customTagMappers,s=void 0===o?[]:o,l=e.experimentalLLHLS,u=new U;t&&u.on("warn",t),n&&u.on("info",n),a.forEach((function(e){return u.addParser(e)})),s.forEach((function(e){return u.addTagMapper(e)})),u.push(r),u.end();var c=u.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){c.hasOwnProperty(e)&&delete c[e]})),c.segments&&c.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!c.targetDuration){var d=10;c.segments&&c.segments.length&&(d=c.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),c.targetDuration=d}var h=Wl(c);if(h.length&&!c.partTargetDuration){var p=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+p),hu.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),c.partTargetDuration=p}return c},vu=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(e.mediaGroups[n])for(var r in e.mediaGroups[n])for(var i in e.mediaGroups[n][r]){var a=e.mediaGroups[n][r][i];t(a,n,r,i)}}))},gu=function(e){var t=e.playlist,n=e.uri,r=e.id;t.id=r,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},yu=function(e){var t=e.playlists.length;while(t--){var n=e.playlists[t];gu({playlist:n,id:pu(t,n.uri)}),n.resolvedUri=kl(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||hu.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},_u=function(e){vu(e,(function(t){t.uri&&(t.resolvedUri=kl(e.uri,t.uri))}))},bu=function(e,t){var n=pu(0,t),r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:i().location.href,resolvedUri:i().location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return r.playlists[n]=r.playlists[0],r.playlists[t]=r.playlists[0],r},Tu=function(e,t,n){void 0===n&&(n=fu),e.uri=t;for(var r=0;r<e.playlists.length;r++)if(!e.playlists[r].uri){var i="placeholder-uri-"+r;e.playlists[r].uri=i}var a=cu(e);vu(e,(function(t,r,i,o){if(!t.playlists||!t.playlists.length){if(a&&"AUDIO"===r&&!t.uri)for(var l=0;l<e.playlists.length;l++){var u=e.playlists[l];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===i)return}t.playlists=[s({},t)]}t.playlists.forEach((function(t,a){var s=n(r,i,o,t),l=pu(a,s);t.uri?t.resolvedUri=t.resolvedUri||kl(e.uri,t.uri):(t.uri=0===a?s:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),yu(e),_u(e)},wu=Tl.mergeOptions,Su=Tl.EventTarget,ku=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var r=t.preloadSegment,a=t.mediaSequence+t.segments.length;if(r){var o=r.parts||[],s=Hl(t)-1;s>-1&&s!==o.length-1&&(n._HLS_part=s),(s>-1||o.length)&&a--}n._HLS_msn=a}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var l=new(i().URL)(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&l.searchParams.set(e,n[e])})),e=l.toString()}return e},Cu=function(e,t){if(!e)return t;var n=wu(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var r=0;r<t.parts.length;r++)e.parts&&e.parts[r]&&(n.parts[r]=wu(e.parts[r],t.parts[r]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},Eu=function(e,t,n){var r=e.slice(),i=t.slice();n=n||0;for(var a,o=[],s=0;s<i.length;s++){var l=r[s+n],u=i[s];l?(a=l.map||a,o.push(Cu(l,u))):(a&&!u.map&&(u.map=a),o.push(u))}return o},Iu=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=kl(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=kl(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=kl(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=kl(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=kl(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=kl(t,e.uri))}))},xu=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var r=0;r<n.preloadHints.length;r++)if("MAP"===n.preloadHints[r].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Au=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},Pu=function(e,t,n){void 0===n&&(n=Au);var r=wu(e,{}),i=r.playlists[t.id];if(!i)return null;if(n(i,t))return null;t.segments=xu(t);var a=wu(i,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,i.segments){if(t.skip){t.segments=t.segments||[];for(var o=0;o<t.skip.skippedSegments;o++)t.segments.unshift({skipped:!0})}a.segments=Eu(i.segments,t.segments,t.mediaSequence-i.mediaSequence)}a.segments.forEach((function(e){Iu(e,a.resolvedUri)}));for(var s=0;s<r.playlists.length;s++)r.playlists[s].id===t.id&&(r.playlists[s]=a);return r.playlists[t.id]=a,r.playlists[t.uri]=a,vu(e,(function(e,n,r,i){if(e.playlists)for(var o=0;o<e.playlists.length;o++)t.id===e.playlists[o].id&&(e.playlists[o]=a)})),r},$u=function(e,t){var n=e.segments||[],r=n[n.length-1],i=r&&r.parts&&r.parts[r.parts.length-1],a=i&&i.duration||r&&r.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},Ou=function(e){function t(t,n,r){var i;if(void 0===r&&(r={}),i=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");i.logger_=El("PlaylistLoader");var a=r,o=a.withCredentials,s=void 0!==o&&o,l=a.handleManifestRedirects,u=void 0!==l&&l;i.src=t,i.vhs_=n,i.withCredentials=s,i.handleManifestRedirects=u;var d=n.options_;return i.customTagParsers=d&&d.customTagParsers||[],i.customTagMappers=d&&d.customTagMappers||[],i.experimentalLLHLS=d&&d.experimentalLLHLS||!1,Tl.browser.IE_VERSION&&(i.experimentalLLHLS=!1),i.state="HAVE_NOTHING",i.handleMediaupdatetimeout_=i.handleMediaupdatetimeout_.bind(c(i)),i.on("mediaupdatetimeout",i.handleMediaupdatetimeout_),i}h(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=kl(this.master.uri,t.uri);this.experimentalLLHLS&&(n=ku(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var r=t.uri,i=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[i],status:e.status,message:"HLS playlist request error at URL: "+r+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url,r=e.manifestString;return mu({onwarn:function(e){var r=e.message;return t.logger_("m3u8-parser warn for "+n+": "+r)},oninfo:function(e){var r=e.message;return t.logger_("m3u8-parser info for "+n+": "+r)},manifestString:r,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,r=e.url,i=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:r,manifestString:t});a.lastRequest=Date.now(),gu({playlist:a,uri:r,id:i});var o=Pu(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.master=o,this.media_=this.master.playlists[i]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_($u(this.media(),!!o)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),i().clearTimeout(this.mediaUpdateTimeout),i().clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"===typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(i().clearTimeout(this.finalRenditionTimeout),t){var r=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=i().setTimeout(this.media.bind(this,e,!1),r)}else{var a=this.state,o=!this.media_||e.id!==this.media_.id,s=this.master.playlists[e.id];if(s&&s.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(o&&(this.trigger("mediachanging"),"HAVE_MASTER"===a?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_($u(e,!0)),o){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,r){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Cl(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e,a);n.haveMetadata({playlistString:r.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===a?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var r=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=i().setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=i().setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;
347if(this.started=!0,"object"===typeof this.src)return this.src.uri||(this.src.uri=i().location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Cl(e.handleManifestRedirects,e.src,n);var r=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(r)}}))},n.srcUri=function(){return"string"===typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Tu(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=xu(e),e.segments.forEach((function(t){Iu(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||i().location.href;this.master=bu(e,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Su),Nu=Tl.xhr,Lu=Tl.mergeOptions,Du=function(e,t,n,r){var i="arraybuffer"===e.responseType?e.response:e.responseText;!t&&i&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=i.byteLength||i.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(i||e.responseText)))),r(t,e)},Ru=function(){var e=function e(t,n){t=Lu({timeout:45e3},t);var r=e.beforeRequest||Tl.Vhs.xhr.beforeRequest;if(r&&"function"===typeof r){var i=r(t);i&&(t=i)}var a=!0===Tl.Vhs.xhr.original?Nu:Tl.Vhs.xhr,o=a(t,(function(e,t){return Du(o,e,t,n)})),s=o.abort;return o.abort=function(){return o.aborted=!0,s.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o};return e.original=!0,e},Fu=function(e){var t,n=e.offset;return t="bigint"===typeof e.offset||"bigint"===typeof e.length?i().BigInt(e.offset)+i().BigInt(e.length)-i().BigInt(1):e.offset+e.length-1,"bytes="+n+"-"+t},Mu=function(e){var t={};return e.byterange&&(t.Range=Fu(e.byterange)),t},Vu=function(e,t){return e.start(t)+"-"+e.end(t)},Uu=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Bu=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},ju=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];ae(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t},Wu=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Hu=function(e){return e.resolvedUri},qu=function(e){for(var t,n,r=Array.prototype.slice.call(e),i=16,a="",o=0;o<r.length/i;o++)t=r.slice(o*i,o*i+i).map(Uu).join(""),n=r.slice(o*i,o*i+i).map(Bu).join(""),a+=t+" "+n+"\n";return a},Gu=function(e){var t=e.bytes;return qu(t)},zu=function(e){var t,n="";for(t=0;t<e.length;t++)n+=Vu(e,t)+" ";return n},Yu=Object.freeze({__proto__:null,createTransferableMessage:ju,initSegmentId:Wu,segmentKeyId:Hu,hexDump:qu,tagDump:Gu,textRanges:zu}),Ku=.25,Xu=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,r=t.videoTimingInfo.transmuxedPresentationStart,i=r+n,a=e-i;return new Date(t.dateTimeObject.getTime()+1e3*a)},Ju=function(e){return e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds},Zu=function(e,t){var n;try{n=new Date(e)}catch(c){return null}if(!t||!t.segments||0===t.segments.length)return null;var r=t.segments[0];if(n<r.dateTimeObject)return null;for(var i=0;i<t.segments.length-1;i++){r=t.segments[i];var a=t.segments[i+1].dateTimeObject;if(n<a)break}var o=t.segments[t.segments.length-1],s=o.dateTimeObject,l=o.videoTimingInfo?Ju(o.videoTimingInfo):o.duration+o.duration*Ku,u=new Date(s.getTime()+1e3*l);return n>u?null:(n>s&&(r=o),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:du.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})},Qu=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,r=0,i=0;i<t.segments.length;i++)if(n=t.segments[i],r=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:r+n.duration,e<=r)break;var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>r){if(e>r+a.duration*Ku)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:r-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}},ec=function(e,t){var n,r;try{n=new Date(e),r=new Date(t)}catch(o){}var i=n.getTime(),a=r.getTime();return(a-i)/1e3},tc=function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){var n=e.segments[t];if(!n.dateTimeObject)return!1}return!0},nc=function(e){var t=e.playlist,n=e.time,r=void 0===n?void 0:n,i=e.callback;if(!i)throw new Error("getProgramTime: callback must be provided");
347if(!t||void 0===r)return i({message:"getProgramTime: playlist and time must be provided"});var a=Qu(r,t);if(!a)return i({message:"valid programTime was not found"});if("estimate"===a.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var o={mediaSeconds:r},s=Xu(r,a.segment);return s&&(o.programDateTime=s.toISOString()),i(null,o)},rc=function e(t){var n=t.programTime,r=t.playlist,i=t.retryCount,a=void 0===i?2:i,o=t.seekTo,s=t.pauseAfterSeek,l=void 0===s||s,u=t.tech,c=t.callback;if(!c)throw new Error("seekToProgramTime: callback must be provided");if("undefined"===typeof n||!r||!o)return c({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!u.hasStarted_)return c({message:"player must be playing a live stream to start buffering"});if(!tc(r))return c({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var d=Zu(n,r);if(!d)return c({message:n+" was not found in the stream"});var h=d.segment,p=ec(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?c({message:n+" is not buffered yet. Try again"}):(o(d.estimatedStart+p),void u.one("seeked",(function(){e({programTime:n,playlist:r,retryCount:a-1,seekTo:o,pauseAfterSeek:l,tech:u,callback:c})})));var f=h.start+p,m=function(){return c(null,u.currentTime())};u.one("seeked",m),l&&u.pause(),o(f)},ic=function(e,t){if(4===e.readyState)return t()},ac=function(e,t,n){var r,i=[],a=!1,o=function(e,t,r,i){return t.abort(),a=!0,n(e,t,r,i)},s=function(e,t){if(!a){if(e)return o(e,t,"",i);var n=t.responseText.substring(i&&i.byteLength||0,t.responseText.length);if(i=fe(i,pe(n,!0)),r=r||jt(i),i.length<10||r&&i.length<r+2)return ic(t,(function(){return o(e,t,"",i)}));var s=pn(i);return"ts"===s&&i.length<188||!s&&i.length<376?ic(t,(function(){return o(e,t,"",i)})):o(null,t,s,i)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,Du(e,null,{statusCode:e.status},s)}))}},u=t(l,(function(e,t){return Du(u,e,t,s)}));return u},oc=Tl.EventTarget,sc=Tl.mergeOptions,lc=function(e,t){if(!Au(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var r=e.segments[n],i=t.segments[n];if(r.uri!==i.uri)return!1;if(r.byterange||i.byterange){var a=r.byterange,o=i.byterange;if(a&&!o||!a&&o)return!1;if(a.offset!==o.offset||a.length!==o.length)return!1}}return!0},uc=function(e,t,n,r){var i=r.attributes.NAME||n;return"placeholder-uri-"+e+"-"+t+"-"+i},cc=function(e){var t=e.masterXml,n=e.srcUrl,r=e.clientOffset,i=e.sidxMapping,a=e.previousManifest,o=Rt(t,{manifestUri:n,clientOffset:r,sidxMapping:i,previousManifest:a});return Tu(o,n,uc),o},dc=function(e,t){vu(e,(function(n,r,i,a){a in t.mediaGroups[r][i]||delete e.mediaGroups[r][i][a]}))},hc=function(e,t,n){for(var r=!0,i=sc(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var o=t.playlists[a];if(o.sidx){var s=He(o.sidx);n&&n[s]&&n[s].sidx&&De(o,n[s].sidx,o.sidx.resolvedUri)}var l=Pu(i,o,lc);l&&(i=l,r=!1)}return vu(t,(function(e,t,n,a){if(e.playlists&&e.playlists.length){var o=e.playlists[0].id,s=Pu(i,e.playlists[0],lc);s&&(i=s,a in i.mediaGroups[t][n]||(i.mediaGroups[t][n][a]=e),i.mediaGroups[t][n][a].playlists[0]=i.playlists[o],r=!1)}})),dc(i,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(r=!1),r?null:i},pc=function(e,t){var n=Boolean(!e.map&&!t.map),r=n||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length);return r&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},fc=function(e,t){var n={};for(var r in e){var i=e[r],a=i.sidx;if(a){var o=He(a);if(!t[o])break;var s=t[o].sidxInfo;
vendor: 19,001 bytes, line 347
347pc(s,a)&&(n[o]=t[o])}}return n},mc=function(e,t){var n=fc(e.playlists,t),r=n;return vu(e,(function(e,n,i,a){if(e.playlists&&e.playlists.length){var o=e.playlists;r=sc(r,fc(o,t))}})),r},vc=function(e){function t(t,n,r,i){var a;void 0===r&&(r={}),a=e.call(this)||this,a.masterPlaylistLoader_=i||c(a),i||(a.isMaster_=!0);var o=r,s=o.withCredentials,l=void 0!==s&&s,u=o.handleManifestRedirects,d=void 0!==u&&u;if(a.vhs_=n,a.withCredentials=l,a.handleManifestRedirects=d,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=El("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}h(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!==typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var r=this,a=e.sidx&&He(e.sidx);if(e.sidx&&a&&!this.masterPlaylistLoader_.sidxMapping_[a]){var o=Cl(this.handleManifestRedirects,e.sidx.resolvedUri),s=function(i,o){if(!r.requestErrored_(i,o,t)){var s,l=r.masterPlaylistLoader_.sidxMapping_;try{s=Vt()(se(o.response).subarray(8))}catch(u){return void r.requestErrored_(u,o,t)}return l[a]={sidxInfo:e.sidx,sidx:s},De(e,s,e.sidx.resolvedUri),n(!0)}};this.request=ac(o,this.vhs_.xhr,(function(t,n,i,a){if(t)return s(t,n);if(!i||"mp4"!==i)return s({status:n.status,message:"Unsupported "+(i||"unknown")+" container type for sidx segment at URL: "+o,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var l=e.sidx.byterange,u=l.offset,c=l.length;if(a.length>=c+u)return s(t,{response:a.subarray(u,u+c),status:n.status,uri:n.uri});r.request=r.vhs_.xhr({uri:o,responseType:"arraybuffer",headers:Mu({byterange:e.sidx.byterange})},s)}))}else this.mediaRequest_=i().setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},i().clearTimeout(this.minimumUpdatePeriodTimeout_),i().clearTimeout(this.mediaRequest_),i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"===typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(r){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(i().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;i().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i().setTimeout((function(){return t.load()}),r)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=i().setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,r){if(!t.requestErrored_(n,r)){var i=r.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?t.masterLoaded_=Date.parse(r.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Cl(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,r),i?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(r,i)}))):e(r,i)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=Ft(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:kl(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(r,i){if(t.request){if(r)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):t.masterLoaded_:Date.parse(i.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e=this.masterPlaylistLoader_.master,t=cc({masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=hc(e,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||e;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(i().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!==typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=i().setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=mc(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.sidxMapping_),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,r=!this.media_||this.media_!==n[e];if(r?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){var a=function e(){t.media().endList||(t.mediaUpdateTimeout=i().setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),$u(t.media(),Boolean(r))))};a()}this.trigger("loadedplaylist")},t}(oc),gc={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},yc=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},_c=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},bc=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}},Tc=function(e){return function(){var t=bc(e),n=_c(new Worker(t));n.objURL=t;var r=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),r.call(this)},n}},wc=function(e){return"var browserWorkerPolyFill = "+_c.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},Sc=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},kc=wc(Sc((function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,a;if(n=e[t],n)if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(a=[],r=arguments.length,r=1;r<arguments.length;++r)a.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,a)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,r,i,a,o,s,l,u,c,d,h,p,f,m,v,g,y,_,b,T,w,S,k,C,E,I,x,A,P,$,O,N,L,D,R,F,M=e,V=Math.pow(2,32),U=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0),t<Number.MAX_SAFE_INTEGER?Number(t):t):n.getUint32(0)*V+n.getUint32(4)},B={getUint64:U,MAX_UINT32:V},j=B.MAX_UINT32;(function(){var e;if(k={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!==typeof Uint8Array){for(e in k)k.hasOwnProperty(e)&&(k[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),I=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),A=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),P={video:x,audio:A},N=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),D=L,R=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),F=L,$=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),t=function(e){var t,n,r,i=[],a=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);t=i.length;while(t--)a+=i[t].byteLength;for(n=new Uint8Array(a+8),r=new DataView(n.buffer,n.byteOffset,n.byteLength),r.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<i.length;t++)n.set(i[t],a),a+=i[t].byteLength;return n},r=function(){return t(k.dinf,t(k.dref,N))},i=function(e){return t(k.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},a=function(){return t(k.ftyp,C,E,C,I)},g=function(e){return t(k.hdlr,P[e])},o=function(e){return t(k.mdat,e)},v=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(k.mdhd,n)},m=function(e){return t(k.mdia,v(e),g(e.type),l(e))},s=function(e){return t(k.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},l=function(e){return t(k.minf,"video"===e.type?t(k.vmhd,$):t(k.smhd,O),r(),_(e))},u=function(e,n){var r=[],i=n.length;while(i--)r[i]=T(n[i]);return t.apply(null,[k.moof,s(e)].concat(r))},c=function(e){var n=e.length,r=[];while(n--)r[n]=p(e[n]);return t.apply(null,[k.moov,h(4294967295)].concat(r).concat(d(e)))},d=function(e){var n=e.length,r=[];while(n--)r[n]=w(e[n]);return t.apply(null,[k.mvex].concat(r))},h=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(k.mvhd,n)},y=function(e){var n,r,i=e.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,a[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(k.sdtp,a)},_=function(e){return t(k.stbl,b(e),t(k.stts,F),t(k.stsc,D),t(k.stsz,R),t(k.stco,L))},function(){var e,n;b=function(r){return t(k.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===r.type?e(r):n(r))},e=function(e){var n,r,i=e.sps||[],a=e.pps||[],o=[],s=[];for(n=0;n<i.length;n++)o.push((65280&i[n].byteLength)>>>8),o.push(255&i[n].byteLength),o=o.concat(Array.prototype.slice.call(i[n]));for(n=0;n<a.length;n++)s.push((65280&a[n].byteLength)>>>8),s.push(255&a[n].byteLength),s=s.concat(Array.prototype.slice.call(a[n]));if(r=[k.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(k.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],o,[a.length],s))),t(k.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],u=e.sarRatio[1];r.push(t(k.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,r)},n=function(e){return t(k.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))}}(),f=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(k.tkhd,n)},T=function(e){var n,r,i,a,o,s,l;return n=t(k.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/j),l=Math.floor(e.baseMediaDecodeTime%j),r=t(k.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),o=92,"audio"===e.type?(i=S(e,o),t(k.traf,n,r,i)):(a=y(e),i=S(e,a.length+o),t(k.traf,n,r,i,a))},p=function(e){return e.duration=e.duration||4294967295,t(k.trak,f(e),m(e))},w=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(k.trex,n)},function(){var e,n,r;r=function(e,t){var n=0,r=0,i=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|r|i|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},n=function(e,n){var i,a,o,s,l,u;for(s=e.samples||[],n+=20+16*s.length,o=r(s,n),a=new Uint8Array(o.length+16*s.length),a.set(o),i=o.length,u=0;u<s.length;u++)l=s[u],a[i++]=(4278190080&l.duration)>>>24,a[i++]=(16711680&l.duration)>>>16,a[i++]=(65280&l.duration)>>>8,a[i++]=255&l.duration,a[i++]=(4278190080&l.size)>>>24,a[i++]=(16711680&l.size)>>>16,a[i++]=(65280&l.size)>>>8,a[i++]=255&l.size,a[i++]=l.flags.isLeading<<2|l.flags.dependsOn,a[i++]=l.flags.isDependedOn<<6|l.flags.hasRedundancy<<4|l.flags.paddingValue<<1|l.flags.isNonSyncSample,a[i++]=61440&l.flags.degradationPriority,a[i++]=15&l.flags.degradationPriority,a[i++]=(4278190080&l.compositionTimeOffset)>>>24,a[i++]=(16711680&l.compositionTimeOffset)>>>16,a[i++]=(65280&l.compositionTimeOffset)>>>8,a[i++]=255&l.compositionTimeOffset;return t(k.trun,a)},e=function(e,n){var i,a,o,s,l,u;for(s=e.samples||[],n+=20+8*s.length,o=r(s,n),i=new Uint8Array(o.length+8*s.length),i.set(o),a=o.length,u=0;u<s.length;u++)l=s[u],i[a++]=(4278190080&l.duration)>>>24,i[a++]=(16711680&l.duration)>>>16,i[a++]=(65280&l.duration)>>>8,i[a++]=255&l.duration,i[a++]=(4278190080&l.size)>>>24,i[a++]=(16711680&l.size)>>>16,i[a++]=(65280&l.size)>>>8,i[a++]=255&l.size;return t(k.trun,i)},S=function(t,r){return"audio"===t.type?e(t,r):n(t,r)}}();var W,H,q,G,z,Y,K,X,J={ftyp:a,mdat:o,moof:u,moov:c,initSegment:function(e){var t,n=a(),r=c(e);
347return t=new Uint8Array(n.byteLength+r.byteLength),t.set(n),t.set(r,n.byteLength),t}},Z=function(e){var t,n,r=[],i=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,r.byteLength=0,t=0;t<e.length;t++)n=e[t],"access_unit_delimiter_rbsp"===n.nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r)),r=[n],r.byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r),i},Q=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)n=e[t],n.keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),r=[n],r.nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},ee=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},te=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},ne=function(e,t){var n=te();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},re=function(e,t){var n,r,i,a,o,s=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],r=0;r<a.length;r++)o=a[r],i=ne(o,s),s+=i.size,l.push(i);return l},ie=function(e){var t,n,r,i,a,o,s=0,l=e.byteLength,u=e.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(a=i[n],r=0;r<a.length;r++)o=a[r],h.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d},ae=function(e,t){var n,r=t||0,i=[];return n=ne(e,r),i.push(n),i},oe=function(e){var t,n,r=0,i=e.byteLength,a=e.length,o=i+4*a,s=new Uint8Array(o),l=new DataView(s.buffer);for(t=0;t<e.length;t++)n=e[t],l.setUint32(r,n.data.byteLength),r+=4,s.set(n.data,r),r+=n.data.byteLength;return s},se={groupNalsIntoFrames:Z,groupFramesIntoGops:Q,extendFirstKeyFrame:ee,generateSampleTable:re,concatenateNalData:ie,generateSampleTableForFrame:ae,concatenateNalDataForFrame:oe},le=[33,16,5,32,164,27],ue=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ce=function(e){var t=[];while(e--)t.push(0);return t},de=function(e){return Object.keys(e).reduce((function(t,n){return t[n]=new Uint8Array(e[n].reduce((function(e,t){return e.concat(t)}),[])),t}),{})},he=function(){if(!W){var e={96e3:[le,[227,64],ce(154),[56]],88200:[le,[231],ce(170),[56]],64e3:[le,[248,192],ce(240),[56]],48e3:[le,[255,192],ce(268),[55,148,128],ce(54),[112]],44100:[le,[255,192],ce(268),[55,163,128],ce(84),[112]],32e3:[le,[255,192],ce(268),[55,234],ce(226),[112]],24e3:[le,[255,192],ce(268),[55,255,128],ce(268),[111,112],ce(126),[224]],16e3:[le,[255,192],ce(268),[55,255,128],ce(268),[111,255],ce(269),[223,108],ce(195),[1,192]],12e3:[ue,ce(268),[3,127,248],ce(268),[6,255,240],ce(268),[13,255,224],ce(268),[27,253,128],ce(259),[56]],11025:[ue,ce(268),[3,127,248],ce(268),[6,255,240],ce(268),[13,255,224],ce(268),[27,255,192],ce(268),[55,175,128],ce(108),[112]],8e3:[ue,ce(268),[3,121,16],ce(47),[7]]};W=de(e)}return W},pe=9e4;H=function(e){return e*pe},q=function(e,t){return e*t},G=function(e){return e/pe},z=function(e,t){return e/t},Y=function(e,t){return H(z(e,t))},K=function(e,t){return q(G(e),t)},X=function(e,t,n){return G(n?e:e-t)};var fe={ONE_SECOND_IN_TS:pe,secondsToVideoTs:H,secondsToAudioTs:q,videoTsToSeconds:G,audioTsToSeconds:z,audioTsToVideoTs:Y,videoTsToAudioTs:K,metadataTsToSeconds:X},me=function(e){var t,n,r=0;for(t=0;t<e.length;t++)n=e[t],r+=n.data.byteLength;return r},ve=function(e,t,n,r){var i,a,o,s,l=0,u=0,c=0,d=0;if(t.length&&(i=fe.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),l=Math.ceil(fe.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&r&&(u=i-Math.max(n,r),c=Math.floor(u/l),d=c*l),!(c<1||d>fe.ONE_SECOND_IN_TS/2))){for(a=he()[e.samplerate],a||(a=t[0].data),o=0;o<c;o++)s=t[0],t.splice(0,0,{data:a,dts:s.dts-l,pts:s.pts-l});return e.baseMediaDecodeTime-=Math.floor(fe.videoTsToAudioTs(d,e.samplerate)),d}},ge=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},ye=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},_e=function(e){var t,n,r=0,i=new Uint8Array(me(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i},be={prefixWithSilence:ve,trimAdtsFramesByEarliestDts:ge,generateSampleTable:ye,concatenateFrameData:_e},Te=fe.ONE_SECOND_IN_TS,we=function(e,t){"number"===typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"===typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Se=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},ke=function(e,t){var n,r,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(r=e.samplerate/Te,n*=r,n=Math.floor(n)),n},Ce={clearDtsInfo:Se,calculateTrackBaseMediaDecodeTime:ke,collectDtsInfo:we},Ee=4,Ie=128,xe=function(e){var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;while(t<e.byteLength){if(e[t]===Ie)break;while(255===e[t])r+=255,t++;r+=e[t++];while(255===e[t])i+=255,t++;if(i+=e[t++],!n.payload&&r===Ee){var a=String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6]);if("GA94"===a){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}n.payload=void 0}t+=i,r=0,i=0}return n},Ae=function(e){return 181!==e.payload[0]||49!==(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Pe=function(e,t){var n,r,i,a,o=[];if(!(64&t[0]))return o;for(r=31&t[0],n=0;n<r;n++)i=3*n,a={type:3&t[i+2],pts:e},4&t[i+2]&&(a.ccData=t[i+3]<<8|t[i+4],o.push(a));return o},$e=function(e){var t,n,r=e.byteLength,i=[],a=1;while(a<r-2)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),n[a]=e[o];return n},Oe={parseSei:xe,parseUserData:Ae,parseCaptionPackets:Pe,discardEmulationPreventionBytes:$e,USER_DATA_REGISTERED_ITU_T_T35:Ee},Ne=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!==typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new qe(0,0),new qe(0,1),new qe(1,0),new qe(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ve({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};Ne.prototype=new M,Ne.prototype.push=function(e){var t,n,r;
vendor: 31,990 bytes, line 347
347if("sei_rbsp"===e.nalUnitType&&(t=Oe.parseSei(e.escapedRBSP),t.payload&&t.payloadType===Oe.USER_DATA_REGISTERED_ITU_T_T35&&(n=Oe.parseUserData(t),n)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=Oe.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Ne.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Ne.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Ne.prototype.flush=function(){return this.flushStream("flush")},Ne.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ne.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Ne.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Ne.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},Ne.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)},Ne.prototype.setsTextOrXDSActive=function(e){return 256===(28928&e.ccData)||4138===(30974&e.ccData)||6186===(30974&e.ccData)},Ne.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Le={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},De=function(e){var t=Le[e]||e;return 4096&e&&e===t?"":String.fromCharCode(t)},Re=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Fe=function(e){this.windowNum=e,this.reset()};Fe.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Fe.prototype.getText=function(){return this.rows.join("\n")},Fe.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Fe.prototype.newLine=function(e){this.rows.length>=this.virtualRowCount&&"function"===typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);while(this.rows.length>this.virtualRowCount)this.rows.shift(),this.rowIdx--},Fe.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Fe.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Fe.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var Me=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Fe(-1),this.windows=[],this.stream=n,"string"===typeof t&&this.createTextDecoder(t)};Me.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Fe(n),"function"===typeof t&&(this.windows[n].beforeRowOverflow=t)},Me.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},Me.prototype.createTextDecoder=function(e){if("undefined"===typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Ve=function e(t){t=t||{},e.prototype.init.call(this);var n,r=this,i=t.captionServices||{},a={};Object.keys(i).forEach((function(e){n=i[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(r.new708Packet(),r.add708Bytes(e)):(null===r.current708Packet&&r.new708Packet(),r.add708Bytes(e))}};Ve.prototype=new M,Ve.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ve.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,r=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(r)},Ve.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,r=null,i=0,a=t[i++];for(e.seq=a>>6,e.sizeCode=63&a;i<t.length;i++)a=t[i++],n=a>>5,r=31&a,7===n&&r>0&&(a=t[i++],n=a),this.pushServiceBlock(n,i,r),r>0&&(i+=r-1)},Ve.prototype.pushServiceBlock=function(e,t,n){var r,i=t,a=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,i));i<t+n&&i<a.length;i++)r=a[i],Re(r)?i=this.handleText(i,o):24===r?i=this.multiByteCharacter(i,o):16===r?i=this.extendedCommands(i,o):128<=r&&r<=135?i=this.setCurrentWindow(i,o):152<=r&&r<=159?i=this.defineWindow(i,o):136===r?i=this.clearWindows(i,o):140===r?i=this.deleteWindows(i,o):137===r?i=this.displayWindows(i,o):138===r?i=this.hideWindows(i,o):139===r?i=this.toggleWindows(i,o):151===r?i=this.setWindowAttributes(i,o):144===r?i=this.setPenAttributes(i,o):145===r?i=this.setPenColor(i,o):146===r?i=this.setPenLocation(i,o):143===r?o=this.reset(i,o):8===r?o.currentWindow.backspace():12===r?o.currentWindow.clearText():13===r?o.currentWindow.pendingNewLine=!0:14===r?o.currentWindow.clearText():141===r&&i++},Ve.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data,r=n[++e];return Re(r)&&(e=this.handleText(e,t,{isExtended:!0})),e},Ve.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Ve.prototype.initService=function(e,t){var n,r="SERVICE"+e,i=this;return r in this.serviceEncodings&&(n=this.serviceEncodings[r]),this.services[e]=new Me(e,n,i),this.services[e].init(this.getPts(t),(function(t){i.flushDisplayed(t,i.services[e])})),this.services[e]},Ve.prototype.handleText=function(e,t,n){var r,i,a=n&&n.isExtended,o=n&&n.isMultiByte,s=this.current708Packet.data,l=a?4096:0,u=s[e],c=s[e+1],d=t.currentWindow;return t.textDecoder_&&!a?(o?(i=[u,c],e++):i=[u],r=t.textDecoder_.decode(new Uint8Array(i))):r=De(l|u),d.pendingNewLine&&!d.isEmpty()&&d.newLine(this.getPts(e)),d.pendingNewLine=!1,d.addText(r),e},Ve.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,r=n[e+1],i=n[e+2];return Re(r)&&Re(i)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Ve.prototype.setCurrentWindow=function(e,t){var n=this.current708Packet.data,r=n[e],i=7&r;return t.setCurrentWindow(i),e},Ve.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,r=n[e],i=7&r;t.setCurrentWindow(i);var a=t.currentWindow;return r=n[++e],a.visible=(32&r)>>5,a.rowLock=(16&r)>>4,a.columnLock=(8&r)>>3,a.priority=7&r,r=n[++e],a.relativePositioning=(128&r)>>7,a.anchorVertical=127&r,r=n[++e],a.anchorHorizontal=r,r=n[++e],a.anchorPoint=(240&r)>>4,a.rowCount=15&r,r=n[++e],a.columnCount=63&r,r=n[++e],a.windowStyle=(56&r)>>3,a.penStyle=7&r,a.virtualRowCount=a.rowCount+1,e},Ve.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.winAttr;return r=n[++e],i.fillOpacity=(192&r)>>6,i.fillRed=(48&r)>>4,i.fillGreen=(12&r)>>2,i.fillBlue=3&r,r=n[++e],i.borderType=(192&r)>>6,i.borderRed=(48&r)>>4,i.borderGreen=(12&r)>>2,i.borderBlue=3&r,r=n[++e],i.borderType+=(128&r)>>5,i.wordWrap=(64&r)>>6,i.printDirection=(48&r)>>4,i.scrollDirection=(12&r)>>2,i.justify=3&r,r=n[++e],i.effectSpeed=(240&r)>>4,i.effectDirection=(12&r)>>2,i.displayEffect=3&r,e},Ve.prototype.flushDisplayed=function(e,t){for(var n=[],r=0;r<8;r++)t.windows[r].visible&&!t.windows[r].isEmpty()&&n.push(t.windows[r].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},Ve.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Ve.prototype.displayWindows=function(e,t){var n=this.current708Packet.data,r=n[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var a=0;a<8;a++)r&1<<a&&(t.windows[a].visible=1);return e},Ve.prototype.hideWindows=function(e,t){var n=this.current708Packet.data,r=n[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var a=0;a<8;a++)r&1<<a&&(t.windows[a].visible=0);return e},Ve.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data,r=n[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var a=0;a<8;a++)r&1<<a&&(t.windows[a].visible^=1);return e},Ve.prototype.clearWindows=function(e,t){var n=this.current708Packet.data,r=n[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var a=0;a<8;a++)r&1<<a&&t.windows[a].clearText();return e},Ve.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data,r=n[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var a=0;a<8;a++)r&1<<a&&t.windows[a].reset();return e},Ve.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penAttr;return r=n[++e],i.textTag=(240&r)>>4,i.offset=(12&r)>>2,i.penSize=3&r,r=n[++e],i.italics=(128&r)>>7,i.underline=(64&r)>>6,i.edgeType=(56&r)>>3,i.fontStyle=7&r,e},Ve.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penColor;return r=n[++e],i.fgOpacity=(192&r)>>6,i.fgRed=(48&r)>>4,i.fgGreen=(12&r)>>2,i.fgBlue=3&r,r=n[++e],i.bgOpacity=(192&r)>>6,i.bgRed=(48&r)>>4,i.bgGreen=(12&r)>>2,i.bgBlue=3&r,r=n[++e],i.edgeRed=(48&r)>>4,i.edgeGreen=(12&r)>>2,i.edgeBlue=3&r,e},Ve.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,r=n[++e],i.row=15&r,r=n[++e],i.column=63&r,e},Ve.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Ue={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Be=function(e){return null===e?"":(e=Ue[e]||e,String.fromCharCode(e))},je=14,We=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],He=function(){var e=[],t=je+1;while(t--)e.push("");return e},qe=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,a;if(t=32639&e.ccData,t!==this.lastControlCode_){if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=He();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=He();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=He()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))r=(3&r)<<8,a=Be(r|i),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),r=(3&r)<<8,a=Be(r|i),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&i)&&this.addFormatting(e.pts,["i"]),1===(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var o=We.indexOf(7968&t);"rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14===(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),a=Be(r),a+=Be(i),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};qe.prototype=new M,qe.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(n){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},qe.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=He(),this.nonDisplayed_=He(),this.lastControlCode_=null,this.column_=0,this.row_=je,this.rollUpRows_=2,this.formatting_=[]},qe.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},qe.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},qe.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},qe.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},qe.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},qe.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},qe.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},qe.prototype.isNormalChar=function(e){return e>=32&&e<=127},qe.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=je,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=He(),this.displayed_=He()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},qe.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},qe.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},qe.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},qe.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},qe.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<je+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},qe.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var Ge={CaptionStream:Ne,Cea608Stream:qe,Cea708Stream:Ve},ze={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ye=8589934592,Ke=4294967296,Xe="shared",Je=function(e,t){var n=1;e>t&&(n=-1);while(Math.abs(t-e)>Ke)e+=n*Ye;return e},Ze=function e(t){var n,r;e.prototype.init.call(this),this.type_=t||Xe,this.push=function(e){this.type_!==Xe&&e.type!==this.type_||(void 0===r&&(r=e.dts),e.dts=Je(e.dts,r),e.pts=Je(e.pts,r),n=e.dts,this.trigger("data",e))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ze.prototype=new M;var Qe,et={TimestampRolloverStream:Ze,handleRollover:Je},tt=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},nt=function(e,t,n){return decodeURIComponent(tt(e,t,n))},rt=function(e,t,n){return unescape(tt(e,t,n))},it=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},at={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=nt(e.data,1,t),e.value=nt(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=nt(e.data,1,t),e.url=nt(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=rt(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Qe=function(e){var t,n={descriptor:e&&e.descriptor},r=0,i=[],a=0;if(Qe.prototype.init.call(this),this.dispatchType=ze.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,o,s,l,u;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(i.push(e),a+=e.data.byteLength,1===i.length&&(r=it(e.data.subarray(6,10)),r+=10),!(a<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},l=0;l<r;)t.data.set(i[0].data.subarray(0,r-l),l),l+=i[0].data.byteLength,a-=i[0].data.byteLength,i.shift();n=10,64&t.data[5]&&(n+=4,n+=it(t.data.subarray(10,14)),r-=it(t.data.subarray(16,20)));do{if(o=it(t.data.subarray(n+4,n+8)),o<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if(u=String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),s={id:u,data:t.data.subarray(n+10,n+o+10)},s.key=s.id,at[s.id]&&(at[s.id](s),"com.apple.streaming.transportStreamTimestamp"===s.owner)){var c=s.data,d=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;d*=4,d+=3&c[7],s.timeStamp=d,void 0===t.pts&&void 0===t.dts&&(t.pts=s.timeStamp,t.dts=s.timeStamp),this.trigger("timestamp",s)}t.frames.push(s),n+=10,n+=o}while(n<r);this.trigger("data",t)}}},Qe.prototype=new M;var ot,st,lt,ut=Qe,ct=et.TimestampRolloverStream,dt=188,ht=71;ot=function(){var e=new Uint8Array(dt),t=0;ot.prototype.init.call(this),this.push=function(n){var r,i=0,a=dt;t?(r=new Uint8Array(n.byteLength+t),r.set(e.subarray(0,t)),r.set(n,t),t=0):r=n;while(a<r.byteLength)r[i]!==ht||r[a]!==ht?(i++,a++):(this.trigger("data",r.subarray(i,a)),i+=dt,a+=dt);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){t===dt&&e[0]===ht&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}},ot.prototype=new M,st=function(){var e,t,n,r;st.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i,a,o;if(1&e[5]){r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],i=3+n-4,a=(15&e[10])<<8|e[11],o=12+a;while(o<i){var s=e[o],l=(31&e[o+1])<<8|e[o+2];s===ze.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=l:s===ze.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=l:s===ze.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][l]=s),o+=5+((15&e[o+3])<<8|e[o+4])}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid){n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);while(this.packetsWaitingForPmt.length)this.processPes_.apply(this,this.packetsWaitingForPmt.shift())}else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=ze.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=ze.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},st.prototype=new M,st.STREAM_TYPES={h264:27,adts:15},lt=function(){var e,t=this,n=!1,r={data:[],size:0},i={data:[],size:0},a={data:[],size:0},o=function(e,t){var n,r=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===r&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),n=e[7],192&n&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))},s=function(e,n,r){var i,a=new Uint8Array(e.size),s={type:n},l=0,u=0,c=!1;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,l=0;l<e.data.length;l++)i=e.data[l],a.set(i.data,u),u+=i.data.byteLength;o(a,s),c="video"===n||s.packetLength<=e.size,(r||c)&&(e.size=0,e.data.length=0),c&&t.trigger("data",s)}};lt.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case ze.H264_STREAM_TYPE:e=r,t="video";break;case ze.ADTS_STREAM_TYPE:e=i,t="audio";break;case ze.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&s(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var r={type:"metadata",tracks:[]};e=o.programMapTable,null!==e.video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",r)}})[o.type]()},this.reset=function(){r.size=0,r.data.length=0,i.size=0,i.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(r,"video"),s(i,"audio"),s(a,"timed-metadata")},this.flush=function(){if(!n&&e){var r={type:"metadata",tracks:[]};null!==e.video&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&r.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",r)}n=!1,this.flushStreams_(),this.trigger("done")}},lt.prototype=new M;var pt={PAT_PID:0,MP2T_PACKET_LENGTH:dt,TransportPacketStream:ot,TransportParseStream:st,ElementaryStream:lt,TimestampRolloverStream:ct,CaptionStream:Ge.CaptionStream,Cea608Stream:Ge.Cea608Stream,Cea708Stream:Ge.Cea708Stream,MetadataStream:ut};for(var ft in ze)ze.hasOwnProperty(ft)&&(pt[ft]=ze[ft]);var mt,vt=pt,gt=fe.ONE_SECOND_IN_TS,yt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];mt=function(e){var t,n=0;mt.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(r){var i,a,o,s,l,u=0;if(e||(n=0),"audio"===r.type){var c;t&&t.length?(o=t,t=new Uint8Array(o.byteLength+r.data.byteLength),t.set(o),t.set(r.data,o.byteLength)):t=r.data;while(u+7<t.length)if(255===t[u]&&240===(246&t[u+1])){if("number"===typeof c&&(this.skipWarn_(c,u),c=null),a=2*(1&~t[u+1]),i=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,s=1024*(1+(3&t[u+6])),l=s*gt/yt[(60&t[u+2])>>>2],t.byteLength-u<i)break;this.trigger("data",{pts:r.pts+n*l,dts:r.dts+n*l,sampleCount:s,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:yt[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+a,u+i)}),n++,u+=i}else"number"!==typeof c&&(c=u),u++;"number"===typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},mt.prototype=new M;var _t,bt=mt;_t=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(i,i+o)),n=new DataView(a.buffer).getUint32(0),r=8*o,t-=o},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,i=Math.floor(e/8),e-=8*i,t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),a=n>>>32-i;return r-=i,r>0?n<<=i:t>0&&this.loadWord(),i=e-i,i>0?a<<i|this.readBits(i):a},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!==(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var Tt,wt,St,kt=_t;wt=function(){var e,t,n=0;wt.prototype.init.call(this),this.push=function(r){var i;t?(i=new Uint8Array(t.byteLength+r.data.byteLength),i.set(t),i.set(r.data,t.byteLength),t=i):t=r.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}while(e<a)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3;break}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},wt.prototype=new M,St={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Tt=function(){var e,t,n,r,i,a,o,s=new wt;Tt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,s.push(e))},s.on("data",(function(o){var s={trackId:t,pts:n,dts:r,data:o,nalUnitTypeCode:31&o[0]};switch(s.nalUnitTypeCode){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=i(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=i(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp";break}e.trigger("data",s)})),s.on("done",(function(){e.trigger("done")})),s.on("partialdone",(function(){e.trigger("partialdone")})),s.on("reset",(function(){e.trigger("reset")})),s.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},o=function(e,t){var n,r,i=8,a=8;for(n=0;n<e;n++)0!==a&&(r=t.readExpGolomb(),a=(i+r+256)%256),i=0===a?i:a},i=function(e){var t,n,r=e.byteLength,i=[],a=1;while(a<r-2)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),n[a]=e[o];return n},a=function(e){var t,n,r,i,a,s,l,u,c,d,h,p,f,m=0,v=0,g=0,y=0,_=[1,1];if(t=new kt(e),n=t.readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),St[n]&&(a=t.readUnsignedExpGolomb(),3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,f=0;f<h;f++)t.readBoolean()&&o(f<6?16:64,t);if(t.skipUnsignedExpGolomb(),s=t.readUnsignedExpGolomb(),0===s)t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),f=0;f<l;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),d=t.readBits(1),0===d&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(p=t.readUnsignedByte(),p){case 1:_=[1,1];break;case 2:_=[12,11];break;case 3:_=[10,11];break;case 4:_=[16,11];break;case 5:_=[40,33];break;case 6:_=[24,11];break;case 7:_=[20,11];break;case 8:_=[32,11];break;case 9:_=[80,33];break;case 10:_=[18,11];break;case 11:_=[15,11];break;case 12:_=[64,33];break;case 13:_=[160,99];break;case 14:_=[4,3];break;case 15:_=[3,2];break;case 16:_=[2,1];break;case 255:_=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()];break}_&&(_[0],_[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:16*(u+1)-2*m-2*v,height:(2-d)*(c+1)*16-2*g-2*y,sarRatio:_}}},Tt.prototype=new M;var Ct,Et={H264Stream:Tt,NalByteStream:wt},It=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],xt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],r=e[t+5],i=(16&r)>>4;return n=n>=0?n:0,i?n+20:n+10},At=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:(n+=xt(t,n),e(t,n))},Pt=function(e){var t=At(e,0);return e.length>
347=t+2&&255===(255&e[t])&&240===(240&e[t+1])&&16===(22&e[t+1])},$t=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ot=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},Nt=function(e,t,n){return unescape(Ot(e,t,n))},Lt=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3,i=6144&e[t+3];return i|r|n},Dt=function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240===(240&e[t+1])?"audio":null},Rt=function(e){var t=0;while(t+5<e.length){if(255===e[t]&&240===(246&e[t+1]))return It[(60&e[t+2])>>>2];t++}return null},Ft=function(e){var t,n,r,i;t=10,64&e[5]&&(t+=4,t+=$t(e.subarray(10,14)));do{if(n=$t(e.subarray(t+4,t+8)),n<1)return null;if(i=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===i){r=e.subarray(t+10,t+n+10);for(var a=0;a<r.byteLength;a++)if(0===r[a]){var o=Nt(r,0,a);if("com.apple.streaming.transportStreamTimestamp"===o){var s=r.subarray(a+1),l=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return l*=4,l+=3&s[7],l}break}}t+=10,t+=n}while(t<e.byteLength);return null},Mt={isLikelyAacData:Pt,parseId3TagSize:xt,parseAdtsSize:Lt,parseType:Dt,parseSampleRate:Rt,parseAacTimestamp:Ft};Ct=function(){var e=new Uint8Array,t=0;Ct.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var r,i,a,o,s=0,l=0;e.length?(o=e.length,e=new Uint8Array(n.byteLength+o),e.set(e.subarray(0,o)),e.set(n,o)):e=n;while(e.length-l>=3)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!==(255&e[l])||240!==(240&e[l+1]))l++;else{if(e.length-l<7)break;if(s=Mt.parseAdtsSize(e,l),l+s>e.length)break;a={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",a),l+=s}else{if(e.length-l<10)break;if(s=Mt.parseId3TagSize(e,l),l+s>e.length)break;i={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",i),l+=s}r=e.length-l,e=r>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}},Ct.prototype=new M;var Vt,Ut,Bt,jt,Wt=Ct,Ht=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],qt=Ht,Gt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],zt=Gt,Yt=Et.H264Stream,Kt=Mt.isLikelyAacData,Xt=fe.ONE_SECOND_IN_TS,Jt=function(e,t){t.stream=e,this.trigger("log",t)},Zt=function(e,t){for(var n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];"headOfPipeline"!==i&&t[i].on&&t[i].on("log",Jt.bind(e,i))}},Qt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},en=function(e,t,n,r,i,a){var o=n-t,s=r-t,l=i-n;return{start:{dts:e,pts:e+o},end:{dts:e+s,pts:e+l},prependedContentDuration:a,baseMediaDecodeTime:e}};Ut=function(e,t){var n,r=[],i=0,a=0,o=1/0;t=t||{},n=t.firstSequenceNumber||0,Ut.prototype.init.call(this),this.push=function(t){Ce.collectDtsInfo(e,t),e&&qt.forEach((function(n){e[n]=t[n]})),r.push(t)},this.setEarliestDts=function(e){i=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var s,l,u,c,d,h,p;0!==r.length?(s=be.trimAdtsFramesByEarliestDts(r,e,i),e.baseMediaDecodeTime=Ce.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=be.prefixWithSilence(e,s,a,o),e.samples=be.generateSampleTable(s),u=J.mdat(be.concatenateFrameData(s)),r=[],l=J.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),Ce.clearDtsInfo(e),d=Math.ceil(1024*Xt/e.samplerate),s.length&&(h=s.length*d,this.trigger("segmentTimingInfo",en(fe.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+h,s[0].pts+h,p||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+h})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Ce.clearDtsInfo(e),r=[],this.trigger("reset")}},Ut.prototype=new M,Vt=function(e,t){var n,r,i,a=[],o=[];t=t||{},n=t.firstSequenceNumber||0,Vt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ce.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.config,e.sps=[t.data],zt.forEach((function(t){e[t]=r[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){var r,i,s,l,u,c,d,h,p=0;while(a.length){if("access_unit_delimiter_rbsp"===a[0].nalUnitType)break;a.shift()}
347if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(r=se.groupNalsIntoFrames(a),s=se.groupFramesIntoGops(r),s[0][0].keyFrame||(i=this.getGopForFusion_(a[0],e),i?(p=i.duration,s.unshift(i),s.byteLength+=i.byteLength,s.nalCount+=i.nalCount,s.pts=i.pts,s.dts=i.dts,s.duration+=i.duration):s=se.extendFirstKeyFrame(s)),o.length){var f;if(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s),!f)return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Ce.clearDtsInfo(e),s=f}Ce.collectDtsInfo(e,s),e.samples=se.generateSampleTable(s),u=J.mdat(se.concatenateNalData(s)),e.baseMediaDecodeTime=Ce.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),d=s[0],h=s[s.length-1],this.trigger("segmentTimingInfo",en(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=J.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){Ce.clearDtsInfo(e),r=void 0,i=void 0},this.getGopForFusion_=function(t){var n,r,i,a,o,s=45e3,l=1e4,u=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],i=a.gop,e.pps&&Qt(e.pps[0],a.pps[0])&&e.sps&&Qt(e.sps[0],a.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration,n>=-l&&n<=s&&(!r||u>n)&&(r=a,u=n)));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,a,s,l,u;a=e.byteLength,s=e.nalCount,l=e.duration,t=n=0;while(t<o.length&&n<e.length){if(r=o[t],i=e[n],r.pts===i.pts)break;i.pts>r.pts?t++:(n++,a-=i.byteLength,s-=i.nalCount,l-=i.duration)}return 0===n?e:n===e.length?null:(u=e.slice(n),u.byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,r,i,a,s,l;t=o.length-1,n=e.length-1,a=null,s=!1;while(t>=0&&n>=0){if(r=o[t],i=e[n],r.pts===i.pts){s=!0;break}r.pts>i.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;if(l=s?n:a,0===l)return e;var u=e.slice(l),c=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){o=e}},Vt.prototype=new M,jt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,e=e||{},"undefined"!==typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"===typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,jt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},jt.prototype=new M,jt.prototype.flush=function(e){var t,n,r,i,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,zt.forEach((function(e){o.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,qt.forEach((function(e){o.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.t
vendor: 4,675 bytes, line 347
347ype=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,r=J.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(r.byteLength),o.initSegment.set(r),o.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)o.data.set(this.pendingBoxes[i],a),a+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)t=this.pendingCaptions[i],t.startTime=fe.metadataTsToSeconds(t.startPts,s,this.keepOriginalTimestamps),t.endTime=fe.metadataTsToSeconds(t.endPts,s,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)n=this.pendingMetadata[i],n.cueTime=fe.metadataTsToSeconds(n.pts,s,this.keepOriginalTimestamps),o.metadata.push(n);for(o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),i=0;i<o.captions.length;i++)t=o.captions[i],this.trigger("caption",t);for(i=0;i<o.metadata.length;i++)n=o.metadata[i],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},jt.prototype.setRemux=function(e){this.remuxTracks=e},Bt=function(e){var t,n,r=this,i=!0;Bt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new vt.MetadataStream,i.aacStream=new Wt,i.audioTimestampRolloverStream=new vt.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new vt.TimestampRolloverStream("timed-metadata"),i.adtsStream=new bt,i.coalesceStream=new jt(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",(function(e){i.aacStream.setTimestamp(e.timeStamp)})),i.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||i.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new Ut(n,e),i.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),Zt(this,i)},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new vt.MetadataStream,i.packetStream=new vt.TransportPacketStream,i.parseStream=new vt.TransportParseStream,i.elementaryStream=new vt.ElementaryStream,i.timestampRolloverStream=new vt.TimestampRolloverStream,i.adtsStream=new bt,i.h264Stream=new Yt,i.captionStream=new vt.CaptionStream(e),i.coalesceStream=new jt(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",(function(a){var o;if("metadata"===a.type){o=a.tracks.length;while(o--)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||(n=a.tracks[o],n.timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=a.tracks[o],t.timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime);t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new Vt(t,e),i.videoSegmentStream.on("log",r.getLogTrigger_("videoSegmentStream")),i.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,i.audioSegmentStream.setEarliestDts(t.dts-r.baseMediaDecodeTime))})),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),i.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new 
vendor: 5,197 bytes, line 347
347Ut(n,e),i.audioSegmentStream.on("log",r.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",(function(e){e.dispatchType=i.metadataStream.dispatchType,r.trigger("id3Frame",e)})),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done")),Zt(this,i)},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Ce.clearDtsInfo(n),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Ce.clearDtsInfo(t),i.captionStream.reset()),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(i){var t=Kt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Bt.prototype=new M;var tn,nn={Transmuxer:Bt,VideoSegmentStream:Vt,AudioSegmentStream:Ut,AUDIO_PROPERTIES:qt,VIDEO_PROPERTIES:zt,generateSegmentTimingInfo:en},rn=function(e){return e>>>0},an=function(e){return("00"+e.toString(16)).slice(-2)},on={toUnsigned:rn,toHexString:an},sn=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3]),t},ln=sn,un=on.toUnsigned,cn=function e(t,n){var r,i,a,o,s,l=[];if(!n.length)return null;for(r=0;r<t.byteLength;)i=un(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]),a=ln(t.subarray(r+4,r+8)),o=i>1?r+i:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(r+8,o)):(s=e(t.subarray(r+8,o),n.slice(1)),s.length&&(l=l.concat(s)))),r=o;return l},dn=cn,hn=on.toUnsigned,pn=B.getUint64,fn=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=pn(e.subarray(4)):t.baseMediaDecodeTime=hn(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},mn=fn,vn=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},gn=vn,yn=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=r.getUint32(4),d=8;i&&(n.dataOffset=r.getInt32(d),d+=4),a&&c&&(t={flags:gn(e.subarray(d,d+4))},d+=4,o&&(t.duration=r.getUint32(d),d+=4),s&&(t.size=r.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=r.getInt32(d):t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t),c--);while(c--)t={},o&&(t.duration=r.getUint32(d),d+=4),s&&(t.size=r.getUint32(d),d+=4),l&&(t.flags=gn(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=r.getInt32(d):t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t);return n},_n=yn,bn=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],a=2&r.flags[2],o=8&r.flags[2],s=16&r.flags[2],l=32&r.flags[2],u=65536&r.flags[0],c=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),a&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),l&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&c&&(r.baseDataOffsetIsMoof=!0),r},Tn=bn,wn="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};tn="undefined"!==typeof window?window:"undefined"!==typeof wn?wn:"undefined"!==typeof self?self:{};var Sn,kn,Cn,En,In,xn,An=tn,Pn=Oe.discardEmulationPreventionBytes,$n=Ge.CaptionStream,On=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];
347if(n<i.size)return i;n-=i.size}return null},Nn=function(e,t,n){var r,i,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(i=0;i+4<e.length;i+=a)if(a=s.getUint32(i),i+=4,!(a<=0))switch(31&e[i]){case 6:var u=e.subarray(i+1,i+1+a),c=On(i,t);if(r={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:Pn(u),trackId:n},c)r.pts=c.pts,r.dts=c.dts,o=c;else{if(!o){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+i+" for trackId "+n+". See mux.js#223."});break}r.pts=o.pts,r.dts=o.dts}l.seiNals.push(r);break}return l},Ln=function(e,t,n){var r=t,i=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach((function(e){var t=_n(e),n=t.samples;n.forEach((function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"===typeof r?(e.pts=r+An.BigInt(e.compositionTimeOffset),r+=An.BigInt(e.duration)):(e.pts=r+e.compositionTimeOffset,r+=e.duration)})),s=s.concat(n)})),s},Dn=function(e,t){var n=dn(e,["moof","traf"]),r=dn(e,["mdat"]),i={},a=[];return r.forEach((function(e,t){var r=n[t];a.push({mdat:e,traf:r})})),a.forEach((function(e){var n,r,a=e.mdat,o=e.traf,s=dn(o,["tfhd"]),l=Tn(s[0]),u=l.trackId,c=dn(o,["tfdt"]),d=c.length>0?mn(c[0]).baseMediaDecodeTime:0,h=dn(o,["trun"]);t===u&&h.length>0&&(n=Ln(h,d,l),r=Nn(a,n,u),i[u]||(i[u]={seiNals:[],logs:[]}),i[u].seiNals=i[u].seiNals.concat(r.seiNals),i[u].logs=i[u].logs.concat(r.logs))})),i},Rn=function(e,t,n){var r;if(null===t)return null;r=Dn(e,t);var i=r[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}},Fn=function(){var e,t,n,r,i,a,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new $n,o=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,i.captions.push(e),i.captionStreams[e.stream]=!0})),e.on("log",(function(e){i.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"===typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,a,o){var s;if(!this.isInitialized())return null;if(!a||!o)return null;if(this.isNewInit(a,o))n=a[0],r=o[n];else if(null===n||!r)return t.push(e),null;while(t.length>0){var l=t.shift();this.parse(l,a,o)}return s=Rn(e,n,r),s&&s.logs&&(i.logs=i.logs.concat(s.logs)),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),i):i.logs.length?{logs:i.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){i.captions=[],i.captionStreams={},i.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,i?this.clearParsedCaptions():i={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},Mn=Fn,Vn=on.toUnsigned,Un=on.toHexString,Bn=B.getUint64;Sn=function(e){var t={},n=dn(e,["moov","trak"]);return n.reduce((function(e,t){var n,r,i,a,o;return n=dn(t,["tkhd"])[0],n?(r=n[0],i=0===r?12:20,a=Vn(n[i]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]),o=dn(t,["mdia","mdhd"])[0],o?(r=o[0],i=0===r?12:20,e[a]=Vn(o[i]<<24|o[i+1]<<16|o[i+2]<<8|o[i+3]),e):null):null}),t)},kn=function(e,t){var n;n=dn(t,["moof","traf"]);var r=n.reduce((function(t,n){var r,i,a=dn(n,["tfhd"])[0],o=Vn(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),s=e[o]||9e4,l=dn(n,["tfdt"])[0],u=new DataView(l.buffer,l.byteOffset,l.byteLength);return r=1===l[0]?Bn(l.subarray(4,12)):u.getUint32(4),"bigint"===typeof r?i=r/An.BigInt(s):"number"!==typeof r||isNaN(r)||(i=r/s),i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),i<t&&(t=i),t}),1/0);return"bigint"===typeof r||isFinite(r)?r:0},Cn=function(e,t){var n,r=dn(t,["moof","traf"]),i=0,a=0;if(r&&r.length){var o=dn(r[0],["tfhd"])[0],s=dn(r[0],["trun"])[0],l=dn(r[0],["tfdt"])[0];if(o){var u=Tn(o);n=u.trackId}if(l){var c=mn(l);i=c.baseMediaDecodeTime}if(s){var d=_n(s);d.samples&&d.samples.length&&(a=d.samples[0].compositionTimeOffset||0)}}var h=e[n]||9e4;"bigint"===typeof i&&(a=An.BigInt(a),h=An.BigInt(h));var p=(i+a)/h;return"bigint"===typeof p&&p<Number.MAX_SAFE_INTEGER&&(p=Number(p)),p},En=function(e){var t=dn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t=dn(e,["mdia","hdlr"]),r=dn(e,["tkhd"]);t.forEach((function(e,t){var i,a,o,s=ln(e.subarray(8,12)),l=r[t];"vide"===s&&(i=new DataView(l.buffer,l.byteOffset,l.byteLength),a=i.getUint8(0),o=0===a?i.getUint32(12):i.getUint32(20),n.push(o))}))})),n},xn=function(e){var t=e[0],n=0===t?12:20;return Vn(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3])},In=function(e){var t=dn(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,r,i={},a=dn(e,["tkhd"])[0];a&&(t=new DataView(a.buffer,a.byteOffset,a.byteLength),r=t.getUint8(0),i.id=0===r?t.getUint32(12):t.getUint32(20));var o=dn(e,["mdia","hdlr"])[0];if(o){var s=ln(o.subarray(8,12));i.type="vide"===s?"video":"soun"===s?"audio":s}var l=dn(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);i.codec=ln(u.subarray(4,8));var c,d,h=dn(u,[i.codec])[0];h&&(/^[asm]vc[1-9]$/i.test(i.codec)?(c=h.subarray(78),d=ln(c.subarray(4,8)),"avcC"===d&&c.length>11?(i.codec+=".",i.codec+=Un(c[9]),i.codec+=Un(c[10]),i.codec+=Un(c[11])):i.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(i.codec)?(c=h.subarray(28),d=ln(c.subarray(4,8)),"esds"===d&&c.length>20&&0!==c[19]?(i.codec+="."+Un(c[19]),i.codec+="."+Un(c[20]>>>2&63).replace(/^0/,"")):i.codec="mp4a.40.2"):i.codec=i.codec.toLowerCase())}var p=dn(e,["mdia","mdhd"])[0];p&&(i.timescale=xn(p)),n.push(i)})),n};var jn={findBox:dn,parseType:ln,timescale:Sn,startTime:kn,compositionStartTime:Cn,videoTrackIds:En,tracks:In,getTimescaleFromMediaHeader:xn},Wn=function(e){var t=31&e[1];return t<<=8,t|=e[2],t},Hn=function(e){return!!(64&e[1])},qn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},Gn=function(e,t){var n=Wn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},zn=function(e){var t=Hn(e),n=4+qn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},Yn=function(e){var t={},n=Hn(e),r=4+qn(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i,a,o;i=(15&e[r+1])<<8|e[r+2],a=3+i-4,o=(15&e[r+10])<<8|e[r+11];var s=12+o;while(s<a){var l=r+s;t[(31&e[l+1])<<8|e[l+2]]=e[l],s+=5+((15&e[l+3])<<8|e[l+4])}return t}},Kn=function(e,t){var n=Wn(e),r=t[n];switch(r){case ze.H264_STREAM_TYPE:return"video";case ze.ADTS_STREAM_TYPE:return"audio";case ze.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},Xn=function(e){var t=Hn(e);if(!t)return null;var n=4+qn(e);if(n>=e.byteLength)return null;var r,i=null;return r=e[n+7],192&r&&(i={},i.pts=(14&e[n+9])<<27|(255&e[n+10])<<20|(254&e[n+11])<<12|(255&e[n+12])<<5|(254&e[n+13])>>>3,i.pts*=4,i.pts+=(6&e[n+13])>>>1,i.dts=i.pts,64&r&&(i.dts=(14&e[n+14])<<27|(255&e[n+15])<<20|(254&e[n+16])<<12|(255&e[n+17])<<5|(254&e[n+18])>>>3,i.dts*=4,i.dts+=(6&e[n+18])>>>1)),i},Jn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Zn=function(e){for(var t,n=4+qn(e),r=e.subarray(n),i=0,a=0,o=!1;a<r.byteLength-3;a++)if(1===r[a+2]){i=a+5;break}while(i<r.byteLength)switch(r[i]){case 0:if(0!==r[i-1]){i+=2;break}if(0!==r[i-2]){i++;break}a+3!==i-2&&(t=Jn(31&r[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0));do{i++}while(1!==r[i]&&i<r.length);a=i-2,i+=3;break;case 1:if(0!==r[i-1]||0!==r[i-2]){i+=3;break}t=Jn(31&r[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0),a=i-2,i+=3;break;default:i+=3;break}return r=r.subarray(a),i-=a,a=0,r&&r.byteLength>3&&(t=Jn(31&r[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(o=!0)),o},Qn={parseType:Gn,parsePat:zn,parsePmt:Yn,parsePayloadUnitStartIndicator:Hn,parsePesType:Kn,parsePesTime:Xn,videoPacketContainsKeyFrame:Zn},er=et.handleRollover,tr={};tr.ts=Qn,tr.aac=Mt;var nr=fe.ONE_SECOND_IN_TS,rr=188,ir=71,ar=function(e,t){var n,r,i=0,a=rr;while(a<e.byteLength)if(e[i]!==ir||e[a]!==ir)i++,a++;else{switch(n=e.subarray(i,a),r=tr.ts.parseType(n,t.pid),r){case"pat":t.pid=tr.t
347s.parsePat(n);break;case"pmt":var o=tr.ts.parsePmt(n);t.table=t.table||{},Object.keys(o).forEach((function(e){t.table[e]=o[e]}));break}i+=rr,a+=rr}},or=function(e,t,n){var r,i,a,o,s,l=0,u=rr,c=!1;while(u<=e.byteLength)if(e[l]!==ir||e[u]!==ir&&u!==e.byteLength)l++,u++;else{switch(r=e.subarray(l,u),i=tr.ts.parseType(r,t.pid),i){case"pes":a=tr.ts.parsePesType(r,t.table),o=tr.ts.parsePayloadUnitStartIndicator(r),"audio"===a&&o&&(s=tr.ts.parsePesTime(r),s&&(s.type="audio",n.audio.push(s),c=!0));break}if(c)break;l+=rr,u+=rr}u=e.byteLength,l=u-rr,c=!1;while(l>=0)if(e[l]!==ir||e[u]!==ir&&u!==e.byteLength)l--,u--;else{switch(r=e.subarray(l,u),i=tr.ts.parseType(r,t.pid),i){case"pes":a=tr.ts.parsePesType(r,t.table),o=tr.ts.parsePayloadUnitStartIndicator(r),"audio"===a&&o&&(s=tr.ts.parsePesTime(r),s&&(s.type="audio",n.audio.push(s),c=!0));break}if(c)break;l-=rr,u-=rr}},sr=function(e,t,n){var r,i,a,o,s,l,u,c,d=0,h=rr,p=!1,f={data:[],size:0};while(h<e.byteLength)if(e[d]!==ir||e[h]!==ir)d++,h++;else{switch(r=e.subarray(d,h),i=tr.ts.parseType(r,t.pid),i){case"pes":if(a=tr.ts.parsePesType(r,t.table),o=tr.ts.parsePayloadUnitStartIndicator(r),"video"===a&&(o&&!p&&(s=tr.ts.parsePesTime(r),s&&(s.type="video",n.video.push(s),p=!0)),!n.firstKeyFrame)){if(o&&0!==f.size){l=new Uint8Array(f.size),u=0;while(f.data.length)c=f.data.shift(),l.set(c,u),u+=c.byteLength;if(tr.ts.videoPacketContainsKeyFrame(l)){var m=tr.ts.parsePesTime(l);m?(n.firstKeyFrame=m,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(r),f.size+=r.byteLength}break}if(p&&n.firstKeyFrame)break;d+=rr,h+=rr}h=e.byteLength,d=h-rr,p=!1;while(d>=0)if(e[d]!==ir||e[h]!==ir)d--,h--;else{switch(r=e.subarray(d,h),i=tr.ts.parseType(r,t.pid),i){case"pes":a=tr.ts.parsePesType(r,t.table),o=tr.ts.parsePayloadUnitStartIndicator(r),"video"===a&&o&&(s=tr.ts.parsePesTime(r),s&&(s.type="video",n.video.push(s),p=!0));break}if(p)break;d-=rr,h-=rr}},lr=function(e,t){if(e.audio&&e.audio.length){var n=t;("undefined"===typeof n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=er(e.dts,n),e.pts=er(e.pts,n),e.dtsTime=e.dts/nr,e.ptsTime=e.pts/nr}))}if(e.video&&e.video.length){var r=t;if(("undefined"===typeof r||isNaN(r))&&(r=e.video[0].dts),e.video.forEach((function(e){e.dts=er(e.dts,r),e.pts=er(e.pts,r),e.dtsTime=e.dts/nr,e.ptsTime=e.pts/nr})),e.firstKeyFrame){var i=e.firstKeyFrame;i.dts=er(i.dts,r),i.pts=er(i.pts,r),i.dtsTime=i.dts/nr,i.ptsTime=i.pts/nr}}},ur=function(e){var t,n=!1,r=0,i=null,a=null,o=0,s=0;while(e.length-s>=3){var l=tr.aac.parseType(e,s);switch(l){case"timed-metadata":if(e.length-s<10){n=!0;break}if(o=tr.aac.parseId3TagSize(e,s),o>e.length){n=!0;break}null===a&&(t=e.subarray(s,s+o),a=tr.aac.parseAacTimestamp(t)),s+=o;break;case"audio":if(e.length-s<7){n=!0;break}if(o=tr.aac.parseAdtsSize(e,s),o>e.length){n=!0;break}null===i&&(t=e.subarray(s,s+o),i=tr.aac.parseSampleRate(t)),r++,s+=o;break;default:s++;break}if(n)return null}if(null===i||null===a)return null;var u=nr/i,c={audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*r*u,pts:a+1024*r*u}]};return c},cr=function(e){var t={pid:null,table:null},n={};for(var r in ar(e,t),t.table)if(t.table.hasOwnProperty(r)){var i=t.table[r];switch(i){case ze.H264_STREAM_TYPE:n.video=[],sr(e,t,n),0===n.video.length&&delete n.video;break;case ze.ADTS_STREAM_TYPE:n.audio=[],or(e,t,n),0===n.audio.length&&delete n.audio;break}}return n},dr=function(e,t){var n,r=tr.aac.isLikelyAacData(e);return n=r?ur(e):cr(e),n&&(n.audio||n.video)?(lr(n,t),n):null},hr={inspect:dr,parseAudioPes_:or},pr=function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:fe.videoTsToSeconds(t.start.dts),presentation:fe.videoTsToSeconds(t.start.pts)},end:{decode:fe.videoTsToSeconds(t.end.dts),presentation:fe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:fe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=fe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:fe.videoTsToSeconds(t.start.dts),presentation:fe.videoTsToSeconds(t.start.pts)},end:{decode:fe.videoTsToSeconds(t.end.dts),presentation:fe.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:fe.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=fe.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:fe.videoTsToSeconds(t.start),end:fe.videoTsToSeconds(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:fe.videoTsToSeconds(t.start),end:fe.videoTsToSeconds(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))},fr=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new nn.Transmuxer(this.options),pr(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Mn,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,r=jn.startTime(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:r,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=jn.tracks(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,r="number"!==typeof n||isNaN(n)?void 0:n*fe.ONE_SECOND_IN_TS,i=hr.inspect(t,r),a=null;i&&(a={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1},a.hasVideo&&(a.videoStart=i.video[0].ptsTime),a.hasAudio&&(a.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(fe.secondsToVideoTs(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(fe.secondsToVideoTs(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();
vendor: 18,873 bytes, line 347
347self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new fr(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new fr(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),Cc=Tc(kc),Ec=function(e,t,n){var r=e.data.segment,i=r.type,a=r.initSegment,o=r.captions,s=r.captionStreams,l=r.metadata,u=r.videoFrameDtsTime,c=r.videoFramePtsTime;t.buffer.push({captions:o,captionStreams:s,metadata:l});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:i,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};"undefined"!==typeof u&&(h.videoFrameDtsTime=u),"undefined"!==typeof c&&(h.videoFramePtsTime=c),n(h)},Ic=function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)},xc=function(e,t){t.gopInfo=e.data.gopInfo},Ac=function(e){var t=e.transmuxer,n=e.bytes,r=e.audioAppendStart,i=e.gopsToAlignWith,a=e.remux,o=e.onData,s=e.onTrackInfo,l=e.onAudioTimingInfo,u=e.onVideoTimingInfo,c=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,p=e.onCaptions,f=e.onDone,m=e.onEndedTimeline,v=e.onTransmuxerLog,g=e.isEndOfTimeline,y={buffer:[]},_=g,b=function(n){t.currentTransmux===e&&("data"===n.data.action&&Ec(n,y,o),"trackinfo"===n.data.action&&s(n.data.trackInfo),"gopInfo"===n.data.action&&xc(n,y),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&p(n.data.caption),"endedtimeline"===n.data.action&&(_=!1,m()),"log"===n.data.action&&v(n.data.log),"transmuxed"===n.data.type&&(_||(t.onmessage=null,Ic({transmuxedData:y,callback:f}),Pc(t))))};if(t.onmessage=b,r&&t.postMessage({action:"setAudioAppendStart",appendStart:r}),Array.isArray(i)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:i}),"undefined"!==typeof a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var T=n instanceof ArrayBuffer?n:n.buffer,w=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:T,byteOffset:w,byteLength:n.byteLength},[T])}g&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},Pc=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"===typeof e.currentTransmux?e.currentTransmux():Ac(e.currentTransmux))},$c=function(e,t){e.postMessage({action:t}),Pc(e)},Oc=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void $c(t,e);t.transmuxQueue.push($c.bind(null,t,e))},Nc=function(e){Oc("reset",e)},Lc=function(e){Oc("endTimeline",e)},Dc=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void Ac(e);e.transmuxer.transmuxQueue.push(e)},Rc=function(e){var t=new Cc;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},Fc={reset:Nc,endTimeline:Lc,transmux:Dc,createTransmuxer:Rc},Mc=function(e){var t=e.transmuxer,n=e.endAction||e.action,r=e.callback,i=s({},e,{endAction:null,transmuxer:null,callback:null}),a=function i(a){a.data.action===n&&(t.removeEventListener("message",i),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),r(a.data))};if(t.addEventListener("message",a),e.data){var o=e.data instanceof ArrayBuffer;i.byteOffset=o?0:e.data.byteOffset,i.byteLength=e.data.byteLength;var l=[o?e.data:e.data.buffer];t.postMessage(i,l)}else t.postMessage(i)},Vc={FAILURE:2,TIMEOUT:-101,ABORTED:-102},Uc=function(e){e.forEach((function(e){e.abort()}))},Bc=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},jc=function(e){var t=e.target,n=Date.now()-t.requestTime,r={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return r.bytesReceived=e.loaded,r.bandwidth=Math.floor(r.bytesReceived/r.roundTripTime*8*1e3),r},Wc=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Vc.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Vc.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Vc.FAILURE,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Vc.FAILURE,xhr:t}:null},Hc=function(e,t,n){return function(r,i){var a=i.response,o=Wc(r,i);if(o)return n(o,e);if(16!==a.byteLength)return n({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:Vc.FAILURE,xhr:i},e);for(var s=new DataView(a),l=new Uint32Array([s.getUint32(0),s.getUint32(4),s.getUint32(8),s.getUint32(12)]),u=0;u<t.length;u++)t[u].bytes=l;return n(null,e)}},qc=function(e,t){var n=pn(e.map.bytes);if("mp4"!==n){var r=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+r,code:Vc.FAILURE})}Mc({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var r=n.tracks,i=n.data;return e.map.bytes=i,r.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"===typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null)}})},Gc=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,r){var i=Wc(e,r);if(i)return n(i,t);var a=new Uint8Array(r.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,qc(t,(function(e){if(e)return e.xhr=r,e.status=r.status,n(e,t);n(null,t)}))}},zc=function(e){var t=e.segment,n=e.finishProcessingFn,r=e.responseType;return function(e,i){var a=Wc(e,i);if(a)return n(a,t);var o="arraybuffer"!==r&&i.responseText?yc(i.responseText.substring(t.lastReachedChar||0)):i.response;return t.stats=Bc(i),t.key?t.encryptedBytes=new Uint8Array(o):t.bytes=new Uint8Array(o),n(null,t)}},Yc=function(e){var t=e.segment,n=e.bytes,r=e.trackInfoFn,i=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=t.map&&t.map.tracks||{},m=Boolean(f.audio&&f.video),v=i.bind(null,t,"audio","start"),g=i.bind(null,t,"audio","end"),y=i.bind(null,t,"video","start"),_=i.bind(null,t,"video","end"),b=function(){return Dc({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){r&&(m&&(e.isMuxed=!0),r(t,e))},onAudioTimingInfo:function(e){v&&"undefined"!==typeof e.start&&(v(e.start),v=null),g&&"undefined"!==typeof e.end&&g(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!==typeof e.start&&(y(e.start),y=null),_&&"undefined"!==typeof e.end&&_(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){o(e)},onId3:function(e,n){s(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:u,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})};Mc({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var i=e.result;i&&(r(t,{hasAudio:i.hasAudio,hasVideo:i.hasVideo,isMuxed:m}),r=null,i.hasAudio&&!m&&v(i.audioStart),i.hasVideo&&y(i.videoStart),v=null,y=null),b()}})},Kc=function(e){var t=e.segment,n=e.bytes,r=e.trackInfoFn,i=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(n);if(fn(f)){t.isFmp4=!0;var m=t.map.tracks,v={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(v.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(v.videoCodec=m.video.codec),m.video&&m.audio&&(v.isMuxed=!0),r(t,v);var g=function(e){d(t,{data:f,type:v.hasAudio&&!v.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};Mc({action:"probeMp4StartTime",timescales:t.map.timescales,data:f,transmuxer:t.transmuxer,callback:function(e){var r=e.data,a=e.startTime;n=r.buffer,t.bytes=f=r,v.hasAudio&&!v.isMuxed&&i(t,"audio","start",a),v.hasVideo&&i(t,"video","start",a),m.video&&r.byteLength&&t.transmuxer?Mc({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:f,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=f=e.data,e.logs.forEach((function(e){p(Tl.mergeOptions(e,{stream:"mp4CaptionParser"}))})),g(e.captions)}}):g()}})}else if(t.transmuxer){if("undefined"===typeof t.container&&(t.container=pn(f)),"ts"!==t.container&&"aac"!==t.container)return r(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Yc({segment:t,bytes:n,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,t,{})},Xc=function(e,t){var n,r=e.id,i=e.key,a=e.encryptedBytes,o=e.decryptionWorker,s=function e(n){if(n.data.source===r){o.removeEventListener("message",e);var i=n.data.decrypted;t(new Uint8Array(i.bytes,i.byteOffset,i.byteLength))}};o.addEventListener("message",s),n=i.bytes.slice?i.bytes.slice():new Uint32Array(Array.prototype.slice.call(i.bytes)),o.postMessage(ju({source:r,encrypted:a,key:n,iv:i.iv}),[a.buffer,n.buffer])},Jc=function(e){var t=e.decryptionWorker,n=e.segment,r=e.trackInfoFn,i=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog;Xc({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t},(function(e){n.bytes=e,Kc({segment:n,bytes:n.bytes,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}))},Zc=function(e){var t=e.activeXhrs,n=e.decryptionWorker,r=e.trackInfoFn,i=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,o=e.audioSegmentTimingInfoFn,s=e.id3Fn,l=e.captionsFn,u=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=0,m=!1;return function(e,v){if(!m){if(e)return m=!0,Uc(t),h(e,v);if(f+=1,f===t.length){var g=function(){if(v.encryptedBytes)return Jc({decryptionWorker:n,segment:v,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p});Kc({segment:v,bytes:v.bytes,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:o,id3Fn:s,captionsFn:l,isEndOfTimeline:u,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})};if(v.endOfAllRequests=Date.now(),v.map&&v.map.encryptedBytes&&!v.map.bytes)return Xc({decryptionWorker:n,id:v.requestId+"-init",encryptedBytes:v.map.encryptedBytes,key:v.map.key},(function(e){v.map.bytes=e,qc(v,(function(e){if(e)return Uc(t),h(e,v);g()}))}));g()}}}},Qc=function(e){var t=e.loadendState,n=e.abortFn;return function(e){var r=e.target;r.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}},ed=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){var r=e.target;if(!r.aborted)return t.stats=Tl.mergeOptions(t.stats,jc(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},td=function(e){var t=e.xhr,n=e.xhrOptions,r=e.decryptionWorker,i=e.segment,a=e.abortFn,o=e.progressFn,s=e.trackInfoFn,l=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,c=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,p=e.isEndOfTimeline,f=e.endedTimelineFn,m=e.dataFn,v=e.doneFn,g=e.onTransmuxerLog,y=[],_=Zc({activeXhrs:y,decryptionWorker:r,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m,doneFn:v,onTransmuxerLog:g});if(i.key&&!i.key.bytes){var b=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&b.push(i.map.key);var T=Tl.mergeOptions(n,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),w=Hc(i,b,_),S=t(T,w);y.push(S)}if(i.map&&!i.map.bytes){var k=i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri);if(k){var C=Tl.mergeOptions(n,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),E=Hc(i,[i.map.key],_),I=t(C,E);y.push(I)}var x=Tl.mergeOptions(n,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:Mu(i.map)}),A=Gc({segment:i,finishProcessingFn:_}),P=t(x,A);y.push(P)}var $=Tl.mergeOptions(n,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:Mu(i)}),O=zc({segment:i,finishProcessingFn:_,responseType:$.responseType}),N=t($,O);N.addEventListener("progress",ed({segment:i,progressFn:o,trackInfoFn:s,timingInfoFn:l,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:c,id3Fn:d,captionsFn:h,isEndOfTimeline:p,endedTimelineFn:f,dataFn:m})),y.push(N);var L={};return y.forEach((function(e){e.addEventListener("loadend",Qc({loadendState:L,abortFn:a}))})),function(){return Uc(y)}},nd=El("CodecUtils"),rd=function(e){var t=e.attributes||{};if(t.CODECS)return q(t.CODECS)},id=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},ad=function(e,t){if(!id(e,t))return!0;var n=t.attributes||{},r=e.mediaGroups.AUDIO[n.AUDIO];for(var i in r)if(!r[i].uri&&!r[i].playlists)return!0;return!1},od=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,r=e.type,i=e.details;t[n]=t[n]||[],t[n].push(H(""+r+i))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return nd("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},sd=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},ld=function(e,t){var n=t.attributes||{},r=od(rd(t)||[]);if(id(e,t)&&!r.audio&&!ad(e,t)){var i=od(G(e,n.AUDIO)||[]);i.audio&&(r.audio=i.audio)}return r},ud=El("PlaylistSelector"),cd=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},dd=function(e,t){if(!e)return"";var n=i().getComputedStyle(e);return n?n[t]:""},hd=function(e,t){var n=e.slice();e.sort((function(e,r){var i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i}))},pd=function(e,t){var n,r;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||i().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),r=r||i().Number.MAX_VALUE,n-r},fd=function(e,t){var n,r;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||i().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),r=r||i().Number.MAX_VALUE,n===r&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-r},md=function(e,t,n,r,a,o){if(e){var s={bandwidth:t,width:n,height:r,limitRenditionByPlayerDimensions:a},l=e.playlists;du.isAudioOnly(e)&&(l=o.getAudioTrackPlaylists_(),s.audioOnly=!0);var u=l.map((function(e){var t,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,r=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||i().Number.MAX_VALUE,{bandwidth:t,width:n,height:r,playlist:e}}));hd(u,(function(e,t){return e.bandwidth-t.bandwidth})),u=u.filter((function(e){return!du.isIncompatible(e.playlist)}));var c=u.filter((function(e){return du.isEnabled(e.playlist)}));c.length||(c=u.filter((function(e){return!du.isDisabled(e.playlist)})));var d=c.filter((function(e){return e.bandwidth*gc.BANDWIDTH_VARIANCE<t})),h=d[d.length-1],p=d.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(!1===a){var f=p||c[0]||u[0];if(f&&f.playlist){var m="sortedPlaylistReps";return p&&(m="bandwidthBestRep"),c[0]&&(m="enabledPlaylistReps"),ud("choosing "+cd(f)+" using "+m+" with options",s),f.playlist}return ud("could not choose a playlist with options",s),null}var v=d.filter((function(e){return e.width&&e.height}));hd(v,(function(e,t){return e.width-t.width}));var g=v.filter((function(e){return e.width===n&&e.height===r}));h=g[g.length-1];var y,_,b,T,w=g.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(w||(y=v.filter((function(e){return e.width>n||e.height>r})),_=y.filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=_[_.length-1],b=_.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),o.experimentalLeastPixelDiffSelector){var S=v.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-r),e}));hd(S,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),T=S[0]}var k=T||b||w||p||c[0]||u[0];if(k&&k.playlist){var C="sortedPlaylistReps";return T?C="leastPixelDiffRep":b?C="resolutionPlusOneRep":w?C="resolutionBestRep":p?C="bandwidthBestRep":c[0]&&(C="enabledPlaylistReps"),ud("choosing "+cd(k)+" using "+C+" with options",s),k.playlist}return ud("could not choose a playlist with options",s),null}},vd=function(){var e=this.useDevicePixelRatio&&i().devicePixelRatio||1;return md(this.playlists.master,this.systemBandwidth,parseInt(dd(this.tech_.el(),"width"),10)*e,parseInt(dd(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},gd=function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var r=this.useDevicePixelRatio&&i().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),md(this.playlists.master,t,parseInt(dd(this.tech_.el(),"width"),10)*r,parseInt(dd(this.tech_.el(),"height"),10)*r,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},yd=function(e){var t=e.master,n=e.currentTime,r=e.bandwidth,i=e.duration,a=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,l=e.syncController,u=t.playlists.filter((function(e){return!du.isIncompatible(e)}
347)),c=u.filter(du.isEnabled);c.length||(c=u.filter((function(e){return!du.isDisabled(e)})));var d=c.filter(du.hasAttribute.bind(null,"BANDWIDTH")),h=d.map((function(e){var t=l.getSyncPoint(e,i,s,n),u=t?1:2,c=du.estimateSegmentRequestTime(a,r,e),d=c*u-o;return{playlist:e,rebufferingImpact:d}})),p=h.filter((function(e){return e.rebufferingImpact<=0}));return hd(p,(function(e,t){return pd(t.playlist,e.playlist)})),p.length?p[0]:(hd(h,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),h[0]||null)},_d=function(){var e=this,t=this.playlists.master.playlists.filter(du.isEnabled);hd(t,(function(e,t){return pd(e,t)}));var n=t.filter((function(t){return!!ld(e.playlists.master,t).video}));return n[0]||null},bd=function(e){var t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach((function(e){t.set(e,n),n+=e.byteLength}))),t},Td=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var r=n;/^cc708_/.test(n)&&(r="SERVICE"+n.split("_")[1]);var i=t.textTracks().getTrackById(r);if(i)e[n]=i;else{var a=t.options_.vhs&&t.options_.vhs.captionServices||{},o=n,s=n,l=!1,u=a[r];u&&(o=u.label,s=u.language,l=u["default"]),e[n]=t.addRemoteTextTrack({kind:"captions",id:r,default:l,label:o,language:s},!1).track}}},wd=function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var a=i().WebKitDataCue||i().VTTCue;n.forEach((function(e){var n=e.stream;t[n].addCue(new a(e.startTime+r,e.endTime+r,e.text))}))}},Sd=function(e){Object.defineProperties(e.frame,{id:{get:function(){return Tl.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Tl.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Tl.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},kd=function(e){var t=e.inbandTextTracks,n=e.metadataArray,r=e.timestampOffset,a=e.videoDuration;if(n){var o=i().WebKitDataCue||i().VTTCue,s=t.metadataTrack_;if(s&&(n.forEach((function(e){var t=e.cueTime+r;!("number"!==typeof t||i().isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new o(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,Sd(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var l=s.cues,u=[],c=0;c<l.length;c++)l[c]&&u.push(l[c]);var d=u.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),h=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));h.forEach((function(e,t){var n=d[e],r=Number(h[t+1])||a;n.forEach((function(e){e.endTime=r}))}))}}},Cd=function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}
347,Ed=function(e,t,n){var r,i;if(n&&n.cues){r=n.cues.length;while(r--)i=n.cues[r],i.startTime>=e&&i.endTime<=t&&n.removeCue(i)}},Id=function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var r=[],i=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&(i++,i>1&&r.push(t[a]));r.length&&r.forEach((function(t){return e.removeCue(t)}))}},xd=function(e,t,n){if("undefined"===typeof t||null===t||!e.length)return[];var r,i=Math.ceil((t-n+3)*mn.ONE_SECOND_IN_TS);for(r=0;r<e.length;r++)if(e[r].pts>i)break;return e.slice(r)},Ad=function(e,t,n){if(!t.length)return e;if(n)return t.slice();var r=t[0].pts,i=0;for(i;i<e.length;i++)if(e[i].pts>=r)break;return e.slice(0,i).concat(t)},Pd=function(e,t,n,r){var i=Math.ceil((t-r)*mn.ONE_SECOND_IN_TS),a=Math.ceil((n-r)*mn.ONE_SECOND_IN_TS),o=e.slice(),s=e.length;while(s--)if(e[s].pts<=a)break;if(-1===s)return o;var l=s+1;while(l--)if(e[l].pts<=i)break;return l=Math.max(l,0),o.splice(l,s-l+1),o},$d=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),r=Object.keys(t).sort();if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var a=n[i];if(a!==r[i])return!1;if(e[a]!==t[a])return!1}return!0}
vendor: 68,799 bytes, lines 347-350
347,Od=22,Nd=function(e,t,n){t=t||[];for(var r=[],i=0,a=0;a<t.length;a++){var o=t[a];if(e===o.timeline&&(r.push(a),i+=o.duration,i>n))return a}return 0===r.length?0:r[r.length-1]},Ld=1,Dd=500,Rd=function(e){return"number"===typeof e&&isFinite(e)},Fd=1/60,Md=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},Vd=function(e,t,n){var r=t-gc.BACK_BUFFER_LENGTH;e.length&&(r=Math.max(r,e.start(0)));var i=t-n;return Math.min(i,r)},Ud=function(e){var t=e.startOfSegment,n=e.duration,r=e.segment,i=e.part,a=e.playlist,o=a.mediaSequence,s=a.id,l=a.segments,u=void 0===l?[]:l,c=e.mediaIndex,d=e.partIndex,h=e.timeline,p=u.length-1,f="mediaIndex/partIndex increment";e.getMediaInfoForTime?f="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(f="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(f+=" with independent "+e.independent);var m="number"===typeof d,v=e.segment.uri?"segment":"pre-segment",g=m?Hl({preloadSegment:r})-1:0;return v+" ["+(o+c)+"/"+(o+p)+"]"+(m?" part ["+d+"/"+g+"]":"")+" segment start/end ["+r.start+" => "+r.end+"]"+(m?" part start/end ["+i.start+" => "+i.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+f+"] playlist ["+s+"]"},Bd=function(e){return e+"TimingInfo"},jd=function(e){var t=e.segmentTimeline,n=e.currentTimeline,r=e.startOfSegment,i=e.buffered,a=e.overrideCheck;return a||t!==n?t<n?r:i.length?i.end(i.length-1):r:null},Wd=function(e){var t=e.timelineChangeController,n=e.currentTimeline,r=e.segmentTimeline,i=e.loaderType,a=e.audioDisabled;if(n===r)return!1;if("audio"===i){var o=t.lastTimelineChange({type:"main"});return!o||o.to!==r}if("main"===i&&a){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==r}return!1},Hd=function(e){var t=0;return["video","audio"].forEach((function(n){var r=e[n+"TimingInfo"];if(r){var a,o=r.start,s=r.end;"bigint"===typeof o||"bigint"===typeof s?a=i().BigInt(s)-i().BigInt(o):"number"===typeof o&&"number"===typeof s&&(a=s-o),"undefined"!==typeof a&&a>t&&(t=a)}})),"bigint"===typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},qd=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+Il},Gd=function(e,t){if("hls"!==t)return null;var n=Hd({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;var r=e.playlist.targetDuration,i=qd({segmentDuration:n,maxDuration:2*r}),a=qd({segmentDuration:n,maxDuration:r}),o="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+n+" when the reported duration is "+e.duration+" and the target duration is "+r+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return i||a?{severity:i?"warn":"info",message:o}:null},zd=function(e){function t(t,n){var r;if(r=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!==typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return r.bandwidth=t.bandwidth,r.throughput={rate:0,count:0},r.roundTrip=NaN,r.resetStats_(),r.mediaIndex=null,r.partIndex=null,r.hasPlayed_=t.hasPlayed,r.currentTime_=t.currentTime,r.seekable_=t.seekable,r.seeking_=t.seeking,r.duration_=t.duration,r.mediaSource_=t.mediaSource,r.vhs_=t.vhs,r.loaderType_=t.loaderType,r.currentMediaInfo_=void 0,r.startingMediaInfo_=void 0,r.segmentMetadataTrack_=t.segmentMetadataTrack,r.goalBufferLength_=t.goalBufferLength,r.sourceType_=t.sourceType,r.sourceUpdater_=t.sourceUpdater,r.inbandTextTracks_=t.inbandTextTracks,r.state_="INIT",r.timelineChangeController_=t.timelineChangeController,r.shouldSaveSegmentTimingInfo_=!0,r.parse708captions_=t.parse708captions,r.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,r.captionServices_=t.captionServices,r.experimentalExactManifestTimings=t.experimentalExactManifestTimings,r.checkBufferTimeout_=null,r.error_=void 0,r.currentTimeline_=-1,r.pendingSegment_=null,r.xhrOptions_=null,r.pendingSegments_=[],r.audioDisabled_=!1,r.isPendingTimestampOffset_=!1,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=Tl.browser.IE_VERSION>=11,r.appendInitSegment_={audio:!0,video:!0},r.playlistOfLastInitSegment_={audio:null,video:null},r.callQueue_=[],r.loadQueue_=[],r.metadataQueue_={id3:[],caption:[]},r.waitingOnRemove_=!1,r.quotaExceededErrorRetryTimeout_=null,r.activeInitSegmentId_=null,r.initSegments_={},r.cacheEncryptionKeys_=t.cacheEncryptionKeys,r.keyCache_={},r.decrypter_=t.decrypter,r.syncController_=t.syncController,r.syncPoint_={segmentIndex:0,time:0},r.transmuxer_=r.createTransmuxer_(),r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")},r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_),r.mediaSource_.addEventListener("sourceopen",(function(){r.isEndOfStream_()||(r.ended_=!1)})),r.fetchAtBuffer_=!1,r.logger_=El("SegmentLoader["+r.loaderType_+"]"),Object.defineProperty(c(r),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),r.sourceUpdater_.on("ready",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"main"===r.loaderType_&&r.timelineChangeController_.on("pendingtimelinechange",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"audio"===r.loaderType_&&r.timelineChangeController_.on("timelinechange",(function(){r.hasEnoughInfoToLoad_()&&r.processLoadQueue_(),r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),r}h(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Fc.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&i().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,i().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return"undefined"!==typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Fc.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return Tl.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,r=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Wu(e),r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Hu(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var i={resolvedUri:(r||e).resolvedUri};return r&&(i.bytes=r.bytes),i},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var i=null;if(n&&(n.id?i=n.id:n.uri&&(i=n.uri)),this.logger_("playlist update ["+i+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){var s=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=s}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(i().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Fc.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,r){if(void 0===n&&(n=function(){}),void 0===r&&(r=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var i=1,a=function(){i--,0===i&&n()};for(var o in!r&&this.audioDisabled_||(i++,this.sourceUpdater_.removeAudio(e,t,a)),(r||"main"===this.loaderType_)&&(this.gopBuffer_=Pd(this.gopBuffer_,e,t,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Ed(e,t,this.inbandTextTracks_[o]);Ed(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&i().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i().setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&i().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i().setTimeout(this.monitorBufferTick_.bind(this),Dd)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"===typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var r="number"===typeof e&&t.segments[e],i=e+1===t.segments.length,a=!r||!r.parts||n+1===r.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&i&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=Ml(e)||0,n=Vl(e,this.currentTime_()),r=!this.hasPlayed_()&&n>=1,i=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=Nd(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var s=a[this.mediaIndex],l="number"===typeof this.partIndex?this.partIndex:-1;o.startOfSegment=s.end?s.end:t,s.parts&&s.parts[l+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=l+1):o.mediaIndex=this.mediaIndex+1}else{var u=du.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),c=u.segmentIndex,d=u.startTime,h=u.partIndex;o.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),o.mediaIndex=c,o.startOfSegment=d,o.partIndex=h}var p=a[o.mediaIndex],f=p&&"number"===typeof o.partIndex&&p.parts&&p.parts[o.partIndex];if(!p||"number"===typeof o.partIndex&&!f)return null;if("number"!==typeof o.partIndex&&p.parts&&(o.partIndex=0,f=p.parts[0]),!n&&f&&!f.independent)if(0===o.partIndex){var m=a[o.mediaIndex-1],v=m.parts&&m.parts.length&&m.parts[m.parts.length-1];v&&v.independent&&(o.mediaIndex-=1,o.partIndex=m.parts.length-1,o.independent="previous segment")}else p.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");var g=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>=a.length-1&&g&&!this.seeking_()?null:this.generateSegmentInfo_(o)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,r=e.mediaIndex,i=e.startOfSegment,a=e.isSyncRequest,o=e.partIndex,s=e.forceTimestampOffset,l=e.getMediaInfoForTime,u=n.segments[r],c="number"===typeof o&&u.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:r,partIndex:c?o:null,isSyncRequest:a,startOfSegment:i,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h="undefined"!==typeof s?s:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:h});var p=Ml(this.sourceUpdater_.audioBuffered());return"number"===typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=xd(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return jd(e)},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=du.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),a=Dl(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(i<=a)){var o=yd({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=i-a,l=s-o.rebufferingImpact,u=.5;a<=Il&&(u=1),!o.playlist||o.playlist.uri===this.playlist_.uri||l<u||(this.bandwidth=o.playlist.attributes.BANDWIDTH*gc.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Ud(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},$d(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,r){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var i=this.pendingSegment_,a=Bd(t);i[a]=i[a]||{},i[a][n]=r,this.logger_("timinginfo: "+t+" - "+n+" - "+r),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length){var r=this.pendingSegment_;if(r.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),a={};t.forEach((function(e){a[e.stream]=a[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=a[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)})),Object.keys(a).forEach((function(e){var t=a[e],r=t.startTime,o=t.endTime,s=t.captions,l=n.inbandTextTracks_;n.logger_("adding cues from "+r+" -> "+o+" for "+e),Td(l,n.vhs_.tech_,e),Ed(r,o,l[e]),wd({captionArray:s,inbandTextTracks:l,timestampOffset:i})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t))}else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_;if(r.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();Cd(this.inbandTextTracks_,n,this.vhs_.tech_),kd({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))}},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!Wd({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.getPendingSegmentPlaylist=function(){return this.pendingSegment_?this.pendingSegment_.playlist:null},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,r=t.hasVideo,i=t.isMuxed;return!(r&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!i&&!e.audioTimingInfo)&&!Wd({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Bd(t.type)].start;else{var r,i=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&i&&i.hasVideo;a&&(r=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var o=this.chooseNextRequest_();if(o.mediaIndex!==n.mediaIndex||o.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!==typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,r=e.map,i=e.playlist;if(r){var a=Wu(r);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(r,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=i,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,r=e.segmentInfo,a=e.type,o=e.bytes,s=this.sourceUpdater_.audioBuffered(),l=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+Rl(s).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+Rl(l).join(", "));var u=s.length?s.start(0):0,c=s.length?s.end(s.length-1):0,d=l.length?l.start(0):0,h=l.length?l.end(l.length-1):0;if(c-u<=Ld&&h-d<=Ld)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+o.byteLength+", audio buffer: "+Rl(s).join(", ")+", video buffer: "+Rl(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:r,type:a,bytes:o}));var p=this.currentTime_(),f=p-Ld;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+f),this.remove(0,f,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in "+Ld+"s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=i().setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3*Ld)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,r=e.type,i=e.bytes;t&&(t.code!==Od?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(r+" append of "+i.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:r,bytes:i}))},n.appendToSourceBuffer_=function(e){var t=e.segmentInfo,n=e.type,r=e.initSegment,i=e.data,a=e.bytes;if(!a){var o=[i],s=i.byteLength;r&&(o.unshift(r),s+=r.byteLength),a=bd({bytes:s,segments:o})}this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:a},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:a}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var r=this.pendingSegment_.segment,i=e+"TimingInfo";r[i]||(r[i]={}),r[i].transmuxerPrependedSeconds=n.prependedContentDuration||0,r[i].transmuxedPresentationStart=n.start.presentation,r[i].transmuxedDecodeStart=n.start.decode,r[i].transmuxedPresentationEnd=n.end.presentation,r[i].transmuxedDecodeEnd=n.end.decode,r[i].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,r=t.data;if(r&&r.byteLength&&("audio"!==n||!this.audioDisabled_)){var i=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:i,data:r})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"===typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=s({},e,{forceTimestampOffset:!0});s(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),r=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),i=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,o=r||i&&a;this.logger_("Requesting "+Ud(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=td({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:o,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var r=n.message,i=n.level,a=n.stream;t.logger_(Ud(e)+" logged from transmuxer stream "+a+" as a "+i+": "+r)}})},n.trimBackBuffer_=function(e){var t=Vd(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,r={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},i=e.playlist.segments[e.mediaIndex-1];if(i&&i.timeline===t.timeline&&(i.videoTimingInfo?r.baseStartTime=i.videoTimingInfo.transmuxedDecodeEnd:i.audioTimingInfo&&(r.baseStartTime=i.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);r.key=this.segmentKey(t.key),r.key.iv=a}return t.map&&(r.map=this.initSegmentForMap(t.map)),r},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Fd?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+Fd):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Vc.ABORTED)return;return this.pause(),e.code===Vc.TIMEOUT?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),r.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=Ad(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"===typeof e.start&&"number"===typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,r=e.mediaIndex,i=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,o=e.useVideoTimingInfo,s=e.videoTimingInfo,l=e.audioTimingInfo;if("undefined"!==typeof t)return t;if(!o)return l.start;var u=n.segments[r-1];return 0!==r&&u&&"undefined"!==typeof u.start&&u.end===i+a?s.start:i},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,r=t.hasVideo,i=t.isMuxed,a="main"===this.loaderType_&&r,o=!this.audioDisabled_&&n&&!i;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!==typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,o&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=Md(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"===typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,r=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"===typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"===typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:r.start:r.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo,r=n&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;r&&(e.timingInfo.end="number"===typeof r.end?r.end:r.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Gd(e,this.sourceType_);if(t&&("warn"===t.severity?Tl.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Ud(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,r=e.part,i=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=r&&r.end&&this.currentTime_()-r.end>3*e.playlist.partTargetDuration;if(i||a)return this.logger_("bad "+(i?"segment":"part")+" "+Ud(e)),void this.resetEverything();var o=null!==this.mediaIndex;o&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Ud(e))},n.recordThroughput_=function(e){if(e.duration<Fd)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+Fd);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,r=t.end;if(Rd(n)&&Rd(r)){Ed(n,r,this.segmentMetadataTrack_);var a=i().WebKitDataCue||i().VTTCue,o={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:r},s=JSON.stringify(o),l=new a(n,r,s);l.value=o,this.segmentMetadataTrack_.addCue(l)}}},t}(Tl.EventTarget);function Yd(){}var Kd,Xd=function(e){return"string"!==typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},Jd=["video","audio"],Zd=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},Qd=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("mediaSource"===r.type)return null;if(r.type===e)return n}return null},eh=function e(t,n){if(0!==n.queue.length){var r=0,i=n.queue[r];if("mediaSource"!==i.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!Zd(t,n)){if(i.type!==t){if(r=Qd(t,n.queue),null===r)return;i=n.queue[r]}return n.queue.splice(r,1),n.queuePending[t]=i,i.action(t,n),i.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),i.action(n),i.doneFn&&i.doneFn(),e("audio",n),e("video",n))}},th=function(e,t){var n=t[e+"Buffer"],r=Xd(e);n&&(n.removeEventListener("updateend",t["on"+r+"UpdateEnd_"]),n.removeEventListener("error",t["on"+r+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},nh=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},rh={appendBuffer:function(e,t,n){return function(r,i){var a=i[r+"Buffer"];if(nh(i.mediaSource,a)){i.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+r+"Buffer");try{a.appendBuffer(e)}catch(o){i.logger_("Error with code "+o.code+" "+(o.code===Od?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+r+"Buffer"),i.queuePending[r]=null,n(o)}}}},remove:function(e,t){return function(n,r){var i=r[n+"Buffer"];if(nh(r.mediaSource,i)){r.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{i.remove(e,t)}catch(a){r.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},timestampOffset:function(e){return function(t,n){var r=n[t+"Buffer"];nh(n.mediaSource,r)&&(n.logger_("Setting "+t+"timestampOffset to "+e),r.timestampOffset=e)}},callback:function(e){return function(t,n){e()}},endOfStream:function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(n){Tl.log.warn("Failed to call media source endOfStream",n)}}}},duration:function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(n){Tl.log.warn("Failed to set media source duration",n)}}},abort:function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(nh(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(r){Tl.log.warn("Failed to abort on "+e+"Buffer",r)}}}}},addSourceBuffer:function(e,t){return function(n){var r=Xd(e),i=K(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(i);a.addEventListener("updateend",n["on"+r+"UpdateEnd_"]),a.addEventListener("error",n["on"+r+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},removeSourceBuffer:function(e){return function(t){var n=t[e+"Buffer"];if(th(e,t),nh(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(r){Tl.log.warn("Failed to removeSourceBuffer "+e+"Buffer",r)}}}},changeType:function(e){return function(t,n){var r=n[t+"Buffer"],i=K(e);if(nh(n.mediaSource,r)&&n.codecs[t]!==e){n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e);try{r.changeType(i),n.codecs[t]=e}catch(a){Tl.log.warn("Failed to changeType on "+t+"Buffer",a)}}}}},ih=function(e){var t=e.type,n=e.sourceUpdater,r=e.action,i=e.doneFn,a=e.name;n.queue.push({type:t,action:r,doneFn:i,name:a}),eh(t,n)},ah=function(e,t){return function(n){if(t.queuePending[e]){var r=t.queuePending[e].doneFn;t.queuePending[e]=null,r&&r(t[e+"Error_"])}eh(e,t)}},oh=function(e){function t(t){var n;return n=e.call(this)||this,n.mediaSource=t,n.sourceopenListener_=function(){return eh("mediaSource",c(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=El("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=ah("video",c(n)),n.onAudioUpdateEnd_=ah("audio",c(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}h(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){ih({type:"mediaSource",sourceUpdater:this,action:rh.addSourceBuffer(e,t),name:"addSourceBuffer"})},n.abort=function(e){ih({type:e,sourceUpdater:this,action:rh.abort(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?ih({type:"mediaSource",sourceUpdater:this,action:rh.removeSourceBuffer(e),name:"removeSourceBuffer"}):Tl.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Tl.browser.IE_VERSION&&!Tl.browser.IS_FIREFOX&&i().MediaSource&&i().MediaSource.prototype&&"function"===typeof i().MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return i().SourceBuffer&&i().SourceBuffer.prototype&&"function"===typeof i().SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?ih({type:e,sourceUpdater:this,action:rh.changeType(t),name:"changeType"}):Tl.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!==typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var r=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,r);t.canChangeType()&&t.changeType(n,r)}))},n.appendBuffer=function(e,t){var n=this,r=e.segmentInfo,i=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===i&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");var o=t;if(ih({type:i,sourceUpdater:this,action:rh.appendBuffer(a,r||{mediaIndex:-1},o),doneFn:t,name:"appendBuffer"}),"video"===i){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return nh(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Tl.createTimeRange()},n.videoBuffered=function(){return nh(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Tl.createTimeRange()},n.buffered=function(){var e=nh(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=nh(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():Nl(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Yd),ih({type:"mediaSource",sourceUpdater:this,action:rh.duration(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Yd),"string"!==typeof e&&(e=void 0),ih({type:"mediaSource",sourceUpdater:this,action:rh.endOfStream(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Yd),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?ih({type:"audio",sourceUpdater:this,action:rh.remove(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Yd),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?ih({type:"video",sourceUpdater:this,action:rh.remove(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!Zd("audio",this)&&!Zd("video",this))},n.audioTimestampOffset=function(e){return"undefined"!==typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(ih({type:"audio",sourceUpdater:this,action:rh.timestampOffset(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return"undefined"!==typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(ih({type:"video",sourceUpdater:this,action:rh.timestampOffset(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&ih({type:"audio",sourceUpdater:this,action:rh.callback(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&ih({type:"video",sourceUpdater:this,action:rh.callback(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),Jd.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return th(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(Tl.EventTarget),sh=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},lh=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),uh=function(e){function t(){return e.call(this,"Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")||this}return h(t,e),t}(yn(Error)),ch=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,r.mediaSource_=null,r.subtitlesTrack_=null,r.loaderType_="subtitle",r.featuresNativeTextTracks_=t.featuresNativeTextTracks,r.loadVttJs=t.loadVttJs,r.shouldSaveSegmentTimingInfo_=!1,r}h(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Tl.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Tl.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Wu(e),r=this.initSegments_[n];if(t&&!r&&e.bytes){var i=lh.byteLength+e.bytes.byteLength,a=new Uint8Array(i);a.set(e.bytes),a.set(lh,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return"undefined"===typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){Ed(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){while(e&&e.segment.empty){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var r=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Vc.TIMEOUT&&this.handleTimeout_(),e.code===Vc.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var a=this.pendingSegment_;this.saveBandwidthRelatedStats_(a.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");var o=a.segment;if(o.map&&(o.map.bytes=t.map.bytes),a.bytes=t.bytes,"function"!==typeof i().WebVTT&&"function"===typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then((function(){return r.segmentRequestFinished_(e,t,n)}),(function(){return r.stopForError({message:"Error loading vtt.js"})}));o.requested=!0;try{this.parseVTTCues_(a)}catch(s){return void this.stopForError({message:s.message})}if(this.updateTimeMapping_(a,this.syncController_.timelines[a.timeline],this.playlist_),a.cues.length?a.timingInfo={start:a.cues[0].startTime,end:a.cues[a.cues.length-1].endTime}:a.timingInfo={start:a.startOfSegment,end:a.startOfSegment+a.duration},a.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");a.byteLength=a.bytes.byteLength,this.mediaSecondsLoaded+=o.duration,a.cues.forEach((function(e){r.subtitlesTrack_.addCue(r.featuresNativeTextTracks_?new(i().VTTCue)(e.startTime,e.endTime,e.text):e)})),Id(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;if("function"!==typeof i().WebVTT)throw new uh;"function"===typeof i().TextDecoder?t=new(i().TextDecoder)("utf8"):(t=i().WebVTT.StringDecoder(),n=!0);var r=new(i().WebVTT.Parser)(i(),i().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){e.timestampmap=t},r.onparsingerror=function(e){Tl.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var a=e.segment.map.bytes;n&&(a=sh(a)),r.parse(a)}var o=e.bytes;n&&(o=sh(o)),r.parse(o),r.flush()},n.updateTimeMapping_=function(e,t,n){var r=e.segment;if(t)if(e.cues.length){var i=e.timestampmap,a=i.MPEGTS/mn.ONE_SECOND_IN_TS-i.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-r.duration)}}}else r.empty=!0},t}(zd),dh=function(e,t){for(var n=e.cues,r=0;r<n.length;r++){var i=n[r];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},hh=function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var r,a=n,o=0;o<e.segments.length;o++){var s=e.segments[o];if(r||(r=dh(t,a+s.duration/2)),r){if("cueIn"in s){r.endTime=a,r.adEndTime=a,a+=s.duration,r=null;continue}if(a<r.endTime){a+=s.duration;continue}r.endTime+=s.duration}else if("cueOut"in s&&(r=new(i().VTTCue)(a,a+s.duration,s.cueOut),r.adStartTime=a,r.adEndTime=a+parseFloat(s.cueOut),t.addCue(r)),"cueOutCont"in s){var l=s.cueOutCont.split("/").map(parseFloat),u=l[0],c=l[1];r=new(i().VTTCue)(a,a+s.duration,""),r.adStartTime=a-u,r.adEndTime=r.adStartTime+c,t.addCue(r)}a+=s.duration}},ph=86400,fh=[{name:"VOD",run:function(e,t,n,r,i){if(n!==1/0){var a={time:0,segmentIndex:0,partIndex:null};return a}return null}},{name:"ProgramDateTime",run:function(e,t,n,r,i){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,o=null,s=jl(t);i=i||0;for(var l=0;l<s.length;l++){var u=t.endList||0===i?l:s.length-(l+1),c=s[u],d=c.segment,h=e.timelineToDatetimeMappings[d.timeline];if(h&&d.dateTimeObject){var p=d.dateTimeObject.getTime()/1e3,f=p+h;if(d.parts&&"number"===typeof c.partIndex)for(var m=0;m<c.partIndex;m++)f+=d.parts[m].duration;var v=Math.abs(i-f);if(null!==o&&(0===v||o<v))break;o=v,a={time:f,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,r,i){var a=null,o=null;i=i||0;for(var s=jl(t),l=0;l<s.length;l++){var u=t.endList||0===i?l:s.length-(l+1),c=s[u],d=c.segment,h=c.part&&c.part.start||d&&d.start;if(d.timeline===r&&"undefined"!==typeof h){var p=Math.abs(i-h);if(null!==o&&o<p)break;(!a||null===o||o>=p)&&(o=p,a={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,r,i){var a=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var l=t.discontinuityStarts[s],u=t.discontinuitySequence+s+1,c=e.discontinuities[u];if(c){var d=Math.abs(i-c.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:c.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,r,i){if(t.syncInfo){var a={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null};return a}return null}}],mh=function(e){function t(t){var n;return n=e.call(this)||this,n.timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=El("SyncController"),n}h(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,r){var i=this.runStrategies_(e,t,n,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Xl({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:r.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,r){for(var i=[],a=0;a<fh.length;a++){var o=fh[a],s=o.run(this,e,t,n,r);s&&(s.strategy=o.name,i.push({strategy:o.name,syncPoint:s}))}return i},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<r&&(r=o,n=e[a].syncPoint,i=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+i+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"===typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>ph)Tl.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var r=n-1;r>=0;r--){var i=e.segments[r];if(i&&"undefined"!==typeof i.start){t.syncInfo={mediaSequence:e.mediaSequence+r,time:i.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,r=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),i=t.segment;r&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:i.start}));var a=i.dateTimeObject;i.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[i.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return"undefined"===typeof this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var r,i,a=e.segment,o=e.part,s=this.timelines[e.timeline];if("number"===typeof e.timestampOffset)s={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=s,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+s.time+"] [mapping: "+s.mapping+"]")),r=e.startOfSegment,i=t.end+s.mapping;else{if(!s)return!1;r=t.start+s.mapping,i=t.end+s.mapping}return o&&(o.start=r,o.end=i),(!a.start||r<a.start)&&(a.start=r),a.end=i,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var r=0;r<t.discontinuityStarts.length;r++){var i=t.discontinuityStarts[r],a=t.discontinuitySequence+r+1,o=i-e.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var l=void 0;l=o<0?n.start-Xl({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:i}):n.end+Xl({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:i}),this.discontinuities[a]={time:l,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Tl.EventTarget),vh=function(e){function t(){var t;return t=e.call(this)||this,t.pendingTimelineChanges_={},t.lastTimelineChanges_={},t}h(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"===typeof n&&"number"===typeof r&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"===typeof n&&"number"===typeof r&&(this.lastTimelineChanges_[t]={type:t,from:n,to:r},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Tl.EventTarget),gh=wc(Sc((function(){var e="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function t(e,t,n){return n={path:t,exports:{},require:function(e,t){return r(e,void 0===t||null===t?n.path:t)}},e(n,n.exports),n.exports}function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var i=t((function(e){function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}e.exports=n,e.exports["default"]=e.exports,e.exports.__esModule=!0})),a=t((function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports["default"]=e.exports,e.exports.__esModule=!0,t(n,r)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),o=t((function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}e.exports=t,e.exports["default"]=e.exports,e.exports.__esModule=!0})),s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,i)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();
348/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */
349function l(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}
350/*! @name aes-decrypter @version 3.1.3 @license Apache-2.0 */var u,c=function(){var e,t,n,r,i,a,o,s,l,u=[[[],[],[],[],[]],[[],[],[],[],[]]],c=u[0],d=u[1],h=c[4],p=d[4],f=[],m=[];for(e=0;e<256;e++)m[(f[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!h[t];t^=r||1,n=m[n]||1)for(o=n^n<<1^n<<2^n<<3^n<<4,o=o>>8^255&o^99,h[t]=o,p[o]=t,a=f[i=f[r=f[t]]],l=16843009*a^65537*i^257*r^16843008*t,s=257*f[o]^16843008*o,e=0;e<4;e++)c[e][t]=s=s<<24^s>>>8,d[e][o]=l=l<<24^l>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),d[e]=d[e].slice(0);return u},d=null,h=function(){function e(e){var t,n,r;d||(d=c()),this._tables=[[d[0][0].slice(),d[0][1].slice(),d[0][2].slice(),d[0][3].slice(),d[0][4].slice()],[d[1][0].slice(),d[1][1].slice(),d[1][2].slice(),d[1][3].slice(),d[1][4].slice()]];var i=this._tables[0][4],a=this._tables[1],o=e.length,s=1;if(4!==o&&6!==o&&8!==o)throw new Error("Invalid aes key size");var l=e.slice(0),u=[];for(this._key=[l,u],t=o;t<4*o+28;t++)r=l[t-1],(t%o===0||8===o&&t%o===4)&&(r=i[r>>>24]<<24^i[r>>16&255]<<16^i[r>>8&255]<<8^i[255&r],t%o===0&&(r=r<<8^r>>>24^s<<24,s=s<<1^283*(s>>7))),l[t]=l[t-o]^r;for(n=0;t;n++,t--)r=l[3&n?t:t-4],u[n]=t<=4||n<4?r:a[0][i[r>>>24]]^a[1][i[r>>16&255]]^a[2][i[r>>8&255]]^a[3][i[255&r]]}var t=e.prototype;return t.decrypt=function(e,t,n,r,i,a){var o,s,l,u,c=this._key[1],d=e^c[0],h=r^c[1],p=n^c[2],f=t^c[3],m=c.length/4-2,v=4,g=this._tables[1],y=g[0],_=g[1],b=g[2],T=g[3],w=g[4];for(u=0;u<m;u++)o=y[d>>>24]^_[h>>16&255]^b[p>>8&255]^T[255&f]^c[v],s=y[h>>>24]^_[p>>16&255]^b[f>>8&255]^T[255&d]^c[v+1],l=y[p>>>24]^_[f>>16&255]^b[d>>8&255]^T[255&h]^c[v+2],f=y[f>>>24]^_[d>>16&255]^b[h>>8&255]^T[255&p]^c[v+3],v+=4,d=o,h=s,p=l;for(u=0;u<4;u++)i[(3&-u)+a]=w[d>>>24]<<24^w[h>>16&255]<<16^w[p>>8&255]<<8^w[255&f]^c[v++],o=d,d=h,h=p,p=f,f=o},e}(),p=function(e){function t(){var t;return t=e.call(this,s)||this,t.jobs=[],t.delay=1,t.timeout_=null,t}o(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),f=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},m=function(e,t,n){var r,i,a,o,s,l,u,c,d,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new h(Array.prototype.slice.call(t)),v=new Uint8Array(e.byteLength),g=new Int32Array(v.buffer);for(r=n[0],i=n[1],a=n[2],o=n[3],d=0;d<p.length;d+=4)s=f(p[d]),l=f(p[d+1]),u=f(p[d+2]),c=f(p[d+3]),m.decrypt(s,l,u,c,g,d),g[d]=f(g[d]^r),g[d+1]=f(g[d+1]^i),g[d+2]=f(g[d+2]^a),g[d+3]=f(g[d+3]^o),r=s,i=l,a=u,o=c;return v},v=function(){function e(t,n,r,i){var a=e.STEP,o=new Int32Array(t.buffer),s=new Uint8Array(t.byteLength),u=0;for(this.asyncStream_=new p,this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,r,s)),u=a;u<o.length;u+=a)r=new Uint32Array([f(o[u-4]),f(o[u-3]),f(o[u-2]),f(o[u-1])]),this.asyncStream_.push(this.decryptChunk_(o.subarray(u,u+a),n,r,s));this.asyncStream_.push((function(){i(null,l(s))}))}var t=e.prototype;return t.decryptChunk_=function(e,t,n,r){return function(){var i=m(e,t,n);r.set(i,e.byteOffset)}},i(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();u="undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};var g=u,y=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},_=g.BigInt||Number;_("0x1"),_("0x100"),_("0x10000"),_("0x1000000"),_("0x100000000"),_("0x10000000000"),_("0x1000000000000"),_("0x100000000000000"),_("0x10000000000000000");var b=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];y(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),r=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),i=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new v(n,r,i,(function(e,n){self.postMessage(b({source:t.source,decrypted:n}),[n.buffer])}))}}))),yh=Tc(gh),_h=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},bh=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},Th=function(e,t){t.activePlaylistLoader=e,e.load()},wh=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.getActiveGroup(),l=a.activePlaylistLoader,u=a.lastGroup_;s&&u&&s.id===u.id||(a.lastGroup_=s,a.lastTrack_=o,bh(r,a),s&&!s.isMasterPlaylist&&(s.playlistLoader?(r.resyncLoader(),Th(s.playlistLoader,a)):l&&i.resetEverything()))}},Sh=function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];r.lastGroup_=null,n.abort(),n.pause()}},kh=function(e,t){return function(){var n=t.masterPlaylistLoader,r=t.segmentLoaders,i=r[e],a=r.main,o=t.mediaTypes[e],s=o.activeTrack(),l=o.getActiveGroup(),u=o.activePlaylistLoader,c=o.lastTrack_;if((!c||!s||c.id!==s.id)&&(o.lastGroup_=l,o.lastTrack_=s,bh(i,o),l)){if(l.isMasterPlaylist){if(!s||!c||s.id===c.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return o.logger_("track change. Switching master audio from "+c.id+" to "+s.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();i.setAudio(!0),a.setAudio(!1)}u!==l.playlistLoader?(i.track&&i.track(s),i.resetEverything(),Th(l.playlistLoader,o)):Th(l.playlistLoader,o)}}},Ch={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e],i=t.blacklistCurrentPlaylist;bh(n,r);var a=r.activeTrack(),o=r.activeGroup(),s=(o.filter((function(e){return e["default"]}))[0]||o[0]).id,l=r.tracks[s];if(a!==l){for(var u in Tl.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),r.tracks)r.tracks[u].enabled=r.tracks[u]===l;r.onTrackChanged()}else i({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];Tl.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),bh(n,r);var i=r.activeTrack();i&&(i.mode="disabled"),r.onTrackChanged()}}},Eh={AUDIO:function(e,t,n){if(t){var r=n.tech,i=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,i),(!r.paused()||e.endList&&"none"!==r.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),i),r.paused()||a.load()})),t.on("error",Ch[e](e,n))}},SUBTITLES:function(e,t,n){var r=n.tech,i=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,i),a.track(o.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),i),r.paused()||a.load()})),t.on("error",Ch[e](e,n))}},Ih={AUDIO:function(e,t){var n=t.vhs,r=t.sourceType,i=t.segmentLoaders[e],a=t.requestOptions,o=t.master.mediaGroups,s=t.mediaTypes[e],l=s.groups,u=s.tracks,c=s.logger_,d=t.masterPlaylistLoader,h=cu(d.master);for(var p in o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},h&&(o[e].main["default"].playlists=d.master.playlists)),o[e])for(var f in l[p]||(l[p]=[]),o[e][p]){var m=o[e][p][f],v=void 0;if(h?(c("AUDIO group '"+p+"' label '"+f+"' is a master playlist"),m.isMasterPlaylist=!0,v=null):v="vhs-json"===r&&m.playlists?new Ou(m.playlists[0],n,a):m.resolvedUri?new Ou(m.resolvedUri,n,a):m.playlists&&"dash"===r?new vc(m.playlists[0],n,a,d):null,m=Tl.mergeOptions({id:f,playlistLoader:v},m),Eh[e](e,m.playlistLoader,t),l[p].push(m),"undefined"===typeof u[f]){var g=new Tl.AudioTrack({id:f,kind:_h(m),enabled:!1,language:m.language,default:m["default"],label:f});u[f]=g}}i.on("error",Ch[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,r=t.vhs,i=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions,s=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=t.masterPlaylistLoader;for(var h in s[e])for(var p in u[h]||(u[h]=[]),s[e][h])if(!s[e][h][p
350].forced){var f=s[e][h][p],m=void 0;if("hls"===i)m=new Ou(f.resolvedUri,r,o);else if("dash"===i){var v=f.playlists.filter((function(e){return e.excludeUntil!==1/0}));if(!v.length)return;m=new vc(f.playlists[0],r,o,d)}else"vhs-json"===i&&(m=new Ou(f.playlists?f.playlists[0]:f.resolvedUri,r,o));if(f=Tl.mergeOptions({id:p,playlistLoader:m},f),Eh[e](e,f.playlistLoader,t),u[h].push(f),"undefined"===typeof c[p]){var g=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f["default"]&&f.autoselect,language:f.language,label:p},!1).track;c[p]=g}}a.on("error",Ch[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,r=t.master.mediaGroups,i=t.mediaTypes[e],a=i.groups,o=i.tracks;for(var s in r[e])for(var l in a[s]||(a[s]=[]),r[e][s]){var u=r[e][s][l];if(/^(?:CC|SERVICE)/.test(u.instreamId)){var c=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:u.language,instreamId:u.instreamId,default:u["default"]&&u.autoselect};if(c[d.instreamId]&&(d=Tl.mergeOptions(d,c[d.instreamId])),void 0===d["default"]&&delete d["default"],a[s].push(Tl.mergeOptions({id:l},u)),"undefined"===typeof o[l]){var h=n.addRemoteTextTrack({id:d.instreamId,
vendor: 54,459 bytes, line 350
350kind:"captions",default:d["default"],language:d.language,label:d.label},!1).track;o[l]=h}}}}},xh=function e(t,n){for(var r=0;r<t.length;r++){if(lu(n,t[r]))return!0;if(t[r].playlists&&e(t[r].playlists,n))return!0}return!1},Ah=function(e,t){return function(n){var r=t.masterPlaylistLoader,i=t.mediaTypes[e].groups,a=r.media();if(!a)return null;var o=null;a.attributes[e]&&(o=i[a.attributes[e]]);var s=Object.keys(i);if(!o)if("AUDIO"===e&&s.length>1&&cu(t.master))for(var l=0;l<s.length;l++){var u=i[s[l]];if(xh(u,a)){o=u;break}}else i.main?o=i.main:1===s.length&&(o=i[s[0]]);return"undefined"===typeof n?o:null!==n&&o&&o.filter((function(e){return e.id===n.id}))[0]||null}},Ph={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if(n[r].enabled)return n[r];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if("showing"===n[r].mode||"hidden"===n[r].mode)return n[r];return null}}},$h=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}},Oh=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Ih[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,r=e.tech,i=e.vhs,a=e.segmentLoaders,o=a["AUDIO"],s=a.main;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=Ah(n,e),t[n].activeTrack=Ph[n](n,e),t[n].onGroupChanged=wh(n,e),t[n].onGroupChanging=Sh(n,e),t[n].onTrackChanged=kh(n,e),t[n].getActiveGroup=$h(n,e)}));var l=t.AUDIO.activeGroup();if(l){var u=(l.filter((function(e){return e["default"]}))[0]||l[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged();var c=t.AUDIO.getActiveGroup();c.playlistLoader?(s.setAudio(!1),o.setAudio(!0)):s.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanging()}))}));var d=function(){t.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"vhs-audio-change"}),r.trigger({type:"usage",name:"hls-audio-change"})};for(var h in r.audioTracks().addEventListener("change",d),r.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",(function(){r.audioTracks().removeEventListener("change",d),r.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),r.clearTracks("audio"),t.AUDIO.tracks)r.audioTracks().addTrack(t.AUDIO.tracks[h])},Nh=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:Yd,activeTrack:Yd,getActiveGroup:Yd,onGroupChanged:Yd,onTrackChanged:Yd,lastTrack_:null,logger_:El("MediaGroups["+t+"]")}})),e},Lh=120,Dh=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Rh=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Fh=function(e){var t=e.currentPlaylist,n=e.buffered,r=e.currentTime,i=e.nextPlaylist,a=e.bufferLowWaterLine,o=e.bufferHighWaterLine,s=e.duration,l=e.experimentalBufferBasedABR,u=e.log;if(!i)return Tl.log.warn("We received no playlist to switch to. Please check your stream."),!1;var c="allowing switch "+(t&&t.id||"null")+" -> "+i.id;if(!t)return u(c+" as current playlist is not set"),!0;if(i.id===t.id)return!1;var d=Boolean(Pl(n,r).length);if(!t.endList)return d||"number"!==typeof t.partTargetDuration?(u(c+" as current playlist is live"),!0):(u("not "+c+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=Vl(n,r),p=l?gc.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:gc.MAX_BUFFER_LOW_WATER_LINE;if(s<p)return u(c+" as duration < max low water line ("+s+" < "+p+")"),!0;var f=i.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(f<m&&(!l||h<o)){var v=c+" as next bandwidth < current bandwidth ("+f+" < "+m+")";return l&&(v+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+o+")"),u(v),!0}if((!l||f>m)&&h>=a){var g=c+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(g+=" and next bandwidth > current bandwidth ("+f+" > "+m+")"),u(g),!0}return u("not "+c+" as no switching criteria met"),!1},Mh=function(e){function t(t){var n;n=e.call(this)||this;var r=t.src,a=t.handleManifestRedirects,o=t.withCredentials,s=t.tech,l=t.bandwidth,u=t.externVhs,d=t.useCueTags,h=t.blacklistDuration,p=t.enableLowInitialPlaylist,f=t.sourceType,m=t.cacheEncryptionKeys,v=t.experimentalBufferBasedABR,g=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!r)throw new Error("A non-empty playlist URL or JSON manifest string is required");var _=t.maxPlaylistRetries;null!==_&&"undefined"!==typeof _||(_=1/0),Kd=u,n.experimentalBufferBasedABR=Boolean(v),n.experimentalLeastPixelDiffSelector=Boolean(g),n.withCredentials=o,n.tech_=s,n.vhs_=s.vhs,n.sourceType_=f,n.useCueTags_=d,n.blacklistDuration=h,n.maxPlaylistRetries=_,n.enableLowInitialPlaylist=p,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:o,handleManifestRedirects:a,maxPlaylistRetries:_,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=Nh(),n.mediaSource=new(i().MediaSource),n.handleDurationChange_=n.handleDurationChange_.bind(c(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(c(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(c(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=Tl.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new mh(t),n.segmentMetadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new yh,n.sourceUpdater_=new oh(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new vh;var b={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:l,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new vc(r,n.vhs_,n.requestOptions_):new Ou(r,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new zd(Tl.mergeOptions(b,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new zd(Tl.mergeOptions(b,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new ch(Tl.mergeOptions(b,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks,loadVttJs:function(){return new Promise((function(e,t){function n(){s.off("vttjserror",r),e()}function r(){s.off("vttjsloaded",n),t()}s.one("vttjsloaded",n),s.one("vttjserror",r),s.addWebVttScript_()}))}}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),Dh.forEach((function(e){n[e+"_"]=Rh.bind(c(n),e)})),n.logger_=El("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var T="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(T,(function(){var e=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}h(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(e){void 0===e&&(e="abr");var t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)},n.switchMedia_=function(e,t,n){var r=this.media(),i=r&&(r.id||r.uri),a=e.id||e.uri;i&&i!==a&&(this.logger_("switch media "+i+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=i().setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(i().clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,r=e.mediaGroups.AUDIO,i=Object.keys(r);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=r.main||i.length&&r[i[0]];for(var o in a)if(a[o]["default"]){n={label:o};break}}if(!n)return t;var s=[];for(var l in r)if(r[l][n.label]){var u=r[l][n.label];if(u.playlists&&u.playlists.length)s.push.apply(s,u.playlists);else if(u.uri)s.push(u);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&s.push(d)}}return s.length?s:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;su(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),Oh({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){e.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial");var r="vhs-json"===e.sourceType_&&e.initialMedia_.segments;if(!r)return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;su(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.masterPlaylistLoader_.load(),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();if("playlist-unchanged"!==t.lastExcludeReason_){var n=e.stuckAtPlaylistEnd_(t);n&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck"))}})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},r=!0,i=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){var s=n.AUDIO[a][o];s.uri||(r=!1)}r&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Kd.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),i.length&&Object.keys(n.AUDIO[i[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pendingMedia_,n=this.tech_.currentTime(),r=this.bufferLowWaterLine(),i=this.bufferHighWaterLine(),a=this.tech_.buffered();return Fh({buffered:a,currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",(function(){e.checkABR_("bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("timeout",(function(){e.experimentalBufferBasedABR&&e.mainSegmentLoader_.load()})),this.experimentalBufferBasedABR||this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")})),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},Lh))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){Tl.browser.IE_VERSION||Tl.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(Tl.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();"undefined"!==typeof e&&"function"===typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")},n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){var t=this.seekable();if(!t.length)return!1;var n=this.syncController_.getExpiredTime(e,this.duration());if(null===n)return!1;var r=Kd.Playlist.playlistEnd(e,n),i=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-i<=xl;var o=a.end(a.length-1);return o-i<=xl&&r-o<=xl},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var r,i=this.masterPlaylistLoader_.master.playlists,a=i.filter(nu),o=1===a.length&&a[0]===n;if(1===i.length&&t!==1/0)return Tl.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(o);if(o){var s=!1;i.forEach((function(e){if(e!==n){var t=e.excludeUntil;"undefined"!==typeof t&&t!==1/0&&(s=!0,delete e.excludeUntil)}})),s&&(Tl.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}r=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=r,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var u=e.internal?this.logger_:Tl.log.warn,c=e.message?" "+e.message:"";u((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+c+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"===typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",o||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,r=[],i="all"===e;(i||"main"===e)&&r.push(this.masterPlaylistLoader_);var a=[];(i||"audio"===e)&&a.push("AUDIO"),(i||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&r.push(t)})),["main","audio","subtitle"].forEach((function(t){var i=n[t+"SegmentLoader_"];!i||e!==t&&"all"!==e||r.push(i)})),r.forEach((function(e){return t.forEach((function(t){"function"===typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Pl(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Kd.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var r=this.masterPlaylistLoader_.master,i=Kd.Playlist.seekable(t,n,Kd.Playlist.liveEdgeDelay(r,t));if(0!==i.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n)return;if(e=Kd.Playlist.seekable(t,n,Kd.Playlist.liveEdgeDelay(r,t)),0===e.length)return}var a,o;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>i.end(0)||i.start(0)>e.end(0)?this.seekable_=i:this.seekable_=Tl.createTimeRanges([[e.start(0)>i.start(0)?e.start(0):i.start(0),e.end(0)<i.end(0)?e.end(0):i.end(0)]]):this.seekable_=i,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o||(this.logger_("seekable updated ["+Ll(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),r=Kd.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(r=Math.max(r,n.end(n.length-1))),this.mediaSource.duration!==r&&this.sourceUpdater_.setDuration(r)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;for(var r in n)n[r].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;var r=ld(this.master(),n),i={},a=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=r.video||t.main.videoCodec||Q),t.main.isMuxed&&(i.video+=","+(r.audio||t.main.audioCodec||Z)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||a)&&(i.audio=r.audio||t.main.audioCodec||t.audio.audioCodec||Z,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var o,s=function(e,t){return e?X(t):J(t)},l={};if(["video","audio"].forEach((function(e){if(i.hasOwnProperty(e)&&!s(t[e].isFmp4,i[e])){var n=t[e].isFmp4?"browser":"muxer";l[n]=l[n]||[],l[n].push(i[e]),"audio"===e&&(o=n)}})),a&&o&&n.attributes.AUDIO){var u=n.attributes.AUDIO;this.master().playlists.forEach((function(e){var t=e.attributes&&e.attributes.AUDIO;t===u&&e!==n&&(e.excludeUntil=1/0)})),this.logger_("excluding audio group "+u+" as "+o+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(l).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var c=[];if(["video","audio"].forEach((function(t){var n=(q(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(q(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&c.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')})),c.length)return void this.blacklistCurrentPlaylist({playlist:n,message:"Codec switching not supported: "+c.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var d=Object.keys(l).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+l[t].join(",")+'"',e}),"")+".";this.blacklistCurrentPlaylist({playlist:n,internal:!0,message:d,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:n,message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(r){var i=t[r];if(-1===n.indexOf(i.id)){n.push(i.id);var a=ld(e.master,i),o=[];!a.audio||J(a.audio)||X(a.audio)||o.push("audio codec "+a.audio),!a.video||J(a.video)||X(a.video)||o.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&o.push("text codec "+a.text),o.length&&(i.excludeUntil=1/0,e.logger_("excluding "+i.id+" for unsupported: "+o.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],r=this.master().playlists,i=od(q(e)),a=sd(i),o=i.video&&q(i.video)[0]||null,s=i.audio&&q(i.audio)[0]||null;Object.keys(r).forEach((function(e){var i=r[e];if(-1===n.indexOf(i.id)&&i.excludeUntil!==1/0){n.push(i.id);var l=[],u=ld(t.masterPlaylistLoader_.master,i),c=sd(u);if(u.audio||u.video){if(c!==a&&l.push('codec count "'+c+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=u.video&&q(u.video)[0]||null,h=u.audio&&q(u.audio)[0]||null;d&&o&&d.type.toLowerCase()!==o.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+o.type+'"'),h&&s&&h.type.toLowerCase()!==s.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+s.type+'"')}l.length&&(i.excludeUntil=1/0,t.logger_("blacklisting "+i.id+": "+l.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),hh(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=gc.GOAL_BUFFER_LENGTH,n=gc.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,gc.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,r)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=gc.BUFFER_LOW_WATER_LINE,n=gc.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,gc.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(t,gc.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?i:r)},n.bufferHighWaterLine=function(){return gc.BUFFER_HIGH_WATER_LINE},t}(Tl.EventTarget),Vh=function(e,t,n){return function(r){var i=e.master.playlists[t],a=tu(i),o=nu(i);return"undefined"===typeof r?o:(r?delete i.disabled:i.disabled=!0,r===o||a||(n(),r?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),r)}},Uh=function(e,t,n){var r=e.masterPlaylistController_,i=e.options_.smoothQualityChange,a=i?"smooth":"fast",o=r[a+"QualityChange_"].bind(r);if(t.attributes){var s=t.attributes.RESOLUTION;this.width=s&&s.width,this.height=s&&s.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}this.codecs=ld(r.master(),t),this.playlist=t,this.id=n,this.enabled=Vh(e.playlists,t.id,o)},Bh=function(e){e.representations=function(){var t=e.masterPlaylistController_.master(),n=cu(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!tu(e)})).map((function(t,n){return new Uh(e,t,t.id)})):[]}},jh=["seeking","seeked","pause","playing","error"],Wh=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=El("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},r=function(){return t.monitorCurrentTime_()},a=function(){return t.techWaiting_()},o=function(){return t.cancelTimer_()},s=this.masterPlaylistController_,l=["main","subtitle","audio"],u={};l.forEach((function(e){u[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},s[e+"SegmentLoader_"].on("appendsdone",u[e].updateend),s[e+"SegmentLoader_"].on("playlistupdate",u[e].reset),t.tech_.on(["seeked","seeking"],u[e].reset)}));var c=function(e){["main","audio"].forEach((function(n){s[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),c("off"))},this.clearSeekingAppendCheck_=function(){return c("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),c("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",a),this.tech_.on(jh,o),this.tech_.on("canplay",r),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",a),t.tech_.off(jh,o),t.tech_.off("canplay",r),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),l.forEach((function(e){s[e+"SegmentLoader_"].off("appendsdone",u[e].updateend),s[e+"SegmentLoader_"].off("playlistupdate",u[e].reset),t.tech_.off(["seeked","seeking"],u[e].reset)})),t.checkCurrentTimeTimeout_&&i().clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&i().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=i().setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],r=n.buffered_(),i=Fl(this[e+"Buffered_"],r);this[e+"Buffered_"]=r,i?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:Rl(r)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+xl>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){var e=this.tech_.seeking();if(!e)return!1;var t,n=this.seekable(),r=this.tech_.currentTime(),i=this.afterSeekableWindow_(n,r,this.media(),this.allowSeeksWithinUnsafeLiveWindow);if(i){var a=n.end(n.length-1);t=a}if(this.beforeSeekableWindow_(n,r)){var o=n.start(0);t=o+(o===n.end(0)?0:xl)}if("undefined"!==typeof t)return this.logger_("Trying to seek outside of seekable at time "+r+" with seekable range "+Ll(n)+". Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0;for(var s=this.masterPlaylistController_.sourceUpdater_,l=this.tech_.buffered(),u=s.audioBuffer?s.audioBuffered():null,c=s.videoBuffer?s.videoBuffered():null,d=this.media(),h=d.partTargetDuration?d.partTargetDuration:2*(d.targetDuration-Il),p=[u,c],f=0;f<p.length;f++)if(p[f]){var m=Vl(p[f],r);if(m<h)return!1}var v=$l(l,r);return 0!==v.length&&(t=v.start(0)+xl,this.logger_("Buffered region starts ("+v.start(0)+")  just beyond seek point ("+r+"). Seeking to "+t+"."),this.tech_.setCurrentTime(t),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Pl(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var r=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,i=this.tech_.buffered(),a=this.videoUnderflow_({audioBuffered:r.audioBuffered(),videoBuffered:r.videoBuffered(),currentTime:t});if(a)return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var o=$l(i,t);if(o.length>0){var s=o.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+o.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,r){if(void 0===r&&(r=!1),!e.length)return!1;var i=e.end(e.length-1)+xl,a=!n.endList;return a&&r&&(i=e.end(e.length-1)+3*n.targetDuration),t>i},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,r=e.currentTime;if(t){var i;if(t.length&&n.length){var a=Pl(t,r-3),o=Pl(t,r),s=Pl(n,r);s.length&&!o.length&&a.length&&(i={start:a.end(0),end:s.end(0)})}else{var l=$l(t,r);l.length||(i=this.gapFromVideoUnderflow_(t,r))}return!!i&&(this.logger_("Encountered a gap in video from "+i.start+" to "+i.end+". Seeking to current time "+r),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),r=$l(t,n);this.cancelTimer_(),0!==r.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Il),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))},t.gapFromVideoUnderflow_=function(e,t){for(var n=Ol(e),r=0;r<n.length;r++){var i=n.start(r),a=n.end(r);if(t-i<4&&t-i>2)return{start:i,end:a}}return null},e}(),Hh={errorInterval:30,getSource:function(e){var t=this.tech({IWillNotUseThisInPlugins:!0}),n=t.currentSource_||this.currentSource();return e(n)}},qh=function e(t,n){var r=0,i=0,a=Tl.mergeOptions(Hh,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var o=function(){i&&t.currentTime(i)},s=function(e){null!==e&&void 0!==e&&(i=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",o),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-r<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"===typeof a.getSource?(r=Date.now(),a.getSource.call(t,s)):void Tl.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},u=function e(){t.off("loadedmetadata",o),t.off("error",l),t.off("dispose",e)},c=function(n){u(),e(t,n)};t.on("error",l),t.on("dispose",u),t.reloadSourceOnError=c},Gh=function(e){qh(this,e)},zh="2.16.3",Yh="6.0.1",Kh="0.22.1",Xh="4.8.0",Jh="3.1.3",Zh={PlaylistLoader:Ou,Playlist:du,utils:Yu,STANDARD_PLAYLIST_SELECTOR:vd,INITIAL_PLAYLIST_SELECTOR:_d,lastBandwidthSelector:vd,movingAverageBandwidthSelector:gd,comparePlaylistBandwidth:pd,comparePlaylistResolution:fd,xhr:Ru()};Object.keys(gc).forEach((function(e){Object.defineProperty(Zh,e,{get:function(){return Tl.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),gc[e]},set:function(t){Tl.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!==typeof t||t<0?Tl.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):gc[e]=t}})}));var Qh="videojs-vhs",ep=function(e,t){for(var n=t.media(),r=-1,i=0;i<e.length;i++)if(e[i].id===n.id){r=i;break}e.selectedIndex_=r,e.trigger({selectedIndex:r,type:"change"})},tp=function(e,t){t.representations().forEach((function(t){e.addQualityLevel(t)})),ep(e,t.playlists)};Zh.canPlaySource=function(){return Tl.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var np=function(e,t,n){if(!e)return e;var r={};t&&t.attributes&&t.attributes.CODECS&&(r=od(q(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(r.audio=n.attributes.CODECS);var i=K(r.video),a=K(r.audio),o={};for(var s in e)o[s]={},a&&(o[s].audioContentType=a),i&&(o[s].videoContentType=i),t.contentProtection&&t.contentProtection[s]&&t.contentProtection[s].pssh&&(o[s].pssh=t.contentProtection[s].pssh),"string"===typeof e[s]&&(o[s].url=e[s]);return Tl.mergeOptions(e,o)},rp=function(e,t){return e.reduce((function(e,n){if(!n.contentProtection)return e;var r=t.reduce((function(e,t){var r=n.contentProtection[t];return r&&r.pssh&&(e[t]={pssh:r.pssh}),e}),{});return Object.keys(r).length&&e.push(r),e}),[])},ip=function(e){var t=e.player,n=e.sourceKeySystems,r=e.audioMedia,i=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=r?i.concat([r]):i,o=rp(a,Object.keys(n)),s=[],l=[];return o.forEach((function(e){l.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),s.push(new Promise((function(n,r){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?r(e):n()}))})))})),Promise.race([Promise.all(s),Promise.race(l)])},ap=function(e){var t=e.player,n=e.sourceKeySystems,r=e.media,i=e.audioMedia,a=np(n,r,i);return!!a&&(t.currentSource().keySystems=a,!(a&&!t.eme)||(Tl.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},op=function(){if(!i().localStorage)return null;var e=i().localStorage.getItem(Qh);if(!e)return null;try{return JSON.parse(e)}catch(t){return null}},sp=function(e){if(!i().localStorage)return!1;var t=op();t=t?Tl.mergeOptions(t,e):e;try{i().localStorage.setItem(Qh,JSON.stringify(t))}catch(n){return!1}return t},lp=function(e){return 0===e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e};Zh.supportsNativeHls=function(){if(!o()||!o().createElement)return!1;var e=o().createElement("video");if(!Tl.getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),Zh.supportsNativeDash=function(){return!!(o()&&o().createElement&&Tl.getTech("Html5").isSupported())&&/maybe|probably/i.test(o().createElement("video").canPlayType("application/dash+xml"))}(),Zh.supportsTypeNatively=function(e){return"hls"===e?Zh.supportsNativeHls:"dash"===e&&Zh.supportsNativeDash},Zh.isSupported=function(){return Tl.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var up=Tl.getComponent("Component"),cp=function(e){function t(t,n,r){var i;if(i=e.call(this,n,Tl.mergeOptions(r.hls,r.vhs))||this,r.hls&&Object.keys(r.hls).length&&Tl.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"===typeof r.initialBandwidth&&(i.options_.bandwidth=r.initialBandwidth),i.logger_=El("VhsHandler"),n.options_&&n.options_.playerId){var a=Tl(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Tl.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),c(i)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return Tl.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),c(i)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return Tl.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),c(i)},configurable:!0}),i.player_=a}if(i.tech_=n,i.source_=t,i.stats={},i.ignoreNextSeekingEvent_=!1,i.setOptions_(),i.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(i.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return i.on(o(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=o().fullscreenElement||o().webkitFullscreenElement||o().mozFullScreenElement||o().msFullscreenElement;t&&t.contains(i.tech_.el())?i.masterPlaylistController_.fastQualityChange_():i.masterPlaylistController_.checkABR_()})),i.on(i.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),i.on(i.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),i.on(i.tech_,"play",i.play),i}h(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!==typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!==typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!==typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=op();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!==typeof this.options_.bandwidth&&(this.options_.bandwidth=gc.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===gc.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(t){"undefined"!==typeof e.source_[t]&&(e.options_[t]=e.source_[t])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){this.setOptions_(),this.options_.src=lp(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Zh,this.options_.sourceType=ne(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&Tl.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new Mh(this.options_);var r=Tl.mergeOptions({liveRangeSafeTimeDelta:xl},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Wh(r),this.masterPlaylistController_.on("error",(function(){var e=Tl.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!==typeof t||t.code?"string"===typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));var a=this.options_.experimentalBufferBasedABR?Zh.movingAverageBandwidthSelector(.55):Zh.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):a.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Zh.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=i().navigator.connection||i().navigator.mozConnection||i().navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){var r=1e3*t.downlink*1e3;e=r>=n&&e>=n?Math.max(e,r):r}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);e=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(t+e));return n},set:function(){Tl.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return Rl(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Rl(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&sp({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){Bh(n)})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=i().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),ip({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()}))["catch"]((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media ke
350ys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=ap({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){if("output-restricted"===t.status){var n=e.masterPlaylistController_.master();if(n&&n.playlists){var r,i=[];if(n.playlists.forEach((function(e){e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,i.push(e))})),i.length)(r=Tl.log).warn.apply(r,['DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.'].concat(i)),e.masterPlaylistController_.fastQualityChange_()}}})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==Tl.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=Tl.players[this.tech_.options_.playerId];
vendor: 7,268 bytes, line 350
350t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){tp(e.qualityLevels_,e)})),this.playlists.on("mediachange",(function(){ep(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":zh,"mux.js":Yh,"mpd-parser":Kh,"m3u8-parser":Xh,"aes-decrypter":Jh}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return oh.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&i().URL.revokeObjectURL&&(i().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return nc({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=2),rc({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:r,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(up),dp={name:"videojs-http-streaming",VERSION:zh,canHandleSource:function(e,t){void 0===t&&(t={});var n=Tl.mergeOptions(Tl.options,t);return dp.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var r=Tl.mergeOptions(Tl.options,n);return t.vhs=new cp(e,t,r),Tl.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return Tl.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ru(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){var n=ne(e);if(!n)return"";var r=dp.getOverrideNative(t),i=Zh.supportsTypeNatively(n),a=!i||r;return a?"maybe":""},getOverrideNative:function(e){void 0===e&&(e={});var t=e,n=t.vhs,r=void 0===n?{}:n,i=t.hls,a=void 0===i?{}:i,o=!(Tl.browser.IS_ANY_SAFARI||Tl.browser.IS_IOS),s=r.overrideNative,l=void 0===s?o:s,u=a.overrideNative,c=void 0!==u&&u;return c||l}},hp=function(){return X("avc1.4d400d,mp4a.40.2")};if(hp()&&Tl.getTech("Html5").registerSourceHandler(dp,0),Tl.VhsHandler=cp,Object.defineProperty(Tl,"HlsHandler",{get:function(){return Tl.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),cp},configurable:!0}),Tl.VhsSourceHandler=dp,Object.defineProperty(Tl,"HlsSourceHandler",{get:function(){return Tl.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),dp},configurable:!0}),Tl.Vhs=Zh,Object.defineProperty(Tl,"Hls",{get:function(){return Tl.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Zh},configurable:!0}),Tl.use||(Tl.registerComponent("Hls",Zh),Tl.registerComponent("Vhs",Zh)),Tl.options.vhs=Tl.options.vhs||{},Tl.options.hls=Tl.options.hls||{},!Tl.getPlugin||!Tl.getPlugin("reloadSourceOnError")){var pp=Tl.registerPlugin||Tl.plugin;pp("reloadSourceOnError",Gh)}var fp=Tl},3407:function(e,t,n){var r=n(8908),i=e.exports={WebVTT:n(3706),VTTCue:n(2230),VTTRegion:n(3710)};r.vttjs=i,r.WebVTT=i.WebVTT;var a=i.VTTCue,o=i.VTTRegion,s=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=a,r.VTTRegion=o},i.restore=function(){r.VTTCue=s,r.VTTRegion=l},r.VTTCue||i.shim()},3706:function(e,t,n){var r=n(9144),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=i(null)}function l(e,t,n,r){var i=r?e.split(r):[e];for(var a in i)if("string"===typeof i[a]){var o=i[a].split(n);if(2===o.length){var s=o[0].trim(),l=o[1].trim();t(s,l)}}}function u(e,t,n){var r=e;function i(){var t=o(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(e,t){var r=new s;l(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),o=a[0];r.integer(e,o),r.percent(e,o)&&r.set("snapToLines",!1),r.alt(e,o,["auto"]),2===a.length&&r.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),r.percent(e,a[0]),2===a.length&&r.alt("positionAlign",a[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"]);break}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(i){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(i){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(i){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=i(),c(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),c(),t.endTime=i(),c(),u(e,t)}a.prototype=i(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var c=r.createElement&&r.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function n(){if(!t)return null;function e(e){return t=t.substr(e.length),e}var n=t.match(/^([^<]*)(<[^>
350]*>?)?/);return e(n[1]?n[1]:n[2])}function r(e){return c.innerHTML=e,e=c.textContent,c.textContent="",e}function i(e,t){return!f[t.localName]||f[t.localName]===e.localName}function a(t,n){var r=d[t];if(!r)return null;var i=e.document.createElement(r),a=p[t];return a&&n&&(i[a]=n.trim()),i}var s,l=e.document.createElement("div"),u=l,m=[];while(null!==(s=n()))if("<"!==s[0])u.appendChild(e.document.createTextNode(r(s)));else{if("/"===s[1]){m.length&&m[m.length-1]===s.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var v,g=o(s.substr(1,s.length-2));if(g){v=e.document.createProcessingInstruction("timestamp",g),u.appendChild(v);continue}var y=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(v=a(y[1],y[3]),!v)continue;if(!i(u,v))continue;if(y[2]){var _=y[2].split(".");_.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var r=t?"background-color":"color",i=h[n];v.style[r]=i}})),v.className=_.join(" ")}m.push(y[1]),u.appendChild(v),u=v}return l}var v=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function g(e){for(var t=0;t<v.length;t++){var n=v[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t,n=[],r="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function a(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var r=n.match(/^.*(\n|\r)/);return r?(e.length=0,r[0]):n}return"ruby"===t.tagName?a(e):t.childNodes?(i(e,t),a(e)):void 0}i(n,e);while(r=a(n))for(var o=0;o<r.length;o++)if(t=r.charCodeAt(o),g(t))return"rtl";return"ltr"}function _(e){if("number"===typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}function b(){}function T(e,t,n){b.call(this),this.cue=t,this.cueDiv=m(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":case"line-left":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":case"line-right":i=t.position-t.size;break}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")}
vendor: 5,130 bytes, line 350
350)}}function w(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function S(e,t,n,r){function i(e,t){for(var i,a=new w(e),o=1,s=0;s<t.length;s++){while(e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r))e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(i=new w(e),o=l),e=new w(a)}return i||a}var a=new w(t),o=t.cue,s=_(o),l=[];if(o.snapToLines){var u;switch(o.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=a.lineHeight,d=c*Math.round(s),h=n[u]+c,p=l[0];Math.abs(d)>h&&(d=d<0?-1:1,d*=Math.ceil(h/c)*c),s<0&&(d+=""===o.vertical?n.height:n.width,l=l.reverse()),a.move(p,d)}else{var f=a.lineHeight/n.height*100;switch(o.lineAlign){case"center":s-=f/2;break;case"end":s-=f;break}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")});break}l=["+y","-x","+x","-y"],a=new w(t)}var m=i(a,l);t.move(m.toCSSCompatValues(n))}function k(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},T.prototype=i(b.prototype),T.prototype.constructor=T,w.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}},w.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},w.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},w.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},w.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},w.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),r=t*n;return r/(this.height*this.width)},w.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},w.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var i={left:e.left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n};return i},k.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!==typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},k.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};var C=.05,E="sans-serif",I="1.5%";k.processCues=function(e,t,n){if(!e||!t||!n)return null;while(n.firstChild)n.removeChild(n.firstChild);var r=e.document.createElement("div");function i(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin=I,n.appendChild(r),i(t)){var a=[],o=w.getSimpleBoxPosition(r),s=Math.round(o.height*C*100)/100,l={font:s+"px "+E};(function(){for(var n,i,s=0;s<t.length;s++)i=t[s],n=new T(e,i,l),r.appendChild(n.div),S(e,n,o,a),i.displayState=n.div,a.push(w.getSimpleBoxPosition(n))})()}else for(var u=0;u<t.length;u++)r.appendChild(t[u].displayState)},k.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},k.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){var e=t.buffer,n=0;while(n<e.length&&"\r"!==e[n]&&"\n"!==e[n])++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){var n=new s;if(l(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new s;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"]);break}}
vendor: 4,425 bytes, line 350
350),/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}function i(e){var n=new s;l(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",o(t));break}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}function c(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,t){switch(e){case"X-TIMESTAMP-MAP":i(t);break}}),/=/):l(e,(function(e,t){switch(e){case"Region":r(t);break}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;d=n();var h=d.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}var p=!1;while(t.buffer){if(!/\r\n|\n/.test(t.buffer))return this;switch(p?p=!1:d=n(),t.state){case"HEADER":/:/.test(d)?c(d):d||(t.state="ID");continue;case"NOTE":d||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){t.state="NOTE";break}if(!d)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(m){t.cue.align="middle"}if(t.state="CUE",-1===d.indexOf("--\x3e")){t.cue.id=d;continue}case"CUE":try{u(d,t.cue,t.regionList)}catch(m){t.reportOrThrowError(m),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var f=-1!==d.indexOf("--\x3e");if(!d||f&&(p=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=d.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":d||(t.state="ID");continue}}}catch(m){t.reportOrThrowError(m),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new a(a.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=k},2230:function(e){var t="auto",n={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){if("string"!==typeof e)return!1;var t=n[e.toLowerCase()];return!!t&&e.toLowerCase()}function a(e){if("string"!==typeof e)return!1;var t=r[e.toLowerCase()];return!!t&&e.toLowerCase()}function o(e,n,r){this.hasBeenReset=!1;var o="",s=!1,l=e,u=n,c=r,d=null,h="",p=!0,f="auto",m="start",v="auto",g="auto",y=100,_="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o},set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!==typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!==typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=i(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!==typeof e&&e!==t)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=a(e);t?(m=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");v=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=a(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invali
350d or illegal string was specified.")}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(e){var t=a(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");_=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},3710:function(e){var t={"":!0,up:!0};function n(e){if("string"!==typeof e)return!1;var n=t[e.toLowerCase()];return!!n&&e.toLowerCase()}function r(e){return"number"===typeof e&&e>=0&&e<=100}function i(){var e=100,t=3,i=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!==typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a}
350,set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=n(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):l=t}}})}e.exports=i},3744:function(e,t){"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n}},6771:function(e,t,n){"use strict";n.d(t,{Jn:function(){return _e},qX:function(){return fe},rh:function(){return me},Xd:function(){return pe},Mq:function(){return Te},ZF:function(){return be},KN:function(){return we}});var r=n(75),i=n(4645),a=n(9711);const o=(e,t)=>t.some((t=>e instanceof t));let s,l;function u(){return s||(s=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function c(){return l||(l=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const d=new WeakMap,h=new WeakMap,p=new WeakMap,f=new WeakMap,m=new WeakMap;function v(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(w(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&d.set(t,e)})).catch((()=>{})),m.set(t,e),t}function g(e){if(h.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));h.set(e,t)}let y={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return h.get(e);if("objectStoreNames"===t)return e.objectStoreNames||p.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return w(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function _(e){y=e(y)}function b(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?c().includes(e)?function(...t){return e.apply(S(this),t),w(d.get(this))}:function(...t){return w(e.apply(S(this),t))}:function(t,...n){const r=e.call(S(this),t,...n);return p.set(r,t.sort?t.sort():[t]),w(r)}}function T(e){return"function"===typeof e?b(e):(e instanceof IDBTransaction&&g(e),o(e,u())?new Proxy(e,y):e)}function w(e){if(e instanceof IDBRequest)return v(e);if(f.has(e))return f.get(e);const t=T(e);return t!==e&&(f.set(e,t),m.set(t,e)),t}const S=e=>m.get(e);function k(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=w(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(w(o.result),e.oldVersion,e.newVersion,w(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}const C=["get","getKey","getAll","getAllKeys","count"],E=["put","add","delete","clear"],I=new Map;function x(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(I.get(t))return I.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=E.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!C.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return I.set(t,a),a}_((e=>({...e,get:(t,n,r)=>x(t,n)||e.get(t,n,r),has:(t,n)=>!!x(t,n)||e.has(t,n)})));
351/**
352 * @license
353 * Copyright 2019 Google LLC
354 *
355 * Licensed under the Apache License, Version 2.0 (the "License");
356 * you may not use this file except in compliance with the License.
357 * You may obtain a copy of the License at
358 *
359 *   http://www.apache.org/licenses/LICENSE-2.0
360 *
361 * Unless required by applicable law or agreed to in writing, software
362 * distributed under the License is distributed on an "AS IS" BASIS,
363 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
364 * See the License for the specific language governing permissions and
365 * limitations under the License.
366 */
367class A{constructor(e){this.container=e}getPlatformInfoString(){const e=this.container.getProviders();return e.map((e=>{if(P(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}function P(e){const t=e.getComponent();return"VERSION"===t?.type}const $="@firebase/app",O="0.16.2",N=new i.Yd("@firebase/app"),L="@firebase/app-compat",D="@firebase/analytics-compat",R="@firebase/analytics",F="@firebase/app-check-compat",M="@firebase/app-check",V="@firebase/auth",U="@firebase/auth-compat",B="@firebase/database",j="@firebase/data-connect",W="@firebase/database-compat",H="@firebase/functions",q="@firebase/functions-compat",G="@firebase/installations",z="@firebase/installations-compat",Y="@firebase/messaging",K="@firebase/messaging-compat",X="@firebase/performance",J="@firebase/performance-compat",Z="@firebase/remote-config",Q="@firebase/remote-config-compat",ee="@firebase/storage",te="@firebase/storage-compat",ne="@firebase/firestore",re="@firebase/ai",ie="@firebase/firestore-compat",ae="firebase",oe="12.19.0",se="[DEFAULT]",le={[$]:"fire-core",[L]:"fire-core-compat",[R]:"fire-analytics",[D]:"fire-analytics-compat",[M]:"fire-app-check",[F]:"fire-app-check-compat",[V]:"fire-auth",[U]:"fire-auth-compat",[B]:"fire-rtdb",[j]:"fire-data-connect",[W]:"fire-rtdb-compat",[H]:"fire-fn",[q]:"fire-fn-compat",[G]:"fire-iid",[z]:"fire-iid-compat",[Y]:"fire-fcm",[K]:"fire-fcm-compat",[X]:"fire-perf",[J]:"fire-perf-compat",[Z]:"fire-rc",[Q]:"fire-rc-compat",[ee]:"fire-gcs",[te]:"fire-gcs-compat",[ne]:"fire-fst",[ie]:"fire-fst-compat",[re]:"fire-vertex","fire-js":"fire-js",[ae]:"fire-js-all"},ue=new Map,ce=new Map,de=new Map;function he(e,t){try{e.container.addComponent(t)}catch(n){N.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function pe(e){const t=e.name;if(de.has(t))return N.debug(`There were multiple attempts to register component ${t}.`),!1;de.set(t,e);for(const n of ue.values())he(n,e);for(const n of ce.values())he(n,e);return!0}function fe(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function me(e){return null!==e&&void 0!==e&&void 0!==e.settings}
368/**
369 * @license
370 * Copyright 2019 Google LLC
371 *
372 * Licensed under the Apache License, Version 2.0 (the "License");
373 * you may not use this file except in compliance with the License.
374 * You may obtain a copy of the License at
375 *
376 *   http://www.apache.org/licenses/LICENSE-2.0
377 *
378 * Unless required by applicable law or agreed to in writing, software
379 * distributed under the License is distributed on an "AS IS" BASIS,
380 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
381 * See the License for the specific language governing permissions and
382 * limitations under the License.
383 */
384const ve={["no-app"]:"No Firebase App '{$appName}' has been created - call initializeApp() first",["bad-app-name"]:"Illegal App name: '{$appName}'",["duplicate-app"]:"Firebase App named '{$appName}' already exists with different {$mismatchedParam}. Existing: '{$oldValue}'. New: '{$newValue}'.",["app-deleted"]:"Firebase App named '{$appName}' already deleted",["server-app-deleted"]:"Firebase Server App has been deleted",["no-options"]:"Need to provide options, when not being deployed to hosting via source.",["invalid-app-argument"]:"firebase.{$appName}() takes either no argument or a Firebase App instance.",["invalid-log-argument"]:"First argument to `onLog` must be null or a function.",["idb-open"]:"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.",["idb-get"]:"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.",["idb-set"]:"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.",["idb-delete"]:"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.",["finalization-registry-not-supported"]:"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.",["invali
384d-server-app-environment"]:"FirebaseServerApp is not for use in browser environments."},ge=new a.LL("app","Firebase",ve);
385/**
386 * @license
387 * Copyright 2019 Google LLC
388 *
389 * Licensed under the Apache License, Version 2.0 (the "License");
390 * you may not use this file except in compliance with the License.
391 * You may obtain a copy of the License at
392 *
393 *   http://www.apache.org/licenses/LICENSE-2.0
394 *
395 * Unless required by applicable law or agreed to in writing, software
396 * distributed under the License is distributed on an "AS IS" BASIS,
397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
398 * See the License for the specific language governing permissions and
399 * limitations under the License.
400 */
401class ye{constructor(e,t,n){this._isDeleted=!1,this._options={...e},this._config={...t},this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new r.wA("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ge.create("app-deleted",{appName:this._name})}}
402/**
403 * @license
404 * Copyright 2023 Google LLC
405 *
406 * Licensed under the Apache License, Version 2.0 (the "License");
407 * you may not use this file except in compliance with the License.
408 * You may obtain a copy of the License at
409 *
410 *   http://www.apache.org/licenses/LICENSE-2.0
411 *
412 * Unless required by applicable law or agreed to in writing, software
413 * distributed under the License is distributed on an "AS IS" BASIS,
414 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
415 * See the License for the specific language governing permissions and
416 * limitations under the License.
417 */
418/**
419 * @license
420 * Copyright 2019 Google LLC
421 *
422 * Licensed under the Apache License, Version 2.0 (the "License");
423 * you may not use this file except in compliance with the License.
424 * You may obtain a copy of the License at
425 *
426 *   http://www.apache.org/licenses/LICENSE-2.0
427 *
428 * Unless required by applicable law or agreed to in writing, software
429 * distributed under the License is distributed on an "AS IS" BASIS,
430 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
431 * See the License for the specific language governing permissions and
432 * limitations under the License.
433 */
434const _e=oe;function be(e,t={}){let n=e;if("object"!==typeof t){const e=t;t={name:e}}const i={name:se,automaticDataCollectionEnabled:!0,...t},o=i.name;if("string"!==typeof o||!o)throw ge.create("bad-app-name",{appName:String(o)});if(n||(n=(0,a.aH)()),!n)throw ge.create("no-options");const s=ue.get(o);if(s){if((0,a.vZ)(n,s.options)){if((0,a.vZ)(i,s.config))return s;throw ge.create("duplicate-app",{appName:o,mismatchedParam:"config",oldValue:JSON.stringify(s.config),newValue:JSON.stringify(i)})}throw ge.create("duplicate-app",{appName:o,mismatchedParam:"options",oldValue:JSON.stringify(s.options),newValue:JSON.stringify(n)})}const l=new r.H0(o);for(const r of de.values())l.addComponent(r);const u=new ye(n,i,l);return ue.set(o,u),u}function Te(e=se){const t=ue.get(e);if(!t&&e===se&&(0,a.aH)())return be();if(!t)throw ge.create("no-app",{appName:e});return t}function we(e,t,n){let i=le[e]??e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=[`Unable to register library "${i}" with version "${t}":`];return a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void N.warn(e.join(" "))}pe(new r.wA(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}
435/**
436 * @license
437 * Copyright 2021 Google LLC
438 *
439 * Licensed under the Apache License, Version 2.0 (the "License");
440 * you may not use this file except in compliance with the License.
441 * You may obtain a copy of the License at
442 *
443 *   http://www.apache.org/licenses/LICENSE-2.0
444 *
445 * Unless required by applicable law or agreed to in writing, software
446 * distributed under the License is distributed on an "AS IS" BASIS,
447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
448 * See the License for the specific language governing permissions and
449 * limitations under the License.
450 */
451const Se="firebase-heartbeat-database",ke=1,Ce="firebase-heartbeat-store";let Ee=null;function Ie(){return Ee||(Ee=k(Se,ke,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(Ce)}catch(n){console.warn(n)}}}}).catch((e=>{throw ge.create("idb-open",{originalErrorMessage:e.message})}))),Ee}async function xe(e){try{const t=await Ie(),n=t.transaction(Ce),r=await n.objectStore(Ce).get(Pe(e));return await n.done,r}catch(t){if(t instanceof a.ZR)N.warn(t.message);else{const e=ge.create("idb-get",{originalErrorMessage:t?.message});N.warn(e.message)}}}async function Ae(e,t){try{const n=await Ie(),r=n.transaction(Ce,"readwrite"),i=r.objectStore(Ce);await i.put(t,Pe(e)),await r.done}catch(n){if(n instanceof a.ZR)N.warn(n.message);else{const e=ge.create("idb-set",{originalErrorMessage:n?.message});N.warn(e.message)}}}function Pe(e){return`${e.name}!${e.options.appId}`}
452/**
453 * @license
454 * Copyright 2021 Google LLC
455 *
456 * Licensed under the Apache License, Version 2.0 (the "License");
457 * you may not use this file except in compliance with the License.
458 * You may obtain a copy of the License at
459 *
460 *   http://www.apache.org/licenses/LICENSE-2.0
461 *
462 * Unless required by applicable law or agreed to in writing, software
463 * distributed under the License is distributed on an "AS IS" BASIS,
464 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
465 * See the License for the specific language governing permissions and
466 * limitations under the License.
467 */const $e=1024,Oe=30;class Ne{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Re(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){try{const e=this.container.getProvider("platform-logger").getImmediate(),t=e.getPlatformInfoString(),n=Le();if(null==this._heartbeatsCache?.heartbeats&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats))return;if(this._heartbeatsCache.lastSentHeartbeatDate===n||this._heartbeatsCache.heartbeats.some((e=>e.date===n)))return;if(this._heartbeatsCache.heartbeats.push({date:n,agent:t}),this._heartbeatsCache.heartbeats.length>Oe){const e=Me(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(e){N.warn(e)}}async getHeartbeatsHeader(){try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==this._heartbeatsCache?.heartbeats||0===this._heartbeatsCache.heartbeats.length)return"";const e=Le(),{heartbeatsToSend:t,unsentEntries:n}=De(this._heartbeatsCache.heartbeats),r=(0,a.L)(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(e){return N.warn(e),""}}}function Le(){const e=new Date;return e.toISOString().substring(0,10)}function De(e,t=$e){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Fe(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Fe(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class Re{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!(0,a.hl)()&&(0,a.eu)().then((()=>!0)).catch((()=>!1))}async read(){const e=await this._canUseIndexedDBPromise;if(e){const e=await xe(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){const t=await this._canUseIndexedDBPromise;if(t){const t=await this.read();return Ae(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){const t=await this._canUseIndexedDBPromise;if(t){const t=await this.read();return Ae(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}}function Fe(e){return(0,a.L)(JSON.stringify({version:2,heartbeats:e})).length}function Me(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}
468/**
469 * @license
470 * Copyright 2019 Google LLC
471 *
472 * Licensed under the Apache License, Version 2.0 (the "License");
473 * you may not use this file except in compliance with the License.
474 * You may obtain a copy of the License at
475 *
476 *   http://www.apache.org/licenses/LICENSE-2.0
477 *
478 * Unless required by applicable law or agreed to in writing, software
479 * distributed under the License is distributed on an "AS IS" BASIS,
480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
481 * See the License for the specific language governing permissions and
482 * limitations under the License.
483 */function Ve(e){pe(new r.wA("platform-logger",(e=>new A(e)),"PRIVATE")),pe(new r.wA("heartbeat",(e=>new Ne(e)),"PRIVATE")),we($,O,e),we($,O,"esm2020"),we("fire-js","")}
484/**
485 * @license
486 * Copyright 2019 Google LLC
487 *
488 * Licensed under the Apache License, Version 2.0 (the "License");
489 * you may not use this file except in compliance with the License.
490 * You may obtain a copy of the License at
491 *
492 *   http://www.apache.org/licenses/LICENSE-2.0
493 *
494 * Unless required by applicable law or agreed to in writing, software
495 * distributed under the License is distributed on an "AS IS" BASIS,
496 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
497 * See the License for the specific language governing permissions and
498 * limitations under the License.
499 */Ve("")},75:function(e,t,n){"use strict";n.d(t,{H0:function(){return u},wA:function(){return i}});var r=n(9711);class i{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}
500/**
501 * @license
502 * Copyright 2019 Google LLC
503 *
504 * Licensed under the Apache License, Version 2.0 (the "License");
505 * you may not use this file except in compliance with the License.
506 * You may obtain a copy of the License at
507 *
508 *   http://www.apache.org/licenses/LICENSE-2.0
509 *
510 * Unless required by applicable law or agreed to in writing, software
511 * distributed under the License is distributed on an "AS IS" BASIS,
512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
513 * See the License for the specific language governing permissions and
514 * limitations under the License.
515 */const a="[DEFAULT]";
516/**
517 * @license
518 * Copyright 2019 Google LLC
519 *
520 * Licensed under the Apache License, Version 2.0 (the "License");
521 * you may not use this file except in compliance with the License.
522 * You may obtain a copy of the License at
523 *
524 *   http://www.apache.org/licenses/LICENSE-2.0
525 *
526 * Unless required by applicable law or agreed to in writing, software
527 * distributed under the License is distributed on an "AS IS" BASIS,
528 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
529 * See the License for the specific language governing permissions and
530 * limitations under the License.
531 */class o{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new r.BH;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){const t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(!this.isInitialized(t)&&!this.shouldAutoInitialize()){if(n)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:t})}catch(r){if(n)return null;throw r}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(l(e))try{this.getOrInitializeService({instanceIdentifier:a})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(e=a){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=a){return this.instances.has(e)}getOptions(e=a){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,a]of this.instancesDeferred.entries()){const e=this.normalizeInstanceIdentifier(i);n===e&&a.resolve(r)}return r}onInit(e,t){const n=this.normalizeInstanceIdentifier(t),r=this.onInitCallbacks.get(n)??new Set;r.add(e),this.onInitCallbacks.set(n,r);const i=this.instances.get(n);return i&&e(i,n),()=>{r.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:s(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=a){return this.component?this.component.multipleInstances?e:a:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}function s(e){return e===a?void 0:e}function l(e){return"EAGER"===e.instantiationMode}
532/**
533 * @license
534 * Copyright 2019 Google LLC
535 *
536 * Licensed under the Apache License, Version 2.0 (the "License");
537 * you may not use this file except in compliance with the License.
538 * You may obtain a copy of the License at
539 *
540 *   http://www.apache.org/licenses/LICENSE-2.0
541 *
542 * Unless required by applicable law or agreed to in writing, software
543 * distributed under the License is distributed on an "AS IS" BASIS,
544 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
545 * See the License for the specific language governing permissions and
546 * limitations under the License.
547 */class u{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){const t=this.getProvider(e.name);t.isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new o(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}},4645:function(e,t,n){"use strict";n.d(t,{Yd:function(){return u},in:function(){return i}});
548/**
549 * @license
550 * Copyright 2017 Google LLC
551 *
552 * Licensed under the Apache License, Version 2.0 (the "License");
553 * you may not use this file except in compliance with the License.
554 * You may obtain a copy of the License at
555 *
556 *   http://www.apache.org/licenses/LICENSE-2.0
557 *
558 * Unless required by applicable law or agreed to in writing, software
559 * distributed under the License is distributed on an "AS IS" BASIS,
560 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
561 * See the License for the specific language governing permissions and
562 * limitations under the License.
563 */
564const r=[];var i;(function(e){e[e["DEBUG"]=0]="DEBUG",e[e["VERBOSE"]=1]="VERBOSE",e[e["INFO"]=2]="INFO",e[e["WARN"]=3]="WARN",e[e["ERROR"]=4]="ERROR",e[e["SILENT"]=5]="SILENT"})(i||(i={}));const a={debug:i.DEBUG,verbose:i.VERBOSE,info:i.INFO,warn:i.WARN,error:i.ERROR,silent:i.SILENT},o=i.INFO,s={[i.DEBUG]:"log",[i.VERBOSE]:"log",[i.INFO]:"info",[i.WARN]:"warn",[i.ERROR]:"error"},l=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=s[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}]  ${e.name}:`,...n)};class u{constructor(e){this.name=e,this._logLevel=o,this._logHandler=l,this._userLogHandler=null,r.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in i))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?a[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,i.DEBUG,...e),this._logHandler(this,i.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,i.VERBOSE,...e),this._logHandler(this,i.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,i.INFO,...e),this._logHandler(this,i.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,i.WARN,...e),this._logHandler(this,i.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,i.ERROR,...e),this._logHandler(this,i.ERROR,...e)}}},3977:function(e,t,n){"use strict";n.d(t,{ZF:function(){return r.ZF}});var r=n(6771),i="firebase",a="12.19.0";
565/**
566 * @license
567 * Copyright 2020 Google LLC
568 *
569 * Licensed under the Apache License, Version 2.0 (the "License");
570 * you may not use this file except in compliance with the License.
571 * You may obtain a copy of the License at
572 *
573 *   http://www.apache.org/licenses/LICENSE-2.0
574 *
575 * Unless required by applicable law or agreed to in writing, software
576 * distributed under the License is distributed on an "AS IS" BASIS,
577 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
578 * See the License for the specific language governing permissions and
579 * limitations under the License.
580 */
581(0,r.KN)(i,a,"app")},8437:function(e,t,n){"use strict";n.d(t,{_O:function(){return xt},O4:function(){return It},Xb:function(){return Ht},v0:function(){return li},Aj:function(){return Yt},LS:function(){return Wt},e5:function(){return qt},rh:function(){return Zn},w7:function(){return Kt}});var r=n(6771),i=n(9711),a=n(4645),o=n(75);function s(){return{["dependent-sdk-initialized-before-auth"]:"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const l=s,u=new i.LL("auth","Firebase",s()),c=new a.Yd("@firebase/auth");function d(e,...t){c.logLevel<=a["in"].WARN&&c.warn(`Auth (${r.Jn}): ${e}`,...t)}function h(e,...t){c.logLevel<=a["in"].ERROR&&c.error(`Auth (${r.Jn}): ${e}`,...t)}
582/**
583 * @license
584 * Copyright 2020 Google LLC
585 *
586 * Licensed under the Apache License, Version 2.0 (the "License");
587 * you may not use this file except in compliance with the License.
588 * You may obtain a copy of the License at
589 *
590 *   http://www.apache.org/licenses/LICENSE-2.0
591 *
592 * Unless required by applicable law or agreed to in writing, software
593 * distributed under the License is distributed on an "AS IS" BASIS,
594 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
595 * See the License for the specific language governing permissions and
596 * limitations under the License.
597 */function p(e,...t){throw y(e,...t)}function f(e,...t){return y(e,...t)}function m(e,t,n){const r={...l(),[t]:n},a=new i.LL("auth","Firebase",r);return a.create(t,{appName:e.name})}function v(e){return m(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function g(e,t,n){const r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&p(e,"argument-error"),m(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function y(e,...t){if("string"!==typeof e){const n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return u.create(e,...t)}function _(e,t,...n){if(!e)throw y(t,...n)}function b(e){const t="INTERNAL ASSERTION FAILED: "+e;throw h(t),new Error(t)}function T(e,t){e||b(t)}
598/**
599 * @license
600 * Copyright 2020 Google LLC
601 *
602 * Licensed under the Apache License, Version 2.0 (the "License");
603 * you may not use this file except in compliance with the License.
604 * You may obtain a copy of the License at
605 *
606 *   http://www.apache.org/licenses/LICENSE-2.0
607 *
608 * Unless required by applicable law or agreed to in writing, software
609 * distributed under the License is distributed on an "AS IS" BASIS,
610 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
611 * See the License for the specific language governing permissions and
612 * limitations under the License.
613 */function w(){return"undefined"!==typeof self&&self.location?.href||""}function S(){return"http:"===k()||"https:"===k()}function k(){return"undefined"!==typeof self&&self.location?.protocol||null}
614/**
615 * @license
616 * Copyright 2020 Google LLC
617 *
618 * Licensed under the Apache License, Version 2.0 (the "License");
619 * you may not use this file except in compliance with the License.
620 * You may obtain a copy of the License at
621 *
622 *   http://www.apache.org/licenses/LICENSE-2.0
623 *
624 * Unless required by applicable law or agreed to in writing, software
625 * distributed under the License is distributed on an "AS IS" BASIS,
626 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
627 * See the License for the specific language governing permissions and
628 * limitations under the License.
629 */function C(){return!("undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(S()||(0,i.ru)()||"connection"in navigator))||navigator.onLine}function E(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}
630/**
631 * @license
632 * Copyright 2020 Google LLC
633 *
634 * Licensed under the Apache License, Version 2.0 (the "License");
635 * you may not use this file except in compliance with the License.
636 * You may obtain a copy of the License at
637 *
638 *   http://www.apache.org/licenses/LICENSE-2.0
639 *
640 * Unless required by applicable law or agreed to in writing, software
641 * distributed under the License is distributed on an "AS IS" BASIS,
642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
643 * See the License for the specific language governing permissions and
644 * limitations under the License.
645 */class I{constructor(e,t){this.shortDelay=e,this.longDelay=t,T(t>e,"Short delay should be less than long delay!"),this.isMobile=(0,i.uI)()||(0,i.b$)()}get(){return C()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}
646/**
647 * @license
648 * Copyright 2020 Google LLC
649 *
650 * Licensed under the Apache License, Version 2.0 (the "License");
651 * you may not use this file except in compliance with the License.
652 * You may obtain a copy of the License at
653 *
654 *   http://www.apache.org/licenses/LICENSE-2.0
655 *
656 * Unless required by applicable law or agreed to in writing, softw
656are
657 * distributed under the License is distributed on an "AS IS" BASIS,
658 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
659 * See the License for the specific language governing permissions and
660 * limitations under the License.
661 */function x(e,t){T(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}
662/**
663 * @license
664 * Copyright 2020 Google LLC
665 *
666 * Licensed under the Apache License, Version 2.0 (the "License");
667 * you may not use this file except in compliance with the License.
668 * You may obtain a copy of the License at
669 *
670 *   http://www.apache.org/licenses/LICENSE-2.0
671 *
672 * Unless required by applicable law or agreed to in writing, software
673 * distributed under the License is distributed on an "AS IS" BASIS,
674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
675 * See the License for the specific language governing permissions and
676 * limitations under the License.
677 */class A{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void b("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void b("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void b("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}
678/**
679 * @license
680 * Copyright 2020 Google LLC
681 *
682 * Licensed under the Apache License, Version 2.0 (the "License");
683 * you may not use this file except in compliance with the License.
684 * You may obtain a copy of the License at
685 *
686 *   http://www.apache.org/licenses/LICENSE-2.0
687 *
688 * Unless required by applicable law or agreed to in writing, software
689 * distributed under the License is distributed on an "AS IS" BASIS,
690 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
691 * See the License for the specific language governing permissions and
692 * limitations under the License.
693 */const P={["CREDENTIAL_MISMATCH"]:"custom-token-mismatch",["MISSING_CUSTOM_TOKEN"]:"internal-error",["INVALID_IDENTIFIER"]:"invalid-email",["MISSING_CONTINUE_URI"]:"internal-error",["INVALID_PASSWORD"]:"wrong-password",["MISSING_PASSWORD"]:"missing-password",["INVALID_LOGIN_CREDENTIALS"]:"invalid-credential",["EMAIL_EXISTS"]:"email-already-in-use",["PASSWORD_LOGIN_DISABLED"]:"operation-not-allowed",["INVALID_IDP_RESPONSE"]:"invalid-credential",["INVALID_PENDING_TOKEN"]:"invalid-credential",["FEDERATED_USER_ID_ALREADY_LINKED"]:"credential-already-in-use",["MISSING_REQ_TYPE"]:"internal-error",["EMAIL_NOT_FOUND"]:"user-not-found",["RESET_PASSWORD_EXCEED_LIMIT"]:"too-many-requests",["EXPIRED_OOB_CODE"]:"expired-action-code",["INVALID_OOB_CODE"]:"invalid-action-code",["MISSING_OOB_CODE"]:"internal-error",["CREDENTIAL_TOO_OLD_LOGIN_AGAIN"]:"requires-recent-login",["INVALID_ID_TOKEN"]:"invalid-user-token",["TOKEN_EXPIRED"]:"user-token-expired",["USER_NOT_FOUND"]:"user-token-expired",["TOO_MANY_ATTEMPTS_TRY_LATER"]:"too-many-requests",["PASSWORD_DOES_NOT_MEET_REQUIREMENTS"]:"password-does-not-meet-requirements",["INVALID_CODE"]:"invalid-verification-code",["INVALID_SESSION_INFO"]:"invalid-verification-id",["INVALID_TEMPORARY_PROOF"]:"invalid-credential",["MISSING_SESSION_INFO"]:"missing-verification-id",["SESSION_EXPIRED"]:"code-expired",["MISSING_ANDROID_PACKAGE_NAME"]:"missing-android-pkg-name",["UNAUTHORIZED_DOMAIN"]:"unauthorized-continue-uri",["INVALID_OAUTH_CLIENT_ID"]:"invalid-oauth-client-id",["ADMIN_ONLY_OPERATION"]:"admin-restricted-operation",["INVALID_MFA_PENDING_CREDENTIAL"]:"invalid-multi-factor-session",["MFA_ENROLLMENT_NOT_FOUND"]:"multi-factor-info-not-found",["MISSING_MFA_ENROLLMENT_ID"]:"missing-multi-factor-info",["MISSING_MFA_PENDING_CREDENTIAL"]:"missing-multi-factor-session",["SECOND_FACTOR_EXISTS"]:"second-factor-already-in-use",["SECOND_FACTOR_LIMIT_EXCEEDED"]:"maximum-second-factor-count-exceeded",["BLOCKING_FUNCTION_ERROR_RESPONSE"]:"internal-error",["RECAPTCHA_NOT_ENABLED"]:"recaptcha-not-enabled",["MISSING_RECAPTCHA_TOKEN"]:"missing-rec
vendor: 4,809 bytes, lines 693-725
693aptcha-token",["INVALID_RECAPTCHA_TOKEN"]:"invalid-recaptcha-token",["INVALID_RECAPTCHA_ACTION"]:"invalid-recaptcha-action",["MISSING_CLIENT_TYPE"]:"missing-client-type",["MISSING_RECAPTCHA_VERSION"]:"missing-recaptcha-version",["INVALID_RECAPTCHA_VERSION"]:"invalid-recaptcha-version",["INVALID_REQ_TYPE"]:"invalid-req-type"},$=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],O=new I(3e4,6e4);
694/**
695 * @license
696 * Copyright 2020 Google LLC
697 *
698 * Licensed under the Apache License, Version 2.0 (the "License");
699 * you may not use this file except in compliance with the License.
700 * You may obtain a copy of the License at
701 *
702 *   http://www.apache.org/licenses/LICENSE-2.0
703 *
704 * Unless required by applicable law or agreed to in writing, software
705 * distributed under the License is distributed on an "AS IS" BASIS,
706 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
707 * See the License for the specific language governing permissions and
708 * limitations under the License.
709 */function N(e,t){return e.tenantId&&!t.tenantId?{...t,tenantId:e.tenantId}:t}async function L(e,t,n,r,a={}){return D(e,a,(async()=>{let a={},o={};r&&("GET"===t?o=r:a={body:JSON.stringify(r)});const s=(0,i.xO)({...o,key:e.config.apiKey}).slice(1),l=await e._getAdditionalHeaders();l["Content-Type"]="application/json",e.languageCode&&(l["X-Firebase-Locale"]=e.languageCode);const u={method:t,headers:l,...a};return(0,i.L_)()||(u.referrerPolicy="strict-origin-when-cross-origin"),e.emulatorConfig&&(0,i.Xx)(e.emulatorConfig.host)&&(u.credentials="include"),A.fetch()(await F(e,e.config.apiHost,n,s),u)}))}async function D(e,t,n){e._canInitEmulator=!1;const r={...P,...t};try{const t=new V(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const a=await i.json();if("needConfirmation"in a)throw U(e,"account-exists-with-different-credential",a);if(i.ok&&!("errorMessage"in a))return a;{const t=i.ok?a.errorMessage:a.error.message,[n,o]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw U(e,"credential-already-in-use",a);if("EMAIL_EXISTS"===n)throw U(e,"email-already-in-use",a);if("USER_DISABLED"===n)throw U(e,"user-disabled",a);const s=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(o)throw m(e,s,o);p(e,s)}}catch(a){if(a instanceof i.ZR)throw a;p(e,"network-request-failed",{message:String(a)})}}async function R(e,t,n,r,i={}){const a=await L(e,t,n,r,i);return"mfaPendingCredential"in a&&p(e,"multi-factor-auth-required",{_serverResponse:a}),a}async function F(e,t,n,r){const i=`${t}${n}?${r}`,a=e,o=a.config.emulator?x(e.config,i):`${e.config.apiScheme}://${i}`;if($.includes(n)&&(await a._persistenceManagerAvailable,"COOKIE"===a._getPersistenceType())){const e=a._getPersistence();return e._getFinalTarget(o).toString()}return o}function M(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class V{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(f(this.auth,"network-request-failed"))),O.get())}))}}function U(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=f(e,t,r);return i.customData._tokenResponse=n,i}
710/**
711 * @license
712 * Copyright 2020 Google LLC
713 *
714 * Licensed under the Apache License, Version 2.0 (the "License");
715 * you may not use this file except in compliance with the License.
716 * You may obtain a copy of the License at
717 *
718 *   http://www.apache.org/licenses/LICENSE-2.0
719 *
720 * Unless required by applicable law or agreed to in writing, software
721 * distributed under the License is distributed on an "AS IS" BASIS,
722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
723 * See the License for the specific language governing permissions and
724 * limitations under the License.
725 */function B(e){return void 0!==e&&void 0!==e.enterprise}class j{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return M(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
725VIDER")}}
726/**
727 * @license
728 * Copyright 2020 Google LLC
729 *
730 * Licensed under the Apache License, Version 2.0 (the "License");
731 * you may not use this file except in compliance with the License.
732 * You may obtain a copy of the License at
733 *
734 *   http://www.apache.org/licenses/LICENSE-2.0
735 *
736 * Unless required by applicable law or agreed to in writing, software
737 * distributed under the License is distributed on an "AS IS" BASIS,
738 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
739 * See the License for the specific language governing permissions and
740 * limitations under the License.
741 */async function W(e,t){return L(e,"GET","/v2/recaptchaConfig",N(e,t))}
742/**
743 * @license
744 * Copyright 2020 Google LLC
745 *
746 * Licensed under the Apache License, Version 2.0 (the "License");
747 * you may not use this file except in compliance with the License.
748 * You may obtain a copy of the License at
749 *
750 *   http://www.apache.org/licenses/LICENSE-2.0
751 *
752 * Unless required by applicable law or agreed to in writing, software
753 * distributed under the License is distributed on an "AS IS" BASIS,
754 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
755 * See the License for the specific language governing permissions and
756 * limitations under the License.
757 */async function H(e,t){return L(e,"POST","/v1/accounts:delete",t)}async function q(e,t){return L(e,"POST","/v1/accounts:lookup",t)}
758/**
759 * @license
760 * Copyright 2020 Google LLC
761 *
762 * Licensed under the Apache License, Version 2.0 (the "License");
763 * you may not use this file except in compliance with the License.
764 * You may obtain a copy of the License at
765 *
766 *   http://www.apache.org/licenses/LICENSE-2.0
767 *
768 * Unless required by applicable law or agreed to in writing, software
769 * distributed under the License is distributed on an "AS IS" BASIS,
770 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
771 * See the License for the specific language governing permissions and
772 * limitations under the License.
773 */function G(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(t){}}
774/**
775 * @license
776 * Copyright 2020 Google LLC
777 *
778 * Licensed under the Apache License, Version 2.0 (the "License");
779 * you may not use this file except in compliance with the License.
780 * You may obtain a copy of the License at
781 *
782 *   http://www.apache.org/licenses/LICENSE-2.0
783 *
784 * Unless required by applicable law or agreed to in writing, software
785 * distributed under the License is distributed on an "AS IS" BASIS,
786 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
787 * See the License for the specific language governing permissions and
788 * limitations under the License.
789 */async function z(e,t=!1){const n=(0,i.m9)(e),r=await n.getIdToken(t),a=K(r);_(a&&a.exp&&a.auth_time&&a.iat,n.auth,"internal-error");const o="object"===typeof a.firebase?a.firebase:void 0,s=o?.["sign_in_provider"];return{claims:a,token:r,authTime:G(Y(a.auth_time)),issuedAtTime:G(Y(a.iat)),expirationTime:G(Y(a.exp)),signInProvider:s||null,signInSecondFactor:o?.["sign_in_second_factor"]||null}}function Y(e){return 1e3*Number(e)}function K(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return h("JWT malformed, contained fewer than 3 sections"),null;try{const e=(0,i.tV)(n);return e?JSON.parse(e):(h("Failed to decode base64 JWT payload"),null)}catch(a){return h("Caught error parsing JWT payload as JSON",a?.toString()),null}}function X(e){const t=K(e);return _(t,"internal-error"),_("undefined"!==typeof t.exp,"internal-error"),_("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}
790/**
791 * @license
792 * Copyright 2020 Google LLC
793 *
794 * Licensed under the Apache License, Version 2.0 (the "License");
795 * you may not use this file except in compliance with the License.
796 * You may obtain a copy of the License at
797 *
798 *   http://www.apache.org/licenses/LICENSE-2.0
799 *
800 * Unless required by applicable law or agreed to in writing, software
801 * distributed under the License is distributed on an "AS IS" BASIS,
802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
803 * See the License for the specific language governing permissions and
804 * limitations under the License.
805 */async function J(e,t,n=!1){if(n)return t;try{return await t}catch(r){throw r instanceof i.ZR&&Z(r)&&e.auth.currentUser===e&&await e.auth.signOut(),r}}function Z({code:e}){return"auth/user-disabled"===e||"auth/user-token-expired"===e}
806/**
807 * @license
808 * Copyright 2020 Google LLC
809 *
810 * Licensed under the Apache License, Version 2.0 (the "License");
811 * you may not use this file except in compliance with the License.
812 * You may obtain a copy of the License at
813 *
814 *   http://www.apache.org/licenses/LICENSE-2.0
815 *
816 * Unless required by applicable law or agreed to in writing, software
817 * distributed under the License is distributed on an "AS IS" BASIS,
818 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
819 * See the License for the specific language governing permissions and
820 * limitations under the License.
821 */class Q{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=this.user.stsTokenManager.expirationTime??0,t=e-Date.now()-3e5;return Math.max(0,t)}}schedule(e=!1){if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){return void("auth/network-request-failed"===e?.code&&this.schedule(!0))}this.schedule()}}
822/**
823 * @license
824 * Copyright 2020 Google LLC
825 *
826 * Licensed under the Apache License, Version 2.0 (the "License");
827 * you may not use this file except in compliance with the License.
828 * You may obtain a copy of the License at
829 *
830 *   http://www.apache.org/licenses/LICENSE-2.0
831 *
832 * Unless required by applicable law or agreed to in writing, software
833 * distributed under the License is distributed on an "AS IS" BASIS,
834 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
835 * See the License for the specific language governing permissions and
836 * limitations under the License.
837 */class ee{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=G(this.lastLoginAt),this.creationTime=G(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}
838/**
839 * @license
840 * Copyright 2019 Google LLC
841 *
842 * Licensed under the Apache License, Version 2.0 (the "License");
843 * you may not use this file except in compliance with the License.
844 * You may obtain a copy of the License at
845 *
846 *   http://www.apache.org/licenses/LICENSE-2.0
847 *
848 * Unless required by applicable law or agreed to in writing, software
849 * distributed under the License is distributed on an "AS IS" BASIS,
850 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
851 * See the License for the specific language governing permissions and
852 * limitations under the License.
853 */async function te(e){const t=e.auth,n=await e.getIdToken(),r=await J(e,q(t,{idToken:n}));_(r?.users.length,t,"internal-error");const i=r.users[0];e._notifyReloadListener(i);const a=i.providerUserInfo?.length?ie(i.providerUserInfo):[],o=re(e.providerData,a),s=e.isAnonymous,l=!(e.email&&i.passwordHash)&&!o?.length,u=!!s&&l,c={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new ee(i.createdAt,i.lastLoginAt),isAnonymous:u};Object.assign(e,c)}async function ne(e){const t=(0,i.m9)(e);await te(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function re(e,t){const n=e.filter((e=>!t.some((t=>t.providerId===e.providerId))));return[...n,...t]}function ie(e){return e.map((({providerId:e,...t})=>({providerId:e,uid:t.rawId||"",displayName:t.displayName||null,email:t.email||null,phoneNumber:t.phoneNumber||null,photoURL:t.photoUrl||null})))}
854/**
855 * @license
856 * Copyright 2020 Google LLC
857 *
858 * Licensed under the Apache License, Version 2.0 (the "License");
859 * you may not use this file except in compliance with the License.
860 * You may obtain a copy of the License at
861 *
862 *   http://www.apache.org/licenses/LICENSE-2.0
863 *
864 * Unless required by applicable law or agreed to in writing, softw
864are
865 * distributed under the License is distributed on an "AS IS" BASIS,
866 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
867 * See the License for the specific language governing permissions and
868 * limitations under the License.
869 */async function ae(e,t){const n=await D(e,{},(async()=>{const n=(0,i.xO)({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:a}=e.config,o=await F(e,r,"/v1/token",`key=${a}`),s=await e._getAdditionalHeaders();s["Content-Type"]="application/x-www-form-urlencoded";const l={method:"POST",headers:s,body:n};return e.emulatorConfig&&(0,i.Xx)(e.emulatorConfig.host)&&(l.credentials="include"),A.fetch()(o,l)}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function oe(e,t){return L(e,"POST","/v2/accounts:revokeToken",N(e,t))}
870/**
871 * @license
872 * Copyright 2020 Google LLC
873 *
874 * Licensed under the Apache License, Version 2.0 (the "License");
875 * you may not use this file except in compliance with the License.
876 * You may obtain a copy of the License at
877 *
878 *   http://www.apache.org/licenses/LICENSE-2.0
879 *
880 * Unless required by applicable law or agreed to in writing, software
881 * distributed under the License is distributed on an "AS IS" BASIS,
882 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
883 * See the License for the specific language governing permissions and
884 * limitations under the License.
885 */class se{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){_(e.idToken,"internal-error"),_("undefined"!==typeof e.idToken,"internal-error"),_("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):X(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){_(0!==e.length,"internal-error");const t=X(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return t||!this.accessToken||this.isExpired?(_(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await ae(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,a=new se;return n&&(_("string"===typeof n,"internal-error",{appName:e}),a.refreshToken=n),r&&(_("string"===typeof r,"internal-error",{appName:e}),a.accessToken=r),i&&(_("number"===typeof i,"internal-error",{appName:e}),a.expirationTime=i),a}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new se,this.toJSON())}_performRefresh(){return b("not implemented")}}
886/**
887 * @license
888 * Copyright 2020 Google LLC
889 *
890 * Licensed under the Apache License, Version 2.0 (the "License");
891 * you may not use this file except in compliance with the License.
892 * You may obtain a copy of the License at
893 *
894 *   http://www.apache.org/licenses/LICENSE-2.0
895 *
896 * Unless required by applicable law or agreed to in writing, software
897 * distributed under the License is distributed on an "AS IS" BASIS,
898 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
899 * See the License for the specific language governing permissions and
900 * limitations under the License.
901 */function le(e,t){_("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class ue{constructor({uid:e,auth:t,stsTokenManager:n,...r}){this.providerId="firebase",this.proactiveRefresh=new Q(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=t,this.stsTokenManager=n,this.accessToken=n.accessToken,this.displayName=r.displayName||null,this.email=r.email||null,this.emailVerified=r.emailVerified||!1,this.phoneNumber=r.phoneNumber||null,this.photoURL=r.photoURL||null,this.isAnonymous=r.isAnonymous||!1,this.tenantId=r.tenantId||null,this.providerData=r.providerData?[...r.providerData]:[],this.metadata=new ee(r.createdAt||void 0,r.lastLoginAt||void 0)}async getIdToken(e){const t=await J(this,this.stsTokenManager.getToken(this.auth,e));return _(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return z(this,e)}reload(){return ne(this)}_assign(e){this!==e&&(_(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
vendor: 8,674 bytes, lines 901-965
901otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>({...e}))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new ue({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return t.metadata._copy(this.metadata),t}_onReload(e){_(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await te(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if((0,r.rh)(this.auth.app))return Promise.reject(v(this.auth));const e=await this.getIdToken();return await J(this,H(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>({...e}))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){const n=t.displayName??void 0,r=t.email??void 0,i=t.phoneNumber??void 0,a=t.photoURL??void 0,o=t.tenantId??void 0,s=t._redirectEventId??void 0,l=t.createdAt??void 0,u=t.lastLoginAt??void 0,{uid:c,emailVerified:d,isAnonymous:h,providerData:p,stsTokenManager:f}=t;_(c&&f,e,"internal-error");const m=se.fromJSON(this.name,f);_("string"===typeof c,e,"internal-error"),le(n,e.name),le(r,e.name),_("boolean"===typeof d,e,"internal-error"),_("boolean"===typeof h,e,"internal-error"),le(i,e.name),le(a,e.name),le(o,e.name),le(s,e.name),le(l,e.name),le(u,e.name);const v=new ue({uid:c,auth:e,email:r,emailVerified:d,displayName:n,isAnonymous:h,photoURL:a,phoneNumber:i,tenantId:o,stsTokenManager:m,createdAt:l,lastLoginAt:u});return p&&Array.isArray(p)&&(v.providerData=p.map((e=>({...e})))),s&&(v._redirectEventId=s),v}static async _fromIdTokenResponse(e,t,n=!1){const r=new se;r.updateFromServerResponse(t);const i=new ue({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await te(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];_(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?ie(r.providerUserInfo):[],a=!(r.email&&r.passwordHash)&&!i?.length,o=new se;o.updateFromIdToken(n);const s=new ue({uid:r.localId,auth:e,stsTokenManager:o,isAnonymous:a}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new ee(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!i?.length};return Object.assign(s,l),s}}
902/**
903 * @license
904 * Copyright 2020 Google LLC
905 *
906 * Licensed under the Apache License, Version 2.0 (the "License");
907 * you may not use this file except in compliance with the License.
908 * You may obtain a copy of the License at
909 *
910 *   http://www.apache.org/licenses/LICENSE-2.0
911 *
912 * Unless required by applicable law or agreed to in writing, software
913 * distributed under the License is distributed on an "AS IS" BASIS,
914 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
915 * See the License for the specific language governing permissions and
916 * limitations under the License.
917 */const ce=new Map;function de(e){T(e instanceof Function,"Expected a class definition");let t=ce.get(e);return t?(T(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,ce.set(e,t),t)}
918/**
919 * @license
920 * Copyright 2019 Google LLC
921 *
922 * Licensed under the Apache License, Version 2.0 (the "License");
923 * you may not use this file except in compliance with the License.
924 * You may obtain a copy of the License at
925 *
926 *   http://www.apache.org/licenses/LICENSE-2.0
927 *
928 * Unless required by applicable law or agreed to in writing, software
929 * distributed under the License is distributed on an "AS IS" BASIS,
930 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
931 * See the License for the specific language governing permissions and
932 * limitations under the License.
933 */class he{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}he.type="NONE";const pe=he;
934/**
935 * @license
936 * Copyright 2019 Google LLC
937 *
938 * Licensed under the Apache License, Version 2.0 (the "License");
939 * you may not use this file except in compliance with the License.
940 * You may obtain a copy of the License at
941 *
942 *   http://www.apache.org/licenses/LICENSE-2.0
943 *
944 * Unless required by applicable law or agreed to in writing, software
945 * distributed under the License is distributed on an "AS IS" BASIS,
946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
947 * See the License for the specific language governing permissions and
948 * limitations under the License.
949 */function fe(e,t,n){return`firebase:${e}:${t}:${n}`}class me{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=fe(this.userKey,r.apiKey,i),this.fullPersistenceKey=fe("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t);try{this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}catch{}}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"===typeof e){const t=await q(this.auth,{idToken:e}).catch((()=>{}));return t?ue._fromGetAccountInfoResponse(this.auth,t,e):null}return ue._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){try{this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}catch{}}static async create(e,t,n="authUser"){if(!t.length)return new me(de(pe),e,n);const r=(await Promise.all(t.map((async e=>{try{if(await e._isAvailable())return e}catch{return}})))).filter((e=>e));let i=r[0]||de(pe);const a=fe(n,e.config.apiKey,e.name);let o=null;for(const l of t)try{const t=await l._get(a);if(t){let n;if("string"===typeof t){const r=await q(e,{idToken:t}).catch((()=>{}));if(!r)break;n=await ue._fromGetAccountInfoResponse(e,r,t)}else n=ue._fromJSON(e,t);l!==i&&(o=n),i=l;break}}catch{}const s=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&s.length?(i=s[0],o&&await i._set(a,o.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(a)}catch{}}))),new me(i,e,n)):new me(i,e,n)}}
950/**
951 * @license
952 * Copyright 2020 Google LLC
953 *
954 * Licensed under the Apache License, Version 2.0 (the "License");
955 * you may not use this file except in compliance with the License.
956 * You may obtain a copy of the License at
957 *
958 *   http://www.apache.org/licenses/LICENSE-2.0
959 *
960 * Unless required by applicable law or agreed to in writing, software
961 * distributed under the License is distributed on an "AS IS" BASIS,
962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
963 * See the License for the specific language governing permissions and
964 * limitations under the License.
965 */function ve(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(be(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(ge(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(we(t))return"Blackberry";if(Se(t))return"Webos";if(ye(t))return"Safari";
965if((t.includes("chrome/")||_e(t))&&!t.includes("edge/"))return"Chrome";if(Te(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===n?.length)return n[1]}return"Other"}function ge(e=(0,i.z$)()){return/firefox\//i.test(e)}function ye(e=(0,i.z$)()){const t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function _e(e=(0,i.z$)()){return/crios\//i.test(e)}function be(e=(0,i.z$)()){return/iemobile/i.test(e)}function Te(e=(0,i.z$)()){return/android/i.test(e)}function we(e=(0,i.z$)()){return/blackberry/i.test(e)}function Se(e=(0,i.z$)()){return/webos/i.test(e)}function ke(e=(0,i.z$)()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Ce(e=(0,i.z$)()){return ke(e)&&!!window.navigator?.standalone}function Ee(){return(0,i.w1)()&&10===document.documentMode}function Ie(e=(0,i.z$)()){return ke(e)||Te(e)||Se(e)||we(e)||/windows phone/i.test(e)||be(e)}
966/**
967 * @license
968 * Copyright 2020 Google LLC
969 *
970 * Licensed under the Apache License, Version 2.0 (the "License");
971 * you may not use this file except in compliance with the License.
972 * You may obtain a copy of the License at
973 *
974 *   http://www.apache.org/licenses/LICENSE-2.0
975 *
976 * Unless required by applicable law or agreed to in writing, software
977 * distributed under the License is distributed on an "AS IS" BASIS,
978 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
979 * See the License for the specific language governing permissions and
980 * limitations under the License.
981 */function xe(e,t=[]){let n;switch(e){case"Browser":n=ve((0,i.z$)());break;case"Worker":n=`${ve((0,i.z$)())}-${e}`;break;default:n=e}const a=t.length?t.join(","):"FirebaseCore-web";return`${n}/JsCore/${r.Jn}/${a}`}
982/**
983 * @license
984 * Copyright 2022 Google LLC
985 *
986 * Licensed under the Apache License, Version 2.0 (the "License");
987 * you may not use this file except in compliance with the License.
988 * You may obtain a copy of the License at
989 *
990 *   http://www.apache.org/licenses/LICENSE-2.0
991 *
992 * Unless required by applicable law or agreed to in writing, software
993 * distributed under the License is distributed on an "AS IS" BASIS,
994 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
995 * See the License for the specific language governing permissions and
996 * limitations under the License.
997 */class Ae{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{const r=e(t);n(r)}catch(i){r(i)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(const e of t)try{e()}catch(r){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:n?.message})}}}
998/**
999 * @license
1000 * Copyright 2023 Google LLC
1001 *
1002 * Licensed under the Apache License, Version 2.0 (the "License");
1003 * you may not use this file except in compliance with the License.
1004 * You may obtain a copy of the License at
1005 *
1006 *   http://www.apache.org/licenses/LICENSE-2.0
1007 *
1008 * Unless required by applicable law or agreed to in writing, software
1009 * distributed under the License is distributed on an "AS IS" BASIS,
1010 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1011 * See the License for the specific language governing permissions and
1012 * limitations under the License.
1013 */async function Pe(e,t={}){return L(e,"GET","/v2/passwordPolicy",N(e,t))}
1014/**
1015 * @license
1016 * Copyright 2023 Google LLC
1017 *
1018 * Licensed under the Apache License, Version 2.0 (the "License");
1019 * you may not use this file except in compliance with the License.
1020 * You may obtain a copy of the License at
1021 *
1022 *   http://www.apache.org/licenses/LICENSE-2.0
1023 *
1024 * Unless required by applicable law or agreed to in writing, software
1025 * distributed under the License is distributed on an "AS IS" BASIS,
1026 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1027 * See the License for the specific language governing permissions and
1028 * limitations under the License.
1029 */const $e=6;class Oe{constructor(e){const t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??$e,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),void 0!==t.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),void 0!==t.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),void 0!==t.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),void 0!==t.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join("")??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&
vendor: 12,248 bytes, lines 1029-1050
1029(t.isValid=t.meetsMinPasswordLength??!0),t.isValid&&(t.isValid=t.meetsMaxPasswordLength??!0),t.isValid&&(t.isValid=t.containsLowercaseLetter??!0),t.isValid&&(t.isValid=t.containsUppercaseLetter??!0),t.isValid&&(t.isValid=t.containsNumericCharacter??!0),t.isValid&&(t.isValid=t.containsNonAlphanumericCharacter??!0),t}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}
1030/**
1031 * @license
1032 * Copyright 2020 Google LLC
1033 *
1034 * Licensed under the Apache License, Version 2.0 (the "License");
1035 * you may not use this file except in compliance with the License.
1036 * You may obtain a copy of the License at
1037 *
1038 *   http://www.apache.org/licenses/LICENSE-2.0
1039 *
1040 * Unless required by applicable law or agreed to in writing, software
1041 * distributed under the License is distributed on an "AS IS" BASIS,
1042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1043 * See the License for the specific language governing permissions and
1044 * limitations under the License.
1045 */class Ne{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new De(this),this.idTokenSubscription=new De(this),this.beforeStateQueue=new Ae(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=u,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise((e=>this._resolvePersistenceManagerAvailable=e))}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=de(t)),this._initializationPromise=this.queue((async()=>{if(!this._deleted){try{this.persistenceManager=await me.create(this,e)}catch(n){d(`Failed to initialize persistence: ${n}`),this.persistenceManager=await me.create(this,[])}finally{this._resolvePersistenceManagerAvailable?.()}if(!this._deleted){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(n){}try{await this.initializeCurrentUser(t)}catch(n){d(`Failed to initialize current user: ${n}`),await this.directlySetCurrentUser(null).catch((()=>{}))}this.lastNotifiedUid=this.currentUser?.uid||null,this._deleted||(this._isInitialized=!0)}}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await q(this,{idToken:e}),n=await ue._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if((0,r.rh)(this.app)){const e=this.app.settings.authIdToken;return e?new Promise((t=>{setTimeout((()=>this.initializeCurrentUserFromIdToken(e).then(t,t)))})):this.directlySetCurrentUser(null)}const t=await this.assertedPersistence.getCurrentUser();let n=t,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const t=this.redirectUser?._redirectEventId,r=n?._redirectEventId,a=await this.tryRedirectSignIn(e);t&&t!==r||!a?.user||(n=a.user,i=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(n)}catch(a){n=t,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(a)))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return _(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(n){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await te(e)}catch(t){if("auth/network-request-failed"!==t?.code)return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=E()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if((0,r.rh)(this.app))return Promise.reject(v(this));const t=e?(0,i.m9)(e):null;return t&&_(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&_(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return(0,r.rh)(this.app)?Promise.reject(v(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return(0,r.rh)(this.app)?Promise.reject(v(this)):this.queue((async()=>{await this.assertedPersistence.setPersistence(de(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await Pe(this),t=new Oe(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new i.LL("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t=await this.currentUser.getIdToken(),n={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:t};null!=this.tenantId&&(n.tenantId=this.tenantId),await oe(this,n)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&de(e)||this._popupRedirectResolver;_(t,this,"argument-error"),this.redirectPersistenceManager=await me.create(this,[de(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue((async()=>{})),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let a=!1;const o=this._isInitialized?Promise.resolve():this._initializationPromise;if(_(o,this,"internal-error"),o.then((()=>{a||i(this.currentUser)})).catch((e=>{if(!a)if("function"!==typeof t&&t.error)t.error(e);else{if(!n)throw e;n(e)}})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{a=!0,i()}}{const n=e.addObserver(t);return()=>{a=!0,n()}}}async directlySetCurrentUser(e){if(this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,this.persistenceManager)try{e?await this.persistenceManager.setCurrentUser(e):await this.persistenceManager.removeCurrentUser()}catch(t){const e=t?.message||String(t),n=m(this,"internal-error",`An internal AuthError has occurred: ${e}`);throw n.customData={originalError:t},n}}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return _(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=xe(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){const e={["X-Client-Version"]:this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const t=await(this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader());t&&(e["X-Firebase-Client"]=t);const n=await this._getAppCheckToken();return n&&(e["X-Firebase-AppCheck"]=n),e}async _getAppCheckToken(){if((0,r.rh)(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await(this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken());return e?.error&&d(`Error while retrieving App Check token: ${e.error}`),e?.token}}function Le(e){return(0,i.m9)(e)}class De{constructor(e){this.auth=e,this.observer=null,this.addObserver=(0,i.ne)((e=>this.observer=e))}get next(){return _(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}
1046/**
1047 * @license
1048 * Copyright 2020 Google LLC
1049 *
1050 * Licensed under the Apache License, Version 2.0 (the "License");
1051 * you may not use this file except in compliance with the License.
1052 * You may obtain a copy of the License at
1053 *
1054 *   http://www.apache.org/licenses/LICENSE-2.0
1055 *
1056 * Unless required by applicable law or agreed to in writing, software
1057 * distributed under the License is distributed on an "AS IS" BASIS,
1058 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1059 * See the License for the specific language governing permissions and
1060 * limitations under the License.
1061 */let Re={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Fe(e){Re=e}function Me(e){return Re.loadJS(e)}function Ve(){return Re.recaptchaEnterpriseScript}function Ue(){return Re.gapiScript}function Be(e){return`__${e}${Math.floor(1e6*Math.random())}`}
1062/**
1063 * @license
1064 * Copyright 2020 Google LLC
1065 *
1066 * Licensed under the Apache License, Version 2.0 (the "License");
1067 * you may not use this file except in compliance with the License.
1068 * You may obtain a copy of the License at
1069 *
1070 *   http://www.apache.org/licenses/LICENSE-2.0
1071 *
1072 * Unless required by applicable law or agreed to in writing, software
1073 * distributed under the License is distributed on an "AS IS" BASIS,
1074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1075 * See the License for the specific language governing permissions and
1076 * limitations under the License.
1077 */class je{constructor(){this.enterprise=new We}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class We{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}
1078/**
1079 * @license
1080 * Copyright 2022 Google LLC
1081 *
1082 * Licensed under the Apache License, Version 2.0 (the "License");
1083 * you may not use this file except in compliance with the License.
1084 * You may obtain a copy of the License at
1085 *
1086 *   http://www.apache.org/licenses/LICENSE-2.0
1087 *
1088 * Unless required by applicable law or agreed to in writing, software
1089 * distributed under the License is distributed on an "AS IS" BASIS,
1090 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1091 * See the License for the specific language governing permissions and
1092 * limitations under the License.
1093 */
1094const He="recaptcha-enterprise",qe="NO_RECAPTCHA",Ge="onFirebaseAuthREInstanceReady";class ze{constructor(e){this.type=He,this.auth=Le(e)}async verify(e="verify",t=!1){async function n(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>{W(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new j(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))}function r(t,n,r){const i=window.grecaptcha;B(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n(qe)}))})):r(Error("No reCAPTCHA enterprise script loaded."))}if(this.auth.settings.appVerificationDisabledForTesting){const e=new je;return e.execute("siteKey",{action:"verify"})}return new Promise(((e,a)=>{n(this.auth).then((async n=>{if(!t&&B(window.grecaptcha)&&ze.scriptInjectionDeferred)await ze.scriptInjectionDeferred.promise,r(n,e,a);else{if("undefined"===typeof window)return void a(new Error("RecaptchaVerifier is only supported in browser"));let t=Ve();0!==t.length&&(t+=n+`&onload=${Ge}`),ze.scriptInjectionDeferred=new i.BH,window[Ge]=()=>{ze.scriptInjectionDeferred?.resolve()},Me(t).then((()=>ze.scriptInjectionDeferred?.promise)).then((()=>{r(n,e,a)})).catch((e=>{a(e)}))}})).catch((e=>{a(e)}))}))}}async function Ye(e,t,n,r=!1,i=!1){const a=new ze(e);let o;if(i)o=qe;else try{o=await a.verify(n)}catch(l){o=await a.verify(n,!0)}const s={...t};if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if("phoneEnrollmentInfo"in s){const e=s.phoneEnrollmentInfo.phoneNumber,t=s.phoneEnrollmentInfo.recaptchaToken;Object.assign(s,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}}
1094)}else if("phoneSignInInfo"in s){const e=s.phoneSignInInfo.recaptchaToken;Object.assign(s,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return s}return r?Object.assign(s,{captchaResp:o}):Object.assign(s,{captchaResponse:o}),Object.assign(s,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(s,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),s}async function Ke(e,t,n,r,i){if("EMAIL_PASSWORD_PROVIDER"===i){if(e._getRecaptchaConfig()?.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await Ye(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if("auth/missing-recaptcha-token"===i.code){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const i=await Ye(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}if("PHONE_PROVIDER"===i){if(e._getRecaptchaConfig()?.isProviderEnabled("PHONE_PROVIDER")){const i=await Ye(e,t,n);return r(e,i).catch((async i=>{if("AUDIT"===e._getRecaptchaConfig()?.getProviderEnforcementState("PHONE_PROVIDER")&&("auth/missing-recaptcha-token"===i.code||"auth/invalid-app-credential"===i.code)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`);const i=await Ye(e,t,n,!1,!0);return r(e,i)}return Promise.reject(i)}))}{const i=await Ye(e,t,n,!1,!0);return r(e,i)}}return Promise.reject(i+" provider is not supported.")}async function Xe(e){const t=Le(e),n=await W(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new j(n);if(null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()){const e=new ze(t);e.verify()}}
1095/**
1096 * @license
1097 * Copyright 2020 Google LLC
1098 *
1099 * Licensed under the Apache License, Version 2.0 (the "License");
1100 * you may not use this file except in compliance with the License.
1101 * You may obtain a copy of the License at
1102 *
1103 *   http://www.apache.org/licenses/LICENSE-2.0
1104 *
1105 * Unless required by applicable law or agreed to in writing, software
1106 * distributed under the License is distributed on an "AS IS" BASIS,
1107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1108 * See the License for the specific language governing permissions and
1109 * limitations under the License.
1110 */function Je(e,t){const n=(0,r.qX)(e,"auth");if(n.isInitialized()){const e=n.getImmediate(),r=n.getOptions();if((0,i.vZ)(r,t??{}))return e;p(e,"already-initialized")}const a=n.initialize({options:t});return a}function Ze(e,t){const n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map(de);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}function Qe(e,t,n){const r=Le(e);_(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const a=!!n?.disableWarnings,o=et(t),{host:s,port:l}=tt(t),u=null===l?"":`:${l}`,c={url:`${o}//${s}${u}/`},d=Object.freeze({host:s,port:l,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:a})});if(!r._canInitEmulator)return _(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),void _((0,i.vZ)(c,r.config.emulator)&&(0,i.vZ)(d,r.emulatorConfig),r,"emulator-config-failed");r.config.emulator=c,r.emulatorConfig=d,r.settings.appVerificationDisabledForTesting=!0,(0,i.Xx)(s)?(0,i.Uo)(`${o}//${s}${u}`):a||rt()}function et(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function tt(e){const t=et(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:nt(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:nt(t)}}}function nt(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}function rt(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}
1111/**
1112 * @license
1113 * Copyright 2020 Google LLC
1114 *
1115 * Licensed under the Apache License, Version 2.0 (the "License");
1116 * you may not use this file except in compliance with the License.
1117 * You may obtain a copy of the License at
1118 *
1119 *   http://www.apache.org/licenses/LICENSE-2.0
1120 *
1121 * Unless required by applicable law or agreed to in writing, software
1122 * distributed under the License is distributed on an "AS IS" BASIS,
1123 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1124 * See the License for the specific language governing permissions and
1125 * limitations under the License.
1126 */ze.scriptInjectionDeferred=null;class it{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return b("not implemented")}_getIdTokenResponse(e){return b("not implemented")}_linkToIdToken(e,t){return b("not implemented")}_getReauthenticationResolver(e){return b("not implemented")}}
1127/**
1128 * @license
1129 * Copyright 2020 Google LLC
1130 *
1131 * Licensed under the Apache License, Version 2.0 (the "License");
1132 * you may not use this file except in compliance with the License.
1133 * You may obtain a copy of the License at
1134 *
1135 *   http://www.apache.org/licenses/LICENSE-2.0
1136 *
1137 * Unless required by applicable law or agreed to in writing, software
1138 * distributed under the License is distributed on an "AS IS" BASIS,
1139 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1140 * See the License for the specific language governing permissions and
1141 * limitations under the License.
1142 */async function at(e,t){return L(e,"POST","/v1/accounts:signUp",t)}
1143/**
1144 * @license
1145 * Copyright 2020 Google LLC
1146 *
1147 * Licensed under the Apache License, Version 2.0 (the "License");
1148 * you may not use this file except in compliance with the License.
1149 * You may obtain a copy of the License at
1150 *
1151 *   http://www.apache.org/licenses/LICENSE-2.0
1152 *
1153 * Unless required by applicable law or agreed to in writing, software
1154 * distributed under the License is distributed on an "AS IS" BASIS,
1155 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1156 * See the License for the specific language governing permissions and
1157 * limitations under the License.
1158 */
1159async function ot(e,t){return R(e,"POST","/v1/accounts:signInWithPassword",N(e,t))}async function st(e,t){return L(e,"POST","/v1/accounts:sendOobCode",N(e,t))}async function lt(e,t){return st(e,t)}
1160/**
1161 * @license
1162 * Copyright 2020 Google LLC
1163 *
1164 * Licensed under the Apache License, Version 2.0 (the "License");
1165 * you may not use this file except in compliance with the License.
1166 * You may obtain a copy of the License at
1167 *
1168 *   http://www.apache.org/licenses/LICENSE-2.0
1169 *
1170 * Unless required by applicable law or agreed to in writing, software
1171 * distributed under the License is distributed on an "AS IS" BASIS,
1172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1173 * See the License for the specific language governing permissions and
1174 * limitations under the License.
1175 */
1176async function ut(e,t){return R(e,"POST","/v1/accounts:signInWithEmailLink",N(e,t))}async function ct(e,t){return R(e,"POST","/v1/accounts:signInWithEmailLink",N(e,t))}
1177/**
1178 * @license
1179 * Copyright 2020 Google LLC
1180 *
1181 * Licensed under the Apache License, Version 2.0 (the "License");
1182 * you may not use this file except in compliance with the License.
1183 * You may obtain a copy of the License at
1184 *
1185 *   http://www.apache.org/licenses/LICENSE-2.0
1186 *
1187 * Unless required by applicable law or agreed to in writing, software
1188 * distributed under the License is distributed on an "AS IS" BASIS,
1189 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1190 * See the License for the specific language governing permissions and
1191 * limitations under the License.
1192 */class dt extends it{constructor(e,t,n,r=null){super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new dt(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new dt(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if(t?.email&&t?.password){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const t={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Ke(e,t,"signInWithPassword",ot,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return ut(e,{email:this._email,oobCode:this._password});default:p(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":const n={idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Ke(e,n,"signUpPassword",at,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return ct(e,{idToken:t,email:this._email,oobCode:this._password});default:p(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}
1193/**
1194 * @license
1195 * Copyright 2020 Google LLC
1196 *
1197 * Licensed under the Apache License, Version 2.0 (the "License");
1198 * you may not use this file except in compliance with the License.
1199 * You may obtain a copy of the License at
1200 *
1201 *   http://www.apache.org/licenses/LICENSE-2.0
1202 *
1203 * Unless required by applicable law or agreed to in writing, software
1204 * distributed under the License is distributed on an "AS IS" BASIS,
1205 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1206 * See the License for the specific language governing permissions and
1207 * limitations under the License.
1208 */async function ht(e,t){return R(e,"POST","/v1/accounts:signInWithIdp",N(e,t))}
1209/**
1210 * @license
1211 * Copyright 2020 Google LLC
1212 *
1213 * Licensed under the Apache License, Version 2.0 (the "License");
1214 * you may not use this file except in compliance with the License.
1215 * You may obtain a copy of the License at
1216 *
1217 *   http://www.apache.org/licenses/LICENSE-2.0
1218 *
1219 * Unless required by applicable law or agreed to in writing, software
1220 * distributed under the License is distributed on an "AS IS" BASIS,
1221 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1222 * See the License for the specific language governing permissions and
1223 * limitations under the License.
1224 */const pt="http://localhost";class ft extends it{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new ft(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):p("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1224once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r,...i}=t;if(!n||!r)return null;const a=new ft(n,r);return a.idToken=i.idToken||void 0,a.accessToken=i.accessToken||void 0,a.secret=i.secret,a.nonce=i.nonce,a.pendingToken=i.pendingToken||null,a}_getIdTokenResponse(e){const t=this.buildRequest();return ht(e,t)}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,ht(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,ht(e,t)}buildRequest(){const e={requestUri:pt,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t["id_token"]=this.idToken),this.accessToken&&(t["access_token"]=this.accessToken),this.secret&&(t["oauth_token_secret"]=this.secret),t["providerId"]=this.providerId,this.nonce&&!this.pendingToken&&(t["nonce"]=this.nonce),e.postBody=(0,i.xO)(t)}return e}}
1225/**
1226 * @license
1227 * Copyright 2020 Google LLC
1228 *
1229 * Licensed under the Apache License, Version 2.0 (the "License");
1230 * you may not use this file except in compliance with the License.
1231 * You may obtain a copy of the License at
1232 *
1233 *   http://www.apache.org/licenses/LICENSE-2.0
1234 *
1235 * Unless required by applicable law or agreed to in writing, software
1236 * distributed under the License is distributed on an "AS IS" BASIS,
1237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1238 * See the License for the specific language governing permissions and
1239 * limitations under the License.
1240 */async function mt(e,t){return L(e,"POST","/v1/accounts:sendVerificationCode",N(e,t))}async function vt(e,t){return R(e,"POST","/v1/accounts:signInWithPhoneNumber",N(e,t))}async function gt(e,t){const n=await R(e,"POST","/v1/accounts:signInWithPhoneNumber",N(e,t));if(n.temporaryProof)throw U(e,"account-exists-with-different-credential",n);return n}const yt={["USER_NOT_FOUND"]:"user-not-found"};async function _t(e,t){const n={...t,operation:"REAUTH"};return R(e,"POST","/v1/accounts:signInWithPhoneNumber",N(e,n),yt)}
1241/**
1242 * @license
1243 * Copyright 2020 Google LLC
1244 *
1245 * Licensed under the Apache License, Version 2.0 (the "License");
1246 * you may not use this file except in compliance with the License.
1247 * You may obtain a copy of the License at
1248 *
1249 *   http://www.apache.org/licenses/LICENSE-2.0
1250 *
1251 * Unless required by applicable law or agreed to in writing, software
1252 * distributed under the License is distributed on an "AS IS" BASIS,
1253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1254 * See the License for the specific language governing permissions and
1255 * limitations under the License.
1256 */class bt extends it{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new bt({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new bt({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return vt(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return gt(e,{idToken:t,...this._makeVerificationRequest()})}_getReauthenticationResolver(e){return _t(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new bt({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}
1257/**
1258 * @license
1259 * Copyright 2020 Google LLC
1260 *
1261 * Licensed under the Apache License, Version 2.0 (the "License");
1262 * you may not use this file except in compliance with the License.
1263 * You may obtain a copy of the License at
1264 *
1265 *   http://www.apache.org/licenses/LICENSE-2.0
1266 *
1267 * Unless required by applicable law or agreed to in writing, software
1268 * distributed under the License is distributed on an "AS IS" BASIS,
1269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1270 * See the License for the specific language governing permissions and
1271 * limitations under the License.
1272 */function Tt(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function wt(e){const t=(0,i.zd)((0,i.pd)(e))["link"],n=t?(0,i.zd)((0,i.pd)(t))["deep_link_id"]:null,r=(0,i.zd)((0,i.pd)(e))["deep_link_id"],a=r?(0,i.zd)((0,i.pd)(r))["link"]:null;return a||r||n||t||e}class St{constructor(e){const t=(0,i.zd)((0,i.pd)(e)),n=t["apiKey"]??null,r=t["oobCode"]??null,a=Tt(t["mode"]??null);_(n&&r&&a,"argument-error"),this.apiKey=n,this.operation=a,this.code=r,this.continueUrl=t["continueUrl"]??null,this.languageCode=t["lang"]??null,this.tenantId=t["tenantId"]??null}static parseLink(e){const t=wt(e);try{return new St(t)}catch{return null}}}
1273/**
1274 * @license
1275 * Copyright 2020 Google LLC
1276 *
1277 * Licensed under the Apache License, Version 2.0 (the "License");
1278 * you may not use this file except in compliance with the License.
1279 * You may obtain a copy of the License at
1280 *
1281 *   http://www.apache.org/licenses/LICENSE-2.0
1282 *
1283 * Unless required by applicable law or agreed to in writing, software
1284 * distributed under the License is distributed on an "AS IS" BASIS,
1285 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1286 * See the License for the specific language governing permissions and
1287 * limitations under the License.
1288 */
1289class kt{constructor(){this.providerId=kt.PROVIDER_ID}static credential(e,t){return dt._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=St.parseLink(t);return _(n,"argument-error"),dt._fromEmailAndCode(e,n.code,n.tenantId)}}kt.PROVIDER_ID="password",kt.EMAIL_PASSWORD_SIGN_IN_METHOD="password",kt.EMAIL_LINK_SIGN_IN_METHOD="emailLink";
1290/**
1291 * @license
1292 * Copyright 2020 Google LLC
1293 *
1294 * Licensed under the Apache License, Version 2.0 (the "License");
1295 * you may not use this file except in compliance with the License.
1296 * You may obtain a copy of the License at
1297 *
1298 *   http://www.apache.org/licenses/LICENSE-2.0
1299 *
1300 * Unless required by applicable law or agreed to in writing, software
1301 * distributed under the License is distributed on an "AS IS" BASIS,
1302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1303 * See the License for the specific language governing permissions and
1304 * limitations under the License.
1305 */
1306class Ct{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}
1307/**
1308 * @license
1309 * Copyright 2019 Google LLC
1310 *
1311 * Licensed under the Apache License, Version 2.0 (the "License");
1312 * you may not use this file except in compliance with the License.
1313 * You may obtain a copy of the License at
1314 *
1315 *   http://www.apache.org/licenses/LICENSE-2.0
1316 *
1317 * Unless required by applicable law or agreed to in writing, software
1318 * distributed under the License is distributed on an "AS IS" BASIS,
1319 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1320 * See the License for the specific language governing permissions and
1321 * limitations under the License.
1322 */class Et extends Ct{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class It extends Et{static credentialFromJSON(e){const t="string"===typeof e?JSON.parse(e):e;return _("providerId"in t&&"signInMethod"in t,"argument-error"),ft._fromParams(t)}credential(e){return this._credential({...e,nonce:e.rawNonce})}_credential(e){return _(e.idToken||e.accessToken,"argument-error"),ft._fromParams({...e,providerId:this.providerId,sign
vendor: 4,287 bytes, lines 1322-1377
1322InMethod:this.providerId})}static credentialFromResult(e){return It.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return It.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:r,pendingToken:i,nonce:a,providerId:o}=e;if(!n&&!r&&!t&&!i)return null;if(!o)return null;try{return new It(o)._credential({idToken:t,accessToken:n,nonce:a,pendingToken:i})}catch(s){return null}}}
1323/**
1324 * @license
1325 * Copyright 2020 Google LLC
1326 *
1327 * Licensed under the Apache License, Version 2.0 (the "License");
1328 * you may not use this file except in compliance with the License.
1329 * You may obtain a copy of the License at
1330 *
1331 *   http://www.apache.org/licenses/LICENSE-2.0
1332 *
1333 * Unless required by applicable law or agreed to in writing, software
1334 * distributed under the License is distributed on an "AS IS" BASIS,
1335 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1336 * See the License for the specific language governing permissions and
1337 * limitations under the License.
1338 */class xt extends Et{constructor(){super("facebook.com")}static credential(e){return ft._fromParams({providerId:xt.PROVIDER_ID,signInMethod:xt.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return xt.credentialFromTaggedObject(e)}static credentialFromError(e){return xt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return xt.credential(e.oauthAccessToken)}catch{return null}}}xt.FACEBOOK_SIGN_IN_METHOD="facebook.com",xt.PROVIDER_ID="facebook.com";
1339/**
1340 * @license
1341 * Copyright 2020 Google LLC
1342 *
1343 * Licensed under the Apache License, Version 2.0 (the "License");
1344 * you may not use this file except in compliance with the License.
1345 * You may obtain a copy of the License at
1346 *
1347 *   http://www.apache.org/licenses/LICENSE-2.0
1348 *
1349 * Unless required by applicable law or agreed to in writing, software
1350 * distributed under the License is distributed on an "AS IS" BASIS,
1351 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1352 * See the License for the specific language governing permissions and
1353 * limitations under the License.
1354 */
1355class At extends Et{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return ft._fromParams({providerId:At.PROVIDER_ID,signInMethod:At.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return At.credentialFromTaggedObject(e)}static credentialFromError(e){return At.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:t,oauthAccessToken:n}=e;if(!t&&!n)return null;try{return At.credential(t,n)}catch{return null}}}At.GOOGLE_SIGN_IN_METHOD="google.com",At.PROVIDER_ID="google.com";
1356/**
1357 * @license
1358 * Copyright 2020 Google LLC
1359 *
1360 * Licensed under the Apache License, Version 2.0 (the "License");
1361 * you may not use this file except in compliance with the License.
1362 * You may obtain a copy of the License at
1363 *
1364 *   http://www.apache.org/licenses/LICENSE-2.0
1365 *
1366 * Unless required by applicable law or agreed to in writing, software
1367 * distributed under the License is distributed on an "AS IS" BASIS,
1368 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1369 * See the License for the specific language governing permissions and
1370 * limitations under the License.
1371 */
1372class Pt extends Et{constructor(){super("github.com")}static credential(e){return ft._fromParams({providerId:Pt.PROVIDER_ID,signInMethod:Pt.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Pt.credentialFromTaggedObject(e)}static credentialFromError(e){return Pt.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e))return null;if(!e.oauthAccessToken)return null;try{return Pt.credential(e.oauthAccessToken)}catch{return null}}}Pt.GITHUB_SIGN_IN_METHOD="github.com",Pt.PROVIDER_ID="github.com";
1373/**
1374 * @license
1375 * Copyright 2020 Google LLC
1376 *
1377 * Licensed under the Apache License, Version 2.0 (the "License");
1378 * you may not use this file except in compliance with the License.
1379 * You may obtain a copy of the License at
1380 *
1381 *   http://www.apache.org/licenses/LICENSE-2.0
1382 *
1383 * Unless required by applicable law or agreed to in writing, software
1384 * distributed under the License is distributed on an "AS IS" BASIS,
1385 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1386 * See the License for the specific language governing permissions and
1387 * limitations under the License.
1388 */
1389class $t extends Et{constructor(){super("twitter.com")}static credential(e,t){return ft._fromParams({providerId:$t.PROVIDER_ID,signInMethod:$t.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return $t.credentialFromTaggedObject(e)}static credentialFromError(e){return $t.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:t,oauthTokenSecret:n}=e;if(!t||!n)return null;try{return $t.credential(t,n)}catch{return null}}}
1390/**
1391 * @license
1392 * Copyright 2020 Google LLC
1393 *
1394 * Licensed under the Apache License, Version 2.0 (the "License");
1395 * you may not use this file except in compliance with the License.
1396 * You may obtain a copy of the License at
1397 *
1398 *   http://www.apache.org/licenses/LICENSE-2.0
1399 *
1400 * Unless required by applicable law or agreed to in writing, software
1401 * distributed under the License is distributed on an "AS IS" BASIS,
1402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1403 * See the License for the specific language governing permissions and
1404 * limitations under the License.
1405 */
1406async function Ot(e,t){return R(e,"POST","/v1/accounts:signUp",N(e,t))}
1407/**
1408 * @license
1409 * Copyright 2020 Google LLC
1410 *
1411 * Licensed under the Apache License, Version 2.0 (the "License");
1412 * you may not use this file except in compliance with the License.
1413 * You may obtain a copy of the License at
1414 *
1415 *   http://www.apache.org/licenses/LICENSE-2.0
1416 *
1417 * Unless required by applicable law or agreed to in writing, software
1418 * distributed under the License is distributed on an "AS IS" BASIS,
1419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1420 * See the License for the specific language governing permissions and
1421 * limitations under the License.
1422 */$t.TWITTER_SIGN_IN_METHOD="twitter.com",$t.PROVIDER_ID="twitter.com";class Nt{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n,r=!1){const i=await ue._fromIdTokenResponse(e,n,r),a=Lt(n),o=new Nt({user:i,providerId:a,_tokenResponse:n,operationType:t});return o}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Lt(n);return new Nt({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Lt(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}
1423/**
1424 * @license
1425 * Copyright 2020 Google LLC
1426 *
1427 * Licensed under the Apache License, Version 2.0 (the "License");
1428 * you may not use this file except in compliance with the License.
1429 * You may obtain a copy of the License at
1430 *
1431 *   http://www.apache.org/licenses/LICENSE-2.0
1432 *
1433 * Unless required by applicable law or agreed to in writing, software
1434 * distributed under the License is distributed on an "AS IS" BASIS,
1435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1436 * See the License for the specific language governing permissions and
1437 * limitations under the License.
1438 */
1439/**
1440 * @license
1441 * Copyright 2020 Google LLC
1442 *
1443 * Licensed under the Apache License, Version 2.0 (the "License");
1444 * you may not use this file except in compliance with the License.
1445 * You may obtain a copy of the License at
1446 *
1447 *   http://www.apache.org/licenses/LICENSE-2.0
1448 *
1449 * Unless required by applicable law or agreed to in writing, software
1450 * distributed under the License is distributed on an "AS IS" BASIS,
1451 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1452 * See the License for the specific language governing permissions and
1453 * limitations under the License.
1454 */
1455class Dt extends i.ZR{constructor(e,t,n,r){super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,Dt.prototype),this.customData={appName:e.n
vendor: 4,359 bytes, lines 1455-1526
1455ame,tenantId:e.tenantId??void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new Dt(e,t,n,r)}}function Rt(e,t,n,r){const i="reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e);return i.catch((n=>{if("auth/multi-factor-auth-required"===n.code)throw Dt._fromErrorAndOperation(e,n,t,r);throw n}))}
1456/**
1457 * @license
1458 * Copyright 2020 Google LLC
1459 *
1460 * Licensed under the Apache License, Version 2.0 (the "License");
1461 * you may not use this file except in compliance with the License.
1462 * You may obtain a copy of the License at
1463 *
1464 *   http://www.apache.org/licenses/LICENSE-2.0
1465 *
1466 * Unless required by applicable law or agreed to in writing, software
1467 * distributed under the License is distributed on an "AS IS" BASIS,
1468 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1469 * See the License for the specific language governing permissions and
1470 * limitations under the License.
1471 */async function Ft(e,t,n=!1){const r=await J(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Nt._forOperation(e,"link",r)}
1472/**
1473 * @license
1474 * Copyright 2019 Google LLC
1475 *
1476 * Licensed under the Apache License, Version 2.0 (the "License");
1477 * you may not use this file except in compliance with the License.
1478 * You may obtain a copy of the License at
1479 *
1480 *   http://www.apache.org/licenses/LICENSE-2.0
1481 *
1482 * Unless required by applicable law or agreed to in writing, software
1483 * distributed under the License is distributed on an "AS IS" BASIS,
1484 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1485 * See the License for the specific language governing permissions and
1486 * limitations under the License.
1487 */
1488async function Mt(e,t,n=!1){const{auth:i}=e;if((0,r.rh)(i.app))return Promise.reject(v(i));const a="reauthenticate";try{const r=await J(e,Rt(i,a,t,e),n);_(r.idToken,i,"internal-error");const o=K(r.idToken);_(o,i,"internal-error");const{sub:s}=o;return _(e.uid===s,i,"user-mismatch"),Nt._forOperation(e,a,r)}catch(o){throw"auth/user-not-found"===o?.code&&p(i,"user-mismatch"),o}}
1489/**
1490 * @license
1491 * Copyright 2020 Google LLC
1492 *
1493 * Licensed under the Apache License, Version 2.0 (the "License");
1494 * you may not use this file except in compliance with the License.
1495 * You may obtain a copy of the License at
1496 *
1497 *   http://www.apache.org/licenses/LICENSE-2.0
1498 *
1499 * Unless required by applicable law or agreed to in writing, software
1500 * distributed under the License is distributed on an "AS IS" BASIS,
1501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1502 * See the License for the specific language governing permissions and
1503 * limitations under the License.
1504 */async function Vt(e,t,n=!1){if((0,r.rh)(e.app))return Promise.reject(v(e));const i="signIn",a=await Rt(e,i,t),o=await Nt._fromIdTokenResponse(e,i,a);return n||await e._updateCurrentUser(o.user),o}async function Ut(e,t){return Vt(Le(e),t)}
1505/**
1506 * @license
1507 * Copyright 2020 Google LLC
1508 *
1509 * Licensed under the Apache License, Version 2.0 (the "License");
1510 * you may not use this file except in compliance with the License.
1511 * You may obtain a copy of the License at
1512 *
1513 *   http://www.apache.org/licenses/LICENSE-2.0
1514 *
1515 * Unless required by applicable law or agreed to in writing, software
1516 * distributed under the License is distributed on an "AS IS" BASIS,
1517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1518 * See the License for the specific language governing permissions and
1519 * limitations under the License.
1520 */
1521function Bt(e,t,n){_(n.url?.length>0,e,"invalid-continue-uri"),_("undefined"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),_("undefined"===typeof n.linkDomain||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(_(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(_(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}
1522/**
1523 * @license
1524 * Copyright 2020 Google LLC
1525 *
1526 * Licensed under the Apache License, Version 2.0 (the "License");
1527 * you may not use this file except in compliance with the License.
1528 * You may obtain a copy of the License at
1529 *
1530 *   http://www.apache.org/licenses/LICENSE-2.0
1531 *
1532 * Unless required by applicable law or agreed to in writing, software
1533 * distributed under the License is distributed on an "AS IS" BASIS,
1534 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1535 * See the License for the specific language governing permissions and
1536 * limitations under the License.
1537 */async function jt(e){const t=Le(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function Wt(e,t,n){const r=Le(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&Bt(r,i,n),await Ke(r,i,"getOobCode",lt,"EMAIL_PASSWORD_PROVIDER")}async function Ht(e,t,n){if((0,r.rh)(e.app))return Promise.reject(v(e));const i=Le(e),a={returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},o=Ke(i,a,"signUpPassword",Ot,"EMAIL_PASSWORD_PROVIDER"),s=await o.catch((t=>{throw"auth/password-does-not-meet-requirements"===t.code&&jt(e),t})),l=await Nt._fromIdTokenResponse(i,"signIn",s);return await i._updateCurrentUser(l.user),l}function qt(e,t,n){return(0,r.rh)(e.app)?Promise.reject(v(e)):Ut((0,i.m9)(e),kt.credential(t,n)).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&jt(e),t}))}
1538/**
1539 * @license
1540 * Copyright 2020 Google LLC
1541 *
1542 * Licensed under the Apache License, Version 2.0 (the "License");
1543 * you may not use this file except in compliance with the License.
1544 * You may obtain a copy of the License at
1545 *
1546 *   http://www.apache.org/licenses/LICENSE-2.0
1547 *
1548 * Unless required by applicable law or agreed to in writing, software
1549 * distributed under the License is distributed on an "AS IS" BASIS,
1550 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1551 * See the License for the specific language governing permissions and
1552 * limitations under the License.
1553 */function Gt(e,t,n,r){return(0,i.m9)(e).onIdTokenChanged(t,n,r)}function zt(e,t,n){return(0,i.m9)(e).beforeAuthStateChanged(t,n)}function Yt(e,t,n,r){return(0,i.m9)(e).onAuthStateChanged(t,n,r)}function Kt(e){return(0,i.m9)(e).signOut()}
1554/**
1555 * @license
1556 * Copyright 2020 Google LLC
1557 *
1558 * Licensed under the Apache License, Version 2.0 (the "License");
1559 * you may not use this file except in compliance with the License.
1560 * You may obtain a copy of the License at
1561 *
1562 *   http://www.apache.org/licenses/LICENSE-2.0
1563 *
1564 * Unless required by applicable law or agreed to in writing, software
1565 * distributed under the License is distributed on an "AS IS" BASIS,
1566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1567 * See the License for the specific language governing permissions and
1568 * limitations under the License.
1569 */
1570function Xt(e,t){return L(e,"POST","/v2/accounts/mfaEnrollment:start",N(e,t))}function Jt(e,t){return L(e,"POST","/v2/accounts/mfaEnrollment:finalize",N(e,t))}function Zt(e,t){return L(e,"POST","/v2/accounts/mfaEnrollment:start",N(e,t))}function Qt(e,t){return L(e,"POST","/v2/accounts/mfaEnrollment:finalize",N(e,t))}new WeakMap;const en="__sak";
1571/**
1572 * @license
1573 * Copyright 2019 Google LLC
1574 *
1575 * Licensed under the Apache License, Version 2.0 (the "License");
1576 * you may not use this file except in compliance with the License.
1577 * You may obtain a copy of the License at
1578 *
1579 *   http://www.apache.org/licenses/LICENSE-2.0
1580 *
1581 * Unless required by applicable law or agreed to in writing, software
1582 * distributed under the License is distributed on an "AS IS" BASIS,
1583 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1584 * See the License for the specific language governing permissions and
1585 * limitations under the License.
1586 */class tn{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(en,"1"),this.storage.removeItem(en),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}
1587/**
1588 * @license
1589 * Copyright 2020 Google LLC
1590 *
1591 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 4,129 bytes, lines 1592-1618
1592 * you may not use this file except in compliance with the License.
1593 * You may obtain a copy of the License at
1594 *
1595 *   http://www.apache.org/licenses/LICENSE-2.0
1596 *
1597 * Unless required by applicable law or agreed to in writing, software
1598 * distributed under the License is distributed on an "AS IS" BASIS,
1599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1600 * See the License for the specific language governing permissions and
1601 * limitations under the License.
1602 */const nn=1e3,rn=10;class an extends tn{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Ie(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;t?this.detachListener():this.stopPolling();const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);Ee()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,rn):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),nn)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}an.type="LOCAL";const on=an,sn=1e3;
1603/**
1604 * @license
1605 * Copyright 2025 Google LLC
1606 *
1607 * Licensed under the Apache License, Version 2.0 (the "License");
1608 * you may not use this file except in compliance with the License.
1609 * You may obtain a copy of the License at
1610 *
1611 *   http://www.apache.org/licenses/LICENSE-2.0
1612 *
1613 * Unless required by applicable law or agreed to in writing, software
1614 * distributed under the License is distributed on an "AS IS" BASIS,
1615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1616 * See the License for the specific language governing permissions and
1617 * limitations under the License.
1618 */function ln(e){const t=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),n=RegExp(`${t}=([^;]+)`);return document.cookie.match(n)?.[1]??null}function un(e){const t="http:"===window.location.protocol;return`${t?"__dev_":"__HOST-"}FIREBASE_${e.split(":")[3]}`}class cn{constructor(){this.type="COOKIE",this.listenerUnsubscribes=new Map}_getFinalTarget(e){if(void 0===typeof window)return e;const t=new URL(`${window.location.origin}/__cookies__`);return t.searchParams.set("finalTarget",e),t}async _isAvailable(){return!("boolean"===typeof isSecureContext&&!isSecureContext)&&("undefined"!==typeof navigator&&"undefined"!==typeof document&&(navigator.cookieEnabled??!0))}async _set(e,t){}async _get(e){if(!this._isAvailable())return null;const t=un(e);if(window.cookieStore){const e=await window.cookieStore.get(t);return e?.value}return ln(t)}async _remove(e){if(!this._isAvailable())return;const t=await this._get(e);if(!t)return;const n=un(e);document.cookie=`${n}=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;
1618Priority=High`,await fetch("/__cookies__",{method:"DELETE"}).catch((()=>{}))}_addListener(e,t){if(!this._isAvailable())return;const n=un(e);if(window.cookieStore){const e=e=>{const r=e.changed.find((e=>e.name===n));r&&t(r.value);const i=e.deleted.find((e=>e.name===n));i&&t(null)},r=()=>window.cookieStore.removeEventListener("change",e);return this.listenerUnsubscribes.set(t,r),window.cookieStore.addEventListener("change",e)}let r=ln(n);const i=setInterval((()=>{const e=ln(n);e!==r&&(t(e),r=e)}),sn),a=()=>clearInterval(i);this.listenerUnsubscribes.set(t,a)}_removeListener(e,t){const n=this.listenerUnsubscribes.get(t);n&&(n(),this.listenerUnsubscribes.delete(t))}}cn.type="COOKIE";
1619/**
1620 * @license
1621 * Copyright 2020 Google LLC
1622 *
1623 * Licensed under the Apache License, Version 2.0 (the "License");
1624 * you may not use this file except in compliance with the License.
1625 * You may obtain a copy of the License at
1626 *
1627 *   http://www.apache.org/licenses/LICENSE-2.0
1628 *
1629 * Unless required by applicable law or agreed to in writing, software
1630 * distributed under the License is distributed on an "AS IS" BASIS,
1631 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1632 * See the License for the specific language governing permissions and
1633 * limitations under the License.
1634 */
1635class dn extends tn{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}dn.type="SESSION";const hn=dn;
1636/**
1637 * @license
1638 * Copyright 2019 Google LLC
1639 *
1640 * Licensed under the Apache License, Version 2.0 (the "License");
1641 * you may not use this file except in compliance with the License.
1642 * You may obtain a copy of the License at
1643 *
1644 *   http://www.apache.org/licenses/LICENSE-2.0
1645 *
1646 * Unless required by applicable law or agreed to in writing, software
1647 * distributed under the License is distributed on an "AS IS" BASIS,
1648 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1649 * See the License for the specific language governing permissions and
1650 * limitations under the License.
1651 */function pn(e){return Promise.all(e.map((async e=>{try{const t=await e;return{fulfilled:!0,value:t}}catch(t){return{fulfilled:!1,reason:t}}})))}
1652/**
1653 * @license
1654 * Copyright 2019 Google LLC
1655 *
1656 * Licensed under the Apache License, Version 2.0 (the "License");
1657 * you may not use this file except in compliance with the License.
1658 * You may obtain a copy of the License at
1659 *
1660 *   http://www.apache.org/licenses/LICENSE-2.0
1661 *
1662 * Unless required by applicable law or agreed to in writing, software
1663 * distributed under the License is distributed on an "AS IS" BASIS,
1664 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1665 * See the License for the specific language governing permissions and
1666 * limitations under the License.
1667 */class fn{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new fn(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,a=this.handlersMap[r];if(!a?.size)return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const o=Array.from(a).map((async e=>e(t.origin,i))),s=await pn(o);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:s})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}
1668/**
1669 * @license
1670 * Copyright 2020 Google LLC
1671 *
1672 * Licensed under the Apache License, Version 2.0 (the "License");
1673 * you may not use this file except in compliance with the License.
1674 * You may obtain a copy of the License at
1675 *
1676 *   http://www.apache.org/licenses/LICENSE-2.0
1677 *
1678 * Unless required by applicable law or agreed to in writing, softw
1678are
1679 * distributed under the License is distributed on an "AS IS" BASIS,
1680 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1681 * See the License for the specific language governing permissions and
1682 * limitations under the License.
1683 */
1684function mn(e="",t=10){let n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}
1685/**
1686 * @license
1687 * Copyright 2019 Google LLC
1688 *
1689 * Licensed under the Apache License, Version 2.0 (the "License");
1690 * you may not use this file except in compliance with the License.
1691 * You may obtain a copy of the License at
1692 *
1693 *   http://www.apache.org/licenses/LICENSE-2.0
1694 *
1695 * Unless required by applicable law or agreed to in writing, software
1696 * distributed under the License is distributed on an "AS IS" BASIS,
1697 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1698 * See the License for the specific language governing permissions and
1699 * limitations under the License.
1700 */fn.receivers=[];class vn{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,a;return new Promise(((o,s)=>{const l=mn("",20);r.port1.start();const u=setTimeout((()=>{s(new Error("unsupported_event"))}),n);a={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(u),i=setTimeout((()=>{s(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),o(t.data.response);break;default:clearTimeout(u),clearTimeout(i),s(new Error("invalid_response"));break}}},this.handlers.add(a),r.port1.addEventListener("message",a.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{a&&this.removeMessageHandler(a)}))}}
1701/**
1702 * @license
1703 * Copyright 2020 Google LLC
1704 *
1705 * Licensed under the Apache License, Version 2.0 (the "License");
1706 * you may not use this file except in compliance with the License.
1707 * You may obtain a copy of the License at
1708 *
1709 *   http://www.apache.org/licenses/LICENSE-2.0
1710 *
1711 * Unless required by applicable law or agreed to in writing, software
1712 * distributed under the License is distributed on an "AS IS" BASIS,
1713 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1714 * See the License for the specific language governing permissions and
1715 * limitations under the License.
1716 */function gn(){return window}function yn(e){gn().location.href=e}
1717/**
1718 * @license
1719 * Copyright 2020 Google LLC.
1720 *
1721 * Licensed under the Apache License, Version 2.0 (the "License");
1722 * you may not use this file except in compliance with the License.
1723 * You may obtain a copy of the License at
1724 *
1725 *   http://www.apache.org/licenses/LICENSE-2.0
1726 *
1727 * Unless required by applicable law or agreed to in writing, software
1728 * distributed under the License is distributed on an "AS IS" BASIS,
1729 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1730 * See the License for the specific language governing permissions and
1731 * limitations under the License.
1732 */function _n(){return"undefined"!==typeof gn()["WorkerGlobalScope"]&&"function"===typeof gn()["importScripts"]}async function bn(){if(!navigator?.serviceWorker)return null;try{const e=await navigator.serviceWorker.ready;return e.active}catch{return null}}function Tn(){return navigator?.serviceWorker?.controller||null}function wn(){return _n()?self:null}
1733/**
1734 * @license
1735 * Copyright 2019 Google LLC
1736 *
1737 * Licensed under the Apache License, Version 2.0 (the "License");
1738 * you may not use this file except in compliance with the License.
1739 * You may obtain a copy of the License at
1740 *
1741 *   http://www.apache.org/licenses/LICENSE-2.0
1742 *
1743 * Unless required by applicable law or agreed to in writing, software
1744 * distributed under the License is distributed on an "AS IS" BASIS,
1745 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1746 * See the License for the specific language governing permissions and
1747 * limitations under the License.
1748 */const Sn="firebaseLocalStorageDb",kn=1,Cn="firebaseLocalStorage",En="fbase_key";class In{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}
vendor: 5,178 bytes, lines 1748-1753
1748))}}function xn(e,t){return e.transaction([Cn],t?"readwrite":"readonly").objectStore(Cn)}function An(){const e=indexedDB.deleteDatabase(Sn);return new In(e).toPromise()}function Pn(){const e=indexedDB.open(Sn,kn);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(Cn,{keyPath:En})}catch(r){n(r)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(Cn)?t(n):(n.close(),await An(),t(await Pn()))}))}))}async function $n(e,t,n){const r=xn(e,!0).put({[En]:t,value:n});return new In(r).toPromise()}async function On(e,t){const n=xn(e,!1).get(t),r=await new In(n).toPromise();return void 0===r?null:r.value}function Nn(e,t){const n=xn(e,!0).delete(t);return new In(n).toPromise()}const Ln=800,Dn=3;class Rn{registerLifecycleListeners(){"undefined"!==typeof window&&"function"===typeof window.addEventListener&&(window.addEventListener("pagehide",this.onPageHide),window.addEventListener("pageshow",this.onPageShow))}unregisterLifecycleListeners(){"undefined"!==typeof window&&"function"===typeof window.removeEventListener&&(window.removeEventListener("pagehide",this.onPageHide),window.removeEventListener("pageshow",this.onPageShow))}constructor(){this.type="LOCAL",this.dbPromise=null,this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.isClosing=!1,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this.onPageHide=()=>{this.isClosing=!0,this.stopPolling(),this.dbPromise&&(this.dbPromise.then((e=>e.close())).catch((()=>{})),this.dbPromise=null)},this.onPageShow=()=>{this.isClosing&&(this.isClosing=!1,Object.keys(this.listeners).length>0&&this.startPolling())},this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.dbPromise||(this.dbPromise=Pn(),this.dbPromise.catch((()=>{this.dbPromise=null}))),this.dbPromise}async _withRetries(e){let t=0;while(1)try{const t=await this._openDb();return await e(t)}catch(n){if(t++>Dn)throw n;if(this.dbPromise){const e=this.dbPromise;this.dbPromise=null;try{const t=await e;t.close()}catch{}}}}async initializeServiceWorkerMessaging(){return _n()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=fn._getInstance(wn()),this.receiver._subscribe("keyChanged",(async(e,t)=>{const n=await this._poll();return{keyProcessed:n.includes(t.key)}})),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){if(this.activeServiceWorker=await bn(),!this.activeServiceWorker)return;this.sender=new vn(this.activeServiceWorker);const e=await this.sender._send("ping",{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&Tn()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{return!!indexedDB&&(await this._withRetries((async e=>{await $n(e,en,"1"),await Nn(e,en)})),!0)}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>$n(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>On(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>Nn(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){if(this.isClosing)return[];try{const e=await this._withRetries((e=>{const t=xn(e,!1).getAll();return new In(t).toPromise()}));if(this.isClosing)return[];if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}catch(e){return this.isClosing||d(`Firebase Auth cross-tab polling failed with error: ${e}`),[]}}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),Ln)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.startPolling(),this.registerLifecycleListeners()),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.stopPolling(),this.unregisterLifecycleListeners())}}Rn.type="LOCAL";const Fn=Rn;
1749/**
1750 * @license
1751 * Copyright 2020 Google LLC
1752 *
1753 * Licensed under the Apache License, Version 2.0 (the "License");
1754 * you may not use this file except in compliance with the License.
1755 * You may obtain a copy of the License at
1756 *
1757 *   http://www.apache.org/licenses/LICENSE-2.0
1758 *
1759 * Unless required by applicable law or agreed to in writing, software
1760 * distributed under the License is distributed on an "AS IS" BASIS,
1761 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1762 * See the License for the specific language governing permissions and
1763 * limitations under the License.
1764 */function Mn(e,t){return L(e,"POST","/v2/accounts/mfaSignIn:start",N(e,t))}function Vn(e,t){return L(e,"POST","/v2/accounts/mfaSignIn:finalize",N(e,t))}function Un(e,t){return L(e,"POST","/v2/accounts/mfaSignIn:finalize",N(e,t))}
1765/**
1766 * @license
1767 * Copyright 2020 Google LLC
1768 *
1769 * Licensed under the Apache License, Version 2.0 (the "License");
1770 * you may not use this file except in compliance with the License.
1771 * You may obtain a copy of the License at
1772 *
1773 *   http://www.apache.org/licenses/LICENSE-2.0
1774 *
1775 * Unless required by applicable law or agreed to in writing, software
1776 * distributed under the License is distributed on an "AS IS" BASIS,
1777 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1778 * See the License for the specific language governing permissions and
1779 * limitations under the License.
1780 */Be("rcb"),new I(3e4,6e4);
1781/**
1782 * @license
1783 * Copyright 2020 Google LLC
1784 *
1785 * Licensed under the Apache License, Version 2.0 (the "License");
1786 * you may not use this file except in compliance with the License.
1787 * You may obtain a copy of the License at
1788 *
1789 *   http://www.apache.org/licenses/LICENSE-2.0
1790 *
1791 * Unless required by applicable law or agreed to in writing, software
1792 * distributed under the License is distributed on an "AS IS" BASIS,
1793 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1794 * See the License for the specific language governing permissions and
1795 * limitations under the License.
1796 */
1797const Bn="recaptcha";async function jn(e,t,n){if(!e._getRecaptchaConfig())try{await Xe(e)}catch(r){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let r;if(r="string"===typeof t?{phoneNumber:t}:t,"session"in r){const t=r.session;if("phoneNumber"in r){_("enroll"===t.type,e,"internal-error");const i={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},a=async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===qe){_(n?.type===Bn,e,"argument-error");const r=await Wn(e,t,n);return Xt(e,r)}return Xt(e,t)},o=Ke(e,i,"mfaSmsEnrollment",a,"PHONE_PROVIDER"),s=await o.catch((e=>Promise.reject(e)));return s.phoneSessionInfo.sessionInfo}{_("signin"===t.type,e,"internal-error");const i=r.multiFactorHint?.uid||r.multiFactorUid;_(i,e,"missing-multi-factor-info");const a={mfaPendingCredential:t.credential,mfaEnrollmentId:i,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},o=async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===qe){_(n?.type===Bn,e,"argument-error");const r=await Wn(e,t,n);return Mn(e,r)}return Mn(e,t)},s=Ke(e,a,"mfaSmsSignIn",o,"PHONE_PROVIDER"),l=await s.catch((e=>Promise.reject(e)));return l.phoneResponseInfo.sessionInfo}}{const t={phoneNumber:r.phoneNumber,clientType:"CLIENT_TYPE_WEB"},i=async(e,t)=>{if(t.captchaResponse===qe){_(n?.type===Bn,e,"argument-error");const r=await Wn(e,t,n);return mt(e,r)}return mt(e,t)},a=Ke(e,t,"sendVerificationCode",i,"PHONE_PROVIDER"),o=await a.catch((e=>Promise.reject(e)));return o.sessionInfo}}finally{n?._reset()}}async function Wn(e,t,n){_(n.type===Bn,e,"argument-error");const r=await n.verify();_("string"===typeof r,e,"argument-error");const i={...t};if("phoneEnrollmentInfo"in i){const e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,n=i.phoneEnrollmentInfo.clientType,a=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:a}}),i}if("phoneSignInInfo"in i){const e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,n=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),i}return Object.assign(i,{recaptchaToken:r}),i}
1798/**
1799 * @license
1800 * Copyright 2020 Google LLC
1801 *
1802 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 9,048 bytes, lines 1803-1900
1803 * you may not use this file except in compliance with the License.
1804 * You may obtain a copy of the License at
1805 *
1806 *   http://www.apache.org/licenses/LICENSE-2.0
1807 *
1808 * Unless required by applicable law or agreed to in writing, software
1809 * distributed under the License is distributed on an "AS IS" BASIS,
1810 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1811 * See the License for the specific language governing permissions and
1812 * limitations under the License.
1813 */class Hn{constructor(e){this.providerId=Hn.PROVIDER_ID,this.auth=Le(e)}verifyPhoneNumber(e,t){return jn(this.auth,e,(0,i.m9)(t))}static credential(e,t){return bt._fromVerification(e,t)}static credentialFromResult(e){const t=e;return Hn.credentialFromTaggedObject(t)}static credentialFromError(e){return Hn.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:t,temporaryProof:n}=e;return t&&n?bt._fromTokenResponse(t,n):null}}
1814/**
1815 * @license
1816 * Copyright 2021 Google LLC
1817 *
1818 * Licensed under the Apache License, Version 2.0 (the "License");
1819 * you may not use this file except in compliance with the License.
1820 * You may obtain a copy of the License at
1821 *
1822 *   http://www.apache.org/licenses/LICENSE-2.0
1823 *
1824 * Unless required by applicable law or agreed to in writing, software
1825 * distributed under the License is distributed on an "AS IS" BASIS,
1826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1827 * See the License for the specific language governing permissions and
1828 * limitations under the License.
1829 */
1830function qn(e,t){return t?de(t):(_(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
1831/**
1832 * @license
1833 * Copyright 2019 Google LLC
1834 *
1835 * Licensed under the Apache License, Version 2.0 (the "License");
1836 * you may not use this file except in compliance with the License.
1837 * You may obtain a copy of the License at
1838 *
1839 *   http://www.apache.org/licenses/LICENSE-2.0
1840 *
1841 * Unless required by applicable law or agreed to in writing, software
1842 * distributed under the License is distributed on an "AS IS" BASIS,
1843 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1844 * See the License for the specific language governing permissions and
1845 * limitations under the License.
1846 */Hn.PROVIDER_ID="phone",Hn.PHONE_SIGN_IN_METHOD="phone";class Gn extends it{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return ht(e,this._buildIdpRequest())}_linkToIdToken(e,t){return ht(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return ht(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function zn(e){return Vt(e.auth,new Gn(e),e.bypassAuthState)}function Yn(e){const{auth:t,user:n}=e;return _(n,t,"internal-error"),Mt(n,new Gn(e),e.bypassAuthState)}async function Kn(e){const{auth:t,user:n}=e;return _(n,t,"internal-error"),Ft(n,new Gn(e),e.bypassAuthState)}
1847/**
1848 * @license
1849 * Copyright 2020 Google LLC
1850 *
1851 * Licensed under the Apache License, Version 2.0 (the "License");
1852 * you may not use this file except in compliance with the License.
1853 * You may obtain a copy of the License at
1854 *
1855 *   http://www.apache.org/licenses/LICENSE-2.0
1856 *
1857 * Unless required by applicable law or agreed to in writing, software
1858 * distributed under the License is distributed on an "AS IS" BASIS,
1859 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1860 * See the License for the specific language governing permissions and
1861 * limitations under the License.
1862 */class Xn{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:a,type:o}=e;if(a)return void this.reject(a);const s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(s))}catch(l){this.reject(l)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return zn;case"linkViaPopup":case"linkViaRedirect":return Kn;case"reauthViaPopup":case"reauthViaRedirect":return Yn;default:p(this.auth,"internal-error")}}resolve(e){T(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){T(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}
1863/**
1864 * @license
1865 * Copyright 2020 Google LLC
1866 *
1867 * Licensed under the Apache License, Version 2.0 (the "License");
1868 * you may not use this file except in compliance with the License.
1869 * You may obtain a copy of the License at
1870 *
1871 *   http://www.apache.org/licenses/LICENSE-2.0
1872 *
1873 * Unless required by applicable law or agreed to in writing, software
1874 * distributed under the License is distributed on an "AS IS" BASIS,
1875 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1876 * See the License for the specific language governing permissions and
1877 * limitations under the License.
1878 */const Jn=new I(2e3,1e4);async function Zn(e,t,n){if((0,r.rh)(e.app))return Promise.reject(f(e,"operation-not-supported-in-this-environment"));const i=Le(e);g(e,t,Ct);const a=qn(i,n),o=new Qn(i,"signInViaPopup",t,a);return o.executeNotNull()}class Qn extends Xn{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,Qn.currentPopupAction&&Qn.currentPopupAction.cancel(),Qn.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return _(e,this.auth,"internal-error"),e}async onExecution(){T(1===this.filter.length,"Popup operations only handle one event");const e=mn();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(f(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(f(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,Qn.currentPopupAction=null}pollUserCancellation(){const e=()=>{this.authWindow?.window?.closed?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(f(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,Jn.get())};e()}}Qn.currentPopupAction=null;
1879/**
1880 * @license
1881 * Copyright 2020 Google LLC
1882 *
1883 * Licensed under the Apache License, Version 2.0 (the "License");
1884 * you may not use this file except in compliance with the License.
1885 * You may obtain a copy of the License at
1886 *
1887 *   http://www.apache.org/licenses/LICENSE-2.0
1888 *
1889 * Unless required by applicable law or agreed to in writing, software
1890 * distributed under the License is distributed on an "AS IS" BASIS,
1891 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1892 * See the License for the specific language governing permissions and
1893 * limitations under the License.
1894 */
1895const er="pendingRedirect",tr=new Map;class nr extends Xn{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}async execute(){let e=tr.get(this.auth._key());if(!e){try{const t=await rr(this.resolver,this.auth),n=t?await super.execute():null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}tr.set(this.auth._key(),e)}return this.bypassAuthState||tr.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function rr(e,t){const n=or(t),r=ar(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}function ir(e,t){tr.set(e._key(),t)}function ar(e){return de(e._redirectPersistence)}function or(e){return fe(er,e.config.apiKey,e.name)}
1896/**
1897 * @license
1898 * Copyright 2020 Google LLC
1899 *
1900 * Licensed under the Apache License, Version 2.0 (the "License");
1901 * you may not use this file except in compliance with the License.
1902 * You may obtain a copy of the License at
1903 *
1904 *   http://www.apache.org/licenses/LICENSE-2.0
1905 *
1906 * Unless required by applicable law or agreed to in writing, software
1907 * distributed under the License is distributed on an "AS IS" BASIS,
1908 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1909 * See the License for the specific language governing permissions and
1910 * limitations under the License.
1911 */async function sr(e,t,n=!1){if((0,r.rh)(e.app))return Promise.reject(v(e));const i=Le(e),a=qn(i,t),o=new nr(i,a,n),s=await o.execute();return s&&!n&&(delete s.user._redirectEventId,await i._persistUserIfCurrent(s.user),await i._setRedirectUser(null,t)),s}
1912/**
1913 * @license
1914 * Copyright 2020 Google LLC
1915 *
1916 * Licensed under the Apache License, Version 2.0 (the "License");
1917 * you may not use this file except in compliance with the License.
1918 * You may obtain a copy of the License at
1919 *
1920 *   http://www.apache.org/licenses/LICENSE-2.0
1921 *
1922 * Unless required by applicable law or agreed to in writing, software
1923 * distributed under the License is distributed on an "AS IS" BASIS,
1924 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1925 * See the License for the specific language governing permissions and
1926 * limitations under the License.
1927 */
1928const lr=6e5;class ur{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!hr(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){if(e.error&&!dr(e)){const n=e.error.code?.split("auth/")[1]||"internal-error";t.onError(f(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=lr&&this.cachedEventUids.clear(),this.cachedEventUids.has(cr(e))}saveEventToCache(e){this.cachedEventUids.add(cr(e)),this.lastProcessedEventTime=Date.now()}}function cr(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function dr({type:e,error:t}){return"unknown"===e&&"auth/no-auth-event"===t?.code}function hr(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return dr(e);default:return!1}}
1929/**
1930 * @license
1931 * Copyright 2020 Google LLC
1932 *
1933 * Licensed under the Apache License, Version 2.0 (the "License");
1934 * you may not use this file except in compliance with the License.
1935 * You may obtain a copy of the License at
1936 *
1937 *   http://www.apache.org/licenses/LICENSE-2.0
1938 *
1939 * Unless required by applicable law or agreed to in writing, software
1940 * distributed under the License is distributed on an "AS IS" BASIS,
1941 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1942 * See the License for the specific language governing permissions and
1943 * limitations under the License.
1944 */async function pr(e,t={}){return L(e,"GET","/v1/projects",t)}
1945/**
1946 * @license
1947 * Copyright 2020 Google LLC
1948 *
1949 * Licensed under the Apache License, Version 2.0 (the "License");
1950 * you may not use this file except in compliance with the License.
1951 * You may obtain a copy of the License at
1952 *
1953 *   http://www.apache.org/licenses/LICENSE-2.0
1954 *
1955 * Unless required by applicable law or agreed to in writing, software
1956 * distributed under the License is distributed on an "AS IS" BASIS,
1957 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1958 * See the License for the specific language governing permissions and
1959 * limitations under the License.
1960 */const fr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,mr=/^https?/;async function vr(e){if(e.config.emulator)return;const{authorizedDomains:t}=await pr(e);for(const n of t)try{if(gr(n))return}catch{}p(e,"unauthorized-domain")}function gr(e){const t=w(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!mr.test(n))return!1;if(fr.test(e))return r===e;const i=e.replace(/\./g,"\\."),a=new RegExp("^(.+\\."+i+"|"+i+")$","i");return a.test(r)}
1961/**
1962 * @license
1963 * Copyright 2020 Google LLC.
1964 *
1965 * Licensed under the Apache License, Version 2.0 (the "License");
1966 * you may not use this file except in compliance with the License.
1967 * You may obtain a copy of the License at
1968 *
1969 *   http://www.apache.org/licenses/LICENSE-2.0
1970 *
1971 * Unless required by applicable law or agreed to in writing, software
1972 * distributed under the License is distributed on an "AS IS" BASIS,
1973 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1974 * See the License for the specific language governing permissions and
1975 * limitations under the License.
1976 */const yr=new I(3e4,6e4);function _r(){const e=gn().___jsl;if(e?.H)for(const t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function br(e){return new Promise(((t,n)=>{function r(){_r(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{_r(),n(f(e,"network-request-failed"))},timeout:yr.get()})}if(gn().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());else{if(!gn().gapi?.load){const t=Be("iframefcb");return gn()[t]=()=>{gapi.load?r():n(f(e,"network-request-failed"))},Me(`${Ue()}?onload=${t}`).catch((e=>n(e)))}r()}})).catch((e=>{throw Tr=null,e}))}let Tr=null;function wr(e){return Tr=Tr||br(e),Tr}
1977/**
1978 * @license
1979 * Copyright 2020 Google LLC.
1980 *
1981 * Licensed under the Apache License, Version 2.0 (the "License");
1982 * you may not use this file except in compliance with the License.
1983 * You may obtain a copy of the License at
1984 *
1985 *   http://www.apache.org/licenses/LICENSE-2.0
1986 *
1987 * Unless required by applicable law or agreed to in writing, software
1988 * distributed under the License is distributed on an "AS IS" BASIS,
1989 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1990 * See the License for the specific language governing permissions and
1991 * limitations under the License.
1992 */const Sr=new I(5e3,15e3),kr="__/auth/iframe",Cr="emulator/auth/iframe",Er={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Ir=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function xr(e){const t=e.config;_(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?x(t,Cr):`https://${e.config.authDomain}/${kr}`,a={apiKey:t.apiKey,appName:e.name,v:r.Jn},o=Ir.get(e.config.apiHost);o&&(a.eid=o);const s=e._getFrameworks();return s.length&&(a.fw=s.join(",")),`${n}?${(0,i.xO)(a).slice(1)}`}async function Ar(e){const t=await wr(e),n=gn().gapi;return _(n,e,"internal-error"),t.open({where:document.body,url:xr(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Er,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=f(e,"network-request-failed"),a=gn().setTimeout((()=>{r(i)}),Sr.get());function o(){gn().clearTimeout(a),n(t)}t.ping(o).then(o,(()=>{r(i)}))}))))}
1993/**
1994 * @license
1995 * Copyright 2020 Google LLC.
1996 *
1997 * Licensed under the Apache License, Version 2.0 (the "License");
1998 * you may not use this file except in compliance with the License.
1999 * You may obtain a copy of the License at
2000 *
2001 *   http://www.apache.org/licenses/LICENSE-2.0
2002 *
2003 * Unless required by applicable law or agreed to in writing, software
2004 * distributed under the License is distributed on an "AS IS" BASIS,
2005 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2006 * See the License for the specific language governing permissions and
2007 * limitations under the License.
2008 */const Pr={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},$r=500,Or=600,Nr="_blank",Lr="http://localhost";class Dr{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(e){}}}function Rr(e,t,n,r=$r,a=Or){const o=Math.max((window.screen.availHeight-a)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let l="";const u={...Pr,width:r.toString(),height:a.toString(),top:o,left:s},c=(0,i.z$)().toLowerCase();n&&(l=_e(c)?Nr:n),ge(c)&&(t=t||Lr,u.scrollbars="yes");const d=Object.entries(u).reduce(((e,[t,n])=>`${e}${t}=${n},`),"");if(Ce(c)&&"_self"!==l)return Fr(t||"",l),new Dr(null);const h=window.open(t||"",l,d);_(h,e,"popup-blocked");try{h.focus()}catch(p){}return new Dr(h)}function Fr(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");
vendor: 5,576 bytes, lines 2008-2040
2008r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}
2009/**
2010 * @license
2011 * Copyright 2021 Google LLC
2012 *
2013 * Licensed under the Apache License, Version 2.0 (the "License");
2014 * you may not use this file except in compliance with the License.
2015 * You may obtain a copy of the License at
2016 *
2017 *   http://www.apache.org/licenses/LICENSE-2.0
2018 *
2019 * Unless required by applicable law or agreed to in writing, software
2020 * distributed under the License is distributed on an "AS IS" BASIS,
2021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2022 * See the License for the specific language governing permissions and
2023 * limitations under the License.
2024 */const Mr="__/auth/handler",Vr="emulator/auth/handler",Ur=encodeURIComponent("fac");async function Br(e,t,n,a,o,s){_(e.config.authDomain,e,"auth-domain-config-required"),_(e.config.apiKey,e,"invalid-api-key");const l={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:a,v:r.Jn,eventId:o};if(t instanceof Ct){t.setDefaultLanguage(e.languageCode),l.providerId=t.providerId||"",(0,i.xb)(t.getCustomParameters())||(l.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(s||{}))l[e]=t}if(t instanceof Et){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(l.scopes=e.join(","))}e.tenantId&&(l.tid=e.tenantId);const u=l;for(const r of Object.keys(u))void 0===u[r]&&delete u[r];const c=await e._getAppCheckToken(),d=c?`#${Ur}=${encodeURIComponent(c)}`:"";return`${jr(e)}?${(0,i.xO)(u).slice(1)}${d}`}function jr({config:e}){return e.emulator?x(e,Vr):`https://${e.authDomain}/${Mr}`}
2025/**
2026 * @license
2027 * Copyright 2020 Google LLC
2028 *
2029 * Licensed under the Apache License, Version 2.0 (the "License");
2030 * you may not use this file except in compliance with the License.
2031 * You may obtain a copy of the License at
2032 *
2033 *   http://www.apache.org/licenses/LICENSE-2.0
2034 *
2035 * Unless required by applicable law or agreed to in writing, software
2036 * distributed under the License is distributed on an "AS IS" BASIS,
2037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2038 * See the License for the specific language governing permissions and
2039 * limitations under the License.
2040 */const Wr="webStorageSupport";class Hr{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=hn,this._completeRedirectFn=sr,this._overrideRedirectResult=ir}async _openPopup(e,t,n,r){T(this.eventManagers[e._key()]?.manager,"_initialize() not called before _openPopup()");const i=await Br(e,t,n,w(),r);return Rr(e,i,mn())}async _openRedirect(e,t,n,r){await this._originValidation(e);const i=await Br(e,t,n,w(),r);return yn(i),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(T(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await Ar(e),n=new ur(e);return t.register("authEvent",(t=>{_(t?.authEvent,e,"invalid-auth-event");const r=n.onEvent(t.authEvent);return{status:r?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){const n=this.iframes[e._key()];n.send(Wr,{type:Wr},(n=>{const r=n?.[0]?.[Wr];void 0!==r&&t(!!r),p(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=vr(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Ie()||ye()||ke()}}const qr=Hr;class Gr{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return b("unexpected MultiFactorSessionType")}}}class zr extends Gr{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new zr(e)}_finalizeEnroll(e,t,n){return Jt(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return Vn(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class Yr{constructor(){}static assertion(e){return zr._fromCredential(e)}}Yr.FACTOR_ID="phone";class Kr{static assertionForEnrollment(e,t){return Xr._fromSecret(e,t)}static assertionForSignIn(e,t){return Xr._fromEnrollmentId(e,t)}static async generateSecret(e){const t=e;_("undefined"!==typeof t.user?.auth,"internal-error");const n=await Zt(t.user.auth,{idToken:t.credential,totpEnrollmentInfo:{}});return Jr._fromStartTotpMfaEnrollmentResponse(n,t.user.auth)}}Kr.FACTOR_ID="totp";class Xr extends Gr{constructor(e,t,n){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=n}static _fromSecret(e,t){return new Xr(t,void 0,e)}static _fromEnrollmentId(e,t){return new Xr(t,e)}async _finalizeEnroll(e,t,n){return _("undefined"!==typeof this.secret,e,"argument-error"),Qt(e,{idToken:t,displayName:n,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})}async _finalizeSignIn(e,t){_(void 0!==this.enrollmentId&&void 0!==this.otp,e,"argument-error");const n={verificationCode:this.otp};return Un(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:n})}}class Jr{constructor(e,t,n,r,i,a,o){this.sessionInfo=a,this.auth=o,this.secretKey=e,this.hashingAlgorithm=t,this.co
2040deLength=n,this.codeIntervalSeconds=r,this.enrollmentCompletionDeadline=i}static _fromStartTotpMfaEnrollmentResponse(e,t){return new Jr(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){let n=!1;return(Zr(e)||Zr(t))&&(n=!0),n&&(Zr(e)&&(e=this.auth.currentUser?.email||"unknownuser"),Zr(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function Zr(e){return"undefined"===typeof e||0===e?.length}var Qr="@firebase/auth",ei="1.13.6";
2041/**
2042 * @license
2043 * Copyright 2020 Google LLC
2044 *
2045 * Licensed under the Apache License, Version 2.0 (the "License");
2046 * you may not use this file except in compliance with the License.
2047 * You may obtain a copy of the License at
2048 *
2049 *   http://www.apache.org/licenses/LICENSE-2.0
2050 *
2051 * Unless required by applicable law or agreed to in writing, software
2052 * distributed under the License is distributed on an "AS IS" BASIS,
2053 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2054 * See the License for the specific language governing permissions and
2055 * limitations under the License.
2056 */
2057class ti{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;const t=await this.auth.currentUser.getIdToken(e);return{accessToken:t}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e(t?.stsTokenManager.accessToken||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){_(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}
2058/**
2059 * @license
2060 * Copyright 2020 Google LLC
2061 *
2062 * Licensed under the Apache License, Version 2.0 (the "License");
2063 * you may not use this file except in compliance with the License.
2064 * You may obtain a copy of the License at
2065 *
2066 *   http://www.apache.org/licenses/LICENSE-2.0
2067 *
2068 * Unless required by applicable law or agreed to in writing, software
2069 * distributed under the License is distributed on an "AS IS" BASIS,
2070 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2071 * See the License for the specific language governing permissions and
2072 * limitations under the License.
2073 */function ni(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function ri(e){(0,r.Xd)(new o.wA("auth",((t,{options:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("heartbeat"),a=t.getProvider("app-check-internal"),{apiKey:o,authDomain:s}=r.options;_(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:s,clientPlatform:e,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:xe(e)},u=new Ne(r,i,a,l);return Ze(u,n),u}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{const r=e.getProvider("auth-internal");r.initialize()}))),(0,r.Xd)(new o.wA("auth-internal",(e=>{const t=Le(e.getProvider("auth").getImmediate());return(e=>new ti(e))(t)}),"PRIVATE").setInstantiationMode("EXPLICIT")),(0,r.KN)(Qr,ei,ni(e)),(0,r.KN)(Qr,ei,"esm2020")}
2074/**
2075 * @license
2076 * Copyright 2021 Google LLC
2077 *
2078 * Licensed under the Apache License, Version 2.0 (the "License");
2079 * you may not use this file except in compliance with the License.
2080 * You may obtain a copy of the License at
2081 *
2082 *   http://www.apache.org/licenses/LICENSE-2.0
2083 *
2084 * Unless required by applicable law or agreed to in writing, software
2085 * distributed under the License is distributed on an "AS IS" BASIS,
2086 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2087 * See the License for the specific language governing permissions and
2088 * limitations under the License.
2089 */const ii=300,ai=(0,i.Pz)("authIdTokenMaxAge")||ii;let oi=null;const si=e=>async t=>{const n=t&&await t.getIdTokenResult(),r=n&&((new Date).getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>ai)return;const i=n?.token;oi!==i&&(oi=i,await fetch(e,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function li(e=(0,r.Mq)()){const t=(0,r.qX)(e,"auth");if(t.isInitialized())return t.getImmediate();const n=Je(e,{popupRedirectResolver:qr,persistence:[Fn,on,hn]}),a=(0,i.Pz)("authTokenSyncURL");if(a&&"boolean"===typeof isSecureContext&&isSecureContext){const e=new URL(a,location.origin);if(location.origin===e.origin){const t=si(e.toString());zt(n,t,(()=>t(n.currentUser))),Gt(n,(e=>t(e)))}}const o=(0,i.q4)("auth");return o&&Qe(n,`http://${o}`),n}function ui(){return document.getElementsByTagName("head")?.[0]??document}Fe({loadJS(e){return new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=f("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",ui().appendChild(r)}))},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),ri("Browser")},7038:function(e,t,n){"use strict";n.d(t,{U2:function(){return Uo},N8:function(){return Xo},iH:function(){return Fo},t8:function(){return Vo}});var r=n(6771),i=n(75),a=n(9711),o=n(4645);const s="@firebase/database",l="1.1.5";
2090/**
2091 * @license
2092 * Copyright 2019 Google LLC
2093 *
2094 * Licensed under the Apache License, Version 2.0 (the "License");
2095 * you may not use this file except in compliance with the License.
2096 * You may obtain a copy of the License at
2097 *
2098 *   http://www.apache.org/licenses/LICENSE-2.0
2099 *
2100 * Unless required by applicable law or agreed to in writing, software
2101 * distributed under the License is distributed on an "AS IS" BASIS,
2102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2103 * See the License for the specific language governing permissions and
2104 * limitations under the License.
2105 */
2106let u="";function c(e){u=e}
2107/**
2108 * @license
2109 * Copyright 2017 Google LLC
2110 *
2111 * Licensed under the Apache License, Version 2.0 (the "License");
2112 * you may not use this file except in compliance with the License.
2113 * You may obtain a copy of the License at
2114 *
2115 *   http://www.apache.org/licenses/LICENSE-2.0
2116 *
2117 * Unless required by applicable law or agreed to in writing, software
2118 * distributed under the License is distributed on an "AS IS" BASIS,
2119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2120 * See the License for the specific language governing permissions and
2121 * limitations under the License.
2122 */class d{constructor(e){this.domStorage_=e,this.prefix_="firebase:"}set(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),(0,a.Wl)(t))}get(e){const t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:(0,a.cI)(t)}remove(e){this.domStorage_.removeItem(this.prefixedName_(e))}prefixedName_(e){return this.prefix_+e}toString(){return this.domStorage_.toString()}}
2123/**
2124 * @license
2125 * Copyright 2017 Google LLC
2126 *
2127 * Licensed under the Apache License, Version 2.0 (the "License");
2128 * you may not use this file except in compliance with the License.
2129 * You may obtain a copy of the License at
2130 *
2131 *   http://www.apache.org/licenses/LICENSE-2.0
2132 *
2133 * Unless required by applicable law or agreed to in writing, software
2134 * distributed under the License is distributed on an "AS IS" BASIS,
2135 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2136 * See the License for the specific language governing permissions and
2137 * limitations under the License.
2138 */class h{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t}get(e){return(0,a.r3)(this.cache_,e)?this.cache_[e]:null}remove(e){delete this.cache_[e]}}
2139/**
2140 * @license
2141 * Copyright 2017 Google LLC
2142 *
2143 * Licensed under the Apache License, Version 2.0 (the "License");
2144 * you may not use this file except in compliance with the License.
2145 * You may obtain a copy of the License at
2146 *
2147 *   http://www.apache.org/licenses/LICENSE-2.0
2148 *
2149 * Unless required by applicable law or agreed to in writing, software
2150 * distributed under the License is distributed on an "AS IS" BASIS,
2151 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2152 * See the License for the specific language governing permissions and
2153 * limitations under the License.
2154 */const p=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new d(t)}}catch(t){}return new h},f=p("localStorage"),m=p("sessionStorage"),v=new o.Yd("@firebase/database"),g=function(){let e=1;return function(){return e++}}(),y=function(e){const t=(0,a.dS)(e),n=new a.gQ;n.update(t);const r=n.digest();return a.US.encodeByteArray(r)},_=function(...e){let t="";for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)||r&&"object"===typeof r&&"number"===typeof r.length?t+=_.apply(null,r):t+="object"===typeof r?(0,a.Wl)(r):r,t+=" "}return t};let b=null,T=!0;const w=function(e,t){(0,a.hu)(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(v.logLevel=o["in"].VERBOSE,b=v.log.bind(v),t&&m.set("logging_enabled",!0)):"function"===typeof e?b=e:(b=null,m.remove("logging_enabled"))},S=function(...e){if(!0===T&&(T=!1,null===b&&!0===m.get("logging_enabled")&&w(!0)),b){const t=_.apply(null,e);b(t)}},k=function(e){return function(...t){S(e,...t)}},C=function(...e){const t="FIREBASE INTERNAL ERROR: "+_(...e);v.error(t)},E=function(...e){const t=`FIREBASE FATAL ERROR: ${_(...e)}`;throw v.error(t),new Error(t)},I=function(...e){const t="FIREBASE WARNING: "+_(...e);v.warn(t)},x=function(){"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&I("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},A=function(e){return"number"===typeof e&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},P=function(e){if((0,a.Yr)()||"complete"===document.readyState)e();else{let t=!1;const n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(()=>{"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}},$="[MIN_NAME]",O="[MAX_NAME]",N=function(e,t){if(e===t)return 0;if(e===$||t===O)return-1;if(t===$||e===O)return 1;{const n=G(e),r=G(t);return null!==n?null!==r?n-r===0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1}},L=function(e,t){return e===t?0:e<t?-1:1},D=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+(0,a.Wl)(t))},R=function(e){if("object"!==typeof e||null===e)return(0,a.Wl)(e);const t=[];for(const r in e)t.push(r);t.sort();let n="{";for(let r=0;r<t.length;r++)0!==r&&(n+=","),n+=(0,a.Wl)(t[r]),n+=":",n+=R(e[t[r]]);return n+="}",n},F=function(e,t){const n=e.length;if(n<=t)return[e];const r=[];for(let i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function M(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const V=function(e){(0,a.hu)(!A(e),"Invalid JSON number");const t=11,n=52,r=(1<<t-1)-1;let i,o,s,l,u;0===e?(o=0,s=0,i=1/e===-1/0?1:0):(i=e<0,e=Math.abs(e),e>=Math.pow(2,1-r)?(l=Math.min(Math.floor(Math.log(e)/Math.LN2),r),o=l+r,s=Math.round(e*Math.pow(2,n-l)-Math.pow(2,n))):(o=0,s=Math.round(e/Math.pow(2,1-r-n))));const c=[];for(u=n;u;u-=1)c.push(s%2?1:0),s=Math.floor(s/2);for(u=t;u;u-=1)c.push(o%2?1:0),o=Math.floor(o/2);c.push(i?1:0),c.reverse();const d=c.join("");let h="";for(u=0;u<64;u+=8){let e=parseInt(d.substr(u,8),2).toString(16);1===e.length&&(e="0"+e),h+=e}return h.toLowerCase()},U=function(){return!("object"!==typeof window||!window["chrome"]||!window["chrome"]["extension"]||/^chrome/.test(window.location.href))},B=function(){return"object"===typeof Windows&&"object"===typeof Windows.UI};function j(e,t){let n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");const r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}const W=new RegExp("^-?(0*)\\d{1,10}$"),H=-2147483648,q=2147483647,G=function(e){if(W.test(e)){const t=Number(e);if(t>=H&&t<=q)return t}return null},z=function(e){try{e()}catch(t){setTimeout((()=>{const e=t.stack||"";throw I("Exception was thrown by user callback.",e),t}),Math.floor(0))}},Y=function(){const e="object"===typeof window&&window["navigator"]&&window["navigator"]["userAgent"]||"";return e.search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},K=function(e,t){const n=setTimeout(e,t);return"number"===typeof n&&"undefined"!==typeof Deno&&Deno["unrefTimer"]?Deno.unrefTimer(n):"object"===typeof n&&n["unref"]&&n["unref"](),n};
2155/**
2156 * @license
2157 * Copyright 2021 Google LLC
2158 *
2159 * Licensed under the Apache License, Version 2.0 (the "License");
2160 * you may not use this file except in compliance with the License.
2161 * You may obtain a copy of the License at
2162 *
2163 *   http://www.apache.org/licenses/LICENSE-2.0
2164 *
2165 * Unless required by applicable law or agreed to in writing, software
2166 * distributed under the License is distributed on an "AS IS" BASIS,
2167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2168 * See the License for the specific language governing permissions and
2169 * limitations under the License.
2170 */
2171class X{constructor(e,t){this.appCheckProvider=t,this.appName=e.name,(0,r.rh)(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.appCheck=t?.getImmediate({optional:!0}),this.appCheck||t?.get().then((e=>this.appCheck=e))}getToken(e){if(this.serverAppAppCheckToken){if(e)throw new Error("Attempted reuse of `FirebaseServerApp.appCheckToken` after previous usage failed.");return Promise.resolve({token:this.serverAppAppCheckToken})}return this.appCheck?this.appCheck.getToken(e):new Promise(((t,n)=>{setTimeout((()=>{this.appCheck?this.getToken(e).then(t,n):t(null)}),0)}))}addTokenChangeListener(e){this.appCheckProvider?.get().then((t=>t.addTokenListener(e)))}notifyForInvalidToken(){I(`Provided AppCheck credentials for the app named "${this.appName}" are invalid. This usually indicates your app was not initialized correctly.`)}}
2172/**
2173 * @license
2174 * Copyright 2017 Google LLC
2175 *
2176 * Licensed under the Apache License, Version 2.0 (the "License");
2177 * you may not use this file except in compliance with the License.
2178 * You may obtain a copy of the License at
2179 *
2180 *   http://www.apache.org/licenses/LICENSE-2.0
2181 *
2182 * Unless required by applicable law or agreed to in writing, software
2183 * distributed under the License is distributed on an "AS IS" BASIS,
2184 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2185 * See the License for the specific language governing permissions and
2186 * limitations under the License.
2187 */class J{constructor(e,t,n){this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit((e=>this.auth_=e))}getToken(e){return this.auth_?this.auth_.getToken(e).catch((e=>e&&"auth/token-not-initialized"===e.code?(S("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e))):new Promise(((t,n)=>{setTimeout((()=>{this.auth_?this.getToken(e).then(t,n):t(null)}),0)}))}addTokenChangeListener(e){this.auth_?this.auth_.addAuthTokenListener(e):this.authProvider_.get().then((t=>t.addAuthTokenListener(e)))}removeTokenChangeListener(e){this.authProvider_.get().then((t=>t.removeAuthTokenListener(e)))}notifyForInvalidToken(){let e='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',I(e)}}class Z{constructor(e){this.accessToken=e}getToken(e){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(e){e(this.accessToken)}removeTokenChangeListener(e){}notifyForInvalidToken(){}}Z.OWNER="owner";
2188/**
2189 * @license
2190 * Copyright 2017 Google LLC
2191 *
2192 * Licensed under the Apache License, Version 2.0 (the "License");
2193 * you may not use this file except in compliance with the License.
2194 * You may obtain a copy of the License at
2195 *
2196 *   http://www.apache.org/licenses/LICENSE-2.0
2197 *
2198 * Unless required by applicable law or agreed to in writing, software
2199 * distributed under the License is distributed on an "AS IS" BASIS,
2200 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2201 * See the License for the specific language governing permissions and
2202 * limitations under the License.
2203 */
2204const Q="5",ee="v",te="s",ne="r",re="f",ie=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,ae="ls",oe="p",se="ac",le="websocket",ue="long_polling";
2205/**
2206 * @license
2207 * Copyright 2017 Google LLC
2208 *
2209 * Licensed under the Apache License, Version 2.0 (the "License");
2210 * you may not use this file except in compliance with the License.
2211 * You may obtain a copy of the License at
2212 *
2213 *   http://www.apache.org/licenses/LICENSE-2.0
2214 *
2215 * Unless required by applicable law or agreed to in writing, software
2216 * distributed under the License is distributed on an "AS IS" BASIS,
2217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2218 * See the License for the specific language governing permissions and
2219 * limitations under the License.
2220 */
2221class ce{constructor(e,t,n,r,i=!1,a="",o=!1,s=!1,l=null){this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=a,this.includeNamespaceInQueryParams=o,this.isUsingEmulator=s,this.emulatorOptions=l,this._host=e.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=f.get("host:"+e)||this._host}isCacheableHost(){return"s-"===this.internalHost.substr(0,2)}isCustomHost(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain}get host(){return this._host}set host(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&f.set("host:"+this._host,this.internalHost))}toString(){let e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e}toURLString(){const e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:"";return`${e}${this.host}/${t}`}}function de(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams}function he(e,t,n){let r;if((0,a.hu)("string"===typeof t,"typeof type must == string"),(0,a.hu)("object"===typeof n,"typeof params must == object"),t===le)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==ue)throw new Error("Unknown connection type: "+t);r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}de(e)&&(n["ns"]=e.namespace);const i=[];return M(n,((e,t)=>{i.push(e+"="+t)})),r+i.join("&")}
2222/**
2223 * @license
2224 * Copyright 2017 Google LLC
2225 *
2226 * Licensed under the Apache License, Version 2.0 (the "License");
2227 * you may not use this file except in compliance with the License.
2228 * You may obtain a copy of the License at
2229 *
2230 *   http://www.apache.org/licenses/LICENSE-2.0
2231 *
2232 * Unless required by applicable law or agreed to in writing, software
2233 * distributed under the License is distributed on an "AS IS" BASIS,
2234 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2235 * See the License for the specific language governing permissions and
2236 * limitations under the License.
2237 */class pe{constructor(){this.counters_={}}incrementCounter(e,t=1){(0,a.r3)(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t}get(){return(0,a.p$)(this.counters_)}}
2238/**
2239 * @license
2240 * Copyright 2017 Google LLC
2241 *
2242 * Licensed under the Apache License, Version 2.0 (the "License");
2243 * you may not use this file except in compliance with the License.
2244 * You may obtain a copy of the License at
2245 *
2246 *   http://www.apache.org/licenses/LICENSE-2.0
2247 *
2248 * Unless required by applicable law or agreed to in writing, software
2249 * distributed under the License is distributed on an "AS IS" BASIS,
2250 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2251 * See the License for the specific language governing permissions and
2252 * limitations under the License.
2253 */const fe={},me={};function ve(e){const t=e.toString();return fe[t]||(fe[t]=new pe),fe[t]}function ge(e,t){const n=e.toString();return me[n]||(me[n]=t()),me[n]}
2254/**
2255 * @license
2256 * Copyright 2017 Google LLC
2257 *
2258 * Licensed under the Apache License, Version 2.0 (the "License");
2259 * you may not use this file except in compliance with the License.
2260 * You may obtain a copy of the License at
2261 *
2262 *   http://www.apache.org/licenses/LICENSE-2.0
2263 *
2264 * Unless required by applicable law or agreed to in writing, software
2265 * distributed under the License is distributed on an "AS IS" BASIS,
2266 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2267 * See the License for the specific language governing permissions and
2268 * limitations under the License.
2269 */class ye{constructor(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(e,t){this.pendingResponses[e]=t;while(this.pendingResponses[this.currentResponseNum]){const e=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let t=0;t<e.length;++t)e[t]&&z((()=>{this.onMessage_(e[t])}));if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}
2270/**
2271 * @license
2272 * Copyright 2017 Google LLC
2273 *
2274 * Licensed under the Apache License, Version 2.0 (the "License");
2275 * you may not use this file except in compliance with the License.
2276 * You may obtain a copy of the License at
2277 *
2278 *   http://www.apache.org/licenses/LICENSE-2.0
2279 *
2280 * Unless required by applicable law or agreed to in writing, software
2281 * distributed under the License is distributed on an "AS IS" BASIS,
2282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2283 * See the License for the specific language governing permissions and
2284 * limitations under the License.
2285 */const _e="start",be="close",Te="pLPCommand",we="pRTLPCB",Se="id",ke="pw",Ce="ser",Ee="cb",Ie="seg",xe="ts",Ae="d",Pe="dframe",$e=1870,Oe=30,Ne=$e-Oe,Le=25e3,De=3e4;class Re{constructor(e,t,n,r,i,a,o){this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=a,this.lastSessionId=o,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=k(e),this.stats_=ve(t),this.urlFn=e=>(this.appCheckToken&&(e[se]=this.appCheckToken),he(t,ue,e))}open(e,t){this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new ye(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null}),Math.floor(De)),P((()=>{if(this.isClosed_)return;this.scriptTagHolder=new Fe(((...e)=>{const[t,n,r,i,a]=e;if(this.incrementIncomingBytes_(e),this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,t===_e)this.id=n,this.password=r;else{if(t!==be)throw new Error("Unrecognized command received: "+t);n?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(n,(()=>{this.onClosed_()}))):this.onClosed_()}}),((...e)=>{const[t,n]=e;this.incrementIncomingBytes_(e),this.myPacketOrderer.handleResponse(t,n)}),(()=>{this.onClosed_()}),this.urlFn);const e={};e[_e]="t",e[Ce]=Math.floor(1e8*Math.random()),this.scriptTagHolder.uniqueCallbackIdentifier&&(e[Ee]=this.scriptTagHolder.uniqueCallbackIdentifier),e[ee]=Q,this.transportSessionId&&(e[te]=this.transportSessionId),this.lastSessionId&&(e[ae]=this.lastSessionId),this.applicationId&&(e[oe]=this.applicationId),this.appCheckToken&&(e[se]=this.appCheckToken),"undefined"!==typeof location&&location.hostname&&ie.test(location.hostname)&&(e[ne]=re);const t=this.urlFn(e);this.log_("Connecting via long-poll to "+t),this.scriptTagHolder.addTag(t,(()=>{}))}))}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){Re.forceAllow_=!0}static forceDisallow(){Re.forceDisallow_=!0}static isAvailable(){return!(0,a.Yr)()&&(!!Re.forceAllow_||!Re.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!U()&&!B())}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(e){const t=(0,a.Wl)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=(0,a.h$)(t),r=F(n,Ne);for(let i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++}addDisconnectPingFrame(e,t){if((0,a.Yr)())return;this.myDisconnFrame=document.createElement("iframe");const n={};n[Pe]="t",n[Se]=e,n[ke]=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(e){const t=(0,a.Wl)(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)}}class Fe{constructor(e,t,n,r){if(this.onDisconnect=n,this.urlFn=r,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,(0,a.Yr)())this.commandCB=e,this.onMessageCB=t;else{this.uniqueCallbackIdentifier=g(),window[Te+this.uniqueCallbackIdentifier]=e,window[we+this.uniqueCallbackIdentifier]=t,this.myIFrame=Fe.createI
2285Frame_();let n="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length)){const e=document.domain;n='<script>document.domain="'+e+'";<\/script>'}const r="<html><body>"+n+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(r),this.myIFrame.doc.close()}catch(i){S("frame writing exception"),i.stack&&S(i.stack),S(i)}}}static createIFrame_(){const e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{const t=e.contentWindow.document;t||S("No IE domain setting required")}catch(t){const n=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+n+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout((()=>{null!==this.myIFrame&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)}),Math.floor(0)));const e=this.onDisconnect;e&&(this.onDisconnect=null,e())}startLongPoll(e,t){this.myID=e,this.myPW=t,this.alive=!0;while(this.newRequest_());}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const e={};e[Se]=this.myID,e[ke]=this.myPW,e[Ce]=this.currentSerial;let t=this.urlFn(e),n="",r=0;while(this.pendingSegs.length>0){const e=this.pendingSegs[0];if(!(e.d.length+Oe+n.length<=$e))break;{const e=this.pendingSegs.shift();n=n+"&"+Ie+r+"="+e.seg+"&"+xe+r+"="+e.ts+"&"+Ae+r+"="+e.d,r++}}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1}enqueueSegment(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()}addLongPollTag_(e,t){this.outstandingRequests.add(t);const n=()=>{this.outstandingRequests.delete(t),this.newRequest_()},r=setTimeout(n,Math.floor(Le)),i=()=>{clearTimeout(r),n()};this.addTag(e,i)}addTag(e,t){(0,a.Yr)()?this.doNodeLongPoll(e,t):setTimeout((()=>{try{if(!this.sendNewPolls)return;const n=this.myIFrame.doc.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){const e=n.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),t())},n.onerror=()=>{S("Long-poll script failed to load: "+e),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(n)}catch(n){}}),Math.floor(1))}}
2286/**
2287 * @license
2288 * Copyright 2017 Google LLC
2289 *
2290 * Licensed under the Apache License, Version 2.0 (the "License");
2291 * you may not use this file except in compliance with the License.
2292 * You may obtain a copy of the License at
2293 *
2294 *   http://www.apache.org/licenses/LICENSE-2.0
2295 *
2296 * Unless required by applicable law or agreed to in writing, software
2297 * distributed under the License is distributed on an "AS IS" BASIS,
2298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2299 * See the License for the specific language governing permissions and
2300 * limitations under the License.
2301 */const Me=16384,Ve=45e3;let Ue=null;"undefined"!==typeof MozWebSocket?Ue=MozWebSocket:"undefined"!==typeof WebSocket&&(Ue=WebSocket);class Be{constructor(e,t,n,r,i,a,o){this.connId=e,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=k(this.connId),this.stats_=ve(t),this.connURL=Be.connectionURL_(t,a,o,r,n),this.nodeAdmin=t.nodeAdmin}static connectionURL_(e,t,n,r,i){const o={};return o[ee]=Q,!(0,a.Yr)()&&"undefined"!==typeof location&&location.hostname&&ie.test(location.hostname)&&(o[ne]=re),t&&(o[te]=t),n&&(o[ae]=n),r&&(o[se]=r),i&&(o[oe]=i),he(e,le,o)}open(e,t){this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,f.set("previous_websocket_failure",!0);try{let e;if((0,a.Yr)()){const t=this.nodeAdmin?"AdminNode":"Node";e={headers:{"User-Agent":`Firebase/${Q}/${u}/${process.platform}/${t}`,"X-Firebase-GMPID":this.applicationId||""}},this.authToken&&(e.headers["Authorization"]=`Bearer ${this.authToken}`),this.appCheckToken&&(e.headers["X-Firebase-AppCheck"]=this.appCheckToken);const n={NODE_ENV:"production",BASE_URL:"/"},r=0===this.connURL.indexOf("wss://")?n["HTTPS_PROXY"]||n["https_proxy"]:n["HTTP_PROXY"]||n["http_proxy"];r&&(e["proxy"]={origin:r})}this.mySock=new Ue(this.connURL,[],e)}catch(n){this.log_("Error instantiating WebSocket.");const e=n.message||n.data;return e&&this.log_(e),void this.onClosed_()}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0}
vendor: 11,683 bytes, lines 2301-2340
2301,this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=e=>{this.handleIncomingFrame(e)},this.mySock.onerror=e=>{this.log_("WebSocket error.  Closing connection.");const t=e.message||e.data;t&&this.log_(t),this.onClosed_()}}start(){}static forceDisallow(){Be.forceDisallow_=!0}static isAvailable(){let e=!1;if("undefined"!==typeof navigator&&navigator.userAgent){const t=/Android ([0-9]{0,}\.[0-9]{0,})/,n=navigator.userAgent.match(t);n&&n.length>1&&parseFloat(n[1])<4.4&&(e=!0)}return!e&&null!==Ue&&!Be.forceDisallow_}static previouslyFailed(){return f.isInMemoryStorage||!0===f.get("previous_websocket_failure")}markConnectionHealthy(){f.remove("previous_websocket_failure")}appendFrame_(e){if(this.frames.push(e),this.frames.length===this.totalFrames){const e=this.frames.join("");this.frames=null;const t=(0,a.cI)(e);this.onMessage(t)}}handleNewFrameCount_(e){this.totalFrames=e,this.frames=[]}extractFrameCount_(e){if((0,a.hu)(null===this.frames,"We already have a frame buffer"),e.length<=6){const t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e}handleIncomingFrame(e){if(null===this.mySock)return;const t=e["data"];if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{const e=this.extractFrameCount_(t);null!==e&&this.appendFrame_(e)}}send(e){this.resetKeepAlive();const t=(0,a.Wl)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);const n=F(t,Me);n.length>1&&this.sendString_(String(n.length));for(let r=0;r<n.length;r++)this.sendString_(n[r])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()}),Math.floor(Ve))}sendString_(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}Be.responsesRequiredToBeHealthy=2,Be.healthyTimeout=3e4;
2302/**
2303 * @license
2304 * Copyright 2017 Google LLC
2305 *
2306 * Licensed under the Apache License, Version 2.0 (the "License");
2307 * you may not use this file except in compliance with the License.
2308 * You may obtain a copy of the License at
2309 *
2310 *   http://www.apache.org/licenses/LICENSE-2.0
2311 *
2312 * Unless required by applicable law or agreed to in writing, software
2313 * distributed under the License is distributed on an "AS IS" BASIS,
2314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2315 * See the License for the specific language governing permissions and
2316 * limitations under the License.
2317 */
2318class je{static get ALL_TRANSPORTS(){return[Re,Be]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}constructor(e){this.initTransports_(e)}initTransports_(e){const t=Be&&Be["isAvailable"]();let n=t&&!Be.previouslyFailed();if(e.webSocketOnly&&(t||I("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),n=!0),n)this.transports_=[Be];else{const e=this.transports_=[];for(const t of je.ALL_TRANSPORTS)t&&t["isAvailable"]()&&e.push(t);je.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}je.globalTransportInitialized_=!1;
2319/**
2320 * @license
2321 * Copyright 2017 Google LLC
2322 *
2323 * Licensed under the Apache License, Version 2.0 (the "License");
2324 * you may not use this file except in compliance with the License.
2325 * You may obtain a copy of the License at
2326 *
2327 *   http://www.apache.org/licenses/LICENSE-2.0
2328 *
2329 * Unless required by applicable law or agreed to in writing, software
2330 * distributed under the License is distributed on an "AS IS" BASIS,
2331 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2332 * See the License for the specific language governing permissions and
2333 * limitations under the License.
2334 */
2335const We=6e4,He=5e3,qe=10240,Ge=102400,ze="t",Ye="d",Ke="s",Xe="r",Je="e",Ze="o",Qe="a",et="n",tt="p",nt="h";class rt{constructor(e,t,n,r,i,a,o,s,l,u){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=a,this.onReady_=o,this.onDisconnect_=s,this.onKill_=l,this.lastSessionId=u,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=k("c:"+this.id+":"),this.transportManager_=new je(t),this.log_("Connection created"),this.start_()}start_(){const e=this.transportManager_.initialTransport();this.conn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=e["responsesRequiredToBeHealthy"]||0;const t=this.connReceiver_(this.conn_),n=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((()=>{this.conn_&&this.conn_.open(t,n)}),Math.floor(0));const r=e["healthyTimeout"]||0;r>0&&(this.healthyTimeout_=K((()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>Ge?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes.  Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>qe?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes.  Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))}),Math.floor(r)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(e){return t=>{e===this.conn_?this.onConnectionLost_(t):e===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(e){return t=>{2!==this.state_&&(e===this.rx_?this.onPrimaryMessageReceived_(t):e===this.secondaryConn_?this.onSecondaryMessageReceived_(t):this.log_("message on old connection"))}}sendRequest(e){const t={t:"d",d:e};this.sendData_(t)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(e){if(ze in e){const t=e[ze];t===Qe?this.upgradeIfSecondaryHealthy_():t===Xe?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):t===Ze&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(e){const t=D("t",e),n=D("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:tt,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:Qe,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:et,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(e){const t=D("t",e),n=D("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)}onDataMessage_(e){this.onPrimaryResponse_(),this.onMessage_(e)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(e){const t=D(ze,e);if(Ye in e){const n=e[Ye];if(t===nt){const e={...n};this.repoInfo_.isUsingEmulator&&(e.h=this.repoInfo_.host),this.onHandshake_(e)}else if(t===et){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let e=0;e<this.pendingDataMessages.length;++e)this.onDataMessage_(this.pendingDataMessages[e]);this.pendingDataMessages=[],this.tryCleanupConnection()}else t===Ke?this.onConnectionShutdown_(n):t===Xe?this.onReset_(n):t===Je?C("Server Error: "+n):t===Ze?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):C("Unknown control packet command: "+t)}}onHandshake_(e){const t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.host=r,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),Q!==n&&I("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)}startUpgrade_(e){this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e["responsesRequiredToBeHealthy"]||0;const t=this.connReceiver_(this.secondaryConn_),n=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(t,n),K((()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())}),Math.floor(We))}onReset_(e){this.log_("Reset packet received.  New host: "+e),this.repoInfo_.host=e,1===this.state_?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(e,t){this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):K((()=>{this.sendPingOnPrimaryIfNecessary_()}),Math.floor(He))}sendPingOnPrimaryIfNecessary_(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:tt,d:{}}}))}onSecondaryConnectionLost_(){const e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()}onConnectionLost_(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(f.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()}onConnectionShutdown_(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)}close(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}
2336/**
2337 * @license
2338 * Copyright 2017 Google LLC
2339 *
2340 * Licensed under the Apache License, Version 2.0 (the "License");
2341 * you may not use this file except in compliance with the License.
2342 * You may obtain a copy of the License at
2343 *
2344 *   http://www.apache.org/licenses/LICENSE-2.0
2345 *
2346 * Unless required by applicable law or agreed to in writing, software
2347 * distributed under the License is distributed on an "AS IS" BASIS,
2348 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2349 * See the License for the specific language governing permissions and
2350 * limitations under the License.
2351 */class it{put(e,t,n,r){}merge(e,t,n,r){}refreshAuthToken(e){}refreshAppCheckToken(e){}onDisconnectPut(e,t,n){}onDisconnectMerge(e,t,n){}onDisconnectCancel(e,t){}reportStats(e){}}
2352/**
2353 * @license
2354 * Copyright 2017 Google LLC
2355 *
2356 * Licensed under the Apache License, Version 2.0 (the "License");
2357 * you may not use this file except in compliance with the License.
2358 * You may obtain a copy of the License at
2359 *
2360 *   http://www.apache.org/licenses/LICENSE-2.0
2361 *
2362 * Unless required by applicable law or agreed to in writing, software
2363 * distributed under the License is distributed on an "AS IS" BASIS,
2364 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2365 * See the License for the specific language governing permissions and
2366 * limitations under the License.
2367 */class at{constructor(e){this.allowedEvents_=e,this.listeners_={},(0,a.hu)(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}trigger(e,...t){if(Array.isArray(this.listeners_[e])){const n=[...this.listeners_[e]];for(let e=0;e<n.length;e++)n[e].callback.apply(n[e].context,t)}}on(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});const r=this.getInitialEvent(e);r&&t.apply(n,r)}off(e,t,n){this.validateEventType_(e);const r=this.listeners_[e]||[];for(let i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)}validateEventType_(e){(0,a.hu)(this.allowedEvents_.find((t=>t===e)),"Unknown event: "+e)}}
2368/**
2369 * @license
2370 * Copyright 2017 Google LLC
2371 *
2372 * Licensed under the Apache License, Version 2.0 (the "License");
2373 * you may not use this file except in compliance with the License.
2374 * You may obtain a copy of the License at
2375 *
2376 *   http://www.apache.org/licenses/LICENSE-2.0
2377 *
2378 * Unless required by applicable law or agreed to in writing, software
2379 * distributed under the License is distributed on an "AS IS" BASIS,
2380 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2381 * See the License for the specific language governing permissions and
2382 * limitations under the License.
2383 */class ot extends at{static getInstance(){return new ot}constructor(){super(["online"]),this.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||(0,a.uI)()||(window.addEventListener("online",(()=>{this.online_||(this.online_=!0,this.trigger("online",!0))}),!1),window.addEventListener("offline",(()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))}),!1))}getInitialEvent(e){return(0,a.hu)("online"===e,"Unknown event type: "+e),[this.online_]}currentlyOnline(){return this.online_}}
2384/**
2385 * @license
2386 * Copyright 2017 Google LLC
2387 *
2388 * Licensed under the Apache License, Version 2.0 (the "License");
2389 * you may not use this file except in compliance with the License.
2390 * You may obtain a copy of the License at
2391 *
2392 *   http://www.apache.org/licenses/LICENSE-2.0
2393 *
2394 * Unless required by applicable law or agreed to in writing, software
2395 * distributed under the License is distributed on an "AS IS" BASIS,
2396 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2397 * See the License for the specific language governing permissions and
2398 * limitations under the License.
2399 */const st=32,lt=768;class ut{constructor(e,t){if(void 0===t){this.pieces_=e.split("/");let t=0;for(let e=0;e<this.pieces_.length;e++)this.pieces_[e].length>0&&(this.pieces_[t]=this.pieces_[e],t++);this.pieces_.length=t,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}toString(){let e="";for(let t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"}}function ct(){return new ut("")}function dt(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function ht(e){return e.pieces_.length-e.pieceNum_}function pt(e){let t=e.pieceNum_;return t<e.pieces_.length&&t++,new ut(e.pieces_,t)}function ft(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function mt(e){let t="";for(let n=e.pieceNum_;n<e.pieces_.length;n++)""!==e.pieces_[n]&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}function vt(e,t=0){return e.pieces_.slice(e.pieceNum_+t)}function gt(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new ut(t,0)}function yt(e,t){const n=[];for(let r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);if(t instanceof ut)for(let r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{const e=t.split("/");for(let t=0;t<e.length;t++)e[t].length>0&&n.push(e[t])}return new ut(n,0)}function _t(e){return e.pieceNum_>=e.pieces_.length}function bt(e,t){const n=dt(e),r=dt(t);if(null===n)return t;if(n===r)return bt(pt(e),pt(t));
2399throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function Tt(e,t){if(ht(e)!==ht(t))return!1;for(let n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function wt(e,t){let n=e.pieceNum_,r=t.pieceNum_;if(ht(e)>ht(t))return!1;while(n<e.pieces_.length){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}class St{constructor(e,t){this.errorPrefix_=t,this.parts_=vt(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(let n=0;n<this.parts_.length;n++)this.byteLength_+=(0,a.ug)(this.parts_[n]);Et(this)}}function kt(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=(0,a.ug)(t),Et(e)}function Ct(e){const t=e.parts_.pop();e.byteLength_-=(0,a.ug)(t),e.parts_.length>0&&(e.byteLength_-=1)}function Et(e){if(e.byteLength_>lt)throw new Error(e.errorPrefix_+"has a key path longer than "+lt+" bytes ("+e.byteLength_+").");if(e.parts_.length>st)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+st+") or object contains a cycle "+It(e))}function It(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}
2400/**
2401 * @license
2402 * Copyright 2017 Google LLC
2403 *
2404 * Licensed under the Apache License, Version 2.0 (the "License");
2405 * you may not use this file except in compliance with the License.
2406 * You may obtain a copy of the License at
2407 *
2408 *   http://www.apache.org/licenses/LICENSE-2.0
2409 *
2410 * Unless required by applicable law or agreed to in writing, software
2411 * distributed under the License is distributed on an "AS IS" BASIS,
2412 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2413 * See the License for the specific language governing permissions and
2414 * limitations under the License.
2415 */class xt extends at{static getInstance(){return new xt}constructor(){let e,t;super(["visible"]),"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document["hidden"]?(t="visibilitychange",e="hidden"):"undefined"!==typeof document["mozHidden"]?(t="mozvisibilitychange",e="mozHidden"):"undefined"!==typeof document["msHidden"]?(t="msvisibilitychange",e="msHidden"):"undefined"!==typeof document["webkitHidden"]&&(t="webkitvisibilitychange",e="webkitHidden")),this.visible_=!0,t&&document.addEventListener(t,(()=>{const t=!document[e];t!==this.visible_&&(this.visible_=t,this.trigger("visible",t))}),!1)}getInitialEvent(e){return(0,a.hu)("visible"===e,"Unknown event type: "+e),[this.visible_]}}
2416/**
2417 * @license
2418 * Copyright 2017 Google LLC
2419 *
2420 * Licensed under the Apache License, Version 2.0 (the "License");
2421 * you may not use this file except in compliance with the License.
2422 * You may obtain a copy of the License at
2423 *
2424 *   http://www.apache.org/licenses/LICENSE-2.0
2425 *
2426 * Unless required by applicable law or agreed to in writing, software
2427 * distributed under the License is distributed on an "AS IS" BASIS,
2428 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2429 * See the License for the specific language governing permissions and
2430 * limitations under the License.
2431 */const At=1e3,Pt=3e5,$t=3e4,Ot=1.3,Nt=3e4,Lt="server_kill",Dt=3;class Rt extends it{constructor(e,t,n,r,i,o,s,l){if(super(),this.repoInfo_=e,this.applicationId_=t,this.onDataUpdate_=n,this.onConnectStatus_=r,this.onServerInfoUpdate_=i,this.authTokenProvider_=o,this.appCheckTokenProvider_=s,this.authOverride_=l,this.id=Rt.nextPersistentConnectionId_++,this.log_=k("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=At,this.maxReconnectDelay_=Pt,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,l&&!(0,a.Yr)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");xt.getInstance().on("visible",this.onVisible_,this),-1===e.host.indexOf("fblocal")&&ot.getInstance().on("online",this.onOnline_,this)}sendRequest(e,t,n){const r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_((0,a.Wl)(i)),(0,a.hu)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)}get(e){this.initConnection_();const t=new a.BH,n={p:e._path.toString(),q:e._queryObject},r={action:"g",request:n,onComplete:e=>{const n=e["d"];"ok"===e["s"]?t.resolve(n):t.reject(n)}};this.outstandingGets_.push(r),this.outstandingGetCount_++;const i=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(i),t.promise}listen(e,t,n,r){this.initConnection_();const i=e._queryIdentifier,o=e._path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),(0,a.hu)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),(0,a.hu)(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");const s={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(o).set(i,s),this.connected_&&this.sendListen_(s)}sendGet_(e){const t=this.outstandingGets_[e];this.sendRequest("g",t.request,(n=>{delete this.outstandingGets_[e],this.outstandingGetCount_--,0===this.outstandingGetCount_&&(this.outstandingGets_=[]),t.onComplete&&t.onComplete(n)}))}sendListen_(e){const t=e.query,n=t._path.toString(),r=t._queryIdentifier;this.log_("Listen on "+n+" for "+r);const i={p:n},a="q";e.tag&&(i["q"]=t._queryObject,i["t"]=e.tag),i["h"]=e.hashFn(),this.sendRequest(a,i,(i=>{const a=i["d"],o=i["s"];Rt.warnOnListenWarnings_(a,t);const s=this.listens.get(n)&&this.listens.get(n).get(r);s===e&&(this.log_("listen response",i),"ok"!==o&&this.removeListen_(n,r),e.onComplete&&e.onComplete(o,a))}))}static warnOnListenWarnings_(e,t){if(e&&"object"===typeof e&&(0,a.r3)(e,"w")){const n=(0,a.DV)(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){const e='".indexOn": "'+t._queryParams.getIndex().toString()+'"',n=t._path.toString();I(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${e} at ${n} to your security rules for better performance.`)}}}refreshAuthToken(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(()=>{})),this.reduceReconnectDelayIfAdminCredential_(e)}reduceReconnectDelayIfAdminCredential_(e){const t=e&&40===e.length;(t||(0,a.GJ)(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=$t)}refreshAppCheckToken(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(()=>{}))}tryAuth(){if(this.connected_&&this.authToken_){const e=this.authToken_,t=(0,a.w9)(e)?"auth":"gauth",n={cred:e};null===this.authOverride_?n["noauth"]=!0:"object"===typeof this.authOverride_&&(n["authvar"]=this.authOverride_),this.sendRequest(t,n,(t=>{const n=t["s"],r=t["d"]||"error";this.authToken_===e&&("ok"===n?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(n,r))}))}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(e=>{const t=e["s"],n=e["d"]||"error";"ok"===t?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(t,n)}
2431))}unlisten(e,t){const n=e._path.toString(),r=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),(0,a.hu)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"unlisten() called for non-default but complete query");const i=this.removeListen_(n,r);i&&this.connected_&&this.sendUnlisten_(n,r,e._queryObject,t)}sendUnlisten_(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);const i={p:e},a="n";r&&(i["q"]=n,i["t"]=r),this.sendRequest(a,i)}onDisconnectPut(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})}onDisconnectMerge(e,t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})}onDisconnectCancel(e,t){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})}sendOnDisconnect_(e,t,n,r){const i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(e=>{r&&setTimeout((()=>{r(e["s"],e["d"])}),Math.floor(0))}))}put(e,t,n,r){this.putInternal("p",e,t,n,r)}merge(e,t,n,r){this.putInternal("m",e,t,n,r)}putInternal(e,t,n,r,i){this.initConnection_();const a={p:t,d:n};void 0!==i&&(a["h"]=i),this.outstandingPuts_.push({action:e,request:a,onComplete:r}),this.outstandingPutCount_++;const o=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(o):this.log_("Buffering put: "+t)}sendPut_(e){const t=this.outstandingPuts_[e].action,n=this.outstandingPuts_[e].request,r=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(t,n,(n=>{this.log_(t+" response",n),delete this.outstandingPuts_[e],this.outstandingPutCount_--,0===this.outstandingPutCount_&&(this.outstandingPuts_=[]),r&&r(n["s"],n["d"])}))}reportStats(e){if(this.connected_){const t={c:e};this.log_("reportStats",t),this.sendRequest("s",t,(e=>{const t=e["s"];if("ok"!==t){const t=e["d"];this.log_("reportStats","Error sending stats: "+t)}}))}}onDataMessage_(e){if("r"in e){this.log_("from server: "+(0,a.Wl)(e));const t=e["r"],n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e["b"]))}else{if("error"in e)throw"A server-side error has occurred: "+e["error"];"a"in e&&this.onDataPush_(e["a"],e["b"])}}onDataPush_(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t["p"],t["d"],!1,t["t"]):"m"===e?this.onDataUpdate_(t["p"],t["d"],!0,t["t"]):"c"===e?this.onListenRevoked_(t["p"],t["q"]):"ac"===e?this.onAuthRevoked_(t["s"],t["d"]):"apc"===e?this.onAppCheckRevoked_(t["s"],t["d"]):"sd"===e?this.onSecurityDebugPacket_(t):C("Unrecognized action received from server: "+(0,a.Wl)(e)+"\nAre you using the latest client?")}onReady_(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(e){(0,a.hu)(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((()=>{this.establishConnectionTimer_=null,this.establishConnection_()}),Math.floor(e))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=At,this.realtime_||this.scheduleConnect_(0)),this.visible_=e}onOnline_(e){e?(this.log_("Browser went online."),this.reconnectDelay_=At,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline.  Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){const e=(new Date).getTime()-this.lastConnectionEstablishedTime_;e>Nt&&(this.reconnectDelay_=At),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible.  Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();const e=Math.max(0,(new Date).getTime()-this.lastConnectionAttemptTime_);let t=Math.max(0,this.reconnectDelay_-e);
2431t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*Ot)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;const e=this.onDataMessage_.bind(this),t=this.onReady_.bind(this),n=this.onRealtimeDisconnect_.bind(this),r=this.id+":"+Rt.nextConnectionId_++,i=this.lastSessionId;let o=!1,s=null;const l=function(){s?s.close():(o=!0,n())},u=function(e){(0,a.hu)(s,"sendRequest call when we're not connected not allowed."),s.sendRequest(e)};this.realtime_={close:l,sendRequest:u};const c=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[a,l]=await Promise.all([this.authTokenProvider_.getToken(c),this.appCheckTokenProvider_.getToken(c)]);o?S("getToken() completed but was canceled"):(S("getToken() completed. Creating connection."),this.authToken_=a&&a.accessToken,this.appCheckToken_=l&&l.token,s=new rt(r,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,t,n,(e=>{I(e+" ("+this.repoInfo_.toString()+")"),this.interrupt(Lt)}),i))}catch(C){this.log_("Failed to get token: "+C),o||(this.repoInfo_.nodeAdmin&&I(C),l())}}}interrupt(e){S("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(e){S("Resuming connection for reason: "+e),delete this.interruptReasons_[e],(0,a.xb)(this.interruptReasons_)&&(this.reconnectDelay_=At,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(e){const t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})}cancelSentTransactions_(){for(let e=0;e<this.outstandingPuts_.length;e++){const t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])}onListenRevoked_(e,t){let n;n=t?t.map((e=>R(e))).join("$"):"default";const r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")}removeListen_(e,t){const n=new ut(e).toString();let r;if(this.listens.has(n)){const e=this.listens.get(n);r=e.get(t),e.delete(t),0===e.size&&this.listens.delete(n)}else r=void 0;return r}onAuthRevoked_(e,t){S("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=Dt&&(this.reconnectDelay_=$t,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(e,t){S("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=Dt&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e["msg"].replace("\n","\nFIREBASE: "))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const e of this.listens.values())for(const t of e.values())this.sendListen_(t);for(let e=0;e<this.outstandingPuts_.length;e++)this.outstandingPuts_[e]&&this.sendPut_(e);while(this.onDisconnectRequestQueue_.length){const e=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(e.action,e.pathString,e.data,e.onComplete)}for(let e=0;e<this.outstandingGets_.length;e++)this.outstandingGets_[e]&&this.sendGet_(e)}sendConnectStats_(){const e={};let t="js";(0,a.Yr)()&&(t=this.repoInfo_.nodeAdmin?"admin_node":"node"),e["sdk."+t+"."+u.replace(/\./g,"-")]=1,(0,a.uI)()?e["framework.cordova"]=1:(0,a.b$)()&&(e["framework.reactnative"]=1),this.reportStats(e)}shouldReconnect_(){const e=ot.getInstance().currentlyOnline();return(0,a.xb)(this.interruptReasons_)&&e}}Rt.nextPersistentConnectionId_=0,Rt.nextConnectionId_=0;
2432/**
2433 * @license
2434 * Copyright 2017 Google LLC
2435 *
2436 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 6,495 bytes, lines 2437-2496
2437 * you may not use this file except in compliance with the License.
2438 * You may obtain a copy of the License at
2439 *
2440 *   http://www.apache.org/licenses/LICENSE-2.0
2441 *
2442 * Unless required by applicable law or agreed to in writing, software
2443 * distributed under the License is distributed on an "AS IS" BASIS,
2444 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2445 * See the License for the specific language governing permissions and
2446 * limitations under the License.
2447 */
2448class Ft{constructor(e,t){this.name=e,this.node=t}static Wrap(e,t){return new Ft(e,t)}}
2449/**
2450 * @license
2451 * Copyright 2017 Google LLC
2452 *
2453 * Licensed under the Apache License, Version 2.0 (the "License");
2454 * you may not use this file except in compliance with the License.
2455 * You may obtain a copy of the License at
2456 *
2457 *   http://www.apache.org/licenses/LICENSE-2.0
2458 *
2459 * Unless required by applicable law or agreed to in writing, software
2460 * distributed under the License is distributed on an "AS IS" BASIS,
2461 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2462 * See the License for the specific language governing permissions and
2463 * limitations under the License.
2464 */class Mt{getCompare(){return this.compare.bind(this)}indexedValueChanged(e,t){const n=new Ft($,e),r=new Ft($,t);return 0!==this.compare(n,r)}minPost(){return Ft.MIN}}
2465/**
2466 * @license
2467 * Copyright 2017 Google LLC
2468 *
2469 * Licensed under the Apache License, Version 2.0 (the "License");
2470 * you may not use this file except in compliance with the License.
2471 * You may obtain a copy of the License at
2472 *
2473 *   http://www.apache.org/licenses/LICENSE-2.0
2474 *
2475 * Unless required by applicable law or agreed to in writing, software
2476 * distributed under the License is distributed on an "AS IS" BASIS,
2477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2478 * See the License for the specific language governing permissions and
2479 * limitations under the License.
2480 */let Vt;class Ut extends Mt{static get __EMPTY_NODE(){return Vt}static set __EMPTY_NODE(e){Vt=e}compare(e,t){return N(e.name,t.name)}isDefinedOn(e){throw(0,a.g5)("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(e,t){return!1}minPost(){return Ft.MIN}maxPost(){return new Ft(O,Vt)}makePost(e,t){return(0,a.hu)("string"===typeof e,"KeyIndex indexValue must always be a string."),new Ft(e,Vt)}toString(){return".key"}}const Bt=new Ut;
2481/**
2482 * @license
2483 * Copyright 2017 Google LLC
2484 *
2485 * Licensed under the Apache License, Version 2.0 (the "License");
2486 * you may not use this file except in compliance with the License.
2487 * You may obtain a copy of the License at
2488 *
2489 *   http://www.apache.org/licenses/LICENSE-2.0
2490 *
2491 * Unless required by applicable law or agreed to in writing, software
2492 * distributed under the License is distributed on an "AS IS" BASIS,
2493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2494 * See the License for the specific language governing permissions and
2495 * limitations under the License.
2496 */class jt{constructor(e,t,n,r,i=null){this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];let a=1;while(!e.isEmpty())if(a=t?n(e.key,t):1,r&&(a*=-1),a<0)e=this.isReverse_?e.left:e.right;else{if(0===a){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}getNext(){if(0===this.nodeStack_.length)return null;let e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_){t=t.left;while(!t.isEmpty())this.nodeStack_.push(t),t=t.right}else{t=t.right;while(!t.isEmpty())this.nodeStack_.push(t),t=t.left}return e}hasNext(){return this.nodeStack_.length>0}peek(){if(0===this.nodeStack_.length)return null;const e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}}}class Wt{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:Wt.RED,this.left=null!=r?r:qt.EMPTY_NODE,this.right=null!=i?i:qt.EMPTY_NODE}copy(e,t,n,r,i){return new Wt(null!=e?e:this.key,null!=t?t:this.value,null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp_()}removeMin_(){if(this.left.isEmpty())return qt.EMPTY_NODE;let e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),e=e.copy(null,null,null,e.left.removeMin_(),null),e.fixUp_()}remove(e,t){let n,r;if(n=this,t(e,n.key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return qt.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()}isRed_(){return this.color}fixUp_(){let e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e}moveRedLeft_(){let e=this.colorFlip_();return e.right.left.isRed_()&&(e=e.copy(null,null,null,null,e.right.rotateRight_()),e=e.rotateLeft_(),e=e.colorFlip_()),e}moveRedRight_(){let e=this.colorFlip_();return e.left.left.isRed_()&&(e=e.rotateRight_(),e=e.colorFlip_()),e}rotateLeft_(){const e=this.copy(null,null,Wt.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight_(){const e=this.copy(null,null,Wt.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip_(){const e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth_(){const e=this.check_();return Math.pow(2,e)<=this.count()+1}
2496check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)}}Wt.RED=!0,Wt.BLACK=!1;class Ht{copy(e,t,n,r,i){return this}insert(e,t,n){return new Wt(e,t,null)}remove(e,t){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}}class qt{constructor(e,t=qt.EMPTY_NODE){this.comparator_=e,this.root_=t}insert(e,t){return new qt(this.comparator_,this.root_.insert(e,t,this.comparator_).copy(null,null,Wt.BLACK,null,null))}remove(e){return new qt(this.comparator_,this.root_.remove(e,this.comparator_).copy(null,null,Wt.BLACK,null,null))}get(e){let t,n=this.root_;while(!n.isEmpty()){if(t=this.comparator_(e,n.key),0===t)return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null}getPredecessorKey(e){let t,n=this.root_,r=null;while(!n.isEmpty()){if(t=this.comparator_(e,n.key),0===t){if(n.left.isEmpty())return r?r.key:null;n=n.left;while(!n.right.isEmpty())n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key.  What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(e){return this.root_.inorderTraversal(e)}reverseTraversal(e){return this.root_.reverseTraversal(e)}getIterator(e){return new jt(this.root_,null,this.comparator_,!1,e)}getIteratorFrom(e,t){return new jt(this.root_,e,this.comparator_,!1,t)}getReverseIteratorFrom(e,t){return new jt(this.root_,e,this.comparator_,!0,t)}getReverseIterator(e){return new jt(this.root_,null,this.comparator_,!0,e)}}
2497/**
2498 * @license
2499 * Copyright 2017 Google LLC
2500 *
2501 * Licensed under the Apache License, Version 2.0 (the "License");
2502 * you may not use this file except in compliance with the License.
2503 * You may obtain a copy of the License at
2504 *
2505 *   http://www.apache.org/licenses/LICENSE-2.0
2506 *
2507 * Unless required by applicable law or agreed to in writing, software
2508 * distributed under the License is distributed on an "AS IS" BASIS,
2509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2510 * See the License for the specific language governing permissions and
2511 * limitations under the License.
2512 */
2513function Gt(e,t){return N(e.name,t.name)}function zt(e,t){return N(e,t)}
2514/**
2515 * @license
2516 * Copyright 2017 Google LLC
2517 *
2518 * Licensed under the Apache License, Version 2.0 (the "License");
2519 * you may not use this file except in compliance with the License.
2520 * You may obtain a copy of the License at
2521 *
2522 *   http://www.apache.org/licenses/LICENSE-2.0
2523 *
2524 * Unless required by applicable law or agreed to in writing, software
2525 * distributed under the License is distributed on an "AS IS" BASIS,
2526 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2527 * See the License for the specific language governing permissions and
2528 * limitations under the License.
2529 */let Yt;function Kt(e){Yt=e}qt.EMPTY_NODE=new Ht;const Xt=function(e){return"number"===typeof e?"number:"+V(e):"string:"+e},Jt=function(e){if(e.isLeafNode()){const t=e.val();(0,a.hu)("string"===typeof t||"number"===typeof t||"object"===typeof t&&(0,a.r3)(t,".sv"),"Priority must be a string or number.")}else(0,a.hu)(e===Yt||e.isEmpty(),"priority of unexpected type.");(0,a.hu)(e===Yt||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};
2530/**
2531 * @license
2532 * Copyright 2017 Google LLC
2533 *
2534 * Licensed under the Apache License, Version 2.0 (the "License");
2535 * you may not use this file except in compliance with the License.
2536 * You may obtain a copy of the License at
2537 *
2538 *   http://www.apache.org/licenses/LICENSE-2.0
2539 *
2540 * Unless required by applicable law or agreed to in writing, software
2541 * distributed under the License is distributed on an "AS IS" BASIS,
2542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2543 * See the License for the specific language governing permissions and
2544 * limitations under the License.
2545 */
2546let Zt,Qt,en;class tn{static set __childrenNodeConstructor(e){Zt=e}static get __childrenNodeConstructor(){return Zt}constructor(e,t=tn.__childrenNodeConstructor.EMPTY_NODE){this.value_=e,this.priorityNode_=t,this.lazyHash_=null,(0,a.hu)(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Jt(this.priorityNode_)}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(e){return new tn(this.value_,e)}getImmediateChild(e){return".priority"===e?this.priorityNode_:tn.__childrenNodeConstructor.EMPTY_NODE}getChild(e){return _t(e)?this:".priority"===dt(e)?this.priorityNode_:tn.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(e,t){return null}updateImmediateChild(e,t){return".priority"===e?this.updatePriority(t):t.isEmpty()&&".priority"!==e?this:tn.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(e,t).updatePriority(this.priorityNode_)}updateChild(e,t){const n=dt(e);return null===n?t:t.isEmpty()&&".priority"!==n?this:((0,a.hu)(".priority"!==n||1===ht(e),".priority must be the last token in a path"),this.updateImmediateChild(n,tn.__childrenNodeConstructor.EMPTY_NODE.updateChild(pt(e),t)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(e,t){return!1}
2546val(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(null===this.lazyHash_){let e="";this.priorityNode_.isEmpty()||(e+="priority:"+Xt(this.priorityNode_.val())+":");const t=typeof this.value_;e+=t+":",e+="number"===t?V(this.value_):this.value_,this.lazyHash_=y(e)}return this.lazyHash_}getValue(){return this.value_}compareTo(e){return e===tn.__childrenNodeConstructor.EMPTY_NODE?1:e instanceof tn.__childrenNodeConstructor?-1:((0,a.hu)(e.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(e))}compareToLeafNode_(e){const t=typeof e.value_,n=typeof this.value_,r=tn.VALUE_TYPE_ORDER.indexOf(t),i=tn.VALUE_TYPE_ORDER.indexOf(n);return(0,a.hu)(r>=0,"Unknown leaf type: "+t),(0,a.hu)(i>=0,"Unknown leaf type: "+n),r===i?"object"===n?0:this.value_<e.value_?-1:this.value_===e.value_?0:1:i-r}withIndex(){return this}isIndexed(){return!0}equals(e){if(e===this)return!0;if(e.isLeafNode()){const t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1}}function nn(e){Qt=e}function rn(e){en=e}tn.VALUE_TYPE_ORDER=["object","boolean","number","string"];class an extends Mt{compare(e,t){const n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?N(e.name,t.name):i}isDefinedOn(e){return!e.getPriority().isEmpty()}indexedValueChanged(e,t){return!e.getPriority().equals(t.getPriority())}minPost(){return Ft.MIN}maxPost(){return new Ft(O,new tn("[PRIORITY-POST]",en))}makePost(e,t){const n=Qt(e);return new Ft(t,new tn("[PRIORITY-POST]",n))}toString(){return".priority"}}const on=new an,sn=Math.log(2);
2547/**
2548 * @license
2549 * Copyright 2017 Google LLC
2550 *
2551 * Licensed under the Apache License, Version 2.0 (the "License");
2552 * you may not use this file except in compliance with the License.
2553 * You may obtain a copy of the License at
2554 *
2555 *   http://www.apache.org/licenses/LICENSE-2.0
2556 *
2557 * Unless required by applicable law or agreed to in writing, software
2558 * distributed under the License is distributed on an "AS IS" BASIS,
2559 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2560 * See the License for the specific language governing permissions and
2561 * limitations under the License.
2562 */class ln{constructor(e){const t=e=>parseInt(Math.log(e)/sn,10),n=e=>parseInt(Array(e+1).join("1"),2);this.count=t(e+1),this.current_=this.count-1;const r=n(this.count);this.bits_=e+1&r}nextBitIsOne(){const e=!(this.bits_&1<<this.current_);return this.current_--,e}}const un=function(e,t,n,r){e.sort(t);const i=function(t,r){const a=r-t;let o,s;if(0===a)return null;if(1===a)return o=e[t],s=n?n(o):o,new Wt(s,o.node,Wt.BLACK,null,null);{const l=parseInt(a/2,10)+t,u=i(t,l),c=i(l+1,r);return o=e[l],s=n?n(o):o,new Wt(s,o.node,Wt.BLACK,u,c)}},a=function(t){let r=null,a=null,o=e.length;const s=function(t,r){const a=o-t,s=o;o-=t;const u=i(a+1,s),c=e[a],d=n?n(c):c;l(new Wt(d,c.node,r,null,u))},l=function(e){r?(r.left=e,r=e):(a=e,r=e)};for(let e=0;e<t.count;++e){const n=t.nextBitIsOne(),r=Math.pow(2,t.count-(e+1));n?s(r,Wt.BLACK):(s(r,Wt.BLACK),s(r,Wt.RED))}return a},o=new ln(e.length),s=a(o);return new qt(r||t,s)};
2563/**
2564 * @license
2565 * Copyright 2017 Google LLC
2566 *
2567 * Licensed under the Apache License, Version 2.0 (the "License");
2568 * you may not use this file except in compliance with the License.
2569 * You may obtain a copy of the License at
2570 *
2571 *   http://www.apache.org/licenses/LICENSE-2.0
2572 *
2573 * Unless required by applicable law or agreed to in writing, software
2574 * distributed under the License is distributed on an "AS IS" BASIS,
2575 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2576 * See the License for the specific language governing permissions and
2577 * limitations under the License.
2578 */let cn;const dn={};class hn{static get Default(){return(0,a.hu)(dn&&on,"ChildrenNode.ts has not been loaded"),cn=cn||new hn({".priority":dn},{".priority":on}),cn}constructor(e,t){this.indexes_=e,this.indexSet_=t}get(e){const t=(0,a.DV)(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof qt?t:null}hasIndex(e){return(0,a.r3)(this.indexSet_,e.toString())}addIndex(e,t){(0,a.hu)(e!==Bt,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const n=[];let r=!1;const i=t.getIterator(Ft.Wrap);let o,s=i.getNext();while(s)r=r||e.isDefinedOn(s.node),n.push(s),s=i.getNext();o=r?un(n,e.getCompare()):dn;const l=e.toString(),u={...this.indexSet_};u[l]=e;const c={...this.indexes_};return c[l]=o,new hn(c,u)}
vendor: 4,995 bytes, lines 2578-2594
2578addToIndexes(e,t){const n=(0,a.UI)(this.indexes_,((n,r)=>{const i=(0,a.DV)(this.indexSet_,r);if((0,a.hu)(i,"Missing index implementation for "+r),n===dn){if(i.isDefinedOn(e.node)){const n=[],r=t.getIterator(Ft.Wrap);let a=r.getNext();while(a)a.name!==e.name&&n.push(a),a=r.getNext();return n.push(e),un(n,i.getCompare())}return dn}{const r=t.get(e.name);let i=n;return r&&(i=i.remove(new Ft(e.name,r))),i.insert(e,e.node)}}));return new hn(n,this.indexSet_)}removeFromIndexes(e,t){const n=(0,a.UI)(this.indexes_,(n=>{if(n===dn)return n;{const r=t.get(e.name);return r?n.remove(new Ft(e.name,r)):n}}));return new hn(n,this.indexSet_)}}
2579/**
2580 * @license
2581 * Copyright 2017 Google LLC
2582 *
2583 * Licensed under the Apache License, Version 2.0 (the "License");
2584 * you may not use this file except in compliance with the License.
2585 * You may obtain a copy of the License at
2586 *
2587 *   http://www.apache.org/licenses/LICENSE-2.0
2588 *
2589 * Unless required by applicable law or agreed to in writing, software
2590 * distributed under the License is distributed on an "AS IS" BASIS,
2591 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2592 * See the License for the specific language governing permissions and
2593 * limitations under the License.
2594 */let pn;class fn{static get EMPTY_NODE(){return pn||(pn=new fn(new qt(zt),null,hn.Default))}constructor(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Jt(this.priorityNode_),this.children_.isEmpty()&&(0,a.hu)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}isLeafNode(){return!1}getPriority(){return this.priorityNode_||pn}updatePriority(e){return this.children_.isEmpty()?this:new fn(this.children_,e,this.indexMap_)}getImmediateChild(e){if(".priority"===e)return this.getPriority();{const t=this.children_.get(e);return null===t?pn:t}}getChild(e){const t=dt(e);return null===t?this:this.getImmediateChild(t).getChild(pt(e))}hasChild(e){return null!==this.children_.get(e)}updateImmediateChild(e,t){if((0,a.hu)(t,"We should always be passing snapshot nodes"),".priority"===e)return this.updatePriority(t);{const n=new Ft(e,t);let r,i;t.isEmpty()?(r=this.children_.remove(e),i=this.indexMap_.removeFromIndexes(n,this.children_)):(r=this.children_.insert(e,t),i=this.indexMap_.addToIndexes(n,this.children_));const a=r.isEmpty()?pn:this.priorityNode_;return new fn(r,a,i)}}updateChild(e,t){const n=dt(e);if(null===n)return t;{(0,a.hu)(".priority"!==dt(e)||1===ht(e),".priority must be the last token in a path");const r=this.getImmediateChild(n).updateChild(pt(e),t);return this.updateImmediateChild(n,r)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(e){if(this.isEmpty())return null;const t={};let n=0,r=0,i=!0;if(this.forEachChild(on,((a,o)=>{t[a]=o.val(e),n++,i&&fn.INTEGER_REGEXP_.test(a)?r=Math.max(r,Number(a)):i=!1})),!e&&i&&r<2*n){const e=[];for(const n in t)e[n]=t[n];return e}return e&&!this.getPriority().isEmpty()&&(t[".priority"]=this.getPriority().val()),t}hash(){if(null===this.lazyHash_){let e="";this.getPriority().isEmpty()||(e+="priority:"+Xt(this.getPriority().val())+":"),this.forEachChild(on,((t,n)=>{const r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":y(e)}return this.lazyHash_}getPredecessorChildName(e,t,n){const r=this.resolveIndex_(n);if(r){const n=r.getPredecessorKey(new Ft(e,t));return n?n.name:null}return this.children_.getPredecessorKey(e)}getFirstChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.minKey();return e&&e.name}return this.children_.minKey()}getFirstChild(e){const t=this.getFirstChildName(e);return t?new Ft(t,this.children_.get(t)):null}getLastChildName(e){const t=this.resolveIndex_(e);if(t){const e=t.maxKey();return e&&e.name}return this.children_.maxKey()}getLastChild(e){const t=this.getLastChildName(e);return t?new Ft(t,this.children_.get(t)):null}forEachChild(e,t){const n=this.resolveIndex_(e);return n?n.inorderTraversal((e=>t(e.name,e.node))):this.children_.inorderTraversal(t)}getIterator(e){return this.getIteratorFrom(e.minPost(),e)}getIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(e=>e));{const n=this.children_.getIteratorFrom(e.name,Ft.Wrap);let r=n.peek();while(null!=r&&t.compare(r,e)<0)n.getNext(),r=n.peek();return n}}getReverseIterator(e){return this.getReverseIteratorFrom(e.maxPost(),e)}getReverseIteratorFrom(e,t){const n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(e=>e));{const n=this.children_.getReverseIteratorFrom(e.name,Ft.Wrap);let r=n.peek();while(null!=r&&t.compare(r,e)>0)n.getNext(),r=n.peek();return n}}compareTo(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===vn?-1:0}withIndex(e){if(e===Bt||this.indexMap_.hasIndex(e))return this;{const t=this.indexMap_.addIndex(e,this.children_);return new fn(this.children_,this.priorityNode_,t)}}isIndexed(e){return e===Bt||this.indexMap_.hasIndex(e)}equals(e){if(e===this)return!0;
2594if(e.isLeafNode())return!1;{const t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){const e=this.getIterator(on),n=t.getIterator(on);let r=e.getNext(),i=n.getNext();while(r&&i){if(r.name!==i.name||!r.node.equals(i.node))return!1;r=e.getNext(),i=n.getNext()}return null===r&&null===i}return!1}return!1}}resolveIndex_(e){return e===Bt?null:this.indexMap_.get(e.toString())}}fn.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;class mn extends fn{constructor(){super(new qt(zt),fn.EMPTY_NODE,hn.Default)}compareTo(e){return e===this?0:1}equals(e){return e===this}getPriority(){return this}getImmediateChild(e){return fn.EMPTY_NODE}isEmpty(){return!1}}const vn=new mn;Object.defineProperties(Ft,{MIN:{value:new Ft($,fn.EMPTY_NODE)},MAX:{value:new Ft(O,vn)}}),Ut.__EMPTY_NODE=fn.EMPTY_NODE,tn.__childrenNodeConstructor=fn,Kt(vn),rn(vn);
2595/**
2596 * @license
2597 * Copyright 2017 Google LLC
2598 *
2599 * Licensed under the Apache License, Version 2.0 (the "License");
2600 * you may not use this file except in compliance with the License.
2601 * You may obtain a copy of the License at
2602 *
2603 *   http://www.apache.org/licenses/LICENSE-2.0
2604 *
2605 * Unless required by applicable law or agreed to in writing, software
2606 * distributed under the License is distributed on an "AS IS" BASIS,
2607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2608 * See the License for the specific language governing permissions and
2609 * limitations under the License.
2610 */
2611const gn=!0;function yn(e,t=null){if(null===e)return fn.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),(0,a.hu)(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e){const n=e;return new tn(n,yn(t))}if(e instanceof Array||!gn){let n=fn.EMPTY_NODE;return M(e,((t,r)=>{if((0,a.r3)(e,t)&&"."!==t.substring(0,1)){const e=yn(r);!e.isLeafNode()&&e.isEmpty()||(n=n.updateImmediateChild(t,e))}})),n.updatePriority(yn(t))}{const n=[];let r=!1;const i=e;if(M(i,((e,t)=>{if("."!==e.substring(0,1)){const i=yn(t);i.isEmpty()||(r=r||!i.getPriority().isEmpty(),n.push(new Ft(e,i)))}})),0===n.length)return fn.EMPTY_NODE;const a=un(n,Gt,(e=>e.name),zt);if(r){const e=un(n,on.getCompare());return new fn(a,yn(t),new hn({".priority":e},{".priority":on}))}return new fn(a,yn(t),hn.Default)}}nn(yn);
2612/**
2613 * @license
2614 * Copyright 2017 Google LLC
2615 *
2616 * Licensed under the Apache License, Version 2.0 (the "License");
2617 * you may not use this file except in compliance with the License.
2618 * You may obtain a copy of the License at
2619 *
2620 *   http://www.apache.org/licenses/LICENSE-2.0
2621 *
2622 * Unless required by applicable law or agreed to in writing, software
2623 * distributed under the License is distributed on an "AS IS" BASIS,
2624 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2625 * See the License for the specific language governing permissions and
2626 * limitations under the License.
2627 */
2628class _n extends Mt{constructor(e){super(),this.indexPath_=e,(0,a.hu)(!_t(e)&&".priority"!==dt(e),"Can't create PathIndex with empty path or .priority key")}extractChild(e){return e.getChild(this.indexPath_)}isDefinedOn(e){return!e.getChild(this.indexPath_).isEmpty()}compare(e,t){const n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?N(e.name,t.name):i}makePost(e,t){const n=yn(e),r=fn.EMPTY_NODE.updateChild(this.indexPath_,n);return new Ft(t,r)}maxPost(){const e=fn.EMPTY_NODE.updateChild(this.indexPath_,vn);return new Ft(O,e)}toString(){return vt(this.indexPath_,0).join("/")}}
2629/**
2630 * @license
2631 * Copyright 2017 Google LLC
2632 *
2633 * Licensed under the Apache License, Version 2.0 (the "License");
2634 * you may not use this file except in compliance with the License.
2635 * You may obtain a copy of the License at
2636 *
2637 *   http://www.apache.org/licenses/LICENSE-2.0
2638 *
2639 * Unless required by applicable law or agreed to in writing, software
2640 * distributed under the License is distributed on an "AS IS" BASIS,
2641 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2642 * See the License for the specific language governing permissions and
2643 * limitations under the License.
2644 */class bn extends Mt{compare(e,t){const n=e.node.compareTo(t.node);return 0===n?N(e.name,t.name):n}isDefinedOn(e){return!0}indexedValueChanged(e,t){return!e.equals(t)}
vendor: 4,871 bytes, lines 2644-2697
2644minPost(){return Ft.MIN}maxPost(){return Ft.MAX}makePost(e,t){const n=yn(e);return new Ft(t,n)}toString(){return".value"}}const Tn=new bn;
2645/**
2646 * @license
2647 * Copyright 2017 Google LLC
2648 *
2649 * Licensed under the Apache License, Version 2.0 (the "License");
2650 * you may not use this file except in compliance with the License.
2651 * You may obtain a copy of the License at
2652 *
2653 *   http://www.apache.org/licenses/LICENSE-2.0
2654 *
2655 * Unless required by applicable law or agreed to in writing, software
2656 * distributed under the License is distributed on an "AS IS" BASIS,
2657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2658 * See the License for the specific language governing permissions and
2659 * limitations under the License.
2660 */function wn(e){return{type:"value",snapshotNode:e}}function Sn(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function kn(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function Cn(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}function En(e,t){return{type:"child_moved",snapshotNode:t,childName:e}}
2661/**
2662 * @license
2663 * Copyright 2017 Google LLC
2664 *
2665 * Licensed under the Apache License, Version 2.0 (the "License");
2666 * you may not use this file except in compliance with the License.
2667 * You may obtain a copy of the License at
2668 *
2669 *   http://www.apache.org/licenses/LICENSE-2.0
2670 *
2671 * Unless required by applicable law or agreed to in writing, software
2672 * distributed under the License is distributed on an "AS IS" BASIS,
2673 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2674 * See the License for the specific language governing permissions and
2675 * limitations under the License.
2676 */class In{constructor(e){this.index_=e}updateChild(e,t,n,r,i,o){(0,a.hu)(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");const s=e.getImmediateChild(t);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(kn(t,s)):(0,a.hu)(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?o.trackChildChange(Sn(t,n)):o.trackChildChange(Cn(t,n,s))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))}updateFullNode(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(on,((e,r)=>{t.hasChild(e)||n.trackChildChange(kn(e,r))})),t.isLeafNode()||t.forEachChild(on,((t,r)=>{if(e.hasChild(t)){const i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(Cn(t,r,i))}else n.trackChildChange(Sn(t,r))}))),t.withIndex(this.index_)}updatePriority(e,t){return e.isEmpty()?fn.EMPTY_NODE:e.updatePriority(t)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}
2677/**
2678 * @license
2679 * Copyright 2017 Google LLC
2680 *
2681 * Licensed under the Apache License, Version 2.0 (the "License");
2682 * you may not use this file except in compliance with the License.
2683 * You may obtain a copy of the License at
2684 *
2685 *   http://www.apache.org/licenses/LICENSE-2.0
2686 *
2687 * Unless required by applicable law or agreed to in writing, software
2688 * distributed under the License is distributed on an "AS IS" BASIS,
2689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2690 * See the License for the specific language governing permissions and
2691 * limitations under the License.
2692 */class xn{constructor(e){this.indexedFilter_=new In(e.getIndex()),this.index_=e.getIndex(),this.startPost_=xn.getStartPost_(e),this.endPost_=xn.getEndPost_(e),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(e){const t=this.startIsInclusive_?this.index_.compare(this.getStartPost(),e)<=0:this.index_.compare(this.getStartPost(),e)<0,n=this.endIsInclusive_?this.index_.compare(e,this.getEndPost())<=0:this.index_.compare(e,this.getEndPost())<0;return t&&n}updateChild(e,t,n,r,i,a){return this.matches(new Ft(t,n))||(n=fn.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,a)}updateFullNode(e,t,n){t.isLeafNode()&&(t=fn.EMPTY_NODE);let r=t.withIndex(this.index_);r=r.updatePriority(fn.EMPTY_NODE);const i=this;return t.forEachChild(on,((e,t)=>{i.matches(new Ft(e,t))||(r=r.updateImmediateChild(e,fn.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(e){if(e.hasStart()){const t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()}static getEndPost_(e){if(e.hasEnd()){const t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()}}
2693/**
2694 * @license
2695 * Copyright 2017 Google LLC
2696 *
2697 * Licensed under the Apache License, Version 2.0 (the "License");
2698 * you may not use this file except in compliance with the License.
2699 * You may obtain a copy of the License at
2700 *
2701 *   http://www.apache.org/licenses/LICENSE-2.0
2702 *
2703 * Unless required by applicable law or agreed to in writing, software
2704 * distributed under the License is distributed on an "AS IS" BASIS,
2705 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2706 * See the License for the specific language governing permissions and
2707 * limitations under the License.
2708 */class An{constructor(e){this.withinDirectionalStart=e=>this.reverse_?this.withinEndPost(e):this.withinStartPost(e),this.withinDirectionalEnd=e=>this.reverse_?this.withinStartPost(e):this.withinEndPost(e),this.withinStartPost=e=>{const t=this.index_.compare(this.rangedFilter_.getStartPost(),e);return this.startIsInclusive_?t<=0:t<0},this.withinEndPost=e=>{const t=this.index_.compare(e,this.rangedFilter_.getEndPost());return this.endIsInclusive_?t<=0:t<0},this.rangedFilter_=new xn(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft(),this.startIsInclusive_=!e.startAfterSet_,this.endIsInclusive_=!e.endBeforeSet_}updateChild(e,t,n,r,i,a){return this.rangedFilter_.matches(new Ft(t,n))||(n=fn.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,a):this.fullLimitUpdateChild_(e,t,n,i,a)}updateFullNode(e,t,n){let r;if(t.isLeafNode()||t.isEmpty())r=fn.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){let e;r=fn.EMPTY_NODE.withIndex(this.index_),e=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let n=0;while(e.hasNext()&&n<this.limit_){const t=e.getNext();if(this.withinDirectionalStart(t)){if(!this.withinDirectionalEnd(t))break;r=r.updateImmediateChild(t.name,t.node),n++}}}else{let e;r=t.withIndex(this.index_),r=r.updatePriority(fn.EMPTY_NODE),e=this.reverse_?r.getReverseIterator(this.index_):r.getIterator(this.index_);let n=0;while(e.hasNext()){const t=e.getNext(),i=n<this.limit_&&this.withinDirectionalStart(t)&&this.withinDirectionalEnd(t);i?n++:r=r.updateImmediateChild(t.name,fn.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)}updatePriority(e,t){return e}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(e,t,n,r,i){let o;if(this.reverse_){const e=this.index_.getCompare();o=(t,n)=>e(n,t)}else o=this.index_.getCompare();const s=e;(0,a.hu)(s.numChildren()===this.limit_,"");const l=new Ft(t,n),u=this.reverse_?s.getFirstChild(this.index_):s.getLastChild(this.index_),c=this.rangedFilter_.matches(l);if(s.hasChild(t)){const e=s.getImmediateChild(t);let a=r.getChildAfterChild(this.index_,u,this.reverse_);while(null!=a&&(a.name===t||s.hasChild(a.name)))a=r.getChildAfterChild(this.index_,a,this.reverse_);const d=null==a?1:o(a,l),h=c&&!n.isEmpty()&&d>=0;if(h)return null!=i&&i.trackChildChange(Cn(t,n,e)),s.updateImmediateChild(t,n);{null!=i&&i.trackChildChange(kn(t,e));const n=s.updateImmediateChild(t,fn.EMPTY_NODE),r=null!=a&&this.rangedFilter_.matches(a);return r?(null!=i&&i.trackChildChange(Sn(a.name,a.node)),n.updateImmediateChild(a.name,a.node)):n}}return n.isEmpty()?e:c&&o(u,l)>=0?(null!=i&&(i.trackChildChange(kn(u.name,u.node)),i.trackChildChange(Sn(t,n))),s.updateImmediateChild(t,n).updateImmediateChild(u.name,fn.EMPTY_NODE)):e}}
2709/**
2710 * @license
2711 * Copyright 2017 Google LLC
2712 *
2713 * Licensed under the Apache License, Version 2.0 (the "License");
2714 * you may not use this file except in compliance with the License.
2715 * You may obtain a copy of the License at
2716 *
2717 *   http://www.apache.org/licenses/LICENSE-2.0
2718 *
2719 * Unless required by applicable law or agreed to in writing, software
2720 * distributed under the License is distributed on an "AS IS" BASIS,
2721 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2722 * See the License for the specific language governing permissions and
2723 * limitations under the License.
2724 */class Pn{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=on}hasStart(){return this.startSet_}isViewFromLeft(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_}getIndexStartValue(){return(0,a.hu)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return(0,a.hu)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:$}hasEnd(){return this.endSet_}getIndexEndValue(){return(0,a.hu)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return(0,a.hu)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:O}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&""!==this.viewFrom_}getLimit(){return(0,a.hu)(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===on}copy(){const e=new Pn;return e.limitSet_=this.limitSet_,e.limit_=this.limit_,e.startSet_=this.startSet_,e.startAfterSet_=this.startAfterSet_,e.indexStartValue_=this.indexStartValue_,e.startNameSet_=this.startNameSet_,e.indexStartName_=this.indexStartName_,e.endSet_=this.endSet_,e.endBeforeSet_=this.endBeforeSet_,e.indexEndValue_=this.indexEndValue_,e.endNameSet_=this.endNameSet_,e.indexEndName_=this.indexEndName_,e.index_=this.index_,e.viewFrom_=this.viewFrom_,e}}function $n(e){return e.loadsAllData()?new In(e.getIndex()):e.hasLimit()?new An(e):new xn(e)}function On(e){const t={};if(e.isDefault())return t;let n;
2724if(e.index_===on?n="$priority":e.index_===Tn?n="$value":e.index_===Bt?n="$key":((0,a.hu)(e.index_ instanceof _n,"Unrecognized index type!"),n=e.index_.toString()),t["orderBy"]=(0,a.Wl)(n),e.startSet_){const n=e.startAfterSet_?"startAfter":"startAt";t[n]=(0,a.Wl)(e.indexStartValue_),e.startNameSet_&&(t[n]+=","+(0,a.Wl)(e.indexStartName_))}if(e.endSet_){const n=e.endBeforeSet_?"endBefore":"endAt";t[n]=(0,a.Wl)(e.indexEndValue_),e.endNameSet_&&(t[n]+=","+(0,a.Wl)(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t["limitToFirst"]=e.limit_:t["limitToLast"]=e.limit_),t}function Nn(e){const t={};if(e.startSet_&&(t["sp"]=e.indexStartValue_,e.startNameSet_&&(t["sn"]=e.indexStartName_),t["sin"]=!e.startAfterSet_),e.endSet_&&(t["ep"]=e.indexEndValue_,e.endNameSet_&&(t["en"]=e.indexEndName_),t["ein"]=!e.endBeforeSet_),e.limitSet_){t["l"]=e.limit_;let n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t["vf"]=n}return e.index_!==on&&(t["i"]=e.index_.toString()),t}
2725/**
2726 * @license
2727 * Copyright 2017 Google LLC
2728 *
2729 * Licensed under the Apache License, Version 2.0 (the "License");
2730 * you may not use this file except in compliance with the License.
2731 * You may obtain a copy of the License at
2732 *
2733 *   http://www.apache.org/licenses/LICENSE-2.0
2734 *
2735 * Unless required by applicable law or agreed to in writing, software
2736 * distributed under the License is distributed on an "AS IS" BASIS,
2737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2738 * See the License for the specific language governing permissions and
2739 * limitations under the License.
2740 */class Ln extends it{reportStats(e){throw new Error("Method not implemented.")}static getListenId_(e,t){return void 0!==t?"tag$"+t:((0,a.hu)(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())}constructor(e,t,n,r){super(),this.repoInfo_=e,this.onDataUpdate_=t,this.authTokenProvider_=n,this.appCheckTokenProvider_=r,this.log_=k("p:rest:"),this.listens_={}}listen(e,t,n,r){const i=e._path.toString();this.log_("Listen called for "+i+" "+e._queryIdentifier);const o=Ln.getListenId_(e,n),s={};this.listens_[o]=s;const l=On(e._queryParams);this.restRequest_(i+".json",l,((e,t)=>{let l=t;if(404===e&&(l=null,e=null),null===e&&this.onDataUpdate_(i,l,!1,n),(0,a.DV)(this.listens_,o)===s){let t;t=e?401===e?"permission_denied":"rest_error:"+e:"ok",r(t,null)}}))}unlisten(e,t){const n=Ln.getListenId_(e,t);delete this.listens_[n]}get(e){const t=On(e._queryParams),n=e._path.toString(),r=new a.BH;return this.restRequest_(n+".json",t,((e,t)=>{let i=t;404===e&&(i=null,e=null),null===e?(this.onDataUpdate_(n,i,!1,null),r.resolve(i)):r.reject(new Error(i))})),r.promise}refreshAuthToken(e){}restRequest_(e,t={},n){return t["format"]="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((([r,i])=>{r&&r.accessToken&&(t["auth"]=r.accessToken),i&&i.token&&(t["ac"]=i.token);const o=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+e+"?ns="+this.repoInfo_.namespace+(0,a.xO)(t);this.log_("Sending REST request for "+o);const s=new XMLHttpRequest;s.onreadystatechange=()=>{if(n&&4===s.readyState){this.log_("REST Response for "+o+" received. status:",s.status,"response:",s.responseText);let t=null;if(s.status>=200&&s.status<300){try{t=(0,a.cI)(s.responseText)}catch(e){I("Failed to parse JSON response for "+o+": "+s.responseText)}n(null,t)}else 401!==s.status&&404!==s.status&&I("Got unsuccessful REST response for "+o+" Status: "+s.status),n(s.status);n=null}},s.open("GET",o,!0),s.send()}))}}
2741/**
2742 * @license
2743 * Copyright 2017 Google LLC
2744 *
2745 * Licensed under the Apache License, Version 2.0 (the "License");
2746 * you may not use this file except in compliance with the License.
2747 * You may obtain a copy of the License at
2748 *
2749 *   http://www.apache.org/licenses/LICENSE-2.0
2750 *
2751 * Unless required by applicable law or agreed to in writing, software
2752 * distributed under the License is distributed on an "AS IS" BASIS,
2753 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2754 * See the License for the specific language governing permissions and
2755 * limitations under the License.
2756 */class Dn{constructor(){this.rootNode_=fn.EMPTY_NODE}getNode(e){return this.rootNode_.getChild(e)}updateSnapshot(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)}}
2757/**
2758 * @license
2759 * Copyright 2017 Google LLC
2760 *
2761 * Licensed under the Apache License, Version 2.0 (the "License");
2762 * you may not use this file except in compliance with the License.
2763 * You may obtain a copy of the License at
2764 *
2765 *   http://www.apache.org/licenses/LICENSE-2.0
2766 *
2767 * Unless required by applicable law or agreed to in writing, software
2768 * distributed under the License is distributed on an "AS IS" BASIS,
2769 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2770 * See the License for the specific language governing permissions and
2771 * limitations under the License.
2772 */function Rn(){return{value:null,children:new Map}}function Fn(e,t,n){if(_t(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{const r=dt(t);e.children.has(r)||e.children.set(r,Rn());const i=e.children.get(r);t=pt(t),Fn(i,t,n)}}function Mn(e,t,n){null!==e.value?n(t,e.value):Vn(e,((e,r)=>{const i=new ut(t.toString()+"/"+e);Mn(r,i,n)}))}function Vn(e,t){e.children.forEach(((e,n)=>{t(n,e)}))}
2773/**
2774 * @license
2775 * Copyright 2017 Google LLC
2776 *
2777 * Licensed under the Apache License, Version 2.0 (the "License");
2778 * you may not use this file except in compliance with the License.
2779 * You may obtain a copy of the License at
2780 *
2781 *   http://www.apache.org/licenses/LICENSE-2.0
2782 *
2783 * Unless required by applicable law or agreed to in writing, software
2784 * distributed under the License is distributed on an "AS IS" BASIS,
2785 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2786 * See the License for the specific language governing permissions and
2787 * limitations under the License.
2788 */class Un{constructor(e){this.collection_=e,this.last_=null}get(){const e=this.collection_.get(),t={...e};return this.last_&&M(this.last_,((e,n)=>{t[e]=t[e]-n})),this.last_=e,t}}
2789/**
2790 * @license
2791 * Copyright 2017 Google LLC
2792 *
2793 * Licensed under the Apache License, Version 2.0 (the "License");
2794 * you may not use this file except in compliance with the License.
2795 * You may obtain a copy of the License at
2796 *
2797 *   http://www.apache.org/licenses/LICENSE-2.0
2798 *
2799 * Unless required by applicable law or agreed to in writing, software
2800 * distributed under the License is distributed on an "AS IS" BASIS,
2801 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2802 * See the License for the specific language governing permissions and
2803 * limitations under the License.
2804 */const Bn=1e4,jn=3e4,Wn=3e5;class Hn{constructor(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Un(e);const n=Bn+(jn-Bn)*Math.random();K(this.reportStats_.bind(this),Math.floor(n))}reportStats_(){const e=this.statsListener_.get(),t={};let n=!1;M(e,((e,r)=>{r>0&&(0,a.r3)(this.statsToReport_,e)&&(t[e]=r,n=!0)})),n&&this.server_.reportStats(t),K(this.reportStats_.bind(this),Math.floor(2*Math.random()*Wn))}}
2805/**
2806 * @license
2807 * Copyright 2017 Google LLC
2808 *
2809 * Licensed under the Apache License, Version 2.0 (the "License");
2810 * you may not use this file except in compliance with the License.
2811 * You may obtain a copy of the License at
2812 *
2813 *   http://www.apache.org/licenses/LICENSE-2.0
2814 *
2815 * Unless required by applicable law or agreed to in writing, software
2816 * distributed under the License is distributed on an "AS IS" BASIS,
2817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2818 * See the License for the specific language governing permissions and
2819 * limitations under the License.
2820 */var qn;function Gn(){return{fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}function zn(){return{fromUser:!1,fromServer:!0,queryId:null,tagged:!1}}function Yn(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}
2821/**
2822 * @license
2823 * Copyright 2017 Google LLC
2824 *
2825 * Licensed under the Apache License, Version 2.0 (the "License");
2826 * you may not use this file except in compliance with the License.
2827 * You may obtain a copy of the License at
2828 *
2829 *   http://www.apache.org/licenses/LICENSE-2.0
2830 *
2831 * Unless required by applicable law or agreed to in writing, software
2832 * distributed under the License is distributed on an "AS IS" BASIS,
2833 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2834 * See the License for the specific language governing permissions and
2835 * limitations under the License.
2836 */(function(e){e[e["OVERWRITE"]=0]="OVERWRITE",e[e["MERGE"]=1]="MERGE",e[e["ACK_USER_WRITE"]=2]="ACK_USER_WRITE",e[e["LISTEN_COMPLETE"]=3]="LISTEN_COMPLETE"}
vendor: 4,429 bytes, lines 2836-2905
2836)(qn||(qn={}));class Kn{constructor(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=qn.ACK_USER_WRITE,this.source=Gn()}operationForChild(e){if(_t(this.path)){if(null!=this.affectedTree.value)return(0,a.hu)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const t=this.affectedTree.subtree(new ut(e));return new Kn(ct(),t,this.revert)}}return(0,a.hu)(dt(this.path)===e,"operationForChild called for unrelated child."),new Kn(pt(this.path),this.affectedTree,this.revert)}}
2837/**
2838 * @license
2839 * Copyright 2017 Google LLC
2840 *
2841 * Licensed under the Apache License, Version 2.0 (the "License");
2842 * you may not use this file except in compliance with the License.
2843 * You may obtain a copy of the License at
2844 *
2845 *   http://www.apache.org/licenses/LICENSE-2.0
2846 *
2847 * Unless required by applicable law or agreed to in writing, software
2848 * distributed under the License is distributed on an "AS IS" BASIS,
2849 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2850 * See the License for the specific language governing permissions and
2851 * limitations under the License.
2852 */class Xn{constructor(e,t){this.source=e,this.path=t,this.type=qn.LISTEN_COMPLETE}operationForChild(e){return _t(this.path)?new Xn(this.source,ct()):new Xn(this.source,pt(this.path))}}
2853/**
2854 * @license
2855 * Copyright 2017 Google LLC
2856 *
2857 * Licensed under the Apache License, Version 2.0 (the "License");
2858 * you may not use this file except in compliance with the License.
2859 * You may obtain a copy of the License at
2860 *
2861 *   http://www.apache.org/licenses/LICENSE-2.0
2862 *
2863 * Unless required by applicable law or agreed to in writing, software
2864 * distributed under the License is distributed on an "AS IS" BASIS,
2865 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2866 * See the License for the specific language governing permissions and
2867 * limitations under the License.
2868 */class Jn{constructor(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=qn.OVERWRITE}operationForChild(e){return _t(this.path)?new Jn(this.source,ct(),this.snap.getImmediateChild(e)):new Jn(this.source,pt(this.path),this.snap)}}
2869/**
2870 * @license
2871 * Copyright 2017 Google LLC
2872 *
2873 * Licensed under the Apache License, Version 2.0 (the "License");
2874 * you may not use this file except in compliance with the License.
2875 * You may obtain a copy of the License at
2876 *
2877 *   http://www.apache.org/licenses/LICENSE-2.0
2878 *
2879 * Unless required by applicable law or agreed to in writing, software
2880 * distributed under the License is distributed on an "AS IS" BASIS,
2881 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2882 * See the License for the specific language governing permissions and
2883 * limitations under the License.
2884 */class Zn{constructor(e,t,n){this.source=e,this.path=t,this.children=n,this.type=qn.MERGE}operationForChild(e){if(_t(this.path)){const t=this.children.subtree(new ut(e));return t.isEmpty()?null:t.value?new Jn(this.source,ct(),t.value):new Zn(this.source,ct(),t)}return(0,a.hu)(dt(this.path)===e,"Can't get a merge for a child not on the path of the operation"),new Zn(this.source,pt(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}
2885/**
2886 * @license
2887 * Copyright 2017 Google LLC
2888 *
2889 * Licensed under the Apache License, Version 2.0 (the "License");
2890 * you may not use this file except in compliance with the License.
2891 * You may obtain a copy of the License at
2892 *
2893 *   http://www.apache.org/licenses/LICENSE-2.0
2894 *
2895 * Unless required by applicable law or agreed to in writing, software
2896 * distributed under the License is distributed on an "AS IS" BASIS,
2897 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2898 * See the License for the specific language governing permissions and
2899 * limitations under the License.
2900 */class Qn{constructor(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(e){if(_t(e))return this.isFullyInitialized()&&!this.filtered_;const t=dt(e);return this.isCompleteForChild(t)}isCompleteForChild(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)}getNode(){return this.node_}}
2901/**
2902 * @license
2903 * Copyright 2017 Google LLC
2904 *
2905 * Licensed under the Apache License, Version 2.0 (the "License");
2906 * you may not use this file except in compliance with the License.
2907 * You may obtain a copy of the License at
2908 *
2909 *   http://www.apache.org/licenses/LICENSE-2.0
2910 *
2911 * Unless required by applicable law or agreed to in writing, software
2912 * distributed under the License is distributed on an "AS IS" BASIS,
2913 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2914 * See the License for the specific language governing permissions and
2915 * limitations under the License.
2916 */class er{constructor(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()}}function tr(e,t,n,r){const i=[],a=[];return t.forEach((t=>{"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&a.push(En(t.childName,t.snapshotNode))})),nr(e,i,"child_removed",t,r,n),nr(e,i,"child_added",t,r,n),nr(e,i,"child_moved",a,r,n),nr(e,i,"child_changed",t,r,n),nr(e,i,"value",t,r,n),i}function nr(e,t,n,r,i,a){const o=r.filter((e=>e.type===n));o.sort(((t,n)=>ir(e,t,n))),o.forEach((n=>{const r=rr(e,n,a);i.forEach((i=>{i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))}))}))}function rr(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}function ir(e,t,n){if(null==t.childName||null==n.childName)throw(0,a.g5)("Should only compare child_ events.");const r=new Ft(t.childName,t.snapshotNode),i=new Ft(n.childName,n.snapshotNode);return e.index_.compare(r,i)}
2917/**
2918 * @license
2919 * Copyright 2017 Google LLC
2920 *
2921 * Licensed under the Apache License, Version 2.0 (the "License");
2922 * you may not use this file except in compliance with the License.
2923 * You may obtain a copy of the License at
2924 *
2925 *   http://www.apache.org/licenses/LICENSE-2.0
2926 *
2927 * Unless required by applicable law or agreed to in writing, software
2928 * distributed under the License is distributed on an "AS IS" BASIS,
2929 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2930 * See the License for the specific language governing permissions and
2931 * limitations under the License.
2932 */function ar(e,t){return{eventCache:e,serverCache:t}}function or(e,t,n,r){return ar(new Qn(t,n,r),e.serverCache)}function sr(e,t,n,r){return ar(e.eventCache,new Qn(t,n,r))}function lr(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function ur(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}
2933/**
2934 * @license
2935 * Copyright 2017 Google LLC
2936 *
2937 * Licensed under the Apache License, Version 2.0 (the "License");
2938 * you may not use this file except in compliance with the License.
2939 * You may obtain a copy of the License at
2940 *
2941 *   http://www.apache.org/licenses/LICENSE-2.0
2942 *
2943 * Unless required by applicable law or agreed to in writing, software
2944 * distributed under the License is distributed on an "AS IS" BASIS,
2945 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2946 * See the License for the specific language governing permissions and
2947 * limitations under the License.
2948 */let cr;const dr=()=>(cr||(cr=new qt(L)),cr);class hr{static fromObject(e){let t=new hr(null);return M(e,((e,n)=>{t=t.set(new ut(e),n)})),t}constructor(e,t=dr()){this.value=e,this.children=t}isEmpty(){return null===this.value&&this.children.isEmpty()}findRootMostMatchingPathAndValue(e,t){if(null!=this.value&&t(this.value))return{path:ct(),value:this.value};if(_t(e))return null;{const n=dt(e),r=this.children.get(n);if(null!==r){const i=r.findRootMostMatchingPathAndValue(pt(e),t);if(null!=i){const e=yt(new ut(n),i.path);return{path:e,value:i.value}}return null}return null}}findRootMostValueAndPath(e){return this.findRootMostMatchingPathAndValue(e,(()=>!0))}subtree(e){if(_t(e))return this;{const t=dt(e),n=this.children.get(t);return null!==n?n.subtree(pt(e)):new hr(null)}}set(e,t){if(_t(e))return new hr(t,this.children);{const n=dt(e),r=this.children.get(n)||new hr(null),i=r.set(pt(e),t),a=this.children.insert(n,i);return new hr(this.value,a)}}remove(e){if(_t(e))return this.children.isEmpty()?new hr(null):new hr(null,this.children);{const t=dt(e),n=this.children.get(t);if(n){const r=n.remove(pt(e));let i;return i=r.isEmpty()?this.children.remove(t):this.children.insert(t,r),null===this.value&&i.isEmpty()?new hr(null):new hr(this.value,i)}return this}}get(e){if(_t(e))return this.value;{const t=dt(e),n=this.children.get(t);return n?n.get(pt(e)):null}}setTree(e,t){if(_t(e))return t;{const n=dt(e),r=this.children.get(n)||new hr(null),i=r.setTree(pt(e),t);let a;return a=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),new hr(this.value,a)}}fold(e){return this.fold_(ct(),e)}fold_(e,t){const n={};return this.children.inorderTraversal(((r,i)=>{n[r]=i.fold_(yt(e,r),t)}
vendor: 5,125 bytes, lines 2948-2980
2948)),t(e,this.value,n)}findOnPath(e,t){return this.findOnPath_(e,ct(),t)}findOnPath_(e,t,n){const r=!!this.value&&n(t,this.value);if(r)return r;if(_t(e))return null;{const r=dt(e),i=this.children.get(r);return i?i.findOnPath_(pt(e),yt(t,r),n):null}}foreachOnPath(e,t){return this.foreachOnPath_(e,ct(),t)}foreachOnPath_(e,t,n){if(_t(e))return this;{this.value&&n(t,this.value);const r=dt(e),i=this.children.get(r);return i?i.foreachOnPath_(pt(e),yt(t,r),n):new hr(null)}}foreach(e){this.foreach_(ct(),e)}foreach_(e,t){this.children.inorderTraversal(((n,r)=>{r.foreach_(yt(e,n),t)})),this.value&&t(e,this.value)}foreachChild(e){this.children.inorderTraversal(((t,n)=>{n.value&&e(t,n.value)}))}}
2949/**
2950 * @license
2951 * Copyright 2017 Google LLC
2952 *
2953 * Licensed under the Apache License, Version 2.0 (the "License");
2954 * you may not use this file except in compliance with the License.
2955 * You may obtain a copy of the License at
2956 *
2957 *   http://www.apache.org/licenses/LICENSE-2.0
2958 *
2959 * Unless required by applicable law or agreed to in writing, software
2960 * distributed under the License is distributed on an "AS IS" BASIS,
2961 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2962 * See the License for the specific language governing permissions and
2963 * limitations under the License.
2964 */class pr{constructor(e){this.writeTree_=e}static empty(){return new pr(new hr(null))}}function fr(e,t,n){if(_t(t))return new pr(new hr(n));{const r=e.writeTree_.findRootMostValueAndPath(t);if(null!=r){const i=r.path;let a=r.value;const o=bt(i,t);return a=a.updateChild(o,n),new pr(e.writeTree_.set(i,a))}{const r=new hr(n),i=e.writeTree_.setTree(t,r);return new pr(i)}}}function mr(e,t,n){let r=e;return M(n,((e,n)=>{r=fr(r,yt(t,e),n)})),r}function vr(e,t){if(_t(t))return pr.empty();{const n=e.writeTree_.setTree(t,new hr(null));return new pr(n)}}function gr(e,t){return null!=yr(e,t)}function yr(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(bt(n.path,t)):null}function _r(e){const t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(on,((e,n)=>{t.push(new Ft(e,n))})):e.writeTree_.children.inorderTraversal(((e,n)=>{null!=n.value&&t.push(new Ft(e,n.value))})),t}function br(e,t){if(_t(t))return e;{const n=yr(e,t);return new pr(null!=n?new hr(n):e.writeTree_.subtree(t))}}function Tr(e){return e.writeTree_.isEmpty()}function wr(e,t){return Sr(ct(),e.writeTree_,t)}function Sr(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal(((t,i)=>{".priority"===t?((0,a.hu)(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=Sr(yt(e,t),i,n)})),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(yt(e,".priority"),r)),n}}
2965/**
2966 * @license
2967 * Copyright 2017 Google LLC
2968 *
2969 * Licensed under the Apache License, Version 2.0 (the "License");
2970 * you may not use this file except in compliance with the License.
2971 * You may obtain a copy of the License at
2972 *
2973 *   http://www.apache.org/licenses/LICENSE-2.0
2974 *
2975 * Unless required by applicable law or agreed to in writing, software
2976 * distributed under the License is distributed on an "AS IS" BASIS,
2977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2978 * See the License for the specific language governing permissions and
2979 * limitations under the License.
2980 */function kr(e,t){return Gr(t,e)}function Cr(e,t,n,r,i){(0,a.hu)(r>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=fr(e.visibleWrites,t,n)),e.lastWriteId=r}function Er(e,t){for(let n=0;n<e.allWrites.length;n++){const r=e.allWrites[n];if(r.writeId===t)return r}return null}function Ir(e,t){const n=e.allWrites.findIndex((e=>e.writeId===t));(0,a.hu)(n>=0,"removeWrite called with nonexistent writeId.");const r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,o=!1,s=e.allWrites.length-1;while(i&&s>=0){const t=e.allWrites[s];t.visible&&(s>=n&&xr(t,r.path)?i=!1:wt(r.path,t.path)&&(o=!0)),s--}if(i){if(o)return Ar(e),!0;if(r.snap)e.visibleWrites=vr(e.visibleWrites,r.path);else{const t=r.children;M(t,(t=>{e.visibleWrites=vr(e.visibleWrites,yt(r.path,t))}))}return!0}return!1}function xr(e,t){if(e.snap)return wt(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&wt(yt(e.path,n),t))return!0;return!1}function Ar(e){e.visibleWrites=$r(e.allWrites,Pr,ct()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}function Pr(e){return e.visible}function $r(e,t,n){let r=pr.empty();for(let i=0;i<e.length;++i){const o=e[i];if(t(o)){const e=o.path;let t;if(o.snap)wt(n,e)?(t=bt(n,e),r=fr(r,t,o.snap)):wt(e,n)&&(t=bt(e,n),r=fr(r,ct(),o.snap.getChild(t)));else{if(!o.children)throw(0,a.g5)("WriteRecord should have .snap or .children");if(wt(n,e))t=bt(n,e),r=mr(r,t,o.children);else if(wt(e,n))if(t=bt(e,n),_t(t))r=mr(r,ct(),o.children);else{const e=(0,a.DV)(o.children,dt(t));if(e){const n=e.getChild(pt(t));r=fr(r,ct(),n)}}}}}return r}function Or(e,t,n,r,i){if(r||i){const a=br(e.visibleWrites,t);
2980if(!i&&Tr(a))return n;if(i||null!=n||gr(a,ct())){const a=function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(wt(e.path,t)||wt(t,e.path))},o=$r(e.allWrites,a,t),s=n||fn.EMPTY_NODE;return wr(o,s)}return null}{const r=yr(e.visibleWrites,t);if(null!=r)return r;{const r=br(e.visibleWrites,t);if(Tr(r))return n;if(null!=n||gr(r,ct())){const e=n||fn.EMPTY_NODE;return wr(r,e)}return null}}}function Nr(e,t,n){let r=fn.EMPTY_NODE;const i=yr(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(on,((e,t)=>{r=r.updateImmediateChild(e,t)})),r;if(n){const i=br(e.visibleWrites,t);return n.forEachChild(on,((e,t)=>{const n=wr(br(i,new ut(e)),t);r=r.updateImmediateChild(e,n)})),_r(i).forEach((e=>{r=r.updateImmediateChild(e.name,e.node)})),r}{const n=br(e.visibleWrites,t);return _r(n).forEach((e=>{r=r.updateImmediateChild(e.name,e.node)})),r}}function Lr(e,t,n,r,i){(0,a.hu)(r||i,"Either existingEventSnap or existingServerSnap must exist");const o=yt(t,n);if(gr(e.visibleWrites,o))return null;{const t=br(e.visibleWrites,o);return Tr(t)?i.getChild(n):wr(t,i.getChild(n))}}function Dr(e,t,n,r){const i=yt(t,n),a=yr(e.visibleWrites,i);if(null!=a)return a;if(r.isCompleteForChild(n)){const t=br(e.visibleWrites,i);return wr(t,r.getNode().getImmediateChild(n))}return null}function Rr(e,t){return yr(e.visibleWrites,t)}function Fr(e,t,n,r,i,a,o){let s;const l=br(e.visibleWrites,t),u=yr(l,ct());if(null!=u)s=u;else{if(null==n)return[];s=wr(l,n)}if(s=s.withIndex(o),s.isEmpty()||s.isLeafNode())return[];{const e=[],t=o.getCompare(),n=a?s.getReverseIteratorFrom(r,o):s.getIteratorFrom(r,o);let l=n.getNext();while(l&&e.length<i)0!==t(l,r)&&e.push(l),l=n.getNext();return e}}function Mr(){return{visibleWrites:pr.empty(),allWrites:[],lastWriteId:-1}}function Vr(e,t,n,r){return Or(e.writeTree,e.treePath,t,n,r)}function Ur(e,t){return Nr(e.writeTree,e.treePath,t)}function Br(e,t,n,r){return Lr(e.writeTree,e.treePath,t,n,r)}function jr(e,t){return Rr(e.writeTree,yt(e.treePath,t))}function Wr(e,t,n,r,i,a){return Fr(e.writeTree,e.treePath,t,n,r,i,a)}function Hr(e,t,n){return Dr(e.writeTree,e.treePath,t,n)}function qr(e,t){return Gr(yt(e.treePath,t),e.writeTree)}function Gr(e,t){return{treePath:e,writeTree:t}}
2981/**
2982 * @license
2983 * Copyright 2017 Google LLC
2984 *
2985 * Licensed under the Apache License, Version 2.0 (the "License");
2986 * you may not use this file except in compliance with the License.
2987 * You may obtain a copy of the License at
2988 *
2989 *   http://www.apache.org/licenses/LICENSE-2.0
2990 *
2991 * Unless required by applicable law or agreed to in writing, software
2992 * distributed under the License is distributed on an "AS IS" BASIS,
2993 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2994 * See the License for the specific language governing permissions and
2995 * limitations under the License.
2996 */class zr{constructor(){this.changeMap=new Map}trackChildChange(e){const t=e.type,n=e.childName;(0,a.hu)("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),(0,a.hu)(".priority"!==n,"Only non-priority child changes can be tracked.");const r=this.changeMap.get(n);if(r){const i=r.type;if("child_added"===t&&"child_removed"===i)this.changeMap.set(n,Cn(n,e.snapshotNode,r.snapshotNode));else if("child_removed"===t&&"child_added"===i)this.changeMap.delete(n);else if("child_removed"===t&&"child_changed"===i)this.changeMap.set(n,kn(n,r.oldSnap));else if("child_changed"===t&&"child_added"===i)this.changeMap.set(n,Sn(n,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==i)throw(0,a.g5)("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,Cn(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)}getChanges(){return Array.from(this.changeMap.values())}}
2997/**
2998 * @license
2999 * Copyright 2017 Google LLC
3000 *
3001 * Licensed under the Apache License, Version 2.0 (the "License");
3002 * you may not use this file except in compliance with the License.
3003 * You may obtain a copy of the License at
3004 *
3005 *   http://www.apache.org/licenses/LICENSE-2.0
3006 *
3007 * Unless required by applicable law or agreed to in writing, softw
3007are
3008 * distributed under the License is distributed on an "AS IS" BASIS,
3009 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3010 * See the License for the specific language governing permissions and
3011 * limitations under the License.
3012 */class Yr{getCompleteChild(e){return null}getChildAfterChild(e,t,n){return null}}const Kr=new Yr;class Xr{constructor(e,t,n=null){this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}getCompleteChild(e){const t=this.viewCache_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);{const t=null!=this.optCompleteServerCache_?new Qn(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return Hr(this.writes_,e,t)}}getChildAfterChild(e,t,n){const r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:ur(this.viewCache_),i=Wr(this.writes_,r,t,1,n,e);return 0===i.length?null:i[0]}}
3013/**
3014 * @license
3015 * Copyright 2017 Google LLC
3016 *
3017 * Licensed under the Apache License, Version 2.0 (the "License");
3018 * you may not use this file except in compliance with the License.
3019 * You may obtain a copy of the License at
3020 *
3021 *   http://www.apache.org/licenses/LICENSE-2.0
3022 *
3023 * Unless required by applicable law or agreed to in writing, software
3024 * distributed under the License is distributed on an "AS IS" BASIS,
3025 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3026 * See the License for the specific language governing permissions and
3027 * limitations under the License.
3028 */function Jr(e){return{filter:e}}function Zr(e,t){(0,a.hu)(t.eventCache.getNode().isIndexed(e.filter.getIndex()),"Event snap not indexed"),(0,a.hu)(t.serverCache.getNode().isIndexed(e.filter.getIndex()),"Server snap not indexed")}function Qr(e,t,n,r,i){const o=new zr;let s,l;if(n.type===qn.OVERWRITE){const u=n;u.source.fromUser?s=ri(e,t,u.path,u.snap,r,i,o):((0,a.hu)(u.source.fromServer,"Unknown source."),l=u.source.tagged||t.serverCache.isFiltered()&&!_t(u.path),s=ni(e,t,u.path,u.snap,r,i,l,o))}else if(n.type===qn.MERGE){const u=n;u.source.fromUser?s=ai(e,t,u.path,u.children,r,i,o):((0,a.hu)(u.source.fromServer,"Unknown source."),l=u.source.tagged||t.serverCache.isFiltered(),s=si(e,t,u.path,u.children,r,i,l,o))}else if(n.type===qn.ACK_USER_WRITE){const a=n;s=a.revert?ci(e,t,a.path,r,i,o):li(e,t,a.path,a.affectedTree,r,i,o)}else{if(n.type!==qn.LISTEN_COMPLETE)throw(0,a.g5)("Unknown operation type: "+n.type);s=ui(e,t,n.path,r,o)}const u=o.getChanges();return ei(t,s,u),{viewCache:s,changes:u}}function ei(e,t,n){const r=t.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),a=lr(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(a)||!r.getNode().getPriority().equals(a.getPriority()))&&n.push(wn(lr(t)))}}function ti(e,t,n,r,i,o){const s=t.eventCache;if(null!=jr(r,n))return t;{let l,u;if(_t(n))if((0,a.hu)(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const n=ur(t),i=n instanceof fn?n:fn.EMPTY_NODE,a=Ur(r,i);l=e.filter.updateFullNode(t.eventCache.getNode(),a,o)}else{const n=Vr(r,ur(t));l=e.filter.updateFullNode(t.eventCache.getNode(),n,o)}else{const c=dt(n);if(".priority"===c){(0,a.hu)(1===ht(n),"Can't have a priority with additional path components");const i=s.getNode();u=t.serverCache.getNode();const o=Br(r,n,i,u);l=null!=o?e.filter.updatePriority(i,o):s.getNode()}else{const a=pt(n);let d;if(s.isCompleteForChild(c)){u=t.serverCache.getNode();const e=Br(r,n,s.getNode(),u);d=null!=e?s.getNode().getImmediateChild(c).updateChild(a,e):s.getNode().getImmediateChild(c)}else d=Hr(r,c,t.serverCache);l=null!=d?e.filter.updateChild(s.getNode(),c,d,a,i,o):s.getNode()}}return or(t,l,s.isFullyInitialized()||_t(n),e.filter.filtersNodes())}}function ni(e,t,n,r,i,a,o,s){const l=t.serverCache;let u;const c=o?e.filter:e.filter.getIndexedFilter();if(_t(n))u=c.updateFullNode(l.getNode(),r,null);else if(c.filtersNodes()&&!l.isFiltered()){const e=l.getNode().updateChild(n,r);u=c.updateFullNode(l.getNode(),e,null)}else{const e=dt(n);if(!l.isCompleteForPath(n)&&ht(n)>1)return t;const i=pt(n),a=l.getNode().getImmediateChild(e),o=a.updateChild(i,r);u=".priority"===e?c.updatePriority(l.getNode(),o):c.updateChild(l.getNode(),e,o,i,Kr,null)}const d=sr(t,u,l.isFullyInitialized()||_t(n),c.filtersNodes()),h=new Xr(i,d,a);return ti(e,d,n,i,h,s)}function ri(e,t,n,r,i,a,o){const s=t.eventCache;let l,u;const c=new Xr(i,t,a);if(_t(n))u=e.filter.updateFullNode(t.eventCache.getNode(),r,o),l=or(t,u,!0,e.filter.filtersNodes());else{const i=dt(n);if(".priority"===i)u=e.filter.updatePriority(t.eventCache.getNode(),r),l=or(t,u,s.isFullyInitialized(),s.isFiltered());else{const a=pt(n),u=s.getNode().getImmediateChild(i);let d;if(_t(a))d=r;else{const e=c.getCompleteChild(i);d=null!=e?".priority"===ft(a)&&e.getChild(gt(a)).isEmpty()?e:e.updateChild(a,r):fn.EMPTY_NODE}if(u.equals(d))l=t;else{const n=e.filter.updateChild(s.getNode(),i,d,a,c,o);l=or(t,n,s.isFullyInitialized(),e.filter.filtersNodes())}}}return l}function ii(e,t){return e.eventCache.isCompleteForChild(t)}function ai(e,t,n,r,i,a,o){let s=t;return r.foreach(((r,l)=>{const u=yt(n,r);ii(t,dt(u))&&(s=ri(e,s,u,l,i,a,o))})),r.foreach(((r,l)=>{const u=yt(n,r);ii(t,dt(u))||(s=ri(e,s,u,l,i,a,o))})),s}function oi(e,t,n){return n.foreach(((e,n)=>{t=t.updateChild(e,n)})),t}
vendor: 4,946 bytes, lines 3028-3049
3028function si(e,t,n,r,i,a,o,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l,u=t;l=_t(n)?r:new hr(null).setTree(n,r);const c=t.serverCache.getNode();return l.children.inorderTraversal(((n,r)=>{if(c.hasChild(n)){const l=t.serverCache.getNode().getImmediateChild(n),c=oi(e,l,r);u=ni(e,u,new ut(n),c,i,a,o,s)}})),l.children.inorderTraversal(((n,r)=>{const l=!t.serverCache.isCompleteForChild(n)&&null===r.value;if(!c.hasChild(n)&&!l){const l=t.serverCache.getNode().getImmediateChild(n),c=oi(e,l,r);u=ni(e,u,new ut(n),c,i,a,o,s)}})),u}function li(e,t,n,r,i,a,o){if(null!=jr(i,n))return t;const s=t.serverCache.isFiltered(),l=t.serverCache;if(null!=r.value){if(_t(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return ni(e,t,n,l.getNode().getChild(n),i,a,s,o);if(_t(n)){let r=new hr(null);return l.getNode().forEachChild(Bt,((e,t)=>{r=r.set(new ut(e),t)})),si(e,t,n,r,i,a,s,o)}return t}{let u=new hr(null);return r.foreach(((e,t)=>{const r=yt(n,e);l.isCompleteForPath(r)&&(u=u.set(e,l.getNode().getChild(r)))})),si(e,t,n,u,i,a,s,o)}}function ui(e,t,n,r,i){const a=t.serverCache,o=sr(t,a.getNode(),a.isFullyInitialized()||_t(n),a.isFiltered());return ti(e,o,n,r,Kr,i)}function ci(e,t,n,r,i,o){let s;if(null!=jr(r,n))return t;{const l=new Xr(r,t,i),u=t.eventCache.getNode();let c;if(_t(n)||".priority"===dt(n)){let n;if(t.serverCache.isFullyInitialized())n=Vr(r,ur(t));else{const e=t.serverCache.getNode();(0,a.hu)(e instanceof fn,"serverChildren would be complete if leaf node"),n=Ur(r,e)}c=e.filter.updateFullNode(u,n,o)}else{const i=dt(n);let a=Hr(r,i,t.serverCache);null==a&&t.serverCache.isCompleteForChild(i)&&(a=u.getImmediateChild(i)),c=null!=a?e.filter.updateChild(u,i,a,pt(n),l,o):t.eventCache.getNode().hasChild(i)?e.filter.updateChild(u,i,fn.EMPTY_NODE,pt(n),l,o):u,c.isEmpty()&&t.serverCache.isFullyInitialized()&&(s=Vr(r,ur(t)),s.isLeafNode()&&(c=e.filter.updateFullNode(c,s,o)))}return s=t.serverCache.isFullyInitialized()||null!=jr(r,ct()),or(t,c,s,e.filter.filtersNodes())}}
3029/**
3030 * @license
3031 * Copyright 2017 Google LLC
3032 *
3033 * Licensed under the Apache License, Version 2.0 (the "License");
3034 * you may not use this file except in compliance with the License.
3035 * You may obtain a copy of the License at
3036 *
3037 *   http://www.apache.org/licenses/LICENSE-2.0
3038 *
3039 * Unless required by applicable law or agreed to in writing, software
3040 * distributed under the License is distributed on an "AS IS" BASIS,
3041 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3042 * See the License for the specific language governing permissions and
3043 * limitations under the License.
3044 */class di{constructor(e,t){this.query_=e,this.eventRegistrations_=[];const n=this.query_._queryParams,r=new In(n.getIndex()),i=$n(n);this.processor_=Jr(i);const a=t.serverCache,o=t.eventCache,s=r.updateFullNode(fn.EMPTY_NODE,a.getNode(),null),l=i.updateFullNode(fn.EMPTY_NODE,o.getNode(),null),u=new Qn(s,a.isFullyInitialized(),r.filtersNodes()),c=new Qn(l,o.isFullyInitialized(),i.filtersNodes());this.viewCache_=ar(c,u),this.eventGenerator_=new er(this.query_)}get query(){return this.query_}}function hi(e){return e.viewCache_.serverCache.getNode()}function pi(e){return lr(e.viewCache_)}function fi(e,t){const n=ur(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!_t(t)&&!n.getImmediateChild(dt(t)).isEmpty())?n.getChild(t):null}function mi(e){return 0===e.eventRegistrations_.length}function vi(e,t){e.eventRegistrations_.push(t)}function gi(e,t,n){const r=[];if(n){(0,a.hu)(null==t,"A cancel should cancel all event registrations.");const i=e.query._path;e.eventRegistrations_.forEach((e=>{const t=e.createCancelEvent(n,i);t&&r.push(t)}))}if(t){let n=[];for(let r=0;r<e.eventRegistrations_.length;++r){const i=e.eventRegistrations_[r];if(i.matches(t)){if(t.hasAnyCallback()){n=n.concat(e.eventRegistrations_.slice(r+1));break}}else n.push(i)}e.eventRegistrations_=n}else e.eventRegistrations_=[];return r}function yi(e,t,n,r){t.type===qn.MERGE&&null!==t.source.queryId&&((0,a.hu)(ur(e.viewCache_),"We should always have a full cache before handling merges"),(0,a.hu)(lr(e.viewCache_),"Missing event cache, even though we have a server cache"));const i=e.viewCache_,o=Qr(e.processor_,i,t,n,r);return Zr(e.processor_,o.viewCache),(0,a.hu)(o.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=o.viewCache,bi(e,o.changes,o.viewCache.eventCache.getNode(),null)}function _i(e,t){const n=e.viewCache_.eventCache,r=[];if(!n.getNode().isLeafNode()){const e=n.getNode();e.forEachChild(on,((e,t)=>{r.push(Sn(e,t))}))}return n.isFullyInitialized()&&r.push(wn(n.getNode())),bi(e,r,n.getNode(),t)}function bi(e,t,n,r){const i=r?[r]:e.eventRegistrations_;return tr(e.eventGenerator_,t,n,i)}
3045/**
3046 * @license
3047 * Copyright 2017 Google LLC
3048 *
3049 * Licensed under the Apache License, Version 2.0 (the "License");
3050 * you may not use this file except in compliance with the License.
3051 * You may obtain a copy of the License at
3052 *
3053 *   http://www.apache.org/licenses/LICENSE-2.0
3054 *
3055 * Unless required by applicable law or agreed to in writing, software
3056 * distributed under the License is distributed on an "AS IS" BASIS,
3057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3058 * See the License for the specific language governing permissions and
3059 * limitations under the License.
3060 */let Ti,wi;class Si{constructor(){this.views=new Map}}function ki(e){(0,a.hu)(!Ti,"__referenceConstructor has already been defined"),Ti=e}function Ci(){return(0,a.hu)(Ti,"Reference.ts has not been loaded"),Ti}function Ei(e){return 0===e.views.size}function Ii(e,t,n,r){const i=t.source.queryId;if(null!==i){const o=e.views.get(i);return(0,a.hu)(null!=o,"SyncTree gave us an op for an invalid query."),yi(o,t,n,r)}{let i=[];for(const a of e.views.values())i=i.concat(yi(a,t,n,r));return i}}function xi(e,t,n,r,i){const a=t._queryIdentifier,o=e.views.get(a);if(!o){let e=Vr(n,i?r:null),a=!1;e?a=!0:r instanceof fn?(e=Ur(n,r),a=!1):(e=fn.EMPTY_NODE,a=!1);const o=ar(new Qn(e,a,!1),new Qn(r,i,!1));return new di(t,o)}return o}function Ai(e,t,n,r,i,a){const o=xi(e,t,r,i,a);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,o),vi(o,n),_i(o,n)}function Pi(e,t,n,r){const i=t._queryIdentifier,a=[];let o=[];const s=Di(e);if("default"===i)for(const[l,u]of e.views.entries())o=o.concat(gi(u,n,r)),mi(u)&&(e.views.delete(l),u.query._queryParams.loadsAllData()||a.push(u.query));else{const t=e.views.get(i);t&&(o=o.concat(gi(t,n,r)),mi(t)&&(e.views.delete(i),t.query._queryParams.loadsAllData()||a.push(t.query)))}return s&&!Di(e)&&a.push(new(Ci())(t._repo,t._path)),{removed:a,events:o}}function $i(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function Oi(e,t){let n=null;for(const r of e.views.values())n=n||fi(r,t);return n}function Ni(e,t){const n=t._queryParams;if(n.loadsAllData())return Ri(e);{const n=t._queryIdentifier;return e.views.get(n)}}function Li(e,t){return null!=Ni(e,t)}function Di(e){return null!=Ri(e)}function Ri(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}
3061/**
3062 * @license
3063 * Copyright 2017 Google LLC
3064 *
3065 * Licensed under the Apache License, Version 2.0 (the "License");
3066 * you may not use this file except in compliance with the License.
3067 * You may obtain a copy of the License at
3068 *
3069 *   http://www.apache.org/licenses/LICENSE-2.0
3070 *
3071 * Unless required by applicable law or agreed to in writing, software
3072 * distributed under the License is distributed on an "AS IS" BASIS,
3073 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3074 * See the License for the specific language governing permissions and
3075 * limitations under the License.
3076 */function Fi(e){(0,a.hu)(!wi,"__referenceConstructor has already been defined"),wi=e}function Mi(){return(0,a.hu)(wi,"Reference.ts has not been loaded"),wi}let Vi=1;class Ui{constructor(e){this.listenProvider_=e,this.syncPointTree_=new hr(null),this.pendingWriteTree_=Mr(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function Bi(e,t,n,r,i){return Cr(e.pendingWriteTree_,t,n,r,i),i?Qi(e,new Jn(Gn(),t,n)):[]}function ji(e,t,n=!1){const r=Er(e.pendingWriteTree_,t),i=Ir(e.pendingWriteTree_,t);if(i){let t=new hr(null);return null!=r.snap?t=t.set(ct(),!0):M(r.children,(e=>{t=t.set(new ut(e),!0)})),Qi(e,new Kn(r.path,t,n))}return[]}function Wi(e,t,n){return Qi(e,new Jn(zn(),t,n))}function Hi(e,t,n){const r=hr.fromObject(n);return Qi(e,new Zn(zn(),t,r))}function qi(e,t){return Qi(e,new Xn(zn(),t))}function Gi(e,t,n){const r=aa(e,n);if(r){const n=oa(r),i=n.path,a=n.queryId,o=bt(i,t),s=new Xn(Yn(a),o);return sa(e,i,s)}return[]}function zi(e,t,n,r,i=!1){const a=t._path,o=e.syncPointTree_.get(a);let s=[];if(o&&("default"===t._queryIdentifier||Li(o,t))){const l=Pi(o,t,n,r);Ei(o)&&(e.syncPointTree_=e.syncPointTree_.remove(a));const u=l.removed;if(s=l.events,!i){const n=-1!==u.findIndex((e=>e._queryParams.loadsAllData())),i=e.syncPointTree_.findOnPath(a,((e,t)=>Di(t)));if(n&&!i){const t=e.syncPointTree_.subtree(a);if(!t.isEmpty()){const n=la(t);for(let t=0;t<n.length;++t){const r=n[t],i=r.query,a=na(e,r);
3076e.listenProvider_.startListening(ua(i),ra(e,i),a.hashFn,a.onComplete)}}}if(!i&&u.length>0&&!r)if(n){const n=null;e.listenProvider_.stopListening(ua(t),n)}else u.forEach((t=>{const n=e.queryToTagMap.get(ia(t));e.listenProvider_.stopListening(ua(t),n)}))}ca(e,u)}return s}function Yi(e,t,n,r){const i=aa(e,r);if(null!=i){const r=oa(i),a=r.path,o=r.queryId,s=bt(a,t),l=new Jn(Yn(o),s,n);return sa(e,a,l)}return[]}function Ki(e,t,n,r){const i=aa(e,r);if(i){const r=oa(i),a=r.path,o=r.queryId,s=bt(a,t),l=hr.fromObject(n),u=new Zn(Yn(o),s,l);return sa(e,a,u)}return[]}function Xi(e,t,n,r=!1){const i=t._path;let o=null,s=!1;e.syncPointTree_.foreachOnPath(i,((e,t)=>{const n=bt(e,i);o=o||Oi(t,n),s=s||Di(t)}));let l,u=e.syncPointTree_.get(i);if(u?(s=s||Di(u),o=o||Oi(u,ct())):(u=new Si,e.syncPointTree_=e.syncPointTree_.set(i,u)),null!=o)l=!0;else{l=!1,o=fn.EMPTY_NODE;const t=e.syncPointTree_.subtree(i);t.foreachChild(((e,t)=>{const n=Oi(t,ct());n&&(o=o.updateImmediateChild(e,n))}))}const c=Li(u,t);if(!c&&!t._queryParams.loadsAllData()){const n=ia(t);(0,a.hu)(!e.queryToTagMap.has(n),"View does not exist, but we have a tag");const r=da();e.queryToTagMap.set(n,r),e.tagToQueryMap.set(r,n)}const d=kr(e.pendingWriteTree_,i);let h=Ai(u,t,n,d,o,l);if(!c&&!s&&!r){const n=Ni(u,t);h=h.concat(ha(e,t,n))}return h}function Ji(e,t,n){const r=!0,i=e.pendingWriteTree_,a=e.syncPointTree_.findOnPath(t,((e,n)=>{const r=bt(e,t),i=Oi(n,r);if(i)return i}));return Or(i,t,a,n,r)}function Zi(e,t){const n=t._path;let r=null;e.syncPointTree_.foreachOnPath(n,((e,t)=>{const i=bt(e,n);r=r||Oi(t,i)}));let i=e.syncPointTree_.get(n);i?r=r||Oi(i,ct()):(i=new Si,e.syncPointTree_=e.syncPointTree_.set(n,i));const a=null!=r,o=a?new Qn(r,!0,!1):null,s=kr(e.pendingWriteTree_,t._path),l=xi(i,t,s,a?o.getNode():fn.EMPTY_NODE,a);return pi(l)}function Qi(e,t){return ea(t,e.syncPointTree_,null,kr(e.pendingWriteTree_,ct()))}function ea(e,t,n,r){if(_t(e.path))return ta(e,t,n,r);{const i=t.get(ct());null==n&&null!=i&&(n=Oi(i,ct()));let a=[];const o=dt(e.path),s=e.operationForChild(o),l=t.children.get(o);if(l&&s){const e=n?n.getImmediateChild(o):null,t=qr(r,o);a=a.concat(ea(s,l,e,t))}return i&&(a=a.concat(Ii(i,e,r,n))),a}}function ta(e,t,n,r){const i=t.get(ct());null==n&&null!=i&&(n=Oi(i,ct()));let a=[];return t.children.inorderTraversal(((t,i)=>{const o=n?n.getImmediateChild(t):null,s=qr(r,t),l=e.operationForChild(t);l&&(a=a.concat(ta(l,i,o,s)))})),i&&(a=a.concat(Ii(i,e,r,n))),a}function na(e,t){const n=t.query,r=ra(e,n);return{hashFn:()=>{const e=hi(t)||fn.EMPTY_NODE;return e.hash()},onComplete:t=>{if("ok"===t)return r?Gi(e,n._path,r):qi(e,n._path);{const r=j(t,n);return zi(e,n,null,r)}}}}function ra(e,t){const n=ia(t);return e.queryToTagMap.get(n)}function ia(e){return e._path.toString()+"$"+e._queryIdentifier}function aa(e,t){return e.tagToQueryMap.get(t)}function oa(e){const t=e.indexOf("$");return(0,a.hu)(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new ut(e.substr(0,t))}}function sa(e,t,n){const r=e.syncPointTree_.get(t);(0,a.hu)(r,"Missing sync point for query tag that we're tracking");const i=kr(e.pendingWriteTree_,t);return Ii(r,n,i,null)}function la(e){return e.fold(((e,t,n)=>{if(t&&Di(t)){const e=Ri(t);return[e]}{let e=[];return t&&(e=$i(t)),M(n,((t,n)=>{e=e.concat(n)})),e}}))}
3076function ua(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(Mi())(e._repo,e._path):e}function ca(e,t){for(let n=0;n<t.length;++n){const r=t[n];if(!r._queryParams.loadsAllData()){const t=ia(r),n=e.queryToTagMap.get(t);e.queryToTagMap.delete(t),e.tagToQueryMap.delete(n)}}}function da(){return Vi++}function ha(e,t,n){const r=t._path,i=ra(e,t),o=na(e,n),s=e.listenProvider_.startListening(ua(t),i,o.hashFn,o.onComplete),l=e.syncPointTree_.subtree(r);if(i)(0,a.hu)(!Di(l.value),"If we're adding a query, it shouldn't be shadowed");else{const t=l.fold(((e,t,n)=>{if(!_t(e)&&t&&Di(t))return[Ri(t).query];{let e=[];return t&&(e=e.concat($i(t).map((e=>e.query)))),M(n,((t,n)=>{e=e.concat(n)})),e}}));for(let n=0;n<t.length;++n){const r=t[n];e.listenProvider_.stopListening(ua(r),ra(e,r))}}return s}
3077/**
3078 * @license
3079 * Copyright 2017 Google LLC
3080 *
3081 * Licensed under the Apache License, Version 2.0 (the "License");
3082 * you may not use this file except in compliance with the License.
3083 * You may obtain a copy of the License at
3084 *
3085 *   http://www.apache.org/licenses/LICENSE-2.0
3086 *
3087 * Unless required by applicable law or agreed to in writing, software
3088 * distributed under the License is distributed on an "AS IS" BASIS,
3089 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3090 * See the License for the specific language governing permissions and
3091 * limitations under the License.
3092 */class pa{constructor(e){this.node_=e}getImmediateChild(e){const t=this.node_.getImmediateChild(e);return new pa(t)}node(){return this.node_}}class fa{constructor(e,t){this.syncTree_=e,this.path_=t}getImmediateChild(e){const t=yt(this.path_,e);return new fa(this.syncTree_,t)}node(){return Ji(this.syncTree_,this.path_)}}const ma=function(e){return e=e||{},e["timestamp"]=e["timestamp"]||(new Date).getTime(),e},va=function(e,t,n){return e&&"object"===typeof e?((0,a.hu)(".sv"in e,"Unexpected leaf node or priority contents"),"string"===typeof e[".sv"]?ga(e[".sv"],t,n):"object"===typeof e[".sv"]?ya(e[".sv"],t):void(0,a.hu)(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},ga=function(e,t,n){switch(e){case"timestamp":return n["timestamp"];default:(0,a.hu)(!1,"Unexpected server value: "+e)}},ya=function(e,t,n){e.hasOwnProperty("increment")||(0,a.hu)(!1,"Unexpected server value: "+JSON.stringify(e,null,2));const r=e["increment"];"number"!==typeof r&&(0,a.hu)(!1,"Unexpected increment value: "+r);const i=t.node();if((0,a.hu)(null!==i&&"undefined"!==typeof i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;const o=i,s=o.getValue();return"number"!==typeof s?r:s+r},_a=function(e,t,n,r){return Ta(t,new fa(n,e),r)},ba=function(e,t,n){return Ta(e,new pa(t),n)};function Ta(e,t,n){const r=e.getPriority().val(),i=va(r,t.getImmediateChild(".priority"),n);let a;if(e.isLeafNode()){const r=e,a=va(r.getValue(),t,n);return a!==r.getValue()||i!==r.getPriority().val()?new tn(a,yn(i)):e}{const r=e;return a=r,i!==r.getPriority().val()&&(a=a.updatePriority(new tn(i))),r.forEachChild(on,((e,r)=>{const i=Ta(r,t.getImmediateChild(e),n);i!==r&&(a=a.updateImmediateChild(e,i))})),a}}
3093/**
3094 * @license
3095 * Copyright 2017 Google LLC
3096 *
3097 * Licensed under the Apache License, Version 2.0 (the "License");
3098 * you may not use this file except in compliance with the License.
3099 * You may obtain a copy of the License at
3100 *
3101 *   http://www.apache.org/licenses/LICENSE-2.0
3102 *
3103 * Unless required by applicable law or agreed to in writing, software
3104 * distributed under the License is distributed on an "AS IS" BASIS,
3105 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3106 * See the License for the specific language governing permissions and
3107 * limitations under the License.
3108 */class wa{constructor(e="",t=null,n={children:{},childCount:0}){this.name=e,this.parent=t,this.node=n}}function Sa(e,t){let n=t instanceof ut?t:new ut(t),r=e,i=dt(n);while(null!==i){const e=(0,a.DV)(r.node.children,i)||{children:{},childCount:0};r=new wa(i,r,e),n=pt(n),i=dt(n)}return r}function ka(e){return e.node.value}function Ca(e,t){e.node.value=t,Oa(e)}
3108function Ea(e){return e.node.childCount>0}function Ia(e){return void 0===ka(e)&&!Ea(e)}function xa(e,t){M(e.node.children,((n,r)=>{t(new wa(n,e,r))}))}function Aa(e,t,n,r){n&&t(e),xa(e,(e=>{Aa(e,t,!0)}))}function Pa(e,t,n){let r=e.parent;while(null!==r){if(t(r))return!0;r=r.parent}return!1}function $a(e){return new ut(null===e.parent?e.name:$a(e.parent)+"/"+e.name)}function Oa(e){null!==e.parent&&Na(e.parent,e.name,e)}function Na(e,t,n){const r=Ia(n),i=(0,a.r3)(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,Oa(e)):r||i||(e.node.children[t]=n.node,e.node.childCount++,Oa(e))}
3109/**
3110 * @license
3111 * Copyright 2017 Google LLC
3112 *
3113 * Licensed under the Apache License, Version 2.0 (the "License");
3114 * you may not use this file except in compliance with the License.
3115 * You may obtain a copy of the License at
3116 *
3117 *   http://www.apache.org/licenses/LICENSE-2.0
3118 *
3119 * Unless required by applicable law or agreed to in writing, software
3120 * distributed under the License is distributed on an "AS IS" BASIS,
3121 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3122 * See the License for the specific language governing permissions and
3123 * limitations under the License.
3124 */const La=/[\[\].#$\/\u0000-\u001F\u007F]/,Da=/[\[\].#$\u0000-\u001F\u007F]/,Ra=10485760,Fa=function(e){return"string"===typeof e&&0!==e.length&&!La.test(e)},Ma=function(e){return"string"===typeof e&&0!==e.length&&!Da.test(e)},Va=function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),Ma(e)},Ua=function(e,t,n,r){r&&void 0===t||Ba((0,a.gK)(e,"value"),t,n)},Ba=function(e,t,n){const r=n instanceof ut?new St(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+It(r));if("function"===typeof t)throw new Error(e+"contains a function "+It(r)+" with contents = "+t.toString());if(A(t))throw new Error(e+"contains "+t.toString()+" "+It(r));if("string"===typeof t&&t.length>Ra/3&&(0,a.ug)(t)>Ra)throw new Error(e+"contains a string greater than "+Ra+" utf8 bytes "+It(r)+" ('"+t.substring(0,50)+"...')");if(t&&"object"===typeof t){let n=!1,i=!1;if(M(t,((t,a)=>{if(".value"===t)n=!0;else if(".priority"!==t&&".sv"!==t&&(i=!0,!Fa(t)))throw new Error(e+" contains an invalid key ("+t+") "+It(r)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');kt(r,t),Ba(e,a,r),Ct(r)})),n&&i)throw new Error(e+' contains ".value" child '+It(r)+" in addition to actual children.")}},ja=function(e,t,n,r){if((!r||void 0!==n)&&!Ma(n))throw new Error((0,a.gK)(e,t)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Wa=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ja(e,t,n,r)},Ha=function(e,t){if(".info"===dt(t))throw new Error(e+" failed = Can't modify data under /.info/")},qa=function(e,t){const n=t.path.toString();if("string"!==typeof t.repoInfo.host||0===t.repoInfo.host.length||!Fa(t.repoInfo.namespace)&&"localhost"!==t.repoInfo.host.split(":")[0]||0!==n.length&&!Va(n))throw new Error((0,a.gK)(e,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')};
3125/**
3126 * @license
3127 * Copyright 2017 Google LLC
3128 *
3129 * Licensed under the Apache License, Version 2.0 (the "License");
3130 * you may not use this file except in compliance with the License.
3131 * You may obtain a copy of the License at
3132 *
3133 *   http://www.apache.org/licenses/LICENSE-2.0
3134 *
3135 * Unless required by applicable law or agreed to in writing, software
3136 * distributed under the License is distributed on an "AS IS" BASIS,
3137 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3138 * See the License for the specific language governing permissions and
3139 * limitations under the License.
3140 */
3141class Ga{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function za(e,t){let n=null;for(let r=0;r<t.length;r++){const i=t[r],a=i.getPath();null===n||Tt(a,n.path)||(e.eventLists_.push(n),n=null),null===n&&(n={events:[],path:a}),n.events.push(i)}n&&e.eventLists_.push(n)}function Ya(e,t,n){za(e,n),Ka(e,(e=>wt(e,t)||wt(t,e)))}function Ka(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r<e.eventLists_.length;r++){const i=e.eventLists_[r];if(i){const a=i.path;t(a)?(Xa(e.eventLists_[r]),e.eventLists_[r]=null):n=!1}}n&&(e.eventLists_=[]),e.recursionDepth_--}function Xa(e){for(let t=0;t<e.events.length;t++){const n=e.events[t];if(null!==n){e.events[t]=null;const r=n.getEventRunner();b&&S("event: "+n.toString()),z(r)}}}
3142/**
3143 * @license
3144 * Copyright 2017 Google LLC
3145 *
3146 * Licensed under the Apache License, Version 2.0 (the "License");
3147 * you may not use this file except in compliance with the License.
3148 * You may obtain a copy of the License at
3149 *
3150 *   http://www.apache.org/licenses/LICENSE-2.0
3151 *
3152 * Unless required by applicable law or agreed to in writing, software
3153 * distributed under the License is distributed on an "AS IS" BASIS,
3154 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3155 * See the License for the specific language governing permissions and
3156 * limitations under the License.
3157 */const Ja="repo_interrupt",Za=25;class Qa{constructor(e,t,n,r){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=n,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Ga,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Rn(),this.transactionQueueTree_=new wa,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function eo(e,t,n){if(e.stats_=ve(e.repoInfo_),e.forceRestClient_||Y())e.server_=new Ln(e.repoInfo_,((t,n,r,i)=>{ro(e,t,n,r,i)}),e.authTokenProvider_,e.appCheckProvider_),setTimeout((()=>io(e,!0)),0);else{if("undefined"!==typeof n&&null!==n){if("object"!==typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{(0,a.Wl)(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}e.persistentConnection_=new Rt(e.repoInfo_,t,((t,n,r,i)=>{ro(e,t,n,r,i)}),(t=>{io(e,t)}),(t=>{ao(e,t)}),e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener((t=>{e.server_.refreshAuthToken(t)})),e.appCheckProvider_.addTokenChangeListener((t=>{e.server_.refreshAppCheckToken(t.token)})),e.statsReporter_=ge(e.repoInfo_,(()=>new Hn(e.stats_,e.server_))),e.infoData_=new Dn,e.infoSyncTree_=new Ui({startListening:(t,n,r,i)=>{let a=[];const o=e.infoData_.getNode(t._path);return o.isEmpty()||(a=Wi(e.infoSyncTree_,t._path,o),setTimeout((()=>{i("ok")}),0)),a},stopListening:()=>{}}),oo(e,"connected",!1),e.serverSyncTree_=new Ui({startListening:(t,n,r,i)=>(e.server_.listen(t,r,n,((n,r)=>{const a=i(n,r);Ya(e.eventQueue_,t._path,a)})),[]),stopListening:(t,n)=>{e.server_.unlisten(t,n)}})}function to(e){const t=e.infoData_.getNode(new ut(".info/serverTimeOffset")),n=t.val()||0;return(new Date).getTime()+n}function no(e){return ma({timestamp:to(e)})}function ro(e,t,n,r,i){e.dataUpdateCount++;const o=new ut(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let s=[];if(i)if(r){const t=(0,a.UI)(n,(e=>yn(e)));s=Ki(e.serverSyncTree_,o,t,i)}else{const t=yn(n);s=Yi(e.serverSyncTree_,o,t,i)}else if(r){const t=(0,a.UI)(n,(e=>yn(e)));s=Hi(e.serverSyncTree_,o,t)}else{const t=yn(n);s=Wi(e.serverSyncTree_,o,t)}let l=o;s.length>0&&(l=yo(e,o)),Ya(e.eventQueue_,l,s)}function io(e,t){oo(e,"connected",t),!1===t&&co(e)}function ao(e,t){M(t,((t,n)=>{oo(e,t,n)}))}function oo(e,t,n){const r=new ut("/.info/"+t),i=yn(n);e.infoData_.updateSnapshot(r,i);const a=Wi(e.infoSyncTree_,r,i);Ya(e.eventQueue_,r,a)}function so(e){return e.nextWriteId_++}function lo(e,t,n){const r=Zi(e.serverSyncTree_,t);return null!=r?Promise.resolve(r):e.server_.get(t).then((r=>{const i=yn(r).withIndex(t._queryParams.getIndex());let a;if(Xi(e.serverSyncTree_,t,n,!0),t._queryParams.loadsAllData())a=Wi(e.serverSyncTree_,t._path,i);else{const n=ra(e.serverSyncTree_,t);a=Yi(e.serverSyncTree_,t._path,i,n)}return Ya(e.eventQueue_,t._path,a),zi(e.serverSyncTree_,t,n,null,!0),i}),(n=>(po(e,"get for query "+(0,a.Wl)(t)+" failed: "+n),Promise.reject(new Error(n)))))}function uo(e,t,n,r,i){po(e,"set",{path:t.toString(),value:n,priority:r});const a=no(e),o=yn(n,r),s=Ji(e.serverSyncTree_,t),l=ba(o,s,a),u=so(e),c=Bi(e.serverSyncTree_,t,l,u,!0);za(e.eventQueue_,c),e.server_.put(t.toString(),o.val(!0),((n,r)=>{const a="ok"===n;a||I("set at "+t+" failed: "+n);const o=ji(e.serverSyncTree_,u,!a);Ya(e.eventQueue_,t,o),fo(e,i,n,r)}));const d=ko(e,t);yo(e,d),Ya(e.eventQueue_,d,[])}function co(e){po(e,"onDisconnectEvents");const t=no(e),n=Rn();Mn(e.onDisconnect_,ct(),((r,i)=>{const a=_a(r,i,e.serverSyncTree_,t);Fn(n,r,a)}));let r=[];Mn(n,ct(),((t,n)=>{r=r.concat(Wi(e.serverSyncTree_,t,n));const i=ko(e,t);yo(e,i)})),e.onDisconnect_=Rn(),Ya(e.eventQueue_,ct(),r)}function ho(e){e.persistentConnection_&&e.persistentConnection_.interrupt(Ja)}function po(e,...t){let n="";e.persistentConnection_&&(n=e.persistentConnection_.id+":"),S(n,...t)}function fo(e,t,n,r){t&&z((()=>
vendor: 4,195 bytes, lines 3157-3162
3157{if("ok"===n)t(null);else{const e=(n||"error").toUpperCase();let i=e;r&&(i+=": "+r);const a=new Error(i);a.code=e,t(a)}}))}function mo(e,t,n){return Ji(e.serverSyncTree_,t,n)||fn.EMPTY_NODE}function vo(e,t=e.transactionQueueTree_){if(t||So(e,t),ka(t)){const n=To(e,t);(0,a.hu)(n.length>0,"Sending zero length transaction queue");const r=n.every((e=>0===e.status));r&&go(e,$a(t),n)}else Ea(t)&&xa(t,(t=>{vo(e,t)}))}function go(e,t,n){const r=n.map((e=>e.currentWriteId)),i=mo(e,t,r);let o=i;const s=i.hash();for(let c=0;c<n.length;c++){const e=n[c];(0,a.hu)(0===e.status,"tryToSendTransactionQueue_: items in queue should all be run."),e.status=1,e.retryCount++;const r=bt(t,e.path);o=o.updateChild(r,e.currentOutputSnapshotRaw)}const l=o.val(!0),u=t;e.server_.put(u.toString(),l,(r=>{po(e,"transaction put response",{path:u.toString(),status:r});let i=[];if("ok"===r){const r=[];for(let t=0;t<n.length;t++)n[t].status=2,i=i.concat(ji(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&r.push((()=>n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved))),n[t].unwatcher();So(e,Sa(e.transactionQueueTree_,t)),vo(e,e.transactionQueueTree_),Ya(e.eventQueue_,t,i);for(let e=0;e<r.length;e++)z(r[e])}else{if("datastale"===r)for(let e=0;e<n.length;e++)3===n[e].status?n[e].status=4:n[e].status=0;else{I("transaction at "+u.toString()+" failed: "+r);for(let e=0;e<n.length;e++)n[e].status=4,n[e].abortReason=r}yo(e,t)}}),s)}function yo(e,t){const n=bo(e,t),r=$a(n),i=To(e,n);return _o(e,i,r),r}function _o(e,t,n){if(0===t.length)return;const r=[];let i=[];const o=t.filter((e=>0===e.status)),s=o.map((e=>e.currentWriteId));for(let l=0;l<t.length;l++){const o=t[l],u=bt(n,o.path);let c,d=!1;if((0,a.hu)(null!==u,"rerunTransactionsUnderNode_: relativePath should not be null."),4===o.status)d=!0,c=o.abortReason,i=i.concat(ji(e.serverSyncTree_,o.currentWriteId,!0));else if(0===o.status)if(o.retryCount>=Za)d=!0,c="maxretry",i=i.concat(ji(e.serverSyncTree_,o.currentWriteId,!0));else{const n=mo(e,o.path,s);o.currentInputSnapshot=n;const r=t[l].update(n.val());if(void 0!==r){Ba("transaction failed: Data returned ",r,o.path);let t=yn(r);const l="object"===typeof r&&null!=r&&(0,a.r3)(r,".priority");l||(t=t.updatePriority(n.getPriority()));const u=o.currentWriteId,c=no(e),d=ba(t,n,c);o.currentOutputSnapshotRaw=t,o.currentOutputSnapshotResolved=d,o.currentWriteId=so(e),s.splice(s.indexOf(u),1),i=i.concat(Bi(e.serverSyncTree_,o.path,d,o.currentWriteId,o.applyLocally)),i=i.concat(ji(e.serverSyncTree_,u,!0))}else d=!0,c="nodata",i=i.concat(ji(e.serverSyncTree_,o.currentWriteId,!0))}Ya(e.eventQueue_,n,i),i=[],d&&(t[l].status=2,function(e){setTimeout(e,Math.floor(0))}(t[l].unwatcher),t[l].onComplete&&("nodata"===c?r.push((()=>t[l].onComplete(null,!1,t[l].currentInputSnapshot))):r.push((()=>t[l].onComplete(new Error(c),!1,null)))))}So(e,e.transactionQueueTree_);for(let a=0;a<r.length;a++)z(r[a]);vo(e,e.transactionQueueTree_)}function bo(e,t){let n,r=e.transactionQueueTree_;n=dt(t);while(null!==n&&void 0===ka(r))r=Sa(r,n),t=pt(t),n=dt(t);return r}function To(e,t){const n=[];return wo(e,t,n),n.sort(((e,t)=>e.order-t.order)),n}function wo(e,t,n){const r=ka(t);if(r)for(let i=0;i<r.length;i++)n.push(r[i]);xa(t,(t=>{wo(e,t,n)}))}function So(e,t){const n=ka(t);if(n){let e=0;for(let t=0;t<n.length;t++)2!==n[t].status&&(n[e]=n[t],e++);n.length=e,Ca(t,n.length>0?n:void 0)}xa(t,(t=>{So(e,t)}))}function ko(e,t){const n=$a(bo(e,t)),r=Sa(e.transactionQueueTree_,t);return Pa(r,(t=>{Co(e,t)})),Co(e,r),Aa(r,(t=>{Co(e,t)})),n}function Co(e,t){const n=ka(t);if(n){const r=[];let i=[],o=-1;for(let t=0;t<n.length;t++)3===n[t].status||(1===n[t].status?((0,a.hu)(o===t-1,"All SENT items should be at beginning of queue."),o=t,n[t].status=3,n[t].abortReason="set"):((0,a.hu)(0===n[t].status,"Unexpected transaction status in abort"),n[t].unwatcher(),i=i.concat(ji(e.serverSyncTree_,n[t].currentWriteId,!0)),n[t].onComplete&&r.push(n[t].onComplete.bind(null,new Error("set"),!1,null))));-1===o?Ca(t,void 0):n.length=o+1,Ya(e.eventQueue_,$a(t),i);for(let e=0;e<r.length;e++)z(r[e])}}
3158/**
3159 * @license
3160 * Copyright 2017 Google LLC
3161 *
3162 * Licensed under the Apache License, Version 2.0 (the "License");
3163 * you may not use this file except in compliance with the License.
3164 * You may obtain a copy of the License at
3165 *
3166 *   http://www.apache.org/licenses/LICENSE-2.0
3167 *
3168 * Unless required by applicable law or agreed to in writing, software
3169 * distributed under the License is distributed on an "AS IS" BASIS,
3170 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3171 * See the License for the specific language governing permissions and
3172 * limitations under the License.
3173 */function Eo(e){let t="";const n=e.split("/");for(let i=0;i<n.length;i++)if(n[i].length>0){let e=n[i];try{e=decodeURIComponent(e.replace(/\+/g," "))}catch(r){}t+="/"+e}return t}function Io(e){const t={};"?"===e.charAt(0)&&(e=e.substring(1));for(const n of e.split("&")){if(0===n.length)continue;const r=n.split("=");2===r.length?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):I(`Invalid query segment '${n}' in query '${e}'`)}return t}const xo=function(e,t){const n=Ao(e),r=n.namespace;"firebase.com"===n.domain&&E(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||E("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||x();const i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new ce(n.host,n.secure,r,i,t,"",r!==n.subdomain),path:new ut(n.pathString)}},Ao=function(e){let t="",n="",r="",i="",a="",o=!0,s="https",l=443;if("string"===typeof e){let u=e.indexOf("//");u>=0&&(s=e.substring(0,u-1),e=e.substring(u+2));let c=e.indexOf("/");-1===c&&(c=e.length);let d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(c,d)),c<d&&(i=Eo(e.substring(c,d)));const h=Io(e.substring(Math.min(e.length,d)));u=t.indexOf(":"),u>=0?(o="https"===s||"wss"===s,l=parseInt(t.substring(u+1),10)):u=t.length;const p=t.slice(0,u);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{const e=t.indexOf(".");r=t.substring(0,e).toLowerCase(),n=t.substring(e+1),a=r}"ns"in h&&(a=h["ns"])}return{host:t,port:l,domain:n,subdomain:r,secure:o,scheme:s,pathString:i,namespace:a}},Po="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz";(function(){let e=0;const t=[]})();
3174/**
3175 * @license
3176 * Copyright 2017 Google LLC
3177 *
3178 * Licensed under the Apache License, Version 2.0 (the "License");
3179 * you may not use this file except in compliance with the License.
3180 * You may obtain a copy of the License at
3181 *
3182 *   http://www.apache.org/licenses/LICENSE-2.0
3183 *
3184 * Unless required by applicable law or agreed to in writing, software
3185 * distributed under the License is distributed on an "AS IS" BASIS,
3186 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3187 * See the License for the specific language governing permissions and
3188 * limitations under the License.
3189 */
3190class $o{constructor(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}getPath(){const e=this.snapshot.ref;return"value"===this.eventType?e._path:e.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+(0,a.Wl)(this.snapshot.exportVal())}}class Oo{constructor(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}
3191/**
3192 * @license
3193 * Copyright 2017 Google LLC
3194 *
3195 * Licensed under the Apache License, Version 2.0 (the "License");
3196 * you may not use this file except in compliance with the License.
3197 * You may obtain a copy of the License at
3198 *
3199 *   http://www.apache.org/licenses/LICENSE-2.0
3200 *
3201 * Unless required by applicable law or agreed to in writing, software
3202 * distributed under the License is distributed on an "AS IS" BASIS,
3203 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3204 * See the License for the specific language governing permissions and
3205 * limitations under the License.
3206 */class No{constructor(e,t){this.snapshotCallback=e,this.cancelCallback=t}onValue(e,t){this.snapshotCallback.call(null,e,t)}onCancel(e){return(0,a.hu)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)}get hasCancelCallback(){return!!this.cancelCallback}matches(e){return this.snapshotCallback===e.snapshotCallback||void 0!==this.snapshotCallback.userCallback&&this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context}}
3207/**
3208 * @license
3209 * Copyright 2021 Google LLC
3210 *
3211 * Licensed under the Apache License, Version 2.0 (the "License");
3212 * you may not use this file except in compliance with the License.
3213 * You may obtain a copy of the License at
3214 *
3215 *   http://www.apache.org/licenses/LICENSE-2.0
3216 *
3217 * Unless required by applicable law or agreed to in writing, software
3218 * distributed under the License is distributed on an "AS IS" BASIS,
3219 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3220 * See the License for the specific language governing permissions and
3221 * limitations under the License.
3222 */
3223/**
3224 * @license
3225 * Copyright 2020 Google LLC
3226 *
3227 * Licensed under the Apache License, Version 2.0 (the "License");
3228 * you may not use this file except in compliance with the License.
3229 * You may obtain a copy of the License at
3230 *
3231 *   http://www.apache.org/licenses/LICENSE-2.0
3232 *
3233 * Unless required by applicable law or agreed to in writing, software
3234 * distributed under the License is distributed on an "AS IS" BASIS,
3235 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3236 * See the License for the specific language governing permissions and
3237 * limitations under the License.
3238 */
3239class Lo{constructor(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}get key(){return _t(this._path)?null:ft(this._path)}get ref(){return new Do(this._repo,this._path)}get _queryIdentifier(){const e=Nn(this._queryParams),t=R(e);return"{}"===t?"default":t}get _queryObject(){return Nn(this._queryParams)}isEqual(e){if(e=(0,a.m9)(e),!(e instanceof Lo))return!1;const t=this._repo===e._repo,n=Tt(this._path,e._path),r=this._queryIdentifier===e._queryIdentifier;return t&&n&&r}toJSON(){return this.toString()}toString(){return this._repo.toString()+mt(this._path)}}class Do extends Lo{constructor(e,t){super(e,t,new Pn,!1)}get parent(){const e=gt(this._path);return null===e?null:new Do(this._repo,e)}get root(){let e=this;while(null!==e.parent)e=e.parent;return e}}class Ro{constructor(e,t,n){this._node=e,this.ref=t,this._index=n}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(e){const t=new ut(e),n=Mo(this.ref,e);return new Ro(this._node.getChild(t),n,on)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(e){if(this._node.isLeafNode())return!1;const t=this._node;return!!t.forEachChild(this._index,((t,n)=>e(new Ro(n,Mo(this.ref,t),on))))}hasChild(e){const t=new ut(e);return!this._node.getChild(t).isEmpty()}hasChildren(){return!this._node.isLeafNode()&&!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function Fo(e,t){return e=(0,a.m9)(e),e._checkNotDeleted("ref"),void 0!==t?Mo(e._root,t):e._root}function Mo(e,t){return e=(0,a.m9)(e),null===dt(e._path)?Wa("child","path",t,!1):ja("child","path",t,!1),new Do(e._repo,yt(e._path,t))}function Vo(e,t){e=(0,a.m9)(e),Ha("set",e._path),Ua("set",t,e._path,!1);const n=new a.BH;return uo(e._repo,e._path,t,null,n.wrapCallback((()=>{}))),n.promise}function Uo(e){e=(0,a.m9)(e);const t=new No((()=>{})),n=new Bo(t);return lo(e._repo,e,n).then((t=>new Ro(t,new Do(e._repo,e._path),e._queryParams.getIndex())))}class Bo{constructor(e){this.callbackContext=e}respondsTo(e){return"value"===e}createEvent(e,t){const n=t._queryParams.getIndex();return new $o("value",this,new Ro(e.snapshotNode,new Do(t._repo,t._path),n))}getEventRunner(e){return"cancel"===e.getEventType()?()=>this.callbackContext.onCancel(e.error):()=>this.callbackContext.onValue(e.snapshot,null)}createCancelEvent(e,t){return this.callbackContext.hasCancelCallback?new Oo(this,e,t):null}matches(e){return e instanceof Bo&&(!e.callbackContext||!this.callbackContext||e.callbackContext.matches(this.callbackContext))}hasAnyCallback(){return null!==this.callbackContext}}ki(Do),Fi(Do);
3240/**
3241 * @license
3242 * Copyright 2020 Google LLC
3243 *
3244 * Licensed under the Apache License, Version 2.0 (the "License");
3245 * you may not use this file except in compliance with the License.
3246 * You may obtain a copy of the License at
3247 *
3248 *   http://www.apache.org/licenses/LICENSE-2.0
3249 *
3250 * Unless required by applicable law or agreed to in writing, softw
3250are
3251 * distributed under the License is distributed on an "AS IS" BASIS,
3252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3253 * See the License for the specific language governing permissions and
3254 * limitations under the License.
3255 */
3256const jo="FIREBASE_DATABASE_EMULATOR_HOST",Wo={};let Ho=!1;function qo(e,t,n,r){const i=t.lastIndexOf(":"),o=t.substring(0,i),s=(0,a.Xx)(o);e.repoInfo_=new ce(t,s,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0,n),r&&(e.authTokenProvider_=r)}function Go(e,t,n,r,i){let a=r||e.options.databaseURL;void 0===a&&(e.options.projectId||E("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),S("Using default host for project ",e.options.projectId),a=`${e.options.projectId}-default-rtdb.firebaseio.com`);let o,s,l=xo(a,i),u=l.repoInfo;"undefined"!==typeof process&&(s={NODE_ENV:"production",BASE_URL:"/"}[jo]),s?(o=!0,a=`http://${s}?ns=${u.namespace}`,l=xo(a,i),u=l.repoInfo):o=!l.repoInfo.secure;const c=i&&o?new Z(Z.OWNER):new J(e.name,e.options,t);qa("Invalid Firebase Database URL",l),_t(l.path)||E("Database URL must point to the root of a Firebase Database (not including a child path).");const d=Yo(u,e,c,new X(e,n));return new Ko(d,e)}function zo(e,t){const n=Wo[t];n&&n[e.key]===e||E(`Database ${t}(${e.repoInfo_}) has already been deleted.`),ho(e),delete n[e.key]}function Yo(e,t,n,r){let i=Wo[t.name];i||(i={},Wo[t.name]=i);let a=i[e.toURLString()];return a&&E("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),a=new Qa(e,Ho,n,r),i[e.toURLString()]=a,a}class Ko{constructor(e,t){this._repoInternal=e,this.app=t,this["type"]="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(eo(this._repoInternal,this.app.options.appId,this.app.options["databaseAuthVariableOverride"]),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new Do(this._repo,ct())),this._rootInternal}_delete(){return null!==this._rootInternal&&(zo(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(e){null===this._rootInternal&&E("Cannot call "+e+" on a deleted database.")}}function Xo(e=(0,r.Mq)(),t){const n=(0,r.qX)(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const e=(0,a.P0)("database");e&&Jo(n,...e)}return n}function Jo(e,t,n,r={}){e=(0,a.m9)(e),e._checkNotDeleted("useEmulator");const i=`${t}:${n}`,o=e._repoInternal;if(e._instanceStarted){if(i===e._repoInternal.repoInfo_.host&&(0,a.vZ)(r,o.repoInfo_.emulatorOptions))return;E("connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.")}let s;if(o.repoInfo_.nodeAdmin)r.mockUserToken&&E('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),s=new Z(Z.OWNER);else if(r.mockUserToken){const t="string"===typeof r.mockUserToken?r.mockUserToken:(0,a.Sg)(r.mockUserToken,e.app.options.projectId);s=new Z(t)}(0,a.Xx)(t)&&(0,a.Uo)(t),qo(o,i,r,s)}
3257/**
3258 * @license
3259 * Copyright 2021 Google LLC
3260 *
3261 * Licensed under the Apache License, Version 2.0 (the "License");
3262 * you may not use this file except in compliance with the License.
3263 * You may obtain a copy of the License at
3264 *
3265 *   http://www.apache.org/licenses/LICENSE-2.0
3266 *
3267 * Unless required by applicable law or agreed to in writing, software
3268 * distributed under the License is distributed on an "AS IS" BASIS,
3269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3270 * See the License for the specific language governing permissions and
3271 * limitations under the License.
3272 */
3273function Zo(e){c(r.Jn),(0,r.Xd)(new i.wA("database",((e,{instanceIdentifier:t})=>{const n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal"),i=e.getProvider("app-check-internal");return Go(n,r,i,t)}),"PUBLIC").setMultipleInstances(!0)),(0,r.KN)(s,l,e),(0,r.KN)(s,l,"esm2020")}
3274/**
3275 * @license
3276 * Copyright 2020 Google LLC
3277 *
3278 * Licensed under the Apache License, Version 2.0 (the "License");
3279 * you may not use this file except in compliance with the License.
3280 * You may obtain a copy of the License at
3281 *
3282 *   http://www.apache.org/licenses/LICENSE-2.0
3283 *
3284 * Unless required by applicable law or agreed to in writing, software
3285 * distributed under the License is distributed on an "AS IS" BASIS,
3286 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3287 * See the License for the specific language governing permissions and
3288 * limitations under the License.
3289 */
3290/**
3291 * @license
3292 * Copyright 2017 Google LLC
3293 *
3294 * Licensed under the Apache License, Version 2.0 (the "License");
3295 * you may not use this file except in compliance with the License.
3296 * You may obtain a copy of the License at
3297 *
3298 *   http://www.apache.org/licenses/LICENSE-2.0
3299 *
3300 * Unless required by applicable law or agreed to in writing, software
3301 * distributed under the License is distributed on an "AS IS" BASIS,
3302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
3303 * See the License for the specific language governing permissions and
3304 * limitations under the License.
3305 */
3306Rt.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Rt.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};Zo()},8552:function(e,t,n){"use strict";
3307/*!
3308  * shared v9.14.5
3309  * (c) 2025 kazuya kawaguchi
3310  * Released under the MIT License.
3311  */
3312function r(e,t){"undefined"!==typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}n.d(t,{o:function(){return $r}});const i="undefined"!==typeof window;const a=(e,t=!1)=>t?Symbol.for(e):Symbol(e),o=(e,t,n)=>s({l:e,k:t,s:n}),s=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),l=e=>"number"===typeof e&&isFinite(e),u=e=>"[object Date]"===A(e),c=e=>"[object RegExp]"===A(e),d=e=>P(e)&&0===Object.keys(e).length,h=Object.assign,p=Object.create,f=(e=null)=>p(e);let m;const v=()=>m||(m="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof global?global:f());function g(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function y(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function _(e){e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,((e,t,n)=>`${t}="${y(n)}"`)),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,((e,t,n)=>`${t}='${y(n)}'`));const t=/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi;t.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3"));const n=[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi];return n.forEach((t=>{e=e.replace(t,"$1javascript&#58;")})),e}const b=Object.prototype.hasOwnProperty;function T(e,t){return b.call(e,t)}const w=Array.isArray,S=e=>"function"===typeof e,k=e=>"string"===typeof e,C=e=>"boolean"===typeof e,E=e=>null!==e&&"object"===typeof e,I=e=>E(e)&&S(e.then)&&S(e.catch),x=Object.prototype.toString,A=e=>x.call(e),P=e=>{if(!E(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t.constructor===Object},$=e=>null==e?"":w(e)||P(e)&&e.toString===x?JSON.stringify(e,null,2):String(e);function O(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}function N(e){let t=e;return()=>++t}const L=e=>!E(e)||w(e);function D(e,t){if(L(e)||L(t))throw new Error("Invalid value");const n=[{src:e,des:t}];while(n.length){const{src:e,des:t}=n.pop();Object.keys(e).forEach((r=>{"__proto__"!==r&&(E(e[r])&&!E(t[r])&&(t[r]=Array.isArray(e[r])?[]:f()),L(t[r])||L(e[r])?t[r]=e[r]:n.push({src:e[r],des:t[r]}))}))}}function R(e,t,n){return{line:e,column:t,offset:n}}function F(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const M=/\{([0-9a-zA-Z]+)\}/g;function V(e,...t){return 1===t.length&&j(t[0])&&(t=t[0]),t&&t.hasOwnProperty||(t={}),e.replace(M,((e,n)=>t.hasOwnProperty(n)?t[n]:""))}const U=Object.assign,B=e=>"string"===typeof e,j=e=>null!==e&&"object"===typeof e;function W(e,t=""){return e.reduce(((e,n,r)=>0===r?e+n:e+t+n),"")}const H={USE_MODULO_SYNTAX:1,__EXTEND_POINT__:2},q={[H.USE_MODULO_SYNTAX]:"Use modulo before '{{0}}'."};function G(e,t,...n){const r=V(q[e]||"",...n||[]),i={message:String(r),code:e};return t&&(i.location=t),i}const z={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTE
3312RMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},Y={[z.EXPECTED_TOKEN]:"Expected token: '{0}'",[z.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[z.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[z.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[z.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[z.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[z.EMPTY_PLACEHOLDER]:"Empty placeholder",[z.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[z.INVALID_LINKED_FORMAT]:"Invalid linked format",[z.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[z.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[z.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[z.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[z.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[z.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function K(e,t,n={}){const{domain:r,messages:i,args:a}=n,o=V((i||Y)[e]||"",...a||[]),s=new SyntaxError(String(o));return s.code=e,t&&(s.location=t),s.domain=r,s}function X(e){throw e}const J=" ",Z="\r",Q="\n",ee=String.fromCharCode(8232),te=String.fromCharCode(8233);function ne(e){const t=e;let n=0,r=1,i=1,a=0;const o=e=>t[e]===Z&&t[e+1]===Q,s=e=>t[e]===Q,l=e=>t[e]===te,u=e=>t[e]===ee,c=e=>o(e)||s(e)||l(e)||u(e),d=()=>n,h=()=>r,p=()=>i,f=()=>a,m=e=>o(e)||l(e)||u(e)?Q:t[e],v=()=>m(n),g=()=>m(n+a);function y(){return a=0,c(n)&&(r++,i=0),o(n)&&n++,n++,i++,t[n]}function _(){return o(n+a)&&a++,a++,t[n+a]}function b(){n=0,r=1,i=1,a=0}function T(e=0){a=e}function w(){const e=n+a;while(e!==n)y();a=0}return{index:d,line:h,column:p,peekOffset:f,charAt:m,currentChar:v,currentPeek:g,next:y,peek:_,reset:b,resetPeek:T,skipToPeek:w}}const re=void 0,ie="'",ae="tokenizer";function oe(e,t={}){const n=!1!==t.location,r=ne(e),i=()=>r.index(),a=()=>R(r.line(),r.column(),r.index()),o=a(),s=i(),l={currentType:14,offset:s,startLoc:o,endLoc:o,lastType:14,lastOffset:s,lastStartLoc:o,lastEndLoc:o,braceNest:0,inLinked:!1,text:""},u=()=>l,{onError:c}=t;function d(e,t,r,...i){const a=u();if(t.column+=r,t.offset+=r,c){const r=n?F(a.startLoc,t):null,o=K(e,r,{domain:ae,args:i});c(o)}}function h(e,t,r){e.endLoc=a(),e.currentType=t;const i={type:t};return n&&(i.loc=F(e.startLoc,e.endLoc)),null!=r&&(i.value=r),i}const p=e=>h(e,14);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(z.EXPECTED_TOKEN,a(),0,t),"")}function m(e){let t="";while(e.currentPeek()===J||e.currentPeek()===Q)t+=e.currentPeek(),e.peek();return t}function v(e){const t=m(e);return e.skipToPeek(),t}function g(e){if(e===re)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function y(e){if(e===re)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}function _(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=g(e.currentPeek());return e.resetPeek(),r}function b(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="-"===e.currentPeek()?e.peek():e.currentPeek(),i=y(r);return e.resetPeek(),i}function T(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=e.currentPeek()===ie;return e.resetPeek(),r}function w(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}function S(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=g(e.currentPeek());return e.resetPeek(),r}function k(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}function C(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?g(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===J||!t)&&(t===Q?(e.peek(),r()):x(e,!1))},i=r();return e.resetPeek(),i}function E(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function I(e){const t=m(e),n="%"===e.currentPeek()&&"{"===e.peek();return e.resetPeek(),{isModulo:n,hasSpace:t.length>0}}function x(e,t=!0){const n=(t=!1,r="",i=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!i)||!(r===J||r===Q):a===J?(e.peek(),n(!0,J,i)):a!==Q||
3312(e.peek(),n(!0,Q,i)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function A(e,t){const n=e.currentChar();return n===re?re:t(n)?(e.next(),n):null}function P(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}function $(e){return A(e,P)}function O(e){const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t||45===t}function N(e){return A(e,O)}function L(e){const t=e.charCodeAt(0);return t>=48&&t<=57}function D(e){return A(e,L)}function M(e){const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function V(e){return A(e,M)}function U(e){let t="",n="";while(t=D(e))n+=t;return n}function B(e){v(e);const t=e.currentChar();return"%"!==t&&d(z.EXPECTED_TOKEN,a(),0,t),e.next(),"%"}function j(e){let t="";while(1){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!x(e))break;t+=n,e.next()}else if(n===J||n===Q)if(x(e))t+=n,e.next();else{if(E(e))break;t+=n,e.next()}else t+=n,e.next()}return t}function W(e){v(e);let t="",n="";while(t=N(e))n+=t;return e.currentChar()===re&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),n}function H(e){v(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${U(e)}`):t+=U(e),e.currentChar()===re&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),t}function q(e){return e!==ie&&e!==Q}function G(e){v(e),f(e,"'");let t="",n="";while(t=A(e,q))n+="\\"===t?Y(e):t;const r=e.currentChar();return r===Q||r===re?(d(z.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),r===Q&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}function Y(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return X(e,t,4);case"U":return X(e,t,6);default:return d(z.UNKNOWN_ESCAPE_SEQUENCE,a(),0,t),""}}function X(e,t,n){f(e,t);let r="";for(let i=0;i<n;i++){const n=V(e);if(!n){d(z.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${t}${r}${e.currentChar()}`);break}r+=n}return`\\${t}${r}`}function Z(e){return"{"!==e&&"}"!==e&&e!==J&&e!==Q}function ee(e){v(e);let t="",n="";while(t=A(e,Z))n+=t;return n}function te(e){let t="",n="";while(t=$(e))n+=t;return n}function oe(e){const t=n=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&"("!==r&&")"!==r&&r?r===J?n:(n+=r,e.next(),t(n)):n};return t("")}function se(e){v(e);const t=f(e,"|");return v(e),t}function le(e,t){let n=null;const r=e.currentChar();switch(r){case"{":return t.braceNest>=1&&d(z.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),e.next(),n=h(t,2,"{"),v(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(z.EMPTY_PLACEHOLDER,a(),0),e.next(),n=h(t,3,"}"),t.braceNest--,t.braceNest>0&&v(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),n=ue(e,t)||p(t),t.braceNest=0,n;default:{let r=!0,i=!0,o=!0;if(E(e))return t.braceNest>0&&d(z.UNTERMINATED_CLOSING_BRACE,a(),0),n=h(t,1,se(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(z.UNTERMINATED_CLOSING_BRACE,a(),0),t.braceNest=0,ce(e,t);if(r=_(e,t))return n=h(t,5,W(e)),v(e),n;if(i=b(e,t))return n=h(t,6,H(e)),v(e),n;if(o=T(e,t))return n=h(t,7,G(e)),v(e),n;if(!r&&!i&&!o)return n=h(t,13,ee(e)),d(z.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,n.value),v(e),n;break}}return n}function ue(e,t){const{currentType:n}=t;let r=null;const i=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||i!==Q&&i!==J||d(z.INVALID_LINKED_FORMAT,a(),0),i){case"@":return e.next(),r=h(t,8,"@"),t.inLinked=!0,r;case".":return v(e),e.next(),h(t,9,".");case":":return v(e),e.next(),h(t,10,":");default:return E(e)?(r=h(t,1,se(e)),t.braceNest=0,t.inLinked=!1,r):w(e,t)||k(e,t)?(v(e),ue(e,t)):S(e,t)?(v(e),h(t,12,te(e))):C(e,t)?(v(e),"{"===i?le(e,t)||r:h(t,11,oe(e))):(8===n&&d(z.INVALID_LINKED_FORMAT,a(),0),t.braceNest=0,t.inLinked=!1,ce(e,t))}}function ce(e,t){let n={type:14};if(t.braceNest>0)return le(e,t)||p(t);if(t.inLinked)return ue(e,t)||p(t);const r=e.currentChar();switch(r){case"{":return le(e,t)||p(t);case"}":return d(z.UNBALANCED_CLOSING_BRACE,a(),0),e.next(),h(t,3,"}");case"@":return ue(e,t)||p(t);default:{if(E(e))return n=h(t,1,se(e)),t.braceNest=0,t.inLinked=!1,n;const{isModulo:r,hasSpace:i}=I(e);if(r)return i?h(t,0,j(e)):h(t,4,B(e));if(x(e))return h(t,0,j(e));break}}return n}function de(){const{currentType:e,offset:t,startLoc:n,endLoc:o}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=o,l.offset=i(),l.startLoc=a(),r.currentChar()===re?h(l,14):ce(r,l)}return{nextToken:de,currentOffset:i,currentPosition:a,context:u}}const se="parser",le=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function ue(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function ce(e={}){const t=!1!==e.location,{onError:n,onWarn:r}=e;function i(e,r,i,a,...o){const s=e.currentPosition();if(s.offset+=a,s.column+=a,n){const e=t?F(i,s):null,a=K(r,e,{domain:se,args:o});n(a)}}function a(e,n,i,a,...o){const s=e.currentPosition();if(s.offset+=a,s.column+=a,r){const e=t?F(i,s):null;r(G(n,e,o))}}function o(e,n,r){const i={type:e};return t&&(i.start=n,i.end=n,i.loc={start:r,end:r}),i}function s(e,n,r,i){i&&(e.type=i),t&&(e.end=n,e.loc&&(e.loc.end=r))}function l(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,s(r,e.currentOffset(),e.currentPosition()),r}function u(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:i}=n,a=o(5,r,i);return a.index=parseInt(t,10),e.nextToken(),s(a,e.currentOffset(),e.currentPosition()),a}
3312function c(e,t,n){const r=e.context(),{lastOffset:i,lastStartLoc:a}=r,l=o(4,i,a);return l.key=t,!0===n&&(l.modulo=!0),e.nextToken(),s(l,e.currentOffset(),e.currentPosition()),l}function d(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:i}=n,a=o(9,r,i);return a.value=t.replace(le,ue),e.nextToken(),s(a,e.currentOffset(),e.currentPosition()),a}function h(e){const t=e.nextToken(),n=e.context(),{lastOffset:r,lastStartLoc:a}=n,l=o(8,r,a);return 12!==t.type?(i(e,z.UNEXPECTED_EMPTY_LINKED_MODIFIER,n.lastStartLoc,0),l.value="",s(l,r,a),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,n.lastStartLoc,0,de(t)),l.value=t.value||"",s(l,e.currentOffset(),e.currentPosition()),{node:l})}function p(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,s(r,e.currentOffset(),e.currentPosition()),r}function f(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let r=e.nextToken();if(9===r.type){const t=h(e);n.modifier=t.node,r=t.nextConsumeToken||e.nextToken()}switch(10!==r.type&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(r)),r=e.nextToken(),2===r.type&&(r=e.nextToken()),r.type){case 11:null==r.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(r)),n.key=p(e,r.value||"");break;case 5:null==r.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(r)),n.key=c(e,r.value||"");break;case 6:null==r.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(r)),n.key=u(e,r.value||"");break;case 7:null==r.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(r)),n.key=d(e,r.value||"");break;default:{i(e,z.UNEXPECTED_EMPTY_LINKED_KEY,t.lastStartLoc,0);const a=e.context(),l=o(7,a.offset,a.startLoc);return l.value="",s(l,a.offset,a.startLoc),n.key=l,s(n,a.offset,a.startLoc),{nextConsumeToken:r,node:n}}}return s(n,e.currentOffset(),e.currentPosition()),{node:n}}function m(e){const t=e.context(),n=1===t.currentType?e.currentOffset():t.offset,r=1===t.currentType?t.endLoc:t.startLoc,h=o(2,n,r);h.items=[];let p=null,m=null;do{const n=p||e.nextToken();switch(p=null,n.type){case 0:null==n.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(n)),h.items.push(l(e,n.value||""));break;case 6:null==n.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(n)),h.items.push(u(e,n.value||""));break;case 4:m=!0;break;case 5:null==n.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(n)),h.items.push(c(e,n.value||"",!!m)),m&&(a(e,H.USE_MODULO_SYNTAX,t.lastStartLoc,0,de(n)),m=null);break;case 7:null==n.value&&i(e,z.UNEXPECTED_LEXICAL_ANALYSIS,t.lastStartLoc,0,de(n)),h.items.push(d(e,n.value||""));break;case 8:{const t=f(e);h.items.push(t.node),p=t.nextConsumeToken||null;break}}}while(14!==t.currentType&&1!==t.currentType);const v=1===t.currentType?t.lastOffset:e.currentOffset(),g=1===t.currentType?t.lastEndLoc:e.currentPosition();return s(h,v,g),h}function v(e,t,n,r){const a=e.context();let l=0===r.items.length;const u=o(1,t,n);u.cases=[],u.cases.push(r);do{const t=m(e);l||(l=0===t.items.length),u.cases.push(t)}while(14!==a.currentType);return l&&i(e,z.MUST_HAVE_MESSAGES_IN_PLURAL,n,0),s(u,e.currentOffset(),e.currentPosition()),u}function g(e){const t=e.context(),{offset:n,startLoc:r}=t,i=m(e);return 14===t.currentType?i:v(e,n,r,i)}function y(n){const r=oe(n,U({},e)),a=r.context(),l=o(0,a.offset,a.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=g(r),e.onCacheKey&&(l.cacheKey=e.onCacheKey(n)),14!==a.currentType&&i(r,z.UNEXPECTED_LEXICAL_ANALYSIS,a.lastStartLoc,0,n[a.offset]||""),s(l,r.currentOffset(),r.currentPosition()),l}return{parse:y}}function de(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function he(e,t={}){const n={ast:e,helpers:new Set},r=()=>n,i=e=>(n.helpers.add(e),e);return{context:r,helper:i}}function pe(e,t){for(let n=0;n<e.length;n++)fe(e[n],t)}function fe(e,t){switch(e.type){case 1:pe(e.cases,t),t.helper("plural");break;case 2:pe(e.items,t);break;case 6:{const n=e;fe(n.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function me(e,t={}){const n=he(e);n.helper("normalize"),e.body&&fe(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}function ve(e){const t=e.body;
vendor: 4,783 bytes, lines 3312-3318
3312return 2===t.type?ge(t):t.cases.forEach((e=>ge(e))),e}function ge(e){if(1===e.items.length){const t=e.items[0];3!==t.type&&9!==t.type||(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const r=e.items[n];if(3!==r.type&&9!==r.type)break;if(null==r.value)break;t.push(r.value)}if(t.length===e.items.length){e.static=W(t);for(let t=0;t<e.items.length;t++){const n=e.items[t];3!==n.type&&9!==n.type||delete n.value}}}}const ye="minifier";function _e(e){switch(e.t=e.type,e.type){case 0:{const t=e;_e(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let e=0;e<n.length;e++)_e(n[e]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let e=0;e<n.length;e++)_e(n[e]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;_e(t.key),t.k=t.key,delete t.key,t.modifier&&(_e(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}default:throw K(z.UNHANDLED_MINIFIER_NODE_TYPE,null,{domain:ye,args:[e.type]})}delete e.type}const be="parser";function Te(e,t){const{sourceMap:n,filename:r,breakLineCode:i,needIndent:a}=t,o=!1!==t.location,s={filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:i,needIndent:a,indentLevel:0};o&&e.loc&&(s.source=e.loc.source);const l=()=>s;function u(e,t){s.code+=e}function c(e,t=!0){const n=t?i:"";u(a?n+"  ".repeat(e):n)}function d(e=!0){const t=++s.indentLevel;e&&c(t)}function h(e=!0){const t=--s.indentLevel;e&&c(t)}function p(){c(s.indentLevel)}const f=e=>`_${e}`,m=()=>s.needIndent;return{context:l,push:u,indent:d,deindent:h,newline:p,helper:f,needIndent:m}}function we(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Ee(e,t.key),t.modifier?(e.push(", "),Ee(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Se(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const i=t.items.length;for(let a=0;a<i;a++){if(Ee(e,t.items[a]),a===i-1)break;e.push(", ")}e.deindent(r()),e.push("])")}function ke(e,t){const{helper:n,needIndent:r}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(r());const i=t.cases.length;for(let n=0;n<i;n++){if(Ee(e,t.cases[n]),n===i-1)break;e.push(", ")}e.deindent(r()),e.push("])")}}function Ce(e,t){t.body?Ee(e,t.body):e.push("null")}function Ee(e,t){const{helper:n}=e;switch(t.type){case 0:Ce(e,t);break;case 1:ke(e,t);break;case 2:Se(e,t);break;case 6:we(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break;default:throw K(z.UNHANDLED_CODEGEN_NODE_TYPE,null,{domain:be,args:[t.type]})}}const Ie=(e,t={})=>{const n=B(t.mode)?t.mode:"normal",r=B(t.filename)?t.filename:"message.intl",i=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",o=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=Te(e,{mode:n,filename:r,sourceMap:i,breakLineCode:a,needIndent:o});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(o),s.length>0&&(l.push(`const { ${W(s.map((e=>`${e}: _${e}`)),", ")} } = ctx`),l.newline()),l.push("return "),Ee(l,e),l.deindent(o),l.push("}"),delete e.helpers;const{code:u,map:c}=l.context();return{ast:e,code:u,map:c?c.toJSON():void 0}};function xe(e,t={}){const n=U({},t),r=!!n.jit,i=!!n.minify,a=null==n.optimize||n.optimize,o=ce(n),s=o.parse(e);return r?(a&&ve(s),i&&_e(s),{ast:s,code:""}):(me(s,n),Ie(s,n))}
3313/*!
3314  * core-base v9.14.5
3315  * (c) 2025 kazuya kawaguchi
3316  * Released under the MIT License.
3317  */
3318function Ae(){"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(v().__INTLIFY_PROD_DEVTOOLS__=!1),"boolean"!==typeof __INTLIFY_JIT_COMPILATION__&&(v().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(v().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function Pe(e){return E(e)&&0===Ue(e)&&(T(e,"b")||T(e,"body"))}const $e=["b","body"];function Oe(e){return ze(e,$e)}const Ne=["c","cases"];function Le(e){return ze(e,Ne,[])}const De=["s","static"];function Re(e){return ze(e,De)}const Fe=["i","items"];function Me(e){return ze(e,Fe,[])}const Ve=["t","type"];function Ue(e){return ze(e,Ve)}const Be=["v","value"];function je(e,t){const n=ze(e,Be);if(null!=n)return n;throw Ke(t)}const We=["m","modifier"];function He(e){return ze(e,We)}const qe=["k","key"];function Ge(e){const t=ze(e,qe);if(t)return t;throw Ke(6)}function ze(e,t,n){for(let r=0;r<t.length;r++){const n=t[r];
3318if(T(e,n)&&null!=e[n])return e[n]}return n}const Ye=[...$e,...Ne,...De,...Fe,...qe,...We,...Be,...Ve];function Ke(e){return new Error(`unhandled node type: ${e}`)}const Xe=[];Xe[0]={["w"]:[0],["i"]:[3,0],["["]:[4],["o"]:[7]},Xe[1]={["w"]:[1],["."]:[2],["["]:[4],["o"]:[7]},Xe[2]={["w"]:[2],["i"]:[3,0],["0"]:[3,0]},Xe[3]={["i"]:[3,0],["0"]:[3,0],["w"]:[1,1],["."]:[2,1],["["]:[4,1],["o"]:[7,1]},Xe[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],["o"]:8,["l"]:[4,0]},Xe[5]={["'"]:[4,0],["o"]:8,["l"]:[5,0]},Xe[6]={['"']:[4,0],["o"]:8,["l"]:[6,0]};const Je=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Ze(e){return Je.test(e)}function Qe(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t!==n||34!==t&&39!==t?e:e.slice(1,-1)}function et(e){if(void 0===e||null===e)return"o";const t=e.charCodeAt(0);switch(t){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function tt(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(Ze(t)?Qe(t):"*"+t)}function nt(e){const t=[];let n,r,i,a,o,s,l,u=-1,c=0,d=0;const h=[];function p(){const t=e[u+1];if(5===c&&"'"===t||6===c&&'"'===t)return u++,i="\\"+t,h[0](),!0}h[0]=()=>{void 0===r?r=i:r+=i},h[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,c=4,h[0]();else{if(d=0,void 0===r)return!1;if(r=tt(r),!1===r)return!1;h[1]()}};while(null!==c)if(u++,n=e[u],"\\"!==n||!p()){if(a=et(n),l=Xe[c],o=l[a]||l["l"]||8,8===o)return;if(c=o[0],void 0!==o[1]&&(s=h[o[1]],s&&(i=n,!1===s())))return;if(7===c)return t}}const rt=new Map;function it(e,t){return E(e)?e[t]:null}function at(e,t){if(!E(e))return null;let n=rt.get(t);if(n||(n=nt(t),n&&rt.set(t,n)),!n)return null;const r=n.length;let i=e,a=0;while(a<r){const e=n[a];if(Ye.includes(e)&&Pe(i))return null;const t=i[e];if(void 0===t)return null;if(S(i))return null;i=t,a++}return i}const ot=e=>e,st=e=>"",lt="text",ut=e=>0===e.length?"":O(e),ct=$;function dt(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function ht(e){const t=l(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(l(e.named.count)||l(e.named.n))?l(e.named.count)?e.named.count:l(e.named.n)?e.named.n:t:t}function pt(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ft(e={}){const t=e.locale,n=ht(e),r=E(e.pluralRules)&&k(t)&&S(e.pluralRules[t])?e.pluralRules[t]:dt,i=E(e.pluralRules)&&k(t)&&S(e.pluralRules[t])?dt:void 0,a=e=>e[r(n,e.length,i)],o=e.list||[],s=e=>o[e],u=e.named||f();l(e.pluralIndex)&&pt(n,u);const c=e=>u[e];function d(t){const n=S(e.messages)?e.messages(t):!!E(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):st)}const p=t=>e.modifiers?e.modifiers[t]:ot,m=P(e.processor)&&S(e.processor.normalize)?e.processor.normalize:ut,v=P(e.processor)&&S(e.processor.interpolate)?e.processor.interpolate:ct,g=P(e.processor)&&k(e.processor.type)?e.processor.type:lt,y=(e,...t)=>{const[n,r]=t;let i="text",a="";1===t.length?E(n)?(a=n.modifier||a,i=n.type||i):k(n)&&(a=n||a):2===t.length&&(k(n)&&(a=n||a),k(r)&&(i=r||i));const o=d(e)(_),s="vnode"===i&&w(o)&&a?o[0]:o;return a?p(a)(s,i):s},_={["list"]:s,["named"]:c,["plural"]:a,["linked"]:y,["message"]:d,["type"]:g,["interpolate"]:v,["normalize"]:m,["values"]:h(f(),o,u)};return _}let mt=null;function vt(e){mt=e}function gt(e,t,n){mt&&mt.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const yt=_t("function:translate");function _t(e){return t=>mt&&mt.emit(e,t)}const bt=H.__EXTEND_POINT__,Tt=N(bt),wt={NOT_FOUND_KEY:bt,FALLBACK_TO_TRANSLATE:Tt(),CANNOT_FORMAT_NUMBER:Tt(),FALLBACK_TO_NUMBER_FORMAT:Tt(),CANNOT_FORMAT_DATE:Tt(),FALLBACK_TO_DATE_FORMAT:Tt(),EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:Tt(),__EXTEND_POINT__:Tt()};wt.NOT_FOUND_KEY,wt.FALLBACK_TO_TRANSLATE,wt.CANNOT_FORMAT_NUMBER,wt.FALLBACK_TO_NUMBER_FORMAT,wt.CANNOT_FORMAT_DATE,wt.FALLBACK_TO_DATE_FORMAT,wt.EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER;const St=z.__EXTEND_POINT__,kt=N(St),Ct={INVALID_ARGUMENT:St,INVALID_DATE_ARGUMENT:kt(),INVALID_ISO_DATE_ARGUMENT:kt(),NOT_SUPPORT_NON_STRING_MESSAGE:kt(),NOT_SUPPORT_LOCALE_PROMISE_VALUE:kt(),NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:kt(),NOT_SUPPORT_LOCALE_TYPE:kt(),__EXTEND_POINT__:kt()};function Et(e){return K(e,null,void 0)}Ct.INVALID_ARGUMENT,Ct.INVALID_DATE_ARGUMENT,Ct.INVALID_ISO_DATE_ARGUMENT,Ct.NOT_SUPPORT_NON_STRING_MESSAGE,Ct.NOT_SUPPORT_LOCALE_PROMISE_VALUE,Ct.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION,Ct.NOT_SUPPORT_LOCALE_TYPE;function It(e,t){return null!=t.locale?At(t.locale):At(e.locale)}let xt;function At(e){if(k(e))return e;
3318if(S(e)){if(e.resolvedOnce&&null!=xt)return xt;if("Function"===e.constructor.name){const t=e();if(I(t))throw Et(Ct.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return xt=t}throw Et(Ct.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}throw Et(Ct.NOT_SUPPORT_LOCALE_TYPE)}function Pt(e,t,n){return[...new Set([n,...w(t)?t:E(t)?Object.keys(t):k(t)?[t]:[n]])]}function $t(e,t,n){const r=k(n)?n:Ft,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let a=i.__localeChainCache.get(r);if(!a){a=[];let e=[n];while(w(e))e=Ot(a,e,t);const o=w(t)||!P(t)?t:t["default"]?t["default"]:null;e=k(o)?[o]:o,w(e)&&Ot(a,e,!1),i.__localeChainCache.set(r,a)}return a}function Ot(e,t,n){let r=!0;for(let i=0;i<t.length&&C(r);i++){const a=t[i];k(a)&&(r=Nt(e,t[i],n))}return r}function Nt(e,t,n){let r;const i=t.split("-");do{const t=i.join("-");r=Lt(e,t,n),i.splice(-1,1)}while(i.length&&!0===r);return r}function Lt(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r="!"!==t[t.length-1];const i=t.replace(/!/g,"");e.push(i),(w(n)||P(n))&&n[i]&&(r=n[i])}return r}const Dt="9.14.5",Rt=-1,Ft="en-US",Mt="",Vt=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Ut(){return{upper:(e,t)=>"text"===t&&k(e)?e.toUpperCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>"text"===t&&k(e)?e.toLowerCase():"vnode"===t&&E(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>"text"===t&&k(e)?Vt(e):"vnode"===t&&E(e)&&"__v_isVNode"in e?Vt(e.children):e}}let Bt,jt,Wt;function Ht(e){Bt=e}function qt(e){jt=e}function Gt(e){Wt=e}let zt=null;const Yt=e=>{zt=e},Kt=()=>zt;let Xt=null;const Jt=e=>{Xt=e},Zt=()=>Xt;let Qt=0;function en(e={}){const t=S(e.onWarn)?e.onWarn:r,n=k(e.version)?e.version:Dt,i=k(e.locale)||S(e.locale)?e.locale:Ft,a=S(i)?Ft:i,o=w(e.fallbackLocale)||P(e.fallbackLocale)||k(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a,s=P(e.messages)?e.messages:tn(a),l=P(e.datetimeFormats)?e.datetimeFormats:tn(a),u=P(e.numberFormats)?e.numberFormats:tn(a),d=h(f(),e.modifiers,Ut()),p=e.pluralRules||f(),m=S(e.missing)?e.missing:null,v=!C(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,g=!C(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,y=!!e.fallbackFormat,_=!!e.unresolving,b=S(e.postTranslation)?e.postTranslation:null,T=P(e.processor)?e.processor:null,I=!C(e.warnHtmlMessage)||e.warnHtmlMessage,x=!!e.escapeParameter,A=S(e.messageCompiler)?e.messageCompiler:Bt;const $=S(e.messageResolver)?e.messageResolver:jt||it,O=S(e.localeFallbacker)?e.localeFallbacker:Wt||Pt,N=E(e.fallbackContext)?e.fallbackContext:void 0,L=e,D=E(L.__datetimeFormatters)?L.__datetimeFormatters:new Map,R=E(L.__numberFormatters)?L.__numberFormatters:new Map,F=E(L.__meta)?L.__meta:{};Qt++;const M={version:n,cid:Qt,locale:i,fallbackLocale:o,messages:s,modifiers:d,pluralRules:p,missing:m,missingWarn:v,fallbackWarn:g,fallbackFormat:y,unresolving:_,postTranslation:b,processor:T,warnHtmlMessage:I,escapeParameter:x,messageCompiler:A,messageResolver:$,localeFallbacker:O,fallbackContext:N,onWarn:t,__meta:F};return M.datetimeFormats=l,M.numberFormats=u,M.__datetimeFormatters=D,M.__numberFormatters=R,__INTLIFY_PROD_DEVTOOLS__&&gt(M,n,F),M}const tn=e=>({[e]:f()});function nn(e,t,n,r,i){const{missing:a,onWarn:o}=e;if(null!==a){const r=a(e,n,t,i);return k(r)?r:t}return t}function rn(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function an(e,t){return e!==t&&e.split("-")[0]===t.split("-")[0]}function on(e,t){const n=t.indexOf(e);if(-1===n)return!1;for(let r=n+1;r<t.length;r++)if(an(e,t[r]))return!0;return!1}function sn(e){const t=t=>ln(t,e);return t}function ln(e,t){const n=Oe(t);if(null==n)throw Ke(0);const r=Ue(n);if(1===r){const t=n,r=Le(t);return e.plural(r.reduce(((t,n)=>[...t,un(e,n)]),[]))}return un(e,n)}function un(e,t){const n=Re(t);if(null!=n)return"text"===e.type?n:e.normalize([n]);{const n=Me(t).reduce(((t,n)=>[...t,cn(e,n)]),[]);return e.normalize(n)}}function cn(e,t){const n=Ue(t);switch(n){case 3:return je(t,n);case 9:return je(t,n);case 4:{const r=t;if(T(r,"k")&&r.k)return e.interpolate(e.named(r.k));if(T(r,"key")&&r.key)return e.interpolate(e.named(r.key));throw Ke(n)}case 5:{const r=t;if(T(r,"i")&&l(r.i))return e.interpolate(e.list(r.i));if(T(r,"index")&&l(r.index))return e.interpolate(e.list(r.index));throw Ke(n)}case 6:{const n=t,r=He(n),i=Ge(n);return e.linked(cn(e,i),r?cn(e,r):void 0,e.type)}case 7:return je(t,n);case 8:return je(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const dn=e=>e;let hn=f();function pn(e,t={}){let n=!1;const r=t.onError||X;return t.onError=e=>{n=!0,r(e)},{...xe(e,t),detectError:n}}const fn=(e,t)=>{if(!k(e))throw Et(Ct.NOT_SUPPORT_NON_STRING_MESSAGE);{!C(t.warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||dn,r=n(e),i=hn[r];if(i)return i;const{code:a,detectError:o}=pn(e,t),s=new Function(`return ${a}`)();return o?s:hn[r]=s}};function mn(e,t){if(__INTLIFY_JIT_COMPILATION__&&!__INTLIFY_DROP_MESSAGE_COMPILER__&&k(e)){!C(t.
3318warnHtmlMessage)||t.warnHtmlMessage;const n=t.onCacheKey||dn,r=n(e),i=hn[r];if(i)return i;const{ast:a,detectError:o}=pn(e,{...t,location:!1,jit:!0}),s=sn(a);return o?s:hn[r]=s}{0;const t=e.cacheKey;if(t){const n=hn[t];return n||(hn[t]=sn(e))}return sn(e)}}const vn=()=>"",gn=e=>S(e);function yn(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:i,messageCompiler:a,fallbackLocale:o,messages:s}=e,[l,u]=Sn(...t),c=C(u.missingWarn)?u.missingWarn:e.missingWarn,d=C(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,p=C(u.escapeParameter)?u.escapeParameter:e.escapeParameter,m=!!u.resolvedMessage,v=k(u.default)||C(u.default)?C(u.default)?a?l:()=>l:u.default:n?a?l:()=>l:"",g=n||""!==v,y=It(e,u);p&&_n(u);let[b,T,w]=m?[l,y,s[y]||f()]:bn(e,l,y,o,d,c),S=b,E=l;if(m||k(S)||Pe(S)||gn(S)||g&&(S=v,E=S),!m&&(!(k(S)||Pe(S)||gn(S))||!k(T)))return i?Rt:l;let I=!1;const x=()=>{I=!0},A=gn(S)?S:Tn(e,l,T,S,E,x);if(I)return S;const P=Cn(e,T,w,u),$=ft(P),O=wn(e,A,$);let N=r?r(O,l):O;if(p&&k(N)&&(N=_(N)),__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:k(l)?l:gn(S)?S.key:"",locale:T||(gn(S)?S.locale:""),format:k(S)?S:gn(S)?S.source:"",message:N};t.meta=h({},e.__meta,Kt()||{}),yt(t)}return N}function _n(e){w(e.list)?e.list=e.list.map((e=>k(e)?g(e):e)):E(e.named)&&Object.keys(e.named).forEach((t=>{k(e.named[t])&&(e.named[t]=g(e.named[t]))}))}function bn(e,t,n,r,i,a){const{messages:o,onWarn:s,messageResolver:l,localeFallbacker:u}=e,c=u(e,r,n);let d,h=f(),p=null,m=n,v=null;const g="translate";for(let y=0;y<c.length;y++){d=v=c[y],h=o[d]||f();if(null===(p=l(h,t))&&(p=h[t]),k(p)||Pe(p)||gn(p))break;if(!on(d,c)){const n=nn(e,t,d,a,g);n!==t&&(p=n)}m=v}return[p,d,h]}function Tn(e,t,n,r,i,a){const{messageCompiler:o,warnHtmlMessage:s}=e;if(gn(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}if(null==o){const e=()=>r;return e.locale=n,e.key=t,e}const l=o(r,kn(e,n,i,r,s,a));return l.locale=n,l.key=t,l.source=r,l}function wn(e,t,n){const r=t(n);return r}function Sn(...e){const[t,n,r]=e,i=f();if(!k(t)&&!l(t)&&!gn(t)&&!Pe(t))throw Et(Ct.INVALID_ARGUMENT);const a=l(t)?String(t):(gn(t),t);return l(n)?i.plural=n:k(n)?i.default=n:P(n)&&!d(n)?i.named=n:w(n)&&(i.list=n),l(r)?i.plural=r:k(r)?i.default=r:P(r)&&h(i,r),[a,i]}function kn(e,t,n,r,i,a){return{locale:t,key:n,warnHtmlMessage:i,onError:e=>{throw a&&a(e),e},onCacheKey:e=>o(t,n,e)}}function Cn(e,t,n,r){const{modifiers:i,pluralRules:a,messageResolver:o,fallbackLocale:s,fallbackWarn:u,missingWarn:c,fallbackContext:d}=e,h=r=>{let i=o(n,r);if(null==i&&d){const[,,e]=bn(d,r,t,s,u,c);i=o(e,r)}if(k(i)||Pe(i)){let n=!1;const a=()=>{n=!0},o=Tn(e,r,t,i,r,a);return n?vn:o}return gn(i)?i:vn},p={locale:t,modifiers:i,pluralRules:a,messages:h};return e.processor&&(p.processor=e.processor),r.list&&(p.list=r.list),r.named&&(p.named=r.named),l(r.plural)&&(p.pluralIndex=r.plural),p}const En="undefined"!==typeof Intl;En&&Intl.DateTimeFormat,En&&Intl.NumberFormat;function In(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__datetimeFormatters:s}=e;const[l,u,c,p]=An(...t),f=C(c.missingWarn)?c.missingWarn:e.missingWarn,m=(C(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),v=It(e,c),g=o(e,i,v);if(!k(l)||""===l)return new Intl.DateTimeFormat(v,p).format(u);let y,_={},b=null,T=v,w=null;const S="datetime format";for(let d=0;d<g.length;d++){if(y=w=g[d],_=n[y]||{},b=_[l],P(b))break;nn(e,l,y,f,S),T=w}if(!P(b)||!k(y))return r?Rt:l;let E=`${y}__${l}`;d(p)||(E=`${E}__${JSON.stringify(p)}`);let I=s.get(E);return I||(I=new Intl.DateTimeFormat(y,h({},b,p)),s.set(E,I)),m?I.formatToParts(u):I.format(u)}const xn=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function An(...e){const[t,n,r,i]=e,a=f();let o,s=f();if(k(t)){const e=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!e)throw Et(Ct.INVALID_ISO_DATE_ARGUMENT);const n=e[3]?e[3].trim().startsWith("T")?`${e[1].trim()}${e[3].trim()}`:`${e[1].trim()}T${e[3].trim()}`:e[1].trim();o=new Date(n);try{o.toISOString()}catch(c){throw Et(Ct.INVALID_ISO_DATE_ARGUMENT)}}else if(u(t)){if(isNaN(t.getTime()))throw Et(Ct.INVALID_DATE_ARGUMENT);o=t}else{if(!l(t))throw Et(Ct.INVALID_ARGUMENT);o=t}
3318return k(n)?a.key=n:P(n)&&Object.keys(n).forEach((e=>{xn.includes(e)?s[e]=n[e]:a[e]=n[e]})),k(r)?a.locale=r:P(r)&&(s=r),P(i)&&(s=i),[a.key||"",o,a,s]}function Pn(e,t,n){const r=e;for(const i in n){const e=`${t}__${i}`;r.__datetimeFormatters.has(e)&&r.__datetimeFormatters.delete(e)}}function $n(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:i,onWarn:a,localeFallbacker:o}=e,{__numberFormatters:s}=e;const[l,u,c,p]=Nn(...t),f=C(c.missingWarn)?c.missingWarn:e.missingWarn,m=(C(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),v=It(e,c),g=o(e,i,v);if(!k(l)||""===l)return new Intl.NumberFormat(v,p).format(u);let y,_={},b=null,T=v,w=null;const S="number format";for(let d=0;d<g.length;d++){if(y=w=g[d],_=n[y]||{},b=_[l],P(b))break;nn(e,l,y,f,S),T=w}if(!P(b)||!k(y))return r?Rt:l;let E=`${y}__${l}`;d(p)||(E=`${E}__${JSON.stringify(p)}`);let I=s.get(E);return I||(I=new Intl.NumberFormat(y,h({},b,p)),s.set(E,I)),m?I.formatToParts(u):I.format(u)}const On=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function Nn(...e){const[t,n,r,i]=e,a=f();let o=f();if(!l(t))throw Et(Ct.INVALID_ARGUMENT);const s=t;return k(n)?a.key=n:P(n)&&Object.keys(n).forEach((e=>{On.includes(e)?o[e]=n[e]:a[e]=n[e]})),k(r)?a.locale=r:P(r)&&(o=r),P(i)&&(o=i),[a.key||"",s,a,o]}function Ln(e,t,n){const r=e;for(const i in n){const e=`${t}__${i}`;r.__numberFormatters.has(e)&&r.__numberFormatters.delete(e)}}Ae();var Dn=n(6252),Rn=n(2262);
3319/*!
3320  * vue-i18n v9.14.5
3321  * (c) 2025 kazuya kawaguchi
3322  * Released under the MIT License.
3323  */
3324const Fn="9.14.5";function Mn(){"boolean"!==typeof __VUE_I18N_FULL_INSTALL__&&(v().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!==typeof __VUE_I18N_LEGACY_API__&&(v().__VUE_I18N_LEGACY_API__=!0),"boolean"!==typeof __INTLIFY_JIT_COMPILATION__&&(v().__INTLIFY_JIT_COMPILATION__=!1),"boolean"!==typeof __INTLIFY_DROP_MESSAGE_COMPILER__&&(v().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),"boolean"!==typeof __INTLIFY_PROD_DEVTOOLS__&&(v().__INTLIFY_PROD_DEVTOOLS__=!1)}const Vn=wt.__EXTEND_POINT__,Un=N(Vn),Bn={FALLBACK_TO_ROOT:Vn,NOT_SUPPORTED_PRESERVE:Un(),NOT_SUPPORTED_FORMATTER:Un(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:Un(),NOT_SUPPORTED_GET_CHOICE_INDEX:Un(),COMPONENT_NAME_LEGACY_COMPATIBLE:Un(),NOT_FOUND_PARENT_SCOPE:Un(),IGNORE_OBJ_FLATTEN:Un(),NOTICE_DROP_ALLOW_COMPOSITION:Un(),NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG:Un()};Bn.FALLBACK_TO_ROOT,Bn.NOT_SUPPORTED_PRESERVE,Bn.NOT_SUPPORTED_FORMATTER,Bn.NOT_SUPPORTED_PRESERVE_DIRECTIVE,Bn.NOT_SUPPORTED_GET_CHOICE_INDEX,Bn.COMPONENT_NAME_LEGACY_COMPATIBLE,Bn.NOT_FOUND_PARENT_SCOPE,Bn.IGNORE_OBJ_FLATTEN,Bn.NOTICE_DROP_ALLOW_COMPOSITION,Bn.NOTICE_DROP_TRANSLATE_EXIST_COMPATIBLE_FLAG;const jn=Ct.__EXTEND_POINT__,Wn=N(jn),Hn={UNEXPECTED_RETURN_TYPE:jn,INVALID_ARGUMENT:Wn(),MUST_BE_CALL_SETUP_TOP:Wn(),NOT_INSTALLED:Wn(),NOT_AVAILABLE_IN_LEGACY_MODE:Wn(),REQUIRED_VALUE:Wn(),INVALID_VALUE:Wn(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Wn(),NOT_INSTALLED_WITH_PROVIDE:Wn(),UNEXPECTED_ERROR:Wn(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Wn(),BRIDGE_SUPPORT_VUE_2_ONLY:Wn(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Wn(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Wn(),__EXTEND_POINT__:Wn()};function qn(e,...t){return K(e,null,void 0)}Hn.UNEXPECTED_RETURN_TYPE,Hn.INVALID_ARGUMENT,Hn.MUST_BE_CALL_SETUP_TOP,Hn.NOT_INSTALLED,Hn.UNEXPECTED_ERROR,Hn.NOT_AVAILABLE_IN_LEGACY_MODE,Hn.REQUIRED_VALUE,Hn.INVALID_VALUE,Hn.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN,Hn.NOT_INSTALLED_WITH_PROVIDE,Hn.NOT_COMPATIBLE_LEGACY_VUE_I18N,Hn.BRIDGE_SUPPORT_VUE_2_ONLY,Hn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION,Hn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY;const Gn=a("__translateVNode"),zn=a("__datetimeParts"),Yn=a("__numberParts"),Kn=a("__setPluralRules");a("__intlifyMeta");const Xn=a("__injectWithOption"),Jn=a("__dispose");function Zn(e){if(!E(e))return e;if(Pe(e))return e;for(const t in e)if(T(e,t))if(t.includes(".")){const n=t.split("."),r=n.length-1;let i=e,a=!1;for(let e=0;e<r;e++){if("__proto__"===n[e])throw new Error(`unsafe key: ${n[e]}`);
3324if(n[e]in i||(i[n[e]]=f()),!E(i[n[e]])){a=!0;break}i=i[n[e]]}if(a||(Pe(i)?Ye.includes(n[r])||delete e[t]:(i[n[r]]=e[t],delete e[t])),!Pe(i)){const e=i[n[r]];E(e)&&Zn(e)}}else E(e[t])&&Zn(e[t]);return e}function Qn(e,t){const{messages:n,__i18n:r,messageResolver:i,flatJson:a}=t,o=P(n)?n:w(r)?f():{[e]:f()};if(w(r)&&r.forEach((e=>{if("locale"in e&&"resource"in e){const{locale:t,resource:n}=e;t?(o[t]=o[t]||f(),D(n,o[t])):D(n,o)}else k(e)&&D(JSON.parse(e),o)})),null==i&&a)for(const s in o)T(o,s)&&Zn(o[s]);return o}function er(e){return e.type}function tr(e,t,n){let r=E(t.messages)?t.messages:f();"__i18nGlobal"in n&&(r=Qn(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const i=Object.keys(r);if(i.length&&i.forEach((t=>{e.mergeLocaleMessage(t,r[t])})),E(t.datetimeFormats)){const n=Object.keys(t.datetimeFormats);n.length&&n.forEach((n=>{e.mergeDateTimeFormat(n,t.datetimeFormats[n])}))}if(E(t.numberFormats)){const n=Object.keys(t.numberFormats);n.length&&n.forEach((n=>{e.mergeNumberFormat(n,t.numberFormats[n])}))}}function nr(e){return(0,Dn.Wm)(Dn.xv,null,e,0)}const rr="__INTLIFY_META__",ir=()=>[],ar=()=>!1;let or=0;function sr(e){return(t,n,r,i)=>e(n,r,(0,Dn.FN)()||void 0,i)}const lr=()=>{const e=(0,Dn.FN)();let t=null;return e&&(t=er(e)[rr])?{[rr]:t}:null};function ur(e={},t){const{__root:n,__injectWithOption:r}=e,a=void 0===n,o=e.flatJson,s=i?Rn.iH:Rn.XI,u=!!e.translateExistCompatible;let d=!C(e.inheritLocale)||e.inheritLocale;const p=s(n&&d?n.locale.value:k(e.locale)?e.locale:Ft),f=s(n&&d?n.fallbackLocale.value:k(e.fallbackLocale)||w(e.fallbackLocale)||P(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:p.value),m=s(Qn(p.value,e)),v=s(P(e.datetimeFormats)?e.datetimeFormats:{[p.value]:{}}),g=s(P(e.numberFormats)?e.numberFormats:{[p.value]:{}});let y=n?n.missingWarn:!C(e.missingWarn)&&!c(e.missingWarn)||e.missingWarn,_=n?n.fallbackWarn:!C(e.fallbackWarn)&&!c(e.fallbackWarn)||e.fallbackWarn,b=n?n.fallbackRoot:!C(e.fallbackRoot)||e.fallbackRoot,I=!!e.fallbackFormat,x=S(e.missing)?e.missing:null,A=S(e.missing)?sr(e.missing):null,$=S(e.postTranslation)?e.postTranslation:null,O=n?n.warnHtmlMessage:!C(e.warnHtmlMessage)||e.warnHtmlMessage,N=!!e.escapeParameter;const L=n?n.modifiers:P(e.modifiers)?e.modifiers:{};let R,F=e.pluralRules||n&&n.pluralRules;const M=()=>{a&&Jt(null);const t={version:Fn,locale:p.value,fallbackLocale:f.value,messages:m.value,modifiers:L,pluralRules:F,missing:null===A?void 0:A,missingWarn:y,fallbackWarn:_,fallbackFormat:I,unresolving:!0,postTranslation:null===$?void 0:$,warnHtmlMessage:O,escapeParameter:N,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};t.datetimeFormats=v.value,t.numberFormats=g.value,t.__datetimeFormatters=P(R)?R.__datetimeFormatters:void 0,t.__numberFormatters=P(R)?R.__numberFormatters:void 0;const n=en(t);return a&&Jt(n),n};function V(){return[p.value,f.value,m.value,v.value,g.value]}R=M(),rn(R,p.value,f.value);const U=(0,Dn.Fl)({get:()=>p.value,set:e=>{p.value=e,R.locale=p.value}}),B=(0,Dn.Fl)({get:()=>f.value,set:e=>{f.value=e,R.fallbackLocale=f.value,rn(R,p.value,e)}}),j=(0,Dn.Fl)((()=>m.value)),W=(0,Dn.Fl)((()=>v.value)),H=(0,Dn.Fl)((()=>g.value));function q(){return S($)?$:null}function G(e){$=e,R.postTranslation=e}function z(){return x}function Y(e){null!==e&&(A=sr(e)),x=e,R.missing=A}const K=(e,t,r,i,o,s)=>{let u;V();try{__INTLIFY_PROD_DEVTOOLS__&&Yt(lr()),a||(R.fallbackContext=n?Zt():void 0),u=e(R)}finally{__INTLIFY_PROD_DEVTOOLS__&&Yt(null),a||(R.fallbackContext=void 0)}if("translate exists"!==r&&l(u)&&u===Rt||"translate exists"===r&&!u){const[e,r]=t();return n&&b?i(n):o(e)}if(s(u))return u;throw qn(Hn.UNEXPECTED_RETURN_TYPE)};function X(...e){return K((t=>Reflect.apply(yn,null,[t,...e])),(()=>Sn(...e)),"translate",(t=>Reflect.apply(t.t,t,[...e])),(e=>e),(e=>k(e)))}function J(...e){const[t,n,r]=e;if(r&&!E(r))throw qn(Hn.INVALID_ARGUMENT);return X(t,n,h({resolvedMessage:!0},r||{}))}function Z(...e){return K((t=>Reflect.apply(In,null,[t,...e])),(()=>An(...e)),"datetime format",(t=>Reflect.apply(t.d,t,[...e])),(()=>Mt),(e=>k(e)))}function Q(...e){return K((t=>Reflect.apply($n,null,[t,...e])),(()=>Nn(...e)),"number format",(t=>Reflect.apply(t.n,t,[...e])),(()=>Mt),(e=>k(e)))}function ee(e){return e.map((e=>k(e)||l(e)||C(e)?nr(String(e)):e))}const te=e=>e,ne={normalize:ee,interpolate:te,type:"vnode"};function re(...e){return K((t=>{let n;const r=t;try{r.processor=ne,n=Reflect.apply(yn,null,[r,...e])}finally{r.processor=null}return n}),(()=>Sn(...e)),"translate",(t=>t[Gn](...e)),(e=>[nr(e)]),(e=>w(e)))}function ie(...e){return K((t=>Reflect.apply($n,null,[t,...e])),(()=>Nn(...e)),"number format",(t=>t[Yn](...e)),ir,(e=>k(e)||w(e)))}function ae(...e){return K((t=>Reflect.apply(In,null,[t,...e])),(()=>An(...e)),"datetime format",(t=>t[zn](...e)),ir,(e=>k(e)||w(e)))}function oe(e){F=e,R.pluralRules=F}function se(e,t){return K((()=>
3324{if(!e)return!1;const n=k(t)?t:p.value,r=ce(n),i=R.messageResolver(r,e);return u?null!=i:Pe(i)||gn(i)||k(i)}),(()=>[e]),"translate exists",(n=>Reflect.apply(n.te,n,[e,t])),ar,(e=>C(e)))}function le(e){let t=null;const n=$t(R,f.value,p.value);for(let r=0;r<n.length;r++){const i=m.value[n[r]]||{},a=R.messageResolver(i,e);if(null!=a){t=a;break}}return t}function ue(e){const t=le(e);return null!=t?t:n&&n.tm(e)||{}}function ce(e){return m.value[e]||{}}function de(e,t){if(o){const n={[e]:t};for(const e in n)T(n,e)&&Zn(n[e]);t=n[e]}m.value[e]=t,R.messages=m.value}function he(e,t){m.value[e]=m.value[e]||{};const n={[e]:t};if(o)for(const r in n)T(n,r)&&Zn(n[r]);t=n[e],D(t,m.value[e]),R.messages=m.value}function pe(e){return v.value[e]||{}}function fe(e,t){v.value[e]=t,R.datetimeFormats=v.value,Pn(R,e,t)}function me(e,t){v.value[e]=h(v.value[e]||{},t),R.datetimeFormats=v.value,Pn(R,e,t)}function ve(e){return g.value[e]||{}}function ge(e,t){g.value[e]=t,R.numberFormats=g.value,Ln(R,e,t)}function ye(e,t){g.value[e]=h(g.value[e]||{},t),R.numberFormats=g.value,Ln(R,e,t)}or++,n&&i&&((0,Dn.YP)(n.locale,(e=>{d&&(p.value=e,R.locale=e,rn(R,p.value,f.value))})),(0,Dn.YP)(n.fallbackLocale,(e=>{d&&(f.value=e,R.fallbackLocale=e,rn(R,p.value,f.value))})));const _e={id:or,locale:U,fallbackLocale:B,get inheritLocale(){return d},set inheritLocale(e){d=e,e&&n&&(p.value=n.locale.value,f.value=n.fallbackLocale.value,rn(R,p.value,f.value))},get availableLocales(){return Object.keys(m.value).sort()},messages:j,get modifiers(){return L},get pluralRules(){return F||{}},get isGlobal(){return a},get missingWarn(){return y},set missingWarn(e){y=e,R.missingWarn=y},get fallbackWarn(){return _},set fallbackWarn(e){_=e,R.fallbackWarn=_},get fallbackRoot(){return b},set fallbackRoot(e){b=e},get fallbackFormat(){return I},set fallbackFormat(e){I=e,R.fallbackFormat=I},get warnHtmlMessage(){return O},set warnHtmlMessage(e){O=e,R.warnHtmlMessage=e},get escapeParameter(){return N},set escapeParameter(e){N=e,R.escapeParameter=e},t:X,getLocaleMessage:ce,setLocaleMessage:de,mergeLocaleMessage:he,getPostTranslationHandler:q,setPostTranslationHandler:G,getMissingHandler:z,setMissingHandler:Y,[Kn]:oe};return _e.datetimeFormats=W,_e.numberFormats=H,_e.rt=J,_e.te=se,_e.tm=ue,_e.d=Z,_e.n=Q,_e.getDateTimeFormat=pe,_e.setDateTimeFormat=fe,_e.mergeDateTimeFormat=me,_e.getNumberFormat=ve,_e.setNumberFormat=ge,_e.mergeNumberFormat=ye,_e[Xn]=r,_e[Gn]=re,_e[zn]=ae,_e[Yn]=ie,_e}function cr(e){const t=k(e.locale)?e.locale:Ft,n=k(e.fallbackLocale)||w(e.fallbackLocale)||P(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=S(e.missing)?e.missing:void 0,i=!C(e.silentTranslationWarn)&&!c(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!C(e.silentFallbackWarn)&&!c(e.silentFallbackWarn)||!e.silentFallbackWarn,o=!C(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=P(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,d=S(e.postTranslation)?e.postTranslation:void 0,p=!k(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,f=!!e.escapeParameterHtml,m=!C(e.sync)||e.sync;let v=e.messages;if(P(e.sharedMessages)){const t=e.sharedMessages,n=Object.keys(t);v=n.reduce(((e,n)=>{const r=e[n]||(e[n]={});return h(r,t[n]),e}),v||{})}const{__i18n:g,__root:y,__injectWithOption:_}=e,b=e.datetimeFormats,T=e.numberFormats,E=e.flatJson,I=e.translateExistCompatible;return{locale:t,fallbackLocale:n,messages:v,flatJson:E,datetimeFormats:b,numberFormats:T,missing:r,missingWarn:i,fallbackWarn:a,fallbackRoot:o,fallbackFormat:s,modifiers:l,pluralRules:u,postTranslation:d,warnHtmlMessage:p,escapeParameter:f,messageResolver:e.messageResolver,inheritLocale:m,translateExistCompatible:I,__i18n:g,__root:y,__injectWithOption:_}}function dr(e={},t){{const t=ur(cr(e)),{__extender:n}=e,r={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return C(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=C(e)?!e:e},get silentFallbackWarn(){return C(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=C(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,i]=e,a={};let o=null,s=null;if(!k(n))throw qn(Hn.INVALID_ARGUMENT);const l=n;return k(r)?a.locale=r:w(r)?o=r:P(r)&&(s=r),w(i)?o=i:P(i)&&(s=i),Reflect.apply(t.t,t,[l,o||s||{},a])},rt(...e){return Reflect.apply(t.rt,t,[...e])},tc(...e){const[n,r,i]=e,a={plural:1};let o=null,s=null;if(!k(n))throw qn(Hn.INVALID_ARGUMENT);const u=n;return k(r)?a.locale=r:l(r)?a.plural=r:w(r)?o=r:P(r)&&(s=r),k(i)?a.locale=i:w(i)?o=i:P(i)&&(s=i),Reflect.apply(t.t,t,[u,o||s||{},a])},te(e,n){return t.te(e,n)},tm(e){return t.tm(e)},getLocaleMessage(e){return t.getLocaleMessage(e)},setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d(...e){return Reflect.apply(t.d,t,[...e])},getDateTimeFormat(e){return t.getDateTimeFormat(e)},setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n(...e){return Reflect.apply(t.n,t,[...e])},getNumberFormat(e){return t.getNumberFormat(e)},setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex(e,t){return-1}};return r.__extender=n,r}}const hr={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}};function pr({slots:e},t){if(1===t.length&&"default"===t[0]){const t=e.default?e.default():[];return t.reduce(((e,t)=>[...e,...t.type===Dn.HY?t.children:[t]]),[])}return t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),f())}function fr(e){return Dn.HY}
3324const mr=(0,Dn.aZ)({name:"i18n-t",props:h({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>l(e)||!isNaN(e)}},hr),setup(e,t){const{slots:n,attrs:r}=t,i=e.i18n||Or({useScope:e.scope,__useComponent:!0});return()=>{const a=Object.keys(n).filter((e=>"_"!==e)),o=f();e.locale&&(o.locale=e.locale),void 0!==e.plural&&(o.plural=k(e.plural)?+e.plural:e.plural);const s=pr(t,a),l=i[Gn](e.keypath,s,o),u=h(f(),r),c=k(e.tag)||E(e.tag)?e.tag:fr();return(0,Dn.h)(c,u,l)}}}),vr=mr;function gr(e){return w(e)&&!k(e[0])}function yr(e,t,n,r){const{slots:i,attrs:a}=t;return()=>{const t={part:!0};let o=f();e.locale&&(t.locale=e.locale),k(e.format)?t.key=e.format:E(e.format)&&(k(e.format.key)&&(t.key=e.format.key),o=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?h(f(),t,{[r]:e.format[r]}):t),f()));const s=r(e.value,t,o);let l=[t.key];w(s)?l=s.map(((e,t)=>{const n=i[e.type],r=n?n({[e.type]:e.value,index:t,parts:s}):[e.value];return gr(r)&&(r[0].key=`${e.type}-${t}`),r})):k(s)&&(l=[s]);const u=h(f(),a),c=k(e.tag)||E(e.tag)?e.tag:fr();return(0,Dn.h)(c,u,l)}}const _r=(0,Dn.aZ)({name:"i18n-n",props:h({value:{type:Number,required:!0},format:{type:[String,Object]}},hr),setup(e,t){const n=e.i18n||Or({useScope:e.scope,__useComponent:!0});return yr(e,t,On,((...e)=>n[Yn](...e)))}}),br=_r,Tr=(0,Dn.aZ)({name:"i18n-d",props:h({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},hr),setup(e,t){const n=e.i18n||Or({useScope:e.scope,__useComponent:!0});return yr(e,t,xn,((...e)=>n[zn](...e)))}}),wr=Tr;function Sr(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}function kr(e){const t=t=>{const{instance:n,modifiers:r,value:i}=t;if(!n||!n.$)throw qn(Hn.UNEXPECTED_ERROR);const a=Sr(e,n.$);const o=Cr(i);return[Reflect.apply(a.t,a,[...Er(o)]),a]},n=(n,r)=>{const[a,o]=t(r);i&&e.global===o&&(n.__i18nWatcher=(0,Dn.YP)(o.locale,(()=>{r.instance&&r.instance.$forceUpdate()}))),n.__composer=o,n.textContent=a},r=e=>{i&&e.__i18nWatcher&&(e.__i18nWatcher(),e.__i18nWatcher=void 0,delete e.__i18nWatcher),e.__composer&&(e.__composer=void 0,delete e.__composer)},a=(e,{value:t})=>{if(e.__composer){const n=e.__composer,r=Cr(t);e.textContent=Reflect.apply(n.t,n,[...Er(r)])}},o=e=>{const[n]=t(e);return{textContent:n}};return{created:n,unmounted:r,beforeUpdate:a,getSSRProps:o}}function Cr(e){if(k(e))return{path:e};if(P(e)){if(!("path"in e))throw qn(Hn.REQUIRED_VALUE,"path");return e}throw qn(Hn.INVALID_VALUE)}function Er(e){const{path:t,locale:n,args:r,choice:i,plural:a}=e,o={},s=r||{};return k(n)&&(o.locale=n),l(i)&&(o.plural=i),l(a)&&(o.plural=a),[t,s,o]}function Ir(e,t,...n){const r=P(n[0])?n[0]:{},i=!!r.useI18nComponentName,a=!C(r.globalInstall)||r.globalInstall;a&&([i?"i18n":vr.name,"I18nT"].forEach((t=>e.component(t,vr))),[br.name,"I18nN"].forEach((t=>e.component(t,br))),[wr.name,"I18nD"].forEach((t=>e.component(t,wr)))),e.directive("t",kr(t))}function xr(e,t,n){return{beforeCreate(){const r=(0,Dn.FN)();if(!r)throw qn(Hn.UNEXPECTED_ERROR);const i=this.$options;if(i.i18n){const r=i.i18n;if(i.__i18n&&(r.__i18n=i.__i18n),r.__root=t,this===this.$root)this.$i18n=Ar(e,r);else{r.__injectWithOption=!0,r.__extender=n.__vueI18nExtend,this.$i18n=dr(r);const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}}else if(i.__i18n)if(this===this.$root)this.$i18n=Ar(e,i);else{this.$i18n=dr({__i18n:i.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const e=this.$i18n;e.__extender&&(e.__disposer=e.__extender(this.$i18n))}else this.$i18n=e;i.__i18nGlobal&&tr(t,i,i),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e),n.__setInstance(r,this.$i18n)},mounted(){0},unmounted(){const e=(0,Dn.FN)();if(!e)throw qn(Hn.UNEXPECTED_ERROR);const t=this.$i18n;delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,t.__disposer&&(t.__disposer(),delete t.__disposer,delete t.__extender),n.__deleteInstance(e),delete this.$i18n}}}function Ar(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Kn](t.pluralizationRules||e.pluralizationRules);const n=Qn(e.locale,{messages:t.messages,__i18n:t.__i18n});
3324return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}const Pr=a("global-vue-i18n");function $r(e={},t){const n=__VUE_I18N_LEGACY_API__&&C(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=!C(e.globalInjection)||e.globalInjection,i=!__VUE_I18N_LEGACY_API__||!n||!!e.allowComposition,o=new Map,[s,l]=Nr(e,n),u=a("");function c(e){return o.get(e)||null}function d(e,t){o.set(e,t)}function h(e){o.delete(e)}{const e={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return i},async install(t,...i){if(t.__VUE_I18N_SYMBOL__=u,t.provide(t.__VUE_I18N_SYMBOL__,e),P(i[0])){const t=i[0];e.__composerExtend=t.__composerExtend,e.__vueI18nExtend=t.__vueI18nExtend}let a=null;!n&&r&&(a=Wr(t,e.global)),__VUE_I18N_FULL_INSTALL__&&Ir(t,e,...i),__VUE_I18N_LEGACY_API__&&n&&t.mixin(xr(l,l.__composer,e));const o=t.unmount;t.unmount=()=>{a&&a(),e.dispose(),o()}},get global(){return l},dispose(){s.stop()},__instances:o,__getInstance:c,__setInstance:d,__deleteInstance:h};return e}}function Or(e={}){const t=(0,Dn.FN)();if(null==t)throw qn(Hn.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&null!=t.appContext.app&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw qn(Hn.NOT_INSTALLED);const n=Lr(t),r=Rr(n),i=er(t),a=Dr(e,i);if(__VUE_I18N_LEGACY_API__&&"legacy"===n.mode&&!e.__useComponent){if(!n.allowComposition)throw qn(Hn.NOT_AVAILABLE_IN_LEGACY_MODE);return Ur(t,a,r,e)}if("global"===a)return tr(r,e,i),r;if("parent"===a){let i=Fr(n,t,e.__useComponent);return null==i&&(i=r),i}const o=n;let s=o.__getInstance(t);if(null==s){const n=h({},e);"__i18n"in i&&(n.__i18n=i.__i18n),r&&(n.__root=r),s=ur(n),o.__composerExtend&&(s[Jn]=o.__composerExtend(s)),Vr(o,t,s),o.__setInstance(t,s)}return s}function Nr(e,t,n){const r=(0,Rn.B)();{const n=__VUE_I18N_LEGACY_API__&&t?r.run((()=>dr(e))):r.run((()=>ur(e)));if(null==n)throw qn(Hn.UNEXPECTED_ERROR);return[r,n]}}function Lr(e){{const t=(0,Dn.f3)(e.isCE?Pr:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw qn(e.isCE?Hn.NOT_INSTALLED_WITH_PROVIDE:Hn.UNEXPECTED_ERROR);return t}}function Dr(e,t){return d(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Rr(e){return"composition"===e.mode?e.global:e.global.__composer}function Fr(e,t,n=!1){let r=null;const i=t.root;let a=Mr(t,n);while(null!=a){const t=e;if("composition"===e.mode)r=t.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const e=t.__getInstance(a);null!=e&&(r=e.__composer,n&&r&&!r[Xn]&&(r=null))}if(null!=r)break;if(i===a)break;a=a.parent}return r}function Mr(e,t=!1){return null==e?null:t&&e.vnode.ctx||e.parent}function Vr(e,t,n){(0,Dn.bv)((()=>{0}),t),(0,Dn.Ah)((()=>{const r=n;e.__deleteInstance(t);const i=r[Jn];i&&(i(),delete r[Jn])}),t)}function Ur(e,t,n,r={}){const i="local"===t,a=(0,Rn.XI)(null);if(i&&e.proxy&&!e.proxy.$options.i18n&&!e.proxy.$options.__i18n)throw qn(Hn.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const o=C(r.inheritLocale)?r.inheritLocale:!k(r.locale),s=(0,Rn.iH)(!i||o?n.locale.value:k(r.locale)?r.locale:Ft),l=(0,Rn.iH)(!i||o?n.fallbackLocale.value:k(r.fallbackLocale)||w(r.fallbackLocale)||P(r.fallbackLocale)||!1===r.fallbackLocale?r.fallbackLocale:s.value),u=(0,Rn.iH)(Qn(s.value,r)),d=(0,Rn.iH)(P(r.datetimeFormats)?r.datetimeFormats:{[s.value]:{}}),h=(0,Rn.iH)(P(r.numberFormats)?r.numberFormats:{[s.value]:{}}),p=i?n.missingWarn:!C(r.missingWarn)&&!c(r.missingWarn)||r.missingWarn,f=i?n.fallbackWarn:!C(r.fallbackWarn)&&!c(r.fallbackWarn)||r.fallbackWarn,m=i?n.fallbackRoot:!C(r.fallbackRoot)||r.fallbackRoot,v=!!r.fallbackFormat,g=S(r.missing)?r.missing:null,y=S(r.postTranslation)?r.postTranslation:null,_=i?n.warnHtmlMessage:!C(r.warnHtmlMessage)||r.warnHtmlMessage,b=!!r.escapeParameter,T=i?n.modifiers:P(r.modifiers)?r.modifiers:{},E=r.pluralRules||i&&n.pluralRules;function I(){return[s.value,l.value,u.value,d.value,h.value]}const x=(0,Dn.Fl)({get:()=>a.value?a.value.locale.value:s.value,set:e=>
3324{a.value&&(a.value.locale.value=e),s.value=e}}),A=(0,Dn.Fl)({get:()=>a.value?a.value.fallbackLocale.value:l.value,set:e=>{a.value&&(a.value.fallbackLocale.value=e),l.value=e}}),$=(0,Dn.Fl)((()=>a.value?a.value.messages.value:u.value)),O=(0,Dn.Fl)((()=>d.value)),N=(0,Dn.Fl)((()=>h.value));function L(){return a.value?a.value.getPostTranslationHandler():y}function D(e){a.value&&a.value.setPostTranslationHandler(e)}function R(){return a.value?a.value.getMissingHandler():g}function F(e){a.value&&a.value.setMissingHandler(e)}function M(e){return I(),e()}function V(...e){return a.value?M((()=>Reflect.apply(a.value.t,null,[...e]))):M((()=>""))}function U(...e){return a.value?Reflect.apply(a.value.rt,null,[...e]):""}function B(...e){return a.value?M((()=>Reflect.apply(a.value.d,null,[...e]))):M((()=>""))}function j(...e){return a.value?M((()=>Reflect.apply(a.value.n,null,[...e]))):M((()=>""))}function W(e){return a.value?a.value.tm(e):{}}function H(e,t){return!!a.value&&a.value.te(e,t)}function q(e){return a.value?a.value.getLocaleMessage(e):{}}function G(e,t){a.value&&(a.value.setLocaleMessage(e,t),u.value[e]=t)}function z(e,t){a.value&&a.value.mergeLocaleMessage(e,t)}function Y(e){return a.value?a.value.getDateTimeFormat(e):{}}function K(e,t){a.value&&(a.value.setDateTimeFormat(e,t),d.value[e]=t)}function X(e,t){a.value&&a.value.mergeDateTimeFormat(e,t)}function J(e){return a.value?a.value.getNumberFormat(e):{}}function Z(e,t){a.value&&(a.value.setNumberFormat(e,t),h.value[e]=t)}function Q(e,t){a.value&&a.value.mergeNumberFormat(e,t)}const ee={get id(){return a.value?a.value.id:-1},locale:x,fallbackLocale:A,messages:$,datetimeFormats:O,numberFormats:N,get inheritLocale(){return a.value?a.value.inheritLocale:o},set inheritLocale(e){a.value&&(a.value.inheritLocale=e)},get availableLocales(){return a.value?a.value.availableLocales:Object.keys(u.value)},get modifiers(){return a.value?a.value.modifiers:T},get pluralRules(){return a.value?a.value.pluralRules:E},get isGlobal(){return!!a.value&&a.value.isGlobal},get missingWarn(){return a.value?a.value.missingWarn:p},set missingWarn(e){a.value&&(a.value.missingWarn=e)},get fallbackWarn(){return a.value?a.value.fallbackWarn:f},set fallbackWarn(e){a.value&&(a.value.missingWarn=e)},get fallbackRoot(){return a.value?a.value.fallbackRoot:m},set fallbackRoot(e){a.value&&(a.value.fallbackRoot=e)},get fallbackFormat(){return a.value?a.value.fallbackFormat:v},set fallbackFormat(e){a.value&&(a.value.fallbackFormat=e)},get warnHtmlMessage(){return a.value?a.value.warnHtmlMessage:_},set warnHtmlMessage(e){a.value&&(a.value.warnHtmlMessage=e)},get escapeParameter(){return a.value?a.value.escapeParameter:b},set escapeParameter(e){a.value&&(a.value.escapeParameter=e)},t:V,getPostTranslationHandler:L,setPostTranslationHandler:D,getMissingHandler:R,setMissingHandler:F,rt:U,d:B,n:j,tm:W,te:H,getLocaleMessage:q,setLocaleMessage:G,mergeLocaleMessage:z,getDateTimeFormat:Y,setDateTimeFormat:K,mergeDateTimeFormat:X,getNumberFormat:J,setNumberFormat:Z,mergeNumberFormat:Q};function te(e){e.locale.value=s.value,e.fallbackLocale.value=l.value,Object.keys(u.value).forEach((t=>{e.mergeLocaleMessage(t,u.value[t])})),Object.keys(d.value).forEach((t=>{e.mergeDateTimeFormat(t,d.value[t])})),Object.keys(h.value).forEach((t=>{e.mergeNumberFormat(t,h.value[t])})),e.escapeParameter=b,e.fallbackFormat=v,e.fallbackRoot=m,e.fallbackWarn=f,e.missingWarn=p,e.warnHtmlMessage=_}return(0,Dn.wF)((()=>{if(null==e.proxy||null==e.proxy.$i18n)throw qn(Hn.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const n=a.value=e.proxy.$i18n.__composer;"global"===t?(s.value=n.locale.value,l.value=n.fallbackLocale.value,u.value=n.messages.value,d.value=n.datetimeFormats.value,h.value=n.numberFormats.value):i&&te(n)})),ee}const Br=["locale","fallbackLocale","availableLocales"],jr=["t","rt","d","n","tm","te"];function Wr(e,t){const n=Object.create(null);Br.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw qn(Hn.UNEXPECTED_ERROR);const i=(0,Rn.dq)(r.value)?{get(){return r.value.value},set(e){r.value.value=e}}:{get(){return r.get&&r.get()}};Object.defineProperty(n,e,i)})),e.config.globalProperties.$i18n=n,jr.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw qn(Hn.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}));const r=()=>{delete e.config.globalProperties.$i18n,jr.forEach((t=>{delete e.config.globalProperties[`$${t}`]}))};return r}if(Mn(),__INTLIFY_JIT_COMPILATION__?Ht(mn):Ht(fn),qt(at),Gt($t),__INTLIFY_PROD_DEVTOOLS__){const e=v();e.__INTLIFY__=!0,vt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}},6285:function(e,t,n){"use strict";n.d(t,{p7:function(){return dt},PO:function(){return Ae}});
3325/*!
3326 * vue-router v4.6.4
3327 * (c) 2025 Eduardo San Martin Morote
3328 * @license MIT
3329 */
3330const r="undefined"!==typeof document;function i(e){return"object"===typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}
3330function a(e){return e.__esModule||"Module"===e[Symbol.toStringTag]||e.default&&i(e.default)}const o=Object.assign;function s(e,t){const n={};for(const r in t){const i=t[r];n[r]=u(i)?i.map(e):e(i)}return n}const l=()=>{},u=Array.isArray;function c(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const d=/#/g,h=/&/g,p=/\//g,f=/=/g,m=/\?/g,v=/\+/g,g=/%5B/g,y=/%5D/g,_=/%5E/g,b=/%60/g,T=/%7B/g,w=/%7C/g,S=/%7D/g,k=/%20/g;function C(e){return null==e?"":encodeURI(""+e).replace(w,"|").replace(g,"[").replace(y,"]")}function E(e){return C(e).replace(T,"{").replace(S,"}").replace(_,"^")}function I(e){return C(e).replace(v,"%2B").replace(k,"+").replace(d,"%23").replace(h,"%26").replace(b,"`").replace(T,"{").replace(S,"}").replace(_,"^")}function x(e){return I(e).replace(f,"%3D")}function A(e){return C(e).replace(d,"%23").replace(m,"%3F")}function P(e){return A(e).replace(p,"%2F")}function $(e){if(null==e)return null;try{return decodeURIComponent(""+e)}catch(t){}return""+e}const O=/\/$/,N=e=>e.replace(O,"");function L(e,t,n="/"){let r,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return l=s>=0&&l>s?-1:l,l>=0&&(r=t.slice(0,l),a=t.slice(l,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r=r||t.slice(0,s),o=t.slice(s,t.length)),r=j(null!=r?r:t,n),{fullPath:r+a+o,path:r,query:i,hash:$(o)}}function D(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function R(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function F(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&M(t.matched[r],n.matched[i])&&V(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function M(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function V(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!U(e[n],t[n]))return!1;return!0}function U(e,t){return u(e)?B(e,t):u(t)?B(t,e):e?.valueOf()===t?.valueOf()}function B(e,t){return u(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function j(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];".."!==i&&"."!==i||r.push("");let a,o,s=n.length-1;for(a=0;a<r.length;a++)if(o=r[a],"."!==o){if(".."!==o)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+r.slice(a).join("/")}const W={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let H=function(e){return e["pop"]="pop",e["push"]="push",e}({}),q=function(e){return e["back"]="back",e["forward"]="forward",e["unknown"]="",e}({});function G(e){if(!e)if(r){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),N(e)}const z=/^[^#]+#/;function Y(e,t){return e.replace(z,"#")+t}function K(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const X=()=>({left:window.scrollX,top:window.scrollY});function J(e){let t;if("el"in e){const n=e.el,r="string"===typeof n&&n.startsWith("#");0;const i="string"===typeof n?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=K(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Z(e,t){return(history.state?history.state.position-t:-1)+e}const Q=new Map;function ee(e,t){Q.set(e,t)}function te(e){const t=Q.get(e);return Q.delete(e),t}function ne(e){return"string"===typeof e||e&&"object"===typeof e}function re(e){return"string"===typeof e||"symbol"===typeof e}let ie=function(e){return e[e["MATCHER_NOT_FOUND"]=1]="MATCHER_NOT_FOUND",e[e["NAVIGATION_GUARD_REDIRECT"]=2]="NAVIGATION_GUARD_REDIRECT",e[e["NAVIGATION_ABORTED"]=4]="NAVIGATION_ABORTED",e[e["NAVIGATION_CANCELLED"]=8]="NAVIGATION_CANCELLED",e[e["NAVIGATION_DUPLICATED"]=16]="NAVIGATION_DUPLICATED",e}({});const ae=Symbol("");ie.MATCHER_NOT_FOUND,ie.NAVIGATION_GUARD_REDIRECT,ie.NAVIGATION_ABORTED,ie.
3330NAVIGATION_CANCELLED,ie.NAVIGATION_DUPLICATED;function oe(e,t){return o(new Error,{type:e,[ae]:!0},t)}function se(e,t){return e instanceof Error&&ae in e&&(null==t||!!(e.type&t))}const le=["params","query","hash"];function ue(e){if("string"===typeof e)return e;if(null!=e.path)return e.path;const t={};for(const n of le)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function ce(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const e=n[r].replace(v," "),i=e.indexOf("="),a=$(i<0?e:e.slice(0,i)),o=i<0?null:$(e.slice(i+1));if(a in t){let e=t[a];u(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function de(e){let t="";for(let n in e){const r=e[n];n=x(n),null!=r?(u(r)?r.map((e=>e&&I(e))):[r&&I(r)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})):void 0!==r&&(t+=(t.length?"&":"")+n)}return t}function he(e){const t={};for(const n in e){const r=e[n];void 0!==r&&(t[n]=u(r)?r.map((e=>null==e?null:""+e)):null==r?r:""+r)}return t}const pe=Symbol(""),fe=Symbol(""),me=Symbol(""),ve=Symbol(""),ge=Symbol("");function ye(){let e=[];function t(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _e(e,t,n,r,i,a=(e=>e())){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise(((s,l)=>{const u=e=>{!1===e?l(oe(ie.NAVIGATION_ABORTED,{from:n,to:t}
3330)):e instanceof Error?l(e):ne(e)?l(oe(ie.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&"function"===typeof e&&o.push(e),s())},c=a((()=>e.call(r&&r.instances[i],t,n,u)));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch((e=>l(e)))}))}function be(e,t,n,r,o=(e=>e())){const s=[];for(const l of e){0;for(const e in l.components){let u=l.components[e];if("beforeRouteEnter"===t||l.instances[e])if(i(u)){const i=(u.__vccOpts||u)[t];i&&s.push(_e(i,n,r,l,e,o))}else{let i=u();0,s.push((()=>i.then((i=>{if(!i)throw new Error(`Couldn't resolve component "${e}" at "${l.path}"`);const s=a(i)?i.default:i;l.mods[e]=i,l.components[e]=s;const u=(s.__vccOpts||s)[t];return u&&_e(u,n,r,l,e,o)()}))))}}}return s}function Te(e,t){const n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){const a=t.matched[o];a&&(e.matched.find((e=>M(e,a)))?r.push(a):n.push(a));const s=e.matched[o];s&&(t.matched.find((e=>M(e,s)))||i.push(s))}return[n,r,i]}var we=n(6252),Se=n(2262);
3331/*!
3332 * vue-router v4.6.4
3333 * (c) 2025 Eduardo San Martin Morote
3334 * @license MIT
3335 */
3336let ke=()=>location.protocol+"//"+location.host;function Ce(e,t){const{pathname:n,search:r,hash:i}=t,a=e.indexOf("#");if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),R(n,"")}return R(n,e)+r+i}function Ee(e,t,n,r){let i=[],a=[],s=null;const l=({state:a})=>{const o=Ce(e,location),l=n.value,u=t.value;
3336let c=0;if(a){if(n.value=o,t.value=a,s&&s===l)return void(s=null);c=u?a.position-u.position:0}else r(o);i.forEach((e=>{e(n.value,l,{delta:c,type:H.pop,direction:c?c>0?q.forward:q.back:q.unknown})}))};function u(){s=n.value}function c(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function d(){if("hidden"===document.visibilityState){const{history:e}=window;if(!e.state)return;e.replaceState(o({},e.state,{scroll:X()}),"")}}function h(){for(const e of a)e();a=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:h}}function Ie(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?X():null}}function xe(e){const{history:t,location:n}=window,r={value:Ce(e,n)},i={value:t.state};function a(r,a,o){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+r:ke()+e+r;try{t[o?"replaceState":"pushState"](a,"",l),i.value=a}catch(u){console.error(u),n[o?"replace":"assign"](l)}}function s(e,n){a(e,o({},t.state,Ie(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function l(e,n){const s=o({},i.value,t.state,{forward:e,scroll:X()});a(s.current,s,!0),a(e,o({},Ie(r.value,e,null),{position:s.position+1},n),!1),r.value=e}return i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:r,state:i,push:l,replace:s}}function Ae(e){e=G(e);const t=xe(e),n=Ee(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}const i=o({location:"",base:e,go:r,createHref:Y.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Pe=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["Group"]=2]="Group",e}({});var $e=function(e){return e[e["Static"]=0]="Static",e[e["Param"]=1]="Param",e[e["ParamRegExp"]=2]="ParamRegExp",e[e["ParamRegExpEnd"]=3]="ParamRegExpEnd",e[e["EscapeNext"]=4]="EscapeNext",e}($e||{});const Oe={type:Pe.Static,value:""},Ne=/[a-zA-Z0-9_]/;function Le(e){if(!e)return[[]];if("/"===e)return[[Oe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=$e.Static,r=n;const i=[];let a;function o(){a&&i.push(a),a=[]}let s,l=0,u="",c="";function d(){u&&(n===$e.Static?a.push({type:Pe.Static,value:u}):n===$e.Param||n===$e.ParamRegExp||n===$e.ParamRegExpEnd?(a.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Pe.Param,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function h(){u+=s}while(l<e.length)if(s=e[l++],"\\"!==s||n===$e.ParamRegExp)switch(n){case $e.Static:"/"===s?(u&&d(),o()):":"===s?(d(),n=$e.Param):h();break;case $e.EscapeNext:h(),n=r;break;case $e.Param:"("===s?n=$e.ParamRegExp:Ne.test(s)?h():(d(),n=$e.Static,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case $e.ParamRegExp:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=$e.ParamRegExpEnd:c+=s;break;case $e.ParamRegExpEnd:d(),n=$e.Static,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state");break}else r=n,n=$e.EscapeNext;return n===$e.ParamRegExp&&t(`Unfinished custom RegExp for param "${u}"`),d(),o(),i}const De="[^/]+?",Re={sensitive:!1,strict:!1,start:!0,end:!0};var Fe=function(e){return e[e["_multiplier"]=10]="_multiplier",e[e["Root"]=90]="Root",e[e["Segment"]=40]="Segment",e[e["SubSegment"]=30]="SubSegment",e[e["Static"]=40]="Static",e[e["Dynamic"]=20]="Dynamic",e[e["BonusCustomRegExp"]=10]="BonusCustomRegExp",e[e["BonusWildcard"]=-50]="BonusWildcard",e[e["BonusRepeatable"]=-20]="BonusRepeatable",e[e["BonusOptional"]=-8]="BonusOptional",e[e["BonusStrict"]=.7000000000000001]="BonusStrict",e[e["BonusCaseSensitive"]=.25]="BonusCaseSensitive",e}(Fe||{});const Me=/[.+*?^${}()[\]/\\]/g;function Ve(e,t){const n=o({},Re,t),r=[];let i=n.start?"^":"";const a=[];for(const o of e){const e=o.length?[]:[Fe.Root];
3336n.strict&&!o.length&&(i+="/");for(let t=0;t<o.length;t++){const r=o[t];let s=Fe.Segment+(n.sensitive?Fe.BonusCaseSensitive:0);if(r.type===Pe.Static)t||(i+="/"),i+=r.value.replace(Me,"\\$&"),s+=Fe.Static;else if(r.type===Pe.Param){const{value:e,repeatable:n,optional:l,regexp:u}=r;a.push({name:e,repeatable:n,optional:l});const c=u||De;c!==De&&(s+=Fe.BonusCustomRegExp);let d=n?`((?:${c})(?:/(?:${c}))*)`:`(${c})`;t||(d=l&&o.length<2?`(?:/${d})`:"/"+d),l&&(d+="?"),i+=d,s+=Fe.Dynamic,l&&(s+=Fe.BonusOptional),n&&(s+=Fe.BonusRepeatable),".*"===c&&(s+=Fe.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){const e=r.length-1;r[e][r[e].length-1]+=Fe.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function l(e){const t=e.match(s),n={};if(!t)return null;for(let r=1;r<t.length;r++){const e=t[r]||"",i=a[r-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n}function c(t){let n="",r=!1;for(const i of e){r&&n.endsWith("/")||(n+="/"),r=!1;for(const e of i)if(e.type===Pe.Static)n+=e.value;else if(e.type===Pe.Param){const{value:a,repeatable:o,optional:s}=e,l=a in t?t[a]:"";if(u(l)&&!o)throw new Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);const c=u(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${a}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):r=!0)}n+=c}}return n||"/"}return{re:s,score:r,keys:a,parse:l,stringify:c}}function Ue(e,t){let n=0;while(n<e.length&&n<t.length){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?1===e.length&&e[0]===Fe.Static+Fe.Segment?-1:1:e.length>t.length?1===t.length&&t[0]===Fe.Static+Fe.Segment?1:-1:0}function Be(e,t){let n=0;const r=e.score,i=t.score;while(n<r.length&&n<i.length){const e=Ue(r[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-r.length)){if(je(r))return 1;if(je(i))return-1}return i.length-r.length}function je(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const We={strict:!1,end:!0,sensitive:!1};function He(e,t,n){const r=Ve(Le(e.path),n);const i=o(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf===!t.record.aliasOf&&t.children.push(i),i}function qe(e,t){const n=[],r=new Map;function i(e){return r.get(e)}function a(e,n,r){const i=!r,u=ze(e);u.aliasOf=r&&r.record;const h=c(t,e),p=[u];if("alias"in e){const t="string"===typeof e.alias?[e.alias]:e.alias;for(const e of t)p.push(ze(o({},u,{components:r?r.record.components:u.components,path:e,aliasOf:r?r.record:u})))}let f,m;for(const t of p){const{path:o}=t;if(n&&"/"!==o[0]){const e=n.record.path,r="/"===e[e.length-1]?"":"/";t.path=n.record.path+(o&&r+o)}if(f=He(t,n,h),r?r.alias.push(f):(m=m||f,m!==f&&m.alias.push(f),i&&e.name&&!Ke(f)&&s(e.name)),Qe(f)&&d(f),u.children){const e=u.children;for(let t=0;t<e.length;t++)a(e[t],f,r&&r.children[t])}r=r||f}return m?()=>{s(m)}:l}function s(e){if(re(e)){const t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function u(){return n}function d(e){const t=Je(e,n);n.splice(t,0,e),e.record.name&&!Ke(e)&&r.set(e.record.name,e)}function h(e,t){let i,a,s,l={};if("name"in e&&e.name){if(i=r.get(e.name),!i)throw oe(ie.MATCHER_NOT_FOUND,{location:e});0,s=i.record.name,l=o(Ge(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Ge(e.params,i.keys.map((e=>e.name)))),a=i.stringify(l)}else if(null!=e.path)a=e.path,i=n.find((e=>e.re.test(a))),i&&(l=i.parse(a),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw oe(ie.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,l=o({},t.params,e.params),a=i.stringify(l)}const u=[];let c=i;while(c)u.unshift(c.record),c=c.parent;return{name:s,path:a,params:l,matched:u,meta:Xe(u)}}function p(){n.length=0,r.clear()}return t=c(We,t),e.forEach((e=>a(e))),{addRoute:a,resolve:h,removeRoute:s,clearRoutes:p,getRoutes:u,getRecordMatcher:i}}function Ge(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function ze(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ye(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Ye(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]="object"===typeof n?n[r]:n;return t}function Ke(e){while(e){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Xe(e){return e.reduce(((e,t)=>o(e,t.meta)),{})}function Je(e,t){let n=0,r=t.length;while(n!==r){const i=n+r>>1;Be(e,t[i])<0?r=i:n=i+1}const i=Ze(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ze(e){let t=e;while(t=t.parent)if(Qe(t)&&0===Be(e,t))return t}function Qe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function et(e){const t=(0,we.f3)(me),n=(0,we.f3)(ve);const r=(0,we.Fl)((()=>{const n=(0,Se.SU)(e.to);return t.resolve(n)})),i=(0,we.Fl)((()=>{const{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;
3336if(!i||!a.length)return-1;const o=a.findIndex(M.bind(null,i));if(o>-1)return o;const s=ot(e[t-2]);return t>1&&ot(i)===s&&a[a.length-1].path!==s?a.findIndex(M.bind(null,e[t-2])):o})),a=(0,we.Fl)((()=>i.value>-1&&at(n.params,r.value.params))),o=(0,we.Fl)((()=>i.value>-1&&i.value===n.matched.length-1&&V(n.params,r.value.params)));function s(n={}){if(it(n)){const n=t[(0,Se.SU)(e.replace)?"replace":"push"]((0,Se.SU)(e.to)).catch(l);return e.viewTransition&&"undefined"!==typeof document&&"startViewTransition"in document&&document.startViewTransition((()=>n)),n}return Promise.resolve()}return{route:r,href:(0,we.Fl)((()=>r.value.href)),isActive:a,isExactActive:o,navigate:s}}function tt(e){return 1===e.length?e[0]:e}const nt=(0,we.aZ)({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:et,setup(e,{slots:t}){const n=(0,Se.qj)(et(e)),{options:r}=(0,we.f3)(me),i=(0,we.Fl)((()=>({[st(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[st(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const r=t.default&&tt(t.default(n));return e.custom?r:(0,we.h)("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),rt=nt;function it(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function at(e,t){for(const n in t){const r=t[n],i=e[n];if("string"===typeof r){if(r!==i)return!1}else if(!u(i)||i.length!==r.length||r.some(((e,t)=>e.valueOf()!==i[t].valueOf())))return!1}return!0}function ot(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const st=(e,t,n)=>null!=e?e:null!=t?t:n,lt=(0,we.aZ)({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=(0,we.f3)(ge),i=(0,we.Fl)((()=>e.route||r.value)),a=(0,we.f3)(fe,0),s=(0,we.Fl)((()=>{let e=(0,Se.SU)(a);const{matched:t}=i.value;let n;while((n=t[e])&&!n.components)e++;return e})),l=(0,we.Fl)((()=>i.value.matched[s.value]));(0,we.JJ)(fe,(0,we.Fl)((()=>s.value+1))),(0,we.JJ)(pe,l),(0,we.JJ)(ge,i);const u=(0,Se.iH)();return(0,we.YP)((()=>[u.value,l.value,e.name]),(([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&M(t,i)&&r||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const r=i.value,a=e.name,s=l.value,c=s&&s.components[a];if(!c)return ut(n.default,{Component:c,route:r});const d=s.props[a],h=d?!0===d?r.params:"function"===typeof d?d(r):d:null,p=e=>{e.component.isUnmounted&&(s.instances[a]=null)},f=(0,we.h)(c,o({},h,t,{onVnodeUnmounted:p,ref:u}));return ut(n.default,{Component:f,route:r})||f}}});function ut(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const ct=lt;function dt(e){const t=qe(e.routes,e),n=e.parseQuery||ce,i=e.stringifyQuery||de,a=e.history;const c=ye(),d=ye(),h=ye(),p=(0,Se.XI)(W);let f=W;r&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const m=s.bind(null,(e=>""+e)),v=s.bind(null,P),g=s.bind(null,$);function y(e,n){let r,i;return re(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function _(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function b(){return t.getRoutes().map((e=>e.record))}function T(e){return!!t.getRecordMatcher(e)}function w(e,r){if(r=o({},r||p.value),"string"===typeof e){const i=L(n,e,r.path),s=t.resolve({path:i.path},r),l=a.createHref(i.fullPath);return o(i,s,{params:g(s.params),hash:$(i.hash),redirectedFrom:void 0,href:l})}let s;if(null!=e.path)s=o({},e,{path:L(n,e.path,r.path).path});else{const t=o({},e.params);for(const e in t)null==t[e]&&delete t[e];s=o({},e,{params:v(t)}),r.params=v(r.params)}const l=t.resolve(s,r),u=e.hash||"";l.params=m(g(l.params));const c=D(i,o({},e,{hash:E(u),path:l.path})),d=a.createHref(c);return o({fullPath:c,hash:u,query:i===de?he(e.query):e.query||{}},l,{redirectedFrom:void 0,href:d})}function S(e){return"string"===typeof e?L(n,e,p.value.path):o({},e)}function k(e,t){if(f!==e)return oe(ie.NAVIGATION_CANCELLED,{from:t,to:e})}function C(e){return A(e)}function I(e){return C(o(S(e),{replace:!0}))}function x(e,t){const n=e.matched[e.matched.length-1];if(n&&n.redirect){const{redirect:r}=n;let i="function"===typeof r?r(e,t):r;return"string"===typeof i&&(i=i.includes("?")||i.includes("#")?i=S(i):{path:i},i.params={}),o({query:e.query,hash:e.hash,params:null!=i.path?{}:e.params},i)}}function A(e,t){const n=f=w(e),r=p.value,a=e.state,s=e.force,l=!0===e.replace,u=x(n,r);if(u)return A(o(S(u),{state:"object"===typeof u?o({},a,u.state):a,force:s,replace:l}),t||n);const c=n;let d;return c.redirectedFrom=t,!s&&F(i,r,n)&&(d=oe(ie.NAVIGATION_DUPLICATED,{to:c,from:r}),Q(r,r,!0,!1)),(d?Promise.resolve(d):R(c,r)).catch((e=>se(e)?se(e,ie.NAVIGATION_GUARD_REDIRECT)?e:K(e):z(e,c,r))).then((e=>{if(e){if(se(e,ie.NAVIGATION_GUARD_REDIRECT))return A(o({replace:l},S(e.to),{state:"object"===typeof e.to?o({},a,e.to.state):a,force:s}),t||c)}else e=V(c,r,!0,l,a);return M(c,r,e),e}))}function O(e,t){const n=k(e,t);return n?Promise.reject(n):Promise.resolve()}function N(e){const t=le.values().next().value;return t&&"function"===typeof t.runWithContext?t.runWithContext(e):e()}function R(e,t){let n;const[r,i,a]=Te(e,t);n=be(r.reverse(),"beforeRouteLeave",e,t);for(const s of r)s.leaveGuards.forEach((r=>{n.push(_e(r,e,t))}));const o=O.bind(null,e,t);return n.push(o),pe(n).then((()=>{n=[];for(const r of c.list())n.push(_e(r,e,t));return n.push(o),pe(n)})).then((()=>{n=be(i,"beforeRouteUpdate",e,t);for(const r of i)r.updateGuards.forEach((r=>{n.push(_e(r,e,t))}));return n.push(o),pe(n)})).then((()=>{n=[];for(const r of a)if(r.beforeEnter)if(u(r.beforeEnter))for(const i of r.beforeEnter)n.push(_e(i,e,t));else n.push(_e(r.beforeEnter,e,t));return n.push(o),pe(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=be(a,"beforeRouteEnter",e,t,N),n.push(o),pe(n)))).then((()=>{n=[];for(const r of d.list())n.push(_e(r,e,t));return n.push(o),pe(n)})).catch((e=>se(e,ie.NAVIGATION_CANCELLED)?e:Promise.reject(e)))}
3336function M(e,t,n){h.list().forEach((r=>N((()=>r(e,t,n)))))}function V(e,t,n,i,s){const l=k(e,t);if(l)return l;const u=t===W,c=r?history.state:{};n&&(i||u?a.replace(e.fullPath,o({scroll:u&&c&&c.scroll},s)):a.push(e.fullPath,s)),p.value=e,Q(e,t,n,u),K()}let U;function B(){U||(U=a.listen(((e,t,n)=>{if(!ue.listening)return;const i=w(e),s=x(i,ue.currentRoute.value);if(s)return void A(o(s,{replace:!0,force:!0}),i).catch(l);f=i;const u=p.value;r&&ee(Z(u.fullPath,n.delta),X()),R(i,u).catch((e=>se(e,ie.NAVIGATION_ABORTED|ie.NAVIGATION_CANCELLED)?e:se(e,ie.NAVIGATION_GUARD_REDIRECT)?(A(o(S(e.to),{force:!0}),i).then((e=>{se(e,ie.NAVIGATION_ABORTED|ie.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===H.pop&&a.go(-1,!1)})).catch(l),Promise.reject()):(n.delta&&a.go(-n.delta,!1),z(e,i,u)))).then((e=>{e=e||V(i,u,!1),e&&(n.delta&&!se(e,ie.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===H.pop&&se(e,ie.NAVIGATION_ABORTED|ie.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),M(i,u,e)})).catch(l)})))}let j,q=ye(),G=ye();function z(e,t,n){K(e);const r=G.list();return r.length?r.forEach((r=>r(e,t,n))):console.error(e),Promise.reject(e)}function Y(){return j&&p.value!==W?Promise.resolve():new Promise(((e,t)=>{q.add([e,t])}))}function K(e){return j||(j=!e,B(),q.list().forEach((([t,n])=>e?n(e):t())),q.reset()),e}function Q(t,n,i,a){const{scrollBehavior:o}=e;if(!r||!o)return Promise.resolve();const s=!i&&te(Z(t.fullPath,0))||(a||!i)&&history.state&&history.state.scroll||null;return(0,we.Y3)().then((()=>o(t,n,s))).then((e=>e&&J(e))).catch((e=>z(e,t,n)))}const ne=e=>a.go(e);let ae;const le=new Set,ue={currentRoute:p,listening:!0,addRoute:y,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:T,getRoutes:b,resolve:w,options:e,push:C,replace:I,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:c.add,beforeResolve:d.add,afterEach:h.add,onError:G.add,isReady:Y,install(e){e.component("RouterLink",rt),e.component("RouterView",ct),e.config.globalProperties.$router=ue,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>(0,Se.SU)(p)}),r&&!ae&&p.value===W&&(ae=!0,C(a.location).catch((e=>{0})));const t={};for(const r in W)Object.defineProperty(t,r,{get:()=>p.value[r],enumerable:!0});e.provide(me,ue),e.provide(ve,(0,Se.Um)(t)),e.provide(ge,p);const n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(f=W,U&&U(),U=null,p.value=W,ae=!1,j=!1),n()}}};function pe(e){return e.reduce(((e,t)=>e.then((()=>N(t)))),Promise.resolve())}return ue}},3175:function(e,t,n){"use strict";n.d(t,{a:function(){return lr}});var r=n(6252),i=n(2262),a=n(3577),o=n(9963),s
vendor: 12,668 bytes, line 3336
3336={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}
vendor: 13,185 bytes, line 3336
3336|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8}
vendor: 33,463 bytes, line 3336
3336)","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6|7[245]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}
vendor: 23,715 bytes, line 3336
3336(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85[02-46-9]"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[2-689]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function 
3336l(e,t){var n=Array.prototype.slice.call(t);return n.push(s),e.apply(this,n)}var u={}.constructor;function c(e){return void 0!==e&&null!==e&&e.constructor===u}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){var t=v(e,"string");return"symbol"==d(t)?t:t+""}function v(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function g(e,t){return w(e)||T(e,t)||_(e,t)||y()}function y(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _(e,t){if(e){if("string"==typeof e)return b(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function T(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n["return"]&&(o=n["return"](),Object(o)!==o))return}finally{if(u)throw i}}return s}}function w(e){if(Array.isArray(e))return e}function S(e){var t,n,r,i=Array.prototype.slice.call(e),a=g(i,4),o=a[0],s=a[1],l=a[2],u=a[3];if("string"!==typeof o)throw new TypeError("A text for parsing must be a string.");if(t=o,s&&"string"!==typeof s){if(!c(s))throw new Error("Invalid second argument: ".concat(s));l?(n=s,r=l):r=s}else u?(n=l,r=u):(n=void 0,r=l),s&&(n=p({defaultCountry:s},n));return{text:t,options:n,metadata:r}}var k=2,C=17,E=3,I="0-90-9٠-Ù©Û°-Û¹",x="-‐-―−ー-",A="//",P="..",$="  ­â€
3336‹â ã€€",O="()()[]\\[\\]",N="~⁓∼~",L="".concat(x).concat(A).concat(P).concat($).concat(O).concat(N),D="++";function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,V(r.key),r)}}function M(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function V(e){var t=U(e,"string");return"symbol"==R(t)?t:t+""}function U(e,t){if("object"!=R(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=R(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e,t,n){return t=J(t),W(e,Y()?Reflect.construct(t,n||[],J(e).constructor):t.apply(e,n))}function W(e,t){if(t&&("object"==R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}function G(e){var t="function"==typeof Map?new Map:void 0;return G=function(e){if(null===e||!K(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return z(e,arguments,J(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),X(n,e)},G(e)}function z(e,t,n){if(Y())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&X(i,n.prototype),i}function Y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Y=function(){return!!e})()}function K(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function X(e,t){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X(e,t)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var Z=function(e){function t(e){var n;return B(this,t),n=j(this,t,[e]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return q(t,e),M(t)}(G(Error));function Q(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),i=0;i<3;i++){var a=Number(n[i]),o=Number(r[i]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ee=/^\d+$/;function te(e){return ee.test(e)}function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oe(r.key),r)}}function ae(e,t,n){return t&&ie(e.prototype,t),n&&ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oe(e){var t=se(e,"string");return"symbol"==ne(t)?t:t+""}function se(e,t){if("object"!=ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var le="1.2.0",ue="1.7.35",ce=" ext. ",de=function(){function e(t){re(this,e),ge(t),this.metadata=t,Te.call(this,t)}return ae(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter((function(e){return"001"!==e}))}},{key:"getCountryMetadata",value:function(e){return this.metadata.countries[e]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(e){return void 0!==this.getCountryMetadata(e)}},{key:"hasCallingCode",value:function(e){if(this.getCountryCodesForCallingCode(e))return!0;
vendor: 5,105 bytes, line 3336
3336if(this.nonGeographic()){if(this.nonGeographic()[e])return!0}else{var t=this.countryCallingCodes()[e];if(t&&1===t.length&&"001"===t[0])return!0}}},{key:"isNonGeographicCallingCode",value:function(e){return this.nonGeographic()?!!this.nonGeographic()[e]:!this.getCountryCodesForCallingCode(e)}},{key:"country",value:function(e){return this.selectNumberingPlan(e)}},{key:"selectNumberingPlan",value:function(e,t){var n,r;if(e&&(te(e)?r=e:n=e),t&&(r=t),n&&"001"!==n){var i=this.getCountryMetadata(n);if(!i)throw new Error("Unknown country: ".concat(n));this.numberingPlan=new he(i,this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new he(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(e){var t=this.countryCallingCodes()[e];if(t){if(1===t.length&&3===t[0].length)return;return t}}},{key:"getCountryCodeForCallingCode",value:function(e){var t=this.getCountryCodesForCallingCode(e);if(t)return t[0]}},{key:"getNumberingPlanMetadata",value:function(e){var t=this.getCountryCodeForCallingCode(e);if(t)return this.getCountryMetadata(t);if(this.nonGeographic()){var n=this.nonGeographic()[e];if(n)return n}else{var r=this.countryCallingCodes()[e];if(r&&1===r.length&&"001"===r[0])return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(e){return this.numberingPlan.type(e)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(e){return this.selectNumberingPlan(e)}},{key:"hasSelectedNumberingPlan",value:function(){return void 0!==this.numberingPlan}}])}(),he=function(){function e(t,n){re(this,e),this.globalMetadataObject=n,this.metadata=t,Te.call(this,n.metadata)}return ae(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!this.v1&&!this.v2)return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(e){return e[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var e=this,t=this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[];return t.map((function(t){return new pe(t,e)}))}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(e){return e[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return(!this.types()||0!==this.types().length)&&!!this.types()}}
vendor: 1,345 bytes, line 3336
3336,{key:"type",value:function(e){if(this.hasTypes()&&ve(this.types(),e))return new me(ve(this.types(),e),this)}},{key:"ext",value:function(){return this.v1||this.v2?ce:this.metadata[13]||ce}}])}(),pe=function(){function e(t,n){re(this,e),this._format=t,this.metadata=n}return ae(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!(!this.nationalPrefixFormattingRule()||fe.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])}(),fe=/^\(?\$1\)?$/,me=function(){function e(t,n){re(this,e),this.type=t,this.metadata=n}return ae(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.t
vendor: 7,222 bytes, line 3336
3336ype[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])}();function ve(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function ge(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!c(e)||!c(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(c(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+ye(e)+": "+e,"."))}var ye=function(e){return ne(e)};function _e(e,t){var n=new de(t);if(n.hasCountry(e))return n.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function be(e,t){return t.countries.hasOwnProperty(e)}function Te(e){var t=e.version;"number"===typeof t?(this.v1=1===t,this.v2=2===t,this.v3=3===t,this.v4=4===t):t?-1===Q(t,le)?this.v2=!0:-1===Q(t,ue)?this.v3=!0:this.v4=!0:this.v1=!0}var we=";ext=",Se=function(e){return"([".concat(I,"]{1,").concat(e,"})")};function ke(e){var t="20",n="15",r="9",i="6",a="[  \\t,]*",o="[:\\..]?[  \\t,-]*",s="#?",l="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",u="(?:[xx##~~]|int|int)",c="[- ]+",d="[  \\t]*",h="(?:,{2}|;)",p=we+Se(t),f=a+l+o+Se(t)+s,m=a+u+o+Se(r)+s,v=c+Se(i)+"#",g=d+h+o+Se(n)+s,y=d+"(?:,)+"+o+Se(r)+s;return p+"|"+f+"|"+m+"|"+v+"|"+g+"|"+y}var Ce="["+I+"]{"+k+"}",Ee="["+D+"]{0,1}(?:["+L+"]*["+I+"]){3,}["+L+I+"]*",Ie=new RegExp("^["+D+"]{0,1}(?:["+L+"]*["+I+"]){1,2}$","i"),xe=Ee+"(?:"+ke()+")?",Ae=new RegExp("^"+Ce+"$|^"+xe+"$","i");function Pe(e){return e.length>=k&&Ae.test(e)}function $e(e){return Ie.test(e)}var Oe=new RegExp("(?:"+ke()+")$","i");function Ne(e){var t=e.search(Oe);if(t<0)return{};var n=e.slice(0,t),r=e.match(Oe),i=1;while(i<r.length){if(r[i])return{number:n,ext:r[i]};i++}}var Le={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function De(e){return Le[e]}function Re(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Fe(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Fe(e,t){if(e){if("string"==typeof e)return Me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Ve(e){for(var t,n="",r=Re(e.split(""));!(t=r()).done;){var i=t.value;n+=Ue(i,n)||""}return n}function Ue(e,t,n){return"+"===e?t?void("function"===typeof n&&n("end")):"+":De(e)}function Be(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=je(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function je(e,t){if(e){if("string"==typeof e)return We(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function He(e,t){for(var n,r=e.slice(),i=Be(t);!(n=i()).done;){var a=n.value;e.indexOf(a)<0&&r.push(a)}return r.sort((function(e,t){return e-t}))}function qe(e,t,n){return Ge(e,void 0,t,n)}function Ge(e,t,n,r){n&&(r=new de(r.metadata),r.selectNumberingPlan(n));var i=r.type(t),a=i&&i.possibleLengths()||r.possibleLengths();if(!a)return"IS_POSSIBLE";if("FIXED_LINE_OR_MOBILE"===t){if(!r.type("FIXED_LINE"))return Ge(e,"MOBILE",n,r);var o=r.type("MOBILE");o&&(a=He(a,o.possibleLengths()))}else if(t&&!i)return"INVALID_LENGTH";var s=e.length,l=a[0];return l===s?"IS_POSSIBLE":l>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function ze(e,t,n){void 0===t&&(t={});var r=new de(n);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");r.selectNumberingPlan(e.countryCallingCode)}}if(r.possibleLengths())return Ye(e.phone||e.nationalNumber,r);if(e.countryCallingCode&&r.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Ye(e,t){switch(qe(e,void 0,t)){case"IS_POSSIBLE":return!0;default:return!1}}function Ke(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Xe(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Je(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Je(e,t){if(e){if("string"==typeof e)return Ze(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ze(e,t):void 0}}function Ze(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Qe=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function et(e,t,n){if(t=t||{},e.country||e.countryCallingCode){var r=new de(n);r.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(Ke(i,r.nationalNumberPattern())){if(tt(i,"FIXED_LINE",r))return r.type("MOBILE")&&""===r.type("MOBILE").pattern()?"FIXED_LINE_OR_MOBILE":r.type("MOBILE")?tt(i,"MOBILE",r)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE":"FIXED_LINE_OR_MOBILE";
3336for(var a,o=Xe(Qe);!(a=o()).done;){var s=a.value;if(tt(i,s,r))return s}}}}function tt(e,t,n){var r=n.type(t);return!(!r||!r.pattern())&&(!(r.possibleLengths()&&r.possibleLengths().indexOf(e.length)<0)&&Ke(e,r.pattern()))}function nt(e,t,n){t=t||{};var r=new de(n);if(r.selectNumberingPlan(e.country||e.countryCallingCode),r.hasTypes())return void 0!==et(e,t,r.metadata);var i=t.v2?e.nationalNumber:e.phone;return Ke(i,r.nationalNumberPattern())}var rt=/^[A-Z]{2}$/;function it(e){return rt.test(e)}var at=!1;function ot(e,t){var n,r,i=new de(t);return it(e)?(n=e,i.selectNumberingPlan(n),r=i.countryCallingCode()):(r=e,at&&i.isNonGeographicCallingCode(r)&&(n="001")),{country:n,callingCode:r}}function st(e,t,n){var r=new de(n),i=r.getCountryCodesForCallingCode(e);return i?i.filter((function(e){return lt(t,e,n)})):[]}function lt(e,t,n){var r=new de(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}var ut=new RegExp("(["+I+"])");function ct(e,t,n,r){if(t){var i=new de(r);i.selectNumberingPlan(t||n);var a=new RegExp(i.IDDPrefix());if(0===e.search(a)){e=e.slice(e.match(a)[0].length);var o=e.match(ut);if(!(o&&null!=o[1]&&o[1].length>0&&"0"===o[1]))return e}}}function dt(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var i,a,o,s=r.length-1,l=s>0&&r[s];if(t.nationalPrefixTransformRule()&&l)i=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(a=r[1]);else{var u=r[0];i=e.slice(u.length),l&&(a=r[1])}if(l){var c=e.indexOf(r[1]),d=e.slice(0,c);d===t.numberingPlan.nationalPrefix()&&(o=t.numberingPlan.nationalPrefix())}else o=r[0];return{nationalNumber:i,nationalPrefix:o,carrierCode:a}}}return{nationalNumber:e}}function ht(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=pt(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pt(e,t){if(e){if("string"==typeof e)return ft(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ft(e,t):void 0}}function ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mt(e,t,n){for(var r,i=new de(n),a=ht(t);!(r=a()).done;){var o=r.value;if(i.selectNumberingPlan(o),i.leadingDigits()){if(e&&0===e.search(i.leadingDigits()))return o}else if(et({phone:e,country:o},void 0,i.metadata))return o}}var vt=!1;function gt(e,t){var n=t.nationalNumber,r=t.metadata;if(vt&&r.isNonGeographicCallingCode(e))return"001";var i=r.getCountryCodesForCallingCode(e);return i?1===i.length?i[0]:mt(n,i,r.metadata):void 0}function yt(e,t,n){var r=dt(e,n),i=r.carrierCode,a=r.nationalNumber;if(a!==e){if(!_t(e,a,n))return{nationalNumber:e};if(n.numberingPlan.possibleLengths()&&(t||(t=gt(n.numberingPlan.callingCode(),{nationalNumber:a,metadata:n})),!bt(a,t,n)))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:i}}function _t(e,t,n){return!(Ke(e,n.nationalNumberPattern())&&!Ke(t,n.nationalNumberPattern()))}function bt(e,t,n){switch(qe(e,t,n)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Tt(e,t,n,r,i){if(!(t||n||r))return{number:e};var a=t||n?_e(t||n,i):r;if(0===e.indexOf(a)){var o=new de(i);o.selectNumberingPlan(t||n||r);var s=e.slice(a.length),l=yt(s,void 0,o),u=l.nationalNumber,c=yt(e,void 0,o),d=c.nationalNumber;if(!Ke(d,o.nationalNumberPattern())&&Ke(u,o.nationalNumberPattern())||"TOO_LONG"===qe(d,void 0,o))return{countryCallingCode:a,number:s}}return{number:e}}function wt(e,t,n,r,i){if(!e)return{};var a;if("+"!==e[0]){var o=ct(e,t||n,r,i);if(!o||o===e){if(t||n||r){var s=Tt(e,t,n,r,i),l=s.countryCallingCode,u=s.number;if(l)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:l,number:u}}return{number:e}}a=!0,e="+"+o}if("0"===e[1])return{};var c=new de(i),d=2;while(d-1<=E&&d<=e.length){var h=e.slice(1,d);if(c.hasCallingCode(h))return c.selectNumberingPlan(h),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:h,number:e.slice(d)};d++}return{}}function St(e){return e.replace(new RegExp("[".concat(L,"]+"),"g")," ").trim()}var kt=/(\$\d)/;function Ct(e,t,n){var r=n.useInternationalFormat,i=n.withNationalPrefix,a=(n.carrierCode,n.metadata,e.replace(new RegExp(t.pattern()),r?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(kt,t.nationalPrefixFormattingRule()):t.format()));return r?St(a):a}var Et=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function It(e,t,n){var r=new de(n);return r.selectNumberingPlan(e||t),r.defaultIDDPrefix()?r.defaultIDDPrefix():Et.test(r.IDDPrefix())?r.IDDPrefix():void 0}function xt(e){var t=e.number,n=e.ext;if(!t)return"";if("+"!==t[0])throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}var At={formatExtension:function(e,t,n){return"".concat(e).concat(n.ext()).concat(t)}};function Pt(e,t,n,r){n=n?Dt({},At,n):At;var i=new de(r);if(e.country&&"001"!==e.country){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)return e.phone||"";i.selectNumberingPlan(e.countryCallingCode)}var a,o=i.countryCallingCode(),s=n.v2?e.nationalNumber:e.phone;switch(t){case"NATIONAL":return s?(a=$t(s,e.carrierCode,"NATIONAL",i,n),Nt(a,e.ext,i,n.formatExtension)):"";case"INTERNATIONAL":return s?(a=$t(s,null,"INTERNATIONAL",i,n),a="+".concat(o," ").concat(a),Nt(a,e.ext,i,n.formatExtension)):"+".concat(o);case"E.164":return"+".concat(o).concat(s);case"RFC3966":return xt({number:"+".concat(o).concat(s),ext:e.ext});case"IDD":if(!n.fromCountry)return;var l=Lt(s,e.carrierCode,o,n.fromCountry,i);if(!l)return;return Nt(l,e.ext,i,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function $t(e,t,n,r,i){var a=Ot(r.formats(),e);return a?Ct(e,a,{useInternationalFormat:"INTERNATIONAL"===n,withNationalPrefix:!a.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!i||!1!==i.nationalPrefix,carrierCode:t,metadata:r}):e}function Ot(e,t){return Rt(e,(function(e){if(e.leadingDigitsPatterns().length>0){var n=e.leadingDigitsPatterns()[e.leadingDigitsPatterns().length-1];if(0!==t.search(n))return!1}return Ke(t,e.pattern())}))}function Nt(e,t,n,r){return t?r(e,t,n):e}function Lt(e,t,n,r,i){var a=_e(r,i.metadata);if(a===n){var o=$t(e,t,"NATIONAL",i);return"1"===n?n+" "+o:o}var s=It(r,void 0,i.metadata);if(s)return"".concat(s," ").concat(n," ").concat($t(e,null,"INTERNATIONAL",i))}function Dt(){for(var e=1,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];while(e<n.length){if(n[e])for(var i in n[e])n[0][i]=n[e][i];e++}return n[0]}function Rt(e,t){var n=0;while(n<e.length){if(t(e[n]))return e[n];n++}}function Ft(e){return Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(e)}function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
3336t%2?Mt(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ut(e,t,n){return(t=Ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ht(r.key),r)}}function Wt(e,t,n){return t&&jt(e.prototype,t),n&&jt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ht(e){var t=qt(e,"string");return"symbol"==Ft(t)?t:t+""}function qt(e,t){if("object"!=Ft(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ft(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var Gt=function(){function e(t,n,r){if(Bt(this,e),!t)throw new TypeError("First argument is required");if("string"!==typeof t)throw new TypeError("First argument must be a string");if("+"===t[0]&&!n)throw new TypeError("`metadata` argument not passed");if(c(n)&&c(n.countries)){r=n;var i=t;if(!zt.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var a=wt(i,void 0,void 0,void 0,r),o=a.countryCallingCode,s=a.number;if(n=s,t=o,!n)throw new Error("Invalid `number` argument passed: too short")}if(!n)throw new TypeError("`nationalNumber` argument is required");if("string"!==typeof n)throw new TypeError("`nationalNumber` argument must be a string");ge(r);var l=ot(t,r),u=l.country,d=l.callingCode;this.country=u,this.countryCallingCode=d,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Wt(e,[{key:"setExt",value:function(e){this.ext=e}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:st(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return ze(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return nt(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var e=new de(this.getMetadata());return e.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(e){return this.number===e.number&&this.ext===e.ext}},{key:"getType",value:function(){return et(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(e,t){return Pt(this,e,t?Vt(Vt({},t),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(e){return this.format("NATIONAL",e)}},{key:"formatInternational",value:function(e){return this.format("INTERNATIONAL",e)}},{key:"getURI",value:function(e){return this.format("RFC3966",e)}}])}(),zt=/^\+\d+$/,Yt="+",Kt="[\\-\\.\\(\\)]?",Xt="(["+I+"]|"+Kt+")",Jt="^\\"+Yt+Xt+"*["+I+"]"+Xt+"*$",Zt=new RegExp(Jt,"g"),Qt=I,en="["+Qt+"]+((\\-)*["+Qt+"])*",tn="a-zA-Z",nn="["+tn+"]+((\\-)*["+Qt+"])*",rn="^("+en+"\\.)*"+nn+"\\.?$",an=new RegExp(rn,"g"),on="tel:",sn=";phone-context=",ln=";isub=";function un(e){var t=e.indexOf(sn);if(t<0)return null;var n=t+sn.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function cn(e){return null===e||0!==e.length&&(Zt.test(e)||an.test(e))}function dn(e,t){var n,r=t.extractFormattedPhoneNumber,i=un(e);if(!cn(i))throw new Z("NOT_A_NUMBER");if(null===i)n=r(e)||"";else{n="",i.charAt(0)===Yt&&(n+=i);var a,o=e.indexOf(on);a=o>=0?o+on.length:0;var s=e.indexOf(sn);n+=e.substring(a,s)}var l=n.indexOf(ln);if(l>0&&(n=n.substring(0,l)),""!==n)return n}var hn=250,pn=new RegExp("["+D+I+"]"),fn=new RegExp("[^"+I+"#]+$"),mn=!1;
3336function vn(e,t,n){t=t||{};var r=new de(n);if(t.defaultCountry&&!r.hasCountry(t.defaultCountry)){if(t.v2)throw new Z("INVALID_COUNTRY");throw new Error("Unknown country: ".concat(t.defaultCountry))}var i=yn(e,t.v2,t.extract),a=i.number,o=i.ext,s=i.error;if(!a){if(t.v2){if("TOO_SHORT"===s)throw new Z("TOO_SHORT");throw new Z("NOT_A_NUMBER")}return{}}var l=bn(a,t.defaultCountry,t.defaultCallingCode,r),u=l.country,c=l.nationalNumber,d=l.countryCallingCode,h=l.countryCallingCodeSource,p=l.carrierCode;if(!r.hasSelectedNumberingPlan()){if(t.v2)throw new Z("INVALID_COUNTRY");return{}}if(!c||c.length<k){if(t.v2)throw new Z("TOO_SHORT");return{}}if(c.length>C){if(t.v2)throw new Z("TOO_LONG");return{}}if(t.v2){var f=new Gt(d,c,r.metadata);return u&&(f.country=u),p&&(f.carrierCode=p),o&&(f.ext=o),f.__countryCallingCodeSource=h,f}var m=!!(t.extended?r.hasSelectedNumberingPlan():u)&&Ke(c,r.nationalNumberPattern());return t.extended?{country:u,countryCallingCode:d,carrierCode:p,valid:m,possible:!!m||!(!0!==t.extended||!r.possibleLengths()||!Ye(c,r)),phone:c,ext:o}:m?_n(u,c,o):{}}function gn(e,t,n){if(e)if(e.length>hn){if(n)throw new Z("TOO_LONG")}else{if(!1===t)return e;var r=e.search(pn);if(!(r<0))return e.slice(r).replace(fn,"")}}function yn(e,t,n){var r=dn(e,{extractFormattedPhoneNumber:function(e){return gn(e,n,t)}});if(!r)return{};if(!Pe(r))return $e(r)?{error:"TOO_SHORT"}:{};var i=Ne(r);return i.ext?i:{number:r}}function _n(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function bn(e,t,n,r){var i,a=wt(Ve(e),void 0,t,n,r.metadata),o=a.countryCallingCodeSource,s=a.countryCallingCode,l=a.number;if(s)r.selectNumberingPlan(s);else{if(!l||!t&&!n)return{};t?(i=t,r.selectNumberingPlan(t),s=r.numberingPlan.callingCode()):(r.selectNumberingPlan(n),s=n,mn&&r.isNonGeographicCallingCode(s)&&(i="001"))}if(!l)return{countryCallingCodeSource:o,countryCallingCode:s};var u=yt(Ve(l),void 0,r),c=u.nationalNumber,d=u.carrierCode,h=gt(s,{nationalNumber:c,metadata:r});return h&&(i=h,"001"===h||r.selectNumberingPlan(i)),{country:i,countryCallingCode:s,countryCallingCodeSource:o,nationalNumber:c,carrierCode:d}}function Tn(e){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tn(e)}function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e,t,n){return(t=Cn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cn(e){var t=En(e,"string");return"symbol"==Tn(t)?t:t+""}function En(e,t){if("object"!=Tn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Tn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function In(e,t,n){return vn(e,Sn(Sn({},t),{},{v2:!0}),n)}function xn(e){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(e)}function An(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?An(Object(n),!0).forEach((function(t){$n(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):An(Object(n)).forEac
vendor: 4,183 bytes, line 3336
3336h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $n(e,t,n){return(t=On(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function On(e){var t=Nn(e,"string");return"symbol"==xn(t)?t:t+""}function Nn(e,t){if("object"!=xn(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Ln(e,t,n){t&&t.defaultCountry&&!be(t.defaultCountry,n)&&(t=Pn(Pn({},t),{},{defaultCountry:void 0}));try{return In(e,t,n)}catch(r){if(!(r instanceof Z))throw r}}function Dn(){var e=S(arguments),t=e.text,n=e.options,r=e.metadata;return Ln(t,n,r)}function Rn(){return l(Dn,arguments)}const Fn=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (République démocratique du Congo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["G
3336ibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["S
3336omalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],Mn=Fn.map((([e,t,n,r=0,i=null])=>({name:e,iso2:t.toUpperCase(),dialCode:n,priority:r,areaCodes:i})));function Vn(){return fetch("https://ip2c.org/s").then((e=>e.text())).then((e=>{const t=(e||"").toString();if(!t||"1"!==t[0])throw new Error("unable to fetch the country");return t.substr(2,2)}))}function Un(e,t){if(e.setSelectionRange)e.focus(),e.setSelectionRange(t,t);else if("createTextRange"in e&&"function"==typeof e.createTextRange){const n=e.createTextRange();n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select()}}const Bn=[{name:"allCountries",type:Array,default:Mn,description:"All countries that are used in <code>libphonenumber-js</code>, can be overridden by this prop",inDemo:!1},{name:"autoFormat",type:Boolean,default:!0,description:"Auto update the input to the formatted phone number when it's valid",inDemo:!0},{name:"customValidate",type:[Boolean,RegExp],default:!1,description:"Custom validation RegExp for input",inDemo:!1},{name:"defaultCountry",default:"",type:[String,Number],description:"Default country (by iso2 or dialCode), will override the country fetched from IP address of user",inDemo:!1},{name:"disabled",default:!1,type:Boolean,description:"Disable <code>vue-tel-input</code>, including the input & flag dropdown",inDemo:!1},{name:"autoDefaultCountry",default:!0,type:Boolean,description:"To fetch default country based on IP address of user",inDemo:!1},{name:"dropdownOptions",type:Object,description:"Options for dropdown, see below",inDemo:!1},{name:"dropdownOptions.ariaLabel",default:"Country Code Selector",type:String,description:"Aria label for the country code selector dropdown",inDemo:!1},{name:"dropdownOptions.disabled",default:!1,type:Boolean,description:"Disable dropdown",inDemo:!1},{name:"dropdownOptions.showDialCodeInList",default:!0,type:Boolean,description:"Show dial code in the dropdown list",inDemo:!0},{name:"dropdownOptions.showDialCodeInSelection",default:!1,type:Boolean,description:"Show dial code in the dropdown selection",inDemo:!0},{name:"dropdownOptions.showFlags",default:!0,type:Boolean,description:"Show flags in the dropdown selection and list",inDemo:!0},{name:"dropdownOptions.showSearchBox",default:!1,type:Boolean,description:"Show country search box",inDemo:!0},{name:"dropdownOptions.searchBoxPlaceholder",default:"",type:String,description:"Placeholder for the search box",inDemo:!1},{name:"dropdownOptions.tabindex",default:0,type:Number,description:"Native dropdown <code>tabindex</code> attribute",inDemo:!1},{name:"ignoredCountries",default:[],type:Array,description:"List of countries will NOT be shown on the dropdown",inDemo:!1},{name:"inputOptions",type:Object,description:"Options for input, see below",inDemo:!1},{name:"inputOptions.autocomplete",type:String,default:"on",description:"Native input <code>autocomplete</code> attribute",inDemo:!1},{name:"inputOptions.autofocus",type:Boolean,default:!1,description:"Native input <code>autofocus</code> attribute",inDemo:!1},{name:"inputOptions.aria-describedby",default:"",type:String,description:"Native input <code>aria-describedby</code> attribute",inDemo:!1},{name:"inputOptions.id",default:"",type:String,description:"Native input <code>id</code> attribute",inDemo:!1},{name:"inputOptions.inputmode",default:void 0,type:String,description:"Native input <code>inputmode</code> attribute",inDemo:!1},{name:"inputOptions.maxlength",default:25,type:Number,description:"Native input <code>maxlength</code> attribute",inDemo:!1}
3336,{name:"inputOptions.name",default:"telephone",type:String,description:"Native input <code>name</code> attribute",inDemo:!1},{name:"inputOptions.showDialCode",default:!1,type:Boolean,description:"Show dial code in input",inDemo:!1},{name:"inputOptions.placeholder",default:"Enter a phone number",type:String,description:"Placeholder for the input",inDemo:!1},{name:"inputOptions.readonly",default:!1,type:Boolean,description:"Native input <code>readonly</code> attribute",inDemo:!1},{name:"inputOptions.required",default:!1,type:Boolean,description:"Native input <code>required</code> attribute",inDemo:!1},{name:"inputOptions.tabindex",default:0,type:Number,description:"Native input <code>tabindex</code> attribute",inDemo:!1},{name:"inputOptions.type",default:"tel",type:String,description:"Native input <code>type</code> attribute",inDemo:!1},{name:"inputOptions.styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the <code>input</code>",inDemo:!1},{name:"invalidMsg",default:"",type:String,description:"",inDemo:!1},{name:"mode",default:"auto",type:String,description:"Allowed values: <code>'auto'</code> (Default set by phone),  <code>'international'</code> (Format number with the dial code i.e. + 61), <code>'national'</code> (Format number without dial code i.e. 0321232)",inDemo:!0,options:["auto","national","international"]},{name:"onlyCountries",default:[],type:Array,description:"List of countries will be shown on the dropdown",inDemo:!1},{name:"preferredCountries",default:[],type:Array,description:"Preferred countries list, will be on top of the dropdown",inDemo:!1},{name:"styleClasses",default:"",type:[String,Array,Object],description:"Custom classes for the wrapper",inDemo:!1},{name:"validCharactersOnly",default:!1,type:Boolean,description:"Only allow valid characters in a phone number (will also verify in <code>mounted</code>, so phone number with invalid characters will be shown as an empty string)",inDemo:!1},{name:"strictValidation",default:!1,type:Boolean,description:"Use strict phone number validation with full metadata (libphonenumber-js/max). When false (default), uses minimal metadata for smaller bundle size. When true, validates phone number patterns more precisely but increases bundle size by ~145KB.",inDemo:!1}],jn=[...Bn].reduce(((e,t)=>{if(t.name.includes(".")){const[n,r]=t.name.split(".");e[n]?Object.assign(e[n],{[r]:t.default}):Object.assign(e,{[n]:{[r]:t.default}})}else Object.assign(e,{[t.name]:t.default});return e}),{}),Wn={options:{...jn}};function Hn(e){const t=Wn.options[e];return typeof t>"u"?Wn.options[e]:t}function qn(e){return null==e?void 0:e.toLowerCase()}function Gn(e){return null==e?void 0:e.toUpperCase()}let zn=null,Yn=null;async function Kn(){return zn||Yn||(Yn=n.e(884).then(n.bind(n,7884)).then((e=>(zn=e.parsePhoneNumberFromString,zn))),Yn)}function Xn(e,t,n=!1){return n&&zn?t?zn(e,t):zn(e):t?Rn(e,t):Rn(e)}function Jn(){return null!==zn}const Zn={beforeMount(e,t,n){if("function"!=typeof t.value){const e=n.context.name;let r=`[Vue-click-outside:] provided expression ${t.expression} is not a function, but has to be`;e&&(r+=`Found in component ${e}`),console.warn(r)}e.clickOutsideEvent=function(n){const r=n.composedPath?n.composedPath():n.path;e===n.target||e.contains(n.target)||r.includes(e)||t.value(n,e)},document.body.addEventListener("click",e.clickOutsideEvent)},unmounted(e){document.body.removeEventListener("click",e.clickOutsideEvent)}},Qn=["aria-label","aria-expanded","tabindex"],er={class:"vti__selection"},tr={key:1,class:"vti__country-code"},nr={class:"vti__dropdown-arrow"},rr={key:0,class:"vti__search_box_container"},ir=["placeholder"],ar=["onClick","onMousemove","aria-selected"],or={key:1},sr=["type","autocomplete","autofocus","inputmode","disabled","id","maxlength","name","placeholder","readonly","required","tabindex","value","aria-describedby"],lr=(0,r.aZ)({name:"VueTelInput",directives:{clickOutside:Zn},__name:"vue-tel-input",props:(0,r.Vf)({allCountries:{type:Array,default:()=>Hn("allCountries")},autoFormat:{type:Boolean,default:()=>Hn("autoFormat")},customValidate:{type:[Boolean,RegExp],default:()=>Hn("customValidate")},defaultCountry:{type:[String,Number],default:()=>Hn("defaultCountry")},disabled:{type:Boolean,default:()=>Hn("disabled")},autoDefaultCountry:{type:Boolean,default:()=>Hn("autoDefaultCountry")},dropdownOptions:{type:Object,default:()=>Hn("dropdownOptions")},ignoredCountries:{type:Array,default:()=>Hn("ignoredCountries")},inputOptions:{type:Object,default:()=>Hn("inputOptions")},invalidMsg:{type:String,default:()=>Hn("invalidMsg")},mode:{type:String,default:()=>Hn("mode")},onlyCountries:{type:Array,default:()=>Hn("onlyCountries")},preferredCountries:{type:Array,default:()=>Hn("preferredCountries")}
3336,validCharactersOnly:{type:Boolean,default:()=>Hn("validCharactersOnly")},styleClasses:{type:[String,Array,Object],default:()=>Hn("styleClasses")},strictValidation:{type:Boolean,default:()=>Hn("strictValidation")}},{modelValue:{type:String},modelModifiers:{}}),emits:(0,r.Vf)(["blur","close","country-changed","enter","focus","on-input","open","space","validate"],["update:modelValue"]),setup(e,{expose:t,emit:n}){const s=(0,i.XI)(),l=(0,i.XI)(),u=(0,i.XI)(),c=n,d=e,h=(0,i.iH)(Jn()),p=(0,r.tT)(e,"modelValue");(0,r.YP)(p,((e,t)=>{x()?f.phone=e??"":(0,r.Y3)((()=>{f.phone=t??"",P()}))}));const f=(0,i.qj)({phone:"",activeCountryCode:void 0,open:!1,finishMounted:!1,selectedIndex:null,typeToFindInput:"",typeToFindTimer:void 0,dropdownOpenDirection:"below",parsedPlaceholder:d.inputOptions.placeholder,searchQuery:""});(0,r.YP)((()=>f.open),(e=>{e?(j(),c("open")):c("close")}));const m=(0,r.Fl)((()=>d.onlyCountries.length?d.allCountries.filter((({iso2:e})=>d.onlyCountries.some((t=>Gn(t)===e)))):d.ignoredCountries.length?d.allCountries.filter((({iso2:e})=>!d.ignoredCountries.includes(Gn(e))&&!d.ignoredCountries.includes(qn(e)))):d.allCountries)),v=(0,r.Fl)((()=>S(f.activeCountryCode)));(0,r.YP)(v,((e,t)=>{e||null==t||!t.iso2?null!=e&&e.iso2&&c("country-changed",e):f.activeCountryCode=t.iso2}));const g=(0,r.Fl)((()=>{var e;const t=qn(d.mode);return"auto"===t?null!=(e=f.phone)&&e.startsWith("+")?"international":"national":["national","international","e.164","rfc3966","idd"].includes(t)?t:(console.error('Invalid value of prop "mode"'),"international")})),y=(0,r.Fl)((()=>{const e=[...w(d.preferredCountries).map((e=>({...e,preferred:!0}))),...m.value];if(!d.dropdownOptions.showSearchBox)return e;const t=f.searchQuery.toLowerCase().replace(/[~`!@#$%^&*()+={}\[\];:\'\"<>.,\/\\\?-_]/g,"");return e.filter((e=>new RegExp(t,"i").test(e.name)||new RegExp(t,"i").test(e.iso2)||new RegExp(t,"i").test(e.dialCode)))})),_=(0,r.Fl)((()=>{var e;h.value;const t=f.phone.startsWith("+")?Xn(f.phone,void 0,d.strictValidation):Xn(f.phone,f.activeCountryCode,d.strictValidation),n={country:null==t?void 0:t.country,countryCode:null==t?void 0:t.country,formatted:f.phone,valid:null==t?void 0:t.isValid(),possible:null==(e=null==t?void 0:t.isPossible)?void 0:e.call(t),nationalNumber:null==t?void 0:t.nationalNumber};return n.valid&&(n.formatted=null==t?void 0:t.format(Gn(g.value))),null!=t&&t.country&&(d.ignoredCountries.length||d.onlyCountries.length)&&!S(t.country)&&(n.valid=!1,n.possible=!1,t.country=null),t?{...n,...t}:n}));function b(){f.parsedPlaceholder=d.inputOptions.placeholder}function T(){return new Promise((e=>{var t;if("+"===(null==(t=f.phone)?void 0:t[0]))return void e();if(d.defaultCountry){if("string"==typeof d.defaultCountry)return E(d.defaultCountry),void e();if("number"==typeof d.defaultCountry){const t=k(d.defaultCountry);if(t)return E(t.iso2),void e()}}const n=d.preferredCountries[0]||m.value[0];d.autoDefaultCountry?Vn().then((e=>{E(e||f.activeCountryCode)})).catch((e=>{console.warn(e),E(n)})).then((()=>{e()})):(E(n),e())}))}function w(e=[]){return e.map(S).filter(Boolean)}function S(e=""){return m.value.find((t=>t.iso2===Gn(e)))}function k(e){return m.value.find((t=>Number(t.dialCode)===e))}function C(e,t){const n=f.selectedIndex===e,r=e===d.preferredCountries.length-1,i=d.preferredCountries.some((e=>Gn(e)===t));return{highlighted:n,"last-preferred":r,preferred:i}}function E(e){var t,n,r;let i=e;if("string"==typeof i&&(i=S(i)),i){if("+"===(null==(t=f.phone)?void 0:t[0])&&i.iso2&&_.value.nationalNumber)return f.activeCountryCode=i.iso2,void(f.phone=(null==(n=Rn(_.value.nationalNumber,i.iso2))?void 0:n.formatInternational())??"");if(null!=(r=d.inputOptions)&&r.showDialCode&&i)return f.phone=`+${i.dialCode}`,void(f.activeCountryCode=i.iso2);f.activeCountryCode=i.iso2,$(f.phone)}}function I(){const e=f.phone;if(d.validCharactersOnly){const e=f.phone.match(/[()\-+0-9\s]*/g);f.phone=e.join("")}if(d.customValidate&&d.customValidate instanceof RegExp){const e=f.phone.match(d.customValidate);f.phone=e.join("")}e!==f.phone&&$(f.phone)}function x(){return!(d.validCharactersOnly&&!/^[()\-+0-9\s]*$/.test(f.phone))&&(!d.customValidate||A())}function A(){return d.customValidate instanceof RegExp&&d.customValidate.test(f.phone)}function P(){var e;null==(e=u.value)||e.setCustomValidity(_.value.valid?"":d.invalidMsg),$(f.phone)}function $(e){p.value=e,c("on-input",e,_.value,u.value)}function O(e){c("blur",e)}function N(e){Un(u.value,f.phone.length),c("focus",e)}function L(e){c("enter",e)}function D(e){c("space",e)}function R(){var e;null==(e=u.value)||e.focus()}function F(){var e;null==(e=u.value)||e.blur()}function M(){d.disabled||d.dropdownOptions.disabled||(f.searchQuery="",f.open=!f.open)}function V(){f.open=!1}function U(e){if(40===e.keyCode){e.preventDefault(),f.open=!0,null===f.selectedIndex?f.selectedIndex=0:f.selectedIndex=Math.min(y.value.length-1,f.selectedIndex+1);const t=l.value.children[f.selectedIndex];t.focus(),t.offsetTop+t.clientHeight>l.value.scrollTop+l.value.clientHeight&&(l.value.scrollTop=t.offsetTop-l.value.clientHeight+t.clientHeight)}else if(38===e.keyCode){e.preventDefault(),f.open=!0,null===f.selectedIndex?f.selectedIndex=y.value.length-1:f.selectedIndex=Math.max(0,f.selectedIndex-1);const t=l.value.children[f.selectedIndex];t.focus(),t.offsetTop<l.value.scrollTop&&(l.value.scrollTop=t.offsetTop)}else if(13===e.keyCode)null!==f.selectedIndex&&E(y.value[f.selectedIndex]),f.open=!f.open;else if(f.open){f.typeToFindInput+=e.key,clearTimeout(f.typeToFindTimer),f.typeToFindTimer=setTimeout((()=>{f.typeToFindInput=""}),700);const t=y.value.slice(d.preferredCountries.length).findIndex((e=>qn(e.name).startsWith(f.typeToFindInput)));if(t>=0){f.selectedIndex=d.preferredCountries.length+t;const e=l.value.children[f.selectedIndex],n=e.offsetTop<l.value.scrollTop,r
3336=e.offsetTop+e.clientHeight>l.value.scrollTop+l.value.clientHeight;(n||r)&&(l.value.scrollTop=e.offsetTop-l.value.clientHeight/2)}}}function B(){f.selectedIndex=y.value.map((e=>e.iso2)).indexOf(f.activeCountryCode),f.open=!1}function j(){window.innerHeight-s.value.getBoundingClientRect().bottom>200?f.dropdownOpenDirection="below":f.dropdownOpenDirection="above"}return(0,r.YP)((()=>_.value.countryCode),(e=>{e&&(f.activeCountryCode=e)})),(0,r.YP)((()=>_.value.valid),(()=>{c("validate",_.value)})),(0,r.YP)((()=>_.value.formatted),(e=>{!d.autoFormat||d.customValidate||($(e),(0,r.Y3)((()=>{e&&!p.value&&(f.phone=e)})))})),(0,r.YP)((()=>d.inputOptions.placeholder),b),(0,r.bv)((()=>{d.strictValidation&&!Jn()&&Kn().then((()=>{h.value=!0,c("validate",_.value)})),p.value&&(f.phone=p.value.trim()),I(),T().then((()=>{var e;!f.phone&&null!=(e=d.inputOptions)&&e.showDialCode&&f.activeCountryCode&&(f.phone=`+${f.activeCountryCode}`),c("validate",_.value)})).catch(console.error).then((()=>{f.finishMounted=!0}))})),t({focus:R,blur:F}),(t,n)=>{const c=(0,r.Q2)("click-outside");return(0,r.wg)(),(0,r.iD)("div",{ref_key:"refRoot",ref:s,class:(0,a.C_)(["vue-tel-input",e.styleClasses,{disabled:e.disabled}])},[(0,r.wy)(((0,r.wg)(),(0,r.iD)("div",{"aria-label":e.dropdownOptions.ariaLabel,"aria-haspopup":"listbox","aria-expanded":f.open,role:"button",class:(0,a.C_)(["vti__dropdown",{open:f.open,disabled:e.dropdownOptions.disabled}]),tabindex:e.dropdownOptions.tabindex,onKeydown:[U,(0,o.D2)(M,["space"]),(0,o.D2)(B,["esc"]),(0,o.D2)(B,["tab"])],onClick:M},[(0,r._)("span",er,[e.dropdownOptions.showFlags?((0,r.wg)(),(0,r.iD)("span",{key:0,class:(0,a.C_)(["vti__flag",(0,i.SU)(qn)(f.activeCountryCode)])},null,2)):(0,r.kq)("",!0),e.dropdownOptions.showDialCodeInSelection?((0,r.wg)(),(0,r.iD)("span",tr," +"+(0,a.zw)(v.value&&v.value.dialCode),1)):(0,r.kq)("",!0),(0,r.WI)(t.$slots,"arrow-icon",{open:f.open},(()=>[(0,r._)("span",nr,(0,a.zw)(f.open?"▲":"▼"),1)]))]),f.open?((0,r.wg)(),(0,r.iD)("ul",{key:0,ref_key:"refList",ref:l,class:(0,a.C_)(["vti__dropdown-list",f.dropdownOpenDirection]),role:"listbox"},[e.dropdownOptions.showSearchBox?((0,r.wg)(),(0,r.iD)("div",rr,[(0,r.WI)(t.$slots,"search-icon"),(0,r.wy)((0,r._)("input",{class:(0,a.C_)(["vti__input","vti__search_box"]),"aria-label":"Search by country name or country code",placeholder:e.dropdownOptions.searchBoxPlaceholder||(y.value.length?y.value[0].name:""),type:"text","onUpdate:modelValue":n[0]||(n[0]=e=>f.searchQuery=e),onClick:n[1]||(n[1]=(0,o.iM)((()=>{}),["stop"]))},null,8,ir),[[o.nr,f.searchQuery]])])):(0,r.kq)("",!0),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(y.value,((t,n)=>((0,r.wg)(),(0,r.iD)("li",{role:"option",class:(0,a.C_)(["vti__dropdown-item",C(n,t.iso2)]),key:t.iso2+(t.preferred?"-preferred":""),tabindex:"-1",onClick:e=>E(t),onMousemove:e=>f.selectedIndex=n,"aria-selected":f.activeCountryCode===t.iso2&&!t.preferred},[e.dropdownOptions.showFlags?((0,r.wg)(),(0,r.iD)("span",{key:0,class:(0,a.C_)(["vti__flag",(0,i.SU)(qn)(t.iso2)])},null,2)):(0,r.kq)("",!0),(0,r._)("strong",null,(0,a.zw)(t.name),1),e.dropdownOptions.showDialCodeInList?((0,r.wg)(),(0,r.iD)("span",or," +"+(0,a.zw)(t.dialCode),1)):(0,r.kq)("",!0)],42,ar)))),128))],2)):(0,r.kq)("",!0)],42,Qn)),[[c,V]]),(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":n[2]||(n[2]=e=>f.phone=e),ref_key:"refInput",ref:u,type:e.inputOptions.type,autocomplete:e.inputOptions.autocomplete,autofocus:e.inputOptions.autofocus,inputmode:e.inputOptions.inputmode,class:(0,a.C_)(["vti__input","vti__phone",e.inputOptions.styleClasses]),disabled:e.disabled,id:e.inputOptions.id,maxlength:e.inputOptions.maxlength,name:e.inputOptions.name,placeholder:f.parsedPlaceholder,readonly:e.inputOptions.readonly,required:e.inputOptions.required,tabindex:e.inputOptions.tabindex,value:p.value,"aria-describedby":e.inputOptions["aria-describedby"],onBlur:O,onFocus:N,onInput:P,onKeyup:[(0,o.D2)(L,["enter"]),(0,o.D2)(D,["space"])]},null,42,sr),[[o.YZ,f.phone]]),(0,r.WI)(t.$slots,"icon-right")],2)}}})},4838:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=Symbol.for("vuetify:v-menu")},4573:function(e,t,n){"use strict";n.d(t,{y:function(){return _e},B:function(){return ye}});var r=n(6252),i=n(9963),a=n(4539),o=n(2262);function s(e,t){return{x:e.x+t.x,y:e.y+t.y}}function l(e,t){return{x:e.x-t.x,y:e.y-t.y}}function u(e,t){if("top"===e.side||"bottom"===e.side){const{side:n,align:r}=e,i="left"===r?0:"center"===r?t.width/2:"right"===r?t.width:r,a="top"===n?0:"bottom"===n?t.height:n;return s({x:i,y:a},t)}if("left"===e.side||"right"===e.side){const{side:n,align:r}=e,i="left"===n?0:"right"===n?t.width:n,a="top"===r?0:"center"===r?t.height/2:"bottom"===r?t.height:r;return s({x:i,y:a},t)}return s({x:t.width/2,y:t.height/2},t)}var c=n(6393),d=n(6293),h=n(4592);function p(e){while(e){if("fixed"===window.getComputedStyle(e).position)return!0;e=e.offsetParent}return!1}var f=n(320),m=n(8138),v=n(1115),g=n(9816),y=n(4245),_=n(3498);const b={static:S,connected:C},T=(0,c.U)({locationStrategy:{type:[String,Function],default:"static",validator:e=>"function"===typeof e||e in b},location:{type:String,default:"bottom"},origin:{type:String,default:"auto"},offset:[Number,String,Array],stickToTarget:Boolean,viewportMargin:{type:[Number,String],default:12}},"VOverlay-location-strategies");function w(e,t){const n=(0,o.iH)({}),i=(0,o.iH)();function s(e){i.value?.(e)}function l(e){i.value?.(e)}function u(e){i.value?.(e)}return d.BR&&(0,a.U)((()=>!(!t.isActive.value||!e.locationStrategy)),(a=>{(0,r.YP)((()=>e.locationStrategy),a),(0,o.EB)((()=>
3336{window.removeEventListener("resize",s),visualViewport?.removeEventListener("resize",l),visualViewport?.removeEventListener("scroll",u),i.value=void 0})),window.addEventListener("resize",s,{passive:!0}),visualViewport?.addEventListener("resize",l,{passive:!0}),visualViewport?.addEventListener("scroll",u,{passive:!0}),"function"===typeof e.locationStrategy?i.value=e.locationStrategy(t,e,n)?.updateLocation:i.value=b[e.locationStrategy](t,e,n)?.updateLocation})),{contentStyles:n,updateLocation:i}}function S(){}function k(e,t){const n=(0,h.G)(e);return t?n.x+=parseFloat(e.style.right||0):n.x-=parseFloat(e.style.left||0),n.y-=parseFloat(e.style.top||0),n}function C(e,t,n){const i=Array.isArray(e.target.value)||p(e.target.value);i&&Object.assign(n.value,{position:"fixed",top:0,[e.isRtl.value?"right":"left"]:0});const{preferredAnchor:a,preferredOrigin:s}=(0,f.S3)((()=>{const n=(0,m.wW)(t.location,e.isRtl.value),r="overlap"===t.origin?n:"auto"===t.origin?(0,m.tb)(n):(0,m.wW)(t.origin,e.isRtl.value);return n.side===r.side&&n.align===(0,m.aw)(r).align?{preferredAnchor:(0,m.Oe)(n),preferredOrigin:(0,m.Oe)(r)}:{preferredAnchor:n,preferredOrigin:r}})),[c,d,h,b]=["minWidth","minHeight","maxWidth","maxHeight"].map((e=>(0,r.Fl)((()=>{const n=parseFloat(t[e]);return isNaN(n)?1/0:n})))),T=(0,r.Fl)((()=>{if(Array.isArray(t.offset))return t.offset;if("string"===typeof t.offset){const e=t.offset.split(" ").map(parseFloat);return e.length<2&&e.push(0),e}return"number"===typeof t.offset?[t.offset,0]:[0,0]}));let w=!1,S=-1;const C=new f.PU(4),x=new ResizeObserver((()=>{if(!w)return;if(requestAnimationFrame((e=>{e!==S&&C.clear(),requestAnimationFrame((e=>{S=e}))})),C.isFull){const e=C.values();if((0,v.v)(e.at(-1),e.at(-3))&&!(0,v.v)(e.at(-1),e.at(-2)))return}const e=P();e&&C.push(e.flipped)}));let A=new _.xu({x:0,y:0,width:0,height:0});function P(){if(w=!1,requestAnimationFrame((()=>w=!0)),!e.target.value||!e.contentEl.value)return;(Array.isArray(e.target.value)||e.target.value.offsetParent||e.target.value.getClientRects().length)&&(A=(0,_.Jc)(e.target.value));const r=k(e.contentEl.value,e.isRtl.value),i=(0,g.HA)(e.contentEl.value),o=Number(t.viewportMargin);i.length||(i.push(document.documentElement),e.contentEl.value.style.top&&e.contentEl.value.style.left||(r.x-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-x")||0),r.y-=parseFloat(document.documentElement.style.getPropertyValue("--v-body-scroll-y")||0)));const p=i.reduce(((e,t)=>{const n=(0,_.YQ)(t);return e?new _.xu({x:Math.max(e.left,n.left),y:Math.max(e.top,n.top),width:Math.min(e.right,n.right)-Math.max(e.left,n.left),height:Math.min(e.bottom,n.bottom)-Math.max(e.top,n.top)}):n}),void 0);t.stickToTarget?(p.x+=Math.min(o,A.x),p.y+=Math.min(o,A.y),p.width=Math.max(p.width-2*o,A.x+A.width-o),p.height=Math.max(p.height-2*o,A.y+A.height-o)):(p.x+=o,p.y+=o,p.width-=2*o,p.height-=2*o);let v={anchor:a.value,origin:s.value};function S(e){const t=new _.xu(r),n=u(e.anchor,A),i=u(e.origin,t);let{x:a,y:o}=l(n,i);switch(e.anchor.side){case"top":o-=T.value[0];break;case"bottom":o+=T.value[0];break;case"left":a-=T.value[0];break;case"right":a+=T.value[0];break}switch(e.anchor.align){case"top":o-=T.value[1];break;case"bottom":o+=T.value[1];break;case"left":a-=T.value[1];break;case"right":a+=T.value[1];break}t.x+=a,t.y+=o,t.width=Math.min(t.width,h.value),t.height=Math.min(t.height,b.value);const s=(0,_.p2)(t,p);return{overflows:s,x:a,y:o}}let C=0,x=0;const P={x:0,y:0},$={x:!1,y:!1};let O=-1;while(1){if(O++>10){(0,y.N6)("Infinite loop detected in connectedLocationStrategy");break}const{x:e,y:t,overflows:n}=S(v);C+=e,x+=t,r.x+=e,r.y+=t;{const e=(0,m.dd)(v.anchor),t=n.x.before||n.x.after,r=n.y.before||n.y.after;let i=!1;if(["x","y"].forEach((a=>{if("x"===a&&t&&!$.x||"y"===a&&r&&!$.y){const t={anchor:{...v.anchor},origin:{...v.origin}},r="x"===a?"y"===e?m.aw:m.tb:"y"===e?m.tb:m.aw;t.anchor=r(t.anchor),t.origin=r(t.origin);const{overflows:o}=S(t);(o[a].before<=n[a].before&&o[a].after<=n[a].after||o[a].before+o[a].after<(n[a].before+n[a].after)/2)&&(v=t,i=$[a]=!0)}})),i)continue}n.x.before&&(C+=n.x.before,r.x+=n.x.before),n.x.after&&(C-=n.x.after,r.x-=n.x.after),n.y.before&&(x+=n.y.before,r.y+=n.y.before),n.y.after&&(x-=n.y.after,r.y-=n.y.after);{const e=(0,_.p2)(r,p);P.x=p.width-e.x.before-e.x.after,P.y=p.height-e.y.before-e.y.after,C+=e.x.before,r.x+=e.x.before,x+=e.
3336y.before,r.y+=e.y.before}break}const N=(0,m.dd)(v.anchor);return Object.assign(n.value,{"--v-overlay-anchor-origin":`${v.anchor.side} ${v.anchor.align}`,transformOrigin:`${v.origin.side} ${v.origin.align}`,top:(0,f.kb)(E(x)),left:e.isRtl.value?void 0:(0,f.kb)(E(C)),right:e.isRtl.value?(0,f.kb)(E(-C)):void 0,minWidth:(0,f.kb)("y"===N?Math.min(c.value,A.width):c.value),maxWidth:(0,f.kb)(I((0,f.uZ)(P.x,c.value===1/0?0:c.value,h.value))),maxHeight:(0,f.kb)(I((0,f.uZ)(P.y,d.value===1/0?0:d.value,b.value)))}),{available:P,contentBox:r,flipped:$}}return(0,r.YP)(e.target,((e,t)=>{t&&!Array.isArray(t)&&x.unobserve(t),Array.isArray(e)?(0,v.v)(e,t)||P():e&&x.observe(e)}),{immediate:!0}),(0,r.YP)(e.contentEl,((e,t)=>{t&&x.unobserve(t),e&&x.observe(e)}),{immediate:!0}),(0,o.EB)((()=>{x.disconnect()})),(0,r.YP)((()=>[a.value,s.value,t.offset,t.minWidth,t.minHeight,t.maxWidth,t.maxHeight]),(()=>P())),(0,r.Y3)((()=>{const e=P();if(!e)return;const{available:t,contentBox:n}=e;n.height>t.y&&requestAnimationFrame((()=>{P(),requestAnimationFrame((()=>{P()}))}))})),{updateLocation:P}}function E(e){return Math.round(e*devicePixelRatio)/devicePixelRatio}function I(e){return Math.ceil(e*devicePixelRatio)/devicePixelRatio}let x=!0;const A=[];function P(e){!x||A.length?(A.push(e),O()):(x=!1,e(),O())}let $=-1;function O(){cancelAnimationFrame($),$=requestAnimationFrame((()=>{const e=A.shift();e&&e(),A.length?O():x=!0}))}const N={none:null,close:R,block:F,reposition:M},L=(0,c.U)({scrollStrategy:{type:[String,Function],default:"block",validator:e=>"function"===typeof e||e in N}},"VOverlay-scroll-strategies");function D(e,t){if(!d.BR)return;let n;(0,r.m0)((async()=>{n?.stop(),t.isActive.value&&e.scrollStrategy&&(n=(0,o.B)(),await new Promise((e=>setTimeout(e))),n.active&&n.run((()=>{"function"===typeof e.scrollStrategy?e.scrollStrategy(t,e,n):N[e.scrollStrategy]?.(t,e,n)})))})),(0,o.EB)((()=>{n?.stop()}))}function R(e){function t(t){e.isActive.value=!1}U(V(e.target.value,e.contentEl.value),t)}function F(e,t){const n=e.root.value?.offsetParent,r=V(e.target.value,e.contentEl.value),i=[...new Set([...(0,g.HA)(r,t.contained?n:void 0),...(0,g.HA)(e.contentEl.value,t.contained?n:void 0)])].filter((e=>!e.classList.contains("v-overlay-scroll-blocked"))),a=window.innerWidth-document.documentElement.offsetWidth,s=(e=>(0,g.QA)(e)&&e)(n||document.documentElement);s&&e.root.value.classList.add("v-overlay--scroll-blocked"),i.forEach(((e,t)=>{e.style.setProperty("--v-body-scroll-x",(0,f.kb)(-e.scrollLeft)),e.style.setProperty("--v-body-scroll-y",(0,f.kb)(-e.scrollTop)),e!==document.documentElement&&e.style.setProperty("--v-scrollbar-offset",(0,f.kb)(a)),e.classList.add("v-overlay-scroll-blocked")})),(0,o.EB)((()=>{i.forEach(((e,t)=>{const n=parseFloat(e.style.getPropertyValue("--v-body-scroll-x")),r=parseFloat(e.style.getPropertyValue("--v-body-scroll-y")),i=e.style.scrollBehavior;e.style.scrollBehavior="auto",e.style.removeProperty("--v-body-scroll-x"),e.style.removeProperty("--v-body-scroll-y"),e.style.removeProperty("--v-scrollbar-offset"),e.classList.remove("v-overlay-scroll-blocked"),e.scrollLeft=-n,e.scrollTop=-r,e.style.scrollBehavior=i})),s&&e.root.value.classList.remove("v-overlay--scroll-blocked")}))}function M(e,t,n){let r=!1,i=-1,a=-1;function s(t){P((()=>{const n=performance.now();e.updateLocation.value?.(t);const i=performance.now()-n;r=i/(1e3/60)>2}))}a=("undefined"===typeof requestIdleCallback?e=>e():requestIdleCallback)((()=>{n.run((()=>{U(V(e.target.value,e.contentEl.value),(e=>{r?(cancelAnimationFrame(i),i=requestAnimationFrame((()=>{i=requestAnimationFrame((()=>{s(e)}))}))):s(e)}))}))})),(0,o.EB)((()=>{"undefined"!==typeof cancelIdleCallback&&cancelIdleCallback(a),cancelAnimationFrame(i)}))}function V(e,t){return Array.isArray(e)?document.elementsFromPoint(...e).find((e=>!t?.contains(e))):e??t}function U(e,t){const n=[document,...(0,g.HA)(e)];n.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),(0,o.EB)((()=>{n.forEach((e=>{e.removeEventListener("scroll",t)}))}))}var B=n(4838),j=n(1259),W=n(8383);const H=new WeakMap;function q(e,t){Object.keys(t).forEach((n=>{if((0,f.F7)(n)){const r=(0,f.oJ)(n),i=H.get(e);if(null==t[n])i?.forEach((t=>{const[n,a]=t;n===r&&(e.removeEventListener(r,a),i.delete(t))}));else if(!i||![...i]?.some((e=>e[0]===r&&e[1]===t[n]))){e.addEventListener(r,t[n]);const a=i||new Set;a.add([r,t[n]]),H.has(e)||H.set(e,a)}}else null==t[n]?e.removeAttribute(n):e.setAttribute(n,t[n])}))}function G(e,t){Object.keys(t).forEach((t=>{if((0,f.F7)(t)){const n=(0,f.oJ)(t),r=H.get(e);r?.forEach((t=>{const[i,a]=t;i===n&&(e.removeEventListener(n,a),r.delete(t))}))}else e.removeAttribute(t)}))}const z=(0,c.U)({target:[String,Object],activator:[String,Object],activatorProps:{type:Object,default:()=>({})},openOnClick:{type:Boolean,default:void 0},openOnHover:Boolean,openOnFocus:{type:Boolean,default:void 0},closeOnContentClick:Boolean,...(0,j.h)()},"VOverlay-activator");function Y(e,t){let{isActive:n,isTop:i,contentEl:a}=t;const s=(0,W.F)("useActivator"),l=(0,o.iH)();
3336let u=!1,c=!1,h=!0;const p=(0,r.Fl)((()=>e.openOnFocus||null==e.openOnFocus&&e.openOnHover)),m=(0,r.Fl)((()=>e.openOnClick||null==e.openOnClick&&!e.openOnHover&&!p.value)),{runOpenDelay:v,runCloseDelay:g}=(0,j.g)(e,(t=>{t!==(e.openOnHover&&u||p.value&&c)||e.openOnHover&&n.value&&!i.value||(n.value!==t&&(h=!0),n.value=t)})),y=(0,o.iH)(),_={onClick:e=>{e.stopPropagation(),l.value=e.currentTarget||e.target,n.value||(y.value=[e.clientX,e.clientY]),n.value=!n.value},onMouseenter:e=>{u=!0,l.value=e.currentTarget||e.target,v()},onMouseleave:e=>{u=!1,g()},onFocus:e=>{!1!==(0,f.Ku)(e.target,":focus-visible")&&(c=!0,e.stopPropagation(),l.value=e.currentTarget||e.target,v())},onBlur:e=>{c=!1,e.stopPropagation(),g({minDelay:1})}},b=(0,r.Fl)((()=>{const t={};return m.value&&(t.onClick=_.onClick),e.openOnHover&&(t.onMouseenter=_.onMouseenter,t.onMouseleave=_.onMouseleave),p.value&&(t.onFocus=_.onFocus,t.onBlur=_.onBlur),t})),T=(0,r.Fl)((()=>{const t={};if(e.openOnHover&&(t.onMouseenter=()=>{u=!0,v()},t.onMouseleave=()=>{u=!1,g()}),p.value&&(t.onFocusin=e=>{e.target.matches(":focus-visible")&&(c=!0,v())},t.onFocusout=()=>{c=!1,g({minDelay:1})}),e.closeOnContentClick){const e=(0,r.f3)(B.N,null);t.onClick=()=>{n.value=!1,e?.closeParents()}}return t})),w=(0,r.Fl)((()=>{const t={};return e.openOnHover&&(t.onMouseenter=()=>{h&&(u=!0,h=!1,v())},t.onMouseleave=()=>{u=!1,g()}),t}));(0,r.YP)(i,(t=>{!t||(!e.openOnHover||u||p.value&&c)&&(!p.value||c||e.openOnHover&&u)||a.value?.contains(document.activeElement)||g()})),(0,r.YP)(n,(e=>{e||setTimeout((()=>{y.value=void 0}))}),{flush:"post"});const S=(0,f.CV)();(0,r.m0)((()=>{S.value&&(0,r.Y3)((()=>{l.value=S.el}))}));const k=(0,f.CV)(),C=(0,r.Fl)((()=>"cursor"===e.target&&y.value?y.value:k.value?k.el:X(e.target,s)||l.value)),E=(0,r.Fl)((()=>Array.isArray(C.value)?void 0:C.value));let I;return(0,r.YP)((()=>!!e.activator),(t=>{t&&d.BR?(I=(0,o.B)(),I.run((()=>{K(e,s,{activatorEl:l,activatorEvents:b})}))):I&&I.stop()}),{flush:"post",immediate:!0}),(0,o.EB)((()=>{I?.stop()})),{activatorEl:l,activatorRef:S,target:C,targetEl:E,targetRef:k,activatorEvents:b,contentEvents:T,scrimEvents:w}}function K(e,t,n){let{activatorEl:i,activatorEvents:a}=n;function s(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activatorProps;t&&q(t,(0,r.dG)(a.value,n))}function l(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.activatorProps;t&&G(t,(0,r.dG)(a.value,n))}function u(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.activator;const r=X(n,t);return i.value=r?.nodeType===Node.ELEMENT_NODE?r:void 0,i.value}(0,r.YP)((()=>e.activator),((e,t)=>{if(t&&e!==t){const e=u(t);e&&l(e)}e&&(0,r.Y3)((()=>s()))}),{immediate:!0}),(0,r.YP)((()=>e.activatorProps),(()=>{s()})),(0,o.EB)((()=>{l()}))}function X(e,t){if(!e)return;let n;if("parent"===e){let e=t?.proxy?.$el?.parentNode;while(e?.hasAttribute("data-no-activator"))e=e.parentNode;n=e}else n="string"===typeof e?document.querySelector(e):"$el"in e?e.$el:e;return n}var J=n(9617),Z=n(990),Q=n(4101),ee=n(7),te=n(3337),ne=n(4220),re=n(8705),ie=n(9420),ae=n(814),oe=n(4288);const se=Symbol.for("vuetify:stack"),le=(0,o.qj)([]);function ue(e,t,n){const i=(0,W.F)("useStack"),s=!n,l=(0,r.f3)(se,void 0),u=(0,o.qj)({activeChildren:new Set});(0,r.JJ)(se,u);const c=(0,o.XI)(Number((0,o.Tn)(t)));(0,a.U)(e,(()=>{const e=le.at(-1)?.[1];c.value=e?e+10:Number((0,o.Tn)(t)),s&&le.push([i.uid,c.value]),l?.activeChildren.add(i.uid),(0,o.EB)((()=>
3336{if(s){const e=(0,o.IU)(le).findIndex((e=>e[0]===i.uid));le.splice(e,1)}l?.activeChildren.delete(i.uid)}))}));const d=(0,o.XI)(!0);s&&(0,r.m0)((()=>{const e=le.at(-1)?.[0]===i.uid;setTimeout((()=>d.value=e))}));const h=(0,o.Vh)((()=>!u.activeChildren.size));return{globalTop:(0,o.OT)(d),localTop:h,stackStyles:(0,o.Vh)((()=>({zIndex:c.value})))}}function ce(e){const t=(0,r.Fl)((()=>{const t=e();if(!0===t||!d.BR)return;const n=!1===t?document.body:"string"===typeof t?document.querySelector(t):t;if(null==n)return void(0,r.ZK)(`Unable to locate target ${t}`);let i=[...n.children].find((e=>e.matches(".v-overlay-container")));return i||(i=document.createElement("div"),i.className="v-overlay-container",n.appendChild(i)),i}));return{teleportTarget:t}}var de=n(4999),he=n(8918),pe=n(4758),fe=n(2290),me=n(2739),ve=n(1213);function ge(e){const{modelValue:t,color:n,...a}=e;return(0,r.Wm)(i.uT,{name:"fade-transition",appear:!0},{default:()=>[e.modelValue&&(0,r._)("div",(0,r.dG)({class:["v-overlay__scrim",e.color.backgroundColorClasses.value],style:e.color.backgroundColorStyles.value},a),null)]})}const ye=(0,c.U)({absolute:Boolean,attach:[Boolean,String,Object],closeOnBack:{type:Boolean,default:!0},contained:Boolean,contentClass:null,contentProps:null,disabled:Boolean,opacity:[Number,String],noClickAnimation:Boolean,modelValue:Boolean,persistent:Boolean,scrim:{type:[Boolean,String],default:!0},zIndex:{type:[Number,String],default:2e3},...z(),...(0,Z.l)(),...(0,Q.x)(),...(0,ne.H)(),...T(),...L(),...(0,ee.N)(),...(0,de.x$)(),...(0,he.X)()},"VOverlay"),_e=(0,fe.ev)()({name:"VOverlay",directives:{vClickOutside:pe.Z},inheritAttrs:!1,props:{_disableGlobalStack:Boolean,...(0,f.CE)(ye(),["disableInitialFocus"])},emits:{"click:outside":e=>!0,"update:modelValue":e=>!0,keydown:e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{slots:n,attrs:s,emit:l}=t;const u=(0,W.F)("VOverlay"),c=(0,o.iH)(),p=(0,o.iH)(),m=(0,o.iH)(),v=(0,ie.z)(e,"modelValue"),y=(0,r.Fl)({get:()=>v.value,set:t=>{t&&e.disabled||(v.value=t)}}),{themeClasses:_}=(0,de.ER)(e),{rtlClasses:b,isRtl:T}=(0,re.Vw)(),{hasContent:S,onAfterLeave:k}=(0,ne.l)(e,y),C=(0,J.Y5)((()=>"string"===typeof e.scrim?e.scrim:null)),{globalTop:E,localTop:I,stackStyles:x}=ue(y,(()=>e.zIndex),e._disableGlobalStack),{activatorEl:A,activatorRef:P,target:$,targetEl:O,targetRef:N,activatorEvents:L,contentEvents:R,scrimEvents:F}=Y(e,{isActive:y,isTop:I,contentEl:m}),{teleportTarget:M}=ce((()=>{const t=e.attach||e.contained;if(t)return t;const n=A?.value?.getRootNode()||u.proxy?.$el?.getRootNode();return n instanceof ShadowRoot&&n})),{dimensionStyles:V}=(0,Q.$)(e),U=(0,te.x)(),{scopeId:B}=(0,oe.a)();(0,r.YP)((()=>e.disabled),(e=>{e&&(y.value=!1)}));const{contentStyles:j,updateLocation:H}=w(e,{isRtl:T,contentEl:m,target:$,isActive:y});function q(t){l("click:outside",t),e.persistent?se():y.value=!1}function G(t){return y.value&&I.value&&(!e.scrim||t.target===p.value||t instanceof MouseEvent&&t.shadowTarget===p.value)}function z(t){"Escape"===t.key&&E.value&&(m.value?.contains(document.activeElement)||l("keydown",t),e.persistent?se():(y.value=!1,m.value?.contains(document.activeElement)&&A.value?.focus()))}function K(e){("Escape"!==e.key||E.value)&&l("keydown",e)}D(e,{root:c,contentEl:m,targetEl:O,target:$,isActive:y,updateLocation:H}),(0,ee.P)(e,{isActive:y,localTop:I,contentEl:m,activatorEl:A}),d.BR&&(0,r.YP)(y,(e=>{e?window.addEventListener("keydown",z):window.removeEventListener("keydown",z)}),{immediate:!0}),(0,r.Jd)((()=>{d.BR&&window.removeEventListener("keydown",z)}));const X=(0,ae.tv)();(0,a.U)((()=>e.closeOnBack),(()=>{(0,ae.Kx)(X,(()=>{if(E.value&&y.value)return e.persistent?se():y.value=!1,!1}))}));const Z=(0,o.iH)();function se(){e.noClickAnimation||m.value&&(0,h.j)(m.value,[{transformOrigin:"center"},{transform:"scale(1.03)"},{transformOrigin:"center"}],{duration:150,easing:me.Ly})}function le(){l("afterEnter")}function fe(){k(),l("afterLeave")}return(0,r.YP)((()=>y.value&&(e.absolute||e.contained)&&null==M.value),(e=>{if(e){const e=(0,g.rP)(c.value);e&&e!==document.scrollingElement&&(Z.value=e.scrollTop)}})),(0,ve.L)((()=>
3336(0,r._)(r.HY,null,[n.activator?.({isActive:y.value,targetRef:N,props:(0,r.dG)({ref:P},L.value,e.activatorProps)}),U.value&&S.value&&(0,r.Wm)(r.lR,{disabled:!M.value,to:M.value},{default:()=>[(0,r._)("div",(0,r.dG)({class:["v-overlay",{"v-overlay--absolute":e.absolute||e.contained,"v-overlay--active":y.value,"v-overlay--contained":e.contained},_.value,b.value,e.class],style:[x.value,{"--v-overlay-opacity":e.opacity,top:(0,f.kb)(Z.value)},e.style],ref:c,onKeydown:K},B,s),[(0,r.Wm)(ge,(0,r.dG)({color:C,modelValue:y.value&&!!e.scrim,ref:p},F.value),null),(0,r.Wm)(he.J,{appear:!0,persisted:!0,transition:e.transition,target:$.value,onAfterEnter:le,onAfterLeave:fe},{default:()=>[(0,r.wy)((0,r._)("div",(0,r.dG)({ref:m,class:["v-overlay__content",e.contentClass],style:[V.value,j.value]},R.value,e.contentProps),[n.default?.({isActive:y})]),[[i.F8,y.value],[pe.Z,{handler:q,closeConditional:G,include:()=>[A.value]}]])]})])]})]))),{activatorEl:A,scrimEl:p,target:$,animateClick:se,contentEl:m,rootEl:c,globalTop:E,localTop:I,updateLocation:H}}})},9866:function(e,t,n){"use strict";n.d(t,{N:function(){return f}});var r=n(6252),i=n(4573),a=n(5584),o=n(9420),s=n(4288),l=n(2262),u=n(6393),c=n(320),d=n(2290),h=n(1213);const p=(0,u.U)({id:String,interactive:Boolean,text:String,...(0,c.CE)((0,i.B)({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","retainFocus","captureFocus","disableInitialFocus"])},"VTooltip"),f=(0,d.ev)()({name:"VTooltip",props:p(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const u=(0,o.z)(e,"modelValue"),{scopeId:c}=(0,s.a)(),d=(0,r.Me)(),p=(0,l.Vh)((()=>e.id||`v-tooltip-${d}`)),f=(0,l.iH)(),m=(0,r.Fl)((()=>e.location.split(" ").length>1?e.location:e.location+" center")),v=(0,r.Fl)((()=>"auto"===e.origin||"overlap"===e.origin||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center")),g=(0,l.Vh)((()=>null!=e.transition?e.transition:u.value?"scale-transition":"fade-transition")),y=(0,r.Fl)((()=>(0,r.dG)({"aria-describedby":p.value},e.activatorProps)));return(0,h.L)((()=>{const t=i.y.filterProps(e);return(0,r.Wm)(i.y,(0,r.dG)({ref:f,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:p.value},t,{modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,transition:g.value,absolute:!0,location:m.value,origin:v.value,role:"tooltip",activatorProps:y.value,_disableGlobalStack:!0},c),{activator:n.activator,default:function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.default?.(...r)??e.text}})})),(0,a.F)({},f)}})},1875:function(e,t,n){"use strict";n.r(t),n.d(t,{VAlert:function(){return Vt},VAlertTitle:function(){return Lt},VApp:function(){return I},VAppBar:function(){return Fe},VAppBarNavIcon:function(){return $t},VAppBarTitle:function(){return Ot},VAutocomplete:function(){return Ti},VAvatar:function(){return Bt},VBadge:function(){return Si},VBanner:function(){return xi},VBannerActions:function(){return Ci},VBannerText:function(){return Ei},VBottomNavigation:function(){return Pi},VBottomSheet:function(){return Li},VBreadcrumbs:function(){return Ui},VBreadcrumbsDivider:function(){return Ri},VBreadcrumbsItem:function(){return Mi},VBtn:function(){return At},VBtnGroup:function(){return Ke},VBtnToggle:function(){return ot},VCalendar:function(){return Ho},VCard:function(){return ts},VCardActions:function(){return Go},VCardItem:function(){return Jo},VCardSubtitle:function(){return Yo},VCardText:function(){return Qo},VCardTitle:function(){return Ko},VCarousel:function(){return ls},VCarouselItem:function(){return ps},VCheckbox:function(){return ms},VCheckboxBtn:function(){return Zt},VChip:function(){return vn},VChipGroup:function(){return fn},VClassIcon:function(){return st.$0},VCode:function(){return vs},VCol:function(){return td},VColorPicker:function(){return Tl},VCombobox:function(){return Sl},VComponentIcon:function(){return st.$e},VConfirmEdit:function(){return Cl},VContainer:function(){return zc},VCounter:function(){return Sr},VDataIterator:function(){return pu},VDataTable:function(){return Zu},VDataTableFooter:function(){return yu},VDataTableHeaders:function(){return Fu},VDataTableRow:function(){return Bu},VDataTableRows:function(){return Wu},VDataTableServer:function(){return rc},VDataTableVirtual:function(){return tc},VDatePicker:function(){return _c},VDatePickerControls:function(){return oc},VDatePickerHeader:function(){return lc},VDatePickerMonth:function(){return pc},VDatePickerMonths:function(){return mc},VDatePickerYears:function(){return gc},VDefaultsProvider:function(){return le},VDialog:function(){return Oi},VDialogBottomTransition:function(){return q},VDialogTopTransition:function(){return G},VDialogTransition:function(){return B},VDivider:function(){return _n},VEmptyState:function(){return Tc},VExpandBothTransition:function(){return ae},VExpandTransition:function(){return re},VExpandXTransition:function(){return ie},VExpansionPanel:function(){return xc},VExpansionPanelText:function(){return kc},VExpansionPanelTitle:function(){return Ec},VExpansionPanels:function(){return $c},VFab:function(){return Nc},VFabTransition:function(){return H},VFadeTransition:function(){return z},VField:function(){return Pr},VFieldLabel:function(){return Cr}
3336,VFileInput:function(){return Bc},VFooter:function(){return Wc},VForm:function(){return qc},VHotkey:function(){return Nd},VHover:function(){return Rd},VIcon:function(){return ut},VImg:function(){return _e},VInfiniteScroll:function(){return Vd},VInput:function(){return jr},VItem:function(){return Wd},VItemGroup:function(){return jd},VKbd:function(){return bd},VLabel:function(){return Wt},VLayout:function(){return qd},VLayoutItem:function(){return zd},VLazy:function(){return Kd},VLigatureIcon:function(){return st.w8},VList:function(){return pr},VListGroup:function(){return zn},VListImg:function(){return Xd},VListItem:function(){return Zn},VListItemAction:function(){return Zd},VListItemMedia:function(){return eh},VListItemSubtitle:function(){return Kn},VListItemTitle:function(){return Xn},VListSubheader:function(){return er},VLocaleProvider:function(){return nh},VMain:function(){return ih},VMenu:function(){return _r},VMessages:function(){return Or},VNavigationDrawer:function(){return gh},VNoSsr:function(){return _h},VNumberInput:function(){return kh},VOtpInput:function(){return Eh},VOverlay:function(){return fr.y},VPagination:function(){return vu},VParallax:function(){return Ah},VProgressCircular:function(){return ft},VProgressLinear:function(){return yt},VRadio:function(){return $h},VRadioGroup:function(){return Nh},VRangeSlider:function(){return Dh},VRating:function(){return Fh},VResponsive:function(){return he},VRow:function(){return yd},VScaleTransition:function(){return Y},VScrollXReverseTransition:function(){return X},VScrollXTransition:function(){return K},VScrollYReverseTransition:function(){return Z},VScrollYTransition:function(){return J},VSelect:function(){return _i},VSelectionControl:function(){return Xt},VSelectionControlGroup:function(){return zt},VSheet:function(){return Tr},VSkeletonLoader:function(){return Hh},VSlideGroup:function(){return dn},VSlideGroupItem:function(){return qh},VSlideXReverseTransition:function(){return ee},VSlideXTransition:function(){return Q},VSlideYReverseTransition:function(){return ne},VSlideYTransition:function(){return te},VSlider:function(){return Hs},VSnackbar:function(){return Yh},VSnackbarQueue:function(){return Xh},VSpacer:function(){return ic},VSparkline:function(){return lp},VSpeedDial:function(){return cp},VStepper:function(){return kp},VStepperActions:function(){return pp},VStepperHeader:function(){return fp},VStepperItem:function(){return gp},VStepperWindow:function(){return _p},VStepperWindowItem:function(){return Tp},VSvgIcon:function(){return st.oX},VSwitch:function(){return Ep},VSystemBar:function(){return xp},VTab:function(){return $p},VTable:function(){return qu},VTabs:function(){return Mp},VTabsWindow:function(){return Np},VTabsWindowItem:function(){return Dp},VTextField:function(){return Yr},VTextarea:function(){return Up},VThemeProvider:function(){return jp},VTimePicker:function(){return df},VTimePickerClock:function(){return Xp},VTimePickerControls:function(){return uf},VTimeline:function(){return Yp},VTimelineItem:function(){return Gp},VToolbar:function(){return Pe},VToolbarItems:function(){return pf},VToolbarTitle:function(){return P},VTooltip:function(){return ff.N},VTreeview:function(){return Cf},VTreeviewGroup:function(){return vf},VTreeviewItem:function(){return _f},VValidation:function(){return Ef},VVirtualScroll:function(){return ai},VWindow:function(){return os},VWindowItem:function(){return ds}});var r=n(6252),i=n(3577),a=n(990),o=n(2262),s=n(320),l=n(6293);function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"content";const n=(0,s.CV)(),i=(0,o.iH)();if(l.BR){const a=new ResizeObserver((n=>{e?.(n,a),n.length&&(i.value="content"===t?n[0].contentRect:n[0].target.getBoundingClientRect())}));(0,r.Jd)((()=>{a.disconnect()})),(0,r.YP)((()=>n.el),((e,t)=>{t&&(a.unobserve(t),i.value=void 0),e&&a.observe(e)}),{flush:"post"})}return{resizeRef:n,contentRect:(0,o.OT)(i)}}var c=n(6393),d=n(8383),h=n(4245);const p=Symbol.for("vuetify:layout"),f=Symbol.for("vuetify:layout-item"),m=1e3,v=(0,c.U)({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),g=(0,c.U)({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function y(){const e=(0,r.f3)(p);if(!e)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:e.getLayoutItem,mainRect:e.mainRect,mainStyles:e.mainStyles}}function _(e){const t=(0,r.f3)(p);if(!t)throw new Error("[Vuetify] Could not find injected layout");const n=e.id??`layout-item-${(0,r.Me)()}`,i=(0,d.F)("useLayoutItem");(0,r.JJ)(f,{id:n});const a=(0,o.XI)(!1);(0,r.se)((()=>a.value=!0)),(0,r.dl)((()=>a.value=!1));const{layoutItemStyles:s,layoutItemScrimStyles:l}=t.register(i,{...e,active:(0,r.Fl)((()=>!a.value&&e.active.value)),id:n});return(0,r.Jd)((()=>t.unregister(n))),{layoutItemStyles:s,layoutRect:t.layoutRect,layoutItemScrimStyles:l}}const b=(e,t,n,r)=>{let i={top:0,left:0,right:0,bottom:0};const a=[{id:"",layer:{...i}}];for(const o of e){const e=t.get(o),s=n.get(o),l=r.get(o);if(!e||!s||!l)continue;const u={...i,[e.value]:parseInt(i[e.value],10)+(l.value?parseInt(s.value,10):0)};a.push({id:o,layer:u}),i=u}return a};function T(e){const t=(0,r.f3)(p,null),n=(0,r.Fl)((()=>t?t.rootZIndex.value-100:m)),i=(0,o.iH)([]),a=(0,o.qj)(new Map),l=(0,o.qj)(new Map),c=(0,o.qj)(new Map),v=(0,o.qj)(new Map),g=(0,o.qj)(new Map),{resizeRef:y,contentRect:_}=u(),T=(0,r.Fl)((()=>{const t=new Map,n=e.overlaps??[];for(const e of n.filter((e=>e.includes(":")))){const[n,r]=e.split(":");if(!i.value.includes(n)||!i.value.includes(r))continue;const o=a.get(n),s=a.get(r),u=l.get(n),c=l.get(r);o&&s&&u&&c&&(t.set(r,{position:o.value,amount:parseInt(u.value,10)}),t.set(n,{position:s.value,amount:-parseInt(c.value,10)}))}return t})),w=(0,r.Fl)((()=>{const e=[...new Set([...c.values()].map((e=>e.value)))].sort(((e,t)=>e-t)),t=[];for(const n of e){const e=i.value.filter((e=>c.get(e)?.value===n));t.push(...e)}return b(t,a,l,v)})),S=(0,r.Fl)((()=>!Array.from(g.values()).some((e=>e.value)))),k=(0,r.Fl)((()=>w.value[w.value.length-1].layer)),C=(0,o.Vh)((()=>({"--v-layout-left":(0,s.kb)(k.value.left),"--v-layout-right":(0,s.kb)(k.value.right),"--v-layout-top":(0,s.kb)(k.value.top),"--v-layout-bottom":(0,s.kb)(k.value.bottom),...S.value?void 0:{transition:"none"}}))),E=(0,r.Fl)((()=>w.value.slice(1).map(((e,t)=>{let{id:n}=e;const{layer:r}=w.value[t],i=l.get(n),o=a.get(n);return{id:n,...r,size:Number(i.value),position:o.value}})))),I=e=>E.value.find((t=>t.id===e)),x=(0,d.F)("createLayout"),A=(0,o.XI)(!1);(0,r.bv)((()=>{A.value=!0})),(0,r.JJ)(p,{register:(e,t)=>{let{id:o,order:u,position:d,layoutSize:p,elementSize:y,active:_,disableTransitions:b,absolute:k}=t;c.set(o,u),a.set(o,d),l.set(o,p),v.set(o,_),b&&g.set(o,b);const C=(0,s.bY)(f,x?.vnode),I=C.indexOf(e);I>-1?i.value.splice(I,0,o):i.value.push(o);const P=(0,r.Fl)((()=>E.value.findIndex((e=>e.id===o)))),$=(0,r.Fl)((()=>n.value+2*w.value.length-2*P.value)),O=(0,r.Fl)((()=>
3336{const e="left"===d.value||"right"===d.value,t="right"===d.value,r="bottom"===d.value,i=y.value??p.value,a=0===i?"%":"px",s={[d.value]:0,zIndex:$.value,transform:`translate${e?"X":"Y"}(${(_.value?0:-(0===i?100:i))*(t||r?-1:1)}${a})`,position:k.value||n.value!==m?"absolute":"fixed",...S.value?void 0:{transition:"none"}};if(!A.value)return s;const l=E.value[P.value];l||(0,h.Kd)(`[Vuetify] Could not find layout item "${o}"`);const u=T.value.get(o);return u&&(l[u.position]+=u.amount),{...s,height:e?`calc(100% - ${l.top}px - ${l.bottom}px)`:y.value?`${y.value}px`:void 0,left:t?void 0:`${l.left}px`,right:t?`${l.right}px`:void 0,top:"bottom"!==d.value?`${l.top}px`:void 0,bottom:"top"!==d.value?`${l.bottom}px`:void 0,width:e?y.value?`${y.value}px`:void 0:`calc(100% - ${l.left}px - ${l.right}px)`}})),N=(0,r.Fl)((()=>({zIndex:$.value-1})));return{layoutItemStyles:O,layoutItemScrimStyles:N,zIndex:$}},unregister:e=>{c.delete(e),a.delete(e),l.delete(e),v.delete(e),g.delete(e),i.value=i.value.filter((t=>t!==e))},mainRect:k,mainStyles:C,getLayoutItem:I,items:E,layoutRect:_,rootZIndex:n});const P=(0,o.Vh)((()=>["v-layout",{"v-layout--full-height":e.fullHeight}])),$=(0,o.Vh)((()=>({zIndex:t?n.value:void 0,position:t?"relative":void 0,overflow:t?"hidden":void 0})));return{layoutClasses:P,layoutStyles:$,getLayoutItem:I,items:E,layoutRect:_,layoutRef:y}}var w=n(8705),S=n(4999),k=n(2290),C=n(1213);const E=(0,c.U)({...(0,a.l)(),...(0,s.CE)(v(),["fullHeight"]),...(0,S.x$)()},"VApp"),I=(0,k.ev)()({name:"VApp",props:E(),setup(e,t){let{slots:n}=t;const a=(0,S.ER)(e),{layoutClasses:o,getLayoutItem:s,items:l,layoutRef:u}=T({...e,fullHeight:!0}),{rtlClasses:c}=(0,w.Vw)();return(0,C.L)((()=>(0,r._)("div",{ref:u,class:(0,i.C_)(["v-application",a.themeClasses.value,o.value,c.value,e.class]),style:(0,i.j5)([e.style])},[(0,r._)("div",{class:"v-application__wrap"},[n.default?.()])]))),{getLayoutItem:s,items:l,theme:a}}}),x=(0,c.U)({tag:{type:[String,Object,Function],default:"div"}},"tag"),A=(0,c.U)({text:String,...(0,a.l)(),...x()},"VToolbarTitle"),P=(0,k.ev)()({name:"VToolbarTitle",props:A(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>{const t=!!(n.default||n.text||e.text);return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-toolbar-title",e.class]),style:(0,i.j5)(e.style)},{default:()=>[t&&(0,r._)("div",{class:"v-toolbar-title__placeholder"},[n.text?n.text():e.text,n.default?.()])]})})),{}}});var $=n(9963);const O=(0,c.U)({disabled:Boolean,group:Boolean,hideOnLeave:Boolean,leaveAbsolute:Boolean,mode:String,origin:String},"transition");function N(e,t,n){return(0,k.ev)()({name:e,props:O({mode:n,origin:t}),setup(t,n){let{slots:i}=n;const a={onBeforeEnter(e){t.origin&&(e.style.transformOrigin=t.origin)},onLeave(e){if(t.leaveAbsolute){const{offsetTop:t,offsetLeft:n,offsetWidth:r,offsetHeight:i}=e;e._transitionInitialStyles={position:e.style.position,top:e.style.top,left:e.style.left,width:e.style.width,height:e.style.height},e.style.position="absolute",e.style.top=`${t}px`,e.style.left=`${n}px`,e.style.width=`${r}px`,e.style.height=`${i}px`}t.hideOnLeave&&e.style.setProperty("display","none","important")},onAfterLeave(e){if(t.leaveAbsolute&&e?._transitionInitialStyles){const{position:t,top:n,left:r,width:i,height:a}=e._transitionInitialStyles;delete e._transitionInitialStyles,e.style.position=t||"",e.style.top=n||"",e.style.left=r||"",e.style.width=i||"",e.style.height=a||""}}};return()=>{const n=t.group?$.W3:$.uT;return(0,r.h)(n,{name:t.disabled?"":e,css:!t.disabled,...t.group?void 0:{mode:t.mode},...t.disabled?{}:a},i.default)}}})}function L(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"in-out";return(0,k.ev)()({name:e,props:{mode:{type:String,default:n},disabled:{type:Boolean,default:(0,l.QE)()},group:Boolean,hideOnLeave:Boolean},setup(n,i){let{slots:a}=i;const o=n.group?$.W3:$.uT;return()=>(0,r.h)(o,{name:n.disabled?"":e,css:!n.disabled,...n.disabled?{}:{...t,onLeave:e=>{n.hideOnLeave?e.style.setProperty("display","none","important"):t.onLeave?.(e)}}},a.default)}})}function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y";return{onBeforeEnter(e){e._parent=e.parentNode,e._initialStyle={transition:e.style.transition,overflow:e.style.overflow,width:e.style.width,height:e.style.height}},onEnter(n){const r=n._initialStyle;if(!r)return;n.style.setProperty("transition","none","important"),n.style.overflow="hidden";const i=`${n.offsetWidth}px`,a=`${n.offsetHeight}px`;["x","both"].includes(t)&&(n.style.width="0"),["y","both"].includes(t)&&(n.style.height="0"),n.offsetHeight,n.style.transition=r.transition,e&&n._parent&&n._parent.classList.add(e),requestAnimationFrame((()=>{["x","both"].includes(t)&&(n.style.width=i),["y","both"].includes(t)&&(n.style.height=a)}))},onAfterEnter:r,onEnterCancelled:r,onLeave(e){e._initialStyle={transition:"",overflow:e.style.overflow,width:e.style.width,height:e.style.height},e.style.overflow="hidden",["x","both"].includes(t)&&(e.style.width=`${e.offsetWidth}px`),["y","both"].includes(t)&&(e.style.height=`${e.offsetHeight}px`),e.offsetHeight,requestAnimationFrame((()=>{["x","both"].includes(t)&&(e.style.width="0"),["y","both"].includes(t)&&(e.style.height="0")}))},onAfterLeave:n,onLeaveCancelled:n};function n(t){e&&t._parent&&t._parent.classList.remove(e),r(t)}function r(e){if(!e._initialStyle)return;const{width:n,height:r}=e._initialStyle;e.style.overflow=e._initialStyle.overflow,null!=n&&["x","both"].includes(t)&&(e.style.width=n),null!=r&&["y","both"].includes(t)&&(e.style.height=r),delete e._initialStyle}}var R=n(4592),F=n(2739),M=n(3498);const V=(0,c.U)({target:[Object,Array]},"v-dialog-transition"),U=new WeakMap,B=(0,k.ev)()({name:"VDialogTransition",props:V(),setup(e,t){let{slots:n}=t;const i={onBeforeEnter(e){e.style.pointerEvents="none",e.style.visibility="hidden"},async onEnter(t,n){await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>requestAnimationFrame(e))),t.style.visibility="";
3336const r=W(e.target,t),{x:i,y:a,sx:o,sy:s,speed:u}=r;if(U.set(t,r),(0,l.QE)())(0,R.j)(t,[{opacity:0},{}],{duration:125*u,easing:F.uX}).finished.then((()=>n()));else{const e=(0,R.j)(t,[{transform:`translate(${i}px, ${a}px) scale(${o}, ${s})`,opacity:0},{}],{duration:225*u,easing:F.uX});j(t)?.forEach((e=>{(0,R.j)(e,[{opacity:0},{opacity:0,offset:.33},{}],{duration:450*u,easing:F.Ly})})),e.finished.then((()=>n()))}},onAfterEnter(e){e.style.removeProperty("pointer-events")},onBeforeLeave(e){e.style.pointerEvents="none"},async onLeave(t,n){let r;await new Promise((e=>requestAnimationFrame(e))),r=!U.has(t)||Array.isArray(e.target)||e.target.offsetParent||e.target.getClientRects().length?W(e.target,t):U.get(t);const{x:i,y:a,sx:o,sy:s,speed:u}=r;if((0,l.QE)())(0,R.j)(t,[{},{opacity:0}],{duration:85*u,easing:F.x0}).finished.then((()=>n()));else{const e=(0,R.j)(t,[{},{transform:`translate(${i}px, ${a}px) scale(${o}, ${s})`,opacity:0}],{duration:125*u,easing:F.x0});e.finished.then((()=>n())),j(t)?.forEach((e=>{(0,R.j)(e,[{},{opacity:0,offset:.2},{opacity:0}],{duration:250*u,easing:F.Ly})}))}},onAfterLeave(e){e.style.removeProperty("pointer-events")}};return()=>e.target?(0,r.Wm)($.uT,(0,r.dG)({name:"dialog-transition"},i,{css:!1}),n):(0,r.Wm)($.uT,{name:"dialog-transition"},n)}});function j(e){const t=e.querySelector(":scope > .v-card, :scope > .v-sheet, :scope > .v-list")?.children;return t&&[...t]}function W(e,t){const n=(0,M.Jc)(e),r=(0,R.G)(t),[i,a]=getComputedStyle(t).transformOrigin.split(" ").map((e=>parseFloat(e))),[o,s]=getComputedStyle(t).getPropertyValue("--v-overlay-anchor-origin").split(" ");let l=n.left+n.width/2;"left"===o||"left"===s?l-=n.width/2:"right"!==o&&"right"!==s||(l+=n.width/2);let u=n.top+n.height/2;"top"===o||"top"===s?u-=n.height/2:"bottom"!==o&&"bottom"!==s||(u+=n.height/2);const c=n.width/r.width,d=n.height/r.height,h=Math.max(1,c,d),p=c/h||0,f=d/h||0,m=r.width*r.height/(window.innerWidth*window.innerHeight),v=m>.12?Math.min(1.5,10*(m-.12)+1):1;return{x:l-(i+r.left),y:u-(a+r.top),sx:p,sy:f,speed:v}}const H=N("fab-transition","center center","out-in"),q=N("dialog-bottom-transition"),G=N("dialog-top-transition"),z=N("fade-transition"),Y=N("scale-transition"),K=N("scroll-x-transition"),X=N("scroll-x-reverse-transition"),J=N("scroll-y-transition"),Z=N("scroll-y-reverse-transition"),Q=N("slide-x-transition"),ee=N("slide-x-reverse-transition"),te=N("slide-y-transition"),ne=N("slide-y-reverse-transition"),re=L("expand-transition",D()),ie=L("expand-x-transition",D("","x")),ae=L("expand-both-transition",D("","both"));var oe=n(121);const se=(0,c.U)({defaults:Object,disabled:Boolean,reset:[Number,String],root:[Boolean,String],scoped:Boolean},"VDefaultsProvider"),le=(0,k.ev)(!1)({name:"VDefaultsProvider",props:se(),setup(e,t){let{slots:n}=t;const{defaults:r,disabled:i,reset:a,root:s,scoped:l}=(0,o.BK)(e);return(0,oe.AF)(r,{reset:a,root:s,scoped:l,disabled:i}),()=>n.default?.()}});var ue=n(4101);function ce(e){return{aspectStyles:(0,r.Fl)((()=>{const t=Number(e.aspectRatio);return t?{paddingBottom:String(1/t*100)+"%"}:void 0}))}}const de=(0,c.U)({aspectRatio:[String,Number],contentClass:null,inline:Boolean,...(0,a.l)(),...(0,ue.x)()},"VResponsive"),he=(0,k.ev)()({name:"VResponsive",props:de(),setup(e,t){let{slots:n}=t;const{aspectStyles:a}=ce(e),{dimensionStyles:o}=(0,ue.$)(e);return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-responsive",{"v-responsive--inline":e.inline},e.class]),style:(0,i.j5)([o.value,e.style])},[(0,r._)("div",{class:"v-responsive__sizer",style:(0,i.j5)(a.value)},null),n.additional?.(),n.default&&(0,r._)("div",{class:(0,i.C_)(["v-responsive__content",e.contentClass])},[n.default()])]))),{}}});var pe=n(9617);const fe=(0,c.U)({rounded:{type:[Boolean,Number,String],default:void 0},tile:Boolean},"rounded");function me(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,r.Fl)((()=>{const n=(0,o.dq)(e)?e.value:e.rounded,r=!(0,o.dq)(e)&&e.tile,i=[];if(r||!1===n)i.push("rounded-0");else if(!0===n||""===n)i.push(`${t}--rounded`);else if("string"===typeof n||0===n)for(const e of String(n).split(" "))i.push(`rounded-${e}`);return i}));
3336return{roundedClasses:n}}var ve=n(8918),ge=n(680);const ye=(0,c.U)({absolute:Boolean,alt:String,cover:Boolean,color:String,draggable:{type:[Boolean,String],default:void 0},eager:Boolean,gradient:String,imageClass:null,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},sizes:String,src:{type:[String,Object],default:""},crossorigin:String,referrerpolicy:String,srcset:String,position:String,...de(),...(0,a.l)(),...fe(),...(0,ve.X)()},"VImg"),_e=(0,k.ev)()({name:"VImg",directives:{vIntersect:ge.Z},props:ye(),emits:{loadstart:e=>!0,load:e=>!0,error:e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{backgroundColorClasses:u,backgroundColorStyles:c}=(0,pe.Y5)((()=>e.color)),{roundedClasses:h}=me(e),p=(0,d.F)("VImg"),f=(0,o.XI)(""),m=(0,o.iH)(),v=(0,o.XI)(e.eager?"loading":"idle"),g=(0,o.XI)(),y=(0,o.XI)();let _=!1;const b=(0,r.Fl)((()=>e.src&&"object"===typeof e.src?{src:e.src.src,srcset:e.srcset||e.src.srcset,lazySrc:e.lazySrc||e.src.lazySrc,aspect:Number(e.aspectRatio||e.src.aspect||0)}:{src:e.src,srcset:e.srcset,lazySrc:e.lazySrc,aspect:Number(e.aspectRatio||0)})),T=(0,r.Fl)((()=>b.value.aspect||g.value/y.value||0));function w(t){if((!e.eager||!t)&&(!l.cu||t||e.eager)){if(v.value="loading",b.value.lazySrc){const e=new Image;e.src=b.value.lazySrc,x(e,null)}b.value.src&&(0,r.Y3)((()=>{n("loadstart",m.value?.currentSrc||b.value.src),setTimeout((()=>{if(!p.isUnmounted)if(m.value?.complete){if(m.value.naturalWidth||k(),"error"===v.value)return;T.value||x(m.value,null),"loading"===v.value&&S()}else m.value&&(T.value||x(m.value),E(m.value))}))}))}}function S(){p.isUnmounted||(m.value?(E(m.value),x(m.value),n("load",m.value.currentSrc||b.value.src)):_=!0,v.value="loaded")}function k(){p.isUnmounted||(v.value="error",n("error",m.value?.currentSrc||b.value.src))}function E(e){f.value=e.currentSrc||e.src}(0,r.YP)((()=>e.src),(()=>{w("idle"!==v.value)})),(0,r.YP)(T,((e,t)=>{!e&&t&&m.value&&x(m.value)})),(0,r.YP)(m,(e=>{e&&"idle"!==v.value&&(T.value||x(e),E(e),_&&(_=!1,n("load",e.currentSrc||b.value.src)))})),(0,r.wF)((()=>w()));let I=-1;function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;const n=()=>
3336{if(clearTimeout(I),p.isUnmounted)return;const{naturalHeight:r,naturalWidth:i}=e;r||i?(g.value=i,y.value=r):e.complete||"loading"!==v.value||null==t?(e.currentSrc.endsWith(".svg")||e.currentSrc.startsWith("data:image/svg+xml"))&&(g.value=1,y.value=1):I=window.setTimeout(n,t)};n()}(0,r.Jd)((()=>{clearTimeout(I)}));const A=(0,o.Vh)((()=>({"v-img__img--cover":e.cover,"v-img__img--contain":!e.cover}))),P=()=>{if(!b.value.src||"idle"===v.value)return null;const t=(0,r._)("img",{class:(0,i.C_)(["v-img__img",A.value,e.imageClass]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:b.value.src,srcset:b.value.srcset,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable,sizes:e.sizes,ref:m,onLoad:S,onError:k},null),n=a.sources?.();return(0,r.Wm)(ve.J,{transition:e.transition,appear:!0},{default:()=>[(0,r.wy)(n?(0,r._)("picture",{class:"v-img__picture"},[n,t]):t,[[$.F8,"loaded"===v.value]])]})},O=()=>(0,r.Wm)(ve.J,{transition:e.transition},{default:()=>[b.value.lazySrc&&"loaded"!==v.value&&(0,r._)("img",{class:(0,i.C_)(["v-img__img","v-img__img--preload",A.value]),style:{objectPosition:e.position},crossorigin:e.crossorigin,src:b.value.lazySrc,alt:e.alt,referrerpolicy:e.referrerpolicy,draggable:e.draggable},null)]}),N=()=>a.placeholder?(0,r.Wm)(ve.J,{transition:e.transition,appear:!0},{default:()=>[("loading"===v.value||"error"===v.value&&!a.error)&&(0,r._)("div",{class:"v-img__placeholder"},[a.placeholder()])]}):null,L=()=>a.error?(0,r.Wm)(ve.J,{transition:e.transition,appear:!0},{default:()=>["error"===v.value&&(0,r._)("div",{class:"v-img__error"},[a.error()])]}):null,D=()=>e.gradient?(0,r._)("div",{class:"v-img__gradient",style:{backgroundImage:`linear-gradient(${e.gradient})`}},null):null,R=(0,o.XI)(!1);{const e=(0,r.YP)(T,(t=>{t&&(requestAnimationFrame((()=>{requestAnimationFrame((()=>{R.value=!0}))})),e())}))}return(0,C.L)((()=>{const t=he.filterProps(e);return(0,r.wy)((0,r.Wm)(he,(0,r.dG)({class:["v-img",{"v-img--absolute":e.absolute,"v-img--booting":!R.value,"v-img--fit-content":"fit-content"===e.width},u.value,h.value,e.class],style:[{width:(0,s.kb)("auto"===e.width?g.value:e.width)},c.value,e.style]},t,{aspectRatio:T.value,"aria-label":e.alt,role:e.alt?"img":void 0}),{additional:()=>(0,r._)(r.HY,null,[(0,r.Wm)(P,null,null),(0,r.Wm)(O,null,null),(0,r.Wm)(D,null,null),(0,r.Wm)(N,null,null),(0,r.Wm)(L,null,null)]),default:a.default}),[[ge.Z,{handler:w,options:e.options},null,{once:!0}]])})),{currentSrc:f,image:m,state:v,naturalWidth:g,naturalHeight:y}}}),be=(0,c.U)({border:[Boolean,Number,String]},"border");function Te(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,r.Fl)((()=>{const n=e.border;return!0===n||""===n?`${t}--border`:"string"===typeof n||0===n?String(n).split(" ").map((e=>`border-${e}`)):[]}));return{borderClasses:n}}const we=(0,c.U)({elevation:{type:[Number,String],validator(e){const t=parseInt(e);return!isNaN(t)&&t>=0&&t<=24}}},"elevation");function Se(e){const t=(0,o.Vh)((()=>{const t=(0,o.dq)(e)?e.value:e.elevation;return null==t?[]:[`elevation-${t}`]}));return{elevationClasses:t}}var ke=n(8138);const Ce={center:"center",top:"bottom",bottom:"top",left:"right",right:"left"},Ee=(0,c.U)({location:String},"location");function Ie(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;const{isRtl:i}=(0,w.Vw)(),a=(0,r.Fl)((()=>{if(!e.location)return{};const{side:r,align:a}=(0,ke.wW)(e.location.split(" ").length>1?e.location:`${e.location} center`,i.value);function o(e){return n?n(e):0}const s={};return"center"!==r&&(t?s[Ce[r]]=`calc(100% - ${o(r)}px)`:s[r]=0),"center"!==a?t?s[Ce[a]]=`calc(100% - ${o(a)}px)`:s[a]=0:("center"===r?s.top=s.left="50%":s[{top:"left",bottom:"left",left:"top",right:"top"}[r]]="50%",s.transform={top:"translateX(-50%)",bottom:"translateX(-50%)",left:"translateY(-50%)",right:"translateY(-50%)",center:"translate(-50%, -50%)"}[r]),s}));return{locationStyles:a}}const xe=[null,"prominent","default","comfortable","compact"],Ae=(0,c.U)({absolute:Boolean,collapse:Boolean,collapsePosition:{type:String,default:"start"},color:String,density:{type:String,default:"default",validator:e=>xe.includes(e)},extended:{type:Boolean,default:null},extensionHeight:{type:[Number,String],default:48},flat:Boolean,floating:Boolean,height:{type:[Number,String],default:64},image:String,title:String,...be(),...(0,a.l)(),...we(),...Ee(),...fe(),...x({tag:"header"}),...(0,S.x$)()},"VToolbar"),Pe=(0,k.ev)()({name:"VToolbar",props:Ae(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:l}=(0,pe.Y5)((()=>e.color)),{borderClasses:u}=Te(e),{elevationClasses:c}=Se(e),{locationStyles:d}
3336=Ie(e),{roundedClasses:h}=me(e),{themeClasses:p}=(0,S.ER)(e),{rtlClasses:f}=(0,w.Vw)(),m=(0,o.XI)(null===e.extended?!!n.extension?.():e.extended),v=(0,r.Fl)((()=>parseInt(Number(e.height)+("prominent"===e.density?Number(e.height):0)-("comfortable"===e.density?8:0)-("compact"===e.density?16:0),10))),g=(0,r.Fl)((()=>m.value?parseInt(Number(e.extensionHeight)+("prominent"===e.density?Number(e.extensionHeight):0)-("comfortable"===e.density?4:0)-("compact"===e.density?8:0),10):0));return(0,oe.AF)({VBtn:{variant:"text"}}),(0,C.L)((()=>{const t=!(!e.title&&!n.title),o=!(!n.image&&!e.image),y=n.extension?.();return m.value=null===e.extended?!!y:e.extended,(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-toolbar",`v-toolbar--collapse-${e.collapsePosition}`,{"v-toolbar--absolute":e.absolute,"v-toolbar--collapse":e.collapse,"v-toolbar--flat":e.flat,"v-toolbar--floating":e.floating,[`v-toolbar--density-${e.density}`]:!0},a.value,u.value,c.value,h.value,p.value,f.value,e.class]),style:(0,i.j5)([l.value,d.value,e.style])},{default:()=>[o&&(0,r._)("div",{key:"image",class:"v-toolbar__image"},[n.image?(0,r.Wm)(le,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},n.image):(0,r.Wm)(_e,{key:"image-img",cover:!0,src:e.image},null)]),(0,r.Wm)(le,{defaults:{VTabs:{height:(0,s.kb)(v.value)}}},{default:()=>[(0,r._)("div",{class:"v-toolbar__content",style:{height:(0,s.kb)(v.value)}},[n.prepend&&(0,r._)("div",{class:"v-toolbar__prepend"},[n.prepend?.()]),t&&(0,r.Wm)(P,{key:"title",text:e.title},{text:n.title}),n.default?.(),n.append&&(0,r._)("div",{class:"v-toolbar__append"},[n.append?.()])])]}),(0,r.Wm)(le,{defaults:{VTabs:{height:(0,s.kb)(g.value)}}},{default:()=>[(0,r.Wm)(re,null,{default:()=>[m.value&&(0,r._)("div",{class:"v-toolbar__extension",style:{height:(0,s.kb)(g.value)}},[y])]})]})]})})),{contentHeight:v,extensionHeight:g}}});var $e=n(9420);const Oe=(0,c.U)({scrollTarget:{type:String},scrollThreshold:{type:[String,Number],default:300}},"scroll");function Ne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{canScroll:n,layoutSize:i}=t;let a=0,l=0;const u=(0,o.iH)(null),c=(0,o.XI)(0),d=(0,o.XI)(0),p=(0,o.XI)(0),f=(0,o.XI)(!1),m=(0,o.XI)(!1),v=(0,o.XI)(!1),g=(0,o.XI)(!1),y=(0,o.XI)(!0),_=(0,r.Fl)((()=>Number(e.scrollThreshold))),b=(0,r.Fl)((()=>(0,s.uZ)((_.value-c.value)/_.value||0)));function T(e){const t="window"in e?window.innerHeight:e.clientHeight,n="window"in e?document.documentElement.scrollHeight:e.scrollHeight;return{clientHeight:t,scrollHeight:n}}function w(){const e=u.value;if(!e)return;const{clientHeight:t,scrollHeight:n}=T(e),r=n-t,a=i?.value||0,o=_.value+a;y.value=r>o}function S(){w()}function k(){const e=u.value;if(!e||n&&!n.value)return;a=c.value,c.value="window"in e?e.pageYOffset:e.scrollTop;const t=e instanceof Window?document.documentElement.scrollHeight:e.scrollHeight;l!==t&&(t>l&&w(),l=t),m.value=c.value<a,p.value=Math.abs(c.value-_.value);const{clientHeight:r,scrollHeight:i}=T(e),o=c.value+r>=i-5;!m.value&&o&&c.value>=_.value&&y.value&&(g.value=!0);const s=Math.abs(c.value-a)>100,d=c.value<=5,h=m.value&&a-c.value>1;(h&&!o||s&&c.value<_.value||d)&&(g.value=!1),v.value=o}return(0,r.YP)(m,(()=>{d.value=d.value||c.value})),(0,r.YP)(f,(()=>{d.value=0})),(0,r.bv)((()=>{(0,r.YP)((()=>e.scrollTarget),(e=>{const t=e?document.querySelector(e):window;t?t!==u.value&&(u.value?.removeEventListener("scroll",k),u.value=t,u.value.addEventListener("scroll",k,{passive:!0}),Promise.resolve().then((()=>{w()}))):(0,h.Kd)(`Unable to locate element with identifier ${e}`)}),{immediate:!0}),window.addEventListener("resize",S,{passive:!0})})),(0,r.Jd)((()=>{u.value?.removeEventListener("scroll",k),window.removeEventListener("resize",S)})),n&&(0,r.YP)(n,k,{immediate:!0}),{scrollThreshold:_,currentScroll:c,currentThreshold:p,isScrollActive:f,scrollRatio:b,isScrollingUp:m,savedScroll:d,isAtBottom:v,reachedBottomWhileScrollingDown:g,hasEnoughScrollableSpace:y}}function Le(){const e=(0,o.XI)(!1);(0,r.bv)((()=>{window.requestAnimationFrame((()=>{e.value=!0}))}));const t=(0,o.Vh)((()=>e.value?void 0:{transition:"none !important"}));return{ssrBootStyles:t,isBooted:(0,o.OT)(e)}}var De=n(4539);const Re=(0,c.U)({scrollBehavior:String,modelValue:{type:Boolean,default:!0},location:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},...(0,s.CE)(Ae(),["location"]),...g(),...Oe(),height:{type:[Number,String],default:64}},"VAppBar"),Fe=(0,k.ev)()({name:"VAppBar",props:Re(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,o.iH)(),a=(0,$e.z)(e,"modelValue"),l=(0,r.Fl)((()=>{const t=new Set(e.scrollBehavior?.split(" ")??[]);return{hide:t.has("hide"),fullyHide:t.has("fully-hide"),inverted:t.has("inverted"),collapse:t.has("collapse"),elevate:t.has("elevate"),fadeImage:t.has("fade-image")}})),u=(0,r.Fl)((()=>{const e=l.value;return e.hide||e.fullyHide||e.inverted||e.collapse||e.elevate||e.fadeImage||!a.value})),c=(0,r.Fl)((()=>{const e=i.value?.contentHeight??0,t=i.value?.extensionHeight??0;return e+t})),{currentScroll:d,scrollThreshold:h,isScrollingUp:p,scrollRatio:f,isAtBottom:m,reachedBottomWhileScrollingDown:v,hasEnoughScrollableSpace:g}=Ne(e,{canScroll:u,layoutSize:c}),y=(0,o.Vh)((()=>l.value.hide||l.value.fullyHide)),b=(0,r.Fl)((()=>e.collapse||l.value.collapse&&(l.value.inverted?f.value>0:0===f.value))),T=(0,r.Fl)((()=>e.flat||l.value.fullyHide&&!a.value||l.value.elevate&&(l.value.inverted?d.value>0:0===d.value))),w=(0,r.Fl)((()=>l.value.fadeImage?l.value.inverted?1-f.value:f.value:void 0)),S=(0,r.Fl)((()=>
3336{if(l.value.hide&&l.value.inverted)return 0;const e=i.value?.contentHeight??0,t=i.value?.extensionHeight??0;return y.value?d.value<h.value||l.value.fullyHide?e+t:e:e+t}));(0,De.U)((()=>!!e.scrollBehavior),(()=>{(0,r.m0)((()=>{y.value?l.value.inverted?a.value=d.value>h.value:g.value?v.value?a.value=!1:a.value=p.value&&!m.value||d.value<h.value:a.value=!0:a.value=!0}))}));const{ssrBootStyles:k}=Le(),{layoutItemStyles:E}=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:(0,o.Vh)((()=>e.location)),layoutSize:S,elementSize:(0,o.XI)(void 0),active:a,absolute:(0,o.Vh)((()=>e.absolute))});return(0,C.L)((()=>{const t=(0,s.CE)(Pe.filterProps(e),["location"]);return(0,r.Wm)(Pe,(0,r.dG)({ref:i,class:["v-app-bar",{"v-app-bar--bottom":"bottom"===e.location},e.class],style:[{...E.value,"--v-toolbar-image-opacity":w.value,height:void 0,...k.value},e.style]},t,{collapse:b.value,flat:T.value}),n)})),{}}}),Me=[null,"default","comfortable","compact"],Ve=(0,c.U)({density:{type:String,default:"default",validator:e=>Me.includes(e)}},"density");function Ue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,o.Vh)((()=>`${t}--density-${e.density}`));return{densityClasses:n}}const Be=["x-small","small","default","large","x-large"],je=(0,c.U)({size:{type:[String,Number],default:"default"}},"size");function We(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();return(0,s.S3)((()=>{const n=e.size;let r,i;return(0,s.q9)(Be,n)?r=`${t}--size-${n}`:n&&(i={width:(0,s.kb)(n),height:(0,s.kb)(n)}),{sizeClasses:r,sizeStyles:i}}))}const He=["elevated","flat","tonal","outlined","text","plain"];function qe(e,t){return(0,r._)(r.HY,null,[e&&(0,r._)("span",{key:"overlay",class:(0,i.C_)(`${t}__overlay`)},null),(0,r._)("span",{key:"underlay",class:(0,i.C_)(`${t}__underlay`)},null)])}const Ge=(0,c.U)({color:String,variant:{type:String,default:"elevated",validator:e=>He.includes(e)}},"variant");function ze(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,o.Vh)((()=>{const{variant:n}=(0,o.Tn)(e);return`${t}--variant-${n}`})),{colorClasses:r,colorStyles:i}=(0,pe.rd)((()=>{const{variant:t,color:n}=(0,o.Tn)(e);return{[["elevated","flat"].includes(t)?"background":"text"]:n}}));return{colorClasses:r,colorStyles:i,variantClasses:n}}const Ye=(0,c.U)({baseColor:String,divided:Boolean,direction:{type:String,default:"horizontal"},...be(),...(0,a.l)(),...Ve(),...we(),...fe(),...je({size:void 0}),...x(),...(0,S.x$)(),...Ge()},"VBtnGroup"),Ke=(0,k.ev)()({name:"VBtnGroup",props:Ye(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{densityClasses:s}=Ue(e),{borderClasses:l}=Te(e),{elevationClasses:u}
3336=Se(e),{roundedClasses:c}=me(e);(0,oe.AF)({VBtn:{height:(0,o.Vh)((()=>"horizontal"===e.direction&&null==e.size?"auto":null)),baseColor:(0,o.Vh)((()=>e.baseColor)),color:(0,o.Vh)((()=>e.color)),density:(0,o.Vh)((()=>e.density)),flat:!0,size:(0,o.Vh)((()=>e.size)),variant:(0,o.Vh)((()=>e.variant))}}),(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-btn-group",`v-btn-group--${e.direction}`,{"v-btn-group--divided":e.divided,"v-btn-group--has-size":null!=e.size},a.value,l.value,s.value,u.value,c.value,e.class]),style:(0,i.j5)(e.style)},n)))}});var Xe=n(1115);const Je=(0,c.U)({modelValue:{type:null,default:void 0},multiple:Boolean,mandatory:[Boolean,String],max:Number,selectedClass:String,disabled:Boolean},"group"),Ze=(0,c.U)({value:null,disabled:Boolean,selectedClass:String},"group-item");function Qe(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=(0,d.F)("useGroupItem");if(!i)throw new Error("[Vuetify] useGroupItem composable must be used inside a component setup function");const a=(0,r.Me)();(0,r.JJ)(Symbol.for(`${t.description}:id`),a);const s=(0,r.f3)(t,null);if(!s){if(!n)return s;throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${t.description}`)}const l=(0,o.Vh)((()=>e.value)),u=(0,r.Fl)((()=>!(!s.disabled.value&&!e.disabled)));function c(){s?.register({id:a,value:l,disabled:u},i)}function h(){s?.unregister(a)}c(),(0,r.Jd)((()=>h()));const p=(0,r.Fl)((()=>s.isSelected(a))),f=(0,r.Fl)((()=>s.items.value[0].id===a)),m=(0,r.Fl)((()=>s.items.value[s.items.value.length-1].id===a)),v=(0,r.Fl)((()=>p.value&&[s.selectedClass.value,e.selectedClass]));return(0,r.YP)(p,(e=>{i.emit("group:selected",{value:e})}),{flush:"sync"}),{id:a,isSelected:p,isFirst:f,isLast:m,toggle:()=>s.select(a,!p.value),select:e=>s.select(a,e),selectedClass:v,value:l,disabled:u,group:s,register:c,unregister:h}}function et(e,t){let n=!1;const i=(0,o.qj)([]),a=(0,$e.z)(e,"modelValue",[],(e=>void 0===e?[]:nt(i,null===e?[null]:(0,s.FT)(e))),(t=>{const n=rt(i,t);return e.multiple?n:n[0]})),l=(0,d.F)("useGroup");function u(e,n){const r=e,a=Symbol.for(`${t.description}:id`),u=(0,s.bY)(a,l?.vnode),c=u.indexOf(n);void 0===(0,o.SU)(r.value)&&(r.value=c,r.useIndexAsValue=!0),c>-1?i.splice(c,0,r):i.push(r)}function c(e){if(n)return;p();const t=i.findIndex((t=>t.id===e));i.splice(t,1)}function p(){const t=i.find((e=>!e.disabled));t&&"force"===e.mandatory&&!a.value.length&&(a.value=[t.id])}function f(t,n){const r=i.find((e=>e.id===t));if(!n||!r?.disabled)if(e.multiple){const r=a.value.slice(),i=r.findIndex((e=>e===t)),o=~i;if(n=n??!o,o&&e.mandatory&&r.length<=1)return;if(!o&&null!=e.max&&r.length+1>e.max)return;i<0&&n?r.push(t):i>=0&&!n&&r.splice(i,1),a.value=r}else{const r=a.value.includes(t);if(e.mandatory&&r)return;if(!r&&!n)return;a.value=n??!r?[t]:[]}}function m(t){if(e.multiple&&(0,h.Kd)('This method is not supported when using "multiple" prop'),a.value.length){const e=a.value[0],n=i.findIndex((t=>t.id===e));let r=(n+t)%i.length,o=i[r];while(o.disabled&&r!==n)r=(r+t)%i.length,o=i[r];if(o.disabled)return;a.value=[i[r].id]}else{const e=i.find((e=>!e.disabled));e&&(a.value=[e.id])}}(0,r.bv)((()=>{p()})),(0,r.Jd)((()=>{n=!0})),(0,r.ic)((()=>{for(let e=0;e<i.length;e++)i[e].useIndexAsValue&&(i[e].value=e)}));const v={register:u,unregister:c,selected:a,select:f,disabled:(0,o.Vh)((()=>e.disabled)),prev:()=>m(i.length-1),next:()=>m(1),isSelected:e=>a.value.includes(e),selectedClass:(0,o.Vh)((()=>e.selectedClass)),items:(0,o.Vh)((()=>i)),getItemIndex:e=>tt(i,e)};return(0,r.JJ)(t,v),v}function tt(e,t){const n=nt(e,[t]);return n.length?e.findIndex((e=>e.id===n[0])):-1}function nt(e,t){const n=[];return t.forEach((t=>{const r=e.find((e=>(0,Xe.v)(t,e.value))),i=e[t];void 0!==r?.value?n.push(r.id):i?.useIndexAsValue&&n.push(i.id)})),n}function rt(e,t){const n=[];return t.forEach((t=>{const r=e.findIndex((e=>e.id===t));if(~r){const t=e[r];n.push(void 0!==t.value?t.value:r)}})),n}const it=Symbol.for("vuetify:v-btn-toggle"),at=(0,c.U)({...Ye(),...Je()},"VBtnToggle"),ot=(0,k.ev)()({name:"VBtnToggle",props:at(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:i,next:a,prev:o,select:s,selected:l}=et(e,it);return(0,C.L)((()=>{const t=Ke.filterProps(e);return(0,r.Wm)(Ke,(0,r.dG)({class:["v-btn-toggle",e.class]},t,{style:e.style}),{default:()=>[n.default?.({isSelected:i,next:a,prev:o,select:s,selected:l})]})})),{next:a,prev:o,select:s}}});var st=n(1810);const lt=(0,c.U)({color:String,disabled:Boolean,start:Boolean,end:Boolean,icon:st.lE,opacity:[String,Number],...(0,a.l)(),...je(),...x({tag:"i"}),...(0,S.x$)()},"VIcon"),ut=(0,k.ev)()({name:"VIcon",props:lt(),setup(e,t){let{attrs:n,slots:a}=t;const l=(0,o.XI)(),{themeClasses:u}=(0,S.Fg)(),{iconData:c}=(0,st.bi)((()=>l.value||e.icon)),{sizeClasses:d}=We(e),{textColorClasses:h,textColorStyles:p}=(0,pe.rY)((()=>e.color));return(0,C.L)((()=>{const t=a.default?.();t&&(l.value=(0,s.RA)(t).filter((e=>e.type===r.xv&&e.children&&"string"===typeof e.children))[0]?.children);const o=!(!n.onClick&&!n.onClickOnce);return(0,r.Wm)(c.value.component,{tag:e.tag,icon:c.value.icon,class:(0,i.C_)(["v-icon","notranslate",u.value,d.value,h.value,{"v-icon--clickable":
3336o,"v-icon--disabled":e.disabled,"v-icon--start":e.start,"v-icon--end":e.end},e.class]),style:(0,i.j5)([{"--v-icon-opacity":e.opacity},d.value?void 0:{fontSize:(0,s.kb)(e.size),height:(0,s.kb)(e.size),width:(0,s.kb)(e.size)},p.value,e.style]),role:o?"button":void 0,"aria-hidden":!o,tabindex:o?e.disabled?-1:0:void 0},{default:()=>[t]})})),{}}});function ct(e,t){const n=(0,o.iH)(),i=(0,o.XI)(!1);if(l.cu){const a=new IntersectionObserver((t=>{e?.(t,a),i.value=!!t.find((e=>e.isIntersecting))}),t);(0,o.EB)((()=>{a.disconnect()})),(0,r.YP)(n,((e,t)=>{t&&(a.unobserve(t),i.value=!1),e&&a.observe(e)}),{flush:"post"})}return{intersectionRef:n,isIntersecting:i}}const dt=(0,c.U)({reveal:{type:[Boolean,Object],default:!1}},"reveal");function ht(e){const t=900,n=(0,o.Vh)((()=>"object"===typeof e.reveal?Math.max(0,Number(e.reveal.duration??t)):t)),i=(0,o.XI)(e.reveal?"initial":"disabled");return(0,r.bv)((async()=>{e.reveal&&(i.value="initial",await new Promise((e=>requestAnimationFrame(e))),i.value="pending",await new Promise((e=>setTimeout(e,n.value))),i.value="done")})),{duration:n,state:i}}const pt=(0,c.U)({bgColor:String,color:String,indeterminate:[Boolean,String],rounded:Boolean,modelValue:{type:[Number,String],default:0},rotate:{type:[Number,String],default:0},width:{type:[Number,String],default:4},...(0,a.l)(),...dt(),...je(),...x({tag:"div"}),...(0,S.x$)()},"VProgressCircular"),ft=(0,k.ev)()({name:"VProgressCircular",props:pt(),setup(e,t){let{slots:n}=t;const a=20,c=2*Math.PI*a,d=(0,o.iH)(),{themeClasses:h}=(0,S.ER)(e),{sizeClasses:p,sizeStyles:f}=We(e),{textColorClasses:m,textColorStyles:v}=(0,pe.rY)((()=>e.color)),{textColorClasses:g,textColorStyles:y}=(0,pe.rY)((()=>e.bgColor)),{intersectionRef:_,isIntersecting:b}=ct(),{resizeRef:T,contentRect:w}=u(),{state:k,duration:E}=ht(e),I=(0,o.Vh)((()=>"initial"===k.value?0:(0,s.uZ)(parseFloat(e.modelValue),0,100))),x=(0,o.
3336Vh)((()=>Number(e.width))),A=(0,o.Vh)((()=>f.value?Number(e.size):w.value?w.value.width:Math.max(x.value,32))),P=(0,o.Vh)((()=>a/(1-x.value/A.value)*2)),$=(0,o.Vh)((()=>x.value/A.value*P.value)),O=(0,o.Vh)((()=>{const t=(100-I.value)/100*c;return e.rounded&&I.value>0&&I.value<100?(0,s.kb)(Math.min(c-.01,t+$.value)):(0,s.kb)(t)})),N=(0,r.Fl)((()=>{const t=Number(e.rotate);return e.rounded?t+$.value/2/c*360:t}));return(0,r.m0)((()=>{_.value=d.value,T.value=d.value})),(0,C.L)((()=>(0,r.Wm)(e.tag,{ref:d,class:(0,i.C_)(["v-progress-circular",{"v-progress-circular--indeterminate":!!e.indeterminate,"v-progress-circular--visible":b.value,"v-progress-circular--disable-shrink":e.indeterminate&&("disable-shrink"===e.indeterminate||(0,l.QE)()),"v-progress-circular--revealing":["initial","pending"].includes(k.value)},h.value,p.value,m.value,e.class]),style:(0,i.j5)([f.value,v.value,{"--progress-reveal-duration":`${E.value}ms`},e.style]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.indeterminate?void 0:I.value},{default:()=>[(0,r._)("svg",{style:{transform:`rotate(calc(-90deg + ${N.value}deg))`},xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${P.value} ${P.value}`},[(0,r._)("circle",{class:(0,i.C_)(["v-progress-circular__underlay",g.value]),style:(0,i.j5)(y.value),fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":$.value,"stroke-dasharray":c,"stroke-dashoffset":0},null),(0,r._)("circle",{class:"v-progress-circular__overlay",fill:"transparent",cx:"50%",cy:"50%",r:a,"stroke-width":$.value,"stroke-dasharray":c,"stroke-dashoffset":O.value,"stroke-linecap":e.rounded?"round":void 0},null)]),n.default&&(0,r._)("div",{class:"v-progress-circular__content"},[n.default({value:I.value})])]}))),{}}}),mt=(0,c.U)({chunkCount:{type:[Number,String],default:null},chunkWidth:{type:[Number,String],default:null},chunkGap:{type:[Number,String],default:4}},"chunks");function vt(e,t){const n=(0,o.Vh)((()=>!!e.chunkCount||!!e.chunkWidth)),i=(0,r.Fl)((()=>{const n=(0,o.Tn)(t);if(!n)return 0;if(!e.chunkCount)return Number(e.chunkWidth);const r=Number(e.chunkCount),i=n-Number(e.chunkGap)*(r-1);return i/r})),a=(0,o.Vh)((()=>Number(e.chunkGap))),l=(0,r.Fl)((()=>{if(!n.value)return{};const e=(0,s.kb)(a.value),t=(0,s.kb)(i.value);return{maskRepeat:"repeat-x",maskImage:`linear-gradient(90deg, #000, #000 ${t}, transparent ${t}, transparent)`,maskSize:`calc(${t} + ${e}) 100%`}}));function u(e){const n=(0,o.Tn)(t);if(!n)return e;const r=100*a.value/n,l=100*(i.value+a.value)/n,u=Math.floor((e+r)/l+1e-9);return(0,s.uZ)(u*l-r/2,0,100)}return{hasChunks:n,chunksMaskStyles:l,snapValueToChunk:u}}const gt=(0,c.U)({absolute:Boolean,active:{type:Boolean,default:!0},bgColor:String,bgOpacity:[Number,String],bufferValue:{type:[Number,String],default:0},bufferColor:String,bufferOpacity:[Number,String],clickable:Boolean,color:String,height:{type:[Number,String],default:4},indeterminate:Boolean,max:{type:[Number,String],default:100},modelValue:{type:[Number,String],default:0},opacity:[Number,String],reverse:Boolean,stream:Boolean,striped:Boolean,roundedBar:Boolean,...mt(),...(0,a.l)(),...Ee({location:"top"}),...fe(),...x(),...(0,S.x$)()},"VProgressLinear"),yt=(0,k.ev)()({name:"VProgressLinear",props:gt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=(0,o.iH)(),l=(0,$e.z)(e,"modelValue"),{isRtl:c,rtlClasses:d}=(0,w.Vw)(),{themeClasses:h}=(0,S.ER)(e),{locationStyles:p}=Ie(e),{textColorClasses:f,textColorStyles:m}=(0,pe.rY)((()=>e.color)),{backgroundColorClasses:v,backgroundColorStyles:g}=(0,pe.Y5)((()=>e.bgColor||e.color)),{backgroundColorClasses:y,backgroundColorStyles:_}=(0,pe.Y5)((()=>e.bufferColor||e.bgColor||e.color)),{backgroundColorClasses:b,backgroundColorStyles:T}=(0,pe.Y5)((()=>
3336e.color)),{roundedClasses:k}=me(e),{intersectionRef:E,isIntersecting:I}=ct(),x=(0,r.Fl)((()=>parseFloat(e.max))),A=(0,r.Fl)((()=>parseFloat(e.height))),P=(0,r.Fl)((()=>(0,s.uZ)(parseFloat(e.bufferValue)/x.value*100,0,100))),O=(0,r.Fl)((()=>(0,s.uZ)(parseFloat(l.value)/x.value*100,0,100))),N=(0,r.Fl)((()=>c.value!==e.reverse)),L=(0,r.Fl)((()=>e.indeterminate?"fade-transition":"slide-x-transition")),D=(0,o.XI)(0),{hasChunks:R,chunksMaskStyles:F,snapValueToChunk:M}=vt(e,D);(0,De.U)(R,(()=>{const{resizeRef:e}=u((e=>D.value=e[0].contentRect.width));(0,r.m0)((()=>e.value=a.value))}));const V=(0,r.Fl)((()=>R.value?M(P.value):P.value)),U=(0,r.Fl)((()=>R.value?M(O.value):O.value));function B(e){if(!E.value)return;const{left:t,right:n,width:r}=E.value.getBoundingClientRect(),i=N.value?r-e.clientX+(n-r):e.clientX-t;l.value=Math.round(i/r*x.value)}return(0,r.m0)((()=>{E.value=a.value})),(0,C.L)((()=>(0,r.Wm)(e.tag,{ref:a,class:(0,i.C_)(["v-progress-linear",{"v-progress-linear--absolute":e.absolute,"v-progress-linear--active":e.active&&I.value,"v-progress-linear--reverse":N.value,"v-progress-linear--rounded":e.rounded,"v-progress-linear--rounded-bar":e.roundedBar,"v-progress-linear--striped":e.striped,"v-progress-linear--clickable":e.clickable},k.value,h.value,d.value,e.class]),style:(0,i.j5)([{bottom:"bottom"===e.location?0:void 0,top:"top"===e.location?0:void 0,height:e.active?(0,s.kb)(A.value):0,"--v-progress-linear-height":(0,s.kb)(A.value),...e.absolute?p.value:{}},F.value,e.style]),role:"progressbar","aria-hidden":e.active?"false":"true","aria-valuemin":"0","aria-valuemax":e.max,"aria-valuenow":e.indeterminate?void 0:Math.min(parseFloat(l.value),x.value),onClick:e.clickable&&B},{default:()=>[e.stream&&(0,r._)("div",{key:"stream",class:(0,i.C_)(["v-progress-linear__stream",f.value]),style:{...m.value,[N.value?"left":"right"]:(0,s.kb)(-A.value),borderTop:`${(0,s.kb)(A.value/2)} dotted`,opacity:null!=e.bufferOpacity?parseFloat(e.bufferOpacity):void 0,top:`calc(50% - ${(0,s.kb)(A.value/4)})`,width:(0,s.kb)(100-P.value,"%"),"--v-progress-linear-stream-to":(0,s.kb)(A.value*(N.value?1:-1))}},null),(0,r._)("div",{class:(0,i.C_)(["v-progress-linear__background",v.value]),style:(0,i.j5)([g.value,{opacity:null!=e.bgOpacity?parseFloat(e.bgOpacity):void 0,width:e.stream?0:void 0}])},null),(0,r._)("div",{class:(0,i.C_)(["v-progress-linear__buffer",y.value]),style:(0,i.j5)([_.value,{opacity:null!=e.bufferOpacity?parseFloat(e.bufferOpacity):void 0,width:(0,s.kb)(V.value,"%")}])},null),(0,r.Wm)($.uT,{name:L.value},{default:()=>[e.indeterminate?(0,r._)("div",{class:"v-progress-linear__indeterminate"},[["long","short"].map((e=>(0,r._)("div",{key:e,class:(0,i.C_)(["v-progress-linear__indeterminate",e,b.value]),style:(0,i.j5)(T.value)},null)))]):(0,r._)("div",{class:(0,i.C_)(["v-progress-linear__determinate",b.value]),style:(0,i.j5)([T.value,{width:(0,s.kb)(U.value,"%")}])},null)]}),n.default&&(0,r._)("div",{class:"v-progress-linear__content"},[n.default({value:O.value,buffer:P.value})])]}))),{}}}),_t=(0,c.U)({loading:[Boolean,String]},"loader");function bt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,o.Vh)((()=>({[`${t}--loading`]:e.loading})));return{loaderClasses:n}}function Tt(e,t){let{slots:n}=t;return(0,r._)("div",{class:(0,i.C_)(`${e.name}__loader`)},[n.default?.({color:e.color,isActive:e.active})||(0,r.Wm)(yt,{absolute:e.absolute,active:e.active,color:e.color,height:"2",indeterminate:!0},null)])}const wt=["static","relative","fixed","absolute","sticky"],St=(0,c.U)({position:{type:String,validator:e=>wt.includes(e)}},"position");function kt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,o.Vh)((()=>e.position?`${t}--${e.position}`:void 0));return{positionClasses:n}}var Ct=n(814);function Et(e,t){(0,r.YP)((()=>e.isActive?.value),(n=>{e.isLink.value&&null!=n&&t&&(0,r.Y3)((()=>{t(n)}))}),{immediate:!0})}var It=n(3563);const xt=(0,c.U)({active:{type:Boolean,default:void 0},activeColor:String,baseColor:String,symbol:{type:null,default:it},flat:Boolean,icon:[Boolean,String,Function,Object],prependIcon:st.lE,appendIcon:st.lE,block:Boolean,readonly:Boolean,slim:Boolean,stacked:Boolean,spaced:String,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},...be(),...(0,a.l)(),...Ve(),...(0,ue.x)(),...we(),...Ze(),..._t(),...Ee(),...St(),...fe(),...(0,Ct.GN)(),...je(),...x({tag:"button"}),...(0,S.x$)(),...Ge({variant:"elevated"})},"VBtn"),At=(0,k.ev)()({name:"VBtn",props:xt(),emits:{"group:selected":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{themeClasses:s}=(0,S.ER)(e),{borderClasses:l}=Te(e),{densityClasses:u}=Ue(e),{dimensionStyles:c}=(0,ue.$)(e),{elevationClasses:d}=Se(e),{loaderClasses:h}=bt(e),{locationStyles:p}=Ie(e),{positionClasses:f}
3336=kt(e),{roundedClasses:m}=me(e),{sizeClasses:v,sizeStyles:g}=We(e),y=Qe(e,e.symbol,!1),_=(0,Ct.nB)(e,n),b=(0,r.Fl)((()=>void 0!==e.active?e.active:_.isRouterLink.value?_.isActive?.value:y?.isSelected.value)),T=(0,o.Vh)((()=>b.value?e.activeColor??e.color:e.color)),w=(0,r.Fl)((()=>{const t=y?.isSelected.value&&(!_.isLink.value||_.isActive?.value)||!y||_.isActive?.value;return{color:t?T.value??e.baseColor:e.baseColor,variant:e.variant}})),{colorClasses:k,colorStyles:E,variantClasses:I}=ze(w),x=(0,r.Fl)((()=>y?.disabled.value||e.disabled)),A=(0,o.Vh)((()=>"elevated"===e.variant&&!(e.disabled||e.flat||e.border))),P=(0,r.Fl)((()=>{if(void 0!==e.value&&"symbol"!==typeof e.value)return Object(e.value)===e.value?JSON.stringify(e.value,null,0):e.value}));function $(e){x.value||_.isLink.value&&(e.metaKey||e.ctrlKey||e.shiftKey||0!==e.button||"_blank"===n.target)||(_.isRouterLink.value?_.navigate.value?.(e):y?.toggle())}return Et(_,y?.select),(0,C.L)((()=>{const t=_.isLink.value?"a":e.tag,n=!(!e.prependIcon&&!a.prepend),o=!(!e.appendIcon&&!a.append),T=!(!e.icon||!0===e.icon);return(0,r.wy)((0,r.Wm)(t,(0,r.dG)(_.linkProps,{type:"a"===t?void 0:"button",class:["v-btn",y?.selectedClass.value,{"v-btn--active":b.value,"v-btn--block":e.block,"v-btn--disabled":x.value,"v-btn--elevated":A.value,"v-btn--flat":e.flat,"v-btn--icon":!!e.icon,"v-btn--loading":e.loading,"v-btn--readonly":e.readonly,"v-btn--slim":e.slim,"v-btn--stacked":e.stacked},e.spaced?["v-btn--spaced",`v-btn--spaced-${e.spaced}`]:[],s.value,l.value,k.value,u.value,d.value,h.value,f.value,m.value,v.value,I.value,e.class],style:[E.value,c.value,p.value,g.value,e.style],"aria-busy":!!e.loading||void 0,disabled:x.value&&"a"!==t||void 0,tabindex:e.loading||e.readonly?-1:void 0,onClick:$,value:P.value}),{default:()=>[qe(!0,"v-btn"),!e.icon&&n&&(0,r._)("span",{key:"prepend",class:"v-btn__prepend"},[a.prepend?(0,r.Wm)(le,{key:"prepend-defaults",disabled:!e.prependIcon,defaults:{VIcon:{icon:e.prependIcon}}},a.prepend):(0,r.Wm)(ut,{key:"prepend-icon",icon:e.prependIcon},null)]),(0,r._)("span",{class:"v-btn__content","data-no-activator":""},[!a.default&&T?(0,r.Wm)(ut,{key:"content-icon",icon:e.icon}
3336,null):(0,r.Wm)(le,{key:"content-defaults",disabled:!T,defaults:{VIcon:{icon:e.icon}}},{default:()=>[a.default?.()??(0,i.zw)(e.text)]})]),!e.icon&&o&&(0,r._)("span",{key:"append",class:"v-btn__append"},[a.append?(0,r.Wm)(le,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VIcon:{icon:e.appendIcon}}},a.append):(0,r.Wm)(ut,{key:"append-icon",icon:e.appendIcon},null)]),!!e.loading&&(0,r._)("span",{key:"loader",class:"v-btn__loader"},[a.loader?.()??(0,r.Wm)(ft,{color:"boolean"===typeof e.loading?void 0:e.loading,indeterminate:!0,width:"2"},null)])]}),[[It.Z,!x.value&&e.ripple,"",{center:!!e.icon}]])})),{group:y}}}),Pt=(0,c.U)({...(0,s.CE)(xt({icon:"$menu",variant:"text"}),["spaced"])},"VAppBarNavIcon"),$t=(0,k.ev)()({name:"VAppBarNavIcon",props:Pt(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(At,(0,r.dG)(e,{class:["v-app-bar-nav-icon"]}),n))),{}}}),Ot=(0,k.ev)()({name:"VAppBarTitle",props:A(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(P,(0,r.dG)(e,{class:"v-app-bar-title"}),n))),{}}});function Nt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"div",n=arguments.length>2?arguments[2]:void 0;return(0,k.ev)()({name:n??(0,i.kC)((0,i._A)(e.replace(/__/g,"-"))),props:{tag:{type:String,default:t},...(0,a.l)()},setup(t,n){let{slots:i}=n;return()=>(0,r.h)(t.tag,{class:[e,t.class],style:t.style},i.default?.())}})}const Lt=Nt("v-alert-title"),Dt=(0,c.U)({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[["x-small",10],["small",16],["default",24],["large",28],["x-large",32]]}},"iconSize");function Rt(e,t){const n=(0,r.Fl)((()=>{const n=new Map(e.iconSizes),r=e.iconSize??t()??"default";return n.has(r)?n.get(r):r}));return{iconSize:n}}const Ft=["success","info","warning","error"],Mt=(0,c.U)({border:{type:[Boolean,String],validator:e=>"boolean"===typeof e||["top","end","bottom","start"].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:st.lE,default:"$close"},closeLabel:{type:String,default:"$vuetify.close"},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>Ft.includes(e)},...(0,a.l)(),...Ve(),...(0,ue.x)(),...we(),...Dt(),...Ee(),...St(),...fe(),...x(),...(0,S.x$)(),...Ge({variant:"flat"})},"VAlert"),Vt=(0,k.ev)()({name:"VAlert",props:Mt(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const s=(0,$e.z)(e,"modelValue"),l=(0,o.Vh)((()=>{if(!1!==e.icon)return e.type?e.icon??`$${e.type}`:e.icon})),{iconSize:u}=Rt(e,(()=>e.prominent?44:void 0)),{themeClasses:c}=(0,S.ER)(e),{colorClasses:d,colorStyles:h,variantClasses:p}=ze((()=>({color:e.color??e.type,variant:e.variant}))),{densityClasses:f}=Ue(e),{dimensionStyles:m}=(0,ue.$)(e),{elevationClasses:v}=Se(e),{locationStyles:g}=Ie(e),{positionClasses:y}
3336=kt(e),{roundedClasses:_}=me(e),{textColorClasses:b,textColorStyles:T}=(0,pe.rY)((()=>e.borderColor)),{t:k}=(0,w.bU)(),C=(0,o.Vh)((()=>({"aria-label":k(e.closeLabel),onClick(e){s.value=!1,n("click:close",e)}})));return()=>{const t=!(!a.prepend&&!l.value),n=!(!a.title&&!e.title),o=!(!a.close&&!e.closable),w={density:e.density,icon:l.value,size:e.iconSize||e.prominent?u.value:void 0};return s.value&&(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-alert",e.border&&{"v-alert--border":!!e.border,[`v-alert--border-${!0===e.border?"start":e.border}`]:!0},{"v-alert--prominent":e.prominent},c.value,d.value,f.value,v.value,y.value,_.value,p.value,e.class]),style:(0,i.j5)([h.value,m.value,g.value,e.style]),role:"alert"},{default:()=>[qe(!1,"v-alert"),e.border&&(0,r._)("div",{key:"border",class:(0,i.C_)(["v-alert__border",b.value]),style:(0,i.j5)(T.value)},null),t&&(0,r._)("div",{key:"prepend",class:"v-alert__prepend"},[a.prepend?(0,r.Wm)(le,{key:"prepend-defaults",disabled:!l.value,defaults:{VIcon:{...w}}},a.prepend):(0,r.Wm)(ut,(0,r.dG)({key:"prepend-icon"},w),null)]),(0,r._)("div",{class:"v-alert__content"},[n&&(0,r.Wm)(Lt,{key:"title"},{default:()=>[a.title?.()??e.title]}),a.text?.()??e.text,a.default?.()]),a.append&&(0,r._)("div",{key:"append",class:"v-alert__append"},[a.append()]),o&&(0,r._)("div",{key:"close",class:"v-alert__close"},[a.close?(0,r.Wm)(le,{key:"close-defaults",defaults:{VBtn:{icon:e.closeIcon,size:"x-small",variant:"text"}}},{default:()=>[a.close?.({props:C.value})]}):(0,r.Wm)(At,(0,r.dG)({key:"close-btn",icon:e.closeIcon,size:"x-small",variant:"text"},C.value),null)])]})}}}),Ut=(0,c.U)({start:Boolean,end:Boolean,icon:st.lE,image:String,text:String,...be(),...(0,a.l)(),...Ve(),...fe(),...je(),...x(),...(0,S.x$)(),...Ge({variant:"flat"})},"VAvatar"),Bt=(0,k.ev)()({name:"VAvatar",props:Ut(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{borderClasses:o}=Te(e),{colorClasses:s,colorStyles:l,variantClasses:u}=ze(e),{densityClasses:c}
3336=Ue(e),{roundedClasses:d}=me(e),{sizeClasses:h,sizeStyles:p}=We(e);return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-avatar",{"v-avatar--start":e.start,"v-avatar--end":e.end},a.value,o.value,s.value,c.value,d.value,h.value,u.value,e.class]),style:(0,i.j5)([l.value,p.value,e.style])},{default:()=>[n.default?(0,r.Wm)(le,{key:"content-defaults",defaults:{VImg:{cover:!0,src:e.image},VIcon:{icon:e.icon}}},{default:()=>[n.default()]}):e.image?(0,r.Wm)(_e,{key:"image",src:e.image,alt:"",cover:!0},null):e.icon?(0,r.Wm)(ut,{key:"icon",icon:e.icon},null):e.text,qe(!1,"v-avatar")]}))),{}}}),jt=(0,c.U)({text:String,onClick:(0,s.as)(),...(0,a.l)(),...(0,S.x$)()},"VLabel"),Wt=(0,k.ev)()({name:"VLabel",props:jt(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r._)("label",{class:(0,i.C_)(["v-label",{"v-label--clickable":!!e.onClick},e.class]),style:(0,i.j5)(e.style),onClick:e.onClick},[e.text,n.default?.()]))),{}}}),Ht=Symbol.for("vuetify:selection-control-group"),qt=(0,c.U)({color:String,disabled:{type:Boolean,default:null},defaultsTarget:String,error:Boolean,id:String,inline:Boolean,falseIcon:st.lE,trueIcon:st.lE,ripple:{type:[Boolean,Object],default:!0},multiple:{type:Boolean,default:null},name:String,readonly:{type:Boolean,default:null},modelValue:null,type:String,valueComparator:{type:Function,default:Xe.v},...(0,a.l)(),...Ve(),...(0,S.x$)()},"SelectionControlGroup"),Gt=(0,c.U)({...qt({defaultsTarget:"VSelectionControl"})},"VSelectionControlGroup"),zt=(0,k.ev)()({name:"VSelectionControlGroup",props:Gt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=(0,$e.z)(e,"modelValue"),s=(0,r.Me)(),l=(0,o.Vh)((()=>e.id||`v-selection-control-group-${s}`)),u=(0,o.Vh)((()=>e.name||l.value)),c=new Set;return(0,r.JJ)(Ht,{modelValue:a,forceUpdate:()=>{c.forEach((e=>e()))},onForceUpdate:e=>{c.add(e),(0,o.EB)((()=>{c.delete(e)}))}}),(0,oe.AF)({[e.defaultsTarget]:{color:(0,o.Vh)((()=>e.color)),disabled:(0,o.Vh)((()=>e.disabled)),density:(0,o.Vh)((()=>e.density)),error:(0,o.Vh)((()=>e.error)),inline:(0,o.Vh)((()=>e.inline)),modelValue:a,multiple:(0,o.Vh)((()=>!!e.multiple||null==e.multiple&&Array.isArray(a.value))),name:u,falseIcon:(0,o.Vh)((()=>e.falseIcon)),trueIcon:(0,o.Vh)((()=>e.trueIcon)),readonly:(0,o.Vh)((()=>e.readonly)),ripple:(0,o.Vh)((()=>e.ripple)),type:(0,o.Vh)((()=>e.type)),valueComparator:(0,o.Vh)((()=>e.valueComparator))}}),(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-selection-control-group",{"v-selection-control-group--inline":e.inline},e.class]),style:(0,i.j5)(e.style),role:"radio"===e.type?"radiogroup":void 0},[n.default?.()]))),{}}}),Yt=(0,c.U)({label:String,baseColor:String,trueValue:null,falseValue:null,value:null,...(0,a.l)(),...qt()},"VSelectionControl");function Kt(e){const t=(0,r.f3)(Ht,void 0),{densityClasses:n}=Ue(e),i=(0,$e.z)(e,"modelValue"),a=(0,r.Fl)((()=>void 0!==e.trueValue?e.trueValue:void 0===e.value||e.value)),o=(0,r.Fl)((()=>void 0!==e.falseValue&&e.falseValue)),l=(0,r.Fl)((()=>!!e.multiple||null==e.multiple&&Array.isArray(i.value))),u=(0,r.Fl)({get(){const n=t?t.modelValue.value:i.value;return l.value?(0,s.FT)(n).some((t=>e.valueComparator(t,a.value))):e.valueComparator(n,a.value)},set(n){if(e.readonly)return;const r=n?a.value:o.value;let u=r;l.value&&(u=n?[...(0,s.FT)(i.value),r]:(0,s.FT)(i.value).filter((t=>!e.valueComparator(t,a.value)))),t?t.modelValue.value=u:i.value=u}}),{textColorClasses:c,textColorStyles:d}=(0,pe.rY)((()=>{if(!e.error&&!e.disabled)return u.value?e.color:e.baseColor})),{backgroundColorClasses:h,backgroundColorStyles:p}=(0,pe.Y5)((()=>!u.value||e.error||e.disabled?e.baseColor:e.color)),f=(0,r.Fl)((()=>u.value?e.trueIcon:e.falseIcon));return{group:t,densityClasses:n,trueValue:a,falseValue:o,model:u,textColorClasses:c,textColorStyles:d,backgroundColorClasses:h,backgroundColorStyles:p,icon:f}}const Xt=(0,k.ev)()({name:"VSelectionControl",directives:{vRipple:It.Z},inheritAttrs:!1,props:Yt(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const{group:l,densityClasses:u,icon:c,model:d,textColorClasses:h,textColorStyles:p,backgroundColorClasses:f,backgroundColorStyles:m,trueValue:v}=Kt(e),g=(0,r.Me)(),y=(0,o.XI)(!1),_=(0,o.XI)(!1),b=(0,o.iH)(),T=(0,o.Vh)((()=>e.id||`input-${g}`)),w=(0,o.Vh)((()=>!e.disabled&&!e.readonly));function S(e){w.value&&(y.value=!0,!1!==(0,s.Ku)(e.target,":focus-visible")&&(_.value=!0))}function k(){y.value=!1,_.value=!1}function E(e){e.stopPropagation()}function I(t){w.value?(e.readonly&&l&&(0,r.Y3)((()=>l.forceUpdate())),d.value=t.target.checked):b.value&&(b.value.checked=d.value)}return l?.onForceUpdate((()=>{b.value&&(b.value.checked=d.value)})),(0,C.L)((()=>{const t=a.label?a.label({label:e.label,props:{for:T.value}}):e.label,[o,l]=(0,s.An)(n),g=(0,r._)("input",(0,r.dG)({ref:b,checked:d.value,disabled:!!e.disabled,id:T.value,onBlur:k,onFocus:S,onInput:I,"aria-disabled":!!e.disabled,"aria-label":e.label,type:e.type,value:v.value,name:e.name,"aria-checked":"checkbox"===e.type?d.value:void 0},l),null);return(0,r._)("div",(0,r.dG)({class:["v-selection-control",{"v-selection-control--dirty":d.value,"v-selection-control--disabled":e.disabled,"v-selection-control--error":e.error,"v-selection-control--focused":y.value,"v-selection-control--focus-visible":_.value,"v-selection-control--inline":e.inline},u.value,e.class]},o,{style:e.style}),[(0,r._)("div",{class:(0,i.C_)(["v-selection-control__wrapper",h.value]),style:(0,i.j5)(p.value)},[a.default?.({backgroundColorClasses:f,backgroundColorStyles:m}),(0,r.wy)((0,r._)("div",{class:(0,i.C_)(["v-selection-control__input"])},[a.input?.({model:d,textColorClasses:h,textColorStyles:p,backgroundColorClasses:f,backgroundColorStyles:m,inputNode:g,icon:c.value,props:{onFocus:S,onBlur:k,id:T.value}})??(0,r._)(r.HY,null,[c.value&&(0,r.Wm)(ut,{key:"icon",icon:c.value},null),g])]),[[It.Z,!e.disabled&&!e.readonly&&e.ripple,null,{center:!0,circle:!0}]])]),t&&(0,r.Wm)(Wt,{for:T.value,onClick:E},{default:()=>[t]})])})),{isFocused:y,input:b}}}),Jt=(0,c.U)({indeterminate:Boolean,indeterminateIcon:{type:st.lE,default:"$checkboxIndeterminate"},...Yt({falseIcon:"$checkboxOff",trueIcon:"$checkboxOn"})},"VCheckboxBtn"),Zt=(0,k.ev)()({name:"VCheckboxBtn",props:Jt(),emits:{"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"indeterminate"),a=(0,$e.z)(e,"modelValue");function l(e){i.value&&(i.value=!1)}const u=(0,o.Vh)((()=>i.value?e.indeterminateIcon:e.falseIcon)),c=(0,o.Vh)((()=>i.value?e.indeterminateIcon:e.trueIcon));return(0,C.L)((()=>{const t=(0,s.CE)(Xt.filterProps(e),["modelValue"]);return(0,r.Wm)(Xt,(0,r.dG)(t,{modelValue:a.value,"onUpdate:modelValue":[e=>a.value=e,l],class:["v-checkbox-btn",e.class],style:e.style,type:"checkbox",falseIcon:u.value,trueIcon:c.value,"aria-checked":i.value?"mixed":void 0}),n)})),{}}});var Qt=n(5879),en=n(2731);function tn(e){let{selectedElement:t,containerElement:n,isRtl:r,isHorizontal:i}=e;const a=sn(i,n),o=on(i,r,n),s=sn(i,t),l=ln(i,t),u=.4*s;return o>l?l-u:o+a<l+s?l-a+s+u:o}function nn(e){let{selectedElement:t,containerElement:n,isHorizontal:r}=e;const i=sn(r,n),a=ln(r,t),o=sn(r,t);return a-i/2+o/2}function rn(e,t){const n=e?"scrollWidth":"scrollHeight";return t?.[n]||0}function an(e,t){const n=e?"clientWidth":"clientHeight";return t?.[n]||0}function on(e,t,n){if(!n)return 0;const{scrollLeft:r,offsetWidth:i,scrollWidth:a}=n;return e?t?a-i+r:r:n.scrollTop}function sn(e,t){const n=e?"offsetWidth":"offsetHeight";return t?.[n]||0}function ln(e,t){const n=e?"offsetLeft":"offsetTop";return t?.[n]||0}const un=Symbol.for("vuetify:v-slide-group"),cn=(0,c.U)({centerActive:Boolean,scrollToActive:{type:Boolean,default:!0},contentClass:null,direction:{type:String,default:"horizontal"},symbol:{type:null,default:un},nextIcon:{type:st.lE,default:"$next"},prevIcon:{type:st.lE,default:"$prev"},showArrows:{type:[Boolean,String],validator:e=>"boolean"===typeof e||["always","desktop","mobile","never"].includes(e)},...(0,a.l)(),...(0,Qt.Tp)({mobile:null}),...x(),...Je({selectedClass:"v-slide-group-item--active"})},"VSlideGroup"),dn=(0,k.ev)()({name:"VSlideGroup",props:cn(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{isRtl:a}
3336=(0,w.Vw)(),{displayClasses:c,mobile:d}=(0,Qt.AW)(e),h=et(e,e.symbol),p=(0,o.XI)(!1),f=(0,o.XI)(0),m=(0,o.XI)(0),v=(0,o.XI)(0),g=(0,r.Fl)((()=>"horizontal"===e.direction)),{resizeRef:y,contentRect:_}=u(),{resizeRef:b,contentRect:T}=u(),S=(0,en.jg)(),k=(0,r.Fl)((()=>({container:y.el,duration:200,easing:"easeOutQuart"}))),E=(0,r.Fl)((()=>h.selected.value.length?h.items.value.findIndex((e=>e.id===h.selected.value[0])):-1)),I=(0,r.Fl)((()=>h.selected.value.length?h.items.value.findIndex((e=>e.id===h.selected.value[h.selected.value.length-1])):-1));if(l.BR){let t=-1;(0,r.YP)((()=>[h.selected.value,_.value,T.value,g.value]),(()=>{cancelAnimationFrame(t),t=requestAnimationFrame((()=>{if(_.value&&T.value){const e=g.value?"width":"height";m.value=_.value[e],v.value=T.value[e],p.value=m.value+1<v.value}if(e.scrollToActive&&E.value>=0&&b.el){const t=b.el.children[I.value];A(t,e.centerActive)}}))}))}const x=(0,o.XI)(!1);function A(e,t){let n=0;n=t?nn({containerElement:y.el,isHorizontal:g.value,selectedElement:e}):tn({containerElement:y.el,isHorizontal:g.value,isRtl:a.value,selectedElement:e}),P(n)}function P(e){if(!l.BR||!y.el)return;const t=sn(g.value,y.el),n=on(g.value,a.value,y.el),r=rn(g.value,y.el);if(!(r<=t||Math.abs(e-n)<16)){if(g.value&&a.value&&y.el){const{scrollWidth:t,offsetWidth:n}=y.el;e=t-n-e}g.value?S.horizontal(e,k.value):S(e,k.value)}}function $(e){const{scrollTop:t,scrollLeft:n}=e.target;f.value=g.value?n:t}function O(e){if(x.value=!0,p.value&&b.el)for(const t of e.composedPath())for(const e of b.el.children)if(e===t)return void A(e)}function N(e){x.value=!1}let L=!1;function D(e){L||x.value||e.relatedTarget&&b.el?.contains(e.relatedTarget)||V(),L=!1}function R(){L=!0}function F(e){function t(t){e.preventDefault(),V(t)}b.el&&(g.value?"ArrowRight"===e.key?t(a.value?"prev":"next"):"ArrowLeft"===e.key&&t(a.value?"next":"prev"):"ArrowDown"===e.key?t("next"):"ArrowUp"===e.key&&t("prev"),"Home"===e.key?t("first"):"End"===e.key&&t("last"))}function M(e,t){if(!e)return;let n=e;do{n=n?.["next"===t?"nextElementSibling":"previousElementSibling"]}while(n?.hasAttribute("disabled"));return n}function V(e){if(!b.el)return;let t;if(e)if("next"===e){if(t=M(b.el.querySelector(":focus"),e),!t)return V("first")}else if("prev"===e){if(t=M(b.el.querySelector(":focus"),e),!t)return V("last")}else"first"===e?(t=b.el.firstElementChild,t?.hasAttribute("disabled")&&(t=M(t,"next"))):"last"===e&&(t=b.el.lastElementChild,t?.hasAttribute("disabled")&&(t=M(t,"prev")));else{const e=(0,s.ef)(b.el);t=e[0]}t&&t.focus({preventScroll:!0})}function U(e){const t=g.value&&a.value?-1:1,n=("prev"===e?-t:t)*m.value;let r=f.value+n;if(g.value&&a.value&&y.el){const{scrollWidth:e,offsetWidth:t}=y.el;r+=e-t}P(r)}const B=(0,r.Fl)((()=>({next:h.next,prev:h.prev,select:h.select,isSelected:h.isSelected}))),j=(0,r.Fl)((()=>p.value||Math.abs(f.value)>0)),W=(0,r.Fl)((()=>{switch(e.showArrows){case"never":return!1;case"always":return!0;case"desktop":return!d.value;case!0:return j.value;case"mobile":return d.value||j.value;default:return!d.value&&j.value}})),H=(0,r.Fl)((()=>Math.abs(f.value)>1)),q=(0,r.Fl)((()=>{if(!y.value||!j.value)return!1;const e=rn(g.value,y.el),t=an(g.value,y.el),n=e-t;return n-Math.abs(f.value)>1}));return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-slide-group",{"v-slide-group--vertical":!g.value,"v-slide-group--has-affixes":W.value,"v-slide-group--is-overflowing":p.value},c.value,e.class]),style:(0,i.j5)(e.style),tabindex:x.value||h.selected.value.length?-1:0,onFocus:D},{default:()=>[W.value&&(0,r._)("div",{key:"prev",class:(0,i.C_)(["v-slide-group__prev",{"v-slide-group__prev--disabled":!H.value}]),onMousedown:R,onClick:()=>H.value&&U("prev")},[n.prev?.(B.value)??(0,r.Wm)(z,null,{default:()=>[(0,r.Wm)(ut,{icon:a.value?e.nextIcon:e.prevIcon},null)]})]),(0,r._)("div",{key:"container",ref:y,class:(0,i.C_)(["v-slide-group__container",e.contentClass]),onScroll:$},[(0,r._)("div",{ref:b,class:"v-slide-group__content",onFocusin:O,onFocusout:N,onKeydown:F},[n.default?.(B.value)])]),W.value&&(0,r._)("div",{key:"next",class:(0,i.C_)(["v-slide-group__next",{"v-slide-group__next--disabled":!q.value}]),onMousedown:R,onClick:()=>q.value&&U("next")},[n.next?.(B.value)??(0,r.Wm)(z,null,{default:()=>[(0,r.Wm)(ut,{icon:a.value?e.prevIcon:e.nextIcon},null)]})])]}))),{selected:h.selected,scrollTo:U,scrollOffset:f,focus:V,hasPrev:H,hasNext:q}}}),hn=Symbol.for("vuetify:v-chip-group"),pn=(0,c.U)({baseColor:String,column:Boolean,filter:Boolean,valueComparator:{type:Function,default:Xe.v},...cn({scrollToActive:!1}),...(0,a.l)(),...Je({selectedClass:"v-chip--selected"}),...x(),...(0,S.x$)(),...Ge({variant:"tonal"})},"VChipGroup"),fn=(0,k.ev)()({name:"VChipGroup",props:pn(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:i}=(0,S.ER)(e),{isSelected:a,select:s,next:l,prev:u,selected:c}=et(e,hn);return(0,oe.AF)({VChip:{baseColor:(0,o.Vh)((()=>e.baseColor)),color:(0,o.Vh)((()=>
3336e.color)),disabled:(0,o.Vh)((()=>e.disabled)),filter:(0,o.Vh)((()=>e.filter)),variant:(0,o.Vh)((()=>e.variant))}}),(0,C.L)((()=>{const t=dn.filterProps(e);return(0,r.Wm)(dn,(0,r.dG)(t,{class:["v-chip-group",{"v-chip-group--column":e.column},i.value,e.class],style:e.style}),{default:()=>[n.default?.({isSelected:a,select:s,next:l,prev:u,selected:c.value})]})})),{}}}),mn=(0,c.U)({activeClass:String,appendAvatar:String,appendIcon:st.lE,baseColor:String,closable:Boolean,closeIcon:{type:st.lE,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},draggable:Boolean,filter:Boolean,filterIcon:{type:st.lE,default:"$complete"},label:Boolean,link:{type:Boolean,default:void 0},pill:Boolean,prependAvatar:String,prependIcon:st.lE,ripple:{type:[Boolean,Object],default:!0},text:{type:[String,Number,Boolean],default:void 0},modelValue:{type:Boolean,default:!0},onClick:(0,s.as)(),onClickOnce:(0,s.as)(),...be(),...(0,a.l)(),...Ve(),...we(),...Ze(),...fe(),...(0,Ct.GN)(),...je(),...x({tag:"span"}),...(0,S.x$)(),...Ge({variant:"tonal"})},"VChip"),vn=(0,k.ev)()({name:"VChip",directives:{vRipple:It.Z},props:mn(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0,"group:selected":e=>!0,click:e=>!0},setup(e,t){let{attrs:n,emit:a,slots:s}=t;const{t:l}=(0,w.bU)(),{borderClasses:u}=Te(e),{densityClasses:c}=Ue(e),{elevationClasses:d}
3336=Se(e),{roundedClasses:h}=me(e),{sizeClasses:p}=We(e),{themeClasses:f}=(0,S.ER)(e),m=(0,$e.z)(e,"modelValue"),v=Qe(e,hn,!1),g=Qe(e,un,!1),y=(0,Ct.nB)(e,n),_=(0,o.Vh)((()=>!1!==e.link&&y.isLink.value)),b=(0,r.Fl)((()=>!e.disabled&&!1!==e.link&&(!!v||e.link||y.isClickable.value))),T=(0,o.Vh)((()=>({"aria-label":l(e.closeLabel),disabled:e.disabled,onClick(e){e.preventDefault(),e.stopPropagation(),m.value=!1,a("click:close",e)}})));(0,r.YP)(m,(e=>{e?(v?.register(),g?.register()):(v?.unregister(),g?.unregister())}));const{colorClasses:k,colorStyles:C,variantClasses:E}=ze((()=>{const t=!v||v.isSelected.value;return{color:t?e.color??e.baseColor:e.baseColor,variant:e.variant}}));function I(e){a("click",e),b.value&&(y.navigate.value?.(e),v?.toggle())}function x(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),I(e))}return()=>{const t=y.isLink.value?"a":e.tag,n=!(!e.appendIcon&&!e.appendAvatar),a=!(!n&&!s.append),o=!(!s.close&&!e.closable),l=!(!s.filter&&!e.filter)&&v,g=!(!e.prependIcon&&!e.prependAvatar),w=!(!g&&!s.prepend);return m.value&&(0,r.wy)((0,r.Wm)(t,(0,r.dG)(y.linkProps,{class:["v-chip",{"v-chip--disabled":e.disabled,"v-chip--label":e.label,"v-chip--link":b.value,"v-chip--filter":l,"v-chip--pill":e.pill,[`${e.activeClass}`]:e.activeClass&&y.isActive?.value},f.value,u.value,k.value,c.value,d.value,h.value,p.value,E.value,v?.selectedClass.value,e.class],style:[C.value,e.style],disabled:e.disabled||void 0,draggable:e.draggable,tabindex:b.value?0:void 0,onClick:I,onKeydown:b.value&&!_.value&&x}),{default:()=>[qe(b.value,"v-chip"),l&&(0,r.Wm)(ie,{key:"filter"},{default:()=>[(0,r.wy)((0,r._)("div",{class:"v-chip__filter"},[s.filter?(0,r.Wm)(le,{key:"filter-defaults",disabled:!e.filterIcon,defaults:{VIcon:{icon:e.filterIcon}}},s.filter):(0,r.Wm)(ut,{key:"filter-icon",icon:e.filterIcon},null)]),[[$.F8,v.isSelected.value]])]}),w&&(0,r._)("div",{key:"prepend",class:"v-chip__prepend"},[s.prepend?(0,r.Wm)(le,{key:"prepend-defaults",disabled:!g,defaults:{VAvatar:{image:e.prependAvatar,start:!0},VIcon:{icon:e.prependIcon,start:!0}}},s.prepend):(0,r._)(r.HY,null,[e.prependIcon&&(0,r.Wm)(ut,{key:"prepend-icon",icon:e.prependIcon,start:!0},null),e.prependAvatar&&(0,r.Wm)(Bt,{key:"prepend-avatar",image:e.prependAvatar,start:!0},null)])]),(0,r._)("div",{class:"v-chip__content","data-no-activator":""},[s.default?.({isSelected:v?.isSelected.value,selectedClass:v?.selectedClass.value,select:v?.select,toggle:v?.toggle,value:v?.value.value,disabled:e.disabled})??(0,i.zw)(e.text)]),a&&(0,r._)("div",{key:"append",class:"v-chip__append"},[s.append?(0,r.Wm)(le,{key:"append-defaults",disabled:!n,defaults:{VAvatar:{end:!0,image:e.appendAvatar},VIcon:{end:!0,icon:e.appendIcon}}},s.append):(0,r._)(r.HY,null,[e.appendIcon&&(0,r.Wm)(ut,{key:"append-icon",end:!0,icon:e.appendIcon},null),e.appendAvatar&&(0,r.Wm)(Bt,{key:"append-avatar",end:!0,image:e.appendAvatar},null)])]),o&&(0,r._)("button",(0,r.dG)({key:"close",class:"v-chip__close",type:"button","data-testid":"close-chip"},T.value),[s.close?(0,r.Wm)(le,{key:"close-defaults",defaults:{VIcon:{icon:e.closeIcon,size:"x-small"}}},s.close):(0,r.Wm)(ut,{key:"close-icon",icon:e.closeIcon,size:"x-small"},null)])]}),[[It.Z,b.value&&e.ripple,null]])}}}),gn=["dotted","dashed","solid","double"],yn=(0,c.U)({color:String,contentOffset:[Number,String,Array],gradient:Boolean,inset:Boolean,length:[Number,String],opacity:[Number,String],thickness:[Number,String],vertical:Boolean,variant:{type:String,default:"solid",validator:e=>gn.includes(e)},...(0,a.l)(),...(0,S.x$)()},"VDivider"),_n=(0,k.ev)()({name:"VDivider",props:yn(),setup(e,t){let{attrs:n,slots:a}=t;const{themeClasses:l}=(0,S.ER)(e),{textColorClasses:u,textColorStyles:c}=(0,pe.rY)((()=>e.color)),d=(0,r.Fl)((()=>{const t={};return e.length&&(t[e.vertical?"height":"width"]=(0,s.kb)(e.length)),e.thickness&&(t[e.vertical?"borderRightWidth":"borderTopWidth"]=(0,s.kb)(e.thickness)),t})),h=(0,o.Vh)((()=>{const t=Array.isArray(e.contentOffset)?e.contentOffset[0]:e.contentOffset,n=Array.isArray(e.contentOffset)?e.contentOffset[1]:0;return{marginBlock:e.vertical&&t?(0,s.kb)(t):void 0,marginInline:!e.vertical&&t?(0,s.kb)(t):void 0,transform:n?`translate${e.vertical?"X":"Y"}(${(0,s.kb)(n)})`:void 0}}));return(0,C.L)((()=>{const t=(0,r._)("hr",{class:(0,i.C_)([{"v-divider":!0,"v-divider--gradient":e.gradient&&!a.default,"v-divider--inset":e.inset,"v-divider--vertical":e.vertical},l.value,u.value,e.class]),style:(0,i.j5)([d.value,c.value,{"--v-border-opacity":e.opacity},{"border-style":e.variant},e.style]),"aria-orientation":n.role&&"separator"!==n.role?void 0:e.vertical?"vertical":"horizontal",role:`${n.role||"separator"}`},null);return a.default?(0,r._)("div",{class:(0,i.C_)(["v-divider__wrapper",{"v-divider__wrapper--gradient":e.gradient,"v-divider__wrapper--inset":e.inset,"v-divider__wrapper--vertical":e.vertical}])},[t,(0,r._)("div",{class:"v-divider__content",style:(0,i.j5)(h.value)},[a.default()]),t]):t})),{}}});function bn(e){const{t:t}=(0,w.bU)();function n(n){let{name:i,color:a,...o}=n;
3336const l={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendInner:"appendAction",clear:"clear"}[i],u=e[`onClick:${i}`];function c(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),(0,s.dr)(u,new PointerEvent("click",e)))}const d=u&&l?t(`$vuetify.input.${l}`,e.label??""):void 0;return(0,r.Wm)(ut,(0,r.dG)({icon:e[`${i}Icon`],"aria-label":d,onClick:u,onKeydown:c,color:a},o),null)}return{InputIcon:n}}Symbol.for("vuetify:depth");const Tn=Symbol.for("vuetify:list");function wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{filterable:!1};const t=(0,r.f3)(Tn,{filterable:!1,hasPrepend:(0,o.XI)(!1),updateHasPrepend:()=>null,trackingIndex:(0,o.XI)(-1),navigationStrategy:(0,o.XI)("focus"),uid:""}),{filterable:n,trackingIndex:i=t.trackingIndex,navigationStrategy:a=t.navigationStrategy,uid:s=t.uid||(0,r.Me)()}=e,l={filterable:t.filterable||n,hasPrepend:(0,o.XI)(!1),updateHasPrepend:e=>{e&&(l.hasPrepend.value=e)},trackingIndex:i,navigationStrategy:a,uid:s};return(0,r.JJ)(Tn,l),t}function Sn(){return(0,r.f3)(Tn,null)}const kn=e=>{const t={activate:t=>{let{id:n,value:r,activated:i}=t;return n=(0,o.IU)(n),e&&!r&&1===i.size&&i.has(n)||(r?i.add(n):i.delete(n)),i},in:(e,n,r)=>{let i=new Set;if(null!=e)for(const a of(0,s.FT)(e))i=t.activate({id:a,value:!0,activated:new Set(i),children:n,parents:r});return i},out:e=>Array.from(e)};return t},Cn=e=>{const t=kn(e),n={activate:e=>{let{activated:n,id:r,...i}=e;r=(0,o.IU)(r);const a=n.has(r)?new Set([r]):new Set;return t.activate({...i,id:r,activated:a})},in:(e,n,r)=>{let i=new Set;if(null!=e){const a=(0,s.FT)(e);a.length&&(i=t.in(a.slice(0,1),n,r))}return i},out:(e,n,r)=>t.out(e,n,r)};return n},En=e=>{const t=kn(e),n={activate:e=>{let{id:n,activated:r,children:i,...a}=e;return n=(0,o.IU)(n),i.has(n)?r:t.activate({id:n,activated:r,children:i,...a})},in:t.in,out:t.out};return n},In=e=>{const t=Cn(e),n={activate:e=>{let{id:n,activated:r,children:i,...a}=e;return n=(0,o.IU)(n),i.has(n)?r:t.activate({id:n,activated:r,children:i,...a})},in:t.in,out:t.out};return n},xn={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){const e=new Set;e.add(t);let n=i.get(t);while(null!=n)e.add(n),n=i.get(n);return e}return r.delete(t),r},select:()=>null},An={open:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(n){let e=i.get(t);r.add(t);while(null!=e&&e!==t)r.add(e),e=i.get(e);return r}return r.delete(t),r},select:()=>null},Pn={open:An.open,select:e=>{let{id:t,value:n,opened:r,parents:i}=e;if(!n)return r;const a=[];let o=i.get(t);while(null!=o)a.push(o),o=i.get(o);
3336return new Set(a)}},$n=e=>{const t={select:t=>{let{id:n,value:r,selected:i}=t;if(n=(0,o.IU)(n),e&&!r){const e=Array.from(i.entries()).reduce(((e,t)=>{let[n,r]=t;return"on"===r&&e.push(n),e}),[]);if(1===e.length&&e[0]===n)return i}return i.set(n,r?"on":"off"),i},in:(e,n,r,i)=>{const a=new Map;for(const o of e||[])t.select({id:o,value:!0,selected:a,children:n,parents:r,disabled:i});return a},out:e=>{const t=[];for(const[n,r]of e.entries())"on"===r&&t.push(n);return t}};return t},On=e=>{const t=$n(e),n={select:e=>{let{selected:n,id:r,...i}=e;r=(0,o.IU)(r);const a=n.has(r)?new Map([[r,n.get(r)]]):new Map;return t.select({...i,id:r,selected:a})},in:(e,n,r,i)=>e?.length?t.in(e.slice(0,1),n,r,i):new Map,out:(e,n,r)=>t.out(e,n,r)};return n},Nn=e=>{const t=$n(e),n={select:e=>{let{id:n,selected:r,children:i,...a}=e;return n=(0,o.IU)(n),i.has(n)?r:t.select({id:n,selected:r,children:i,...a})},in:t.in,out:t.out};return n},Ln=e=>{const t=On(e),n={select:e=>{let{id:n,selected:r,children:i,...a}=e;return n=(0,o.IU)(n),i.has(n)?r:t.select({id:n,selected:r,children:i,...a})},in:t.in,out:t.out};return n},Dn=e=>{const t={select:t=>{let{id:n,value:r,selected:i,children:a,parents:s,disabled:l}=t;n=(0,o.IU)(n);const u=new Map(i),c=[n];while(c.length){const e=c.shift();l.has(e)||i.set((0,o.IU)(e),r?"on":"off"),a.has(e)&&c.push(...a.get(e))}let d=(0,o.IU)(s.get(n));while(d){let e=!0,t=!0;for(const n of a.get(d)){const r=(0,o.IU)(n);if(!l.has(r)&&("on"!==i.get(r)&&(e=!1),i.has(r)&&"off"!==i.get(r)&&(t=!1),!e&&!t))break}i.set(d,e?"on":t?"off":"indeterminate"),d=(0,o.IU)(s.get(d))}if(e&&!r){const e=Array.from(i.entries()).reduce(((e,t)=>{let[n,r]=t;return"on"===r&&e.push(n),e}),[]);if(0===e.length)return u}return i},in:(e,n,r)=>{let i=new Map;for(const a of e||[])i=t.select({id:a,value:!0,selected:i,children:n,parents:r,disabled:new Set});return i},out:(e,t)=>{const n=[];for(const[r,i]of e.entries())"on"!==i||t.has(r)||n.push(r);return n}};return t},Rn=e=>{const t=Dn(e),n={select:t.select,in:t.in,out:(e,t,n)=>{const r=[];for(const[i,a]of e.entries())if("on"===a){if(n.has(i)){const t=n.get(i);if("on"===e.get(t))continue}r.push(i)}return r}};return n},Fn=e=>{const t=Dn(e),n={select:t.select,in:(e,t,r,i)=>{let a=new Map;for(const o of e||[])t.has(o)||(a=n.select({id:o,value:!0,selected:a,children:t,parents:r,disabled:i}));return a},out:e=>{const t=[];for(const[n,r]of e.entries())"on"!==r&&"indeterminate"!==r||t.push(n);return t}};return n};function Mn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{leading:!0,trailing:!0},r=0,i=0,a=!1,o=0;function s(){clearTimeout(r),a=!1,o=0}const l=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];clearTimeout(r);const d=Date.now();o||(o=d);const h=d-Math.max(o,i);function p(){i=Date.now(),r=setTimeout(s,t),e(...u)}a?h>=t?p():n.trailing&&(r=setTimeout(p,t-h)):(a=!0,n.leading&&p())};return l.clear=s,l.immediate=e,l}const Vn=Symbol.for("vuetify:nested"),Un={id:(0,o.XI)(),root:{itemsRegistration:(0,o.iH)("render"),register:()=>null,unregister:()=>null,updateDisabled:()=>null,children:(0,o.iH)(new Map),parents:(0,o.iH)(new Map),disabled:(0,o.iH)(new Set),open:()=>null,openOnSelect:()=>null,activate:()=>null,select:()=>null,activatable:(0,o.iH)(!1),scrollToActive:(0,o.iH)(!1),selectable:(0,o.iH)(!1),opened:(0,o.iH)(new Set),activated:(0,o.iH)(new Set),selected:(0,o.iH)(new Map),selectedValues:(0,o.iH)([]),getPath:()=>[]}},Bn=(0,c.U)({activatable:Boolean,selectable:Boolean,activeStrategy:[String,Function,Object],selectStrategy:[String,Function,Object],openStrategy:[String,Object],opened:null,activated:null,selected:null,mandatory:Boolean,itemsRegistration:{type:String,default:"render"}},"nested"),jn=(e,t)=>{let{items:n,returnObject:i,scrollToActive:a}=t,s=!1;const l=(0,o.XI)(new Map),u=(0,o.XI)(new Map),c=(0,o.XI)(new Set),p=(0,$e.z)(e,"opened",e.opened,(e=>new Set(Array.isArray(e)?e.map((e=>(0,o.IU)(e))):e)),(e=>[...e.values()])),f=(0,r.Fl)((()=>{if("object"===typeof e.activeStrategy)return e.activeStrategy;if("function"===typeof e.activeStrategy)return e.activeStrategy(e.mandatory);switch(e.activeStrategy){case"leaf":return En(e.mandatory);case"single-leaf":return In(e.mandatory);case"independent":return kn(e.mandatory);case"single-independent":default:return Cn(e.mandatory)}})),m=(0,r.Fl)((()=>
3336{if("object"===typeof e.selectStrategy)return e.selectStrategy;if("function"===typeof e.selectStrategy)return e.selectStrategy(e.mandatory);switch(e.selectStrategy){case"single-leaf":return Ln(e.mandatory);case"leaf":return Nn(e.mandatory);case"independent":return $n(e.mandatory);case"single-independent":return On(e.mandatory);case"trunk":return Rn(e.mandatory);case"branch":return Fn(e.mandatory);case"classic":default:return Dn(e.mandatory)}})),v=(0,r.Fl)((()=>{if("object"===typeof e.openStrategy)return e.openStrategy;switch(e.openStrategy){case"list":return Pn;case"single":return xn;case"multiple":default:return An}})),g=(0,$e.z)(e,"activated",e.activated,(e=>f.value.in(e,l.value,u.value)),(e=>f.value.out(e,l.value,u.value))),y=(0,$e.z)(e,"selected",e.selected,(e=>m.value.in(e,l.value,u.value,c.value)),(e=>m.value.out(e,l.value,u.value)));function _(e){const t=[];let n=(0,o.IU)(e);while(void 0!==n)t.unshift(n),n=u.value.get(n);return t}(0,r.Jd)((()=>{s=!0}));const b=(0,d.F)("nested"),T=new Set,w=Mn((()=>{(0,r.Y3)((()=>{l.value=new Map(l.value),u.value=new Map(u.value)}))}),100);function S(){const e=new Map,t=new Map,r=new Set,a=(0,o.Tn)(i)?e=>(0,o.IU)(e.raw):e=>e.value,s=[...n.value];let d=0;while(d<s.length){const n=s[d++],i=a(n);if(n.children){const r=[];for(const t of n.children){const n=a(t);e.set(n,i),r.push(n),s.push(t)}t.set(i,r)}n.props.disabled&&r.add(i)}l.value=t,u.value=e,c.value=r}(0,r.YP)((()=>[n.value,(0,o.Tn)(i)]),(()=>{"props"===e.itemsRegistration&&S()}),{immediate:!0});const k={id:(0,o.XI)(),root:{opened:p,activatable:(0,o.Vh)((()=>e.activatable)),scrollToActive:(0,o.Vh)((()=>(0,o.Tn)(a))),selectable:(0,o.Vh)((()=>e.selectable)),activated:g,selected:y,selectedValues:(0,r.Fl)((()=>{const e=[];for(const[t,n]of y.value.entries())"on"===n&&e.push(t);return e})),itemsRegistration:(0,o.Vh)((()=>e.itemsRegistration)),register:(e,t,n,r)=>{if(T.has(e)){const n=_(e).map(String).join(" -> "),r=_(t).concat(e).map(String).join(" -> ");(0,h.N6)(`Multiple nodes with the same ID\n\t${n}\n\t${r}`)}else T.add(e),t&&e!==t&&u.value.set(e,t),n&&c.value.add(e),r&&l.value.set(e,[]),null!=t&&l.value.set(t,[...l.value.get(t)||[],e]),w()},unregister:e=>{if(s)return;T.delete(e),l.value.delete(e),c.value.delete(e);const t=u.value.get(e);if(t){const n=l.value.get(t)??[];l.value.set(t,n.filter((t=>t!==e)))}u.value.delete(e),w()},updateDisabled:(e,t)=>{t?c.value.add(e):c.value.delete(e)},open:(e,t,n)=>{b.emit("click:open",{id:e,value:t,path:_(e),event:n});const r=v.value.open({id:e,value:t,opened:new Set(p.value),children:l.value,parents:u.value,event:n});r&&(p.value=r)},openOnSelect:(e,t,n)=>{const r=v.value.select({id:e,value:t,selected:new Map(y.value),opened:new Set(p.value),children:l.value,parents:u.value,event:n});r&&(p.value=r)},select:(e,t,n)=>{b.emit("click:select",{id:e,value:t,path:_(e),event:n});const r=m.value.select({id:e,value:t,selected:new Map(y.value),children:l.value,parents:u.value,disabled:c.value,event:n});r&&(y.value=r),k.root.openOnSelect(e,t,n)},activate:(t,n,r)=>{if(!e.activatable)return k.root.select(t,!0,r);b.emit("click:activate",{id:t,value:n,path:_(t),event:r});const i=f.value.activate({id:t,value:n,activated:new Set(g.value),children:l.value,parents:u.value,event:r});if(i.size!==g.value.size)g.value=i;else{for(const e of i)if(!g.value.has(e))return void(g.value=i);for(const e of g.value)if(!i.has(e))return void(g.value=i)}},children:l,parents:u,disabled:c,getPath:_}};return(0,r.JJ)(Vn,k),k.root},Wn=(e,t,n)=>{const i=(0,r.f3)(Vn,Un),a=Symbol("nested item"),s=(0,r.Fl)((()=>{const t=(0,o.IU)((0,o.Tn)(e));return void 0!==t?t:a})),l={...i,id:s,open:(e,t)=>i.root.open(s.value,e,t),openOnSelect:(e,t)=>i.root.openOnSelect(s.value,e,t),isOpen:(0,r.Fl)((()=>i.root.opened.value.has(s.value))),parent:(0,r.Fl)((()=>i.root.parents.value.get(s.value))),activate:(e,t)=>i.root.activate(s.value,e,t),isActivated:(0,r.Fl)((()=>i.root.activated.value.has(s.value))),scrollToActive:i.root.scrollToActive,select:(e,t)=>i.root.select(s.value,e,t),isSelected:(0,r.Fl)((()=>"on"===i.root.selected.value.get(s.value))),isIndeterminate:(0,r.Fl)((()=>"indeterminate"===i.root.selected.value.get(s.value))),isLeaf:(0,r.Fl)((()=>!i.root.children.value.get(s.value))),isGroupActivator:i.isGroupActivator};return(0,r.wF)((()=>{i.isGroupActivator||"props"===i.root.itemsRegistration.value||(0,r.Y3)((()=>{i.root.register(s.value,i.id.value,(0,o.Tn)(t),n)}))})),(0,r.Jd)((()=>{i.isGroupActivator||"props"===i.root.itemsRegistration.value||i.root.unregister(s.value)})),(0,r.YP)(s,((e,a)=>{i.isGroupActivator||"props"===i.root.itemsRegistration.value||(i.root.unregister(a),(0,r.Y3)((()=>{i.root.register(e,i.id.value,(0,o.Tn)(t),n)})))})),(0,r.YP)((()=>(0,o.Tn)(t)),(e=>{i.root.updateDisabled(s.value,e)})),n&&(0,r.JJ)(Vn,l),l},Hn=()=>{const e=(0,r.f3)(Vn,Un);(0,r.JJ)(Vn,{...e,isGroupActivator:!0})},qn=(0,k.aZ)({name:"VListGroupActivator",setup(e,t){let{slots:n}=t;return Hn(),()=>n.default?.()}}),Gn=(0,c.U)({activeColor:String,baseColor:String,color:String,collapseIcon:{type:st.lE,default:"$collapse"},disabled:Boolean,expandIcon:{type:st.lE,default:"$expand"},rawId:[String,Number],prependIcon:st.lE,appendIcon:st.lE,fluid:Boolean,subgroup:Boolean,title:String,value:null,...(0,a.l)(),...x()},"VListGroup"),zn=(0,k.ev)()({name:"VListGroup",props:Gn(),setup(e,t){let{slots:n}=t;const{isOpen:a,open:s,id:l}=Wn((()=>e.value),(()=>e.disabled),!0),u=(0,r.Fl)((()=>
3336`v-list-group--id-${String(e.rawId??l.value)}`)),c=Sn(),{isBooted:d}=Le(),h=(0,r.f3)(Vn),p=(0,o.Vh)((()=>"render"===h?.root?.itemsRegistration.value));function f(e){["INPUT","TEXTAREA"].includes(e.target?.tagName)||s(!a.value,e)}const m=(0,r.Fl)((()=>({onClick:f,class:"v-list-group__header",id:u.value}))),v=(0,r.Fl)((()=>a.value?e.collapseIcon:e.expandIcon)),g=(0,r.Fl)((()=>({VListItem:{activeColor:e.activeColor,baseColor:e.baseColor,color:e.color,prependIcon:e.prependIcon||e.subgroup&&v.value,appendIcon:e.appendIcon||!e.subgroup&&v.value,title:e.title,value:e.value}})));return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-list-group",{"v-list-group--prepend":c?.hasPrepend.value,"v-list-group--fluid":e.fluid,"v-list-group--subgroup":e.subgroup,"v-list-group--open":a.value},e.class]),style:(0,i.j5)(e.style)},{default:()=>[n.activator&&(0,r.Wm)(le,{defaults:g.value},{default:()=>[(0,r.Wm)(qn,null,{default:()=>[n.activator({props:m.value,isOpen:a.value})]})]}),(0,r.Wm)(ve.J,{transition:{component:re},disabled:!d.value},{default:()=>[p.value?(0,r.wy)((0,r._)("div",{class:"v-list-group__items",role:"group","aria-labelledby":u.value},[n.default?.()]),[[$.F8,a.value]]):a.value&&(0,r._)("div",{class:"v-list-group__items",role:"group","aria-labelledby":u.value},[n.default?.()])]})]}))),{isOpen:a}}}),Yn=(0,c.U)({opacity:[Number,String],...(0,a.l)(),...x()},"VListItemSubtitle"),Kn=(0,k.ev)()({name:"VListItemSubtitle",props:Yn(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-list-item-subtitle",e.class]),style:(0,i.j5)([{"--v-list-item-subtitle-opacity":e.opacity},e.style])},n))),{}}}),Xn=Nt("v-list-item-title"),Jn=(0,c.U)({active:{type:Boolean,default:void 0},activeClass:String,activeColor:String,appendAvatar:String,appendIcon:st.lE,baseColor:String,disabled:Boolean,lines:[Boolean,String],link:{type:Boolean,default:void 0},nav:Boolean,prependAvatar:String,prependIcon:st.lE,ripple:{type:[Boolean,Object],default:!0},slim:Boolean,prependGap:[Number,String],subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},value:null,index:Number,tabindex:[Number,String],onClick:(0,s.as)(),onClickOnce:(0,s.as)(),...be(),...(0,a.l)(),...Ve(),...(0,ue.x)(),...we(),...fe(),...(0,Ct.GN)(),...x(),...(0,S.x$)(),...Ge({variant:"text"})},"VListItem"),Zn=(0,k.ev)()({name:"VListItem",directives:{vRipple:It.Z},props:Jn(),emits:{click:e=>!0},setup(e,t){let{attrs:n,slots:a,emit:l}=t;const u=(0,Ct.nB)(e,n),c=(0,o.iH)(),d=(0,r.Fl)((()=>void 0===e.value?u.href.value:e.value)),{activate:p,isActivated:f,select:m,isOpen:v,isSelected:g,isIndeterminate:y,isGroupActivator:_,root:b,parent:T,openOnSelect:w,scrollToActive:k,id:E}=Wn(d,(()=>e.disabled),!1),I=Sn(),x=(0,r.Fl)((()=>!1!==e.active&&(e.active||u.isActive?.value||(b.activatable.value?f.value:g.value)))),A=(0,o.Vh)((()=>!1!==e.link&&u.isLink.value)),P=(0,r.Fl)((()=>!!I&&(b.selectable.value||b.activatable.value||null!=e.value))),$=(0,r.Fl)((()=>!e.disabled&&!1!==e.link&&(e.link||u.isClickable.value||P.value))),O=(0,r.Fl)((()=>I&&"track"===I.navigationStrategy.value&&void 0!==e.index&&I.trackingIndex.value===e.index)),N=(0,r.Fl)((()=>I?A.value?"link":P.value?"option":"listitem":void 0)),L=(0,r.Fl)((()=>{if(P.value)return b.activatable.value?f.value:b.selectable.value?g.value:x.value})),D=(0,o.Vh)((()=>e.rounded||e.nav)),R=(0,o.Vh)((()=>e.color??e.activeColor)),F=(0,o.Vh)((()=>({color:x.value?R.value??e.baseColor:e.baseColor,variant:e.variant})));function M(){null!=T.value&&b.open(T.value,!0),w(!0)}(0,r.YP)((()=>u.isActive?.value),(e=>{e&&M()})),(0,r.YP)(f,(e=>{e&&k&&c.value?.scrollIntoView({block:"nearest",behavior:"instant"})})),(0,r.YP)(O,(e=>{e&&c.value?.scrollIntoView({block:"nearest",behavior:"instant"})})),(0,r.wF)((()=>{u.isActive?.value&&(0,r.Y3)((()=>M()))}));const{themeClasses:V}=(0,S.ER)(e),{borderClasses:U}=Te(e),{colorClasses:B,colorStyles:j,variantClasses:W}=ze(F),{densityClasses:H}=Ue(e),{dimensionStyles:q}=(0,ue.$)(e),{elevationClasses:G}
3336=Se(e),{roundedClasses:z}=me(D),Y=(0,o.Vh)((()=>e.lines?`v-list-item--${e.lines}-line`:void 0)),K=(0,o.Vh)((()=>void 0!==e.ripple&&e.ripple&&I?.filterable?{keys:["Enter"]}:e.ripple)),X=(0,r.Fl)((()=>({isActive:x.value,select:m,isOpen:v.value,isSelected:g.value,isIndeterminate:y.value,isDisabled:e.disabled})));function J(t){l("click",t),["INPUT","TEXTAREA"].includes(t.target?.tagName)||$.value&&(u.navigate.value?.(t),_||(b.activatable.value?p(!f.value,t):b.selectable.value?m(!g.value,t):null==e.value||A.value||m(!g.value,t)))}function Z(e){const t=e.target;["INPUT","TEXTAREA"].includes(t.tagName)||("Enter"===e.key||" "===e.key&&!I?.filterable)&&(e.preventDefault(),e.stopPropagation(),e.target.dispatchEvent(new MouseEvent("click",e)))}return(0,C.L)((()=>{const t=A.value?"a":e.tag,n=a.title||null!=e.title,o=a.subtitle||null!=e.subtitle,l=!(!e.appendAvatar&&!e.appendIcon),d=!(!l&&!a.append),p=!(!e.prependAvatar&&!e.prependIcon),f=!(!p&&!a.prepend);return I?.updateHasPrepend(f),e.activeColor&&(0,h.Rn)("active-color",["color","base-color"]),(0,r.wy)((0,r.Wm)(t,(0,r.dG)(u.linkProps,{ref:c,id:void 0!==e.index&&I?`v-list-item-${I.uid}-${e.index}`:void 0,class:["v-list-item",{"v-list-item--active":x.value,"v-list-item--disabled":e.disabled,"v-list-item--link":$.value,"v-list-item--nav":e.nav,"v-list-item--prepend":!f&&I?.hasPrepend.value,"v-list-item--slim":e.slim,"v-list-item--focus-visible":O.value,[`${e.activeClass}`]:e.activeClass&&x.value},V.value,U.value,B.value,H.value,G.value,Y.value,z.value,W.value,e.class],style:[{"--v-list-prepend-gap":(0,s.kb)(e.prependGap)},j.value,q.value,e.style],tabindex:e.tabindex??($.value?I?-2:0:void 0),"aria-selected":L.value,role:N.value,onClick:J,onKeydown:$.value&&!A.value&&Z}),{default:()=>[qe($.value||x.value,"v-list-item"),f&&(0,r._)("div",{key:"prepend",class:"v-list-item__prepend"},[a.prepend?(0,r.Wm)(le,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon},VListItemAction:{start:!0},VCheckboxBtn:{density:e.density}}},{default:()=>[a.prepend?.(X.value)]}):(0,r._)(r.HY,null,[e.prependAvatar&&(0,r.Wm)(Bt,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&(0,r.Wm)(ut,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)]),(0,r._)("div",{class:"v-list-item__spacer"},null)]),(0,r._)("div",{class:"v-list-item__content","data-no-activator":""},[n&&(0,r.Wm)(Xn,{key:"title"},{default:()=>[a.title?.({title:e.title})??(0,i.zw)(e.title)]}),o&&(0,r.Wm)(Kn,{key:"subtitle"},{default:()=>[a.subtitle?.({subtitle:e.subtitle})??(0,i.zw)(e.subtitle)]}),a.default?.(X.value)]),d&&(0,r._)("div",{key:"append",class:"v-list-item__append"},[a.append?(0,r.Wm)(le,{key:"append-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{end:!0},VCheckboxBtn:{density:e.density}}},{default:()=>[a.append?.(X.value)]}):(0,r._)(r.HY,null,[e.appendIcon&&(0,r.Wm)(ut,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&(0,r.Wm)(Bt,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)]),(0,r._)("div",{class:"v-list-item__spacer"},null)])]}),[[It.Z,$.value&&K.value]])})),{activate:p,isActivated:f,isGroupActivator:_,isSelected:g,list:I,select:m,root:b,id:E,link:u}}}),Qn=(0,c.U)({color:String,inset:Boolean,sticky:Boolean,title:String,...(0,a.l)(),...x()},"VListSubheader"),er=(0,k.ev)()({name:"VListSubheader",props:Qn(),setup(e,t){let{slots:n}=t;const{textColorClasses:a,textColorStyles:o}=(0,pe.rY)((()=>e.color));return(0,C.L)((()=>{const t=!(!n.default&&!e.title);return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-list-subheader",{"v-list-subheader--inset":e.inset,"v-list-subheader--sticky":e.sticky},a.value,e.class]),style:(0,i.j5)([{textColorStyles:o},e.style])},{default:()=>[t&&(0,r._)("div",{class:"v-list-subheader__text"},[n.default?.()??e.title])]})})),{}}}),tr=(0,c.U)({items:Array,returnObject:Boolean},"VListChildren"),nr=(0,k.ev)()({name:"VListChildren",props:tr(),setup(e,t){let{slots:n}=t;return wn(),()=>n.default?.()??e.items?.map(((t,i)=>{let{children:a,props:o,type:s,raw:l}=t;if("divider"===s)return n.divider?.({props:o})??(0,r.Wm)(_n,o,null);if("subheader"===s)return n.subheader?.({props:o})??(0,r.Wm)(er,o,null);const u={subtitle:n.subtitle?e=>n.subtitle?.({...e,item:l}):void 0,prepend:n.prepend?e=>n.prepend?.({...e,item:l}):void 0,append:n.append?e=>n.append?.({...e,item:l}):void 0,title:n.title?e=>n.title?.({...e,item:l}):void 0},c=zn.filterProps(o);return a?(0,r.Wm)(zn,(0,r.dG)(c,{value:e.returnObject?l:o?.value,rawId:o?.value}),{activator:t=>{let{props:a}=t;const s=(0,r.dG)(o,a,{value:e.returnObject?l:o.value});return n.header?n.header({props:s}):(0,r.Wm)(Zn,(0,r.dG)(s,{index:i}),u)},default:()=>(0,r.Wm)(nr,{items:a,returnObject:e.returnObject},n)}):n.item?n.item({props:{...o,index:i}}):(0,r.Wm)(Zn,(0,r.dG)(o,{index:i,value:e.returnObject?l:o.value}),u)}))}}),rr=(0,c.U)({items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemChildren:{type:[Boolean,String,Array,Function],default:"children"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},itemType:{type:[Boolean,String,Array,Function],default:"type"},returnObject:Boolean,valueComparator:Function},"list-items"),ir=new Set(["item","divider","subheader"]);function ar(e,t){const n=(0,s.qF)(t,e.itemTitle,t),r=(0,s.qF)(t,e.itemValue,n),i=(0,s.qF)(t,e.itemChildren),a=!0===e.itemProps?"object"!==typeof t||null==t||Array.isArray(t)?void 0:"children"in t?(0,s.CE)(t,["children"]):t:(0,s.qF)(t,e.itemProps);let o=(0,s.qF)(t,e.itemType,"item");
3336ir.has(o)||(o="item");const l={title:n,value:r,...a};return{type:o,title:String(l.title??""),value:l.value,props:l,children:"item"===o&&Array.isArray(i)?or(e,i):void 0,raw:t}}function or(e,t){const n=(0,s.ei)(e,ar.neededProps),r=[];for(const i of t)r.push(ar(n,i));return r}function sr(e){const t=(0,r.Fl)((()=>or(e,e.items))),n=(0,r.Fl)((()=>t.value.some((e=>null===e.value)))),i=(0,o.XI)(new Map),a=(0,o.XI)([]);function l(r){const o=i.value,l=t.value,u=a.value,c=n.value,d=e.returnObject,h=!!e.valueComparator,p=e.valueComparator||Xe.v,f=(0,s.ei)(e,ar.neededProps),m=[];e:for(const e of r){if(!c&&null===e)continue;if(d&&"string"===typeof e){m.push(ar(f,e));continue}const t=o.get(e);if(!h&&t)m.push(...t);else{for(const t of h?l:u)if(p(e,t.value)){m.push(t);continue e}m.push(ar(f,e))}}return m}function u(t){return e.returnObject?t.map((e=>{let{raw:t}=e;return t})):t.map((e=>{let{value:t}=e;return t}))}return(0,r.m0)((()=>{const e=t.value,n=new Map,r=[];for(let t=0;t<e.length;t++){const i=e[t];if((0,s.pt)(i.value)||null===i.value){let e=n.get(i.value);e||(e=[],n.set(i.value,e)),e.push(i)}else r.push(i)}i.value=n,a.value=r})),{items:t,transformIn:l,transformOut:u}}ar.neededProps=["itemTitle","itemValue","itemChildren","itemProps","itemType"];const lr=new Set(["item","divider","subheader"]);function ur(e,t){const n=(0,s.pt)(t)?t:(0,s.qF)(t,e.itemTitle),r=(0,s.pt)(t)?t:(0,s.qF)(t,e.itemValue,void 0),i=(0,s.qF)(t,e.itemChildren),a=!0===e.itemProps?(0,s.CE)(t,["children"]):(0,s.qF)(t,e.itemProps);let o=(0,s.qF)(t,e.itemType,"item");lr.has(o)||(o="item");const l={title:n,value:r,...a};return{type:o,title:l.title,value:l.value,props:l,children:"item"===o&&i?cr(e,i):void 0,raw:t}}function cr(e,t){const n=[];for(const r of t)n.push(ur(e,r));return n}function dr(e){const t=(0,r.Fl)((()=>cr(e,e.items)));return{items:t}}const hr=(0,c.U)({baseColor:String,activeColor:String,activeClass:String,bgColor:String,disabled:Boolean,filterable:Boolean,expandIcon:st.lE,collapseIcon:st.lE,lines:{type:[Boolean,String],default:"one"},slim:Boolean,prependGap:[Number,String],indent:[Number,String],nav:Boolean,navigationStrategy:{type:String,default:"focus"},navigationIndex:Number,"onClick:open":(0,s.as)(),"onClick:select":(0,s.as)(),"onUpdate:opened":(0,s.as)(),...Bn({selectStrategy:"single-leaf",openStrategy:"list"}),...be(),...(0,a.l)(),...Ve(),...(0,ue.x)(),...we(),...rr(),...fe(),...x(),...(0,S.x$)(),...Ge({variant:"text"})},"VList"),pr=(0,k.ev)()({name:"VList",props:hr(),emits:{"update:selected":e=>!0,"update:activated":e=>!0,"update:opened":e=>!0,"update:navigationIndex":e=>!0,"click:open":e=>!0,"click:activate":e=>!0,"click:select":e=>!0},setup(e,t){let{attrs:n,slots:a,emit:l}=t;const{items:u}=dr(e),{themeClasses:c}=(0,S.ER)(e),{backgroundColorClasses:d,backgroundColorStyles:h}=(0,pe.Y5)((()=>e.bgColor)),{borderClasses:p}=Te(e),{densityClasses:f}=Ue(e),{dimensionStyles:m}=(0,ue.$)(e),{elevationClasses:v}
3336=Se(e),{roundedClasses:g}=me(e),{children:y,open:_,parents:b,select:T,getPath:w}=jn(e,{items:u,returnObject:(0,o.Vh)((()=>e.returnObject)),scrollToActive:(0,o.Vh)((()=>"track"===e.navigationStrategy))}),k=(0,o.Vh)((()=>e.lines?`v-list--${e.lines}-line`:void 0)),E=(0,o.Vh)((()=>e.activeColor)),I=(0,o.Vh)((()=>e.baseColor)),x=(0,o.Vh)((()=>e.color)),A=(0,o.Vh)((()=>e.selectable||e.activatable)),P=(0,$e.z)(e,"navigationIndex",-1,(e=>e??-1)),$=(0,r.Me)();wn({filterable:e.filterable,trackingIndex:P,navigationStrategy:(0,o.Vh)((()=>e.navigationStrategy)),uid:$}),(0,r.YP)(u,(()=>{"track"===e.navigationStrategy&&(P.value=-1)})),(0,oe.AF)({VListGroup:{activeColor:E,baseColor:I,color:x,expandIcon:(0,o.Vh)((()=>e.expandIcon)),collapseIcon:(0,o.Vh)((()=>e.collapseIcon))},VListItem:{activeClass:(0,o.Vh)((()=>e.activeClass)),activeColor:E,baseColor:I,color:x,density:(0,o.Vh)((()=>e.density)),disabled:(0,o.Vh)((()=>e.disabled)),lines:(0,o.Vh)((()=>e.lines)),nav:(0,o.Vh)((()=>e.nav)),slim:(0,o.Vh)((()=>e.slim)),variant:(0,o.Vh)((()=>e.variant)),tabindex:(0,o.Vh)((()=>"track"===e.navigationStrategy?-1:void 0))}});const O=(0,o.XI)(!1),N=(0,o.iH)();function L(e){O.value=!0}function D(e){O.value=!1}function R(t){"track"===e.navigationStrategy?~P.value||(P.value=V("first")):O.value||t.relatedTarget&&N.value?.contains(t.relatedTarget)||j()}function F(){"track"===e.navigationStrategy&&(P.value=-1)}function M(e){switch(e){case"ArrowDown":return"next";case"ArrowUp":return"prev";case"Home":return"first";
3336case"End":return"last";default:return null}}function V(e){const t=u.value.length;if(0===t)return-1;let n;"first"===e?n=0:"last"===e?n=t-1:(n=P.value+("next"===e?1:-1),n<0&&(n=t-1),n>=t&&(n=0));const r=n;let i=0;while(i<t){const a=u.value[n];if(a&&"divider"!==a.type&&"subheader"!==a.type)return n;if(n+="next"===e||"first"===e?1:-1,n<0&&(n=t-1),n>=t&&(n=0),n===r)return-1;i++}return-1}function U(t){const n=t.target;if(!N.value||"INPUT"===n.tagName&&["Home","End"].includes(t.key)||"TEXTAREA"===n.tagName)return;const r=M(t.key);if(null!==r)if(t.preventDefault(),"track"===e.navigationStrategy){const e=V(r);-1!==e&&(P.value=e)}else j(r)}function B(e){O.value=!0}function j(e,t){if(N.value)return(0,s.L7)(N.value,e,t)}return(0,C.L)((()=>{const t=e.indent??(e.prependGap?Number(e.prependGap)+24:void 0),o=A.value?n.ariaMultiselectable??!String(e.selectStrategy).startsWith("single-"):void 0;return(0,r.Wm)(e.tag,{ref:N,class:(0,i.C_)(["v-list",{"v-list--disabled":e.disabled,"v-list--nav":e.nav,"v-list--slim":e.slim},c.value,d.value,p.value,f.value,v.value,k.value,g.value,e.class]),style:(0,i.j5)([{"--v-list-indent":(0,s.kb)(t),"--v-list-group-prepend":t?"0px":void 0,"--v-list-prepend-gap":(0,s.kb)(e.prependGap)},h.value,m.value,e.style]),tabindex:e.disabled?-1:0,role:A.value?"listbox":"list","aria-activedescendant":"track"===e.navigationStrategy&&P.value>=0?`v-list-item-${$}-${P.value}`:void 0,"aria-multiselectable":o,onFocusin:L,onFocusout:D,onFocus:R,onBlur:F,onKeydown:U,onMousedown:B},{default:()=>[(0,r.Wm)(nr,{items:u.value,returnObject:e.returnObject},a)]})})),{open:_,select:T,focus:j,children:y,parents:b,getPath:w,navigationIndex:P}}});var fr=n(4573),mr=n(5584),vr=n(4288),gr=n(4838);const yr=(0,c.U)({id:String,submenu:Boolean,...(0,s.CE)((0,fr.B)({captureFocus:!0,closeDelay:250,closeOnContentClick:!0,locationStrategy:"connected",location:void 0,openDelay:300,scrim:!1,scrollStrategy:"reposition",transition:{component:B}}),["absolute"])}
3336,"VMenu"),_r=(0,k.ev)()({name:"VMenu",props:yr(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"modelValue"),{scopeId:a}=(0,vr.a)(),{isRtl:l}=(0,w.Vw)(),u=(0,r.Me)(),c=(0,o.Vh)((()=>e.id||`v-menu-${u}`)),d=(0,o.iH)(),h=(0,r.f3)(gr.N,null),p=(0,o.XI)(new Set);function f(e){h?.closeParents(e)}function m(t){if(!e.disabled)if("Tab"===t.key||"Enter"===t.key&&!e.closeOnContentClick){if("Enter"===t.key&&(t.target instanceof HTMLTextAreaElement||t.target instanceof HTMLInputElement&&t.target.closest("form")))return;"Enter"===t.key&&t.preventDefault();const n=(0,s.dc)((0,s.ef)(d.value?.contentEl,!1),t.shiftKey?"prev":"next",(e=>e.tabIndex>=0));n||e.retainFocus||(i.value=!1,d.value?.activatorEl?.focus())}else e.submenu&&t.key===(l.value?"ArrowRight":"ArrowLeft")&&(i.value=!1,d.value?.activatorEl?.focus())}function v(t){if(e.disabled)return;const n=d.value?.contentEl;n&&i.value?"ArrowDown"===t.key?(t.preventDefault(),t.stopImmediatePropagation(),(0,s.L7)(n,"next")):"ArrowUp"===t.key?(t.preventDefault(),t.stopImmediatePropagation(),(0,s.L7)(n,"prev")):e.submenu&&(t.key===(l.value?"ArrowRight":"ArrowLeft")?i.value=!1:t.key===(l.value?"ArrowLeft":"ArrowRight")&&(t.preventDefault(),(0,s.L7)(n,"first"))):(e.submenu?t.key===(l.value?"ArrowLeft":"ArrowRight"):["ArrowDown","ArrowUp"].includes(t.key))&&(i.value=!0,t.preventDefault(),setTimeout((()=>setTimeout((()=>v(t))))))}(0,r.JJ)(gr.N,{register(){p.value.add(u)},unregister(){p.value.delete(u)},closeParents(t){setTimeout((()=>{p.value.size||e.persistent||null!=t&&(!d.value?.contentEl||(0,s.aH)(t,d.value.contentEl))||(i.value=!1,h?.closeParents(t))}),40)}}),(0,r.Jd)((()=>h?.unregister())),(0,r.se)((()=>i.value=!1)),(0,r.YP)(i,(e=>{e?h?.register():h?.unregister()}),{immediate:!0});const g=(0,r.Fl)((()=>(0,r.dG)({"aria-haspopup":"menu","aria-expanded":String(i.value),"aria-controls":c.value,"aria-owns":c.value,onKeydown:v},e.activatorProps)));return(0,C.L)((()=>{const t=fr.y.filterProps(e);return(0,r.Wm)(fr.y,(0,r.dG)({ref:d,id:c.value,class:["v-menu",e.class],style:e.style},t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,absolute:!0,activatorProps:g.value,location:e.location??(e.submenu?"end":"bottom"),"onClick:outside":f,onKeydown:m},a),{activator:n.activator,default:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,r.Wm)(le,{root:"VMenu"},{default:()=>[n.default?.(...t)]})}})})),(0,mr.F)({id:c,"ΨopenChildren":p},d)}}),br=(0,c.U)({color:String,...be(),...(0,a.l)(),...(0,ue.x)(),...we(),...Ee(),...St(),...fe(),...x(),...(0,S.x$)()},"VSheet"),Tr=(0,k.ev)()({name:"VSheet",props:br(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{backgroundColorClasses:o,backgroundColorStyles:s}=(0,pe.Y5)((()=>e.color)),{borderClasses:l}=Te(e),{dimensionStyles:u}=(0,ue.$)(e),{elevationClasses:c}=Se(e),{locationStyles:d}=Ie(e),{positionClasses:h}
3336=kt(e),{roundedClasses:p}=me(e);return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-sheet",a.value,o.value,l.value,c.value,h.value,p.value,e.class]),style:(0,i.j5)([s.value,u.value,d.value,e.style])},n))),{}}}),wr=(0,c.U)({active:Boolean,disabled:Boolean,max:[Number,String],value:{type:[Number,String],default:0},...(0,a.l)(),...(0,ve.X)({transition:{component:te}})},"VCounter"),Sr=(0,k.ev)()({name:"VCounter",functional:!0,props:wr(),setup(e,t){let{slots:n}=t;const a=(0,o.Vh)((()=>e.max?`${e.value} / ${e.max}`:String(e.value)));return(0,C.L)((()=>(0,r.Wm)(ve.J,{transition:e.transition},{default:()=>[(0,r.wy)((0,r._)("div",{class:(0,i.C_)(["v-counter",{"text-error":e.max&&!e.disabled&&parseFloat(e.value)>parseFloat(e.max)},e.class]),style:(0,i.j5)(e.style)},[n.default?n.default({counter:a.value,max:e.max,value:e.value}):a.value]),[[$.F8,e.active]])]}))),{}}}),kr=(0,c.U)({floating:Boolean,...(0,a.l)()},"VFieldLabel"),Cr=(0,k.ev)()({name:"VFieldLabel",props:kr(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(Wt,{class:(0,i.C_)(["v-field-label",{"v-field-label--floating":e.floating},e.class]),style:(0,i.j5)(e.style)},n))),{}}}),Er=(0,c.U)({focused:Boolean,"onUpdate:focused":(0,s.as)()},"focus");function Ir(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)();const n=(0,$e.z)(e,"focused"),r=(0,o.Vh)((()=>({[`${t}--focused`]:n.value})));function i(){n.value=!0}function a(){n.value=!1}return{focusClasses:r,isFocused:n,focus:i,blur:a}}const xr=["underlined","outlined","filled","solo","solo-inverted","solo-filled","plain"],Ar=(0,c.U)({appendInnerIcon:st.lE,bgColor:String,clearable:Boolean,clearIcon:{type:st.lE,default:"$clear"},active:Boolean,centerAffix:{type:Boolean,default:void 0},color:String,baseColor:String,dirty:Boolean,disabled:{type:Boolean,default:null},glow:Boolean,error:Boolean,flat:Boolean,iconColor:[Boolean,String],label:String,persistentClear:Boolean,prependInnerIcon:st.lE,reverse:Boolean,singleLine:Boolean,variant:{type:String,default:"filled",validator:e=>xr.includes(e)},"onClick:clear":(0,s.as)(),"onClick:appendInner":(0,s.as)(),"onClick:prependInner":(0,s.as)(),...(0,a.l)(),..._t(),...fe(),...(0,S.x$)()},"VField"),Pr=(0,k.ev)()({name:"VField",inheritAttrs:!1,props:{id:String,details:Boolean,labelId:String,...Er(),...Ar()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:u}=t;const{themeClasses:c}=(0,S.ER)(e),{loaderClasses:d}=bt(e),{focusClasses:h,isFocused:p,focus:f,blur:m}=Ir(e),{InputIcon:v}
3336=bn(e),{roundedClasses:g}=me(e),{rtlClasses:y}=(0,w.Vw)(),_=(0,o.Vh)((()=>e.dirty||e.active)),b=(0,o.Vh)((()=>!(!e.label&&!u.label))),T=(0,o.Vh)((()=>!e.singleLine&&b.value)),k=(0,r.Me)(),E=(0,r.Fl)((()=>e.id||`input-${k}`)),I=(0,o.Vh)((()=>e.details?`${E.value}-messages`:void 0)),x=(0,o.iH)(),A=(0,o.iH)(),P=(0,o.iH)(),O=(0,r.Fl)((()=>["plain","underlined"].includes(e.variant))),N=(0,r.Fl)((()=>e.error||e.disabled?void 0:_.value&&p.value?e.color:e.baseColor)),L=(0,r.Fl)((()=>{if(e.iconColor&&(!e.glow||p.value))return!0===e.iconColor?N.value:e.iconColor})),{backgroundColorClasses:D,backgroundColorStyles:V}=(0,pe.Y5)((()=>e.bgColor)),{textColorClasses:U,textColorStyles:B}=(0,pe.rY)(N);(0,r.YP)(_,(e=>{if(T.value&&!(0,l.QE)()){const t=x.value.$el,n=A.value.$el;requestAnimationFrame((()=>{const r=(0,R.G)(t),i=new M.xu(n),a=i.x-r.x,o=i.y-r.y-(r.height/2-i.height/2),l=i.width/.75,u=Math.abs(l-r.width)>1?{maxWidth:(0,s.kb)(l)}:void 0,c=getComputedStyle(t),d=getComputedStyle(n),h=1e3*parseFloat(c.transitionDuration)||150,p=parseFloat(d.getPropertyValue("--v-field-label-scale")),f=d.getPropertyValue("color");t.style.visibility="visible",n.style.visibility="hidden",(0,R.j)(t,{transform:`translate(${a}px, ${o}px) scale(${p})`,color:f,...u},{duration:h,easing:F.Ly,direction:e?"normal":"reverse"}).finished.then((()=>{t.style.removeProperty("visibility"),n.style.removeProperty("visibility")}))}))}}),{flush:"post"});const j=(0,r.Fl)((()=>({isActive:_,isFocused:p,controlRef:P,iconColor:L,blur:m,focus:f}))),W=(0,o.Vh)((()=>{const e=!_.value;return{"aria-hidden":e,for:e?void 0:E.value}})),H=(0,o.Vh)((()=>{const e=T.value&&_.value;return{"aria-hidden":e,for:e?void 0:E.value}}));function q(e){e.target!==document.activeElement&&e.preventDefault()}return(0,C.L)((()=>{const t="outlined"===e.variant,a=!(!u["prepend-inner"]&&!e.prependInnerIcon),o=!(!e.clearable&&!u.clear)&&!e.disabled,s=!!(u["append-inner"]||e.appendInnerIcon||o),l=()=>u.label?u.label({...j.value,label:e.label,props:{for:E.value}}):e.label;return(0,r._)("div",(0,r.dG)({class:["v-field",{"v-field--active":_.value,"v-field--appended":s,"v-field--center-affix":e.centerAffix??!O.value,"v-field--disabled":e.disabled,"v-field--dirty":e.dirty,"v-field--error":e.error,"v-field--glow":e.glow,"v-field--flat":e.flat,"v-field--has-background":!!e.bgColor,"v-field--persistent-clear":e.persistentClear,"v-field--prepended":a,"v-field--reverse":e.reverse,"v-field--single-line":e.singleLine,"v-field--no-label":!l(),[`v-field--variant-${e.variant}`]:!0},c.value,D.value,h.value,d.value,g.value,y.value,e.class],style:[V.value,e.style],onClick:q},n),[(0,r._)("div",{class:"v-field__overlay"},null),(0,r.Wm)(Tt,{name:"v-field",active:!!e.loading,color:e.error?"error":"string"===typeof e.loading?e.loading:e.color},{default:u.loader}),a&&(0,r._)("div",{key:"prepend",class:"v-field__prepend-inner"},[u["prepend-inner"]?u["prepend-inner"](j.value):e.prependInnerIcon&&(0,r.Wm)(v,{key:"prepend-icon",name:"prependInner",color:L.value},null)]),(0,r._)("div",{class:"v-field__field","data-no-activator":""},[["filled","solo","solo-inverted","solo-filled"].includes(e.variant)&&T.value&&(0,r.Wm)(Cr,(0,r.dG)({key:"floating-label",ref:A,class:[U.value],floating:!0},W.value,{style:B.value}),{default:()=>[l()]}),b.value&&(0,r.Wm)(Cr,(0,r.dG)({key:"label",ref:x,id:e.labelId},H.value),{default:()=>[l()]}),u.default?.({...j.value,props:{id:E.value,class:"v-field__input","aria-describedby":I.value},focus:f,blur:m})??(0,r._)("div",{id:E.value,class:"v-field__input","aria-describedby":I.value},null)]),o&&(0,r.Wm)(ie,{key:"clear"},{default:()=>[(0,r.wy)((0,r._)("div",{class:"v-field__clearable",onMousedown:e=>{e.preventDefault(),e.stopPropagation()}},[(0,r.Wm)(le,{defaults:{VIcon:{icon:e.clearIcon}}},{default:()=>[u.clear?u.clear({...j.value,props:{onFocus:f,onBlur:m,onClick:e["onClick:clear"],tabindex:-1}}):(0,r.Wm)(v,{name:"clear",onFocus:f,onBlur:m,tabindex:-1},null)]})]),[[$.F8,e.dirty]])]}),s&&(0,r._)("div",{key:"append",class:"v-field__append-inner"},[u["append-inner"]?u["append-inner"](j.value):e.appendInnerIcon&&(0,r.Wm)(v,{key:"append-icon",name:"appendInner",color:L.value},null)]),(0,r._)("div",{class:(0,i.C_)(["v-field__outline",U.value]),style:(0,i.j5)(B.value)},[t&&(0,r._)(r.HY,null,[(0,r._)("div",{class:"v-field__outline__start"},null),T.value&&(0,r._)("div",{class:"v-field__outline__notch"},[(0,r.Wm)(Cr,(0,r.dG)({ref:A,floating:!0},W.value),{default:()=>[l()]})]),(0,r._)("div",{class:"v-field__outline__end"},null)]),O.value&&T.value&&(0,r.Wm)(Cr,(0,r.dG)({ref:A,floating:!0},W.value),{default:()=>[l()]})])])})),{controlRef:P,fieldIconColor:L}}}),$r=(0,c.U)({active:Boolean,color:String,messages:{type:[Array,String],default:()=>[]},...(0,a.l)(),...(0,ve.X)({transition:{component:te,leaveAbsolute:!0,group:!0}
3336})},"VMessages"),Or=(0,k.ev)()({name:"VMessages",props:$r(),setup(e,t){let{slots:n}=t;const a=(0,r.Fl)((()=>(0,s.FT)(e.messages))),{textColorClasses:o,textColorStyles:l}=(0,pe.rY)((()=>e.color));return(0,C.L)((()=>(0,r.Wm)(ve.J,{transition:e.transition,tag:"div",class:(0,i.C_)(["v-messages",o.value,e.class]),style:(0,i.j5)([l.value,e.style])},{default:()=>[e.active&&a.value.map(((e,t)=>(0,r._)("div",{class:"v-messages__message",key:`${t}-${a.value}`},[n.message?n.message({message:e}):e])))]}))),{}}}),Nr=Symbol.for("vuetify:form"),Lr=(0,c.U)({disabled:Boolean,fastFail:Boolean,readonly:Boolean,modelValue:{type:Boolean,default:null},validateOn:{type:String,default:"input"}},"form");function Dr(e){const t=(0,$e.z)(e,"modelValue"),n=(0,o.Vh)((()=>e.disabled)),i=(0,o.Vh)((()=>e.readonly)),a=(0,o.XI)(!1),s=(0,o.iH)([]),l=(0,o.iH)([]);async function u(){const t=[];let n=!0;l.value=[],a.value=!0;for(const r of s.value){const i=await r.validate();if(i.length>0&&(n=!1,t.push({id:r.id,errorMessages:i})),!n&&e.fastFail)break}return l.value=t,a.value=!1,{valid:n,errors:l.value}}function c(){s.value.forEach((e=>e.reset()))}function d(){s.value.forEach((e=>e.resetValidation()))}return(0,r.YP)(s,(()=>{let e=0,n=0;const r=[];for(const t of s.value)!1===t.isValid?(n++,r.push({id:t.id,errorMessages:t.errorMessages})):!0===t.isValid&&e++;l.value=r,t.value=!(n>0)&&(e===s.value.length||null)}),{deep:!0,flush:"post"}),(0,r.JJ)(Nr,{register:e=>{let{id:t,vm:n,validate:r,reset:i,resetValidation:a}=e;s.value.some((e=>e.id===t))&&(0,h.Kd)(`Duplicate input name "${t}"`),s.value.push({id:t,validate:r,reset:i,resetValidation:a,vm:(0,o.Xl)(n),isValid:null,errorMessages:[]})},unregister:e=>{s.value=s.value.filter((t=>t.id!==e))},update:(e,t,n)=>{const r=s.value.find((t=>t.id===e));r&&(r.isValid=t,r.errorMessages=n)},isDisabled:n,isReadonly:i,isValidating:a,isValid:t,items:s,validateOn:(0,o.Vh)((()=>e.validateOn))}),{errors:l,isDisabled:n,isReadonly:i,isValidating:a,isValid:t,items:s,validate:u,reset:c,resetValidation:d}}function Rr(e){const t=(0,r.f3)(Nr,null);return{...t,isReadonly:(0,r.Fl)((()=>!!(e?.readonly??t?.isReadonly.value))),isDisabled:(0,r.Fl)((()=>!!(e?.disabled??t?.isDisabled.value)))}}const Fr=Symbol.for("vuetify:rules");function Mr(e){const t=(0,r.f3)(Fr,null);if(!e){if(!t)throw new Error("Could not find Vuetify rules injection");return t.aliases}return t?.resolve(e)??(0,o.Vh)(e)}const Vr=(0,c.U)({disabled:{type:Boolean,default:null},error:Boolean,errorMessages:{type:[Array,String],default:()=>[]},maxErrors:{type:[Number,String],default:1},name:String,label:String,readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},modelValue:null,validateOn:String,validationValue:null,...Er()},"validation");function Ur(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,d.B)(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,r.Me)();const i=(0,$e.z)(e,"modelValue"),a=(0,r.Fl)((()=>void 0===e.validationValue?i.value:e.validationValue)),l=Rr(e),u=Mr((()=>e.rules)),c=(0,o.iH)([]),h=(0,o.XI)(!0),p=(0,r.Fl)((()=>!(!(0,s.FT)(""===i.value?null:i.value).length&&!(0,s.FT)(""===a.value?null:a.value).length))),f=(0,r.Fl)((()=>e.errorMessages?.length?(0,s.FT)(e.errorMessages).concat(c.value).slice(0,Math.max(0,Number(e.maxErrors))):c.value)),m=(0,r.Fl)((()=>{let t=(e.validateOn??l.validateOn?.value)||"input";"lazy"===t&&(t="input lazy"),"eager"===t&&(t="input eager");const n=new Set(t?.split(" ")??[]);return{input:n.has("input"),blur:n.has("blur")||n.has("input")||n.has("invalid-input"),invalidInput:n.has("invalid-input"),lazy:n.has("lazy"),eager:n.has("eager")}})),v=(0,r.Fl)((()=>!e.error&&!e.errorMessages?.length&&(!e.rules.length||(h.value?!c.value.length&&!m.value.lazy||null:!c.value.length)))),g=(0,o.XI)(!1);let y=!1;const _=(0,r.Fl)((()=>({[`${t}--error`]:!1===v.value,[`${t}--dirty`]:p.value,[`${t}--disabled`]:l.isDisabled.value,[`${t}--readonly`]:l.isReadonly.value}))),b=(0,d.F)("validation"),T=(0,r.Fl)((()=>e.name??(0,o.SU)(n)));async function w(){y=!0,i.value=null,await(0,r.Y3)(),y=!1,await S()}async function S(){h.value=!0,m.value.lazy?c.value=[]:await k(!m.value.eager)}async function k(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=[];g.value=!0;for(const r of u.value){if(n.length>=Number(e.maxErrors??1))break;const t="function"===typeof r?r:()=>r,i=await t(a.value);!0!==i&&(!1===i||"string"===typeof i?n.push(i||""):console.warn(`${i} is not a valid value. Rule functions must return boolean true or a string.`))}return c.value=n,g.value=!1,h.value=t,c.value}return(0,r.wF)((()=>{l.register?.({id:T.value,vm:b,validate:k,reset:w,resetValidation:S})})),(0,r.Jd)((()=>{l.unregister?.(T.value)})),(0,r.bv)((async()=>{m.value.lazy||await k(!m.value.eager),l.update?.(T.value,v.value,f.value)})),(0,De.U)((()=>
3336m.value.input||m.value.invalidInput&&!1===v.value),(()=>{(0,r.YP)(a,(()=>{y||k()}))})),(0,De.U)((()=>m.value.blur),(()=>{(0,r.YP)((()=>e.focused),(e=>{e||k()}))})),(0,r.YP)([v,f],(()=>{l.update?.(T.value,v.value,f.value)})),{errorMessages:f,isDirty:p,isDisabled:l.isDisabled,isReadonly:l.isReadonly,isPristine:h,isValid:v,isValidating:g,reset:w,resetValidation:S,validate:k,validationClasses:_}}const Br=(0,c.U)({id:String,appendIcon:st.lE,baseColor:String,centerAffix:{type:Boolean,default:!0},color:String,glow:Boolean,iconColor:[Boolean,String],prependIcon:st.lE,hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,persistentHint:Boolean,messages:{type:[Array,String],default:()=>[]},direction:{type:String,default:"horizontal",validator:e=>["horizontal","vertical"].includes(e)},"onClick:prepend":(0,s.as)(),"onClick:append":(0,s.as)(),...(0,a.l)(),...Ve(),...(0,s.ei)((0,ue.x)(),["maxWidth","minWidth","width"]),...(0,S.x$)(),...Vr()},"VInput"),jr=(0,k.ev)()({name:"VInput",props:{...Br()},emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:a,emit:s}=t;const{densityClasses:l}=Ue(e),{dimensionStyles:u}=(0,ue.$)(e),{themeClasses:c}=(0,S.ER)(e),{rtlClasses:d}=(0,w.Vw)(),{InputIcon:h}=bn(e),p=(0,r.Me)(),f=(0,r.Fl)((()=>e.id||`input-${p}`)),{errorMessages:m,isDirty:v,isDisabled:g,isReadonly:y,isPristine:_,isValid:b,isValidating:T,reset:k,resetValidation:E,validate:I,validationClasses:x}=Ur(e,"v-input",f),A=(0,r.Fl)((()=>e.errorMessages?.length||!_.value&&m.value.length?m.value:e.hint&&(e.persistentHint||e.focused)?e.hint:e.messages)),P=(0,o.Vh)((()=>A.value.length>0)),$=(0,o.Vh)((()=>!e.hideDetails||"auto"===e.hideDetails&&(P.value||!!a.details))),O=(0,r.Fl)((()=>$.value?`${f.value}-messages`:void 0)),N=(0,r.Fl)((()=>({id:f,messagesId:O,isDirty:v,isDisabled:g,isReadonly:y,isPristine:_,isValid:b,isValidating:T,hasDetails:$,reset:k,resetValidation:E,validate:I}))),L=(0,o.Vh)((()=>e.error||e.disabled?void 0:e.focused?e.color:e.baseColor)),D=(0,o.Vh)((()=>{if(e.iconColor)return!0===e.iconColor?L.value:e.iconColor}));return(0,C.L)((()=>{const t=!(!a.prepend&&!e.prependIcon),n=!(!a.append&&!e.appendIcon);return(0,r._)("div",{class:(0,i.C_)(["v-input",`v-input--${e.direction}`,{"v-input--center-affix":e.centerAffix,"v-input--focused":e.focu
3336sed,"v-input--glow":e.glow,"v-input--hide-spin-buttons":e.hideSpinButtons},l.value,c.value,d.value,x.value,e.class]),style:(0,i.j5)([u.value,e.style])},[t&&(0,r._)("div",{key:"prepend",class:"v-input__prepend"},[a.prepend?a.prepend(N.value):e.prependIcon&&(0,r.Wm)(h,{key:"prepend-icon",name:"prepend",color:D.value},null)]),a.default&&(0,r._)("div",{class:"v-input__control"},[a.default?.(N.value)]),n&&(0,r._)("div",{key:"append",class:"v-input__append"},[a.append?a.append(N.value):e.appendIcon&&(0,r.Wm)(h,{key:"append-icon",name:"append",color:D.value},null)]),$.value&&(0,r._)("div",{id:O.value,class:"v-input__details",role:"alert","aria-live":"polite"},[(0,r.Wm)(Or,{active:P.value,messages:A.value},{message:a.message}),a.details?.(N.value)])])})),{reset:k,resetValidation:E,validate:I,isValid:b,errorMessages:m}}}),Wr=(0,c.U)({autocomplete:String},"autocomplete");function Hr(e){const t=(0,r.Me)(),n=(0,o.XI)(0),i=(0,o.Vh)((()=>"suppress"===e.autocomplete)),a=(0,o.Vh)((()=>{if(e.name)return i.value?`${e.name}-${t}-${n.value}`:e.name})),s=(0,o.Vh)((()=>i.value?"off":e.autocomplete));return{isSuppressing:i,fieldAutocomplete:s,fieldName:a,update:()=>n.value=(new Date).getTime()}}function qr(e){function t(t,n){if(!e.autofocus||!t)return;const r=n[0].target,i=r.matches("input,textarea")?r:r.querySelector("input,textarea");i?.focus()}return{onIntersect:t}}const Gr=["color","file","time","date","datetime-local","week","month"],zr=(0,c.U)({autofocus:Boolean,counter:[Boolean,Number,String],counterValue:[Number,Function],prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,suffix:String,role:String,type:{type:String,default:"text"},modelModifiers:Object,...Wr(),...(0,s.CE)(Br(),["direction"]),...Ar()},"VTextField"),Yr=(0,k.ev)()({name:"VTextField",directives:{vIntersect:ge.Z},inheritAttrs:!1,props:zr(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:l}=t;const u=(0,$e.z)(e,"modelValue",void 0,(e=>Object.is(e,-0)?"-0":e)),{isFocused:c,focus:d,blur:h}=Ir(e),{onIntersect:p}=qr(e),f=(0,r.Fl)((()=>"function"===typeof e.counterValue?e.counterValue(u.value):"number"===typeof e.counterValue?e.counterValue:(u.value??"").toString().length)),m=(0,r.Fl)((()=>n.maxlength?n.maxlength:!e.counter||"number"!==typeof e.counter&&"string"!==typeof e.counter?void 0:e.counter)),v=(0,r.Fl)((()=>["plain","underlined"].includes(e.variant))),g=(0,o.iH)(),y=(0,o.iH)(),_=(0,o.iH)(),b=Hr(e),T=(0,r.Fl)((()=>Gr.includes(e.type)||e.persistentPlaceholder||c.value||e.active));function w(){b.isSuppressing.value&&b.update(),c.value||d(),(0,r.Y3)((()=>{_.value!==document.activeElement&&_.value?.focus()}))}function S(e){a("mousedown:control",e),e.target!==_.value&&(w(),e.preventDefault())}function k(e){a("click:control",e)}function E(t,n){t.stopPropagation(),w(),(0,r.Y3)((()=>{n(),(0,s.dr)(e["onClick:clear"],t)}))}function I(t){const n=t.target;if(!e.modelModifiers?.trim||!["text","search","password","tel","url"].includes(e.type))return void(u.value=n.value);const i=n.value,a=n.selectionStart,o=n.selectionEnd;u.value=i,(0,r.Y3)((()=>{let e=0;i.trimStart().length===n.value.length&&(e=i.length-n.value.length),null!=a&&(n.selectionStart=a-e),null!=o&&(n.selectionEnd=o-e)}))}return(0,C.L)((()=>{const t=!!(l.counter||!1!==e.counter&&null!=e.counter),a=!0!==e.hideDetails&&!!(l.details||t&&(e.persistentCounter||!1===e.hideDetails||c.value)),[o,w]=(0,s.An)(n),{modelValue:C,...x}=jr.filterProps(e),A=Pr.filterProps(e);return(0,r.Wm)(jr,(0,r.dG)({ref:g,modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,class:["v-text-field",{"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-input--plain-underlined":v.value},e.class],style:e.style},o,x,{centerAffix:!v.value,focused:c.value}),{...l,default:t=>{let{id:n,isDisabled:a,isDirty:o,isReadonly:f,isValid:m,hasDetails:v,reset:g}=t;return(0,r.Wm)(Pr,(0,r.dG)({ref:y,onMousedown:S,onClick:k,"onClick:clear":e=>E(e,g),role:e.role},(0,s.CE)(A,["onClick:clear"]),{id:n.value,labelId:`${n.value}-label`,active:T.value||o.value,dirty:o.value||e.dirty,disabled:a.value,focused:c.value,details:v.value,error:!1===m.value}),{...l,default:t=>{let{props:{class:o,...s},controlRef:c}=t;const m=(0,r._)("input",(0,r.dG)({ref:e=>_.value=c.value=e,value:u.value,onInput:I,autofocus:e.autofocus,readonly:f.value,disabled:a.value,name:b.fieldName.value,autocomplete:b.fieldAutocomplete.value,placeholder:e.placeholder,size:1,role:e.role,type:e.type,onFocus:d,onBlur:h,"aria-labelledby":`${n.value}-label`},s,w),null);return(0,r._)(r.HY,null,[e.prefix&&(0,r._)("span",{class:"v-text-field__prefix"},[(0,r._)("span",{class:"v-text-field__prefix__text"},[e.prefix])]),(0,r.wy)(l.default?(0,r._)("div",{class:(0,i.C_)(o),"data-no-activator":""},[l.default({id:n}),m]):(0,r.Ho)(m,{class:o}),[[ge.Z,p,null,{once:!0}]]),e.suffix&&(0,r._)("span",{class:"v-text-field__suffix"},[(0,r._)("span",{class:"v-text-field__suffix__text"},[e.suffix])])])}})},details:a?n=>(0,r._)(r.HY,null,[l.details?.(n),t&&(0,r._)(r.HY,null,[(0,r._)("span",null,null),(0,r.Wm)(Sr,{active:e.persistentCounter||c.value,value:f.value,max:m.value,disabled:e.disabled},l.counter)])]):void 0})})),(0,mr.F)({},g,y,_)}}),Kr=(0,c.U)({renderless:Boolean,...(0,a.l)()},"VVirtualScrollItem"),Xr=(0,k.ev)()({name:"VVirtualScrollItem",inheritAttrs:!1,props:Kr(),emits:{"update:height":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:a}=t;const{resizeRef:o,contentRect:s}=u(void 0,"border");(0,r.YP)((()=>s.value?.height),(e=>{null!=e&&i("update:height",e)})),(0,C.L)((()=>e.renderless?(0,r._)(r.HY,null,[a.default?.({itemRef:o})]):(0,r._)("div",(0,r.dG)({ref:o,class:["v-virtual-scroll__item",e.class],style:e.style},n),[a.default?.()])))}}),Jr=-1,Zr=1,Qr=100,ei=(0,c.U)({itemHeight:{type:[Number,String],default:null},itemKey:{type:[String,Array,Function],default:null},height:[Number,String]},"virtual");function ti(e,t){const n=(0,Qt.AW)(),i=(0,o.XI)(0);(0,r.m0)((()=>{i.value=parseFloat(e.itemHeight||0)}));const a=(0,o.XI)(0),c=(0,o.XI)(Math.ceil((parseInt(e.height)||n.height.value)/(i.value||16))||1),d=(0,o.XI)(0),h=(0,o.XI)(0),p=(0,o.iH)(),f=(0,o.iH)();let m=0;const{resizeRef:v,contentRect:g}=u();(0,r.m0)((()=>{v.value=p.value}));const y=(0,r.Fl)((()=>p.value===document.documentElement?n.height.value:g.value?.height||parseInt(e.height)||0)),_=(0,r.Fl)((()=>!!(p.value&&f.value&&y.value&&i.value)));let b=Array.from({length:t.value.length}),T=Array.from({length:t.value.length});const w=(0,o.XI)(0);let S=-1;function k(e){return b[e]||i.value}const C=(0,s.Ds)((()=>{const e=performance.now();T[0]=0;const n=t.value.length;for(let t=1;t<=n;t++)T[t]=(T[t-1]||0)+k(t-1);w.value=Math.max(w.value,performance.now()-e),F()}),w),E=(0,r.YP)(_,(e=>{e&&(E(),m=f.value.offsetTop,C.immediate(),F(),~S&&(0,r.Y3)((()=>{l.BR&&window.requestAnimationFrame((()=>{V(S),S=-1}))})))}));function I(e,t){const n=b[e],r=i.value;i.value=r?Math.min(i.value,t):t,n===t&&r===i.value||(b[e]=t,C())}function x(e){e=(0,s.uZ)(e,0,t.value.length);const n=Math.floor(e),r=e%1,i=n+1,a=T[n]||0,o=T[i]||a;return a+(o-a)*r}function A(e){return ni(T,e)}(0,o.EB)((()=>{C.clear()}
3336));let P=0,$=0,O=0;(0,r.YP)(y,((e,t)=>{F(),e<t&&requestAnimationFrame((()=>{$=0,F()}))}));let N=-1;function L(){if(!p.value||!f.value)return;const e=p.value.scrollTop,t=performance.now(),n=t-O;n>500?($=Math.sign(e-P),m=f.value.offsetTop):$=e-P,P=e,O=t,window.clearTimeout(N),N=window.setTimeout(D,500),F()}function D(){p.value&&f.value&&($=0,O=0,window.clearTimeout(N),F())}let R=-1;function F(){cancelAnimationFrame(R),R=requestAnimationFrame(M)}function M(){if(!p.value||!y.value||!i.value)return;const e=P-m,n=Math.sign($),r=Math.max(0,e-Qr),o=(0,s.uZ)(A(r),0,t.value.length),l=e+y.value+Qr,u=(0,s.uZ)(A(l)+1,o+1,t.value.length);if((n!==Jr||o<a.value)&&(n!==Zr||u>c.value)){const e=x(a.value)-x(o),n=x(u)-x(c.value),r=Math.max(e,n);r>Qr?(a.value=o,c.value=u):(o<=0&&(a.value=o),u>=t.value.length&&(c.value=u,a.value=o))}d.value=x(a.value),h.value=x(t.value.length)-x(c.value)}function V(e){const t=x(e);!p.value||e&&!t?S=e:p.value.scrollTop=t}const U=(0,r.Fl)((()=>t.value.slice(a.value,c.value).map(((t,n)=>{const r=n+a.value;return{raw:t,index:r,key:(0,s.qF)(t,e.itemKey,r)}}))));return(0,r.YP)(t,(()=>{b=Array.from({length:t.value.length}),T=Array.from({length:t.value.length}),C.immediate(),F()}),{deep:1}),{calculateVisibleItems:F,containerRef:p,markerRef:f,computedItems:U,paddingTop:d,paddingBottom:h,scrollToIndex:V,handleScroll:L,handleScrollend:D,handleItemResize:I}}function ni(e,t){let n=e.length-1,r=0,i=0,a=null,o=-1;if(e[n]<t)return n;while(r<=n)if(i=r+n>>1,a=e[i],a>t)n=i-1;else{if(!(a<t))return a===t?i:r;o=i,r=i+1}return o}var ri=n(9816);const ii=(0,c.U)({items:{type:Array,default:()=>[]},renderless:Boolean,...ei(),...(0,a.l)(),...(0,ue.x)()},"VVirtualScroll"),ai=(0,k.ev)()({name:"VVirtualScroll",props:ii(),setup(e,t){let{slots:n}=t;const a=(0,d.F)("VVirtualScroll"),{dimensionStyles:l}=(0,ue.$)(e),{calculateVisibleItems:u,containerRef:c,markerRef:h,handleScroll:p,handleScrollend:f,handleItemResize:m,scrollToIndex:v,paddingTop:g,paddingBottom:y,computedItems:_}=ti(e,(0,o.Vh)((()=>e.items)));return(0,De.U)((()=>e.renderless),(()=>{function e(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=e?"addEventListener":"removeEventListener";c.value===document.documentElement?(document[t]("scroll",p,{passive:!0}),document[t]("scrollend",f)):(c.value?.[t]("scroll",p,{passive:!0}),c.value?.[t]("scrollend",f))}(0,r.bv)((()=>{c.value=(0,ri.rP)(a.vnode.el,!0),e(!0)})),(0,o.EB)(e)})),(0,C.L)((()=>{const t=_.value.map((t=>(0,r.Wm)(Xr,{key:t.key,renderless:e.renderless,"onUpdate:height":e=>m(t.index,e)},{default:e=>n.default?.({item:t.raw,index:t.index,...e})})));return e.renderless?(0,r._)(r.HY,null,[(0,r._)("div",{ref:h,class:"v-virtual-scroll__spacer",style:{paddingTop:(0,s.kb)(g.value)}},null),t,(0,r._)("div",{class:"v-virtual-scroll__spacer",style:{paddingBottom:(0,s.kb)(y.value)}},null)]):(0,r._)("div",{ref:c,class:(0,i.C_)(["v-virtual-scroll",e.class]),onScrollPassive:p,onScrollend:f,style:(0,i.j5)([l.value,e.style])},[(0,r._)("div",{ref:h,class:"v-virtual-scroll__container",style:{paddingTop:(0,s.kb)(g.value),paddingBottom:(0,s.kb)(y.value)}},[t])])})),{calculateVisibleItems:u,scrollToIndex:v}}});function oi(e,t,n){return function(r){return!(r.relatedTarget||document.activeElement!==document.body||!e.value)&&(requestAnimationFrame((()=>{if(!e.value)return;const r=t(),i=(r&&(0,s.ef)(r)[0])??n();i?.focus({preventScroll:!0})}
3336)),!0)}}function si(e,t){const n=(0,o.XI)(!1);let i;function a(e){cancelAnimationFrame(i),n.value=!0,i=requestAnimationFrame((()=>{i=requestAnimationFrame((()=>{n.value=!1}))}))}async function s(){await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>requestAnimationFrame(e))),await new Promise((e=>{if(n.value){const t=(0,r.YP)(n,(()=>{t(),e()}))}else e()}))}async function l(n){if("Tab"===n.key&&t.value?.focus(),!["PageDown","PageUp","Home","End"].includes(n.key))return;const r=e.value?.$el;if(!r)return;"Home"!==n.key&&"End"!==n.key||r.scrollTo({top:"Home"===n.key?0:r.scrollHeight,behavior:"smooth"}),await s();const i=r.querySelectorAll(":scope > :not(.v-virtual-scroll__spacer)");if("PageDown"===n.key||"Home"===n.key){const e=r.getBoundingClientRect().top;for(const t of i)if(t.getBoundingClientRect().top>=e){t.focus();break}}else{const e=r.getBoundingClientRect().bottom;for(const t of[...i].reverse())if(t.getBoundingClientRect().bottom<=e){t.focus();break}}}return{onScrollPassive:a,onKeydown:l}}function li(e){let{groups:t,onLeave:n}=e;function r(e){return"list"===e.type?e.contentRef.value?.$el:e.contentRef.value}function i(e){const t=r(e);return t?(0,s.ef)(t):[]}function a(e){const r=e.target,a=e.shiftKey?"backward":"forward",s=t.map(i),u=t.map((e=>"list"===e.type?e.contentRef.value?.$el:e.contentRef.value)).findIndex((e=>e?.contains(r))),c=l(s,u,a,r);if(null===c){const r=t[u],i=s[u],o="list"===r.type,l=o||("forward"===a?i.at(-1)===e.target:i.at(0)===e.target);l&&n()}else{e.preventDefault(),e.stopImmediatePropagation();const n=t[c];if("list"===n.type&&(0,o.Tn)(n.displayItemsCount)>0)n.contentRef.value?.focus(0);else{const e="forward"===a;s[c].at(e?0:-1).focus()}}}function l(e,n,r,i){const a=t[n],s=e[n];if("list"!==a.type){const e="forward"===r?s.at(-1)===i:s.at(0)===i;if(!e)return null}const l="forward"===r?1:-1;for(let u=n+l;u>=0&&u<t.length;u+=l){const n=t[u];if(e[u].length>0||"list"===n.type&&(0,o.Tn)(n.displayItemsCount)>0)return u}return null}return{onTabKeydown:a}}const ui=(e,t,n)=>{if(null==e||null==t)return-1;if(!t.length)return 0;e=e.toString().toLocaleLowerCase(),t=t.toString().toLocaleLowerCase();const r=[];let i=e.indexOf(t);while(~i)r.push([i,i+t.length]),i=e.indexOf(t,i+t.length);return r.length?r:-1};function ci(e,t){if(null!=e&&"boolean"!==typeof e&&-1!==e)return"number"===typeof e?[[e,e+t.length]]:Array.isArray(e[0])?e:[e]}const di=(0,c.U)({customFilter:Function,customKeyFilter:Object,filterKeys:[Array,String],filterMode:{type:String,default:"intersection"},noFilter:Boolean},"filter");function hi(e,t,n){const r=[],i=n?.default??ui,a=!!n?.filterKeys&&(0,s.FT)(n.filterKeys),o=Object.keys(n?.customKeyFilter??{}).length;if(!e?.length)return r;let l=[];e:for(let u=0;u<e.length;u++){const[c,d=c]=(0,s.FT)(e[u]),h={},p={};let f=-1;if((t||o>0)&&!n?.noFilter){let e=!1;if("object"===typeof c){if("divider"===c.type||"subheader"===c.type){"divider"===l.at(-1)?.type&&"subheader"===c.type||(l=[]),l.push({index:u,matches:{},type:c.type});continue}const r=a||Object.keys(d);e=r.length===o;for(const e of r){const r=(0,s.qF)(d,e),a=n?.customKeyFilter?.[e];if(f=a?a(r,t,c):i(r,t,c),-1!==f&&!1!==f)a?h[e]=ci(f,t):p[e]=ci(f,t);else if("every"===n?.filterMode)continue e}}else f=i(c,t,c),-1!==f&&!1!==f&&(p.title=ci(f,t));const r=Object.keys(p).length,m=Object.keys(h).length;if(!r&&!m)continue;if("union"===n?.filterMode&&m!==o&&!r)continue;if("intersection"===n?.filterMode&&(m!==o||!r&&o>0&&!e))continue}l.length&&(r.push(...l),l=[]),r.push({index:u,matches:{...p,...h}})}return r}function pi(e,t,n,i){const a=(0,o.XI)([]),s=(0,o.XI)(new Map),l=(0,r.Fl)((()=>i?.transform?(0,o.SU)(t).map((e=>[e,i.transform(e)])):(0,o.SU)(t)));function u(e){return s.value.get(e.value)}return(0,r.m0)((()=>{const r="function"===typeof n?n():(0,o.SU)(n),u="string"!==typeof r&&"number"!==typeof r?"":String(r),c=hi(l.value,u,{customKeyFilter:{...e.customKeyFilter,...(0,o.SU)(i?.customKeyFilter)},default:e.customFilter,filterKeys:e.filterKeys,filterMode:e.filterMode,noFilter:e.noFilter}),d=(0,o.SU)(t),h=[],p=new Map;
3336c.forEach((e=>{let{index:t,matches:n}=e;const r=d[t];h.push(r),p.set(r.value,n)})),a.value=h,s.value=p})),{filteredItems:a,filteredMatches:s,getMatches:u}}function fi(e,t,n){return null!=n&&n.length?n.map(((a,o)=>{const s=0===o?0:n[o-1][1],l=[(0,r._)("span",{class:(0,i.C_)(`${e}__unmask`)},[t.slice(s,a[0])]),(0,r._)("span",{class:(0,i.C_)(`${e}__mask`)},[t.slice(a[0],a[1])])];return o===n.length-1&&l.push((0,r._)("span",{class:(0,i.C_)(`${e}__unmask`)},[t.slice(a[1])])),(0,r._)(r.HY,null,[l])})):t}const mi=(0,c.U)({closeText:{type:String,default:"$vuetify.close"},openText:{type:String,default:"$vuetify.open"}},"autocomplete");function vi(e,t){const n=(0,r.Me)(),i=(0,r.Fl)((()=>`menu-${n}`)),a=(0,o.Vh)((()=>(0,o.Tn)(t))),s=(0,o.Vh)((()=>i.value));return{menuId:i,ariaExpanded:a,ariaControls:s}}const gi=(0,c.U)({chips:Boolean,closableChips:Boolean,eager:Boolean,hideNoData:Boolean,hideSelected:Boolean,listProps:{type:Object},menu:Boolean,menuIcon:{type:st.lE,default:"$dropdown"},menuProps:{type:Object},multiple:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},openOnClear:Boolean,itemColor:String,noAutoScroll:Boolean,...mi(),...rr({itemChildren:!1})},"Select"),yi=(0,c.U)({search:String,...di({filterKeys:["title"]}),...gi(),...(0,s.CE)(zr({modelValue:null,role:"combobox"}),["validationValue","dirty"]),...(0,ve.X)({transition:{component:B}})},"VSelect"),_i=(0,k.ev)()({name:"VSelect",props:yi(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0,"update:search":e=>!0,"item:added":e=>!0,"item:removed":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{t:a}=(0,w.bU)(),u=(0,o.iH)(),c=(0,o.iH)(),d=(0,o.iH)(),h=(0,o.iH)(),p=(0,o.iH)(),{items:f,transformIn:m,transformOut:v}=sr(e),g=(0,$e.z)(e,"search",""),{filteredItems:y,getMatches:_}=pi(e,f,(()=>g.value)),b=(0,$e.z)(e,"modelValue",[],(e=>m(null===e?[null]:(0,s.FT)(e))),(t=>{const n=v(t);return e.multiple?n:n[0]??null})),T=(0,r.Fl)((()=>"function"===typeof e.counterValue?e.counterValue(b.value):"number"===typeof e.counterValue?e.counterValue:b.value.length)),S=Rr(e),k=Hr(e),E=(0,r.Fl)((()=>b.value.map((e=>e.value)))),I=(0,o.XI)(!1),x=(0,o.Vh)((()=>e.closableChips&&!S.isReadonly.value&&!S.isDisabled.value)),{InputIcon:A}=bn(e);let P,$="",O=0,N=!1;const L=(0,r.Fl)((()=>{const t=g.value?y.value:f.value;return e.hideSelected?t.filter((t=>!b.value.some((n=>(e.valueComparator||Xe.v)(n,t))))):t})),D=(0,r.Fl)((()=>e.hideNoData&&!L.value.length||S.isReadonly.value||S.isDisabled.value)),R=(0,$e.z)(e,"menu"),F=(0,r.Fl)({get:()=>R.value,set:e=>{R.value&&!e&&c.value?.ΨopenChildren.size||e&&D.value||(R.value=e)}}),{menuId:M,ariaExpanded:V,ariaControls:U}=vi(e,F),B=(0,r.Fl)((()=>({...e.menuProps,activatorProps:{...e.menuProps?.activatorProps||{},"aria-haspopup":"listbox"}}))),j=(0,o.iH)(),W=si(j,u),H=oi(F,(()=>c.value?.contentEl),(()=>u.value?.controlRef)),{onTabKeydown:q}=li({groups:[{type:"element",contentRef:d},{type:"list",contentRef:j,displayItemsCount:()=>L.value.length},{type:"element",contentRef:h}],onLeave:()=>{F.value=!1,u.value?.focus()}});function G(t){e.openOnClear&&(F.value=!0)}function z(){D.value||(N=!1,F.value=!F.value)}function Y(e){"Tab"===e.key&&q(e),j.value?.$el.contains(e.target)&&(0,s.N0)(e)&&K(e)}function K(t){if(!t.key||S.isReadonly.value)return;if(["Enter"," ","ArrowDown","ArrowUp","Home","End"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"," "].includes(t.key)&&(N=!0,F.value=!0),["Escape","Tab"].includes(t.key)&&(F.value=!1),e.clearable&&"Backspace"===t.key){t.preventDefault();for(const e of b.value)n("item:removed",e);return b.value=[],void G(t)}"Home"===t.key?j.value?.focus("first"):"End"===t.key&&j.value?.focus("last");const r=1e3;if(!(0,s.N0)(t))return;const i=performance.now();i-P>r&&($="",O=0),$+=t.key.toLowerCase(),P=i;const a=L.value;function o(){let e=l();return e||($.at(-1)===$.at(-2)&&($=$.slice(0,-1),O++,e=l(),e)?e:(O=0,e=l(),e||($=t.key.toLowerCase(),l())))}function l(){for(let e=O;e<a.length;e++){const t=a[e];if(t.title.toLowerCase().startsWith($))return[t,e]}}const u=o();if(!u)return;const[c,d]=u;O=d,j.value?.focus(d),e.multiple||X(c,!0)}function X(t){let i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.props.disabled)return;const a=e.valueComparator||Xe.v;if(e.multiple){const e=b.value.findIndex((e=>a(e.value,t.value))),r=null==i?!~e:i;if(~e){const i=r?[...b.value,t]:[...b.value],[a]=i.splice(e,1);r||n("item:removed",a),b.value=i}else r&&(n("item:added",t),b.value=[...b.value,t])}else{const e=!1!==i,o=b.value[0];e?(o&&!a(o.value,t.value)?(n("item:removed",o),n("item:added",t)):o||n("item:added",t),b.value=[t]):(o&&n("item:removed",o),b.value=[]),(0,r.Y3)((()=>{F.value=!1}))}}function J(e){const t=e.target;u.value?.$el.contains(t)||(F.value=!1)}function Z(){return L.value.findIndex((t=>b.value.some((n=>(e.valueComparator||Xe.v)(n.value,t.value)))))}function Q(){if(!b.value.length)return-1;const t=e.valueComparator||Xe.v;let n=0;for(const e of L.value){const r=b.value.some((n=>t(n.value,e.value)));if(r)return e.props.disabled?-1:n;e.props.disabled||n++}return-1}function ee(){if(e.eager&&p.value?.calculateVisibleItems(),j.value&&I.value){const t=Q();t>=0?j.value.focus(t,{focusVisible:!1,preventScroll:e.noAutoScroll}):N&&j.value.focus("first",{focusVisible:!1,preventScroll:e.noAutoScroll})}}function te(){g.value="",I.value&&(c.value?.contentEl?._clickOutside?.lastMousedownWasOutside?I.value=!1:u.value?.focus())}function ne(e){I.value=!0}function re(e){if(!u.value?.$el.contains(e.relatedTarget)){if(H(e))return;I.value=!1}}function ie(e){if(null==e){for(const e of b.value)n("item:removed",e);b.value=[]}else if((0,s.Ku)(u.value,":autofill")||(0,s.Ku)(u.value,":-webkit-autofill")){const t=f.value.find((t=>t.title===e));t&&X(t)}else u.value&&(u.value.value="")}return(0,r.YP)(F,(t=>
3336{if(t||(N=!1),!e.hideSelected&&F.value&&b.value.length){const t=Z();l.BR&&!e.noAutoScroll&&window.requestAnimationFrame((()=>{t>=0&&p.value?.scrollToIndex(t)}))}})),(0,r.YP)(f,((t,n)=>{F.value||I.value&&e.hideNoData&&!n.length&&t.length&&(F.value=!0)})),(0,C.L)((()=>{const t=!(!e.chips&&!i.chip),n=!!(!e.hideNoData||L.value.length||i["prepend-item"]||i["append-item"]||i["no-data"]),o=b.value.length>0,l=Yr.filterProps(e),m=o||!I.value&&e.label&&!e.persistentPlaceholder?void 0:e.placeholder,v={search:g,filteredItems:y.value};return(0,r.Wm)(Yr,(0,r.dG)({ref:u},l,{modelValue:b.value.map((e=>e.props.title)).join(", "),name:void 0,"onUpdate:modelValue":ie,focused:I.value,"onUpdate:focused":e=>I.value=e,validationValue:b.externalValue,counterValue:T.value,dirty:o,class:["v-select",{"v-select--active-menu":F.value,"v-select--chips":!!e.chips,["v-select--"+(e.multiple?"multiple":"single")]:!0,"v-select--selected":b.value.length,"v-select--selection-slot":!!i.selection},e.class],style:e.style,inputmode:"none",placeholder:m,"onClick:clear":G,"onMousedown:control":z,onBlur:J,onKeydown:K,"aria-expanded":V.value,"aria-controls":U.value}),{...i,default:o=>{let{id:l}=o;return(0,r._)(r.HY,null,[(0,r._)("select",{hidden:!0,multiple:e.multiple,name:k.fieldName.value},[f.value.map((e=>(0,r._)("option",{key:e.value,value:e.value,selected:E.value.includes(e.value)},null)))]),(0,r.Wm)(_r,(0,r.dG)({id:M.value,ref:c,modelValue:F.value,"onUpdate:modelValue":e=>F.value=e,activator:"parent",captureFocus:!1,disabled:D.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,transition:e.transition,onAfterEnter:ee,onAfterLeave:te},B.value,{contentClass:["v-select__content",B.value.contentClass]}),{default:()=>[(0,r.Wm)(Tr,{onFocusin:ne,onFocusout:re,onKeydown:Y},{default:()=>[i["menu-header"]&&(0,r._)("header",{ref:d},[i["menu-header"](v)]),n&&(0,r.Wm)(pr,(0,r.dG)({key:"select-list",ref:j,selected:E.value,selectStrategy:e.multiple?"independent":"single-independent",tabindex:"-1",selectable:!!L.value.length,"aria-live":"polite","aria-labelledby":`${l.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},W,e.listProps),{default:()=>[i["prepend-item"]?.(),!L.value.length&&!e.hideNoData&&(i["no-data"]?.()??(0,r.Wm)(Zn,{key:"no-data",title:a(e.noDataText)},null)),(0,r.Wm)(ai,{ref:p,renderless:!0,items:L.value,itemKey:"value"},{default:t=>{let{item:n,index:a,itemRef:o}=t;const l=(0,s.U9)(n.props),u=(0,r.dG)(n.props,{ref:o,key:n.value,onClick:()=>X(n,null),"aria-posinset":a+1,"aria-setsize":L.value.length});return"divider"===n.type?i.divider?.({props:n.raw,index:a})??(0,r.Wm)(_n,(0,r.dG)(n.props,{key:`divider-${a}`}),null):"subheader"===n.type?i.subheader?.({props:n.raw,index:a})??(0,r.Wm)(er,(0,r.dG)(n.props,{key:`subheader-${a}`}),null):i.item?.({item:n,index:a,props:u})??(0,r.Wm)(Zn,(0,r.dG)(u,{role:"option"}),{prepend:t=>{let{isSelected:i}=t;return(0,r._)(r.HY,null,[e.multiple&&!e.hideSelected?(0,r.Wm)(Zt,{key:n.value,modelValue:i,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:e=>e.preventDefault()},null):void 0,l.prependAvatar&&(0,r.Wm)(Bt,{image:l.prependAvatar},null),l.prependIcon&&(0,r.Wm)(ut,{icon:l.prependIcon},null)])},title:()=>g.value?fi("v-select",n.title,_(n)?.title):n.title})}}),i["append-item"]?.()]}),i["menu-footer"]&&(0,r._)("footer",{ref:h},[i["menu-footer"](v)])]})]}),b.value.map(((n,a)=>{function o(e){e.stopPropagation(),e.preventDefault(),X(n,!1)}const l=(0,r.dG)(vn.filterProps(n.props),{"onClick:close":o,onKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),o(e))},onMousedown(e){e.preventDefault(),e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),u=t?!!i.chip:!!i.selection,c=u?(0,s._g)(t?i.chip({item:n,index:a,props:l}):i.selection({item:n,index:a})):void 0;if(!u||c)return(0,r._)("div",{key:n.value,class:"v-select__selection"},[t?i.chip?(0,r.Wm)(le,{key:"chip-defaults",defaults:{VChip:{closable:x.value,size:"small",text:n.title}}},{default:()=>[c]}):(0,r.Wm)(vn,(0,r.dG)({key:"chip",closable:x.value,size:"small",text:n.title,disabled:n.props.disabled},l),null):c??(0,r._)("span",{class:"v-select__selection-text"},[n.title,e.multiple&&a<b.value.length-1&&(0,r._)("span",{class:"v-select__selection-comma"},[(0,r.Uk)(",")])])])}))])},"append-inner":function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return(0,r._)(r.HY,null,[i["append-inner"]?.(...n),e.menuIcon?(0,r.Wm)(ut,{class:"v-select__menu-icon",color:u.value?.fieldIconColor,icon:e.menuIcon,"aria-hidden":!0},null):void 0,e.appendInnerIcon&&(0,r.Wm)(A,{key:"append-icon",name:"appendInner",color:n[0].iconColor.value},null)])}})})),(0,mr.F)({isFocused:I,menu:F,search:g,filteredItems:y,select:X},u)}}),bi=(0,c.U)({autoSelectFirst:{type:[Boolean,String]},clearOnSelect:Boolean,search:String,...di({filterKeys:["title"]}),...gi(),...(0,s.CE)(zr({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VAutocomplete"),Ti=(0,k.ev)()({name:"VAutocomplete",props:bi(),emits:{"update:focused":e=>!0,"update:search":e=>!0,"update:modelValue":e=>!0,"update:menu":e=>!0,"item:added":e=>!0,"item:removed":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:u}=(0,w.bU)(),c=(0,o.iH)(),d=(0,o.XI)(!1),h=(0,o.XI)(!0),p=(0,o.XI)(!1),f=(0,o.iH)(),m=(0,o.iH)(),v=(0,o.XI)(-1),g=(0,o.XI)(null),{items:y,transformIn:_,transformOut:b}=sr(e),{textColorClasses:T,textColorStyles:S}=(0,pe.rY)((()=>c.value?.color)),{InputIcon:k}=bn(e),E=(0,$e.z)(e,"search",""),I=(0,$e.z)(e,"modelValue",[],(e=>_(null===e?[null]:(0,s.FT)(e))),(t=>{const n=b(t);return e.multiple?n:n[0]??null})),x=(0,r.Fl)((()=>"function"===typeof e.counterValue?e.counterValue(I.value):"number"===typeof e.counterValue?e.counterValue:I.value.length)),A=Rr(e),{filteredItems:P,getMatches:$}=pi(e,y,(()=>g.value??(h.value?"":E.value))),O=(0,r.Fl)((()=>e.hideSelected&&null===g.value?P.value.filter((e=>!I.value.some((t=>t.value===e.value)))):P.value)),N=(0,o.Vh)((()=>e.closableChips&&!A.isReadonly.value&&!A.isDisabled.value)),L=(0,r.Fl)((()=>!(!e.chips&&!a.chip))),D=(0,r.Fl)((()=>L.value||!!a.selection)),R=(0,r.Fl)((()=>I.value.map((e=>e.props.value)))),F=(0,r.Fl)((()=>O.value.find((e=>"item"===e.type&&!e.props.disabled)))),M=(0,r.Fl)((()=>{const t=!0===e.autoSelectFirst||"exact"===e.autoSelectFirst&&E.value===F.value?.title;return t&&O.value.length>0&&!h.value&&!p.value})),V=(0,r.Fl)((()=>e.hideNoData&&!O.value.length||A.isReadonly.value||A.isDisabled.value)),U=(0,$e.z)(e,"menu"),B=(0,r.Fl)({get:()=>U.value,set:e=>{U.value&&!e&&f.value?.ΨopenChildren.size||e&&V.value||(U.value=e)}}
3336),{menuId:j,ariaExpanded:W,ariaControls:H}=vi(e,B),q=(0,o.iH)(),G=(0,o.iH)(),z=(0,o.iH)(),Y=si(q,c),K=oi(B,(()=>f.value?.contentEl),(()=>c.value?.controlRef)),{onTabKeydown:X}=li({groups:[{type:"element",contentRef:G},{type:"list",contentRef:q,displayItemsCount:()=>O.value.length},{type:"element",contentRef:z}],onLeave:()=>{B.value=!1,c.value?.focus()}});function J(t){e.openOnClear&&(B.value=!0),E.value=""}function Z(){V.value||(B.value=!0)}function Q(e){V.value||(d.value&&(e.preventDefault(),e.stopPropagation()),B.value=!B.value)}function ee(e){"Tab"===e.key&&X(e),q.value?.$el.contains(e.target)&&((0,s.N0)(e)||"Backspace"===e.key)&&c.value?.focus()}function te(t){if(A.isReadonly.value)return;const n=c.value?.selectionStart,r=I.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(B.value=!0),["Escape"].includes(t.key)&&(B.value=!1),M.value&&["Enter","Tab"].includes(t.key)&&F.value&&!I.value.some((e=>{let{value:t}=e;return t===F.value.value}))&&de(F.value),"ArrowDown"===t.key&&M.value&&q.value?.focus("next"),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&D.value&&I.value.length>0&&!E.value)return de(I.value[0],!1);if(~v.value){t.preventDefault();const e=v.value;de(I.value[v.value],!1),v.value=e>=r-1?r-2:e}else"Backspace"!==t.key||E.value||(v.value=r-1)}else if(e.multiple)if("ArrowLeft"===t.key){if(v.value<0&&n&&n>0)return;const e=v.value>-1?v.value-1:r-1;if(I.value[e])v.value=e;else{const e=E.value?.length??null;v.value=-1,c.value?.setSelectionRange(e,e)}}else if("ArrowRight"===t.key){if(v.value<0)return;const e=v.value+1;I.value[e]?v.value=e:(v.value=-1,c.value?.setSelectionRange(0,0))}else~v.value&&(0,s.N0)(t)&&(v.value=-1)}function ne(e){if((0,s.Ku)(c.value,":autofill")||(0,s.Ku)(c.value,":-webkit-autofill")){const t=y.value.find((t=>t.title===e.target.value));t&&de(t)}}function re(){e.eager&&m.value?.calculateVisibleItems()}function ie(){d.value&&(h.value=!0,c.value?.focus()),g.value=null}function ae(e){d.value=!0,setTimeout((()=>{p.value=!0}))}function oe(e){if(p.value=!1,!c.value?.$el.contains(e.relatedTarget)){if(K(e))return;d.value=!1}}function se(t){if(null==t||""===t&&!e.multiple&&!D.value){for(const e of I.value)n("item:removed",e);I.value=[]}}function ue(e){const t=f.value?.contentEl;t?.contains(e.relatedTarget)&&(d.value=!0)}const ce=(0,o.XI)(!1);function de(t){let i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t||t.props.disabled)return;const a=e.valueComparator||Xe.v;if(e.multiple){const r=I.value.findIndex((e=>a(e.value,t.value))),o=null==i?!~r:i;if(~r){const e=o?[...I.value,t]:[...I.value],[i]=e.splice(r,1);o||n("item:removed",i),I.value=e}else o&&(n("item:added",t),I.value=[...I.value,t]);e.clearOnSelect&&(E.value="")}else{const e=!1!==i,o=I.value[0];e?(o&&!a(o.value,t.value)?(n("item:removed",o),n("item:added",t)):o||n("item:added",t),I.value=[t]):(o&&n("item:removed",o),I.value=[]),g.value=h.value?"":E.value??"",E.value=e&&!D.value?t.title:"",(0,r.Y3)((()=>{B.value=!1,h.value=!0}))}}return(0,r.YP)(d,((t,i)=>{if(t!==i)if(t)ce.value=!0,E.value=e.multiple||D.value?"":String(I.value.at(-1)?.props.title??""),h.value=!0,(0,r.Y3)((()=>ce.value=!1));else{if(!e.multiple&&null==E.value){for(const e of I.value)n("item:removed",e);I.value=[]}B.value=!1,!h.value&&E.value&&(g.value=E.value),E.value="",v.value=-1}})),(0,r.YP)(E,(e=>{d.value&&!ce.value&&(e&&(B.value=!0),h.value=!e)})),(0,r.YP)(B,(t=>{if(!e.hideSelected&&t&&I.value.length&&h.value){const t=O.value.findIndex((e=>I.value.some((t=>e.value===t.value))));l.BR&&!e.noAutoScroll&&window.requestAnimationFrame((()=>{t>=0&&m.value?.scrollToIndex(t)}))}t&&(g.value=null)})),(0,r.YP)(y,((e,t)=>{B.value||d.value&&!t.length&&e.length&&(B.value=!0)})),(0,C.L)((()=>{const t=!!(!e.hideNoData||O.value.length||a["prepend-item"]||a["append-item"]||a["no-data"]),n=I.value.length>0,o=Yr.filterProps(e),l={search:E,filteredItems:P.value};return(0,r.Wm)(Yr,(0,r.dG)({ref:c},o,{modelValue:E.value,"onUpdate:modelValue":[e=>E.value=e,se],focused:d.value,"onUpdate:focused":e=>d.value=e,validationValue:I.externalValue,counterValue:x.value,dirty:n,onChange:ne,class:["v-autocomplete","v-autocomplete--"+(e.multiple?"multiple":"single"),{"v-autocomplete--active-menu":B.value,"v-autocomplete--chips":!!e.chips,"v-autocomplete--selection-slot":!!D.value,"v-autocomplete--selecting-index":v.value>-1},e.class],style:e.style,readonly:A.isReadonly.value,placeholder:n?void 0:e.placeholder,"onClick:clear":J,"onMousedown:control":Z,onKeydown:te,onBlur:ue,"aria-expanded":W.value,"aria-controls":H.value}),{...a,default:n=>{let{id:o}=n;return(0,r._)(r.HY,null,[(0,r.Wm)(_r,(0,r.dG)({id:j.value,ref:f,modelValue:B.value,"onUpdate:modelValue":e=>B.value=e,activator:"parent",disabled:V.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:re,onAfterLeave:ie},e.menuProps,{contentClass:["v-autocomplete__content",e.menuProps?.contentClass]}),{default:()=>[(0,r.Wm)(Tr,{onFocusin:ae,onKeydown:ee},{default:()=>[a["menu-header"]&&(0,r._)("header",{ref:G},[a["menu-header"](l)]),t&&(0,r.Wm)(pr,(0,r.dG)({key:"autocomplete-list",ref:q,filterable:!0,selected:R.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:e=>e.preventDefault(),onFocusout:oe,tabindex:"-1",selectable:!!O.value.length,"aria-live":"polite","aria-labelledby":`${o.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},Y,e.listProps),{default:()=>[a["prepend-item"]?.(),!O.value.length&&!e.hideNoData&&(a["no-data"]?.()??(0,r.Wm)(Zn,{key:"no-data",title:u(e.noDataText)},null)),(0,r.Wm)(ai,{ref:m,renderless:!0,items:O.value,itemKey:"value"},{default:t=>{let{item:n,index:i,itemRef:o}=t;const s=(0,r.dG)(n.props,{ref:o,key:n.value,active:!(!M.value||n!==F.value)||void 0,onClick:()=>de(n,null),"aria-posinset":i+1,"aria-setsize":O.value.length});return"divider"===n.type?a.divider?.({props:n.raw,index:i})??(0,r.Wm)(_n,(0,r.dG)(n.props,{key:`divider-${i}`}),null):"subheader"===n.type?a.subheader?.({props:n.raw,index:i})??(0,r.Wm)(er,(0,r.dG)(n.props,{key:`subheader-${i}`}),null):a.item?.({item:n,index:i,props:s})??(0,r.Wm)(Zn,(0,r.dG)(s,{role:"option"}),{prepend:t=>{let{isSelected:i}=t;return(0,r._)(r.HY,null,[e.multiple&&!e.hideSelected?(0,r.Wm)(Zt,{key:n.value,modelValue:i,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:e=>e.preventDefault()},null):void 0,n.props.prependAvatar&&(0,r.Wm)(Bt,{image:n.props.prependAvatar},null),n.props.prependIcon&&(0,r.Wm)(ut,{icon:n.props.prependIcon},null)])},title:()=>h.value?n.title:fi("v-autocomplete",n.title,$(n)?.title)})}}),a["append-item"]?.()]}),a["menu-footer"]&&(0,r._)("footer",{ref:z},[a["menu-footer"](l)])]})]}),I.value.map(((t,n)=>{function o(e){e.stopPropagation(),e.preventDefault(),de(t,!1)}const l=(0,r.dG)(vn.filterProps(t.props),{"onClick:close":o,onKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),o(e))},onMousedown(e){e.preventDefault(),e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),u=L.value?!!a.chip:!!a.selection,c=u?(0,s._g)(L.value?a.chip({item:t,
3336index:n,props:l}):a.selection({item:t,index:n})):void 0;if(!u||c)return(0,r._)("div",{key:t.value,class:(0,i.C_)(["v-autocomplete__selection",n===v.value&&["v-autocomplete__selection--selected",T.value]]),style:(0,i.j5)(n===v.value?S.value:{})},[L.value?a.chip?(0,r.Wm)(le,{key:"chip-defaults",defaults:{VChip:{closable:N.value,size:"small",text:t.title}}},{default:()=>[c]}):(0,r.Wm)(vn,(0,r.dG)({key:"chip",closable:N.value,size:"small",text:t.title,disabled:t.props.disabled},l),null):c??(0,r._)("span",{class:"v-autocomplete__selection-text"},[t.title,e.multiple&&n<I.value.length-1&&(0,r._)("span",{class:"v-autocomplete__selection-comma"},[(0,r.Uk)(",")])])])}))])},"append-inner":function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(0,r._)(r.HY,null,[a["append-inner"]?.(...n),e.menuIcon?(0,r.Wm)(ut,{class:"v-autocomplete__menu-icon",color:c.value?.fieldIconColor,icon:e.menuIcon,onMousedown:Q,onClick:s.ZT,"aria-hidden":!0,tabindex:"-1"},null):void 0,e.appendInnerIcon&&(0,r.Wm)(k,{key:"append-icon",name:"appendInner",color:n[0].iconColor.value},null)])}})})),(0,mr.F)({isFocused:d,isPristine:h,menu:B,search:E,filteredItems:P,select:de},c)}}),wi=(0,c.U)({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:st.lE,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...(0,a.l)(),...Ee({location:"top end"}),...fe(),...x(),...(0,S.x$)(),...(0,ve.X)({transition:"scale-rotate-transition"}),...(0,ue.x)()},"VBadge"),Si=(0,k.ev)()({name:"VBadge",inheritAttrs:!1,props:wi(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:i}=(0,pe.Y5)((()=>
3336e.color)),{roundedClasses:a}=me(e),{t:o}=(0,w.bU)(),{textColorClasses:l,textColorStyles:u}=(0,pe.rY)((()=>e.textColor)),{themeClasses:c}=(0,S.Fg)(),{locationStyles:d}=Ie(e,!0,(t=>{const n=e.floating?e.dot?2:4:e.dot?8:12;return n+(["top","bottom"].includes(t)?Number(e.offsetY??0):["left","right"].includes(t)?Number(e.offsetX??0):0)})),{dimensionStyles:h}=(0,ue.$)(e);return(0,C.L)((()=>{const p=Number(e.content),f=!e.max||isNaN(p)?e.content:p<=Number(e.max)?p:`${e.max}+`,[m,v]=(0,s.Ob)(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return(0,r.Wm)(e.tag,(0,r.dG)({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},v,{style:e.style}),{default:()=>[(0,r._)("div",{class:"v-badge__wrapper"},[t.slots.default?.(),(0,r.Wm)(ve.J,{transition:e.transition},{default:()=>[(0,r.wy)((0,r._)("span",(0,r.dG)({class:["v-badge__badge",c.value,n.value,a.value,l.value],style:[i.value,u.value,h.value,e.inline?{}:d.value],"aria-atomic":"true","aria-label":o(e.label,p),"aria-live":"polite",role:"status"},m),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?(0,r.Wm)(ut,{icon:e.icon},null):f]),[[$.F8,e.modelValue]])]})])]})})),{}}}),ki=(0,c.U)({color:String,density:String,...(0,a.l)()},"VBannerActions"),Ci=(0,k.ev)()({name:"VBannerActions",props:ki(),setup(e,t){let{slots:n}=t;return(0,oe.AF)({VBtn:{color:e.color,density:e.density,slim:!0,variant:"text"}}),(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-banner-actions",e.class]),style:(0,i.j5)(e.style)},[n.default?.()]))),{}}}),Ei=Nt("v-banner-text"),Ii=(0,c.U)({avatar:String,bgColor:String,color:String,icon:st.lE,lines:String,stacked:Boolean,sticky:Boolean,text:String,...be(),...(0,a.l)(),...Ve(),...(0,ue.x)(),...(0,Qt.Tp)({mobile:null}),...we(),...Ee(),...St(),...fe(),...x(),...(0,S.x$)()},"VBanner"),xi=(0,k.ev)()({name:"VBanner",props:Ii(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:s}=(0,pe.Y5)((()=>e.bgColor)),{borderClasses:l}=Te(e),{densityClasses:u}=Ue(e),{displayClasses:c,mobile:d}=(0,Qt.AW)(e),{dimensionStyles:h}=(0,ue.$)(e),{elevationClasses:p}=Se(e),{locationStyles:f}=Ie(e),{positionClasses:m}
3336=kt(e),{roundedClasses:v}=me(e),{themeClasses:g}=(0,S.ER)(e),y=(0,o.Vh)((()=>e.color)),_=(0,o.Vh)((()=>e.density));(0,oe.AF)({VBannerActions:{color:y,density:_}}),(0,C.L)((()=>{const t=!(!e.text&&!n.text),o=!(!e.avatar&&!e.icon),b=!(!o&&!n.prepend);return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-banner",{"v-banner--stacked":e.stacked||d.value,"v-banner--sticky":e.sticky,[`v-banner--${e.lines}-line`]:!!e.lines},g.value,a.value,l.value,u.value,c.value,p.value,m.value,v.value,e.class]),style:(0,i.j5)([s.value,h.value,f.value,e.style]),role:"banner"},{default:()=>[b&&(0,r._)("div",{key:"prepend",class:"v-banner__prepend"},[n.prepend?(0,r.Wm)(le,{key:"prepend-defaults",disabled:!o,defaults:{VAvatar:{color:y.value,density:_.value,icon:e.icon,image:e.avatar}}},n.prepend):(0,r.Wm)(Bt,{key:"prepend-avatar",color:y.value,density:_.value,icon:e.icon,image:e.avatar},null)]),(0,r._)("div",{class:"v-banner__content"},[t&&(0,r.Wm)(Ei,{key:"text"},{default:()=>[n.text?.()??e.text]}),n.default?.()]),n.actions&&(0,r.Wm)(Ci,{key:"actions"},n.actions)]})}))}}),Ai=(0,c.U)({baseColor:String,bgColor:String,color:String,grow:Boolean,mode:{type:String,validator:e=>!e||["horizontal","shift"].includes(e)},height:{type:[Number,String],default:56},active:{type:Boolean,default:!0},...be(),...(0,a.l)(),...Ve(),...we(),...fe(),...g({name:"bottom-navigation"}),...x({tag:"header"}),...Je({selectedClass:"v-btn--selected"}),...(0,S.x$)()},"VBottomNavigation"),Pi=(0,k.ev)()({name:"VBottomNavigation",props:Ai(),emits:{"update:active":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.Fg)(),{borderClasses:l}=Te(e),{backgroundColorClasses:u,backgroundColorStyles:c}=(0,pe.Y5)((()=>e.bgColor)),{densityClasses:d}=Ue(e),{elevationClasses:h}
3336=Se(e),{roundedClasses:p}=me(e),{ssrBootStyles:f}=Le(),m=(0,r.Fl)((()=>Number(e.height)-("comfortable"===e.density?8:0)-("compact"===e.density?16:0))),v=(0,$e.z)(e,"active",e.active),{layoutItemStyles:g}=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:(0,o.Vh)((()=>"bottom")),layoutSize:(0,o.Vh)((()=>v.value?m.value:0)),elementSize:m,active:v,absolute:(0,o.Vh)((()=>e.absolute))});return et(e,it),(0,oe.AF)({VBtn:{baseColor:(0,o.Vh)((()=>e.baseColor)),color:(0,o.Vh)((()=>e.color)),density:(0,o.Vh)((()=>e.density)),stacked:(0,o.Vh)((()=>"horizontal"!==e.mode)),variant:"text"}},{scoped:!0}),(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-bottom-navigation",{"v-bottom-navigation--active":v.value,"v-bottom-navigation--grow":e.grow,"v-bottom-navigation--shift":"shift"===e.mode},a.value,u.value,l.value,d.value,h.value,p.value,e.class]),style:(0,i.j5)([c.value,g.value,{height:(0,s.kb)(m.value)},f.value,e.style])},{default:()=>[n.default&&(0,r._)("div",{class:"v-bottom-navigation__content"},[n.default()])]}))),{}}}),$i=(0,c.U)({fullscreen:Boolean,scrollable:Boolean,...(0,s.CE)((0,fr.B)({captureFocus:!0,origin:"center center",scrollStrategy:"block",transition:{component:B},zIndex:2400,retainFocus:!0}),["disableInitialFocus"])},"VDialog"),Oi=(0,k.ev)()({name:"VDialog",props:$i(),emits:{"update:modelValue":e=>!0,afterEnter:()=>!0,afterLeave:()=>!0},setup(e,t){let{emit:n,slots:i}=t;const a=(0,$e.z)(e,"modelValue"),{scopeId:s}=(0,vr.a)(),l=(0,o.iH)();function u(){n("afterEnter"),(e.scrim||e.retainFocus)&&l.value?.contentEl&&!l.value.contentEl.contains(document.activeElement)&&l.value.contentEl.focus({preventScroll:!0})}function c(){n("afterLeave")}return(0,r.YP)(a,(async e=>{e||(await(0,r.Y3)(),l.value?.activatorEl?.focus({preventScroll:!0}))})),(0,C.L)((()=>{const t=fr.y.filterProps(e),n=(0,r.dG)({"aria-haspopup":"dialog"},e.activatorProps),o=(0,r.dG)({tabindex:-1},e.contentProps);return(0,r.Wm)(fr.y,(0,r.dG)({ref:l,class:["v-dialog",{"v-dialog--fullscreen":e.fullscreen,"v-dialog--scrollable":e.scrollable},e.class],style:e.style},t,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,"aria-modal":"true",activatorProps:n,contentProps:o,height:e.fullscreen?void 0:e.height,width:e.fullscreen?void 0:e.width,maxHeight:e.fullscreen?void 0:e.maxHeight,maxWidth:e.fullscreen?void 0:e.maxWidth,role:"dialog",onAfterEnter:u,onAfterLeave:c},s),{activator:i.activator,default:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.Wm)(le,{root:"VDialog"},{default:()=>[i.default?.(...t)]})}})})),(0,mr.F)({},l)}}),Ni=(0,c.U)({inset:Boolean,...$i({transition:"bottom-sheet-transition"})},"VBottomSheet"),Li=(0,k.ev)()({name:"VBottomSheet",props:Ni(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"modelValue");return(0,C.L)((()=>{const t=Oi.filterProps(e);return(0,r.Wm)(Oi,(0,r.dG)(t,{contentClass:["v-bottom-sheet__content",e.contentClass],modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,class:["v-bottom-sheet",{"v-bottom-sheet--inset":e.inset},e.class],style:e.style}),n)})),{}}}),Di=(0,c.U)({divider:[Number,String],...(0,a.l)()},"VBreadcrumbsDivider"),Ri=(0,k.ev)()({name:"VBreadcrumbsDivider",props:Di(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r._)("li",{"aria-hidden":"true",class:(0,i.C_)(["v-breadcrumbs-divider",e.class]),style:(0,i.j5)(e.style)},[n?.default?.()??e.divider]))),{}}}),Fi=(0,c.U)({active:Boolean,activeClass:String,activeColor:String,color:String,disabled:Boolean,title:String,...(0,a.l)(),...(0,s.ei)((0,ue.x)(),["width","maxWidth"]),...(0,Ct.GN)(),...x({tag:"li"})},"VBreadcrumbsItem"),Mi=(0,k.ev)()({name:"VBreadcrumbsItem",props:Fi(),setup(e,t){let{slots:n,attrs:a}=t;const o=(0,Ct.nB)(e,a),s=(0,r.Fl)((()=>e.active||o.isActive?.value)),{dimensionStyles:l}=(0,ue.$)(e),{textColorClasses:u,textColorStyles:c}=(0,pe.rY)((()=>s.value?e.activeColor:e.color));return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-breadcrumbs-item",{"v-breadcrumbs-item--active":s.value,"v-breadcrumbs-item--disabled":e.disabled,[`${e.activeClass}`]:s.value&&e.activeClass},u.value,e.class]),style:(0,i.j5)([c.value,l.value,e.style]),"aria-current":s.value?"page":void 0},{default:()=>[o.isLink.value?(0,r._)("a",(0,r.dG)({class:"v-breadcrumbs-item--link",onClick:o.navigate.value},o.linkProps),[n.default?.()??e.title]):n.default?.()??e.title]}))),{}}}),Vi=(0,c.U)({activeClass:String,activeColor:String,bgColor:String,color:String,disabled:Boolean,divider:{type:String,default:"/"},icon:st.lE,items:{type:Array,default:()=>[]},...(0,a.l)(),...Ve(),...fe(),...x({tag:"ul"})},"VBreadcrumbs"),Ui=(0,k.ev)()({name:"VBreadcrumbs",props:Vi(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:s}=(0,pe.Y5)((()=>e.bgColor)),{densityClasses:l}
3336=Ue(e),{roundedClasses:u}=me(e);(0,oe.AF)({VBreadcrumbsDivider:{divider:(0,o.Vh)((()=>e.divider))},VBreadcrumbsItem:{activeClass:(0,o.Vh)((()=>e.activeClass)),activeColor:(0,o.Vh)((()=>e.activeColor)),color:(0,o.Vh)((()=>e.color)),disabled:(0,o.Vh)((()=>e.disabled))}});const c=(0,r.Fl)((()=>e.items.map((e=>"string"===typeof e?{item:{title:e},raw:e}:{item:e,raw:e}))));return(0,C.L)((()=>{const t=!(!n.prepend&&!e.icon);return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-breadcrumbs",a.value,l.value,u.value,e.class]),style:(0,i.j5)([s.value,e.style])},{default:()=>[t&&(0,r._)("li",{key:"prepend",class:"v-breadcrumbs__prepend"},[n.prepend?(0,r.Wm)(le,{key:"prepend-defaults",disabled:!e.icon,defaults:{VIcon:{icon:e.icon,start:!0}}},n.prepend):(0,r.Wm)(ut,{key:"prepend-icon",start:!0,icon:e.icon},null)]),c.value.map(((e,t,i)=>{let{item:a,raw:o}=e;return(0,r._)(r.HY,null,[n.item?.({item:a,index:t})??(0,r.Wm)(Mi,(0,r.dG)({key:t,disabled:t>=i.length-1},"string"===typeof a?{title:a}:a),{default:n.title?()=>n.title?.({item:a,index:t}):void 0}),t<i.length-1&&(0,r.Wm)(Ri,null,{default:n.divider?()=>n.divider?.({item:o,index:t}):void 0})])})),n.default?.()]})})),{}}}),Bi=(0,c.U)({active:{type:Boolean,default:void 0},activeColor:String,activeIcon:[String,Function,Object],activeVariant:String,baseVariant:{type:String,default:"tonal"},disabled:Boolean,height:[Number,String],width:[Number,String],hideOverlay:Boolean,icon:[String,Function,Object],iconColor:String,loading:Boolean,opacity:[Number,String],readonly:Boolean,rotate:[Number,String],size:{type:[Number,String],default:"default"},sizes:{type:Array,default:()=>[["x-small",16],["small",24],["default",40],["large",48],["x-large",56]]},text:{type:[String,Number,Boolean],default:void 0},...be(),...(0,a.l)(),...we(),...Dt(),...fe(),...x({tag:"button"}),...(0,S.x$)(),...Ge({variant:"flat"})},"VIconBtn"),ji=(0,k.ev)()({name:"VIconBtn",props:Bi(),emits:{"update:active":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const o=(0,$e.z)(e,"active"),{themeClasses:l}=(0,S.ER)(e),{borderClasses:u}=Te(e),{elevationClasses:c}
3336=Se(e),{roundedClasses:d}=me(e),{colorClasses:h,colorStyles:p,variantClasses:f}=ze((()=>({color:(()=>{if(!e.disabled)return o.value?e.activeColor??e.color??"surface-variant":e.color})(),variant:(()=>void 0===o.value?e.variant:o.value?e.activeVariant??e.variant:e.baseVariant??e.variant)()}))),m=new Map(e.sizes);function v(){e.disabled||e.readonly||void 0===o.value||"a"===e.tag&&n.href||(o.value=!o.value)}return(0,C.L)((()=>{const t=o.value?e.activeIcon??e.icon:e.icon,n=e.size,g=m.has(n),y=g?m.get(n):n,_=e.height??y,b=e.width??y,{iconSize:T}=Rt(e,(()=>new Map(e.iconSizes).get(n))),w={icon:t,size:T.value,color:e.iconColor,opacity:e.opacity};return(0,r.Wm)(e.tag,{type:"button"===e.tag?"button":void 0,class:(0,i.C_)([{"v-icon-btn":!0,"v-icon-btn--active":o.value,"v-icon-btn--disabled":e.disabled,"v-icon-btn--loading":e.loading,"v-icon-btn--readonly":e.readonly,[`v-icon-btn--${e.size}`]:!0},l.value,h.value,u.value,c.value,d.value,f.value,e.class]),style:(0,i.j5)([{"--v-icon-btn-rotate":(0,s.kb)(e.rotate,"deg"),"--v-icon-btn-height":(0,s.kb)(_),"--v-icon-btn-width":(0,s.kb)(b)},p.value,e.style]),tabindex:e.disabled||e.readonly?-1:0,onClick:v},{default:()=>[qe(!e.hideOverlay,"v-icon-btn"),(0,r._)("div",{class:"v-icon-btn__content","data-no-activator":""},[!a.default&&t?(0,r.Wm)(ut,(0,r.dG)({key:"content-icon"}
3336,w),null):(0,r.Wm)(le,{key:"content-defaults",disabled:!t,defaults:{VIcon:{...w}}},{default:()=>a.default?.()??(0,i.zw)(e.text)})]),!!e.loading&&(0,r._)("span",{key:"loader",class:"v-icon-btn__loader"},[a.loader?.()??(0,r.Wm)(ft,{color:"boolean"===typeof e.loading?void 0:e.loading,indeterminate:"disable-shrink",width:"2",size:T.value},null)])]})})),{}}});function Wi(e){return e%4===0&&e%100!==0||e%400===0}const Hi=/^(\d{4})-(\d{1,2})(-(\d{1,2}))?([^\d]+(\d{1,2}))?(:(\d{1,2}))?(:(\d{1,2}))?$/,qi=/(\d\d?)(:(\d\d?)|)(:(\d\d?)|)/,Gi=[0,31,28,31,30,31,30,31,31,30,31,30,31],zi=[0,31,29,31,30,31,30,31,31,30,31,30,31],Yi=28,Ki=31,Xi=12,Ji=1,Zi=1,Qi=7,ea=60,ta=59,na=1440,ra=24,ia=23,aa=0,oa=1e4,sa=100,la=100,ua=1e4;function ca(e,t,n){const r=$a(e);return Ua(r,t[0],Fa),xa(r),n&&Sa(r,n,r.hasTime),r}function da(e,t,n){const r=$a(e);return Ua(r,t[t.length-1]),xa(r),n&&Sa(r,n,r.hasTime),r}function ha(e){const t=$a(e);return t.day=Zi,Ia(t),xa(t),t}function pa(e){const t=$a(e);return t.day=Pa(t.year,t.month),Ia(t),xa(t),t}function fa(e){return isFinite(parseInt(e))}function ma(e){return"number"===typeof e&&isFinite(e)||!!qi.exec(e)||"object"===typeof e&&isFinite(e.hour)&&isFinite(e.minute)}function va(e){if("number"===typeof e)return e;if("string"===typeof e){const t=qi.exec(e);return!!t&&60*parseInt(t[1])+parseInt(t[3]||0)}return"object"===typeof e&&("number"===typeof e.hour&&"number"===typeof e.minute&&60*e.hour+e.minute)}function ga(e){return"number"===typeof e&&isFinite(e)||"string"===typeof e&&!!Hi.exec(e)||e instanceof Date}function ya(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0;if("number"===typeof e&&isFinite(e)&&(e=new Date(e)),e instanceof Date){const t=_a(e);return n&&Sa(t,n,t.hasTime),t}if("string"!==typeof e){if(t)throw new Error(`${e} is not a valid timestamp. It must be a Date, number of milliseconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.`);return null}const r=Hi.exec(e);if(!r){if(t)throw new Error(`${e} is not a valid timestamp. It must be a Date, number of milliseconds since Epoch, or a string in the format of YYYY-MM-DD or YYYY-MM-DD hh:mm. Zero-padding is optional and seconds are ignored.`);return null}const i={date:e,time:"",year:parseInt(r[1]),month:parseInt(r[2]),day:parseInt(r[4])||1,hour:parseInt(r[6])||0,minute:parseInt(r[8])||0,weekday:0,hasDay:!!r[4],hasTime:!(!r[6]||!r[8]),past:!1,present:!1,future:!1};return Ia(i),xa(i),n&&Sa(i,n,i.hasTime),i}function _a(e){return xa({date:"",time:"",year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate(),weekday:e.getDay(),hour:e.getHours(),minute:e.getMinutes(),hasDay:!0,hasTime:!0,past:!1,present:!0,future:!1})}function ba(e){return e.year*oa+e.month*sa+e.day}function Ta(e){return e.hour*la+e.minute}function wa(e){return ba(e)*ua+Ta(e)}function Sa(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ba(t),i=ba(e),a=r===i;return e.hasTime&&n&&a&&(r=Ta(t),i=Ta(e),a=r===i),e.past=i<r,e.present=a,e.future=i>r,e}function ka(e){return e instanceof Date||"number"===typeof e&&isFinite(e)}function Ca(e,t,n){return e.hasTime!==t&&(e.hasTime=t,t||(e.hour=ia,e.minute=ta,e.time=La(e)),n&&Sa(e,n,e.hasTime)),e}function Ea(e,t,n){return e.hasTime=!0,e.hour=0,e.minute=0,Da(e,t),xa(e),n&&Sa(e,n,!0),e}function Ia(e){return e.weekday=Aa(e),e}function xa(e){return e.time=La(e),e.date=Na(e),e}function Aa(e){if(e.hasDay){const t=Math.floor,n=e.day,r=(e.month+9)%Xi+1,i=t(e.year/100),a=e.year%100-(e.month<=2?1:0);return((n+t(2.6*r-.2)-2*i+a+t(a/4)+t(i/4))%7+7)%7}return e.weekday}function Pa(e,t){return Wi(e)?zi[t]:Gi[t]}function $a(e){if(null==e)return null;const{date:t,time:n,year:r,month:i,day:a,weekday:o,hour:s,minute:l,hasDay:u,hasTime:c,past:d,present:h,future:p}=e;return{date:t,time:n,year:r,month:i,day:a,weekday:o,hour:s,minute:l,hasDay:u,hasTime:c,past:d,present:h,future:p}}function Oa(e,t){let n=String(e);while(n.length<t)n="0"+n;return n}function Na(e){let t=`${Oa(e.year,4)}-${Oa(e.month,2)}`;return e.hasDay&&(t+=`-${Oa(e.day,2)}`),t}function La(e){return e.hasTime?`${Oa(e.hour,2)}:${Oa(e.minute,2)}`:""}function Da(e,t){e.minute+=t;while(e.minute>=ea)e.minute-=ea,e.hour++,e.hour>=ra&&(Ra(e),e.hour=aa);return e}function Ra(e){return e.day++,e.weekday=(e.weekday+1)%Qi,e.day>Yi&&e.day>Pa(e.year,e.month)&&(e.day=Zi,e.month++,e.month>Xi&&(e.month=Ji,e.year++)),e}function Fa(e){return e.day--,e.weekday=(e.weekday+6)%Qi,e.day<Zi&&(e.month--,e.month<Ji&&(e.year--,e.month=Xi),e.day=Pa(e.year,e.month)),e}function Ma(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ra,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;while(--n>=0)t(e);return e}function Va(e,t){const n=525600*(t.year-e.year),r=43800*(t.month-e.month),i=1440*(t.day-e.day),a=60*(t.hour-e.hour),o=t.minute-e.minute;return n+r+i+a+o}function Ua(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ra,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6;while(e.weekday!==t&&--r>=0)n(e);return e}function Ba(e){const t=[1,1,1,1,1,1,1],n=[0,0,0,0,0,0,0];for(let r=0;r<e.length;r++)n[e[r]]=1;for(let r=0;r<Qi;r++){let e=1;for(let t=1;t<Qi;t++){const i=(r+t)%Qi;if(n[i])break;e++}t[r]=n[r]*e}return t}function ja(e){const t=`${Oa(e.hour,2)}:${Oa(e.minute,2)}`,n=e.date;return new Date(`${n}T${t}:00+00:00`)}function Wa(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:42,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;const o=ba(t),s=[];let l=$a(e),u=0,c=u===o;if(o<ba(e))throw new Error("End date is earlier than start date.");while((!c||s.length<a)&&s.length<i){if(u=ba(l),c=c||u===o,0===r[l.weekday]){l=Ra(l);continue}const e=$a(l);xa(e),Sa(e,n),s.push(e),l=Ma(l,Ra,r[l.weekday])}if(!s.length)throw new Error("No dates found using specified start date, end date, and weekdays.");return s}function Ha(e,t,n,r,i){const a=[];for(let o=0;o<r;o++){const r=t+o*n,s=$a(e);a.push(Ea(s,r,i))}return a}function qa(e,t){const n=(e,t)=>"";return"undefined"===typeof Intl||"undefined"===typeof Intl.DateTimeFormat?n:(n,r)=>{try{const i=new Intl.DateTimeFormat(e||void 0,t(n,r));return i.format(ja(n))}catch(i){return""}}}function Ga(e){if("string"===typeof e&&(e=e.split(",")),Array.isArray(e)){const t=e.map((e=>parseInt(e)));if(t.length>Qi||0===t.length)return!1;const n={};let r=!1;for(let e=0;e<t.length;e++){const i=t[e];if(!isFinite(i)||i<0||i>=Qi)return!1;if(e>0){const n=i-t[e-1];if(n<0){if(r)return!1;r=!0}else if(0===n)return!1}if(n[i])return!1;n[i]=!0}return!0}return!1}function za(e){const t=(0,o.qj)({now:ya("0000-00-00 00:00",!0),today:ya("0000-00-00",!0)}),n=(0,r.Fl)((()=>e.now&&ga(e.now)?ya(e.now,!0):null));function i(){t.now.present=t.today.present=!0,t.now.past=t.today.past=!1,t.now.future=t.today.future=!1}function a(){return _a(new Date)}function s(e,t){e.date!==t.date&&(t.year=e.year,t.month=e.month,t.day=e.day,t.weekday=e.weekday,t.date=e.date)}function l(e,t){e.time!==t.time&&(t.hour=e.hour,t.minute=e.minute,t.time=e.time)}function u(){const e=n.value||a();
3336s(e,t.now),l(e,t.now),s(e,t.today)}return(0,r.YP)(n,u),u(),i(),{times:t,parsedNow:n,updateTimes:u,setPresent:i,getNow:a,updateDay:s,updateTime:l}}var Ya=n(956);const Ka=(0,c.U)({start:{type:[String,Number,Date],validate:ga,default:()=>_a(new Date).date},end:{type:[String,Number,Date],validate:ga},weekdays:{type:[Array,String],default:()=>[0,1,2,3,4,5,6],validate:Ga},firstDayOfWeek:[Number,String],firstDayOfYear:[Number,String],weekdayFormat:{type:Function,default:null},dayFormat:{type:Function,default:null},locale:String,now:{type:String,validator:ga},type:{type:String,default:"month"}},"VCalendar-base");function Xa(e){const{times:t,updateTimes:n}=za({now:e.now}),i=(0,w.O4)(e),a=(0,Ya.Yc)(),o=(0,r.Fl)((()=>"month"===e.type?ha(ya(e.start,!0)):ya(e.start,!0))),s=(0,r.Fl)((()=>{const t=o.value,n=e.end&&ya(e.end)||t,r=wa(n)<wa(t)?t:n;return"month"===e.type?pa(r):r})),l=(0,r.Fl)((()=>ga(e.modelValue)?ya(e.modelValue,!0):o.value||t.today)),u=(0,r.Fl)((()=>{const t=Array.isArray(e.weekdays)?e.weekdays:(e.weekdays||"").split(",").map((e=>parseInt(e,10))),n=a.toJsDate(a.startOfWeek(a.date(),e.firstDayOfWeek)).getDay();return[...t.toSorted().filter((e=>e>=n)),...t.toSorted().filter((e=>e<n))]})),c=(0,r.Fl)((()=>{const t=l.value,n=parseInt(String(e.categoryDays))||1;switch(e.type){case"day":return[t.weekday];case"4day":return[t.weekday,(t.weekday+1)%7,(t.weekday+2)%7,(t.weekday+3)%7];case"category":return Array.from({length:n},((e,n)=>(t.weekday+n)%7));default:return u.value}})),d=(0,r.Fl)((()=>Ba(u.value))),h=(0,r.Fl)((()=>Wa(o.value,s.value,t.today,d.value))),p=(0,r.Fl)((()=>e.dayFormat?e.dayFormat:qa(i.current.value,(()=>({timeZone:"UTC",day:"numeric"}))))),f=(0,r.Fl)((()=>e.weekdayFormat?e.weekdayFormat:qa(i.current.value,((e,t)=>({timeZone:"UTC",weekday:t?"short":"long"})))));function m(e){return(0,pe.Tj)(e)}function v(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{"v-present":e.present,"v-past":e.past,"v-future":e.future,"v-outside":t}}function g(t){return a.getWeek(a.date(t.date),e.firstDayOfWeek,e.firstDayOfYear)}function y(e){return ca(e,u.value,t.today)}function _(e){return da(e,u.value,t.today)}function b(e){return qa(i.current.value,(()=>e))}return{times:t,locale:i,parsedValue:l,parsedWeekdays:u,effectiveWeekdays:c,weekdaySkips:d,parsedStart:o,parsedEnd:s,days:h,dayFormatter:p,weekdayFormatter:f,getColorProps:m,getRelativeClasses:v,getWeekNumber:g,getStartOfWeek:y,getEndOfWeek:_,getFormatter:b,updateTimes:n}}const Ja=(0,c.U)({maxDays:{type:Number,default:7},intervalHeight:{type:[Number,String],default:48,validate:fa},intervalWidth:{type:[Number,String],default:60,validate:fa},intervalMinutes:{type:[Number,String],default:60,validate:fa},firstInterval:{type:[Number,String],default:0,validate:fa},firstTime:{type:[Number,String,Object],validate:ma},intervalCount:{type:[Number,String],default:24,validate:fa},intervalFormat:{type:Function,default:null},intervalStyle:{type:Function,default:null},showIntervalLabel:{type:Function,default:null}},"VCalendar-intervals");function Za(e){const t=Xa(e),n=(0,o.XI)(),i=(0,r.Fl)((()=>parseInt(String(e.firstInterval||0)))),a=(0,r.Fl)((()=>parseInt(String(e.intervalMinutes||60)))),l=(0,r.Fl)((()=>parseInt(String(e.intervalCount||24)))),u=(0,r.Fl)((()=>parseFloat(String(e.intervalHeight||48)))),c=(0,r.Fl)((()=>va(e.firstTime))),d=(0,r.Fl)((()=>{const e=c.value;return!1!==e&&e>=0&&e<=na?e:i.value*a.value})),h=(0,r.Fl)((()=>{const e=Math.ceil((na-d.value)/a.value);return(0,s.uZ)(l.value,0,e)})),p=(0,r.Fl)((()=>h.value*u.value)),f=(0,r.Fl)((()=>Wa(t.parsedStart.value,t.parsedEnd.value,t.times.today,t.weekdaySkips.value,e.maxDays))),m=(0,r.Fl)((()=>{const e=f.value,n=d.value,r=a.value,i=h.value,o=t.times.now;return e.map((e=>Ha(e,n,r,i,o)))})),v=(0,r.Fl)((()=>e.intervalFormat?e.intervalFormat:qa(t.locale.current.value,((e,t)=>t?0===e.minute?{timeZone:"UTC",hour:"numeric"}:{timeZone:"UTC",hour:"numeric",minute:"2-digit"}:{timeZone:"UTC",hour:"2-digit",minute:"2-digit"}))));function g(e){const t=m.value[0][0],n=t.hour===e.hour&&t.minute===e.minute;return!n}function y(e){}function _(e,n){const r=$a(n),i=new M.xu(e.currentTarget),o=d.value,s=e,l=e,c=s.changedTouches||s.touches,h=c&&c[0]?c[0]:l,p=(0,M.Jc)([h.clientX,h.clientY]),f=(p.y-i.top)/u.value,m=Math.floor(f*a.value),v=o+m;return Ea(r,v,t.times.now)}function b(e){const t=$a(e);return t.timeToY=S,t.timeDelta=k,t.minutesToPixels=w,t.week=f.value,t.intervalRange=[d.value,d.value+h.value*a.value],t}function T(e){const t=S(e),r=n.value;return!(!1===t||!r)&&(r.scrollTop=t,!0)}function w(e){return e/a.value*u.value}function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=!1!==t,r="boolean"!==typeof t?t:void 0;let i=k(e,r);return!1===i||(i*=p.value,n?i<0?i=0:i>p.value&&(i=p.value):i<0?i+=p.value:i>p.value&&(i-=p.value)),i}function k(e,t){let n=va(e);if(!1===n)return!1;const r=h.value*a.value;if(t&&"object"===typeof e&&"day"in e){const i=ba(e),a=ba(t);n+=(i-a)*r}const i=d.value;return(n-i)/r}return{...t,scrollAreaRef:n,parsedFirstInterval:i,parsedIntervalMinutes:a,parsedIntervalCount:l,parsedIntervalHeight:u,parsedFirstTime:c,firstMinute:d,bodyHeight:p,days:f,intervals:m,intervalFormatter:v,showIntervalLabelDefault:g,intervalStyleDefault:y,getTimestampAtEvent:_,getSlotScope:b,scrollToTime:T,minutesToPixels:w,timeToY:S,timeDelta:k}}var Qa=n(9797);function eo(e,t,n){return Object.keys(e).filter((e=>(0,s.F7)(e)&&e.endsWith(t))).reduce(((r,i)=>(r[i.slice(0,-t.length)]=t=>(0,s.dr)(e[i],t,n(t)),r)),{})}const to=(0,k.aZ)({name:"VCalendarDaily",directives:{vResize:Qa.Z},props:{color:String,shortWeekdays:{type:Boolean,default:!0},shortIntervals:{type:Boolean,default:!0},hideHeader:Boolean,...Ka(),...Ja()},setup(e,t){let{slots:n,attrs:a}=t;const l=(0,o.iH)(0),u=(0,o.iH)(),c=Za(e);function d(){(0,r.Y3)(h)}function h(){l.value=p()}function p(){return c.scrollAreaRef.value&&u.value?c.scrollAreaRef.value.offsetWidth-u.value.offsetWidth:0}function f(){return(0,r._)("div",{class:"v-calendar-daily__head",style:{marginRight:l.value+"px"}},[m(),v()])}function m(){const t=(0,s.kb)(e.intervalWidth);return(0,r._)("div",{class:"v-calendar-daily__intervals-head",style:{width:t}},[n["interval-header"]?.()])}function v(){return c.days.value.map(g)}function g(e,t){const n=eo(a,":day",(t=>({nativeEvent:t,...c.getSlotScope(e)})));return(0,r._)("div",(0,r.dG)({key:e.date,class:["v-calendar-daily_head-day",c.getRelativeClasses(e)]},n),[_(e),b(e),y(e,t)])}
3336function y(e,t){return n["day-header"]?.({week:c.days.value,...e,index:t})??[]}function _(t){const n=t.present?e.color:void 0;return(0,r._)("div",(0,r.dG)(c.getColorProps({text:n}),{class:"v-calendar-daily_head-weekday"}),[c.weekdayFormatter.value(t,e.shortWeekdays)])}function b(e){return(0,r._)("div",{class:"v-calendar-daily_head-day-label"},[n["day-label-header"]?.(e)??T(e)])}function T(t){const n=eo(a,":date",(e=>({nativeEvent:e,...t})));return(0,r.Wm)(ji,(0,r.dG)({active:t.present,activeColor:e.color,variant:"outlined",baseVariant:"text","onUpdate:active":s.ZT},n),{default:()=>[c.dayFormatter.value(t,!1)]})}function w(){return(0,r._)("div",{class:"v-calendar-daily__body"},[S()])}function S(){return(0,r._)("div",{ref:c.scrollAreaRef,class:"v-calendar-daily__scroll-area"},[k()])}function k(){return(0,r._)("div",{ref:u,class:"v-calendar-daily__pane",style:{height:(0,s.kb)(c.bodyHeight.value)}},[E()])}function E(){return(0,r._)("div",{class:"v-calendar-daily__day-container"},[$(),n.days?.()??I()])}function I(){return c.days.value.map(((e,t)=>{const n=eo(a,":time",(t=>({nativeEvent:t,...c.getSlotScope(c.getTimestampAtEvent(t,e))})));return(0,r._)("div",(0,r.dG)({key:e.date,class:["v-calendar-daily__day",c.getRelativeClasses(e)]},n),[A(t),x(e)])}))}function x(e){return n["day-body"]?.(c.getSlotScope(e))??[]}function A(e){return c.intervals.value[e].map(P)}function P(t){const a=(0,s.kb)(e.intervalHeight),o=e.intervalStyle||c.intervalStyleDefault;return(0,r._)("div",{class:"v-calendar-daily__day-interval",key:t.time,style:(0,i.j5)([{height:a},o(t)])},[n.interval?.(c.getSlotScope(t))])}function $(){const t=(0,s.kb)(e.intervalWidth),n=eo(a,":interval",(e=>({nativeEvent:e,...c.getTimestampAtEvent(e,c.parsedStart.value)})));return(0,r._)("div",(0,r.dG)({class:"v-calendar-daily__intervals-body",style:{width:t}},n),[O()])}function O(){return c.intervals.value.length?c.intervals.value[0].map(N):null}function N(t){const n=(0,s.kb)(e.intervalHeight),i=e.shortIntervals,a=e.showIntervalLabel||c.showIntervalLabelDefault,o=a(t),l=o?c.intervalFormatter.value(t,i):void 0;return(0,r._)("div",{key:t.time,class:"v-calendar-daily__interval",style:{height:n}},[(0,r._)("div",{class:"v-calendar-daily__interval-text"},[l])])}return(0,r.bv)(d),(0,C.L)((()=>(0,r.wy)((0,r._)("div",{class:(0,i.C_)(["v-calendar-daily",a.class]),onDragstart:e=>e.preventDefault()},[e.hideHeader?void 0:f(),w()]),[[Qa.Z,h,void 0,{quiet:!0}]]))),{...c,scrollPush:l,pane:u,init:d,onResize:h,getScrollPush:p}}});function no(e,t){return"function"===typeof t?t(e):"string"===typeof t&&"object"===typeof e&&e?e[t]:"string"===typeof e?e:""}function ro(e,t){return"string"===typeof e?e.split(/\s*,\s/):Array.isArray(e)?e.map((e=>{if("string"===typeof e)return e;const n="string"===typeof e.categoryName?e.categoryName:no(e,t);return{...e,categoryName:n}})):[]}const io=(0,k.aZ)({name:"VCalendarCategory",props:{categories:{type:[Array,String],default:""},categoryText:[String,Function],categoryForInvalid:{type:String,default:""},...Ka(),...Ja()},setup(e,t){let{slots:n,attrs:a}=t;const o=Za(e),l=(0,r.Fl)((()=>ro(e.categories,e.categoryText)));function u(t,n){const r="object"===typeof n&&n&&n.categoryName===e.categoryForInvalid?null:n;return{...t,category:r}}function c(e){return(0,r._)("div",{class:"v-calendar-category__columns"},[l.value.map((t=>d(e,u(e,t))))])}function d(e,t){const i="object"===typeof t.category?t.category.categoryName:t.category,s=eo(a,":dayCategory",(()=>u(o.getSlotScope(e)||e,t.category)));return(0,r._)("div",(0,r.dG)({class:"v-calendar-category__column-header"},s),[n.category?.(t)??h(i),n["day-header"]?.(t)])}function h(t){return(0,r._)("div",{class:"v-calendar-category__category"},[null===t?e.categoryForInvalid:t])}function p(){const e=[];return o.days.value.forEach(((t,n)=>{const r=new Array(l.value.length||1);r.fill(t),e.push(...r.map(((e,t)=>f(e,n,t))))})),e}function f(e,t,n){const i=l.value[n],s=eo(a,":time",(t=>o.getSlotScope(o.getTimestampAtEvent(t,e))));return(0,r._)("div",(0,r.dG)({key:e.date+"-"+n,class:["v-calendar-daily__day",o.getRelativeClasses(e)]},s),[m(t,i),g(e,i)])}function m(e,t){return o.intervals.value[e].map((e=>v(e,t)))}function v(t,a){const l=(0,s.kb)(e.intervalHeight),c=e.intervalStyle||o.intervalStyleDefault;return(0,r._)("div",{key:t.time,class:"v-calendar-daily__day-interval",style:(0,i.j5)([{height:l},c({...t,category:a})])},[n.interval?.(u(o.getSlotScope(t),a))])}function g(e,t){return(0,r._)("div",{class:"v-calendar-category__columns"}
3336,[y(e,t)])}function y(e,t){const i=eo(a,":timeCategory",(n=>u(o.getSlotScope(o.getTimestampAtEvent(n,e)),t)));return(0,r._)("div",(0,r.dG)({class:"v-calendar-category__column"},i),[n["day-body"]?.(u(o.getSlotScope(e),t))])}return(0,C.L)((()=>(0,r.Wm)(to,(0,r.dG)({class:["v-calendar-daily","v-calendar-category"]},e),{...n,days:p,"day-header":c}))),{...o,parsedCategories:l}}}),ao=(0,k.aZ)({name:"VCalendarWeekly",props:{minWeeks:{validate:fa,default:1},monthFormat:Function,showWeek:Boolean,color:String,shortWeekdays:{type:Boolean,default:!0},showMonthOnFirst:{type:Boolean,default:!0},shortMonths:{type:Boolean,default:!0},hideHeader:Boolean,...Ka()},setup(e,t){let{slots:n,attrs:a}=t;const o=Xa(e),l=(0,S.Fg)(),u=(0,r.Fl)((()=>parseInt(String(e.minWeeks)))),c=(0,r.Fl)((()=>{const e=u.value*o.parsedWeekdays.value.length,t=o.getStartOfWeek(o.parsedStart.value),n=o.getEndOfWeek(o.parsedEnd.value);return Wa(t,n,o.times.today,o.weekdaySkips.value,Number.MAX_SAFE_INTEGER,e)})),d=(0,r.Fl)((()=>{const e=o.times.today,t=o.getStartOfWeek(e),n=o.getEndOfWeek(e);return Wa(t,n,e,o.weekdaySkips.value,o.parsedWeekdays.value.length,o.parsedWeekdays.value.length)})),h=(0,r.Fl)((()=>e.monthFormat?e.monthFormat:qa(o.locale.current.value,((e,t)=>({timeZone:"UTC",month:t?"short":"long"})))));function p(e){const t=ba(e);return t<ba(o.parsedStart.value)||t>ba(o.parsedEnd.value)}function f(){return(0,r._)("div",{class:"v-calendar-weekly__head",role:"row"},[m()])}function m(){const t=d.value.map(v);return e.showWeek&&t.unshift((0,r._)("div",{class:"v-calendar-weekly__head-weeknumber"},null)),t}function v(t,n){const i=p(c.value[n]),a=t.present?e.color:void 0;return(0,r._)("div",(0,r.dG)(o.getColorProps({text:a}),{key:t.date,class:["v-calendar-weekly__head-weekday",o.getRelativeClasses(t,i)],role:"columnheader"}),[o.weekdayFormatter.value(t,e.shortWeekdays)])}function g(){const e=c.value,t=o.parsedWeekdays.value.length,n=[];for(let r=0;r<e.length;r+=t)n.push(y(e.slice(r,r+t),_(e[r])));return n}function y(t,n){const i=t.map(((e,n)=>T(e,n,t)));return e.showWeek&&i.unshift(b(n)),(0,r._)("div",{key:t[0].date,class:"v-calendar-weekly__week",role:"row"},[i])}function _(e){return o.getWeekNumber(e)}function b(e){return(0,r._)("div",{class:"v-calendar-weekly__weeknumber"},[(0,r._)("small",null,[String(e)])])}function T(e,t,i){const s=p(e),l=eo(a,":day",(t=>({nativeEvent:t,...e})));return(0,r._)("div",(0,r.dG)({key:e.date,class:["v-calendar-weekly__day",o.getRelativeClasses(e,s)],role:"cell"},l),[w(e),n.day?.({outside:s,index:t,week:i,...e})])}function w(e){return(0,r._)("div",{class:"v-calendar-weekly__day-label"},[n["day-label"]?.(e)??k(e)])}function k(t){const n=1===t.day&&e.showMonthOnFirst,i=eo(a,":date",(e=>({nativeEvent:e,...t})));return(0,r.Wm)(ji,(0,r.dG)({active:t.present,activeColor:e.color,variant:"outlined",baseVariant:"text","onUpdate:active":s.ZT},i),{default:()=>[n?h.value(t,e.shortMonths)+" "+o.dayFormatter.value(t,!1):o.dayFormatter.value(t,!1)]})}return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-calendar-weekly",l.themeClasses.value]),onDragstart:e=>e.preventDefault()},[e.hideHeader?void 0:f(),g()]))),{...o,days:c,todayWeek:d,monthFormatter:h,isOutside:p}}}),oo=864e5;function so(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=e.map((e=>({event:e,columnCount:0,column:0,left:0,width:100})));return n.sort(((e,n)=>Math.max(t,e.event.startTimestampIdentifier)-Math.max(t,n.event.startTimestampIdentifier)||n.event.endTimestampIdentifier-e.event.endTimestampIdentifier)),n}function lo(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return i?!(e>=r||t<=n):!(e>r||t<n)}function uo(e){e.forEach((t=>{t.visuals.forEach((t=>{t.columnCount=e.length}))}))}function co(e){return[e.startTimestampIdentifier,e.endTimestampIdentifier]}function ho(e){return[e.startIdentifier,e.endIdentifier]}function po(e,t){return[Math.max(t,e.startTimestampIdentifier),Math.min(t+oo,e.endTimestampIdentifier)]}function fo(e,t,n,r){for(let i=0;i<e.length;i++){const a=e[i];let o=!1;if(lo(t,n,a.start,a.end,r))for(let e=0;e<a.visuals.length;e++){const i=a.visuals[e],[s,l]=r?co(i.event):ho(i.event);if(lo(t,n,s,l,r)){o=!0;break}}if(!o)return i}return-1}function mo(e){const t={groups:[],min:-1,max:-1,reset:()=>{t.groups=[],t.min=t.max=-1},getVisuals:function(n,r,i){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(n.weekday===e||a)&&t.reset();const o=wa(n),s=so(r,o);
3336return s.forEach((e=>{const[n,r]=i?co(e.event):ho(e.event);t.groups.length>0&&!lo(n,r,t.min,t.max,i)&&(uo(t.groups),t.reset());let a=fo(t.groups,n,r,i);-1===a&&(a=t.groups.length,t.groups.push({start:n,end:r,visuals:[]}));const o=t.groups[a];o.visuals.push(e),o.start=Math.min(o.start,n),o.end=Math.max(o.end,r),e.column=a,-1===t.min?(t.min=n,t.max=r):(t.min=Math.min(t.min,n),t.max=Math.max(t.max,r))})),uo(t.groups),i&&t.reset(),s}};return t}const vo=100,go=(e,t,n)=>{const r=mo(t);return(e,t,n,i)=>{const a=r.getVisuals(e,t,n,i);return n&&a.forEach((e=>{e.left=e.column*vo/e.columnCount,e.width=vo/e.columnCount})),a}},yo=100,_o=5,bo=1.7,To=(e,t,n)=>{const r=mo(t);return(e,t,i,a)=>{if(!i)return r.getVisuals(e,t,i,a);const o=wa(e),s=so(t,o),l=Ao(s,o);for(const r of l){const e=[];for(const t of r.visuals){const r=Po(t,o),i=Co(r,e);if(!1===i){const t=Io(r,e);t&&(r.parent=t,r.sibling=lo(r.start,r.end,t.start,Oo(t.start,n)),r.index=t.index+1,t.children.push(r))}else{const[t]=Eo(r,e,i-1,i-1),a=Eo(r,e,i+1,i+e.length,!0);r.children=a,r.index=i,t&&(r.parent=t,r.sibling=lo(r.start,r.end,t.start,Oo(t.start,n)),t.children.push(r));for(const e of a){e.parent===t&&(e.parent=r);const i=e.index-r.index<=1;i&&r.sibling&&lo(r.start,Oo(r.start,n),e.start,e.end)&&(e.sibling=!0)}}e.push(r)}wo(e,n)}return s.sort(((e,t)=>e.left-t.left||e.event.startTimestampIdentifier-t.event.startTimestampIdentifier)),s}};function wo(e,t){for(const n of e){const{visual:r,parent:i}=n,a=$o(n)+1,o=i?i.visual.left:0,s=yo-o,l=Math.min(_o,yo/a),u=So(n,e),c=s/(a-n.index+1),d=s/(a-n.index+(n.sibling?1:0))*u;i&&(r.left=n.sibling?o+c:o+l),r.width=xo(n,e,t)?yo-r.left:Math.min(yo-r.left,d*bo)}}function So(e,t){if(!e.children.length)return 1;const n=e.index+t.length,r=e.children.reduce(((e,t)=>Math.min(e,t.index)),n);return r-e.index}function ko(e,t){const n=[];for(const r of t)lo(e.start,e.end,r.start,r.end)&&n.push(r.index);return n}function Co(e,t){const n=ko(e,t);n.sort();for(let r=0;r<n.length;r++)if(r<n[r])return r;return!1}function Eo(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const a=[];for(const o of t)o.index>=n&&o.index<=r&&lo(e.start,e.end,o.start,o.end)&&a.push(o);if(i&&a.length>0){const e=a.reduce(((e,t)=>Math.min(e,t.index)),a[0].index);return a.filter((t=>t.index===e))}return a}function Io(e,t){let n=null;for(const r of t)lo(e.start,e.end,r.start,r.end)&&(null===n||r.index>n.index)&&(n=r);return n}function xo(e,t,n){for(const r of t)if(r!==e&&r.index>e.index&&lo(e.start,Oo(e.start,n),r.start,r.end))return!1;return!0}function Ao(e,t){const n=[];for(const r of e){const[e,i]=po(r.event,t);let a=!1;for(const t of n)if(lo(e,i,t.start,t.end)){t.visuals.push(r),t.end=Math.max(t.end,i),a=!0;break}a||n.push({start:e,end:i,visuals:[r]})}return n}function Po(e,t){const[n,r]=po(e.event,t);return{parent:null,sibling:!0,index:0,visual:e,start:n,end:r,children:[]}}function $o(e){let t=e.index;for(const n of e.children){const e=$o(n);e>t&&(t=e)}return t}function Oo(e,t){const n=e%100,r=n+t,i=Math.floor(r/60),a=r%60;return e-n+100*i+a}const No={stack:To,column:go};function Lo(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a=arguments.length>5&&void 0!==arguments[5]&&arguments[5];const o=e[n],s=e[r],l=ya(o,!0),u=s?ya(s,!0):l,c=ka(o)?Ca(l,i):l,d=ka(s)?Ca(u,i):u,h=ba(c),p=wa(c),f=ba(d),m=c.hasTime?0:2359,v=wa(d)+m,g=!c.hasTime;return{input:e,start:c,startIdentifier:h,startTimestampIdentifier:p,end:d,endIdentifier:f,endTimestampIdentifier:v,allDay:g,index:t,category:a}}function Do(e,t){return t>=e.startIdentifier&&t<=e.endIdentifier}function Ro(e,t,n){if(n){const r=Da($a(t),n[0]),i=Da($a(t),n[1]),a=e.startTimestampIdentifier<wa(i),o=e.endTimestampIdentifier>wa(r);return a&&o}return Do(e,ba(t))}function Fo(e,t){return"00:00"===e.end.time&&e.end.date===t.date&&e.start.date!==t.date}function Mo(e,t,n,r){return n===e.startIdentifier||r===t.weekday&&Do(e,n)}function Vo(e,t,n){return t<=e.endIdentifier&&n>=e.startIdentifier}const Uo=100,Bo=95;It.Z;const jo=(0,c.U)({events:{type:Array,default:()=>[]},eventStart:{type:String,default:"start"},eventEnd:{type:String,default:"end"},eventTimed:{type:[String,Function],default:"timed"},eventCategory:{type:[String,Function],default:"category"},eventHeight:{type:Number,default:20},eventColor:{type:[String,Function],default:"primary"},eventTextColor:{type:[String,Function]},eventName:{type:[String,Function],default:"name"},eventOverlapThreshold:{type:[String,Number],default:60},eventOverlapMode:{type:[String,Function],default:"stack",validate:e=>e in No||"function"===typeof e},eventMore:{type:Boolean,default:!0},eventMoreText:{type:String,default:"$vuetify.calendar.moreEvents"},eventRipple:{type:[Boolean,Object],default:null},eventMarginBottom:{type:Number,default:1}},"VCalendar-events");function Wo(e,t,n){const i=Xa(e),a=(0,r.Fl)((()=>!Array.isArray(e.events)||0===e.events.length)),s=(0,r.Fl)((()=>"category"===e.type)),l=(0,r.Fl)((()=>"function"===typeof e.eventTimed?e.eventTimed:t=>!!t[e.eventTimed])),u=(0,r.Fl)((()=>"function"===typeof e.eventCategory?e.eventCategory:t=>t[e.eventCategory])),c=(0,r.Fl)((()=>e.events?e.events.map(((t,n)=>Lo(t,n,e.eventStart||"",e.eventEnd||"",l.value(t),!!s.value&&u.value(t)))):[])),d=(0,r.Fl)((()=>parseInt(String(e.eventOverlapThreshold||0)))),h=(0,r.Fl)((()=>"function"===typeof e.eventTextColor?e.eventTextColor:()=>e.eventTextColor)),p=(0,r.Fl)((()=>"function"===typeof e.eventName?e.eventName:(t,n)=>t.input[e.eventName]||"")),f=(0,r.Fl)((()=>"function"===typeof e.eventOverlapMode?e.eventOverlapMode:No[e.eventOverlapMode])),m=(0,r.Fl)((()=>i.effectiveWeekdays.value));function v(t){return"function"===typeof e.eventColor?e.eventColor(t):t.color||e.eventColor}const g=(0,o.iH)([]);function y(){if(a.value||!e.eventMore)return;const t=e.eventHeight||0,n=_();for(const r in n){const{parent:a,events:o,more:s}=n[r];if(!s)break;const l=a.getBoundingClientRect(),u=o.length-1,c=o.map((e=>({event:e,bottom:e.getBoundingClientRect().bottom}))).sort(((e,t)=>e.bottom-t.bottom));let d=0;for(let e=0;e<=u;e++){const n=c[e].bottom,r=e===u?n>l.bottom:n+t>l.bottom;r&&(c[e].event.style.display="none",d++)}d?(s.style.display="",s.innerHTML=i.locale.t(e.eventMoreText,d)):s.style.display="none"}}function _(){const e={},t=g.value;return t&&t.length?(t.forEach((t=>{const n=t.getAttribute("data-date");
3336t.parentElement&&n&&(n in e||(e[n]={parent:t.parentElement,more:null,events:[]}),t.getAttribute("data-more")?e[n].more=t:(e[n].events.push(t),t.style.display=""))})),e):e}function b(t,n){let{event:r}=t;const i=e.eventHeight||0,a=e.eventMarginBottom||0,o=ba(n),l=n.week,u=o===r.startIdentifier;let c=o===r.endIdentifier,d=Bo;if(!s.value)for(let e=n.index+1;e<l.length;e++){const t=ba(l[e]);if(!(r.endIdentifier>=t)){c=!0;break}d+=Uo,c=c||t===r.endIdentifier}const h={eventParsed:r,day:n,start:u,end:c,timed:!1};return w(r,h,!1,{class:["v-event",{"v-event-start":u,"v-event-end":c}],style:{height:`${i}px`,width:`${d}%`,marginBottom:`${a}px`},"data-date":n.date})}function T(t,n){let{event:r,left:i,width:a}=t;const o=n.timeDelta(r.start,n),s=n.timeDelta(r.end,n);if(!1===s||!1===o||s<0||o>=1||Fo(r,n))return!1;const l=ba(n),u=r.startIdentifier>=l,c=r.endIdentifier>l,d=n.timeToY(r.start,n),h=n.timeToY(r.end,n),p=Math.max(e.eventHeight||0,h-d),f={eventParsed:r,day:n,start:u,end:c,timed:!0};return w(r,f,!0,{class:"v-event-timed",style:{to
3336p:`${d}px`,height:`${p}px`,left:`${i}%`,width:`${a}%`}})}function w(a,o,s,l){const u=t.event,c=h.value(a.input),f=v(a.input),m=a.start.hour<12&&a.end.hour>=12,y=Va(a.start,a.end)<=d.value,_=(e,t)=>{const n=i.getFormatter({timeZone:"UTC",hour:"numeric",minute:e.minute>0?"numeric":void 0});return n(e,!0)},b=()=>_(a.start,m)+" - "+_(a.end,!0),T=()=>{const e=p.value(a,s);if(a.start.hasTime){if(s){const t=b(),n=y?", ":(0,r._)("br",null,null);return(0,r._)("span",{class:"v-event-summary"},[(0,r._)("strong",null,[e]),n,t])}{const t=_(a.start,!0);return(0,r._)("span",{class:"v-event-summary"},[(0,r._)("strong",null,[t]),(0,r.Uk)(" "),e])}}return(0,r._)("span",{class:"v-event-summary"},[e])},w={...o,event:a.input,outside:o.day.outside,singline:y,overlapsNoon:m,formatTime:_,timeSummary:b,eventSummary:T},k=eo(n,":event",(e=>({...w,nativeEvent:e})));return(0,r.wy)((0,r._)("div",(0,r.dG)(i.getColorProps({text:c,background:f}),k,l,{ref_for:!0,ref:g}),[u?.(w)??S(T)]),[[It.Z,e.eventRipple??!0]])}function S(e){return(0,r._)("div",{class:"pl-1"},[e()])}function k(t){const n=(e.eventHeight||0)+(e.eventMarginBottom||0);return(0,r._)("div",{style:{height:`${n}px`},"data-date":t.date,ref_for:!0,ref:g},null)}function C(t){const i=e.eventHeight||0,a=e.eventMarginBottom||0,o=eo(n,":more",(e=>({nativeEvent:e,...t})));return(0,r.wy)((0,r._)("div",(0,r.dG)({class:["v-event-more pl-1",{"v-outside":t.outside}],"data-date":t.date,"data-more":"1",style:{display:"none",height:`${i}px`,marginBottom:`${a}px`},ref_for:!0,ref:g},o),null),[[It.Z,e.eventRipple??!0]])}function E(){const e=i.days.value,t=ba(e[0]),n=ba(e[e.length-1]);return c.value.filter((e=>Vo(e,t,n)))}function I(e,t){return!s.value||"object"===typeof t&&t.categoryName&&t.categoryName===e.category||"string"===typeof e.category&&t===e.category||"string"!==typeof e.category&&null===t}function x(e){const t=ba(e),n=m.value[0];return c.value.filter((r=>Mo(r,e,t,n)))}function A(e){const t=ba(e),n=m.value[0];return c.value.filter((r=>r.allDay&&(s.value?Do(r,t):Mo(r,e,t,n))&&I(r,e.category)))}function P(e){return c.value.filter((t=>!t.allDay&&Ro(t,e,e.intervalRange)&&I(t,e.category)))}function $(){if(a.value)return{...t};const n=f.value(c.value,m.value[0],d.value),i=e=>!!e,o=(e,t,r,a)=>{const o=t(e),l=n(e,o,a,s.value);if(a)return l.map((t=>r(t,e))).filter(i);const u=[];return l.forEach(((t,n)=>{while(u.length<t.column)u.push(k(e));const i=r(t,e);i&&u.push(i)})),u};return{...t,day:n=>{let r=o(n,x,b,!1);if(r&&r.length>0&&e.eventMore&&r.push(C(n)),t.day){const e=t.day(n);e&&(r=r?r.concat(e):e)}return r},"day-header":e=>{let n=o(e,A,b,!1);if(t["day-header"]){const r=t["day-header"](e);r&&(n=n?n.concat(r):r)}return n},"day-body":e=>{const n=o(e,P,T,!0);let i=[(0,r._)("div",{class:"v-event-timed-container"},[n])];if(t["day-body"]){const n=t["day-body"](e);n&&(i=i.concat(n))}return i}}}return{...i,noEvents:a,parsedEvents:c,parsedEventOverlapThreshold:d,eventTimedFunction:l,eventCategoryFunction:u,eventTextColorFunction:h,eventNameFunction:p,eventModeFunction:f,eventWeekdays:m,categoryMode:s,eventColorFunction:v,eventsRef:g,updateEventVisibility:y,getEventsMap:_,genDayEvent:b,genTimedEvent:T,genEvent:w,genName:S,genPlaceholder:k,genMore:C,getVisibleEvents:E,isEventForCategory:I,getEventsForDay:x,getEventsForDayAll:A,getEventsForDayTimed:P,getScopedSlots:$}}const Ho=(0,k.ev)()({name:"VCalendar",directives:{vResize:Qa.Z},props:{modelValue:{type:[String,Number,Date],validate:ga},categoryDays:{type:[Number,String],default:1,validate:e=>isFinite(parseInt(e))&&parseInt(e)>0},categories:{type:[Array,String],default:""},categoryText:{type:[String,Function]},categoryHideDynamic:{type:Boolean},categoryShowAll:{type:Boolean},categoryForInvalid:{type:String,default:""},...Ka(),...jo(),...Ja()},setup(e,t){let{slots:n,attrs:i,emit:a}=t;const s=(0,o.iH)(),l=Wo(e,n,i),u=(0,o.iH)(null),c=(0,o.iH)(null),d=(0,r.Fl)((()=>parseInt(String(e.categoryDays))||1)),h=(0,r.Fl)((()=>ro(e.categories,e.categoryText))),p=(0,r.Fl)((()=>{const t=l.parsedValue.value;let n=null,r=e.maxDays,i=h.value,a=t,o=t;switch(e.type){case"month":n=ao,a=ha(t),o=pa(t);break;case"week":n=to,a=l.getStartOfWeek(t),o=l.getEndOfWeek(t),r=7;break;case"day":n=to,r=1;break;case"4day":n=to,o=Ma($a(o),Ra,3),xa(o),r=4;break;case"custom-weekly":n=ao,a=l.parsedStart.value||t,o=l.parsedEnd.value;break;case"custom-daily":n=to,a=l.parsedStart.value||t,o=l.parsedEnd.value;break;case"category":const s=d.value;n=io,o=Ma($a(o),Ra,s),xa(o),r=s,i=S(i);break;default:const u=e.type;throw new Error(`${u} is not a valid Calendar type`)}return{component:n,start:a,end:o,maxDays:r,categories:i}})),f=(0,r.Fl)((()=>l.effectiveWeekdays.value)),m=(0,r.Fl)((()=>"category"===e.type)),v=(0,r.Fl)((()=>l.getFormatter({timeZone:"UTC",month:"long"}))),g=(0,r.Fl)((()=>l.getFormatter({timeZone:"UTC",month:"short"}))),y=(0,r.Fl)((()=>{const{start:e,end:t}=p.value,n=e.year!==t.year,r=n||e.month!==t.month;return n?g.value(e,!0)+" "+e.year+" - "+g.value(t,!0)+" "+t.year:r?g.value(e,!0)+" - "+g.value(t,!0)+" "+t.year:v.value(e,!1)+" "+e.year}));function _(){const{start:e,end:t}=p.value;u.value&&c.value&&e.date===u.value.date&&t.date===c.value.date||(u.value=e,c.value=t,a("change",{start:e,end:t}))}function b(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const n=$a(l.parsedValue.value),r=t>0,i=r?Ra:Fa,o=r?Ki:Zi;let s=r?t:-t;while(--s>=0)switch(e.type){case"month":n.day=o,i(n);break;case"week":Ma(n,i,Qi);break;case"day":Ma(n,i,1);break;case"4day":Ma(n,i,4);break;case"category":Ma(n,i,d.value);break}Ia(n),xa(n),Sa(n,l.times.now),e.modelValue instanceof Date?a("update:modelValue",ja(n)):"number"===typeof e.modelValue?a("update:modelValue",ja(n).getTime()):a("update:modelValue",n.date),a("moved",n)}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;b(e)}function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;b(-e)}function S(t){if(!l.noEvents.value){const n=t.reduce(((e,t,n)=>("object"===typeof t&&t.categoryName?e[t.categoryName]={index:n,count:0}:"string"===typeof t&&(e[t]={index:n,count:0}),e)),{});if(!e.categoryHideDynamic||!e.categoryShowAll){let r=t.length;l.parsedEvents.value.forEach((t=>{let i=t.category;"string"!==typeof i&&(i=e.categoryForInvalid),i&&(i in n?n[i].count++:e.categoryHideDynamic||(n[i]={index:r++,count:1}))}))}if(!e.categoryShowAll)for(const e in n)0===n[e].count&&delete n[e];t=t.filter((e=>"object"===typeof e&&e.categoryName?n.hasOwnProperty(e.categoryName):"string"===typeof e&&n.hasOwnProperty(e)))}return t}return(0,r.YP)(p,_),(0,r.bv)((()=>{l.updateEventVisibility(),_()})),(0,r.ic)((()=>{window.requestAnimationFrame(l.updateEventVisibility)})),(0,C.L)((()=>{const{start:t,end:n,maxDays:o,component:u,categories:c}=p.value;return(0,r.wy)((0,r.Wm)(u,(0,r.dG)({ref:s,class:["v-calendar",{"v-calendar-events":!l.noEvents.value}],role:"grid"},u.filterProps(e),{start:t.date,end:n.date,maxDays:o,weekdays:l.effectiveWeekdays.value,categories:c,"onClick:date":(e,t)=>{i["onUpdate:modelValue"]&&a("update:modelValue",t.date)}}),l.getScopedSlots()),[[Qa.Z,l.updateEventVisibility,void 0,{quiet:!0}]])})),(0,mr.F)({...l,lastStart:u,lastEnd:c,parsedCategoryDays:d,renderProps:p,eventWeekdays:f,categoryMode:m,title:y,monthLongFormatter:v,monthShortFormatter:g,parsedCategories:h,checkChange:_,move:b,next:T,prev:w,getCategoryList:S},s)}}),qo=(0,c.U)({...(0,a.l)(),...x()},"VCardActions"),Go=(0,k.ev)()({name:"VCardActions",props:qo(),setup(e,t){let{slots:n}=t;return(0,oe.AF)({VBtn:{slim:!0,variant:"text"}}),(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-card-actions",e.class]),style:(0,i.j5)(e.style)}
3336,n))),{}}}),zo=(0,c.U)({opacity:[Number,String],...(0,a.l)(),...x()},"VCardSubtitle"),Yo=(0,k.ev)()({name:"VCardSubtitle",props:zo(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-card-subtitle",e.class]),style:(0,i.j5)([{"--v-card-subtitle-opacity":e.opacity},e.style])},n))),{}}}),Ko=Nt("v-card-title"),Xo=(0,c.U)({appendAvatar:String,appendIcon:st.lE,prependAvatar:String,prependIcon:st.lE,subtitle:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...(0,a.l)(),...Ve(),...x()},"VCardItem"),Jo=(0,k.ev)()({name:"VCardItem",props:Xo(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>{const t=!(!e.prependAvatar&&!e.prependIcon),a=!(!t&&!n.prepend),o=!(!e.appendAvatar&&!e.appendIcon),s=!(!o&&!n.append),l=!(null==e.title&&!n.title),u=!(null==e.subtitle&&!n.subtitle);return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-card-item",e.class]),style:(0,i.j5)(e.style)},{default:()=>[a&&(0,r._)("div",{key:"prepend",class:"v-card-item__prepend"},[n.prepend?(0,r.Wm)(le,{key:"prepend-defaults",disabled:!t,defaults:{VAvatar:{density:e.density,image:e.prependAvatar},VIcon:{density:e.density,icon:e.prependIcon}}},n.prepend):(0,r._)(r.HY,null,[e.prependAvatar&&(0,r.Wm)(Bt,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&(0,r.Wm)(ut,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]),(0,r._)("div",{class:"v-card-item__content"},[l&&(0,r.Wm)(Ko,{key:"title"},{default:()=>[n.title?.()??(0,i.zw)(e.title)]}),u&&(0,r.Wm)(Yo,{key:"subtitle"},{default:()=>[n.subtitle?.()??(0,i.zw)(e.subtitle)]}),n.default?.()]),s&&(0,r._)("div",{key:"append",class:"v-card-item__append"},[n.append?(0,r.Wm)(le,{key:"append-defaults",disabled:!o,defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon}}},n.append):(0,r._)(r.HY,null,[e.appendIcon&&(0,r.Wm)(ut,{key:"append-icon",density:e.density,icon:e.appendIcon},null),e.appendAvatar&&(0,r.Wm)(Bt,{key:"append-avatar",density:e.density,image:e.appendAvatar},null)])])]})})),{}}}),Zo=(0,c.U)({opacity:[Number,String],...(0,a.l)(),...x()},"VCardText"),Qo=(0,k.ev)()({name:"VCardText",props:Zo(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-card-text",e.class]),style:(0,i.j5)([{"--v-card-text-opacity":e.opacity},e.style])},n))),{}}}),es=(0,c.U)({appendAvatar:String,appendIcon:st.lE,disabled:Boolean,flat:Boolean,hover:Boolean,image:String,link:{type:Boolean,default:void 0},prependAvatar:String,prependIcon:st.lE,ripple:{type:[Boolean,Object],default:!0},subtitle:{type:[String,Number,Boolean],default:void 0},text:{type:[String,Number,Boolean],default:void 0},title:{type:[String,Number,Boolean],default:void 0},...be(),...(0,a.l)(),...Ve(),...(0,ue.x)(),...we(),..._t(),...Ee(),...St(),...fe(),...(0,Ct.GN)(),...x(),...(0,S.x$)(),...Ge({variant:"elevated"})},"VCard"),ts=(0,k.ev)()({name:"VCard",directives:{vRipple:It.Z},props:es(),setup(e,t){let{attrs:n,slots:i}=t;const{themeClasses:a}=(0,S.ER)(e),{borderClasses:l}=Te(e),{colorClasses:u,colorStyles:c,variantClasses:d}=ze(e),{densityClasses:h}=Ue(e),{dimensionStyles:p}=(0,ue.$)(e),{elevationClasses:f}=Se(e),{loaderClasses:m}=bt(e),{locationStyles:v}=Ie(e),{positionClasses:g}
3336=kt(e),{roundedClasses:y}=me(e),_=(0,Ct.nB)(e,n),b=(0,o.XI)(void 0);return(0,r.YP)((()=>e.loading),((e,t)=>{b.value=e||"string"!==typeof t?"boolean"===typeof e?void 0:e:t}),{immediate:!0}),(0,C.L)((()=>{const t=!1!==e.link&&_.isLink.value,n=!e.disabled&&!1!==e.link&&(e.link||_.isClickable.value),o=t?"a":e.tag,T=!(!i.title&&null==e.title),w=!(!i.subtitle&&null==e.subtitle),S=T||w,k=!!(i.append||e.appendAvatar||e.appendIcon),C=!!(i.prepend||e.prependAvatar||e.prependIcon),E=!(!i.image&&!e.image),I=S||C||k,x=!(!i.text&&null==e.text);return(0,r.wy)((0,r.Wm)(o,(0,r.dG)(_.linkProps,{class:["v-card",{"v-card--disabled":e.disabled,"v-card--flat":e.flat,"v-card--hover":e.hover&&!(e.disabled||e.flat),"v-card--link":n},a.value,l.value,u.value,h.value,f.value,m.value,g.value,y.value,d.value,e.class],style:[c.value,p.value,v.value,{"--v-card-height":(0,s.kb)(e.height)},e.style],onClick:n&&_.navigate.value,tabindex:e.disabled?-1:void 0}),{default:()=>[E&&(0,r._)("div",{key:"image",class:"v-card__image"},[i.image?(0,r.Wm)(le,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{cover:!0,src:e.image}}},i.image):(0,r.Wm)(_e,{key:"image-img",cover:!0,src:e.image},null)]),(0,r.Wm)(Tt,{name:"v-card",active:!!e.loading,color:b.value},{default:i.loader}),I&&(0,r.Wm)(Jo,{key:"item",prependAvatar:e.prependAvatar,prependIcon:e.prependIcon,title:e.title,subtitle:e.subtitle,appendAvatar:e.appendAvatar,appendIcon:e.appendIcon},{default:i.item,prepend:i.prepend,title:i.title,subtitle:i.subtitle,append:i.append}),x&&(0,r.Wm)(Qo,{key:"text"},{default:()=>[i.text?.()??e.text]}),i.default?.(),i.actions&&(0,r.Wm)(Go,null,{default:i.actions}),qe(n,"v-card")]}),[[It.Z,n&&e.ripple]])})),{}}});var ns=n(7522);const rs=Symbol.for("vuetify:v-window"),is=Symbol.for("vuetify:v-window-group"),as=(0,c.U)({continuous:Boolean,nextIcon:{type:[Boolean,String,Function,Object],default:"$next"},prevIcon:{type:[Boolean,String,Function,Object],default:"$prev"},reverse:Boolean,showArrows:{type:[Boolean,String],validator:e=>"boolean"===typeof e||"hover"===e},verticalArrows:[Boolean,String],touch:{type:[Object,Boolean],default:void 0},direction:{type:String,default:"horizontal"},modelValue:null,disabled:Boolean,selectedClass:{type:String,default:"v-window-item--active"},mandatory:{type:[Boolean,String],default:"force"},crossfade:Boolean,transitionDuration:Number,...(0,a.l)(),...x(),...(0,S.x$)()},"VWindow"),os=(0,k.ev)()({name:"VWindow",directives:{vTouch:ns.Z},props:as(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{isRtl:u}=(0,w.Vw)(),{t:c}=(0,w.bU)(),d=et(e,is),h=(0,o.iH)(),p=(0,r.Fl)((()=>u.value?!e.reverse:e.reverse)),f=(0,o.XI)(!1),m=(0,r.Fl)((()=>{if(e.crossfade)return"v-window-crossfade-transition";const t="vertical"===e.direction?"y":"x",n=p.value?!f.value:f.value,r=n?"-reverse":"";return`v-window-${t}${r}-transition`})),v=(0,o.XI)(0),g=(0,o.iH)(void 0),y=(0,r.Fl)((()=>d.items.value.findIndex((e=>d.selected.value.includes(e.id)))));(0,r.YP)(y,((e,t)=>{let n;const i={left:0,top:0};l.BR&&t>=0&&(n=(0,ri.rP)(h.value),i.left=n?.scrollLeft,i.top=n?.scrollTop);const a=d.items.value.length,o=a-1;f.value=a<=2?e<t:(e!==o||0!==t)&&(0===e&&t===o||e<t),(0,r.Y3)((()=>{if(!l.BR||!n)return;const e=n.scrollTop;e!==i.top&&n.scrollTo({...i,behavior:"instant"}),requestAnimationFrame((()=>{if(!n)return;const e=n.scrollTop;e!==i.top&&n.scrollTo({...i,behavior:"instant"})}))}))}),{flush:"sync"}),(0,r.JJ)(rs,{transition:m,isReversed:f,transitionCount:v,transitionHeight:g,rootRef:h});const _=(0,o.Vh)((()=>e.continuous||0!==y.value)),b=(0,o.Vh)((()=>e.continuous||y.value!==d.items.value.length-1));function T(){_.value&&d.prev()}function k(){b.value&&d.next()}const E=(0,r.Fl)((()=>{const t=[],i={icon:u.value?e.nextIcon:e.prevIcon,class:"v-window__"+(p.value?"right":"left"),onClick:d.prev,"aria-label":c("$vuetify.carousel.prev")};t.push(_.value?n.prev?n.prev({props:i}):(0,r.Wm)(At,i,null):(0,r._)("div",null,null));const a={icon:u.value?e.prevIcon:e.nextIcon,class:"v-window__"+(p.value?"left":"right"),onClick:d.next,"aria-label":c("$vuetify.carousel.next")};return t.push(b.value?n.next?n.next({props:a}):(0,r.Wm)(At,a,null):(0,r._)("div",null,null)),t})),I=(0,r.Fl)((()=>
3336{if(!1===e.touch)return e.touch;const t={left:()=>{p.value?T():k()},right:()=>{p.value?k():T()},start:e=>{let{originalEvent:t}=e;t.stopPropagation()}};return{...t,...!0===e.touch?{}:e.touch}}));function x(t){("horizontal"===e.direction&&"ArrowLeft"===t.key||"vertical"===e.direction&&"ArrowUp"===t.key)&&(t.preventDefault(),T(),(0,r.Y3)((()=>{_.value?A(0):A(1)}))),("horizontal"===e.direction&&"ArrowRight"===t.key||"vertical"===e.direction&&"ArrowDown"===t.key)&&(t.preventDefault(),k(),(0,r.Y3)((()=>{b.value?A(1):A(0)})))}function A(e){const t=E.value[e];if(!t)return;const n=Array.isArray(t)?t[0]:t;n.el?.focus()}return(0,C.L)((()=>(0,r.wy)((0,r.Wm)(e.tag,{ref:h,class:(0,i.C_)(["v-window",{"v-window--show-arrows-on-hover":"hover"===e.showArrows,"v-window--vertical-arrows":!!e.verticalArrows,"v-window--crossfade":!!e.crossfade},a.value,e.class]),style:(0,i.j5)([e.style,{"--v-window-transition-duration":(0,l.QE)()?null:(0,s.kb)(e.transitionDuration,"ms")}])},{default:()=>[(0,r._)("div",{class:"v-window__container",style:{height:g.value}},[n.default?.({group:d}),!1!==e.showArrows&&(0,r._)("div",{class:(0,i.C_)(["v-window__controls",{"v-window__controls--left":"left"===e.verticalArrows||!0===e.verticalArrows},{"v-window__controls--right":"right"===e.verticalArrows}]),onKeydown:x},[E.value])]),n.additional?.({group:d})]}),[[ns.Z,I.value]]))),{group:d}}}),ss=(0,c.U)({color:String,cycle:Boolean,delimiterIcon:{type:st.lE,default:"$delimiter"},height:{type:[Number,String],default:500},hideDelimiters:Boolean,hideDelimiterBackground:Boolean,interval:{type:[Number,String],default:6e3,validator:e=>Number(e)>0},progress:[Boolean,String],verticalDelimiters:[Boolean,String],...as({continuous:!0,mandatory:"force",showArrows:!0})},"VCarousel"),ls=(0,k.ev)()({name:"VCarousel",props:ss(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"modelValue"),{t:a}=(0,w.bU)(),l=(0,o.iH)();let u=-1;function c(){e.cycle&&l.value&&(u=window.setTimeout(l.value.group.next,Number(e.interval)>0?Number(e.interval):6e3))}function d(){window.clearTimeout(u),window.requestAnimationFrame(c)}function h(t,n){("horizontal"===e.direction&&"ArrowLeft"===t.key||"vertical"===e.direction&&"ArrowUp"===t.key)&&(t.preventDefault(),n.prev(),(0,r.Y3)((()=>l.value?.$el.querySelector(".v-btn--active")?.focus()))),("horizontal"===e.direction&&"ArrowRight"===t.key||"vertical"===e.direction&&"ArrowDown"===t.key)&&(t.preventDefault(),n.next(),(0,r.Y3)((()=>l.value?.$el.querySelector(".v-btn--active")?.focus())))}return(0,r.YP)(i,d),(0,r.YP)((()=>e.interval),d),(0,r.YP)((()=>e.cycle),(e=>{e?d():window.clearTimeout(u)})),(0,r.bv)(c),(0,C.L)((()=>{const t=os.filterProps(e);return(0,r.Wm)(os,(0,r.dG)({ref:l},t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,class:["v-carousel",{"v-carousel--hide-delimiter-background":e.hideDelimiterBackground,"v-carousel--vertical-delimiters":e.verticalDelimiters},e.class],style:[{height:(0,s.kb)(e.height)},e.style]}),{default:n.default,additional:t=>{let{group:o}=t;return(0,r._)(r.HY,null,[!e.hideDelimiters&&(0,r._)("div",{class:"v-carousel__controls",style:{left:"left"===e.verticalDelimiters&&e.verticalDelimiters?0:"auto",right:"right"===e.verticalDelimiters?0:"auto"}},[o.items.value.length>0&&(0,r.Wm)(le,{defaults:{VBtn:{color:e.color,icon:e.delimiterIcon,size:"x-small",variant:"text"}},scoped:!0},{default:()=>[o.items.value.map(((e,t)=>{const i={id:`carousel-item-${e.id}`,"aria-label":a("$vuetify.carousel.ariaLabel.delimiter",t+1,o.items.value.length),class:["v-carousel__controls__item",o.isSelected(e.id)&&"v-btn--active"],onClick:()=>o.select(e.id,!0),onKeydown:e=>h(e,o)};return n.item?n.item({props:i,item:e}):(0,r.Wm)(At,(0,r.dG)(e,i),null)}))]})]),e.progress&&(0,r.Wm)(yt,{absolute:!0,class:"v-carousel__progress",color:"string"===typeof e.progress?e.progress:void 0,modelValue:(o.getItemIndex(i.value)+1)/o.items.value.length*100},null)])},prev:n.prev,next:n.next})})),{}}});var us=n(4220);const cs=(0,c.U)({reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},...(0,a.l)(),...Ze(),...(0,us.H)()},"VWindowItem"),ds=(0,k.ev)()({name:"VWindowItem",directives:{vTouch:ns.Z},props:cs(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=(0,r.f3)(rs),l=Qe(e,is),{isBooted:u}=Le();if(!a||!l)throw new Error("[Vuetify] VWindowItem must be used inside VWindow");const c=(0,o.XI)(!1),d=(0,r.Fl)((()=>
3336u.value&&(a.isReversed.value?!1!==e.reverseTransition:!1!==e.transition)));function h(){c.value&&a&&(c.value=!1,a.transitionCount.value>0&&(a.transitionCount.value-=1,0===a.transitionCount.value&&(a.transitionHeight.value=void 0)))}function p(){!c.value&&a&&(c.value=!0,0===a.transitionCount.value&&(a.transitionHeight.value=(0,s.kb)(a.rootRef.value?.clientHeight)),a.transitionCount.value+=1)}function f(){h()}function m(e){c.value&&(0,r.Y3)((()=>{d.value&&c.value&&a&&(a.transitionHeight.value=(0,s.kb)(e.clientHeight))}))}const v=(0,r.Fl)((()=>{const t=a.isReversed.value?e.reverseTransition:e.transition;return!!d.value&&{name:"string"!==typeof t?a.transition.value:t,onBeforeEnter:p,onAfterEnter:h,onEnterCancelled:f,onBeforeLeave:p,onAfterLeave:h,onLeaveCancelled:f,onEnter:m}})),{hasContent:g}=(0,us.l)(e,l.isSelected);return(0,C.L)((()=>(0,r.Wm)(ve.J,{transition:v.value,disabled:!u.value},{default:()=>[(0,r.wy)((0,r._)("div",{class:(0,i.C_)(["v-window-item",l.selectedClass.value,e.class]),style:(0,i.j5)(e.style)},[g.value&&n.default?.()]),[[$.F8,l.isSelected.value]])]}))),{groupItem:l}}}),hs=(0,c.U)({...ye(),...cs()},"VCarouselItem"),ps=(0,k.ev)()({name:"VCarouselItem",inheritAttrs:!1,props:hs(),setup(e,t){let{slots:n,attrs:i}=t;(0,C.L)((()=>{const t=_e.filterProps(e),a=ds.filterProps(e);return(0,r.Wm)(ds,(0,r.dG)({class:["v-carousel-item",e.class]},a),{default:()=>[(0,r.Wm)(_e,(0,r.dG)(i,t),n)]})}))}}),fs=(0,c.U)({...(0,s.CE)(Br(),["direction"]),...(0,s.CE)(Jt(),["inline"])},"VCheckbox"),ms=(0,k.ev)()({name:"VCheckbox",inheritAttrs:!1,props:fs(),emits:{"update:modelValue":e=>!0,"update:focused":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const a=(0,$e.z)(e,"modelValue"),{isFocused:l,focus:u,blur:c}=Ir(e),d=(0,o.iH)(),h=(0,r.Me)();return(0,C.L)((()=>{const[t,o]=(0,s.An)(n),p=jr.filterProps(e),f=Zt.filterProps(e);return(0,r.Wm)(jr,(0,r.dG)({ref:d,class:["v-checkbox",e.class]},t,p,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,id:e.id||`checkbox-${h}`,focused:l.value,style:e.style}),{...i,default:e=>{let{id:t,messagesId:n,isDisabled:s,isReadonly:l,isValid:d}=e;return(0,r.Wm)(Zt,(0,r.dG)(f,{id:t.value,"aria-describedby":n.value,disabled:s.value,readonly:l.value},o,{error:!1===d.value,modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,onFocus:u,onBlur:c}),i)}})})),(0,mr.F)({},d)}}),vs=Nt("v-code","code"),gs=(0,c.U)({color:{type:Object},disabled:Boolean,readonly:Boolean,dotSize:{type:[Number,String],default:10},height:{type:[Number,String],default:150},width:{type:[Number,String],default:300},...(0,a.l)()},"VColorPickerCanvas"),ys=(0,k.aZ)({name:"VColorPickerCanvas",props:gs(),emits:{"update:color":e=>!0,"update:position":e=>!0},setup(e,t){let{emit:n}=t;const a=(0,o.XI)(!1),l=(0,o.iH)(),c=(0,o.XI)(parseFloat(e.width)),d=(0,o.XI)(parseFloat(e.height)),h=(0,o.iH)({x:0,y:0}),p=(0,o.Vh)((()=>!e.disabled&&!e.readonly)),f=(0,r.Fl)({get:()=>h.value,set(t){if(!l.value)return;const{x:r,y:i}=t;h.value=t,n("update:color",{h:e.color?.h??0,s:(0,s.uZ)(r,0,c.value)/c.value,v:1-(0,s.uZ)(i,0,d.value)/d.value,a:e.color?.a??1})}}),m=(0,r.Fl)((()=>{const{x:t,y:n}=f.value,r=parseInt(e.dotSize,10)/2;return{width:(0,s.kb)(e.dotSize),height:(0,s.kb)(e.dotSize),transform:`translate(${(0,s.kb)(t-r)}, ${(0,s.kb)(n-r)})`}})),{resizeRef:v}=u((e=>{if(!v.el?.offsetParent)return;const{width:t,height:n}=e[0].contentRect;c.value=Math.round(t),d.value=Math.round(n)}));function g(e,t,n){const{left:r,top:i,width:a,height:o}=n;f.value={x:(0,s.uZ)(e-r,0,a),y:(0,s.uZ)(t-i,0,o)}}function y(e){"mousedown"===e.type&&e.preventDefault(),p.value&&(_(e),window.addEventListener("mousemove",_),window.addEventListener("mouseup",b),window.addEventListener("touchmove",_),window.addEventListener("touchend",b))}function _(e){if(!p.value||!l.value)return;a.value=!0;const t=(0,s.DC)(e),n=(0,M.Jc)([t.clientX,t.clientY]);g(n.x,n.y,(0,M.Jc)(l.value))}function b(){window.removeEventListener("mousemove",_),window.removeEventListener("mouseup",b),window.removeEventListener("touchmove",_),window.removeEventListener("touchend",b)}function T(){if(!l.value)return;const t=l.value,n=t.getContext("2d");if(!n)return;const r=n.createLinearGradient(0,0,t.width,0);r.addColorStop(0,"hsla(0, 0%, 100%, 1)"),r.addColorStop(1,`hsla(${e.color?.h??0}, 100%, 50%, 1)`),n.fillStyle=r,n.fillRect(0,0,t.width,t.height);const i=n.createLinearGradient(0,0,0,t.height);i.addColorStop(0,"hsla(0, 0%, 0%, 0)"),i.addColorStop(1,"hsla(0, 0%, 0%, 1)"),n.fillStyle=i,n.fillRect(0,0,t.width,t.height)}return(0,r.YP)((()=>e.color?.h),T,{immediate:!0}),(0,r.YP)((()=>[c.value,d.value]),((e,t)=>{T(),h.value={x:f.value.x*e[0]/t[0],y:f.value.y*e[1]/t[1]}}),{flush:"post"}),(0,r.YP)((()=>e.color),(()=>{a.value?a.value=!1:h.value=e.color?{x:e.color.s*c.value,y:(1-e.color.v)*d.value}:{x:0,y:0}}),{deep:!0,immediate:!0}),(0,r.bv)((()=>T())),(0,C.L)((()=>(0,r._)("div",{ref:v,class:(0,i.C_)(["v-color-picker-canvas",e.class]),style:(0,i.j5)(e.style),onMousedown:y,onTouchstartPassive:y},[(0,r._)("canvas",{ref:l,width:c.value,height:d.value},null),e.color&&(0,r._)("div",{class:(0,i.C_)(["v-color-picker-canvas__dot",{"v-color-picker-canvas__dot--disabled":e.disabled}]),style:(0,i.j5)(m.value)},null)]))),{}}});var _s=n(3819);function bs(e,t){if(t){const{a:t,...n}=e;return n}return e}function Ts(e,t){if(null==t||"string"===typeof t){const n="number"===typeof e.a&&e.a<1;if(t?.startsWith("rgb(")){const{r:t,g:r,b:i,a:a}=(0,_s.Bi)(e);return`rgb(${t} ${r} ${i}`+(n?` / ${a})`:")")}if(t?.startsWith("hsl(")){const{h:t,s:r,l:i,a:a}=(0,_s.Gl)(e);return`hsl(${t} ${Math.round(100*r)} ${Math.round(100*i)}`+(n?` / ${a})`:")")}const r=(0,_s.PJ)(e);return 1===e.a?r.slice(0,7):r}if("object"===typeof t){let n;return(0,s.e$)(t,["r","g","b"])?n=(0,_s.Bi)(e):(0,s.e$)(t,["h","
3336s","l"])?n=(0,_s.Gl)(e):(0,s.e$)(t,["h","s","v"])&&(n=e),bs(n,!(0,s.e$)(t,["a"])&&1===e.a)}return e}const ws={h:0,s:0,v:0,a:1},Ss={inputProps:{type:"number",min:0},inputs:[{label:"R",max:255,step:1,getValue:e=>Math.round(e.r),getColor:(e,t)=>({...e,r:Number(t)}),localeKey:"redInput"},{label:"G",max:255,step:1,getValue:e=>Math.round(e.g),getColor:(e,t)=>({...e,g:Number(t)}),localeKey:"greenInput"},{label:"B",max:255,step:1,getValue:e=>Math.round(e.b),getColor:(e,t)=>({...e,b:Number(t)}),localeKey:"blueInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return null!=t?Math.round(100*t)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:_s.Bi,from:_s.Ls},ks={...Ss,inputs:Ss.inputs?.slice(0,3)},Cs={inputProps:{type:"number",min:0},inputs:[{label:"H",max:360,step:1,getValue:e=>Math.round(e.h),getColor:(e,t)=>({...e,h:Number(t)}),localeKey:"hueInput"},{label:"S",max:1,step:.01,getValue:e=>Math.round(100*e.s)/100,getColor:(e,t)=>({...e,s:Number(t)}),localeKey:"saturationInput"},{label:"L",max:1,step:.01,getValue:e=>Math.round(100*e.l)/100,getColor:(e,t)=>({...e,l:Number(t)}),localeKey:"lightnessInput"},{label:"A",max:1,step:.01,getValue:e=>{let{a:t}=e;return null!=t?Math.round(100*t)/100:1},getColor:(e,t)=>({...e,a:Number(t)}),localeKey:"alphaInput"}],to:_s.Gl,from:_s.tT},Es={...Cs,inputs:Cs.inputs.slice(0,3)},Is={inputProps:{type:"text"},inputs:[{label:"HEXA",getValue:e=>e,getColor:(e,t)=>t,localeKey:"hexaInput"}],to:_s.PJ,from:_s.Ty},xs={...Is,inputs:[{label:"HEX",getValue:e=>e.slice(0,7),getColor:(e,t)=>t,localeKey:"hexInput"}]},As={rgb:ks,rgba:Ss,hsl:Es,hsla:Cs,hex:xs,hexa:Is},Ps=e=>{let{label:t,...n}=e;return(0,r._)("div",{class:"v-color-picker-edit__input"},[(0,r._)("input",(0,i.vs)((0,r.F4)(n)),null),(0,r._)("span",null,[t])])},$s=(0,c.U)({color:Object,disabled:Boolean,readonly:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(As).includes(e)},modes:{type:Array,default:()=>Object.keys(As),validator:e=>Array.isArray(e)&&e.every((e=>Object.keys(As).includes(e)))},...(0,a.l)()},"VColorPickerEdit"),Os=(0,k.aZ)({name:"VColorPickerEdit",props:$s(),emits:{"update:color":e=>!0,"update:mode":e=>!0},setup(e,t){let{emit:n}=t;const{t:a}=(0,w.bU)(),o=(0,r.Fl)((()=>e.modes.map((e=>({...As[e],name:e}))))),s=(0,r.Fl)((()=>{const t=o.value.find((t=>t.name===e.mode));if(!t)return[];const r=e.color?t.to(e.color):null;return t.inputs?.map((i=>{let{getValue:o,getColor:s,localeKey:l,...u}=i;return{...t.inputProps,...u,ariaLabel:a(`$vuetify.colorPicker.ariaLabel.${l}`),disabled:e.disabled,readonly:e.readonly,value:r&&o(r),onChange:e=>{const i=e.target;i&&n("update:color",t.from(s(r??t.to(ws),i.value)))}}}))}));return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-color-picker-edit",e.class]),style:(0,i.j5)(e.style)},[s.value?.map((e=>(0,r.Wm)(Ps,e,null))),o.value.length>1&&(0,r.Wm)(At,{icon:"$unfold",size:"x-small",variant:"plain","aria-label":a("$vuetify.colorPicker.ariaLabel.changeFormat"),onClick:()=>{const t=o.value.findIndex((t=>t.name===e.mode));n("update:mode",o.value[(t+1)%o.value.length].name)}},null)]))),{}}}),Ns=Symbol.for("vuetify:v-slider");function Ls(e,t,n){const r="vertical"===n,i=t.getBoundingClientRect(),a="touches"in e?e.touches[0]:e;return r?a.clientY-(i.top+i.height/2):a.clientX-(i.left+i.width/2)}function Ds(e,t){return"touches"in e&&e.touches.length?e.touches[0][t]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0][t]:e[t]}const Rs=(0,c.U)({disabled:{type:Boolean,default:null},error:Boolean,readonly:{type:Boolean,default:null},max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:0},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:e=>"boolean"===typeof e||"always"===e||"hover"===e},thumbSize:{type:[Number,String],default:20},showTicks:{type:[Boolean,String],default:!1,validator:e=>"boolean"===typeof e||"always"===e},ticks:{type:[Array,Object]},tickSize:{type:[Number,String],default:2},color:String,trackColor:String,trackFillColor:String,trackSize:{type:[Number,String],default:4},direction:{type:String,default:"horizontal",validator:e=>["vertical","horizontal"].includes(e)}
3336,reverse:Boolean,noKeyboard:Boolean,...fe(),...we({elevation:2}),ripple:{type:Boolean,default:!0}},"Slider"),Fs=e=>{const t=(0,r.Fl)((()=>parseFloat(e.min))),n=(0,r.Fl)((()=>parseFloat(e.max))),i=(0,r.Fl)((()=>Number(e.step)>0?parseFloat(e.step):0)),a=(0,r.Fl)((()=>Math.max((0,s.pC)(i.value),(0,s.pC)(t.value))));function o(e){if(e=parseFloat(e),i.value<=0)return e;const r=(0,s.uZ)(e,t.value,n.value),o=t.value%i.value;let l=Math.round((r-o)/i.value)*i.value+o;return r>l&&l+i.value>n.value&&(l=n.value),parseFloat(Math.min(l,n.value).toFixed(a.value))}return{min:t,max:n,step:i,decimals:a,roundValue:o}},Ms=e=>{let{props:t,steps:n,onSliderStart:i,onSliderMove:a,onSliderEnd:l,getActiveThumb:u}=e;const c=Rr(t),{isRtl:d}=(0,w.Vw)(),h=(0,o.Vh)((()=>t.reverse)),p=(0,r.Fl)((()=>"vertical"===t.direction)),f=(0,r.Fl)((()=>p.value!==h.value)),{min:m,max:v,step:g,decimals:y,roundValue:_}=n,b=(0,r.Fl)((()=>parseInt(t.thumbSize,10))),T=(0,r.Fl)((()=>parseInt(t.tickSize,10))),S=(0,r.Fl)((()=>parseInt(t.trackSize,10))),k=(0,r.Fl)((()=>(v.value-m.value)/g.value)),C=(0,r.Fl)((()=>t.error||c.isDisabled.value?void 0:t.thumbColor??t.color)),E=(0,r.Fl)((()=>t.error||c.isDisabled.value?void 0:t.thumbColor)),I=(0,r.Fl)((()=>t.error||c.isDisabled.value?void 0:t.trackColor??t.color)),x=(0,r.Fl)((()=>t.error||c.isDisabled.value?void 0:t.trackFillColor??t.color)),A=(0,o.XI)(!1),P=(0,o.XI)(0),$=(0,o.iH)(),O=(0,o.iH)();function N(e){const n=$.value?.$el;if(!n)return;const r="vertical"===t.direction,i=r?"top":"left",a=r?"height":"width",o=r?"clientY":"clientX",{[i]:l,[a]:u}=n.getBoundingClientRect(),c=Ds(e,o);let h=(0,s.uZ)((c-l-P.value)/u)||0;return(r?f.value:f.value!==d.value)&&(h=1-h),_(m.value+h*(v.value-m.value))}const L=e=>{const t=N(e);null!=t&&l({value:t}),A.value=!1,P.value=0},D=e=>{const n=N(e);O.value=u(e),O.value&&(A.value=!0,O.value.contains(e.target)?P.value=Ls(e,O.value,t.direction):(P.value=0,null!=n&&a({value:n})),null!=n&&i({value:n}),(0,r.Y3)((()=>O.value?.focus())))},R={passive:!0,capture:!0};function F(e){const t=N(e);null!=t&&a({value:t})}function M(e){e.stopPropagation(),e.preventDefault(),L(e),window.removeEventListener("mousemove",F,R),window.removeEventListener("mouseup",M)}function V(e){L(e),window.removeEventListener("touchmove",F,R),e.target?.removeEventListener("touchend",V)}function U(e){D(e),window.addEventListener("touchmove",F,R),e.target?.addEventListener("touchend",V,{passive:!1})}function B(e){0===e.button&&(e.preventDefault(),D(e),window.addEventListener("mousemove",F,R),window.addEventListener("mouseup",M,{passive:!1}))}(0,o.EB)((()=>{window.removeEventListener("touchmove",F),window.removeEventListener("mousemove",F),window.removeEventListener("mouseup",M)}));const j=e=>{const t=(e-m.value)/(v.value-m.value)*100;return(0,s.uZ)(isNaN(t)?0:t,0,100)},W=(0,o.Vh)((()=>t.showTicks)),H=(0,r.Fl)((()=>W.value?t.ticks?Array.isArray(t.ticks)?t.ticks.map((e=>({value:e,position:j(e),label:e.toString()}))):Object.keys(t.ticks).map((e=>({value:parseFloat(e),position:j(parseFloat(e)),label:t.ticks[e]}))):k.value!==1/0?(0,s.MT)(k.value+1).map((e=>{const t=m.value+e*g.value;return{value:t,position:j(t)}})):[]:[])),q=(0,r.Fl)((()=>H.value.some((e=>{let{label:t}=e;return!!t})))),G={activeThumbRef:O,color:(0,o.Vh)((()=>t.color)),decimals:y,disabled:c.isDisabled,direction:(0,o.Vh)((()=>t.direction)),elevation:(0,o.Vh)((()=>t.elevation)),hasLabels:q,isReversed:h,indexFromEnd:f,min:m,max:v,mousePressed:A,noKeyboard:(0,o.Vh)((()=>t.noKeyboard)),numTicks:k,onSliderMousedown:B,onSliderTouchstart:U,parsedTicks:H,parseMouseMove:N,position:j,readonly:c.isReadonly,rounded:(0,o.Vh)((()=>t.rounded)),roundValue:_,showTicks:W,startOffset:P,step:g,thumbSize:b,thumbColor:C,thumbLabelColor:E,thumbLabel:(0,o.Vh)((()=>t.thumbLabel)),ticks:(0,o.Vh)((()=>t.ticks)),tickSize:T,trackColor:I,trackContainerRef:$,trackFillColor:x,trackSize:S,vertical:p};return(0,r.JJ)(Ns,G),G},Vs=(0,c.U)({focused:Boolean,max:{type:Number,required:!0},min:{type:Number,required:!0},modelValue:{type:Number,required:!0},position:{type:Number,required:!0},ripple:{type:[Boolean,Object],default:!0},name:String,noKeyboard:Boolean,...(0,a.l)()},"VSliderThumb"),Us=(0,k.ev)()({name:"VSliderThumb",directives:{vRipple:It.Z},props:Vs(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n,emit:a}=t;const l=(0,r.f3)(Ns),{isRtl:u,rtlClasses:c}=(0,w.Vw)();if(!l)throw new Error("[Vuetify] v-slider-thumb must be used inside v-slider or v-range-slider");const{min:d,max:h,thumbColor:p,thumbLabelColor:f,step:m,disabled:v,thumbSize:g,thumbL
3336abel:y,direction:_,isReversed:b,vertical:T,readonly:S,elevation:k,mousePressed:E,decimals:I,indexFromEnd:x}=l,A=(0,o.XI)(!1),P=(0,o.XI)(!1),O=(0,r.Fl)((()=>v.value?void 0:k.value)),{elevationClasses:N}=Se(O),{textColorClasses:L,textColorStyles:D}=(0,pe.rY)(p),{backgroundColorClasses:R,backgroundColorStyles:F}=(0,pe.Y5)(f),{pageup:M,pagedown:V,end:U,home:B,left:j,right:W,down:H,up:q}=s.ff,G=[M,V,U,B,j,W,H,q],z=(0,r.Fl)((()=>m.value?[1,2,3]:[1,5,10]));function K(t,n){if(e.noKeyboard||v.value)return;if(!G.includes(t.key))return;t.preventDefault();const r=m.value||.1,i=(h.value-d.value)/r;if([j,W,H,q].includes(t.key)){const e=T.value?[u.value?j:W,b.value?H:q]:x.value!==u.value?[j,q]:[W,q],a=e.includes(t.key)?1:-1,o=t.shiftKey?2:t.ctrlKey?1:0;-1!==a||n!==h.value||o||Number.isInteger(i)?n+=a*r*z.value[o]:n-=i%1*r}else if(t.key===B)n=d.value;else if(t.key===U)n=h.value;else{const e=t.key===V?1:-1;n-=e*r*(i>100?i/10:10)}return Math.max(e.min,Math.min(e.max,n))}function X(t){const n=K(t,e.modelValue);null!=n&&(P.value=!1,a("update:modelValue",n))}return(0,r.YP)((()=>e.focused),(e=>{e&&(P.value=!1)})),(0,C.L)((()=>{const t=(0,s.kb)(x.value?100-e.position:e.position,"%"),a="always"===y.value||!0===y.value&&e.focused||"hover"===y.value&&(A.value||e.focused&&!P.value);return(0,r._)("div",{class:(0,i.C_)(["v-slider-thumb",{"v-slider-thumb--focused":e.focu
3336sed,"v-slider-thumb--pressed":e.focused&&E.value},e.class,c.value]),style:(0,i.j5)([{"--v-slider-thumb-position":t,"--v-slider-thumb-size":(0,s.kb)(g.value)},e.style]),role:"slider",tabindex:v.value?-1:0,"aria-label":e.name,"aria-valuemin":d.value,"aria-valuemax":h.value,"aria-valuenow":e.modelValue,"aria-readonly":!!S.value,"aria-orientation":_.value,onKeydown:S.value?void 0:X,onMouseenter:()=>{A.value=!0},onMouseleave:()=>{A.value=!1,P.value=!0}},[(0,r._)("div",{class:(0,i.C_)(["v-slider-thumb__surface",L.value,N.value]),style:(0,i.j5)(D.value)},null),(0,r.wy)((0,r._)("div",{class:(0,i.C_)(["v-slider-thumb__ripple",L.value]),style:(0,i.j5)(D.value)},null),[[It.Z,e.ripple,null,{circle:!0,center:!0}]]),(0,r.Wm)(Y,{origin:"bottom center"},{default:()=>[(0,r.wy)((0,r._)("div",{class:"v-slider-thumb__label-container"},[(0,r._)("div",{class:(0,i.C_)(["v-slider-thumb__label",R.value]),style:(0,i.j5)(F.value)},[(0,r._)("div",null,[n["thumb-label"]?.({modelValue:e.modelValue})??e.modelValue.toFixed(m.value?I.value:1)]),(0,r._)("div",{class:"v-slider-thumb__label-wedge"},null)])]),[[$.F8,a]])]})])})),{}}}),Bs=(0,c.U)({start:{type:Number,required:!0},stop:{type:Number,required:!0},...(0,a.l)()},"VSliderTrack"),js=(0,k.ev)()({name:"VSliderTrack",props:Bs(),emits:{},setup(e,t){let{slots:n}=t;const a=(0,r.f3)(Ns);if(!a)throw new Error("[Vuetify] v-slider-track must be inside v-slider or v-range-slider");const{color:o,parsedTicks:l,rounded:u,showTicks:c,tickSize:d,trackColor:h,trackFillColor:p,trackSize:f,vertical:m,min:v,max:g,indexFromEnd:y}
3336=a,{roundedClasses:_}=me(u),{backgroundColorClasses:b,backgroundColorStyles:T}=(0,pe.Y5)(p),{backgroundColorClasses:w,backgroundColorStyles:S}=(0,pe.Y5)(h),k=(0,r.Fl)((()=>`inset-${m.value?"block":"inline"}-${y.value?"end":"start"}`)),E=(0,r.Fl)((()=>m.value?"height":"width")),I=(0,r.Fl)((()=>({[k.value]:"0%",[E.value]:"100%"}))),x=(0,r.Fl)((()=>e.stop-e.start)),A=(0,r.Fl)((()=>({[k.value]:(0,s.kb)(e.start,"%"),[E.value]:(0,s.kb)(x.value,"%")}))),P=(0,r.Fl)((()=>{if(!c.value)return[];const t=m.value?l.value.slice().reverse():l.value;return t.map(((t,a)=>{const o=t.value!==v.value&&t.value!==g.value?(0,s.kb)(t.position,"%"):void 0;return(0,r._)("div",{key:t.value,class:(0,i.C_)(["v-slider-track__tick",{"v-slider-track__tick--filled":t.position>=e.start&&t.position<=e.stop,"v-slider-track__tick--first":t.value===v.value,"v-slider-track__tick--last":t.value===g.value}]),style:{[k.value]:o}},[(t.label||n["tick-label"])&&(0,r._)("div",{class:"v-slider-track__tick-label"},[n["tick-label"]?.({tick:t,index:a})??t.label])])}))}));return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-slider-track",_.value,e.class]),style:(0,i.j5)([{"--v-slider-track-size":(0,s.kb)(f.value),"--v-slider-tick-size":(0,s.kb)(d.value)},e.style])},[(0,r._)("div",{class:(0,i.C_)(["v-slider-track__background",w.value,{"v-slider-track__background--opacity":!!o.value||!p.value}]),style:{...I.value,...S.value}},null),(0,r._)("div",{class:(0,i.C_)(["v-slider-track__fill",b.value]),style:{...A.value,...T.value}},null),c.value&&(0,r._)("div",{class:(0,i.C_)(["v-slider-track__ticks",{"v-slider-track__ticks--always-show":"always"===c.value}])},[P.value])]))),{}}}),Ws=(0,c.U)({...Er(),...Rs(),...Br(),modelValue:{type:[Number,String],default:0}},"VSlider"),Hs=(0,k.ev)()({name:"VSlider",inheritAttrs:!1,props:Ws(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,start:e=>!0,end:e=>!0},setup(e,t){let{slots:n,emit:i,attrs:a}=t;const l=(0,o.iH)(),u=(0,o.iH)(),{rtlClasses:c}=(0,w.Vw)(),d=Fs(e),h=(0,$e.z)(e,"modelValue",void 0,(e=>d.roundValue(null==e?d.min.value:e))),{min:p,max:f,mousePressed:m,roundValue:v,onSliderMousedown:g,onSliderTouchstart:y,trackContainerRef:_,position:b,hasLabels:T,disabled:S,readonly:k,noKeyboard:E}=Ms({props:e,steps:d,onSliderStart:()=>{S.value||k.value||i("start",h.value)},onSliderEnd:e=>{let{value:t}=e;const n=v(t);S.value||k.value||(h.value=n),i("end",n)},onSliderMove:e=>{let{value:t}=e;S.value||k.value||(h.value=v(t))},getActiveThumb:()=>l.value?.$el}),{isFocused:I,focus:x,blur:A}=Ir(e),P=(0,r.Fl)((()=>b(h.value)));return(0,C.L)((()=>{const t=jr.filterProps(e),[i,o]=(0,s.An)(a),d=!!(e.label||n.label||n.prepend);return(0,r.Wm)(jr,(0,r.dG)({ref:u,class:["v-slider",{"v-slider--has-labels":!!n["tick-label"]||T.value,"v-slider--focused":I.value,"v-slider--pressed":m.value,"v-slider--disabled":S.value},c.value,e.class],style:e.style},t,i,{focused:I.value}),{...n,prepend:d?t=>(0,r._)(r.HY,null,[n.label?.(t)??(e.label?(0,r.Wm)(Wt,{id:t.id.value,class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(t)]):void 0,default:t=>{let{id:i,messagesId:a}=t;return(0,r._)("div",{class:"v-slider__container",onMousedown:k.value?void 0:g,onTouchstartPassive:k.value?void 0:y},[(0,r._)("input",{id:i.value,name:e.name||i.value,disabled:S.value,readonly:k.value,tabindex:"-1",value:h.value},null),(0,r.Wm)(js,{ref:_,start:0,stop:P.value},{"tick-label":n["tick-label"]}),(0,r.Wm)(Us,(0,r.dG)({ref:l,"aria-describedby":a.value,focused:I.value,noKeyboard:E.value,min:p.value,max:f.value,modelValue:h.value,"onUpdate:modelValue":e=>h.value=e,position:P.value,elevation:e.elevation,onFocus:x,onBlur:A,ripple:e.ripple,name:e.name},o),{"thumb-label":n["thumb-label"]})])}})})),(0,mr.F)({focus:()=>l.value?.$el.focus()},u)}}),qs=(0,c.U)({color:{type:Object},disabled:Boolean,readonly:Boolean,hideAlpha:Boolean,hideEyeDropper:Boolean,eyeDropperIcon:{type:st.lE,default:"$eyeDropper"},...(0,a.l)()},"VColorPickerPreview"),Gs=(0,k.aZ)({name:"VColorPickerPreview",props:qs(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;const{t:a}=(0,w.bU)(),s=new AbortController,u=(0,o.Vh)((()=>!e.disabled&&!e.readonly));async function c(){if(!l.VB||!u.value)return;const t=new window.EyeDropper;try{const r=await t.open({signal:s.signal}),i=(0,_s.Ls)((0,_s.lu)(r.sRGBHex));n("update:color",{...e.color??ws,...i})}catch(r){}}return(0,r.Ah)((()=>s.abort())),(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-color-picker-preview",{"v-color-picker-preview--hide-alpha":e.hideAlpha},e.class]),style:(0,i.j5)(e.style)}
3336,[l.VB&&!e.hideEyeDropper&&(0,r._)("div",{class:"v-color-picker-preview__eye-dropper",key:"eyeDropper"},[(0,r.Wm)(At,{"aria-label":a("$vuetify.colorPicker.ariaLabel.eyedropper"),density:"comfortable",disabled:e.disabled,readonly:e.readonly,icon:e.eyeDropperIcon,variant:"plain",onClick:c},null)]),(0,r._)("div",{class:"v-color-picker-preview__dot"},[(0,r._)("div",{style:{background:(0,_s.wQ)(e.color??ws)}},null)]),(0,r._)("div",{class:"v-color-picker-preview__sliders"},[(0,r.Wm)(Hs,{class:"v-color-picker-preview__track v-color-picker-preview__hue","aria-label":a("$vuetify.colorPicker.ariaLabel.hueSlider"),modelValue:e.color?.h,"onUpdate:modelValue":t=>n("update:color",{...e.color??ws,h:t}),step:1,min:0,max:360,disabled:e.disabled,readonly:e.readonly,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null),!e.hideAlpha&&(0,r.Wm)(Hs,{class:"v-color-picker-preview__track v-color-picker-preview__alpha","aria-label":a("$vuetify.colorPicker.ariaLabel.alphaSlider"),modelValue:e.color?.a??1,"onUpdate:modelValue":t=>n("update:color",{...e.color??ws,a:t}),step:.01,min:0,max:1,disabled:e.disabled,readonly:e.readonly,thumbSize:14,trackSize:8,trackFillColor:"white",hideDetails:!0},null)])]))),{}}}),zs={base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"},Ys={base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"},Ks={base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",dar
3336ken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"},Xs={base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"},Js={base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"},Zs={base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"},Qs={base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"},el={base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"},tl={base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"},nl={base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"},rl={base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"},il={base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"},al={base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"},ol={base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"},sl={base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"},ll={base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"},ul={base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"},cl={base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"},dl={base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"},hl={black:"#000000",white:"#ffffff",transparent:"#ffffff00"};var pl={red:zs,pink:Ys,purple:Ks,deepPurple:Xs,indigo:Js,blue:Zs,lightBlue:Qs,cyan:el,teal:tl,green:nl,lightGreen:rl,lime:il,yellow:al,amber:ol,orange:sl,deepOrange:ll,brown:ul,blueGrey:cl,grey:dl,shades:hl};const fl=(0,c.U)({swatches:{type:Array,default:()=>ml(pl)},disabled:Boolean,readonly:Boolean,color:Object,maxHeight:[Number,String],...(0,a.l)()},"VColorPickerSwatches");function ml(e){return Object.keys(e).map((t=>{const n=e[t];return n.base?[n.base,n.darken4,n.darken3,n.darken2,n.darken1,n.lighten1,n.lighten2,n.lighten3,n.lighten4,n.lighten5]:[n.black,n.white,n.transparent]}))}const vl=(0,k.aZ)({name:"VColorPickerSwatches",props:fl(),emits:{"update:color":e=>!0},setup(e,t){let{emit:n}=t;
3336const a=(0,o.Vh)((()=>!e.disabled&&!e.readonly));function l(e){a.value&&e&&n("update:color",e)}return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-color-picker-swatches",e.class]),style:(0,i.j5)([{maxHeight:(0,s.kb)(e.maxHeight)},e.style])},[(0,r._)("div",null,[e.swatches.map((t=>(0,r._)("div",{class:"v-color-picker-swatches__swatch"},[t.map((t=>{const n=(0,_s.lu)(t),a=(0,_s.Ls)(n),o=(0,_s.iC)(n);return(0,r._)("div",{class:(0,i.C_)(["v-color-picker-swatches__color",{"v-color-picker-swatches__color--disabled":e.disabled}]),onClick:()=>l(a)},[(0,r._)("div",{style:{background:o}},[e.color&&(0,Xe.v)(e.color,a)?(0,r.Wm)(ut,{size:"x-small",icon:"$success",color:(0,_s.mj)(t,"#FFFFFF")>2?"white":"black"},null):void 0])])}))])))])]))),{}}}),gl=Nt("v-picker-title"),yl=(0,c.U)({bgColor:String,divided:Boolean,landscape:Boolean,title:String,hideHeader:Boolean,hideTitle:Boolean,...br()},"VPicker"),_l=(0,k.ev)()({name:"VPicker",props:yl(),setup(e,t){let{slots:n}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=(0,pe.Y5)((()=>e.color));return(0,C.L)((()=>{const t=Tr.filterProps(e),s=!e.hideTitle&&!(!e.title&&!n.title);return(0,r.Wm)(Tr,(0,r.dG)(t,{color:e.bgColor,class:["v-picker",{"v-picker--divided":e.divided,"v-picker--landscape":e.landscape,"v-picker--with-actions":!!n.actions},e.class],style:e.style}),{default:()=>[!e.hideHeader&&(0,r._)("div",{key:"header",class:(0,i.C_)(["v-picker__header-wrapper",a.value]),style:(0,i.j5)([o.value])},[s&&(0,r.Wm)(gl,{key:"picker-title"},{default:()=>[n.title?.()??e.title]}),n.header&&(0,r._)("div",{class:"v-picker__header"},[n.header()])]),(0,r._)("div",{class:"v-picker__body"},[n.default?.()]),n.actions&&(0,r.Wm)(le,{defaults:{VBtn:{slim:!0,variant:"text"}}},{default:()=>[(0,r._)("div",{class:"v-picker__actions"},[n.actions()])]})]})})),{}}}),bl=(0,c.U)({canvasHeight:{type:[String,Number],default:150},disabled:Boolean,dotSize:{type:[Number,String],default:10},hideCanvas:Boolean,hideSliders:Boolean,hideInputs:Boolean,mode:{type:String,default:"rgba",validator:e=>Object.keys(As).includes(e)},modes:{type:Array,default:()=>Object.keys(As),validator:e=>Array.isArray(e)&&e.every((e=>Object.keys(As).includes(e)))},showSwatches:Boolean,readonly:Boolean,swatches:Array,swatchesMaxHeight:{type:[Number,String],default:150},modelValue:{type:[Object,String]},...yl({hideHeader:!0}),...(0,s.ei)(qs(),["hideEyeDropper","eyeDropperIcon"])},"VColorPicker"),Tl=(0,k.aZ)({name:"VColorPicker",props:bl(),emits:{"update:modelValue":e=>!0,"update:mode":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"mode"),a=(0,o.iH)(null),s=(0,$e.z)(e,"modelValue",void 0,(e=>{if(null==e||""===e)return null;let t;try{t=(0,_s.Ls)((0,_s.lu)(e))}catch(n){return(0,h.Kd)(n),null}return t}),(t=>t?Ts(t,e.modelValue):null)),l=(0,r.Fl)((()=>s.value?{...s.value,h:a.value??s.value.h}:null)),{rtlClasses:u}=(0,w.Vw)();let c=!0;(0,r.YP)(s,(e=>{c?e&&(a.value=e.h):c=!0}),{immediate:!0});const d=e=>{c=!1,a.value=e.h,s.value=e};return(0,r.wF)((()=>{e.modes.includes(i.value)||(i.value=e.modes[0])})),(0,oe.AF)({VSlider:{color:void 0,trackColor:void 0,trackFillColor:void 0}}),(0,C.L)((()=>{const t=_l.filterProps(e);return(0,r.Wm)(_l,(0,r.dG)(t,{class:["v-color-picker",u.value,e.class],style:[{"--v-color-picker-color-hsv":(0,_s.wQ)({...l.value??ws,a:1})},e.style]}),{...n,default:()=>(0,r._)(r.HY,null,[!e.hideCanvas&&(0,r.Wm)(ys,{key:"canvas",color:l.value,"onUpdate:color":d,disabled:e.disabled,readonly:e.readonly,dotSize:e.dotSize,width:e.width,height:e.canvasHeight},null),(!e.hideSliders||!e.hideInputs)&&(0,r._)("div",{key:"controls",class:"v-color-picker__controls"},[!e.hideSliders&&(0,r.Wm)(Gs,{key:"preview",color:l.value,"onUpdate:color":d,hideAlpha:!i.value.endsWith("a"),disabled:e.disabled,readonly:e.readonly,hideEyeDropper:e.hideEyeDropper,eyeDropperIcon:e.eyeDropperIcon},null),!e.hideInputs&&(0,r.Wm)(Os,{key:"edit",modes:e.modes,mode:i.value,"onUpdate:mode":e=>i.value=e,color:l.value,"onUpdate:color":d,disabled:e.disabled,readonly:e.readonly},null)]),e.showSwatches&&(0,r.Wm)(vl,{key:"swatches",color:l.value,"onUpdate:color":d,maxHeight:e.swatchesMaxHeight,swatches:e.swatches,disabled:e.disabled,readonly:e.readonly},null)])})})),{}}}),wl=(0,c.U)({alwaysFilter:Boolean,autoSelectFirst:{type:[Boolean,String]},clearOnSelect:{type:Boolean,default:!0},delimiters:Array,...di({filterKeys:["title"]}),...gi({hideNoData:!0,returnObject:!0}),...(0,s.CE)(zr({modelValue:null,role:"combobox"}),["validationValue","dirty"])},"VCombobox"),Sl=(0,k.ev)()({name:"VCombobox",props:wl(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:search":e=>!0,"update:menu":e=>!0,"item:added":e=>!0,"item:removed":e=>!0,"item:created":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:u}=(0,w.bU)(),c=(0,o.iH)(),d=(0,o.XI)(!1),h=(0,o.XI)(!0),p=(0,o.XI)(!1),f=(0,o.iH)(),m=(0,o.iH)(),v=(0,o.XI)(-1);let g=!1;const{items:y,transformIn:_,transformOut:b}=sr(e),{textColorClasses:T,textColorStyles:S}=(0,pe.rY)((()=>c.value?.color)),{InputIcon:k}=bn(e),E=(0,$e.z)(e,"modelValue",[],(e=>_((0,s.FT)(e))),(t=>{const n=b(t);return e.multiple?n:n[0]??null}
3336)),I=Rr(e),x=(0,o.Vh)((()=>e.closableChips&&!I.isReadonly.value&&!I.isDisabled.value)),A=(0,r.Fl)((()=>!(!e.chips&&!a.chip))),P=(0,r.Fl)((()=>A.value||!!a.selection)),$=(0,o.XI)(e.multiple||P.value?"":E.value[0]?.title??""),O=(0,o.XI)(null),N=(0,r.Fl)({get:()=>$.value,set:async t=>{if($.value=t??"",null===t||""===t&&!e.multiple&&!P.value){for(const e of E.value)n("item:removed",e);E.value=[]}else e.multiple||P.value||(E.value=[ar(e,t)],(0,r.Y3)((()=>m.value?.scrollToIndex(0))));if(t&&e.multiple&&e.delimiters?.length){const e=ce(t);e.length>1&&(de(e),$.value="")}t||(v.value=-1),h.value=!t}}),L=(0,r.Fl)((()=>"function"===typeof e.counterValue?e.counterValue(E.value):"number"===typeof e.counterValue?e.counterValue:e.multiple?E.value.length:N.value.length)),{filteredItems:D,getMatches:R}=pi(e,y,(()=>O.value??(e.alwaysFilter||!h.value?N.value:""))),F=(0,r.Fl)((()=>e.hideSelected&&null===O.value?D.value.filter((e=>!E.value.some((t=>t.value===e.value)))):D.value)),M=(0,r.Fl)((()=>e.hideNoData&&!F.value.length||I.isReadonly.value||I.isDisabled.value)),V=(0,$e.z)(e,"menu"),U=(0,r.Fl)({get:()=>V.value,set:e=>{V.value&&!e&&f.value?.ΨopenChildren.size||e&&M.value||(V.value=e)}}),{menuId:B,ariaExpanded:j,ariaControls:W}=vi(e,U);(0,r.YP)($,(e=>{g?(0,r.Y3)((()=>g=!1)):d.value&&!U.value&&(U.value=!0),n("update:search",e)})),(0,r.YP)(E,(t=>{e.multiple||P.value||($.value=t[0]?.title??"")}));const H=(0,r.Fl)((()=>E.value.map((e=>e.value)))),q=(0,r.Fl)((()=>F.value.find((e=>"item"===e.type&&!e.props.disabled)))),G=(0,r.Fl)((()=>{const t=!0===e.autoSelectFirst||"exact"===e.autoSelectFirst&&N.value===q.value?.title;return t&&F.value.length>0&&!h.value&&!p.value})),z=(0,o.iH)(),Y=(0,o.iH)(),K=(0,o.iH)(),X=si(z,c),J=oi(U,(()=>f.value?.contentEl),(()=>c.value?.controlRef)),{onTabKeydown:Z}=li({groups:[{type:"element",contentRef:Y},{type:"list",contentRef:z,displayItemsCount:()=>F.value.length},{type:"element",contentRef:K}],onLeave:()=>{U.value=!1,c.value?.focus()}});function Q(t){g=!0,(0,r.Y3)((()=>g=!1)),e.openOnClear&&(U.value=!0)}function ee(){M.value||(U.value=!0)}function te(e){M.value||(d.value&&(e.preventDefault(),e.stopPropagation()),U.value=!U.value)}function ne(e){"Tab"===e.key&&Z(e),z.value?.$el.contains(e.target)&&((0,s.N0)(e)||"Backspace"===e.key)&&c.value?.focus()}function re(t){if((0,s.Y5)(t)||I.isReadonly.value)return;const n=c.value?.selectionStart,r=E.value.length;if(["Enter","ArrowDown","ArrowUp"].includes(t.key)&&t.preventDefault(),["Enter","ArrowDown"].includes(t.key)&&(U.value=!0),["Escape"].includes(t.key)&&(U.value=!1),G.value&&["Enter","Tab"].includes(t.key)&&q.value&&!E.value.some((e=>{let{value:t}=e;return t===q.value.value}))&&ue(q.value),"ArrowDown"===t.key&&G.value&&z.value?.focus("next"),"Enter"===t.key&&N.value&&(ue(ar(e,N.value),!0,!0),P.value&&($.value="")),["Backspace","Delete"].includes(t.key)){if(!e.multiple&&P.value&&E.value.length>0&&!N.value)return ue(E.value[0],!1);if(~v.value){t.preventDefault();const e=v.value;ue(E.value[v.value],!1),v.value=e>=r-1?r-2:e}else"Backspace"!==t.key||N.value||(v.value=r-1)}else if(e.multiple)if("ArrowLeft"===t.key){if(v.value<0&&n&&n>0)return;const e=v.value>-1?v.value-1:r-1;E.value[e]?v.value=e:(v.value=-1,c.value?.setSelectionRange(N.value.length,N.value.length))}else if("ArrowRight"===t.key){if(v.value<0)return;const e=v.value+1;E.value[e]?v.value=e:(v.value=-1,c.value?.setSelectionRange(0,0))}else~v.value&&(0,s.N0)(t)&&(v.value=-1)}function ie(t){const n=t?.clipboardData?.getData("Text")??"",r=ce(n);r.length>1&&e.multiple&&(t.preventDefault(),de(r))}function ae(){e.eager&&m.value?.calculateVisibleItems()}function oe(){d.value&&c.value?.focus(),h.value=!0,O.value=null}function se(t){const n=e.valueComparator||Xe.v;return y.value.some((e=>n(e.value,t.value)))}function ue(t){let i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t||t.props.disabled)return;const o=e.valueComparator||Xe.v;if(e.multiple){const r=E.value.findIndex((e=>o(e.value,t.value))),a=null==i?!~r:i;if(~r){const e=a?[...E.value,t]:[...E.value],[i]=e.splice(r,1);a||n("item:removed",i),E.value=e}else a&&(n("item:added",t),se(t)||n("item:created",t),E.value=[...E.value,t]);e.clearOnSelect&&(N.value="")}else{const s=!1!==i,l=E.value[0];s?(l&&!o(l.value,t.value)?(n("item:removed",l),n("item:added",t),se(t)||n("item:created",t)):l||(n("item:added",t),se(t)||n("item:created",t)),E.value=[t]):(l&&n("item:removed",l),E.value=[]),h.value&&!e.alwaysFilter||!$.value||(O.value=$.value),$.value=s&&!P.value?t.title:"",(0,r.Y3)((()=>{U.value=a,h.value=!0}))}}function ce(t){const n=["\n",...e.delimiters??[]],r=n.map(s.Dm).join("|");return t.split(new RegExp(`(?:${r})+`))}async function de(t){for(let n of t)n=n.trim(),n&&(ue(ar(e,n)),await(0,r.Y3)())}function he(e){d.value=!0,setTimeout((()=>{p.value=!0}))}function fe(e){if(p.value=!1,!c.value?.$el.contains(e.relatedTarget)){if(J(e))return;d.value=!1}}function me(e){const t=f.value?.contentEl;t?.contains(e.relatedTarget)&&(d.value=!0)}return(0,r.YP)(d,((t,n)=>{if(!t&&t!==n&&(v.value=-1,U.value=!1,N.value)){if(e.multiple)return void ue(ar(e,N.value));if(!P.value)return;E.value.some((e=>{let{title:t}=e;return t===N.value}))?$.value="":ue(ar(e,N.value))}})),(0,r.YP)(U,(t=>
3336{if(!e.hideSelected&&t&&E.value.length&&h.value){const t=F.value.findIndex((t=>E.value.some((n=>(e.valueComparator||Xe.v)(n.value,t.value)))));l.BR&&!e.noAutoScroll&&window.requestAnimationFrame((()=>{t>=0&&m.value?.scrollToIndex(t)}))}t&&(O.value=null)})),(0,r.YP)(y,((e,t)=>{U.value||d.value&&!t.length&&e.length&&(U.value=!0)})),(0,C.L)((()=>{const t=!!(!e.hideNoData||F.value.length||a["prepend-item"]||a["append-item"]||a["no-data"]),n=E.value.length>0,o=Yr.filterProps(e),l={search:N,filteredItems:D.value};return(0,r.Wm)(Yr,(0,r.dG)({ref:c},o,{modelValue:N.value,"onUpdate:modelValue":e=>N.value=e,focused:d.value,"onUpdate:focused":e=>d.value=e,validationValue:E.externalValue,counterValue:L.value,dirty:n,class:["v-combobox",{"v-combobox--active-menu":U.value,"v-combobox--chips":!!e.chips,"v-combobox--selection-slot":!!P.value,"v-combobox--selecting-index":v.value>-1,["v-combobox--"+(e.multiple?"multiple":"single")]:!0},e.class],style:e.style,readonly:I.isReadonly.value,placeholder:n?void 0:e.placeholder,"onClick:clear":Q,"onMousedown:control":ee,onKeydown:re,onPaste:ie,onBlur:me,"aria-expanded":j.value,"aria-controls":W.value}),{...a,default:n=>{let{id:o}=n;return(0,r._)(r.HY,null,[(0,r.Wm)(_r,(0,r.dG)({id:B.value,ref:f,modelValue:U.value,"onUpdate:modelValue":e=>U.value=e,activator:"parent",disabled:M.value,eager:e.eager,maxHeight:310,openOnClick:!1,closeOnContentClick:!1,onAfterEnter:ae,onAfterLeave:oe},e.menuProps,{contentClass:["v-combobox__content",e.menuProps?.contentClass]}),{default:()=>[(0,r.Wm)(Tr,{onFocusin:he,onKeydown:ne},{default:()=>[a["menu-header"]&&(0,r._)("header",{ref:Y},[a["menu-header"](l)]),t&&(0,r.Wm)(pr,(0,r.dG)({key:"combobox-list",ref:z,filterable:!0,selected:H.value,selectStrategy:e.multiple?"independent":"single-independent",onMousedown:e=>e.preventDefault(),selectable:!!F.value.length,onFocusout:fe,tabindex:"-1","aria-live":"polite","aria-labelledby":`${o.value}-label`,"aria-multiselectable":e.multiple,color:e.itemColor??e.color},X,e.listProps),{default:()=>[a["prepend-item"]?.(),!F.value.length&&!e.hideNoData&&(a["no-data"]?.()??(0,r.Wm)(Zn,{key:"no-data",title:u(e.noDataText)},null)),(0,r.Wm)(ai,{ref:m,renderless:!0,items:F.value,itemKey:"value"},{default:t=>{let{item:n,index:i,itemRef:o}=t;const s=(0,r.dG)(n.props,{ref:o,key:n.value,active:!(!G.value||n!==q.value)||void 0,onClick:()=>ue(n,null),"aria-posinset":i+1,"aria-setsize":F.value.length});return"divider"===n.type?a.divider?.({props:n.raw,index:i})??(0,r.Wm)(_n,(0,r.dG)(n.props,{key:`divider-${i}`}),null):"subheader"===n.type?a.subheader?.({props:n.raw,index:i})??(0,r.Wm)(er,(0,r.dG)(n.props,{key:`subheader-${i}`}),null):a.item?.({item:n,index:i,props:s})??(0,r.Wm)(Zn,(0,r.dG)(s,{role:"option"}),{prepend:t=>{let{isSelected:i}=t;return(0,r._)(r.HY,null,[e.multiple&&!e.hideSelected?(0,r.Wm)(Zt,{key:n.value,modelValue:i,ripple:!1,tabindex:"-1","aria-hidden":!0,onClick:e=>e.preventDefault()},null):void 0,n.props.prependAvatar&&(0,r.Wm)(Bt,{image:n.props.prependAvatar},null),n.props.prependIcon&&(0,r.Wm)(ut,{icon:n.props.prependIcon},null)])},title:()=>h.value?n.title:fi("v-combobox",n.title,R(n)?.title)})}}),a["append-item"]?.()]}),a["menu-footer"]&&(0,r._)("footer",{ref:K},[a["menu-footer"](l)])]})]}),E.value.map(((t,n)=>{function o(e){e.stopPropagation(),e.preventDefault(),ue(t,!1)}const l=(0,r.dG)(vn.filterProps(t.props),{"onClick:close":o,onKeydown(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.stopPropagation(),o(e))},onMousedown(e){e.preventDefault(),e.stopPropagation()},modelValue:!0,"onUpdate:modelValue":void 0}),u=A.value?!!a.chip:!!a.selection,c=u?(0,s._g)(A.value?a.chip({item:t,index:n,props:l}):a.selection({item:t,index:n})):void 0;if(!u||c)return(0,r._)("div",{key:t.value,class:(0,i.C_)(["v-combobox__selection",n===v.value&&["v-combobox__selection--selected",T.value]]),style:(0,i.j5)(n===v.value?S.value:{})},[A.value?a.chip?(0,r.Wm)(le,{key:"chip-defaults",defaults:{VChip:{closable:x.value,size:"small",text:t.title}}},{default:()=>[c]}):(0,r.Wm)(vn,(0,r.dG)({key:"chip",closable:x.value,size:"small",text:t.title,disabled:t.props.disabled},l),null):c??(0,r._)("span",{class:"v-combobox__selection-text"},[t.title,e.multiple&&n<E.value.length-1&&(0,r._)("span",{class:"v-combobox__selection-comma"},[(0,r.Uk)(",")])])])}))])},"append-inner":function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return(0,r._)(r.HY,null,[a["append-inner"]?.(...n),e.hideNoData&&!e.items.length||!e.menuIcon?void 0:(0,r.Wm)(ut,{class:"v-combobox__menu-icon",color:c.value?.fieldIconColor,icon:e.menuIcon,onMousedown:te,onClick:s.ZT,"aria-hidden":!0,tabindex:"-1"},null),e.appendInnerIcon&&(0,r.Wm)(k,{key:"append-icon",name:"appendInner",color:n[0].iconColor.value},null)])}})})),(0,mr.F)({isFocused:d,isPristine:h,menu:U,search:N,selectionIndex:v,filteredItems:D,select:ue},c)}}),kl=(0,c.U)({modelValue:null,color:String,cancelText:{type:String,default:"$vuetify.confirmEdit.cancel"},okText:{type:String,default:"$vuetify.confirmEdit.ok"},disabled:{type:[Boolean,Array],default:void 0},hideActions:Boolean},"VConfirmEdit"),Cl=(0,k.ev)()({name:"VConfirmEdit",props:kl(),emits:{cancel:()=>!0,save:e=>!0,"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const a=(0,$e.z)(e,"modelValue"),l=(0,o.iH)();(0,r.m0)((()=>{l.value=structuredClone((0,s.nL)(a.value))}));const{t:u}=(0,w.bU)(),c=(0,r.Fl)((()=>(0,Xe.v)(a.value,l.value)));function d(t){return"boolean"===typeof e.disabled?e.disabled:Array.isArray(e.disabled)?e.disabled.includes(t):c.value}const h=(0,r.Fl)((()=>d("save"))),p=(0,r.Fl)((()=>d("cancel")));function f(){a.value=l.value,n("save",l.value)}function m(){l.value=structuredClone((0,s.nL)(a.value)),n("cancel")}function v(t){return(0,r._)(r.HY,null,[(0,r.Wm)(At,(0,r.dG)({disabled:p.value,variant:"text",color:e.color,onClick:m,text:u(e.cancelText)},t),null),(0,r.Wm)(At,(0,r.dG)({disabled:h.value,variant:"text",color:e.color,onClick:f,text:u(e.okText)},t),null)])}let g=!1;return(0,C.L)((()=>(0,r._)(r.HY,null,[i.default?.({model:l,save:f,cancel:m,isPristine:c.value,get actions(){return g=!0,v}}),!e.hideActions&&!g&&v()]))),{save:f,cancel:m,isPristine:c}}}),El=(0,c.U)({expandOnClick:Boolean,showExpand:Boolean,expanded:{type:Array,default:()=>[]}},"DataTable-expand"),Il=Symbol.for("vuetify:datatable:expanded");function xl(e){const t=(0,o.Vh)((()=>e.expandOnClick)),n=(0,$e.z)(e,"expanded",e.expanded,(e=>new Set(e)),(e=>[...e.values()]));function i(e,t){const r=new Set(n.value),i=(0,o.IU)(e.value);if(t)r.add(i);else{const e=[...n.value].find((e=>(0,o.IU)(e)===i));r.delete(e)}n.value=r}function a(e){const t=(0,o.IU)(e.value);return[...n.value].some((e=>(0,o.IU)(e)===t))}function s(e){i(e,!a(e))}
3336const l={expand:i,expanded:n,expandOnClick:t,isExpanded:a,toggleExpand:s};return(0,r.JJ)(Il,l),l}function Al(){const e=(0,r.f3)(Il);if(!e)throw new Error("foo");return e}const Pl=(0,c.U)({groupBy:{type:Array,default:()=>[]}},"DataTable-group"),$l=Symbol.for("vuetify:data-table-group");function Ol(e){const t=(0,$e.z)(e,"groupBy");return{groupBy:t}}function Nl(e){const{disableSort:t,groupBy:n,sortBy:i}=e,a=(0,o.iH)(new Set),s=(0,r.Fl)((()=>n.value.map((e=>({...e,order:e.order??!1}))).concat(t?.value?[]:i.value)));function l(e){return a.value.has(e.id)}function u(e){const t=new Set(a.value);l(e)?t.delete(e.id):t.add(e.id),a.value=t}function c(e){function t(e){const n=[];for(const r of e.items)"type"in r&&"group"===r.type?n.push(...t(r)):n.push(r);return[...new Set(n)]}return t({type:"group",items:e,id:"dummy",key:"dummy",value:"dummy",depth:0})}const d={sortByWithGroups:s,toggleGroup:u,opened:a,groupBy:n,extractRows:c,isGroupOpen:l};return(0,r.JJ)($l,d),d}function Ll(){const e=(0,r.f3)($l);if(!e)throw new Error("Missing group!");return e}function Dl(e,t){if(!e.length)return[];const n=new Map;for(const r of e){const e=(0,s.vO)(r.raw,t);n.has(e)||n.set(e,[]),n.get(e).push(r)}return n}function Rl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"root";if(!t.length)return[];const i=Dl(e,t[0]),a=[],o=t.slice(1);return i.forEach(((e,i)=>{const s=t[0],l=`${r}_${s}_${i}`;a.push({depth:n,id:l,key:s,value:i,items:o.length?Rl(e,o,n+1,l):e,type:"group"})})),a}function Fl(e,t,n){const r=[];for(const i of e)"type"in i&&"group"===i.type?(null!=i.value&&r.push(i),(t.has(i.id)||null==i.value)&&(r.push(...Fl(i.items,t,n)),n&&r.push({...i,type:"group-summary"}))):r.push(i);return r}function Ml(e,t,n,i){const a=(0,r.Fl)((()=>t.value.length?Rl((0,o.Tn)(e),t.value.map((e=>e.key))):[])),s=(0,r.Fl)((()=>t.value.length?Fl(a.value,n.value,(0,o.Tn)(i)):(0,o.Tn)(e)));return{groups:a,flatItems:s}}function Vl(e){let{page:t,itemsPerPage:n,sortBy:i,groupBy:a,search:o}=e;const s=(0,d.F)("VDataTable"),l=()=>({page:t.value,itemsPerPage:n.value,sortBy:i.value,groupBy:a.value,search:o.value});let u=null;(0,r.YP)(l,(e=>{(0,Xe.v)(u,e)||(u&&u.search!==e.search&&(t.value=1),s.emit("update:options",e),u=e)}),{deep:!0,immediate:!0})}const Ul=(0,c.U)({page:{type:[Number,String],default:1},itemsPerPage:{type:[Number,String],default:10},pageBy:{type:String,default:"any"}},"DataTable-paginate"),Bl=Symbol.for("vuetify:data-table-pagination");function jl(e){const t=(0,$e.z)(e,"page",void 0,(e=>Number(e??1))),n=(0,$e.z)(e,"itemsPerPage",void 0,(e=>Number(e??10)));return{page:t,itemsPerPage:n}}function Wl(e){const{page:t,itemsPerPage:n,itemsLength:i}=e,a=(0,r.Fl)((()=>-1===n.value?0:n.value*(t.value-1))),o=(0,r.Fl)((()=>-1===n.value?i.value:Math.min(i.value,a.value+n.value))),l=(0,r.Fl)((()=>-1===n.value||0===i.value?1:Math.ceil(i.value/n.value)));function u(e){n.value=e,t.value=1}function c(){t.value=(0,s.uZ)(t.value+1,1,l.value)}function d(){t.value=(0,s.uZ)(t.value-1,1,l.value)}function h(e){t.value=(0,s.uZ)(e,1,l.value)}(0,r.YP)([t,l],(()=>{t.value>l.value&&(t.value=l.value)}));const p={page:t,itemsPerPage:n,startIndex:a,stopIndex:o,pageCount:l,itemsLength:i,nextPage:c,prevPage:d,setPage:h,setItemsPerPage:u};return(0,r.JJ)(Bl,p),p}function Hl(){const e=(0,r.f3)(Bl);if(!e)throw new Error("Missing pagination!");return e}function ql(e){const t=(0,d.F)("usePaginatedItems"),{items:n,startIndex:i,stopIndex:a,itemsPerPage:s}=e,l=(0,r.Fl)((()=>s.value<=0?(0,o.Tn)(n):(0,o.Tn)(n).slice(i.value,a.value)));return(0,r.YP)(l,(e=>{t.emit("update:currentItems",e)}),{immediate:!0}),{paginatedItems:l}}function Gl(e){const{sortedItems:t,paginate:n,group:i}=e,a=(0,o.Tn)(e.pageBy);if("item"===a){const{paginatedItems:e,pageCount:r,setItemsPerPage:a}=n(t),{flatItems:o}=i(e);return{pageCount:r,setItemsPerPage:a,paginatedItems:o}}if("group"===a){const{flatItems:e,groups:a}=i(t),{paginatedItems:o,pageCount:s,setItemsPerPage:l}=n(a),u=(0,r.Fl)((()=>{if(!o.value.length)return[];const t=o.value.at(0).id,n=o.value.at(-1).id,r=e.value.findIndex((e=>"group"===e.type&&e.id===t)),i=e.value.findIndex((e=>"group"===e.type&&e.id===n)),a=e.value.findIndex(((e,t)=>t>i&&"group"===e.type&&0===e.depth));return e.value.slice(r,-1===a?void 0:a)}));return{pageCount:s,setItemsPerPage:l,paginatedItems:u}}if("any"===a){const{flatItems:e}=i(t),{paginatedItems:r,pageCount:a,setItemsPerPage:o}=n(e);return{pageCount:a,setItemsPerPage:o,paginatedItems:r}}throw new Error(`Unrecognized pagination target ${a}`)}const zl={showSelectAll:!1,allSelected:()=>[],select:e=>{let{items:t,value:n}=e;return new Set(n?[t[0]?.value]:[])},selectAll:e=>{let{selected:t}=e;return t}},Yl={showSelectAll:!0,allSelected:e=>{let{currentPage:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const i of t)n?r.add(i.value):r.delete(i.value);return r},selectAll:e=>{let{value:t,currentPage:n,selected:r}=e;return Yl.select({items:n,value:t,selected:r})}},Kl={showSelectAll:!0,allSelected:e=>{let{allItems:t}=e;return t},select:e=>{let{items:t,value:n,selected:r}=e;for(const i of t)n?r.add(i.value):r.delete(i.value);return r},selectAll:e=>{let{value:t,allItems:n}=e;return new Set(t?n.map((e=>e.value)):[])}},Xl=(0,c.U)({showSelect:Boolean,selectStrategy:{type:[String,Object],default:"page"},modelValue:{type:Array,default:()=>[]},valueComparator:Function},"DataTable-select"),Jl=Symbol.for("vuetify:data-table-selection");function Zl(e,t){let{allItems:n,currentPage:i}=t;const a=(0,$e.z)(e,"modelValue",e.modelValue,(t=>{const r=e.valueComparator;return r?new Set((0,s.FT)(t).map((e=>n.value.find((t=>r(e,t.value)))?.value??e))):new Set((0,s.FT)(t).map((e=>(0,s.pt)(e)?n.value.find((t=>e===t.value))?.value??e:n.value.find((t=>(0,Xe.v)(e,t.value)))?.value??e)))}),(e=>[...e.values()])),l=(0,r.Fl)((()=>n.value.filter((e=>e.selectable)))),u=(0,r.Fl)((()=>(0,o.Tn)(i).filter((e=>e.selectable)))),c=(0,r.Fl)((()=>
3336{if("object"===typeof e.selectStrategy)return e.selectStrategy;switch(e.selectStrategy){case"single":return zl;case"all":return Kl;case"page":default:return Yl}})),d=(0,o.XI)(null);function h(e){return(0,s.FT)(e).every((e=>a.value.has(e.value)))}function p(e){return(0,s.FT)(e).some((e=>a.value.has(e.value)))}function f(e,t){const n=c.value.select({items:e,value:t,selected:new Set(a.value)});a.value=n}function m(t,n,r){const a=[],s=(0,o.Tn)(i);if(n=n??s.findIndex((e=>e.value===t.value)),"single"!==e.selectStrategy&&r?.shiftKey&&null!==d.value){const[e,t]=[d.value,n].sort(((e,t)=>e-t));a.push(...s.slice(e,t+1).filter((e=>e.selectable)))}else a.push(t),d.value=n;f(a,!h([t]))}function v(e){const t=c.value.selectAll({value:e,allItems:l.value,currentPage:u.value,selected:new Set(a.value)});a.value=t}const g=(0,r.Fl)((()=>a.value.size>0)),y=(0,r.Fl)((()=>{const e=c.value.allSelected({allItems:l.value,currentPage:u.value});return!!e.length&&h(e)})),_=(0,o.Vh)((()=>c.value.showSelectAll)),b={toggleSelect:m,select:f,selectAll:v,isSelected:h,isSomeSelected:p,someSelected:g,allSelected:y,showSelectAll:_,lastSelectedIndex:d,selectStrategy:c};return(0,r.JJ)(Jl,b),b}function Ql(){const e=(0,r.f3)(Jl);if(!e)throw new Error("Missing selection!");return e}const eu=(0,c.U)({initialSortOrder:{type:String,default:"asc",validator:e=>!e||["asc","desc"].includes(e)},sortBy:{type:Array,default:()=>[]},customKeySort:Object,multiSort:{type:[Boolean,Object],default:!1},mustSort:Boolean},"DataTable-sort"),tu=Symbol.for("vuetify:data-table-sort");function nu(e){const t=(0,o.Vh)((()=>e.initialSortOrder)),n=(0,$e.z)(e,"sortBy"),r=(0,o.Vh)((()=>e.mustSort)),i=(0,o.Vh)((()=>e.multiSort));return{initialSortOrder:t,sortBy:n,multiSort:i,mustSort:r}}function ru(e,t){if(!(0,s.Kn)(e))return{active:!!e};const{key:n,mode:r,modifier:i}=e,a="alt"===i&&t?.altKey||"shift"===i&&t?.shiftKey;return{active:!n||t?.ctrlKey||t?.metaKey||!1,mode:a?"append"===r?"prepend":"append":r}}function iu(e){const{initialSortOrder:t,sortBy:n,mustSort:i,multiSort:a,page:o}=e,s=function(e,r){let s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null==e.key)return;let l=n.value.map((e=>({...e})))??[];const u=l.find((t=>t.key===e.key)),c=t.value,d="desc"===t.value?"asc":"desc";if(u)u.order===d?s||i.value&&1===l.length?u.order=t.value:l=l.filter((t=>t.key!==e.key)):u.order=d;else{const{active:t,mode:n}=ru(a.value,r);t?"prepend"===n?l.unshift({key:e.key,order:c}):l.push({key:e.key,order:c}):l=[{key:e.key,order:c}]}n.value=l,o&&(o.value=1)};function l(e){return!!n.value.find((t=>t.key===e.key))}const u={sortBy:n,toggleSort:s,isSorted:l};return(0,r.JJ)(tu,u),u}function au(){const e=(0,r.f3)(tu);if(!e)throw new Error("Missing sort!");return e}function ou(e,t,n,i){const a=(0,w.bU)(),o=(0,r.Fl)((()=>n.value.length?su(t.value,n.value,a.current.value,{transform:i?.transform,sortFunctions:{...e.customKeySort,...i?.sortFunctions?.value},sortRawFunctions:i?.sortRawFunctions?.value}):t.value));return{sortedItems:o}}function su(e,t,n,r){const i=new Intl.Collator(n,{sensitivity:"accent",usage:"sort"}),a=e.map((e=>[e,r?.transform?r.transform(e):e]));return a.sort(((e,n)=>{for(let a=0;a<t.length;a++){let o=!1;const l=t[a].key,u=t[a].order??"asc";if(!1===u)continue;let c=(0,s.vO)(e[1],l),d=(0,s.vO)(n[1],l),h=e[0].raw,p=n[0].raw;if("desc"===u&&([c,d]=[d,c],[h,p]=[p,h]),r?.sortRawFunctions?.[l]){const e=r.sortRawFunctions[l](h,p);if(null==e)continue;if(o=!0,e)return e}if(r?.sortFunctions?.[l]){const e=r.sortFunctions[l](c,d);if(null==e)continue;if(o=!0,e)return e}if(!o&&(c instanceof Date&&d instanceof Date&&(c=c.getTime(),d=d.getTime()),[c,d]=[c,d].map((e=>null!=e?e.toString().toLocaleLowerCase():e)),c!==d))return(0,s.xb)(c)&&(0,s.xb)(d)?0:(0,s.xb)(c)?-1:(0,s.xb)(d)?1:isNaN(c)||isNaN(d)?i.compare(c,d):Number(c)-Number(d)}return 0})).map((e=>{let[t]=e;return t}))}const lu=(0,c.U)({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},returnObject:Boolean},"DataIterator-items");function uu(e,t){const n=e.returnObject?t:(0,s.qF)(t,e.itemValue),r=(0,s.qF)(t,e.itemSelectable,!0);return{type:"item",value:n,selectable:r,raw:t}}function cu(e,t){const n=[];for(const r of t)n.push(uu(e,r));return n}function du(e){const t=(0,r.Fl)((()=>cu(e,e.items)));return{items:t}}const hu=(0,c.U)({search:String,loading:Boolean,itemsLength:[Number,String],...(0,a.l)(),...lu(),...Xl(),...eu(),...Ul({itemsPerPage:5}),...El(),...Pl(),...di(),...x(),...(0,ve.X)({transition:{component:z,hideOnLeave:!0}})},"VDataIterator"),pu=(0,k.ev)()({name:"VDataIterator",props:hu(),emits:{"update:modelValue":e=>!0,"update:groupBy":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>
3336!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{slots:n}=t;const a=(0,$e.z)(e,"groupBy"),l=(0,o.Vh)((()=>e.search)),{items:u}=du(e),{filteredItems:c}=pi(e,u,l,{transform:e=>e.raw}),{initialSortOrder:d,sortBy:h,multiSort:p,mustSort:f}=nu(e),{page:m,itemsPerPage:v}=jl(e),{toggleSort:g}=iu({initialSortOrder:d,sortBy:h,multiSort:p,mustSort:f,page:m}),{sortByWithGroups:y,opened:_,extractRows:b,isGroupOpen:T,toggleGroup:w}=Nl({groupBy:a,sortBy:h}),{sortedItems:S}=ou(e,c,y,{transform:e=>e.raw}),{flatItems:k}=Ml(S,a,_,!1),E=(0,o.Vh)((()=>!(0,s.xb)(e.itemsLength))),I=(0,o.Vh)((()=>E.value?Number(e.itemsLength):k.value.length)),{startIndex:x,stopIndex:A,pageCount:P,prevPage:$,nextPage:O,setItemsPerPage:N,setPage:L}=Wl({page:m,itemsPerPage:v,itemsLength:I}),D=(0,o.XI)([]),R=(0,r.Fl)((()=>E.value?k.value:D.value));(0,De.U)((()=>!E.value),(()=>{const{paginatedItems:e}=ql({items:k,startIndex:x,stopIndex:A,itemsPerPage:v});(0,r.m0)((()=>{D.value=e.value}))}));const F=(0,r.Fl)((()=>b(R.value))),{isSelected:M,select:V,selectAll:U,toggleSelect:B}=Zl(e,{allItems:u,currentPage:F}),{isExpanded:j,toggleExpand:W}=xl(e);Vl({page:m,itemsPerPage:v,sortBy:h,groupBy:a,search:l});const H=(0,r.Fl)((()=>({page:m.value,itemsPerPage:v.value,sortBy:h.value,pageCount:P.value,toggleSort:g,prevPage:$,nextPage:O,setPage:L,setItemsPerPage:N,isSelected:M,select:V,selectAll:U,toggleSelect:B,isExpanded:j,toggleExpand:W,isGroupOpen:T,toggleGroup:w,items:F.value,itemsCount:c.value.length,groupedItems:R.value})));return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-data-iterator",{"v-data-iterator--loading":e.loading},e.class]),style:(0,i.j5)(e.style)},{default:()=>[n.header?.(H.value),(0,r.Wm)(ve.J,{transition:e.transition},{default:()=>[e.loading?(0,r.Wm)(Tt,{key:"loader",name:"v-data-iterator",active:!0},{default:e=>n.loader?.(e)}):(0,r._)("div",{key:"items"},[R.value.length?n.default?.(H.value):n["no-data"]?.()])]}),n.footer?.(H.value)]}))),{}}});function fu(){const e=(0,o.iH)([]);function t(t,n){e.value[n]=t}return(0,r.Xn)((()=>e.value=[])),{refs:e,updateRef:t}}const mu=(0,c.U)({activeColor:String,start:{type:[Number,String],default:1},modelValue:{type:Number,default:e=>e.start},disabled:Boolean,length:{type:[Number,String],default:1,validator:e=>e%1===0}
3336,totalVisible:[Number,String],firstIcon:{type:st.lE,default:"$first"},prevIcon:{type:st.lE,default:"$prev"},nextIcon:{type:st.lE,default:"$next"},lastIcon:{type:st.lE,default:"$last"},ariaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.root"},pageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.page"},currentPageAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.currentPage"},firstAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.first"},previousAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.previous"},nextAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.next"},lastAriaLabel:{type:String,default:"$vuetify.pagination.ariaLabel.last"},ellipsis:{type:String,default:"..."},showFirstLastPage:Boolean,...be(),...(0,a.l)(),...Ve(),...we(),...fe(),...je(),...x({tag:"nav"}),...(0,S.x$)(),...Ge({variant:"text"})},"VPagination"),vu=(0,k.ev)()({name:"VPagination",props:mu(),emits:{"update:modelValue":e=>!0,first:e=>!0,prev:e=>!0,next:e=>!0,last:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const l=(0,$e.z)(e,"modelValue"),{t:c,n:d}=(0,w.bU)(),{isRtl:h}=(0,w.Vw)(),{themeClasses:p}=(0,S.ER)(e),{width:f}=(0,Qt.AW)(),m=(0,o.XI)(-1);(0,oe.AF)(void 0,{scoped:!0});const{resizeRef:v}=u((e=>{if(!e.length)return;const{target:t,contentRect:n}=e[0],r=t.querySelector(".v-pagination__list > *");if(!r)return;const i=n.width,a=r.offsetWidth+2*parseFloat(getComputedStyle(r).marginRight);m.value=b(i,a)})),g=(0,r.Fl)((()=>parseInt(e.length,10))),y=(0,r.Fl)((()=>parseInt(e.start,10))),_=(0,r.Fl)((()=>null!=e.totalVisible?parseInt(e.totalVisible,10):m.value>=0?m.value:b(f.value,58)));function b(t,n){const r=e.showFirstLastPage?5:3;return Math.max(0,Math.floor(Number(((t-n*r)/n).toFixed(2))))}const T=(0,r.Fl)((()=>{if(g.value<=0||isNaN(g.value)||g.value>Number.MAX_SAFE_INTEGER)return[];if(null==e.totalVisible&&g.value<3)return(0,s.MT)(g.value,y.value);if(_.value<=0)return[];if(1===_.value)return[l.value];if(g.value<=_.value)return(0,s.MT)(g.value,y.value);const t=_.value%2===0,n=t?_.value/2:Math.floor(_.value/2),r=t?n:n+1,i=g.value-n;
3336if(r-l.value>=0)return[...(0,s.MT)(Math.max(1,_.value-1),y.value),e.ellipsis,g.value];if(l.value-i>=(t?1:0)){const t=_.value-1,n=g.value-t+y.value;return[y.value,e.ellipsis,...(0,s.MT)(t,n)]}{const t=Math.max(1,_.value-2),n=1===t?l.value:l.value-Math.ceil(t/2)+y.value;return[y.value,e.ellipsis,...(0,s.MT)(t,n),e.ellipsis,g.value]}}));function k(e,t,n){e.preventDefault(),l.value=t,n&&a(n,t)}const{refs:E,updateRef:I}=fu();(0,oe.AF)({VPaginationBtn:{color:(0,o.Vh)((()=>e.color)),border:(0,o.Vh)((()=>e.border)),density:(0,o.Vh)((()=>e.density)),size:(0,o.Vh)((()=>e.size)),variant:(0,o.Vh)((()=>e.variant)),rounded:(0,o.Vh)((()=>e.rounded)),elevation:(0,o.Vh)((()=>e.elevation))}});const x=(0,r.Fl)((()=>T.value.map(((t,n)=>{const r=e=>I(e,n);if("string"===typeof t)return{isActive:!1,key:`ellipsis-${n}`,page:t,props:{ref:r,ellipsis:!0,icon:!0,disabled:!0}};{const n=t===l.value;return{isActive:n,key:t,page:d(t),props:{ref:r,ellipsis:!1,icon:!0,disabled:!!e.disabled||Number(e.length)<2,color:n?e.activeColor:e.color,"aria-current":n,"aria-label":c(n?e.currentPageAriaLabel:e.pageAriaLabel,t),onClick:e=>k(e,t)}}}})))),A=(0,r.Fl)((()=>{const t=!!e.disabled||l.value<=y.value,n=!!e.disabled||l.value>=y.value+g.value-1;return{first:e.showFirstLastPage?{icon:h.value?e.lastIcon:e.firstIcon,onClick:e=>k(e,y.value,"first"),disabled:t,"aria-label":c(e.firstAriaLabel),"aria-disabled":t}:void 0,prev:{icon:h.value?e.nextIcon:e.prevIcon,onClick:e=>k(e,l.value-1,"prev"),disabled:t,"aria-label":c(e.previousAriaLabel),"aria-disabled":t},next:{icon:h.value?e.prevIcon:e.nextIcon,onClick:e=>k(e,l.value+1,"next"),disabled:n,"aria-label":c(e.nextAriaLabel),"aria-disabled":n},last:e.showFirstLastPage?{icon:h.value?e.firstIcon:e.lastIcon,onClick:e=>k(e,y.value+g.value-1,"last"),disabled:n,"aria-label":c(e.lastAriaLabel),"aria-disabled":n}:void 0}}));function P(){const e=l.value-y.value;E.value[e]?.$el.focus()}function $(t){t.key===s.ff.left&&!e.disabled&&l.value>Number(e.start)?(l.value=l.value-1,(0,r.Y3)(P)):t.key===s.ff.right&&!e.disabled&&l.value<y.value+g.value-1&&(l.value=l.value+1,(0,r.Y3)(P))}return(0,C.L)((()=>(0,r.Wm)(e.tag,{ref:v,class:(0,i.C_)(["v-pagination",p.value,e.class]),style:(0,i.j5)(e.style),role:"navigation","aria-label":c(e.ariaLabel),onKeydown:$,"data-test":"v-pagination-root"},{default:()=>[(0,r._)("ul",{class:"v-pagination__list"},[e.showFirstLastPage&&(0,r._)("li",{key:"first",class:"v-pagination__first","data-test":"v-pagination-first"},[n.first?n.first(A.value.first):(0,r.Wm)(At,(0,r.dG)({_as:"VPaginationBtn"},A.value.first),null)]),(0,r._)("li",{key:"prev",class:"v-pagination__prev","data-test":"v-pagination-prev"},[n.prev?n.prev(A.value.prev):(0,r.Wm)(At,(0,r.dG)({_as:"VPaginationBtn"},A.value.prev),null)]),x.value.map(((e,t)=>(0,r._)("li",{key:e.key,class:(0,i.C_)(["v-pagination__item",{"v-pagination__item--is-active":e.isActive}]),"data-test":"v-pagination-item"},[n.item?n.item(e):(0,r.Wm)(At,(0,r.dG)({_as:"VPaginationBtn"},e.props),{default:()=>[e.page]})]))),(0,r._)("li",{key:"next",class:"v-pagination__next","data-test":"v-pagination-next"},[n.next?n.next(A.value.next):(0,r.Wm)(At,(0,r.dG)({_as:"VPaginationBtn"},A.value.next),null)]),e.showFirstLastPage&&(0,r._)("li",{key:"last",class:"v-pagination__last","data-test":"v-pagination-last"},[n.last?n.last(A.value.last):(0,r.Wm)(At,(0,r.dG)({_as:"VPaginationBtn"},A.value.last),null)])])]}))),{}}}),gu=(0,c.U)({color:String,prevIcon:{type:st.lE,default:"$prev"},nextIcon:{type:st.lE,default:"$next"}
3336,firstIcon:{type:st.lE,default:"$first"},lastIcon:{type:st.lE,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},pageText:{type:String,default:"$vuetify.dataFooter.pageText"},firstPageLabel:{type:String,default:"$vuetify.dataFooter.firstPage"},prevPageLabel:{type:String,default:"$vuetify.dataFooter.prevPage"},nextPageLabel:{type:String,default:"$vuetify.dataFooter.nextPage"},lastPageLabel:{type:String,default:"$vuetify.dataFooter.lastPage"},itemsPerPageOptions:{type:Array,default:()=>[{value:10,title:"10"},{value:25,title:"25"},{value:50,title:"50"},{value:100,title:"100"},{value:-1,title:"$vuetify.dataFooter.itemsPerPageAll"}]},showCurrentPage:Boolean},"VDataTableFooter"),yu=(0,k.ev)()({name:"VDataTableFooter",props:gu(),setup(e,t){let{slots:n}=t;const{t:i}=(0,w.bU)(),{page:a,pageCount:o,startIndex:l,stopIndex:u,itemsLength:c,itemsPerPage:d,setItemsPerPage:h}=Hl(),p=(0,r.Fl)((()=>e.itemsPerPageOptions.map((e=>"number"===typeof e?{value:e,title:-1===e?i("$vuetify.dataFooter.itemsPerPageAll"):String(e)}:{...e,title:isNaN(Number(e.title))?i(e.title):e.title}))));return(0,C.L)((()=>{const t=vu.filterProps(e);return(0,r._)("div",{class:"v-data-table-footer"},[n.prepend?.(),(0,r._)("div",{class:"v-data-table-footer__items-per-page"},[(0,r._)("span",null,[i(e.itemsPerPageText)]),(0,r.Wm)(_i,{items:p.value,itemColor:e.color,modelValue:d.value,"onUpdate:modelValue":e=>h(Number(e)),density:"compact",variant:"outlined","aria-label":i(e.itemsPerPageText),hideDetails:!0},null)]),(0,r._)("div",{class:"v-data-table-footer__info"},[(0,r._)("div",null,[i(e.pageText,c.value?l.value+1:0,u.value,c.value)])]),(0,r._)("div",{class:"v-data-table-footer__pagination"},[(0,r.Wm)(vu,(0,r.dG)({modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,density:"comfortable",firstAriaLabel:e.firstPageLabel,lastAriaLabel:e.lastPageLabel,length:o.value,nextAriaLabel:e.nextPageLabel,previousAriaLabel:e.prevPageLabel,rounded:!0,showFirstLastPage:!0,totalVisible:e.showCurrentPage?1:0,variant:"plain"},(0,s.CE)(t,["color"])),null)])])})),{}}}),_u=(0,k.d4)({align:{type:String,default:"start"},fixed:{type:[Boolean,String],default:!1},fixedOffset:[Number,String],fixedEndOffset:[Number,String],height:[Number,String],lastFixed:Boolean,firstFixedEnd:Boolean,noPadding:Boolean,indent:[Number,String],empty:Boolean,tag:String,width:[Number,String],maxWidth:[Number,String],nowrap:Boolean},((e,t)=>{let{slots:n}=t;const a=e.tag??"td",o="string"===typeof e.fixed?e.fixed:e.fixed?"start":"none";return(0,r.Wm)(a,{class:(0,i.C_)(["v-data-table__td",{"v-data-table-column--fixed":"start"===o,"v-data-table-column--fixed-end":"end"===o,"v-data-table-column--last-fixed":e.lastFixed,"v-data-table-column--first-fixed-end":e.firstFixedEnd,"v-data-table-column--no-padding":e.noPadding,"v-data-table-column--nowrap":e.nowrap,"v-data-table-column--empty":e.empty},`v-data-table-column--align-${e.align}`]),style:{height:(0,s.kb)(e.height),width:(0,s.kb)(e.width),maxWidth:(0,s.kb)(e.maxWidth),left:"start"===o?(0,s.kb)(e.fixedOffset||null):void 0,right:"end"===o?(0,s.kb)(e.fixedEndOffset||null):void 0,paddingInlineStart:e.indent?(0,s.kb)(e.indent):void 0}},{default:()=>[n.default?.()]})})),bu=(0,c.U)({headers:Array},"DataTable-header"),Tu=Symbol.for("vuetify:data-table-headers"),wu={title:"",sortable:!1},Su={...wu,width:48};function ku(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=e.map((e=>({element:e,priority:0})));return{enqueue:(e,n)=>{let r=!1;for(let i=0;i<t.length;i++){const a=t[i];if(a.priority>n){t.splice(i,0,{element:e,priority:n}),r=!0;break}}r||t.push({element:e,priority:n})},size:()=>t.length,count:()=>{let e=0;if(!t.length)return 0;const n=Math.floor(t[0].priority);for(let r=0;r<t.length;r++)Math.floor(t[r].priority)===n&&(e+=1);return e},dequeue:()=>t.shift()}}function Cu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.children)for(const n of e.children)Cu(n,t);else t.push(e);return t}function Eu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n of e)n.key&&t.add(n.key),n.children&&Eu(n.children,t);return t}function Iu(e){if(e.key)return"data-table-group"===e.key?wu:["data-table-expand","data-table-select"].includes(e.ke
3336y)?Su:void 0}function xu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.children?Math.max(t,...e.children.map((e=>xu(e,t+1)))):t}function Au(e){let t=!1;function n(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"none";if(e)if("none"!==i&&(e.fixed=i),!0===e.fixed&&(e.fixed="start"),e.fixed===r)if(e.children)if("start"===r)for(let t=e.children.length-1;t>=0;t--)n(e.children[t],r,r);else for(let t=0;t<e.children.length;t++)n(e.children[t],r,r);else t||"start"!==r?t||"end"!==r?isNaN(Number(e.width))?(0,h.N6)(`Multiple fixed columns should have a static width (key: ${e.key})`):e.minWidth=Math.max(Number(e.width)||0,Number(e.minWidth)||0):e.firstFixedEnd=!0:e.lastFixed=!0,t=!0;else if(e.children)if("start"===r)for(let t=e.children.length-1;t>=0;t--)n(e.children[t],r);else for(let t=0;t<e.children.length;t++)n(e.children[t],r);else t=!1}for(let a=e.length-1;a>=0;a--)n(e[a],"start");for(let a=0;a<e.length;a++)n(e[a],"end");let r=0;for(let a=0;a<e.length;a++)r=Pu(e[a],r);let i=0;for(let a=e.length-1;a>=0;a--)i=$u(e[a],i)}function Pu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return t;if(e.children){e.fixedOffset=t;for(const n of e.children)t=Pu(n,t)}else e.fixed&&"end"!==e.fixed&&(e.fixedOffset=t,t+=parseFloat(e.width||"0")||0);return t}function $u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return t;if(e.children){e.fixedEndOffset=t;for(const n of e.children)t=$u(n,t)}else"end"===e.fixed&&(e.fixedEndOffset=t,t+=parseFloat(e.width||"0")||0);return t}function Ou(e,t){const n=[];let r=0;const i=ku(e);while(i.size()>0){let e=i.count();const a=[];let o=1;while(e>0){const{element:n,priority:s}=i.dequeue(),l=t-r-xu(n);if(a.push({...n,rowspan:l??1,colspan:n.children?Cu(n).length:1}),n.children)for(const e of n.children){const t=s%1+o/Math.pow(10,r+2);i.enqueue(e,r+l+t)}o+=1,e-=1}r+=1,n.push(a)}const a=e.map((e=>Cu(e))).flat();return{columns:a,headers:n}}function Nu(e){const t=[];for(const n of e){const e={...Iu(n),...n},r=e.key??("string"===typeof e.value?e.value:null),i=e.value??r??null,a={...e,key:r,value:i,sortable:e.sortable??(null!=e.key||!!e.sort),children:e.children?Nu(e.children):void 0};t.push(a)}return t}function Lu(e,t){const n=(0,o.iH)([]),a=(0,o.iH)([]),s=(0,o.iH)({}),l=(0,o.iH)({}),u=(0,o.iH)({});(0,r.m0)((()=>{const r=e.headers||Object.keys(e.items[0]??{}).map((e=>({key:e,title:(0,i.kC)(e)}))),o=r.slice(),c=Eu(o);t?.groupBy?.value.length&&!c.has("data-table-group")&&o.unshift({key:"data-table-group",title:"Group"}),t?.showSelect?.value&&!c.has("data-table-select")&&o.unshift({key:"data-table-select"}),t?.showExpand?.value&&!c.has("data-table-expand")&&o.push({key:"data-table-expand"});const d=Nu(o);Au(d);const h=Math.max(...d.map((e=>xu(e))))+1,p=Ou(d,h);n.value=p.headers,a.value=p.columns;const f=p.headers.flat(1);s.value={},l.value={},u.value={};for(const e of f)e.key&&(e.sortable&&(e.sort&&(s.value[e.key]=e.sort),e.sortRaw&&(l.value[e.key]=e.sortRaw)),e.filter&&(u.value[e.key]=e.filter))}));const c={headers:n,columns:a,sortFunctions:s,sortRawFunctions:l,filterFunctions:u};return(0,r.JJ)(Tu,c),c}function Du(){const e=(0,r.f3)(Tu);if(!e)throw new Error("Missing headers!");return e}const Ru=(0,c.U)({color:String,disableSort:Boolean,fixedHeader:Boolean,multiSort:Boolean,initialSortOrder:String,sortIcon:{type:st.lE},sortAscIcon:{type:st.lE,default:"$sortAsc"},sortDescIcon:{type:st.lE,default:"$sortDesc"},headerProps:{type:Object},selectAllLabel:{type:String,default:"$vuetify.dataTable.ariaLabel.selectAll"},sticky:Boolean,...Ve(),...(0,Qt.Tp)(),..._t()},"VDataTableHeaders"),Fu=(0,k.ev)()({name:"VDataTableHeaders",props:Ru(),setup(e,t){let{slots:n}=t;const{t:a}=(0,w.bU)(),{toggleSort:o,sortBy:l,isSorted:u}=au(),{someSelected:c,allSelected:d,selectAll:h,showSelectAll:p}=Ql(),{columns:f,headers:m}=Du(),{loaderClasses:v}=bt(e);function g(t,n){if(!e.sticky&&!e.fixedHeader&&!t.fixed)return;const r="string"===typeof t.fixed?t.fixed:t.fixed?"start":"none";return{position:"sticky",left:"start"===r?(0,s.kb)(t.fixedOffset):void 0,right:"end"===r?(0,s.kb)(t.fixedEndOffset):void 0,top:e.sticky||e.fixedHeader?`calc(var(--v-table-header-height) * ${n})`:void 0}}function y(t,n){"Enter"!==t.key||e.disableSort||o(n,t)}function _(t){const n=l.value.find((e=>e.key===t.key));switch(n?.order){case"asc":return e.sortAscIcon;
3336case"desc":return e.sortDescIcon;default:return e.sortIcon||("asc"===e.initialSortOrder?e.sortAscIcon:e.sortDescIcon)}}const{backgroundColorClasses:b,backgroundColorStyles:T}=(0,pe.Y5)((()=>e.color)),{displayClasses:S,mobile:k}=(0,Qt.AW)(e),E=(0,r.Fl)((()=>({headers:m.value,columns:f.value,toggleSort:o,isSorted:u,sortBy:l.value,someSelected:c.value,allSelected:d.value,selectAll:h,getSortIcon:_}))),I=(0,r.Fl)((()=>["v-data-table__th",{"v-data-table__th--sticky":e.sticky||e.fixedHeader},S.value,v.value])),x=t=>{let{column:f,x:m,y:v}=t;const w="data-table-select"===f.key||"data-table-expand"===f.key,S="data-table-group"===f.key&&0===f.width&&!f.title,k=(0,r.dG)(e.headerProps??{},f.headerProps??{}),C=f.sortable&&!e.disableSort,E=C?l.value.find((e=>e.key===f.key)):void 0,x="asc"===E?.order?"ascending":"desc"===E?.order?"descending":void 0;return(0,r.Wm)(_u,(0,r.dG)({tag:"th","aria-sort":x,align:f.align,class:[{"v-data-table__th--sortable":C,"v-data-table__th--sorted":u(f),"v-data-table__th--fixed":f.fixed},...I.value],style:{width:(0,s.kb)(f.width),minWidth:(0,s.kb)(f.minWidth),maxWidth:(0,s.kb)(f.maxWidth),...g(f,v)},colspan:f.colspan,rowspan:f.rowspan,fixed:f.fixed,nowrap:f.nowrap,lastFixed:f.lastFixed,firstFixedEnd:f.firstFixedEnd,noPadding:w,empty:S,tabindex:C?0:void 0,onClick:C?e=>o(f,e):void 0,onKeydown:C?e=>y(e,f):void 0},k),{default:()=>{const t=`header.${f.key}`,s={column:f,selectAll:h,isSorted:u,toggleSort:o,sortBy:l.value,someSelected:c.value,allSelected:d.value,getSortIcon:_};return n[t]?n[t](s):S?"":"data-table-select"===f.key?n["header.data-table-select"]?.(s)??(p.value&&(0,r.Wm)(Zt,{"aria-label":a(e.selectAllLabel),color:e.color,density:e.density,modelValue:d.value,indeterminate:c.value&&!d.value,"onUpdate:modelValue":h},null)):(0,r._)("div",{class:"v-data-table-header__content"},[(0,r._)("span",null,[f.title]),f.sortable&&!e.disableSort&&(0,r.Wm)(ut,{key:"icon",class:"v-data-table-header__sort-icon",icon:_(f)},null),e.multiSort&&u(f)&&(0,r._)("div",{key:"badge",class:(0,i.C_)(["v-data-table-header__sort-badge",...b.value]),style:(0,i.j5)(T.value)},[l.value.findIndex((e=>e.key===f.key))+1])])}})},A=()=>{const t=(0,r.Fl)((()=>f.value.filter((t=>t?.sortable&&!e.disableSort)))),p=f.value.find((e=>"data-table-select"===e.key)),v=(0,r.Fl)({get:()=>t.value.filter((e=>{let{key:t}=e;return l.value.some((e=>e.key===t))})),set:e=>{const t=(0,s.FT)(e),n=l.value.map((e=>e.key)),i=t.filter((e=>{let{key:t}=e;return!n.includes(t)}));i.forEach((e=>o(e))),(0,r.Y3)((()=>l.value=l.value.filter((e=>{let{key:n}=e;return t.some((e=>e.key===n))}))))}});function g(){return(0,r.Wm)(_i,{modelValue:v.value,"onUpdate:modelValue":e=>v.value=e,chips:!0,color:e.color,class:"v-data-table__td-sort-select",clearable:!0,density:"default",items:t.value,label:a("$vuetify.dataTable.sortBy"),multiple:e.multiSort,variant:"underlined",returnObject:!0,"onClick:clear":()=>l.value=[]},{chip:e=>{let{item:t}=e;return(0,r.Wm)(vn,{onClick:t.raw.sortable?()=>o(t.raw,void 0,!0):void 0,onMousedown:e=>{e.preventDefault(),e.stopPropagation()}},{default:()=>[t.title,(0,r.Wm)(ut,{class:(0,i.C_)(["v-data-table__td-sort-icon",u(t.raw)&&"v-data-table__td-sort-icon-active"]),icon:_(t.raw),size:"small"},null)]})}})}function y(){return(0,r.Wm)(Zt,{"aria-label":a(e.selectAllLabel),class:"v-data-table-header__select-all",color:e.color,density:"compact",modelValue:d.value,indeterminate:c.value&&!d.value,"onUpdate:modelValue":()=>h(!d.value)},null)}return(0,r.Wm)(_u,(0,r.dG)({tag:"th",class:[...I.value],colspan:m.value.length+1},e.headerProps),{default:()=>[(0,r._)("div",{class:"v-data-table-header__content"},[n["mobile.header"]?.(E.value)??(0,r._)(r.HY,null,[t.value.length>0&&g(),p&&y()])])]})},P=(0,r.Fl)((()=>{if(n["mobile.header"])return!0;const t=f.value.some((t=>t?.sortable&&!e.disableSort)),r=f.value.some((e=>"data-table-select"===e.key));return t||r}));(0,C.L)((()=>k.value?(0,r._)(r.HY,null,[P.value&&(0,r._)("tr",null,[(0,r.Wm)(A,null,null)])]):(0,r._)(r.HY,null,[n.headers?n.headers(E.value):m.value.map(((e,t)=>(0,r._)("tr",null,[e.map(((e,n)=>(0,r.Wm)(x,{column:e,x:n,y:t},null)))]))),e.loading&&(0,r._)("tr",{class:"v-data-table-progress"},[(0,r._)("th",{colspan:f.value.length},[(0,r.Wm)(Tt,{name:"v-data-table-progress",absolute:!0,active:!0,color:"boolean"===typeof e.loading||"true"===e.loading?e.color:e.loading,indeterminate:!0},{default:n.loader})])])])))}}),Mu=(0,c.U)({item:{type:Object,required:!0},groupCollapseIcon:{type:st.lE,default:"$tableGroupCollapse"},groupExpandIcon:{type:st.lE,default:"$tableGroupExpand"},selectGroupLabel:{type:String,default:"$vuetify.dataTable.ariaLabel.selectGroup"},...Ve()},"VDataTableGroupHeaderRow"),Vu=(0,k.ev)()({name:"VDataTableGroupHeaderRow",props:Mu(),setup(e,t){let{slots:n}=t;const{t:i}=(0,w.bU)(),{isGroupOpen:a,toggleGroup:s,extractRows:l}=Ll(),{isSelected:u,isSomeSelected:c,select:d}=Ql(),{columns:h}=Du(),p=(0,r.Fl)((()=>l([e.item]))),f=(0,o.Vh)((()=>h.value.length-(h.value.some((e=>"data-table-select"===e.key))?1:0)));return()=>(0,r._)("tr",{class:"v-data-table-group-header-row",style:{"--v-data-table-group-header-row-depth":e.item.depth}},[h.value.map((t=>{if("data-table-group"===t.key){const t=a(e.item)?e.groupCollapseIcon:e.groupExpandIcon,i=()=>s(e.item);return n["data-table-group"]?.({item:e.item,count:p.value.length,props:{icon:t,onClick:i}})??(0,r.Wm)(_u,{class:"v-data-table-group-header-row__column",colspan:f.value},{default:()=>[(0,r.Wm)(At,{size:"small",variant:"text",icon:t,onClick:i},null),(0,r._)("span",null,[e.item.value]),(0,r._)("span",null,[(0,r.Uk)("("),p.value.length,(0,r.Uk)(")")])]})}if("data-table-select"===t.key){const t=p.value.filter((e=>e.selectable)),a=t.length>0&&u(t),o=c(t)&&!a,s=e=>d(t,e);return n["data-table-select"]?.({props:{modelValue:a,indeterminate:o,"onUpdate:modelValue":s}})??(0,r.Wm)(_u,{class:"v-data-table__td--select-row",noPadding:!0},{default:()=>[(0,r.Wm)(Zt,{"aria-label":i(e.selectGroupLabel),density:e.density,disabled:0===t.length,modelValue:a,indeterminate:o,"onUpdate:modelValue":s},null)]})}return""}))])}}),Uu=(0,c.U)({color:String,index:Number,item:Object,cellProps:[Object,Function],collapseIcon:{type:st.lE,default:"$collapse"},expandIcon:{type:st.lE,default:"$expand"},selectRowLabel:{type:String,default:"$vuetify.dataTable.ariaLabel.selectRow"},onClick:(0,s.as)(),onContextmenu:(0,s.as)(),onDblclick:(0,s.as)(),...Ve(),...(0,Qt.Tp)()},"VDataTableRow"),Bu=(0,k.ev)()({name:"VDataTableRow",props:Uu(),setup(e,t){let{slots:n}=t;const{t:a}
3336=(0,w.bU)(),{displayClasses:o,mobile:l}=(0,Qt.AW)(e,"v-data-table__tr"),{isSelected:u,toggleSelect:c,someSelected:d,allSelected:h,selectAll:p}=Ql(),{isExpanded:f,toggleExpand:m}=Al(),{toggleSort:v,sortBy:g,isSorted:y}=au(),{columns:_}=Du();(0,C.L)((()=>(0,r._)("tr",{class:(0,i.C_)(["v-data-table__tr",{"v-data-table__tr--clickable":!!(e.onClick||e.onContextmenu||e.onDblclick)},o.value]),onClick:e.onClick,onContextmenu:e.onContextmenu,onDblclick:e.onDblclick},[e.item&&_.value.map(((t,o)=>{const _=e.item,b=`item.${t.key}`,T=`header.${t.key}`,w={index:e.index,item:_.raw,internalItem:_,value:(0,s.vO)(_.columns,t.key),column:t,isSelected:u,toggleSelect:c,isExpanded:f,toggleExpand:m},S={column:t,selectAll:p,isSorted:y,toggleSort:v,sortBy:g.value,someSelected:d.value,allSelected:h.value,getSortIcon:()=>""},k="function"===typeof e.cellProps?e.cellProps({index:w.index,item:w.item,internalItem:w.internalItem,value:w.value,column:t}):e.cellProps,C="function"===typeof t.cellProps?t.cellProps({index:w.index,item:w.item,internalItem:w.internalItem,value:w.value}):t.cellProps,E="data-table-select"===t.key||"data-table-expand"===t.key,I="data-table-group"===t.key&&0===t.width&&!t.title;return(0,r.Wm)(_u,(0,r.dG)({align:t.align,indent:t.indent,class:{"v-data-table__td--expanded-row":"data-table-expand"===t.key,"v-data-table__td--select-row":"data-table-select"===t.key},fixed:t.fixed,fixedOffset:t.fixedOffset,fixedEndOffset:t.fixedEndOffset,lastFixed:t.lastFixed,firstFixedEnd:t.firstFixedEnd,maxWidth:l.value?void 0:t.maxWidth,noPadding:E,empty:I,nowrap:t.nowrap,width:l.value?void 0:t.width},k,C),{default:()=>{if("data-table-select"===t.key)return n["item.data-table-select"]?.({...w,props:{color:e.color,disabled:!_.selectable,modelValue:u([_]),onClick:(0,$.iM)((()=>c(_)),["stop"])}})??(0,r.Wm)(Zt,{"aria-label":a(e.selectRowLabel),color:e.color,disabled:!_.selectable,density:e.density,modelValue:u([_]),onClick:(0,$.iM)((t=>c(_,e.index,t)),["stop"])},null);if("data-table-expand"===t.key)return n["item.data-table-expand"]?.({...w,props:{icon:f(_)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:(0,$.iM)((()=>m(_)),["stop"])}})??(0,r.Wm)(At,{icon:f(_)?e.collapseIcon:e.expandIcon,size:"small",variant:"text",onClick:(0,$.iM)((()=>m(_)),["stop"])},null);if(n[b]&&!l.value)return n[b](w);const o=(0,i.zw)(w.value);return l.value?(0,r._)(r.HY,null,[(0,r._)("div",{class:"v-data-table__td-title"},[n[T]?.(S)??t.title]),(0,r._)("div",{class:"v-data-table__td-value"},[n[b]?.(w)??o])]):o}})}))])))}}),ju=(0,c.U)({color:String,loading:[Boolean,String],loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideNoData:Boolean,items:{type:Array,default:()=>[]},noDataText:{type:String,default:"$vuetify.noDataText"},rowProps:[Object,Function],cellProps:[Object,Function],...(0,s.ei)(Uu(),["collapseIcon","expandIcon","density"]),...(0,s.ei)(Mu(),["groupCollapseIcon","groupExpandIcon","density"]),...(0,Qt.Tp)()},"VDataTableRows"),Wu=(0,k.ev)()({name:"VDataTableRows",inheritAttrs:!1,props:ju(),setup(e,t){let{attrs:n,slots:i}=t;const{columns:a}=Du(),{expandOnClick:o,toggleExpand:l,isExpanded:u}=Al(),{isSelected:c,toggleSelect:d}=Ql(),{toggleGroup:h,isGroupOpen:p}=Ll(),{t:f}=(0,w.bU)(),{mobile:m}=(0,Qt.AW)(e);return(0,C.L)((()=>{const t=(0,s.ei)(e,["groupCollapseIcon","groupExpandIcon","density"]);return!e.loading||e.items.length&&!i.loading?e.loading||e.items.length||e.hideNoData?(0,r._)(r.HY,null,[e.items.map(((s,f)=>{if("group"===s.type){const e={index:f,item:s,columns:a.value,isExpanded:u,toggleExpand:l,isSelected:c,toggleSelect:d,toggleGroup:h,isGroupOpen:p};return i["group-header"]?i["group-header"](e):(0,r.Wm)(Vu,(0,r.dG)({key:`group-header_${s.id}`,item:s},eo(n,":groupHeader",(()=>e)),t),i)}if("group-summary"===s.type){const e={index:f,item:s,columns:a.value,toggleGroup:h};return i["group-summary"]?.(e)??""}const v={index:s.virtualIndex??f,item:s.raw,internalItem:s,columns:a.value,isExpanded:u,toggleExpand:l,isSelected:c,toggleSelect:d},g={...v,props:(0,r.dG)({key:`item_${s.key??s.index}`,onClick:o.value?()=>{l(s)}:void 0,index:f,item:s,color:e.color,cellProps:e.cellProps,collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,density:e.density,mobile:m.value},eo(n,":row",(()=>v)),"function"===typeof e.rowProps?e.rowProps({item:v.item,index:v.index,internalItem:v.internalItem}):e.rowProps)};return(0,r._)(r.HY,{key:g.props.key},[i.item?i.item(g):(0,r.Wm)(Bu,g.props,i),u(s)&&i["expanded-row"]?.(v)])}))]):(0,r._)("tr",{class:"v-data-table-rows-no-data",key:"no-data"},[(0,r._)("td",{colspan:a.value.length},[i["no-data"]?.()??f(e.noDataText)])]):(0,r._)("tr",{class:"v-data-table-rows-loading",key:"loading"},[(0,r._)("td",{colspan:a.value.length},[i.loading?.()??f(e.loadingText)])])})),{}}}),Hu=(0,c.U)({fixedHeader:Boolean,fixedFooter:Boolean,height:[Number,String],hover:Boolean,striped:{type:String,default:null,validator:e=>["even","odd"].includes(e)},...(0,a.l)(),...Ve(),...x(),...(0,S.x$)()},"VTable"),qu=(0,k.ev)()({name:"VTable",props:Hu(),setup(e,t){let{slots:n,emit:a}=t;const{themeClasses:o}=(0,S.ER)(e),{densityClasses:l}=Ue(e);return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-table",{"v-table--fixed-height":!!e.height,"v-table--fixed-header":e.fixedHeader,"v-table--fixed-footer":e.fixedFooter,"v-table--has-top":!!n.top,"v-table--has-bottom":!!n.bottom,"v-table--hover":e.hover,"v-table--striped-even":"even"===e.striped,"v-table--striped-odd":"odd"===e.striped},o.value,l.value,e.class]),style:(0,i.j5)(e.style)}
3336,{default:()=>[n.top?.(),n.default?(0,r._)("div",{class:"v-table__wrapper",style:{height:(0,s.kb)(e.height)}},[(0,r._)("table",null,[n.default()])]):n.wrapper?.(),n.bottom?.()]}))),{}}}),Gu=(0,c.U)({items:{type:Array,default:()=>[]},itemValue:{type:[String,Array,Function],default:"id"},itemSelectable:{type:[String,Array,Function],default:null},rowProps:[Object,Function],cellProps:[Object,Function],returnObject:Boolean},"DataTable-items");function zu(e,t,n,r){const i=e.returnObject?t:(0,s.qF)(t,e.itemValue),a=(0,s.qF)(t,e.itemSelectable,!0),o=r.reduce(((e,n)=>(null!=n.key&&(e[n.key]=(0,s.qF)(t,n.value)),e)),{});return{type:"item",key:e.returnObject?(0,s.qF)(t,e.itemValue):i,index:n,value:i,selectable:a,columns:o,raw:t}}function Yu(e,t,n){return t.map(((t,r)=>zu(e,t,r,n)))}function Ku(e,t){const n=(0,r.Fl)((()=>Yu(e,e.items,t.value)));return{items:n}}const Xu=(0,c.U)({...ju(),hideDefaultBody:Boolean,hideDefaultFooter:Boolean,hideDefaultHeader:Boolean,width:[String,Number],search:String,...El(),...Pl(),...bu(),...Gu(),...Xl(),...eu(),...(0,s.CE)(Ru(),["multiSort","initialSortOrder"]),...Hu()},"DataTable"),Ju=(0,c.U)({...Ul(),...Xu(),...di(),...gu()},"VDataTable"),Zu=(0,k.ev)()({name:"VDataTable",props:Ju(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>!0,"update:expanded":e=>!0,"update:currentItems":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:a}=Ol(e),{initialSortOrder:l,sortBy:u,multiSort:c,mustSort:d}=nu(e),{page:h,itemsPerPage:p}=jl(e),{disableSort:f}=(0,o.BK)(e),{columns:m,headers:v,sortFunctions:g,sortRawFunctions:y,filterFunctions:_}=Lu(e,{groupBy:a,showSelect:(0,o.Vh)((()=>e.showSelect)),showExpand:(0,o.Vh)((()=>e.showExpand))}),{items:b}=Ku(e,m),T=(0,o.Vh)((()=>e.search)),{filteredItems:w}=pi(e,b,T,{transform:e=>e.columns,customKeyFilter:_}),{toggleSort:S}=iu({initialSortOrder:l,sortBy:u,multiSort:c,mustSort:d,page:h}),{sortByWithGroups:k,opened:E,extractRows:I,isGroupOpen:x,toggleGroup:A}=Nl({groupBy:a,sortBy:u,disableSort:f}),{sortedItems:P}=ou(e,w,k,{transform:e=>({...e.raw,...e.columns}),sortFunctions:g,sortRawFunctions:y}),$=(0,r.Fl)((()=>"auto"===e.pageBy?e.groupBy.length?"group":"item":e.pageBy)),{pageCount:O,setItemsPerPage:N,paginatedItems:L}=Gl({pageBy:$,sortedItems:P,paginate:e=>{const t=(0,r.Fl)((()=>(0,o.Tn)(e).length)),{startIndex:n,stopIndex:i,pageCount:a,setItemsPerPage:s}=Wl({page:h,itemsPerPage:p,itemsLength:t}),{paginatedItems:l}=ql({items:e,startIndex:n,stopIndex:i,itemsPerPage:p});return{paginatedItems:l,pageCount:a,setItemsPerPage:s}},group:e=>Ml(e,a,E,(()=>!!i["group-summary"]))}),D=(0,r.Fl)((()=>I(L.value))),{isSelected:R,select:F,selectAll:M,toggleSelect:V,someSelected:U,allSelected:B}=Zl(e,{allItems:b,currentPage:D}),{isExpanded:j,toggleExpand:W}=xl(e);Vl({page:h,itemsPerPage:p,sortBy:u,groupBy:a,search:T}),(0,oe.AF)({VDataTableRows:{hideNoData:(0,o.Vh)((()=>e.hideNoData)),noDataText:(0,o.Vh)((()=>e.noDataText)),loading:(0,o.Vh)((()=>e.loading)),loadingText:(0,o.Vh)((()=>e.loadingText))}});const H=(0,r.Fl)((()=>({page:h.value,itemsPerPage:p.value,sortBy:u.value,pageCount:O.value,toggleSort:S,setItemsPerPage:N,someSelected:U.value,allSelected:B.value,isSelected:R,select:F,selectAll:M,toggleSelect:V,isExpanded:j,toggleExpand:W,isGroupOpen:x,toggleGroup:A,items:D.value.map((e=>e.raw)),internalItems:D.value,groupedItems:L.value,columns:m.value,headers:v.value})));return(0,C.L)((()=>{const t=yu.filterProps(e),a=Fu.filterProps((0,s.CE)(e,["multiSort"])),o=Wu.filterProps(e),l=qu.filterProps(e);return(0,r.Wm)(qu,(0,r.dG)({class:["v-data-table",{"v-data-table--show-select":e.showSelect,"v-data-table--loading":e.loading},e.class],style:e.style},l,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>i.top?.(H.value),default:()=>i.default?i.default(H.value):(0,r._)(r.HY,null,[i.colgroup?.(H.value),!e.hideDefaultHeader&&(0,r._)("thead",{key:"thead"},[(0,r.Wm)(Fu,(0,r.dG)(a,{multiSort:!!e.multiSort}),i)]),i.thead?.(H.value),!e.hideDefaultBody&&(0,r._)("tbody",null,[i["body.prepend"]?.(H.value),i.body?i.body(H.value):(0,r.Wm)(Wu,(0,r.dG)(n,o,{items:L.value}),i),i["body.append"]?.(H.value)]),i.tbody?.(H.value),i.tfoot?.(H.value)]),bottom:()=>i.bottom?i.bottom(H.value):!e.hideDefaultFooter&&(0,r._)(r.HY,null,[(0,r.Wm)(_n,null,null),(0,r.Wm)(yu,t,{prepend:i["footer.prepend"]})])})})),{}}}),Qu=(0,c.U)({...(0,s.CE)(Xu(),["hideDefaultFooter"]),...Pl(),...ei(),...di()},"VDataTableVirtual");function ec(e){return(e??[]).flatMap((e=>Array.isArray(e)?ec(e):(0,r.lA)(e)?e.type===r.HY?ec(e.children):"symbol"===typeof e.type?[]:[e]:[]))}const tc=(0,k.ev)()({name:"VDataTableVirtual",props:Qu(),emits:{"update:modelValue":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:groupBy":e=>
3336!0,"update:expanded":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:a}=Ol(e),{initialSortOrder:l,sortBy:u,multiSort:c,mustSort:d}=nu(e),{disableSort:h}=(0,o.BK)(e),{columns:p,headers:f,filterFunctions:m,sortFunctions:v,sortRawFunctions:g}=Lu(e,{groupBy:a,showSelect:(0,o.Vh)((()=>e.showSelect)),showExpand:(0,o.Vh)((()=>e.showExpand))}),{items:y}=Ku(e,p),_=(0,o.Vh)((()=>e.search)),{filteredItems:b}=pi(e,y,_,{transform:e=>e.columns,customKeyFilter:m}),{toggleSort:T}=iu({initialSortOrder:l,sortBy:u,multiSort:c,mustSort:d}),{sortByWithGroups:w,opened:S,extractRows:k,isGroupOpen:E,toggleGroup:I}=Nl({groupBy:a,sortBy:u,disableSort:h}),{sortedItems:x}=ou(e,b,w,{transform:e=>({...e.raw,...e.columns}),sortFunctions:v,sortRawFunctions:g}),{flatItems:A}=Ml(x,a,S,(()=>!!i["group-summary"])),P=(0,r.Fl)((()=>k(A.value))),{isSelected:$,select:O,selectAll:N,toggleSelect:L,someSelected:D,allSelected:R}=Zl(e,{allItems:P,currentPage:P}),{expanded:F,isExpanded:M,toggleExpand:V}=xl(e),{containerRef:U,markerRef:B,paddingTop:j,paddingBottom:W,computedItems:H,handleItemResize:q,handleScroll:G,handleScrollend:z,calculateVisibleItems:Y,scrollToIndex:K}=ti(e,A),X=(0,r.Fl)((()=>H.value.map((e=>({...e.raw,virtualIndex:e.index}))))),J=new Map,Z=new Map;function Q(e){const t=Z.get(e)?.reduce(((e,t)=>e+(t||0)),0)??0;q(e,(J.get(e)??0)+t)}function ee(e,t){J.set(e,t),Q(e)}function te(e,t,n){const r=Z.get(e)??[];r[t]=n,Z.set(e,r),Q(e)}function ne(e,t){const n=Z.get(e);!n||n.length<=t||(n.length=t,Q(e))}(0,r.YP)(F,(()=>{if(i["expanded-row"])for(const e of[...Z.keys()]){const t=A.value[e];"item"===t?.type&&M(t)||(Z.delete(e),Q(e))}})),(0,r.YP)(A,(()=>{J.clear(),Z.clear()}
3336)),Vl({sortBy:u,page:(0,o.XI)(1),itemsPerPage:(0,o.XI)(-1),groupBy:a,search:_}),(0,oe.AF)({VDataTableRows:{hideNoData:(0,o.Vh)((()=>e.hideNoData)),noDataText:(0,o.Vh)((()=>e.noDataText)),loading:(0,o.Vh)((()=>e.loading)),loadingText:(0,o.Vh)((()=>e.loadingText))}});const re=(0,r.Fl)((()=>({sortBy:u.value,toggleSort:T,someSelected:D.value,allSelected:R.value,isSelected:$,select:O,selectAll:N,toggleSelect:L,isExpanded:M,toggleExpand:V,isGroupOpen:E,toggleGroup:I,items:P.value.map((e=>e.raw)),internalItems:P.value,groupedItems:A.value,columns:p.value,headers:f.value})));return(0,C.L)((()=>{const t=Fu.filterProps((0,s.CE)(e,["multiSort"])),a=Wu.filterProps(e),o=qu.filterProps(e);return(0,r.Wm)(qu,(0,r.dG)({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},o,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>i.top?.(re.value),wrapper:()=>(0,r._)("div",{ref:U,onScrollPassive:G,onScrollend:z,class:"v-table__wrapper",style:{height:(0,s.kb)(e.height)}},[(0,r._)("table",null,[i.colgroup?.(re.value),!e.hideDefaultHeader&&(0,r._)("thead",{key:"thead"},[(0,r.Wm)(Fu,(0,r.dG)(t,{multiSort:!!e.multiSort}),i)]),i.thead?.(re.value),!e.hideDefaultBody&&(0,r._)("tbody",{key:"tbody"},[(0,r._)("tr",{ref:B,style:{height:(0,s.kb)(j.value),border:0}},[(0,r._)("td",{colspan:p.value.length,style:{height:0,border:0}},null)]),i["body.prepend"]?.(re.value),(0,r.Wm)(Wu,(0,r.dG)(n,a,{items:X.value}),{...(0,s.CE)(i,["expanded-row"]),item:t=>{const{props:n,...a}=t,o=t.internalItem.virtualIndex??t.internalItem.index,s=M(t.internalItem),l=e.showExpand&&s&&i["expanded-row"]?ec(i["expanded-row"](a)):[];return i["expanded-row"]&&(Z.get(o)?.length??0)>l.length&&(0,r.Y3)((()=>ne(o,l.length))),(0,r._)(r.HY,null,[(0,r.Wm)(Xr,{key:o,renderless:!0,"onUpdate:height":e=>ee(o,e)},{default:e=>{let{itemRef:a}=e;return i.item?.({...t,itemRef:a})??(0,r.Wm)(Bu,(0,r.dG)(n,{ref:a,index:t.index}),i)}}),e.showExpand&&i["expanded-row"]&&l.map(((e,t)=>(0,r.Wm)(Xr,{key:`${o}-expanded-${t}`,renderless:!0,"onUpdate:height":e=>te(o,t,e)},{default:t=>{let{itemRef:n}=t;return(0,r.Ho)(e,{ref:n},!0)}})))])}}),i["body.append"]?.(re.value),(0,r._)("tr",{style:{height:(0,s.kb)(W.value),border:0}},[(0,r._)("td",{colspan:p.value.length,style:{height:0,border:0}},null)])]),i.tbody?.(re.value),i.tfoot?.(re.value)])]),bottom:()=>i.bottom?.(re.value)})})),{calculateVisibleItems:Y,scrollToIndex:K}}}),nc=(0,c.U)({itemsLength:{type:[Number,String],required:!0},...Ul(),...Xu(),...gu()},"VDataTableServer"),rc=(0,k.ev)()({name:"VDataTableServer",props:nc(),emits:{"update:modelValue":e=>!0,"update:page":e=>!0,"update:itemsPerPage":e=>!0,"update:sortBy":e=>!0,"update:options":e=>!0,"update:expanded":e=>!0,"update:groupBy":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const{groupBy:a}=Ol(e),{initialSortOrder:l,sortBy:u,multiSort:c,mustSort:d}=nu(e),{page:h,itemsPerPage:p}=jl(e),{disableSort:f}=(0,o.BK)(e),m=(0,r.Fl)((()=>parseInt(e.itemsLength,10))),{columns:v,headers:g}=Lu(e,{groupBy:a,showSelect:(0,o.Vh)((()=>e.showSelect)),showExpand:(0,o.Vh)((()=>e.showExpand))}),{items:y}=Ku(e,v),{toggleSort:_}=iu({initialSortOrder:l,sortBy:u,multiSort:c,mustSort:d,page:h}),{opened:b,isGroupOpen:T,toggleGroup:w,extractRows:S}=Nl({groupBy:a,sortBy:u,disableSort:f}),{pageCount:k,setItemsPerPage:E}=Wl({page:h,itemsPerPage:p,itemsLength:m}),{flatItems:I}=Ml(y,a,b,(()=>!!i["group-summary"])),{isSelected:x,select:A,selectAll:P,toggleSelect:$,someSelected:O,allSelected:N}=Zl(e,{allItems:y,currentPage:y}),{isExpanded:L,toggleExpand:D}=xl(e),R=(0,r.Fl)((()=>S(y.value)));Vl({page:h,itemsPerPage:p,sortBy:u,groupBy:a,search:(0,o.Vh)((()=>e.search))}),(0,r.JJ)("v-data-table",{toggleSort:_,sortBy:u}),(0,oe.AF)({VDataTableRows:{hideNoData:(0,o.Vh)((()=>e.hideNoData)),noDataText:(0,o.Vh)((()=>e.noDataText)),loading:(0,o.Vh)((()=>e.loading)),loadingText:(0,o.Vh)((()=>e.loadingText))}});const F=(0,r.Fl)((()=>({page:h.value,itemsPerPage:p.value,sortBy:u.value,pageCount:k.value,toggleSort:_,setItemsPerPage:E,someSelected:O.value,allSelected:N.value,isSelected:x,select:A,selectAll:P,toggleSelect:$,isExpanded:L,toggleExpand:D,isGroupOpen:T,toggleGroup:w,items:R.value.map((e=>e.raw)),internalItems:R.value,groupedItems:I.value,columns:v.value,headers:g.value})));(0,C.L)((()=>{const t=yu.filterProps(e),a=Fu.filterProps((0,s.CE)(e,["multiSort"])),o=Wu.filterProps(e),l=qu.filterProps(e);return(0,r.Wm)(qu,(0,r.dG)({class:["v-data-table",{"v-data-table--loading":e.loading},e.class],style:e.style},l,{fixedHeader:e.fixedHeader||e.sticky}),{top:()=>i.top?.(F.value),default:()=>i.default?i.default(F.value):(0,r._)(r.HY,null,[i.colgroup?.(F.value),!e.hideDefaultHeader&&(0,r._)("thead",{key:"thead",class:"v-data-table__thead",role:"rowgroup"},[(0,r.Wm)(Fu,(0,r.dG)(a,{multiSort:!!e.multiSort}),i)]),i.thead?.(F.value),!e.hideDefaultBody&&(0,r._)("tbody",{class:"v-data-table__tbody",role:"rowgroup"},[i["body.prepend"]?.(F.value),i.body?i.body(F.value):(0,r.Wm)(Wu,(0,r.dG)(n,o,{items:I.value}),i),i["body.append"]?.(F.value)]),i.tbody?.(F.value),i.tfoot?.(F.value)]),bottom:()=>i.bottom?i.bottom(F.value):!e.hideDefaultFooter&&(0,r._)(r.HY,null,[(0,r.Wm)(_n,null,null),(0,r.Wm)(yu,t,{prepend:i["footer.prepend"]})])})}))}}),ic=Nt("v-spacer","div","VSpacer"),ac=(0,c.U)({active:{type:[String,Array],default:void 0},controlHeight:[Number,String],controlVariant:{type:String,default:"docked"},noMonthPicker:Boolean,disabled:{type:[Boolean,String,Array],default:null},nextIcon:{type:st.lE,default:"$next"},prevIcon:{type:st.lE,default:"$prev"},modeIcon:{type:st.lE,default:"$subgroup"},text:String,monthText:String,yearText:String,viewMode:{type:String,default:"month"}}
3336,"VDatePickerControls"),oc=(0,k.ev)()({name:"VDatePickerControls",props:ac(),emits:{"click:year":()=>!0,"click:month":()=>!0,"click:prev":()=>!0,"click:next":()=>!0,"click:prev-year":()=>!0,"click:next-year":()=>!0},setup(e,t){let{emit:n,slots:a}=t;const{t:o}=(0,w.bU)(),l=(0,r.Fl)((()=>Array.isArray(e.disabled)?e.disabled.includes("text"):!!e.disabled)),u=(0,r.Fl)((()=>Array.isArray(e.disabled)?e.disabled.includes("mode"):!!e.disabled)),c=(0,r.Fl)((()=>Array.isArray(e.disabled)?e.disabled.includes("prev-month"):!!e.disabled)),d=(0,r.Fl)((()=>Array.isArray(e.disabled)?e.disabled.includes("next-month"):!!e.disabled)),h=(0,r.Fl)((()=>Array.isArray(e.disabled)?e.disabled.includes("prev-year"):!!e.disabled)),p=(0,r.Fl)((()=>Array.isArray(e.disabled)?e.disabled.includes("next-year"):!!e.disabled));function f(){n("click:prev")}function m(){n("click:next")}function v(){n("click:prev-year")}function g(){n("click:next-year")}function y(){n("click:year")}function _(){n("click:month")}return(0,C.L)((()=>{const t={VBtn:{density:"comfortable",variant:"text"}},n=(0,r.Wm)(At,{"data-testid":"prev-month",disabled:c.value,icon:e.prevIcon,"aria-label":o("$vuetify.datePicker.ariaLabel.previousMonth"),onClick:f},null),b=(0,r.Wm)(At,{"data-testid":"next-month",disabled:d.value,icon:e.nextIcon,"aria-label":o("$vuetify.datePicker.ariaLabel.nextMonth"),onClick:m},null),T=(0,r.Wm)(At,{"data-testid":"prev-year",disabled:h.value,icon:e.prevIcon,"aria-label":o("$vuetify.datePicker.ariaLabel.previousYear"),onClick:v},null),w=(0,r.Wm)(At,{"data-testid":"next-year",disabled:p.value,icon:e.nextIcon,"aria-label":o("$vuetify.datePicker.ariaLabel.nextYear"),onClick:g},null),S=(0,r.Wm)(At,{class:"v-date-picker-controls__only-month-btn","data-testid":"month-btn",density:"default",disabled:l.value,text:e.monthText,appendIcon:e.modeIcon,rounded:!0,"aria-label":o("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:_},null),k=(0,r.Wm)(At,{class:"v-date-picker-controls__only-year-btn","data-testid":"year-btn",density:"default",disabled:u.value,text:e.yearText,appendIcon:e.modeIcon,rounded:!0,"aria-label":o("$vuetify.datePicker.ariaLabel.selectYear"),onClick:y},null),C=(0,r.Wm)(At,{class:"v-date-picker-controls__year-btn","data-testid":"year-btn",density:"default",disabled:u.value,text:e.text,appendIcon:e.modeIcon,rounded:!0,"aria-label":o("$vuetify.datePicker.ariaLabel.selectYear"),onClick:y},null),E=(0,r._)(r.HY,null,[(0,r.Wm)(At,{class:"v-date-picker-controls__month-btn","data-testid":"month-btn",height:"36",disabled:l.value,text:e.text,rounded:!0,"aria-label":o("$vuetify.datePicker.ariaLabel.selectMonth"),onClick:_},null),(0,r.Wm)(At,{class:"v-date-picker-controls__mode-btn","data-testid":"year-btn",disabled:u.value,icon:e.modeIcon,"aria-label":o("$vuetify.datePicker.ariaLabel.selectYear"),onClick:y}
3336,null)]),I={viewMode:e.viewMode,disabled:Array.isArray(e.disabled)?e.disabled:[],monthYearText:e.text??"",monthText:e.monthText??"",yearText:e.yearText??"",openMonths:_,openYears:y,prevMonth:f,nextMonth:m,prevYear:v,nextYear:g},x=(0,r._)(r.HY,null,[e.noMonthPicker?C:E,(0,r.Wm)(ic,null,null),(0,r._)("div",{class:"v-date-picker-controls__month"},[n,b])]),A=(0,r._)(r.HY,null,[(0,r._)("div",{class:"v-date-picker-controls__month"},[n,S,b]),(0,r.Wm)(ic,null,null),(0,r._)("div",{class:"v-date-picker-controls__year"},[T,k,w])]);return(0,r.Wm)(le,{defaults:t},{default:()=>[(0,r._)("div",{class:(0,i.C_)(["v-date-picker-controls",`v-date-picker-controls--variant-${e.controlVariant}`]),style:{"--v-date-picker-controls-height":(0,s.kb)(e.controlHeight)}},[a.default?.(I)??(0,r._)(r.HY,null,["modal"===e.controlVariant&&x,"docked"===e.controlVariant&&A])])]})})),{}}}),sc=(0,c.U)({appendIcon:st.lE,color:String,header:String,transition:String,onClick:(0,s.as)()},"VDatePickerHeader"),lc=(0,k.ev)()({name:"VDatePickerHeader",props:sc(),emits:{click:()=>!0,"click:append":()=>!0},setup(e,t){let{emit:n,slots:a}=t;const{backgroundColorClasses:o,backgroundColorStyles:s}=(0,pe.Y5)((()=>e.color));function l(){n("click")}function u(){n("click:append")}return(0,C.L)((()=>{const t=!(!a.default&&!e.header),n=!(!a.append&&!e.appendIcon);return(0,r._)("div",{class:(0,i.C_)(["v-date-picker-header",{"v-date-picker-header--clickable":!!e.onClick},o.value]),style:(0,i.j5)(s.value),onClick:l},[a.prepend&&(0,r._)("div",{key:"prepend",class:"v-date-picker-header__prepend"},[a.prepend()]),t&&(0,r.Wm)(ve.J,{key:"content",name:e.transition},{default:()=>[(0,r._)("div",{key:e.header,class:"v-date-picker-header__content"},[a.default?.()??e.header])]}),n&&(0,r._)("div",{class:"v-date-picker-header__append"},[a.append?(0,r.Wm)(le,{key:"append-defaults",disabled:!e.appendIcon,defaults:{VBtn:{icon:e.appendIcon,variant:"text"}}},{default:()=>[a.append?.()]}):(0,r.Wm)(At,{key:"append-btn",icon:e.appendIcon,variant:"text",onClick:u},null)])])})),{}}}),uc=(0,c.U)({allowedDates:[Array,Function],disabled:{type:Boolean,default:null},displayValue:null,modelValue:Array,month:[Number,String],max:null,min:null,showAdjacentMonths:Boolean,year:[Number,String],weekdays:{type:Array,default:()=>[0,1,2,3,4,5,6]},weeksInMonth:{type:String,default:"dynamic"},firstDayOfWeek:{type:[Number,String],default:void 0},firstDayOfYear:{type:[Number,String],default:void 0},weekdayFormat:String},"calendar");function cc(e){const t=(0,Ya.Yc)(),n=(0,$e.z)(e,"modelValue",[],(e=>(0,s.FT)(e).map((e=>t.date(e))))),i=(0,r.Fl)((()=>e.displayValue?t.date(e.displayValue):n.value.length>0?t.date(n.value[0]):e.min?t.date(e.min):Array.isArray(e.allowedDates)?t.date(e.allowedDates[0]):t.date())),a=(0,$e.z)(e,"year",void 0,(e=>{const n=null!=e?Number(e):t.getYear(i.value);return t.startOfYear(t.setYear(t.date(),n))}),(e=>t.getYear(e))),o=(0,$e.z)(e,"month",void 0,(e=>{const n=null!=e?Number(e):t.getMonth(i.value),r=t.setYear(t.startOfMonth(t.date()),t.getYear(a.value));return t.setMonth(r,n)}),(e=>t.getMonth(e))),l=(0,r.Fl)((()=>{const n=t.toJsDate(t.startOfWeek(t.date(),e.firstDayOfWeek)).getDay();return t.getWeekdays(e.firstDayOfWeek,e.weekdayFormat).filter(((t,r)=>e.weekdays.includes((r+n)%7)))})),u=(0,r.Fl)((()=>{const n=t.getWeekArray(o.value,e.firstDayOfWeek),r=n.flat(),i=42;if("static"===e.weeksInMonth&&r.length<i){const e=r[r.length-1];let a=[];for(let o=1;o<=i-r.length;o++)a.push(t.addDays(e,o)),o%7===0&&(n.push(a),a=[])}return n}));function c(r,i){return r.filter((n=>e.weekdays.includes(t.toJsDate(n).getDay()))).map(((r,a)=>{const s=t.toISO(r),l=!t.isSameMonth(r,o.value),u=t.isSameDay(r,t.startOfMonth(o.value)),c=t.isSameDay(r,t.endOfMonth(o.value)),d=t.isSameDay(r,o.value),h=e.weekdays.length;return{date:r,formatted:t.format(r,"keyboardDate"),isAdjacent:l,isDisabled:v(r),isEnd:c,isHidden:l&&!e.showAdjacentMonths,isSame:d,isSelected:n.value.some((e=>t.isSameDay(r,e))),isStart:u,isToday:t.isSameDay(r,i),isWeekEnd:a%h===h-1,isWeekStart:a%h===0,isoDate:s,localized:t.format(r,"dayOfMonth"),month:t.getMonth(r),year:t.getYear(r)}}))}const d=(0,r.Fl)((()=>{const n=t.startOfWeek(i.value,e.firstDayOfWeek),r=[];for(let e=0;e<=6;e++)r.push(t.addDays(n,e));const a=t.date();return c(r,a)})),h=(0,r.Fl)((()=>{const e=u.value.flat(),n=t.date();return c(e,n)})),p=(0,r.Fl)((()=>u.value.map((n=>n.length?t.getWeek(n[0],e.firstDayOfWeek,e.firstDayOfYear):null)))),{minDate:f,maxDate:m}=dc(e);function v(n){if(e.disabled)return!0;const r=t.date(n);return!(!f.value||!t.isBefore(t.endOfDay(r),f.value))||(!(!m.value||!t.isAfter(r,m.value))||(Array.isArray(e.allowedDates)&&e.allowedDates.length>0?!e.allowedDates.some((e=>t.isSameDay(t.date(e),r))):"function"===typeof e.allowedDates&&!e.allowedDates(r)))}return{displayValue:i,daysInMonth:h,daysInWeek:d,genDays:c,model:n,weeksInMonth:u,weekdayLabels:l,weekNumbers:p}}function dc(e){const t=(0,Ya.Yc)(),n=(0,r.Fl)((()=>
3336{if(!e.min)return null;const n=t.date(e.min);return t.isValid(n)?n:null})),i=(0,r.Fl)((()=>{if(!e.max)return null;const n=t.date(e.max);return t.isValid(n)?n:null}));function a(e){return n.value&&t.isBefore(e,n.value)?n.value:i.value&&t.isAfter(e,i.value)?i.value:e}function o(e){return(!n.value||t.isAfter(e,n.value))&&(!i.value||t.isBefore(e,i.value))}return{minDate:n,maxDate:i,clampDate:a,isInAllowedRange:o}}const hc=(0,c.U)({color:String,hideWeekdays:Boolean,multiple:[Boolean,Number,String],showWeek:Boolean,readonly:Boolean,transition:{type:String,default:"picker-transition"},reverseTransition:{type:String,default:"picker-reverse-transition"},events:{type:[Array,Function,Object],default:()=>null},eventColor:{type:[Array,Function,Object,String],default:()=>null},...(0,s.CE)(uc(),["displayValue"])},"VDatePickerMonth"),pc=(0,k.ev)()({name:"VDatePickerMonth",props:hc(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const l=(0,o.iH)(),{t:u}=(0,w.bU)(),{daysInMonth:c,model:d,weekNumbers:h,weekdayLabels:p}=cc(e),f=(0,Ya.Yc)(),m=(0,o.XI)(),v=(0,o.XI)(),g=(0,o.XI)(!1),y=(0,o.Vh)((()=>g.value?e.reverseTransition:e.transition));"range"===e.multiple&&d.value.length>0&&(m.value=d.value[0],d.value.length>1&&(v.value=d.value[d.value.length-1]));const _=(0,r.Fl)((()=>{const t=["number","string"].includes(typeof e.multiple)?Number(e.multiple):1/0;return d.value.length>=t}));function b(e){const t=f.startOfDay(e);if(0===d.value.length?m.value=void 0:1===d.value.length&&(m.value=d.value[0],v.value=void 0),m.value)if(v.value)m.value=e,v.value=void 0,d.value=[m.value];else{if(f.isSameDay(t,m.value))return m.value=void 0,void(d.value=[]);f.isBefore(t,m.value)?(v.value=f.endOfDay(m.value),m.value=t):v.value=f.endOfDay(t),d.value=(0,Ya.$m)(f,m.value,v.value)}else m.value=t,d.value=[m.value]}function T(e){const t=f.format(e.date,"fullDateWithWeekday"),n=e.isToday?"currentDate":"selectDate";return u(`$vuetify.datePicker.ariaLabel.${n}`,t)}function S(e){const t=d.value.findIndex((t=>f.isSameDay(t,e)));if(-1===t)d.value=[...d.value,e];else{const e=[...d.value];e.splice(t,1),d.value=e}}function k(t){"range"===e.multiple?b(t):e.multiple?S(t):d.value=[t]}function E(t){const{events:n,eventColor:r}=e;let i,a=[];return i=Array.isArray(n)?n.includes(t):n instanceof Function?n(t)||!1:n&&n[t]||!1,i?(!0!==i?a=(0,s.FT)(i):"string"===typeof r?a=[r]:"function"===typeof r?a=(0,s.FT)(r(t)):Array.isArray(r)?a=r:"object"===typeof r&&null!==r&&(a=(0,s.FT)(r[t])),a.length?a.filter(Boolean).map((e=>"string"===typeof e?e:"surface-variant")):["surface-variant"]):[]}function I(e){const t=E(e);return t.length?(0,r._)("div",{class:"v-date-picker-month__events"},[t.map((e=>
3336(0,r.Wm)(Si,{dot:!0,color:e},null)))]):null}(0,r.YP)(c,((e,t)=>{t&&(g.value=f.isBefore(e[0].date,t[0].date))})),(0,C.L)((()=>(0,r._)("div",{class:"v-date-picker-month",style:{"--v-date-picker-days-in-week":e.weekdays.length}},[e.showWeek&&(0,r._)("div",{key:"weeks",class:"v-date-picker-month__weeks"},[!e.hideWeekdays&&(0,r._)("div",{key:"hide-week-days",class:"v-date-picker-month__day"},[(0,r.Uk)(" ")]),h.value.map((e=>(0,r._)("div",{class:(0,i.C_)(["v-date-picker-month__day","v-date-picker-month__day--adjacent"])},[e])))]),(0,r.Wm)(ve.J,{name:y.value},{default:()=>[(0,r._)("div",{ref:l,key:c.value[0].date?.toString(),class:"v-date-picker-month__days"},[!e.hideWeekdays&&p.value.map((e=>(0,r._)("div",{class:(0,i.C_)(["v-date-picker-month__day","v-date-picker-month__weekday"])},[e]))),c.value.map(((t,n)=>{const o={props:{class:"v-date-picker-month__day-btn",color:t.isSelected||t.isToday?e.color:void 0,disabled:t.isDisabled,readonly:e.readonly,icon:!0,ripple:!1,variant:t.isSelected?"flat":t.isToday?"outlined":"text","aria-label":T(t),"aria-current":t.isToday?"date":void 0,onClick:()=>k(t.date)},item:t,i:n};return _.value&&!t.isSelected&&(t.isDisabled=!0),(0,r._)("div",{class:(0,i.C_)(["v-date-picker-month__day",{"v-date-picker-month__day--adjacent":t.isAdjacent,"v-date-picker-month__day--hide-adjacent":t.isHidden,"v-date-picker-month__day--selected":t.isSelected,"v-date-picker-month__day--week-end":t.isWeekEnd,"v-date-picker-month__day--week-start":t.isWeekStart}]),"data-v-date":t.isDisabled?void 0:t.isoDate},[(e.showAdjacentMonths||!t.isAdjacent)&&(a.day?.(o)??(0,r.Wm)(At,o.props,{default:()=>[t.localized,I(t.isoDate)]}))])}))])]})])))}}),fc=(0,c.U)({color:String,height:[String,Number],min:null,max:null,modelValue:Number,year:Number,allowedMonths:[Array,Function]},"VDatePickerMonths"),mc=(0,k.ev)()({name:"VDatePickerMonths",props:fc(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const a=(0,Ya.Yc)(),o=(0,$e.z)(e,"modelValue"),l=(0,r.Fl)((()=>{let t=a.startOfYear(a.date());return e.year&&(t=a.setYear(t,e.year)),(0,s.MT)(12).map((n=>{const r=a.format(t,"monthShort"),i=a.format(t,"month"),o=!!(!u(n)||e.min&&a.isAfter(a.startOfMonth(a.date(e.min)),t)||e.max&&a.isAfter(t,a.startOfMonth(a.date(e.max))));return t=a.getNextMonth(t),{isDisabled:o,text:r,label:i,value:n}}))}));function u(t){return Array.isArray(e.allowedMonths)&&e.allowedMonths.length?e.allowedMonths.includes(t):"function"!==typeof e.allowedMonths||e.allowedMonths(t)}return(0,r.m0)((()=>{o.value=o.value??a.getMonth(a.date())})),(0,C.L)((()=>(0,r._)("div",{class:"v-date-picker-months",style:{height:(0,s.kb)(e.height)}},[(0,r._)("div",{class:"v-date-picker-months__content"},[l.value.map(((t,a)=>{const s={active:o.value===a,ariaLabel:t.label,color:o.value===a?e.color:void 0,disabled:t.isDisabled,rounded:!0,text:t.text,variant:o.value===t.value?"flat":"text",onClick:()=>l(a)};function l(e){o.value!==e?o.value=e:n("update:modelValue",o.value)}return i.month?.({month:t,i:a,props:s})??(0,r.Wm)(At,(0,r.dG)({key:"month"},s),null)}))])]))),{}}}),vc=(0,c.U)({color:String,height:[String,Number],min:null,max:null,modelValue:Number,allowedYears:[Array,Function]},"VDatePickerYears"),gc=(0,k.ev)()({name:"VDatePickerYears",props:vc(),directives:{vIntersect:ge.Z},emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const a=(0,Ya.Yc)(),l=(0,$e.z)(e,"modelValue"),u=(0,o.XI)(!1),c=(0,r.Fl)((()=>{const t=a.getYear(a.date());let n=t-100,r=t+52;e.min&&(n=a.getYear(a.date(e.min))),e.max&&(r=a.getYear(a.date(e.max)));let i=a.startOfYear(a.date());return i=a.setYear(i,n),(0,s.MT)(r-n+1,n).map((e=>{const t=a.format(i,"year");return i=a.setYear(i,a.getYear(i)+1),{text:t,value:e,isDisabled:!f(e)}}))}));(0,r.m0)((()=>{l.value=l.value??a.getYear(a.date())}));const d=(0,s.CV)(),h=(0,s.CV)();function p(){const e=d.el,t=h.el;if(!e||!t)return;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top-e.clientHeight/2+r.height/2}function f(t){return Array.isArray(e.allowedYears)&&e.allowedYears.length?e.allowedYears.includes(t):"function"!==typeof e.allowedYears||e.allowedYears(t)}return(0,C.L)((()=>(0,r.wy)((0,r._)("div",{class:"v-date-picker-years",ref:d,style:{height:(0,s.kb)(e.height)}},[(0,r._)("div",{class:"v-date-picker-years__content",onFocus:()=>h.el?.focus(),onFocusin:()=>u.value=!0,onFocusout:()=>u.value=!1,tabindex:u.value?-1:0},[c.value.map(((t,a)=>{const o={ref:l.value===t.value?h:void 0,active:l.value===t.value,color:l.value===t.value?e.color:void 0,rounded:!0,text:t.text,disabled:t.isDisabled,variant:l.value===t.value?"flat":"text",onClick:()=>{l.value!==t.value?l.value=t.value:n("update:modelValue",l.value)}};return i.year?.({year:t,i:a,props:o})??(0,r.Wm)(At,(0,r.dG)({key:"month"},o),null)}))])]),[[ge.Z,{handler:p},null,{once:!0}]]))),{}}}),yc=(0,c.U)({header:{type:String,default:"$vuetify.datePicker.header"},headerColor:String,headerDateFormat:{type:String,default:"normalDateWithWeekday"},landscapeHeaderWidth:[Number,String],...(0,s.CE)(ac(),["active","monthText","yearText"]),...hc({weeksInMonth:"static"}),...(0,s.CE)(fc(),["modelValue"]),...(0,s.CE)(vc(),["modelValue"]),...yl({title:"$vuetify.datePicker.title"}),modelValue:null},"VDatePicker"),_c=(0,k.ev)()({name:"VDatePicker",props:yc(),emits:{"update:modelValue":e=>!0,"update:month":e=>!0,"update:year":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const a=(0,Ya.Yc)(),{t:l}=(0,w.bU)(),{rtlClasses:u}=(0,w.Vw)(),c=(0,$e.z)(e,"modelValue",void 0,(e=>(0,s.FT)(e).map((e=>
3336a.date(e)))),(t=>e.multiple?t:t[0])),d=(0,$e.z)(e,"viewMode"),{minDate:h,maxDate:p,clampDate:f}=dc(e),m=(0,r.Fl)((()=>{const e=a.date(),t=c.value?.[0]?a.date(c.value[0]):f(e);return t&&a.isValid(t)?t:e})),v=(0,o.Vh)((()=>e.headerColor??e.color)),g=(0,$e.z)(e,"month"),y=(0,r.Fl)({get:()=>Number(g.value??a.getMonth(a.startOfMonth(m.value))),set:e=>g.value=e}),_=(0,$e.z)(e,"year"),b=(0,r.Fl)({get:()=>Number(_.value??a.getYear(a.startOfYear(a.setMonth(m.value,y.value)))),set:e=>_.value=e}),T=(0,o.XI)(!1),S=(0,r.Fl)((()=>{if(e.multiple&&c.value.length>1)return l("$vuetify.datePicker.itemsSelected",c.value.length);const t=c.value[0]&&a.isValid(c.value[0])?a.format(a.date(c.value[0]),e.headerDateFormat):l(e.header);return e.landscape&&3===t.split(" ").length?t.replace(" ","\n"):t})),k=(0,o.Vh)((()=>{let e=a.date();return e=a.setDate(e,1),e=a.setMonth(e,y.value),e=a.setYear(e,b.value),e})),E=(0,o.Vh)((()=>a.format(k.value,"monthAndYear"))),I=(0,o.Vh)((()=>a.format(k.value,"monthShort"))),x=(0,o.Vh)((()=>a.format(k.value,"year"))),A=(0,o.Vh)((()=>`date-picker-header${T.value?"-reverse":""}-transition`)),P=(0,r.Fl)((()=>{if(e.disabled)return!0;const t=[];if("month"!==d.value)t.push("prev-month","next-month","prev-year","next-year");else{let e=a.date();if(e=a.startOfMonth(e),e=a.setMonth(e,y.value),e=a.setYear(e,b.value),h.value){const n=a.addDays(a.startOfMonth(e),-1),r=a.addDays(a.startOfYear(e),-1);a.isAfter(h.value,n)&&t.push("prev-month"),a.isAfter(h.value,r)&&t.push("prev-year")}if(p.value){const n=a.addDays(a.endOfMonth(e),1),r=a.addDays(a.endOfYear(e),1);a.isAfter(n,p.value)&&t.push("next-month"),a.isAfter(r,p.value)&&t.push("next-year")}}return t})),$=(0,r.Fl)((()=>e.allowedYears||L)),O=(0,r.Fl)((()=>e.allowedMonths||D));function N(t,n){const r=e.allowedDates;if("function"!==typeof r)return!0;const i=1+(0,Ya.M2)(a,t,n);for(let e=0;e<i;e++)if(r(a.addDays(t,e)))return!0;return!1}function L(t){if("function"===typeof e.allowedDates){const e=a.parseISO(`${t}-01-01`);return N(e,a.endOfYear(e))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const n of e.allowedDates)if(a.getYear(a.date(n))===t)return!0;return!1}return!0}function D(t){if("function"===typeof e.allowedDates){const e=String(t+1).padStart(2,"0"),n=a.parseISO(`${b.value}-${e}-01`);return N(n,a.endOfMonth(n))}if(Array.isArray(e.allowedDates)&&e.allowedDates.length){for(const n of e.allowedDates)if(a.getYear(a.date(n))===b.value&&a.getMonth(a.date(n))===t)return!0;return!1}return!0}function R(){y.value<11?y.value++:(b.value++,y.value=0,H()),W()}function F(){y.value>0?y.value--:(b.value--,y.value=11,H()),W()}function M(){if(b.value++,p.value){const e=String(y.value+1).padStart(2,"0"),t=a.parseISO(`${b.value}-${e}-01`);a.isAfter(t,p.value)&&(y.value=a.getMonth(p.value))}H()}function V(){if(b.value--,h.value){const e=String(y.value+1).padStart(2,"0"),t=a.endOfMonth(a.parseISO(`${b.value}-${e}-01`));a.isAfter(h.value,t)&&(y.value=a.getMonth(h.value))}H()}function U(){d.value="month"}function B(){d.value="months"===d.value?"month":"months"}function j(){d.value="year"===d.value?"month":"year"}function W(){"months"===d.value&&B()}function H(){"year"===d.value&&j()}return(0,r.YP)(c,((e,t)=>{const n=(0,s.FT)(t),r=(0,s.FT)(e);if(!r.length)return;const i=a.date(n[n.length-1]),o=a.date(r[r.length-1]);if(a.isSameDay(i,o))return;const l=a.getMonth(o),u=a.getYear(o);l!==y.value&&(y.value=l,W()),u!==b.value&&(b.value=u,H()),T.value=a.isBefore(i,o)})),(0,C.L)((()=>{const t=_l.filterProps(e),n=(0,s.CE)(oc.filterProps(e),["viewMode"]),a=lc.filterProps(e),o=pc.filterProps(e),f=(0,s.CE)(mc.filterProps(e),["modelValue"]),m=(0,s.CE)(gc.filterProps(e),["modelValue"]),g={color:v.value,header:S.value,transition:A.value};return(0,r.Wm)(_l,(0,r.dG)(t,{color:v.value,class:["v-date-picker",`v-date-picker--${d.value}`,{"v-date-picker--show-week":e.showWeek},u.value,e.class],style:[{"--v-date-picker-landscape-header-width":(0,s.kb)(e.landscapeHeaderWidth)},e.style]}),{title:()=>i.title?.()??(0,r._)("div",{class:"v-date-picker__title"},[l(e.title)]),header:()=>i.header?(0,r.Wm)(le,{defaults:{VDatePickerHeader:{...g}}},{default:()=>[i.header?.(g)]}):(0,r.Wm)(lc,(0,r.dG)({key:"header"},a,g,{onClick:"month"!==d.value?U:void 0}),{prepend:i.prepend,append:i.append}),default:()=>(0,r._)(r.HY,null,[(0,r.Wm)(oc,(0,r.dG)(n,{disabled:P.value,viewMode:d.value,text:E.value,monthText:I.value,yearText:x.value,"onClick:next":R,"onClick:prev":F,"onClick:nextYear":M,"onClick:prevYear":V,"onClick:month":B,"onClick:year":j}),{default:i.controls}),(0,r.Wm)(z,{hideOnLeave:!0},{default:()=>["months"===d.value?(0,r.Wm)(mc,(0,r.dG)({key:"date-picker-months"},f,{modelValue:y.value,"onUpdate:modelValue":[e=>y.value=e,W],min:h.value,max:p.value,year:b.value,allowedMonths:O.value}),{month:i.month}):"year"===d.value?(0,r.Wm)(gc,(0,r.dG)({key:"date-picker-years"},m,{modelValue:b.value,"onUpdate:modelValue":[e=>b.value=e,H],min:h.value,max:p.value,allowedYears:$.value}),{year:i.year}):(0,r.Wm)(pc,(0,r.dG)({key:"date-picker-month"},o,{modelValue:c.value,"onUpdate:modelValue":e=>c.value=e,month:y.value,"onUpdate:month":[e=>y.value=e,W],year:b.value,"onUpdate:year":[e=>b.value=e,H],min:h.value,max:p.value}),{day:i.day})]})]),actions:i.actions})})),{}}}),bc=(0,c.U)({actionText:String,bgColor:String,color:String,icon:st.lE,image:String,justify:{type:String,default:"center"},headline:String,title:String,text:String,textWidth:{type:[Number,String],default:500},href:String,to:String,...(0,a.l)(),...(0,ue.x)(),...je({size:void 0}),...(0,S.x$)()},"VEmptyState"),Tc=(0,k.ev)()({name:"VEmptyState",props:bc(),emits:{"click:action":e=>!0},setup(e,t){let{emit:n,slots:a}=t;const{themeClasses:o}=(0,S.ER)(e),{backgroundColorClasses:l,backgroundColorStyles:u}=(0,pe.Y5)((()=>e.bgColor)),{dimensionStyles:c}
3336=(0,ue.$)(e),{displayClasses:d}=(0,Qt.AW)();function h(e){n("click:action",e)}return(0,C.L)((()=>{const t=!(!a.actions&&!e.actionText),n=!(!a.headline&&!e.headline),p=!(!a.title&&!e.title),f=!(!a.text&&!e.text),m=!!(a.media||e.image||e.icon),v=e.size||(e.image?200:96);return(0,r._)("div",{class:(0,i.C_)(["v-empty-state",{[`v-empty-state--${e.justify}`]:!0},o.value,l.value,d.value,e.class]),style:(0,i.j5)([u.value,c.value,e.style])},[m&&(0,r._)("div",{key:"media",class:"v-empty-state__media"},[a.media?(0,r.Wm)(le,{key:"media-defaults",defaults:{VImg:{src:e.image,height:v},VIcon:{size:v,icon:e.icon}}},{default:()=>[a.media()]}):(0,r._)(r.HY,null,[e.image?(0,r.Wm)(_e,{key:"image",src:e.image,height:v},null):e.icon?(0,r.Wm)(ut,{key:"icon",color:e.color,size:v,icon:e.icon},null):void 0])]),n&&(0,r._)("div",{key:"headline",class:"v-empty-state__headline"},[a.headline?.()??e.headline]),p&&(0,r._)("div",{key:"title",class:"v-empty-state__title"},[a.title?.()??e.title]),f&&(0,r._)("div",{key:"text",class:"v-empty-state__text",style:{maxWidth:(0,s.kb)(e.textWidth)}},[a.text?.()??e.text]),a.default&&(0,r._)("div",{key:"content",class:"v-empty-state__content"},[a.default()]),t&&(0,r._)("div",{key:"actions",class:"v-empty-state__actions"},[(0,r.Wm)(le,{defaults:{VBtn:{class:"v-empty-state__action-btn",color:e.color??"surface-variant",href:e.href,text:e.actionText,to:e.to}}},{default:()=>[a.actions?.({props:{onClick:h}})??(0,r.Wm)(At,{onClick:h},null)]})])])})),{}}}),wc=Symbol.for("vuetify:v-expansion-panel"),Sc=(0,c.U)({...(0,a.l)(),...(0,us.H)()},"VExpansionPanelText"),kc=(0,k.ev)()({name:"VExpansionPanelText",props:Sc(),setup(e,t){let{slots:n}=t;const a=(0,r.f3)(wc);if(!a)throw new Error("[Vuetify] v-expansion-panel-text needs to be placed inside v-expansion-panel");const{hasContent:o,onAfterLeave:s}=(0,us.l)(e,a.isSelected);return(0,C.L)((()=>(0,r.Wm)(re,{onAfterLeave:s},{default:()=>[(0,r.wy)((0,r._)("div",{class:(0,i.C_)(["v-expansion-panel-text",e.class]),style:(0,i.j5)(e.style)},[n.default&&o.value&&(0,r._)("div",{class:"v-expansion-panel-text__wrapper"},[n.default?.()])]),[[$.F8,a.isSelected.value]])]}))),{}}}),Cc=(0,c.U)({color:String,expandIcon:{type:st.lE,default:"$expand"},collapseIcon:{type:st.lE,default:"$collapse"},hideActions:Boolean,focusable:Boolean,static:Boolean,ripple:{type:[Boolean,Object],default:!1},readonly:Boolean,...(0,a.l)(),...(0,ue.x)()},"VExpansionPanelTitle"),Ec=(0,k.ev)()({name:"VExpansionPanelTitle",directives:{vRipple:It.Z},props:Cc(),setup(e,t){let{slots:n}=t;const a=(0,r.f3)(wc);if(!a)throw new Error("[Vuetify] v-expansion-panel-title needs to be placed inside v-expansion-panel");const{backgroundColorClasses:s,backgroundColorStyles:l}=(0,pe.Y5)((()=>e.color)),{dimensionStyles:u}=(0,ue.$)(e),c=(0,r.Fl)((()=>({collapseIcon:e.collapseIcon,disabled:a.disabled.value,expanded:a.isSelected.value,expandIcon:e.expandIcon,readonly:e.readonly}))),d=(0,o.Vh)((()=>a.isSelected.value?e.collapseIcon:e.expandIcon));return(0,C.L)((()=>(0,r.wy)((0,r._)("button",{class:(0,i.C_)(["v-expansion-panel-title",{"v-expansion-panel-title--active":a.isSelected.value,"v-expansion-panel-title--focusable":e.focusable,"v-expansion-panel-title--static":e.static},s.value,e.class]),style:(0,i.j5)([l.value,u.value,e.style]),type:"button",tabindex:a.disabled.value?-1:void 0,disabled:a.disabled.value,"aria-expanded":a.isSelected.value,onClick:e.readonly?void 0:a.toggle},[(0,r._)("span",{class:"v-expansion-panel-title__overlay"},null),n.default?.(c.value),!e.hideActions&&(0,r.Wm)(le,{defaults:{VIcon:{icon:d.value}}},{default:()=>[(0,r._)("span",{class:"v-expansion-panel-title__icon"},[n.actions?.(c.value)??(0,r.Wm)(ut,null,null)])]})]),[[It.Z,e.ripple]]))),{}}}),Ic=(0,c.U)({title:String,text:String,bgColor:String,...we(),...Ze(),...fe(),...x(),...Cc(),...Sc()},"VExpansionPanel"),xc=(0,k.ev)()({name:"VExpansionPanel",props:Ic(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=Qe(e,wc),{backgroundColorClasses:s,backgroundColorStyles:l}=(0,pe.Y5)((()=>e.bgColor)),{elevationClasses:u}
3336=Se(e),{roundedClasses:c}=me(e),d=(0,o.Vh)((()=>a?.disabled.value||e.disabled)),h=(0,r.Fl)((()=>a.group.items.value.reduce(((e,t,n)=>(a.group.selected.value.includes(t.id)&&e.push(n),e)),[]))),p=(0,r.Fl)((()=>{const e=a.group.items.value.findIndex((e=>e.id===a.id));return!a.isSelected.value&&h.value.some((t=>t-e===1))})),f=(0,r.Fl)((()=>{const e=a.group.items.value.findIndex((e=>e.id===a.id));return!a.isSelected.value&&h.value.some((t=>t-e===-1))}));return(0,r.JJ)(wc,a),(0,C.L)((()=>{const t=!(!n.text&&!e.text),o=!(!n.title&&!e.title),h=Ec.filterProps(e),m=kc.filterProps(e);return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-expansion-panel",{"v-expansion-panel--active":a.isSelected.value,"v-expansion-panel--before-active":p.value,"v-expansion-panel--after-active":f.value,"v-expansion-panel--disabled":d.value},c.value,s.value,e.class]),style:(0,i.j5)([l.value,e.style])},{default:()=>[(0,r._)("div",{class:(0,i.C_)(["v-expansion-panel__shadow",...u.value])},null),(0,r.Wm)(le,{defaults:{VExpansionPanelTitle:{...h},VExpansionPanelText:{...m}}},{default:()=>[o&&(0,r.Wm)(Ec,{key:"title"},{default:()=>[n.title?n.title():e.title]}),t&&(0,r.Wm)(kc,{key:"text"},{default:()=>[n.text?n.text():e.text]}),n.default?.()]})]})})),{groupItem:a}}}),Ac=["default","accordion","inset","popout"],Pc=(0,c.U)({flat:Boolean,...Je(),...(0,s.ei)(Ic(),["bgColor","collapseIcon","color","eager","elevation","expandIcon","focusable","hideActions","readonly","ripple","rounded","tile","static"]),...(0,S.x$)(),...(0,a.l)(),...x(),variant:{type:String,default:"default",validator:e=>Ac.includes(e)}},"VExpansionPanels"),$c=(0,k.ev)()({name:"VExpansionPanels",props:Pc(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{next:a,prev:s}=et(e,wc),{themeClasses:l}=(0,S.ER)(e),u=(0,o.Vh)((()=>e.variant&&`v-expansion-panels--variant-${e.variant}`));return(0,oe.AF)({VExpansionPanel:{bgColor:(0,o.Vh)((()=>e.bgColor)),collapseIcon:(0,o.Vh)((()=>e.collapseIcon)),color:(0,o.Vh)((()=>e.color)),eager:(0,o.Vh)((()=>e.eager)),elevation:(0,o.Vh)((()=>e.elevation)),expandIcon:(0,o.Vh)((()=>e.expandIcon)),focusable:(0,o.Vh)((()=>e.focusable)),hideActions:(0,o.Vh)((()=>e.hideActions)),readonly:(0,o.Vh)((()=>e.readonly)),ripple:(0,o.Vh)((()=>e.ripple)),rounded:(0,o.Vh)((()=>e.rounded)),static:(0,o.Vh)((()=>e.static))}}),(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-expansion-panels",{"v-expansion-panels--flat":e.flat,"v-expansion-panels--tile":e.tile},l.value,u.value,e.class]),style:(0,i.j5)(e.style)},{default:()=>[n.default?.({prev:s,next:a})]}))),{next:a,prev:s}}}),Oc=(0,c.U)({app:Boolean,appear:Boolean,extended:Boolean,layout:Boolean,offset:Boolean,modelValue:{type:Boolean,default:!0},...(0,s.CE)(xt({active:!0}),["location","spaced"]),...g(),...Ee(),...(0,ve.X)({transition:"fab-transition"})},"VFab"),Nc=(0,k.ev)()({name:"VFab",props:Oc(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const a=(0,$e.z)(e,"modelValue"),s=(0,o.XI)(56),l=(0,o.iH)(),{resizeRef:c}=u((e=>{e.length&&(s.value=e[0].target.clientHeight)})),d=(0,o.Vh)((()=>e.app||e.absolute)),h=(0,r.Fl)((()=>!!d.value&&(e.location?.split(" ").shift()??"bottom"))),p=(0,r.Fl)((()=>!!d.value&&(e.location?.split(" ")[1]??"end")));(0,De.U)((()=>e.app),(()=>{const t=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:h,layoutSize:(0,r.Fl)((()=>e.layout?s.value+24:0)),elementSize:(0,r.Fl)((()=>s.value+24)),active:(0,r.Fl)((()=>e.app&&a.value)),absolute:(0,o.Vh)((()=>e.absolute))});(0,r.m0)((()=>{l.value=t.layoutItemStyles.value}))}));const f=(0,o.iH)();return(0,C.L)((()=>{const t=At.filterProps(e);return(0,r._)("div",{ref:f,class:(0,i.C_)(["v-fab",{"v-fab--absolute":e.absolute,"v-fab--app":!!e.app,"v-fab--extended":e.extended,"v-fab--offset":e.offset,[`v-fab--${h.value}`]:d.value,[`v-fab--${p.value}`]:d.value},e.class]),style:(0,i.j5)([e.app?{...l.value}:{height:e.absolute?"100%":"inherit"},e.style])},[(0,r._)("div",{class:"v-fab__container"},[(0,r.Wm)(ve.J,{appear:e.appear,transition:e.transition},{default:()=>[(0,r.wy)((0,r.Wm)(At,(0,r.dG)({ref:c},t,{active:void 0,location:void 0}),n),[[$.F8,e.active]])]})])])})),{}}});function Lc(){function e(e){const t=[...e.dataTransfer?.items??[]].filter((e=>"file"===e.kind)).map((e=>
3336e.webkitGetAsEntry())).filter(Boolean);return t.length>0||[...e.dataTransfer?.files??[]].length>0}async function t(e){const t=[],n=[...e.dataTransfer?.items??[]].filter((e=>"file"===e.kind)).map((e=>e.webkitGetAsEntry())).filter(Boolean);if(n.length)for(const r of n){const e=await Dc(r,Rc(".",r));t.push(...e.map((e=>e.file)))}else t.push(...e.dataTransfer?.files??[]);return t}return{handleDrop:t,hasFilesOrFolders:e}}function Dc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise(((n,r)=>{if(e.isFile){const i=e;i.file((e=>n([{file:e,path:t}])),r)}else if(e.isDirectory){const r=e.createReader();r.readEntries((async e=>{const r=[];for(const n of e)r.push(...await Dc(n,Rc(t,n)));n(r)}))}}))}function Rc(e,t){return t.isDirectory?`${e}/${t.name}`:e}const Fc=(0,c.U)({filterByType:String},"file-accept");function Mc(e){const t=(0,r.Fl)((()=>e.filterByType?Vc(e.filterByType):null));function n(e){if(t.value){const n=e.filter(t.value);return{accepted:n,rejected:e.filter((e=>!n.includes(e)))}}return{accepted:e,rejected:[]}}return{filterAccepted:n}}function Vc(e){const t=e.split(",").map((e=>e.trim().toLowerCase())),n=t.filter((e=>e.startsWith("."))),r=t.filter((e=>e.endsWith("/*"))),i=t.filter((e=>!n.includes(e)&&!r.includes(e)));return e=>{const t=e.name.split(".").at(-1)?.toLowerCase()??"",a=e.type.split("/").at(0)?.toLowerCase()??"";return i.includes(e.type)||n.includes(`.${t}`)||r.includes(`${a}/*`)}}const Uc=(0,c.U)({chips:Boolean,counter:Boolean,counterSizeString:{type:String,default:"$vuetify.fileInput.counterSize"},counterString:{type:String,default:"$vuetify.fileInput.counter"},hideInput:Boolean,multiple:Boolean,showSize:{type:[Boolean,Number,String],default:!1,validator:e=>"boolean"===typeof e||[1e3,1024].includes(Number(e))},truncateLength:{type:[Number,String],default:22},...(0,s.CE)(Br({prependIcon:"$file"}),["direction"]),modelValue:{type:[Array,Object],default:e=>e.multiple?[]:null,validator:e=>(0,s.FT)(e).every((e=>null!=e&&"object"===typeof e))},...Fc(),...Ar({clearable:!0})},"VFileInput"),Bc=(0,k.ev)()({name:"VFileInput",inheritAttrs:!1,props:Uc(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,rejected:e=>!0},setup(e,t){let{attrs:n,emit:a,slots:l}=t;const{t:u}=(0,w.bU)(),{filterAccepted:c}=Mc(e),d=(0,$e.z)(e,"modelValue",e.modelValue,(e=>(0,s.FT)(e)),(t=>!e.multiple&&Array.isArray(t)?t[0]:t)),{isFocused:h,focus:p,blur:f}=Ir(e),m=(0,r.Fl)((()=>"boolean"!==typeof e.showSize?e.showSize:void 0)),v=(0,r.Fl)((()=>(d.value??[]).reduce(((e,t)=>{let{size:n=0}=t;return e+n}),0))),g=(0,r.Fl)((()=>(0,s.XE)(v.value,m.value))),y=(0,r.Fl)((()=>(d.value??[]).map((t=>{const{name:n="",size:r=0}=t,i=D(n);return e.showSize?`${i} (${(0,s.XE)(r,m.value)})`:i})))),_=(0,r.Fl)((()=>{const t=d.value?.length??0;return e.showSize?u(e.counterSizeString,t,g.value):u(e.counterString,t)})),b=(0,o.iH)(),T=(0,o.iH)(),S=(0,o.iH)(),k=(0,o.Vh)((()=>h.value||e.active)),E=(0,r.Fl)((()=>["plain","underlined"].includes(e.variant))),I=(0,o.XI)(!1),{handleDrop:x,hasFilesOrFolders:A}=Lc();function P(){S.value!==document.activeElement&&S.value?.focus(),h.value||p()}function $(e){S.value?.click()}function O(e){a("mousedown:control",e)}function N(e){S.value?.click(),a("click:control",e)}function L(t){t.stopPropagation(),P(),(0,r.Y3)((()=>{d.value=[],(0,s.dr)(e["onClick:clear"],t)}))}function D(t){if(t.length<Number(e.truncateLength))return t;const n=Math.floor((Number(e.truncateLength)-1)/2);return`${t.slice(0,n)}…${t.slice(t.length-n)}`}function R(e){e.preventDefault(),e.stopImmediatePropagation(),I.value=!0}function F(e){e.preventDefault(),I.value=!1}async function M(e){if(e.preventDefault(),e.stopImmediatePropagation(),I.value=!1,!S.value||!A(e))return;const t=await x(e);U(t)}function V(t){if(t.target&&!t.repack)if(e.filterByType)U([...t.target.files]);else{const e=t.target;d.value=[...e.files??[]]}}function U(e){const t=new DataTransfer,{accepted:n,rejected:r}=c(e);r.length&&a("rejected",r);for(const a of n)t.items.add(a);S.value.files=t.files,d.value=[...t.files];const i=new Event("change",{bubbles:!0});i.repack=!0,S.value.dispatchEvent(i)}return(0,r.YP)(d,(e=>{const t=!Array.isArray(e)||!e.length;t&&S.value&&(S.value.value="")}
3336)),(0,C.L)((()=>{const t=!(!l.counter&&!e.counter),a=!0!==e.hideDetails&&!!(l.details||t&&(!1===e.hideDetails||d.value?.length)),[o,u]=(0,s.An)(n),{modelValue:c,...p}=jr.filterProps(e),m={...Pr.filterProps(e),"onClick:clear":L},w=void 0!==n.webkitdirectory&&!1!==n.webkitdirectory,C=n.accept?String(n.accept):void 0,x=w?void 0:e.filterByType??C;return(0,r.Wm)(jr,(0,r.dG)({ref:b,modelValue:e.multiple?d.value:d.value[0],class:["v-file-input",{"v-file-input--chips":!!e.chips,"v-file-input--dragging":I.value,"v-file-input--hide":e.hideInput,"v-input--plain-underlined":E.value},e.class],style:e.style,"onClick:prepend":$},o,p,{centerAffix:!E.value,focused:h.value}),{...l,default:t=>{let{id:n,isDisabled:a,isDirty:o,isReadonly:s,isValid:c,hasDetails:p}=t;return(0,r.Wm)(Pr,(0,r.dG)({ref:T,prependIcon:e.prependIcon,onMousedown:O,onClick:N,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},m,{id:n.value,active:k.value||o.value,dirty:o.value||e.dirty,disabled:a.value,focused:h.value,details:p.value,error:!1===c.value,onDragover:R,onDrop:M}),{...l,default:t=>{let{props:{class:n,...o},controlRef:c}=t;return(0,r._)(r.HY,null,[(0,r._)("input",(0,r.dG)({ref:e=>S.value=c.value=e,type:"file",accept:x,readonly:s.value,disabled:a.value,multiple:e.multiple,name:e.name,onClick:e=>{e.stopPropagation(),s.value&&e.preventDefault(),P()},onChange:V,onDragleave:F,onFocus:P,onBlur:f},o,u),null),(0,r._)("div",{class:(0,i.C_)(n)},[!!d.value?.length&&!e.hideInput&&(l.selection?l.selection({fileNames:y.value,totalBytes:v.value,totalBytesReadable:g.value}):e.chips?y.value.map((e=>(0,r.Wm)(vn,{key:e,size:"small",text:e},null))):y.value.join(", "))])])}})},details:a?n=>(0,r._)(r.HY,null,[l.details?.(n),t&&(0,r._)(r.HY,null,[(0,r._)("span",null,null),(0,r.Wm)(Sr,{active:!!d.value?.length,value:_.value,disabled:e.disabled},l.counter)])]):void 0})})),(0,mr.F)({},b,T,S)}}),jc=(0,c.U)({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...be(),...(0,a.l)(),...we(),...g(),...fe(),...x({tag:"footer"}),...(0,S.x$)()},"VFooter"),Wc=(0,k.ev)()({name:"VFooter",props:jc(),setup(e,t){let{slots:n}=t;const a=(0,o.iH)(),{themeClasses:l}=(0,S.ER)(e),{backgroundColorClasses:c,backgroundColorStyles:d}=(0,pe.Y5)((()=>e.color)),{borderClasses:h}=Te(e),{elevationClasses:p}
3336=Se(e),{roundedClasses:f}=me(e),m=(0,o.XI)(32),{resizeRef:v}=u((e=>{e.length&&(m.value=e[0].target.clientHeight)})),g=(0,r.Fl)((()=>"auto"===e.height?m.value:parseInt(e.height,10)));return(0,De.U)((()=>e.app),(()=>{const t=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:(0,o.Vh)((()=>"bottom")),layoutSize:g,elementSize:(0,r.Fl)((()=>"auto"===e.height?void 0:g.value)),active:(0,o.Vh)((()=>e.app)),absolute:(0,o.Vh)((()=>e.absolute))});(0,r.m0)((()=>{a.value=t.layoutItemStyles.value}))})),(0,C.L)((()=>(0,r.Wm)(e.tag,{ref:v,class:(0,i.C_)(["v-footer",l.value,c.value,h.value,p.value,f.value,e.class]),style:(0,i.j5)([d.value,e.app?a.value:{height:(0,s.kb)(e.height)},e.style])},n))),{}}}),Hc=(0,c.U)({...(0,a.l)(),...Lr()},"VForm"),qc=(0,k.ev)()({name:"VForm",props:Hc(),emits:{"update:modelValue":e=>!0,submit:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const s=Dr(e),l=(0,o.iH)();function u(e){e.preventDefault(),s.reset()}function c(e){const t=e,n=s.validate();t.then=n.then.bind(n),t.catch=n.catch.bind(n),t.finally=n.finally.bind(n),a("submit",t),t.defaultPrevented||n.then((e=>{let{valid:t}=e;t&&l.value?.submit()})),t.preventDefault()}return(0,C.L)((()=>(0,r._)("form",{ref:l,class:(0,i.C_)(["v-form",e.class]),style:(0,i.j5)(e.style),novalidate:!0,onReset:u,onSubmit:c},[n.default?.(s)]))),(0,mr.F)(s,l)}}),Gc=(0,c.U)({fluid:{type:Boolean,default:!1},...(0,a.l)(),...(0,ue.x)(),...x()},"VContainer"),zc=(0,k.ev)()({name:"VContainer",props:Gc(),setup(e,t){let{slots:n}=t;const{rtlClasses:a}=(0,w.Vw)(),{dimensionStyles:o}=(0,ue.$)(e);return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-container",{"v-container--fluid":e.fluid},a.value,e.class]),style:(0,i.j5)([o.value,e.style])},n))),{}}}),Yc=(()=>Qt.AV.reduce(((e,t)=>(e[t]={type:[Boolean,String,Number],default:!1},e)),{}))(),Kc=(()=>Qt.AV.reduce(((e,t)=>{const n="offset"+(0,i.kC)(t);return e[n]={type:[String,Number],default:null},e}),{}))(),Xc=(()=>Qt.AV.reduce(((e,t)=>{const n="order"+(0,i.kC)(t);return e[n]={type:[String,Number],default:null},e}),{}))(),Jc={col:Object.keys(Yc),offset:Object.keys(Kc),order:Object.keys(Xc)};function Zc(e,t,n){let r=e;if(null!=n&&!1!==n){if(t){const n=t.replace(e,"");r+=`-${n}`}return"col"===e&&(r="v-"+r),"col"!==e||""!==n&&!0!==n?(r+=`-${n}`,r.toLowerCase()):r.toLowerCase()}}const Qc=["auto","start","end","center","baseline","stretch"],ed=(0,c.U)({cols:{type:[Boolean,String,Number],default:!1},...Yc,offset:{type:[String,Number],default:null},...Kc,order:{type:[String,Number],default:null},...Xc,alignSelf:{type:String,default:null,validator:e=>Qc.includes(e)},...(0,a.l)(),...x()},"VCol"),td=(0,k.ev)()({name:"VCol",props:ed(),setup(e,t){let{slots:n}=t;const i=(0,r.Fl)((()=>{const t=[];let n;
3336for(n in Jc)Jc[n].forEach((r=>{const i=e[r],a=Zc(n,r,i);a&&t.push(a)}));const r=t.some((e=>e.startsWith("v-col-")));return t.push({"v-col":!r||!e.cols,[`v-col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),t}));return()=>(0,r.h)(e.tag,{class:[i.value,e.class],style:e.style},n.default?.())}}),nd=["start","end","center"],rd=["space-between","space-around","space-evenly"];function id(e,t){return Qt.AV.reduce(((n,r)=>{const a=e+(0,i.kC)(r);return n[a]=t(),n}),{})}const ad=[...nd,"baseline","stretch"],od=e=>ad.includes(e),sd=id("align",(()=>({type:String,default:null,validator:od}))),ld=[...nd,...rd],ud=e=>ld.includes(e),cd=id("justify",(()=>({type:String,default:null,validator:ud}))),dd=[...nd,...rd,"stretch"],hd=e=>dd.includes(e),pd=id("alignContent",(()=>({type:String,default:null,validator:hd}))),fd={align:Object.keys(sd),justify:Object.keys(cd),alignContent:Object.keys(pd)},md={align:"align",justify:"justify",alignContent:"align-content"};function vd(e,t,n){let r=md[e];if(null!=n){if(t){const n=t.replace(e,"");r+=`-${n}`}return r+=`-${n}`,r.toLowerCase()}}const gd=(0,c.U)({dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:od},...sd,justify:{type:String,default:null,validator:ud},...cd,alignContent:{type:String,default:null,validator:hd},...pd,...(0,a.l)(),...x()},"VRow"),yd=(0,k.ev)()({name:"VRow",props:gd(),setup(e,t){let{slots:n}=t;const i=(0,r.Fl)((()=>{const t=[];let n;for(n in fd)fd[n].forEach((r=>{const i=e[r],a=vd(n,r,i);a&&t.push(a)}));return t.push({"v-row--no-gutters":e.noGutters,"v-row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),t}));return()=>(0,r.h)(e.tag,{class:["v-row",i.value,e.class],style:e.style},n.default?.())}}),_d=(0,c.U)({color:String,...be(),...(0,a.l)(),...fe(),...x({tag:"kbd"}),...(0,S.x$)(),...we()},"VKbd"),bd=(0,k.ev)()({name:"VKbd",props:_d(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{borderClasses:o}
3336=Te(e),{roundedClasses:s}=me(e),{backgroundColorClasses:l,backgroundColorStyles:u}=(0,pe.Y5)((()=>e.color)),{elevationClasses:c}=Se(e);return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-kbd",a.value,l.value,o.value,c.value,s.value,e.class]),style:(0,i.j5)([u.value,e.style])},n))),{}}}),Td={control:"ctrl",command:"cmd",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright",esc:"escape",spacebar:" ",space:" ",return:"enter",del:"delete",plus:"+",slash:"/",underscore:"_",minus:"-",hyphen:"-"};function wd(e){const t=e.toLowerCase();return Td[t]||t}function Sd(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={keys:[],separators:[]};if(!e)return t||(0,h.Kd)("Invalid hotkey combination: empty string provided"),n;const r=e.length>1&&["+","/","_"].some((t=>e.startsWith(t)))&&!["++","//","__"].some((t=>e.startsWith(t))),i=r||e.includes("++")||e.includes("//")||e.includes("__")||"+"===e||"/"===e||"_"===e||e.length>1&&(e.endsWith("+")||e.endsWith("/")||e.endsWith("_"))&&e.at(-2)!==e.at(-1)||"++"===e||"//"===e||"--"===e||"__"===e;if(i)return t||(0,h.Kd)(`Invalid hotkey combination: "${e}" has invalid structure`),n;const a=[],o=[];let s="";const l=e=>{s&&(e&&o.push(e),a.push(wd(s)),s="")};for(let c=0;c<e.length;c++){const t=e[c],n=e[c+1];["+","/","_","-"].includes(t)?t===n?(l(t),a.push(t),c++):["+","/","_"].includes(t)?l(t):s+=t:s+=t}l();const u=a.some((e=>e.length>1&&e.includes("-")&&"--"!==e));return u?(t||(0,h.Kd)(`Invalid hotkey combination: "${e}" has invalid structure`),n):0===a.length&&e?{keys:[wd(e)],separators:o}:{keys:a,separators:o}}function kd(e){if(!e)return(0,h.Kd)("Invalid hotkey sequence: empty string provided"),[];const t=e.startsWith("-")&&"-"!==e&&!["---","--+"].includes(e),n=e.endsWith("-")&&!e.endsWith("+-")&&!e.endsWith("_-")&&"-"!==e&&"---"!==e;if(t||n)return(0,h.Kd)(`Invalid hotkey sequence: "${e}" contains invalid combinations`),[];const r=[];let i="",a=0;while(a<e.length){const t=e[a];if("-"===t){const n=e[a-1],o=a>1?e[a-2]:void 0,s=["+","_"].includes(n)&&!["+","/"].includes(o??"");s?(i+=t,a++):(i?(r.push(i),i=""):r.push("-"),a++)}else i+=t,a++}i&&r.push(i);const o=[];let s=0;for(const u of r)"-"===u?(s%2===0&&o.push("-"),s++):(s=0,o.push(u));const l=o.every((e=>Sd(e,!0).keys.length>0));return l?o:((0,h.Kd)(`Invalid hotkey sequence: "${e}" contains invalid combinations`),[])}function Cd(e,t,n){const r=n&&e.mac?e.mac:e.default,i=(()=>("icon"!==t||r.icon)&&("symbol"!==t||r.symbol)?t:"text")();let a=r[i]??r.text;return"text"===i&&"string"===typeof a&&a.startsWith("$")&&!a.startsWith("$vuetify.")&&(a=a.slice(1).toUpperCase()),"icon"===i?["icon",a]:[i,a]}const Ed={ctrl:{mac:{symbol:"⌃",icon:"$ctrl",text:"$vuetify.hotkey.ctrl"},default:{text:"Ctrl"}},meta:{mac:{symbol:"⌘",icon:"$command",text:"$vuetify.hotkey.command"},default:{text:"Ctrl"}},cmd:{mac:{symbol:"⌘",icon:"$command",text:"$vuetify.hotkey.command"},default:{text:"Ctrl"}},shift:{mac:{symbol:"⇧",icon:"$shift",text:"$vuetify.hotkey.shift"},default:{text:"Shift"}},alt:{mac:{symbol:"⌥",icon:"$alt",text:"$vuetify.hotkey.option"},default:{text:"Alt"}},enter:{default:{symbol:"↵",icon:"$enter",text:"$vuetify.hotkey.enter"}},arrowup:{default:{symbol:"↑",icon:"$arrowup",text:"$vuetify.hotkey.upArrow"}},arrowdown:{default:{symbol:"↓",icon:"$arrowdown",text:"$vuetify.hotkey.downArrow"}},arrowleft:{default:{symbol:"←",icon:"$arrowleft",text:"$vuetify.hotkey.leftArrow"}},arrowright:{default:{symbol:"→",icon:"$arrowright",text:"$vuetify.hotkey.rightArrow"}},backspace:{default:{symbol:"⌫",icon:"$backspace",text:"$vuetify.hotkey.backspace"}},escape:{default:{text:"$vuetify.hotkey.escape"}}," ":{mac:{symbol:"␣",icon:"$space",text:"$vuetify.hotkey.space"},default:{text:"$vuetify.hotkey.space"}},"-":{default:{text:"-"}},"+":{default:{text:"+"}}},Id=(0,c.U)({keys:String,displayMode:{type:String,default:"icon"},keyMap:{type:Object,default:()=>Ed},platform:{type:String,default:"auto"},inline:Boolean,disabled:Boolean,prefix:String,suffix:String,variant:{type:String,default:"elevated",validator:e=>["elevated","flat","tonal","outlined","text","plain","contained"].includes(e)},...(0,a.l)(),...(0,S.x$)(),...be(),...fe(),...we(),color:String},"VHotkey"),xd=Symbol("VHotkey:AND_DELINEATOR"),Ad=Symbol("VHotkey:SLASH_DELINEATOR"),Pd=Symbol("VHotkey:THEN_DELINEATOR");function $d(e,t,n){const r=t.toLowerCase();if(r in e){const t=Cd(e[r],"text",n);return"string"===typeof t[1]?t[1]:String(t[1])}return t.toUpperCase()}function Od(e,t,n,r){const i=n.toLowerCase();if(i in e){const a=Cd(e[i],t,r);return"text"===a[0]&&"string"===typeof a[1]&&a[1].startsWith("$")&&!a[1].startsWith("$vuetify.")?["text",a[1].replace("$","").toUpperCase(),n]:[...a,n]}return["text",n.toUpperCase(),n]}const Nd=(0,k.ev)()({name:"VHotkey",props:Id(),setup(e){const{t:t}=(0,w.bU)(),{themeClasses:n}=(0,S.ER)(e),{rtlClasses:a}=(0,w.Vw)(),{borderClasses:o}
3336=Te(e),{roundedClasses:l}=me(e),{elevationClasses:u}=Se(e),{colorClasses:c,colorStyles:d,variantClasses:h}=ze((()=>({color:e.color,variant:"contained"===e.variant?"elevated":e.variant}))),p=(0,r.Fl)((()=>"auto"===e.platform?"undefined"!==typeof navigator&&/macintosh/i.test(navigator.userAgent):"mac"===e.platform)),f=(0,r.Fl)((()=>e.keys?e.keys.split(" ").map((t=>{const n=[],r=kd(t);for(let i=0;i<r.length;i++){const t=r[i];i>0&&n.push(Pd);const{keys:a,separators:o}=Sd(t);for(let r=0;r<a.length;r++){const t=a[r];r>0&&n.push("/"===o[r-1]?Ad:xd),n.push(Od(e.keyMap,e.displayMode,t,p.value))}}return n})):[])),m=(0,r.Fl)((()=>{if(!e.keys)return"";const n=f.value.map((n=>{const r=[];for(const i of n)if(Array.isArray(i)){const t="icon"===i[0]||"symbol"===i[0]?Od((0,s.Ee)(Ed,e.keyMap),"text",String(i[1]),p.value)[1]:i[1];r.push(v(t))}else i===xd?r.push(t("$vuetify.hotkey.plus")):i===Ad?r.push(t("$vuetify.hotkey.or")):i===Pd&&r.push(t("$vuetify.hotkey.then"));return r.join(" ")})),r=n.join(", ");return t("$vuetify.hotkey.shortcut",r)}));function v(e){return e.startsWith("$vuetify.")?t(e):e}function g(t){if("text"===e.displayMode)return;const n=$d(e.keyMap,String(t[2]),p.value);return v(n)}function y(t,n){const a="contained"===e.variant,s=a?"kbd":bd,h=["v-hotkey__key",`v-hotkey__key-${t[0]}`,...a?["v-hotkey__key--nested"]:[o.value,l.value,u.value,c.value]];return(0,r.Wm)(s,{key:n,class:(0,i.C_)(h),style:(0,i.j5)(a?void 0:d.value),"aria-hidden":"true",title:g(t)},{default:()=>["icon"===t[0]?(0,r.Wm)(ut,{icon:t[1],"aria-hidden":"true"},null):v(t[1])]})}function _(e,n){return(0,r._)("span",{key:n,class:"v-hotkey__divider","aria-hidden":"true"},[e===xd?"+":e===Ad?"/":t("$vuetify.hotkey.then")])}(0,C.L)((()=>{const t=(0,r._)(r.HY,null,[e.prefix&&(0,r._)("span",{key:"prefix",class:"v-hotkey__prefix"},[e.prefix]),f.value.map(((e,t)=>(0,r._)("span",{class:"v-hotkey__combination",key:t},[e.map(((e,t)=>Array.isArray(e)?y(e,t):_(e,t))),t<f.value.length-1&&(0,r._)("span",{"aria-hidden":"true"},[(0,r.Uk)(" ")])]))),e.suffix&&(0,r._)("span",{key:"suffix",class:"v-hotkey__suffix"},[e.suffix])]);return(0,r._)("div",{class:(0,i.C_)(["v-hotkey",{"v-hotkey--disabled":e.disabled,"v-hotkey--inline":e.inline,"v-hotkey--contained":"contained"===e.variant},n.value,a.value,h.value,e.class]),style:(0,i.j5)(e.style),role:"img","aria-label":m.value},["contained"!==e.variant?t:(0,r.Wm)(bd,{key:"contained",class:(0,i.C_)(["v-hotkey__contained-wrapper",o.value,l.value,u.value,c.value]),style:(0,i.j5)(d.value),"aria-hidden":"true"},{default:()=>[t]})])}))}});var Ld=n(1259);const Dd=(0,c.U)({disabled:Boolean,modelValue:{type:Boolean,default:null},...(0,Ld.h)()},"VHover"),Rd=(0,k.ev)()({name:"VHover",props:Dd(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=(0,$e.z)(e,"modelValue"),{runOpenDelay:i,runCloseDelay:a}=(0,Ld.g)(e,(t=>!e.disabled&&(r.value=t)));return()=>n.default?.({isHovering:r.value,props:{onMouseenter:i,onMouseleave:a}})}}),Fd=(0,c.U)({color:String,direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},side:{type:String,default:"end",validator:e=>["start","end","both"].includes(e)},mode:{type:String,default:"intersect",validator:e=>["intersect","manual"].includes(e)},margin:[Number,String],loadMoreText:{type:String,default:"$vuetify.infiniteScroll.loadMore"},emptyText:{type:String,default:"$vuetify.infiniteScroll.empty"},...(0,ue.x)(),...x()},"VInfiniteScroll"),Md=(0,k.aZ)({name:"VInfiniteScrollIntersect",props:{side:{type:String,required:!0},rootMargin:String},emits:{intersect:(e,t)=>!0},setup(e,t){let{emit:n}=t;const{intersectionRef:i,isIntersecting:a}=ct();return(0,r.YP)(a,(async t=>{n("intersect",e.side,t)})),(0,C.L)((()=>(0,r._)("div",{class:"v-infinite-scroll-intersect",style:{"--v-infinite-margin-size":e.rootMargin},ref:i},[(0,r.Uk)(" ")]))),{}}}),Vd=(0,k.ev)()({name:"VInfiniteScroll",props:Fd(),emits:{load:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const l=(0,o.iH)(),u=(0,o.XI)("ok"),c=(0,o.XI)("ok"),d=(0,r.Fl)((()=>(0,s.kb)(e.margin))),h=(0,o.XI)(!1);function p(t){if(!l.value)return;const n="vertical"===e.direction?"scrollTop":"scrollLeft";l.value[n]=t}function f(){if(!l.value)return 0;const t="vertical"===e.direction?"scrollTop":"scrollLeft";return l.value[t]}function m(){if(!l.value)return 0;const t="vertical"===e.direction?"scrollHeight":"scrollWidth";return l.value[t]}function v(){if(!l.value)return 0;const t="vertical"===e.direction?"clientHeight":"clientWidth";return l.value[t]}function g(e,t){"start"===e?u.value=t:"end"===e?c.value=t:"both"===e&&(u.value=t,c.value=t)}function y(e){return"start"===e?u.value:c.value}(0,r.bv)((()=>{l.value&&("start"===e.side?p(m()):"both"===e.side&&p(m()/2-v()/2))}));let _=0;function b(e,t){h.value=t,h.value&&T(e)}function T(t){if("manual"!==e.mode&&!h.value)return;const n=y(t);function i(n){g(t,n),(0,r.Y3)((()=>{"empty"!==n&&"error"!==n&&("ok"===n&&"start"===t&&p(m()-_+f()),"manual"!==e.mode&&(0,r.Y3)((()=>{window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{T(t)}))}
3336))}))})))}))}l.value&&!["empty","loading"].includes(n)&&(_=m(),g(t,"loading"),a("load",{side:t,done:i}))}const{t:S}=(0,w.bU)();function k(t,i){if(e.side!==t&&"both"!==e.side)return;const a=()=>T(t),o={side:t,props:{onClick:a,color:e.color}};return"error"===i?n.error?.(o):"empty"===i?n.empty?.(o)??(0,r._)("div",null,[S(e.emptyText)]):"manual"===e.mode?"loading"===i?n.loading?.(o)??(0,r.Wm)(ft,{indeterminate:!0,color:e.color},null):n["load-more"]?.(o)??(0,r.Wm)(At,{variant:"outlined",color:e.color,onClick:a},{default:()=>[S(e.loadMoreText)]}):n.loading?.(o)??(0,r.Wm)(ft,{indeterminate:!0,color:e.color},null)}const{dimensionStyles:E}=(0,ue.$)(e);function I(t){const n=t??e.side;g(n,"ok"),(0,r.Y3)((()=>{"end"!==n&&p(m()-_+f()),"manual"!==e.mode&&(0,r.Y3)((()=>{window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{window.requestAnimationFrame((()=>{"both"===n?(T("start"),T("end")):T(n)}))}))}))}))}))}return(0,C.L)((()=>{const t=e.tag,a="start"===e.side||"both"===e.side,o="end"===e.side||"both"===e.side,s="intersect"===e.mode;return(0,r.Wm)(t,{ref:l,class:(0,i.C_)(["v-infinite-scroll",`v-infinite-scroll--${e.direction}`,{"v-infinite-scroll--start":a,"v-infinite-scroll--end":o}]),style:(0,i.j5)(E.value)},{default:()=>[(0,r._)("div",{class:"v-infinite-scroll__side"},[k("start",u.value)]),a&&s&&(0,r.Wm)(Md,{key:"start",side:"start",onIntersect:b,rootMargin:d.value},null),n.default?.(),o&&s&&(0,r.Wm)(Md,{key:"end",side:"end",onIntersect:b,rootMargin:d.value},null),(0,r._)("div",{class:"v-infinite-scroll__side"},[k("end",c.value)])]})})),{reset:I}}}),Ud=Symbol.for("vuetify:v-item-group"),Bd=(0,c.U)({...(0,a.l)(),...Je({selectedClass:"v-item--selected"}),...x(),...(0,S.x$)()},"VItemGroup"),jd=(0,k.ev)()({name:"VItemGroup",props:Bd(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{isSelected:o,select:s,next:l,prev:u,selected:c}=et(e,Ud);return()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-item-group",a.value,e.class]),style:(0,i.j5)(e.style)},{default:()=>[n.default?.({isSelected:o,select:s,next:l,prev:u,selected:c.value})]})}}),Wd=(0,k.ev)()({name:"VItem",props:Ze(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const{isSelected:r,select:i,toggle:a,selectedClass:o,value:s,disabled:l}=Qe(e,Ud);return()=>n.default?.({isSelected:r.value,selectedClass:o.value,select:i,toggle:a,value:s.value,disabled:l.value})}}),Hd=(0,c.U)({...(0,a.l)(),...(0,ue.x)(),...v()},"VLayout"),qd=(0,k.ev)()({name:"VLayout",props:Hd(),setup(e,t){let{slots:n}=t;const{layoutClasses:a,layoutStyles:o,getLayoutItem:s,items:l,layoutRef:u}=T(e),{dimensionStyles:c}=(0,ue.$)(e);return(0,C.L)((()=>(0,r._)("div",{ref:u,class:(0,i.C_)([a.value,e.class]),style:(0,i.j5)([c.value,o.value,e.style])},[n.default?.()]))),{getLayoutItem:s,items:l}}}),Gd=(0,c.U)({position:{type:String,required:!0},size:{type:[Number,String],default:300},modelValue:Boolean,...(0,a.l)(),...g()},"VLayoutItem"),zd=(0,k.ev)()({name:"VLayoutItem",props:Gd(),setup(e,t){let{slots:n}=t;const{layoutItemStyles:a}=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:(0,o.Vh)((()=>e.position)),elementSize:(0,o.Vh)((()=>e.size)),layoutSize:(0,o.Vh)((()=>e.size)),active:(0,o.Vh)((()=>e.modelValue)),absolute:(0,o.Vh)((()=>e.absolute))});return()=>(0,r._)("div",{class:(0,i.C_)(["v-layout-item",e.class]),style:(0,i.j5)([a.value,e.style])},[n.default?.()])}}),Yd=(0,c.U)({modelValue:Boolean,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},...(0,a.l)(),...(0,ue.x)(),...x(),...(0,ve.X)({transition:"fade-transition"})},"VLazy"),Kd=(0,k.ev)()({name:"VLazy",directives:{vIntersect:ge.Z},props:Yd(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{dimensionStyles:a}=(0,ue.$)(e),o=(0,$e.z)(e,"modelValue");function s(e){o.value||(o.value=e)}return(0,C.L)((()=>(0,r.wy)((0,r.Wm)(e.tag,{class:(0,i.C_)(["v-lazy",e.class]),style:(0,i.j5)([a.value,e.style])},{default:()=>[o.value&&(0,r.Wm)(ve.J,{transition:e.transition,appear:!0},{default:()=>[n.default?.()]})]}),[[ge.Z,{handler:s,options:e.options},null]]))),{}}}),Xd=Nt("v-list-img"),Jd=(0,c.U)({start:Boolean,end:Boolean,...(0,a.l)(),...x()},"VListItemAction"),Zd=(0,k.ev)()({name:"VListItemAction",props:Jd(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class]),style:(0,i.j5)(e.style)}
3336,n))),{}}}),Qd=(0,c.U)({start:Boolean,end:Boolean,...(0,a.l)(),...x()},"VListItemMedia"),eh=(0,k.ev)()({name:"VListItemMedia",props:Qd(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-list-item-media",{"v-list-item-media--start":e.start,"v-list-item-media--end":e.end},e.class]),style:(0,i.j5)(e.style)},n))),{}}}),th=(0,c.U)({locale:String,fallbackLocale:String,messages:Object,rtl:{type:Boolean,default:void 0},...(0,a.l)()},"VLocaleProvider"),nh=(0,k.ev)()({name:"VLocaleProvider",props:th(),setup(e,t){let{slots:n}=t;const{rtlClasses:a}=(0,w.O4)(e);return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-locale-provider",a.value,e.class]),style:(0,i.j5)(e.style)},[n.default?.()]))),{}}}),rh=(0,c.U)({scrollable:Boolean,...(0,a.l)(),...(0,ue.x)(),...x({tag:"main"})},"VMain"),ih=(0,k.ev)()({name:"VMain",props:rh(),setup(e,t){let{slots:n}=t;const{dimensionStyles:a}=(0,ue.$)(e),{mainStyles:o}=y(),{ssrBootStyles:s}=Le();return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-main",{"v-main--scrollable":e.scrollable},e.class]),style:(0,i.j5)([o.value,s.value,a.value,e.style])},{default:()=>[e.scrollable?(0,r._)("div",{class:"v-main__scroller"},[n.default?.()]):n.default?.()]}))),{}}});function ah(e){let{rootEl:t,isSticky:n,layoutItemStyles:i}=e;const a=(0,o.XI)(!1),l=(0,o.XI)(0),u=(0,r.Fl)((()=>{const e="boolean"===typeof a.value?"top":a.value;return[n.value?{top:"auto",bottom:"auto",height:void 0}:void 0,a.value?{[e]:(0,s.kb)(l.value)}:{top:i.value.top}]}));(0,r.bv)((()=>{(0,r.YP)(n,(e=>{e?window.addEventListener("scroll",d,{passive:!0}):window.removeEventListener("scroll",d)}),{immediate:!0})})),(0,r.Jd)((()=>{window.removeEventListener("scroll",d)}));let c=0;function d(){const e=c>window.scrollY?"up":"down",n=t.value.getBoundingClientRect(),r=parseFloat(i.value.top??0),o=window.scrollY-Math.max(0,l.value-r),s=n.height+Math.max(l.value,r)-window.scrollY-window.innerHeight,u=parseFloat(getComputedStyle(t.value).getPropertyValue("--v-body-scroll-y"))||0;n.height<window.innerHeight-r?(a.value="top",l.value=r):"up"===e&&"bottom"===a.value||"down"===e&&"top"===a.value?(l.value=window.scrollY+n.top-u,a.value=!0):"down"===e&&s<=0?(l.value=0,a.value="bottom"):"up"===e&&o<=0&&(u?"top"!==a.value&&(l.value=-o+u+r,a.value="top"):(l.value=n.top+o,a.value="top")),c=window.scrollY}return{isStuck:a,stickyStyles:u}}const oh=100,sh=20;function lh(e){const t=1.41421356237;return(e<0?-1:1)*Math.sqrt(Math.abs(e))*t}function uh(e){if(e.length<2)return 0;if(2===e.length)return e[1].t===e[0].t?0:(e[1].d-e[0].d)/(e[1].t-e[0].t);let t=0;for(let n=e.length-1;n>0;n--){if(e[n].t===e[n-1].t)continue;const r=lh(t),i=(e[n].d-e[n-1].d)/(e[n].t-e[n-1].t);t+=(i-r)*Math.abs(i),n===e.length-1&&(t*=.5)}return 1e3*lh(t)}function ch(){const e={};function t(t){Array.from(t.changedTouches).forEach((n=>{const r=e[n.identifier]??(e[n.identifier]=new s.PU(sh));r.push([t.timeStamp,n])}))}function n(t){Array.from(t.changedTouches).forEach((t=>{delete e[t.identifier]}))}function r(t){const n=e[t]?.values().reverse();if(!n)throw new Error(`No samples for touch id ${t}`);const r=n[0],i=[],a=[];for(const e of n){if(r[0]-e[0]>oh)break;i.push({t:e[0],d:e[1].clientX}),a.push({t:e[0],d:e[1].clientY})}return{x:uh(i),y:uh(a),get direction(){const{x:e,y:t}=this,[n,r]=[Math.abs(e),Math.abs(t)];return n>r&&e>=0?"right":n>r&&e<=0?"left":r>n&&t>=0?"down":r>n&&t<=0?"up":dh()}}}return{addMovement:t,endTouch:n,getVelocity:r}}function dh(){throw new Error}function hh(e){let{el:t,isActive:n,isTemporary:i,width:a,touchless:l,position:u}=e;(0,r.bv)((()=>{window.addEventListener("touchstart",T,{passive:!0}),window.addEventListener("touchmove",w,{passive:!1}),window.addEventListener("touchend",S,{passive:!0})})),(0,r.Jd)((()=>{window.removeEventListener("touchstart",T),window.removeEventListener("touchmove",w),window.removeEventListener("touchend",S)}));const c=(0,r.Fl)((()=>["left","right"].includes(u.value))),{addMovement:d,endTouch:h,getVelocity:p}=ch();let f=!1;const m=(0,o.XI)(!1),v=(0,o.XI)(0),g=(0,o.XI)(0);let y;function _(e,t){return("left"===u.value?e:"right"===u.value?document.documentElement.clientWidth-e:"top"===u.value?e:"bottom"===u.value?document.documentElement.clientHeight-e:ph())-(t?a.value:0)}function b(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n="left"===u.value?(e-g.value)/a.value:"right"===u.value?(document.documentElement.clientWidth-e-g.value)/a.value:"top"===u.value?(e-g.value)/a.value:"bottom"===u.value?(document.documentElement.clientHeight-e-g.value)/a.value:ph();return t?(0,s.uZ)(n):n}function T(e){if(l.value)return;const t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY,o=25,s="left"===u.value?t<o:"right"===u.value?t>document.documentElement.clientWidth-o:"top"===u.value?r<o:"bottom"===u.value?r>document.documentElement.clientHeight-o:ph(),p=n.value&&("left"===u.value?t<a.value:"right"===u.value?t>document.documentElement.clientWidth-a.value:"top"===u.value?r<a.value:"bottom"===u.value?r>document.documentElement.clientHeight-a.value:ph());(s||p||n.value&&i.value)&&(y=[t,r],g.value=_(c.value?t:r,n.value),v.value=b(c.value?t:r),f=g.value>-20&&g.value<80,h(e),d(e))}function w(e){const t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(f){if(!e.cancelable)return void(f=!1);const r=Math.abs(t-y[0]),i=Math.abs(n-y[1]),a=c.value?r>i&&r>3:i>r&&i>3;a?(m.value=!0,f=!1):(c.value?i:r)>3&&(f=!1)}if(!m.value)return;e.preventDefault(),d(e);const r=b(c.value?t:n,!1);v.value=Math.max(0,Math.min(1,r)),r>1?g.value=_(c.value?t:n,!0):r<0&&(g.value=_(c.value?t:n,!1))}function S(e){if(f=!1,!m.value)return;d(e),m.value=!1;const t=p(e.changedTouches[0].identifier),r=Math.abs(t.x),i=Math.abs(t.y),a=c.value?r>i&&r>400:i>r&&i>3;
3336n.value=a?t.direction===({left:"right",right:"left",top:"down",bottom:"up"}[u.value]||ph()):v.value>.5}const k=(0,r.Fl)((()=>m.value?{transform:"left"===u.value?`translateX(calc(-100% + ${v.value*a.value}px))`:"right"===u.value?`translateX(calc(100% - ${v.value*a.value}px))`:"top"===u.value?`translateY(calc(-100% + ${v.value*a.value}px))`:"bottom"===u.value?`translateY(calc(100% - ${v.value*a.value}px))`:ph(),transition:"none"}:void 0));return(0,De.U)(m,(()=>{const e=t.value?.style.transform??null,n=t.value?.style.transition??null;(0,r.m0)((()=>{t.value?.style.setProperty("transform",k.value?.transform||"none"),t.value?.style.setProperty("transition",k.value?.transition||null)})),(0,o.EB)((()=>{t.value?.style.setProperty("transform",e),t.value?.style.setProperty("transition",n)}))})),{isDragging:m,dragProgress:v,dragStyles:k}}function ph(){throw new Error}var fh=n(7);const mh=["start","end","left","right","top","bottom"],vh=(0,c.U)({color:String,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,modelValue:{type:Boolean,default:null},permanent:Boolean,rail:{type:Boolean,default:null},railWidth:{type:[Number,String],default:56},scrim:{type:[Boolean,String],default:!0},image:String,temporary:Boolean,persistent:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},location:{type:String,default:"start",validator:e=>mh.includes(e)},sticky:Boolean,...be(),...(0,a.l)(),...(0,Ld.h)(),...(0,Qt.Tp)({mobile:null}),...we(),...g(),...fe(),...(0,s.CE)((0,fh.N)(),["disableInitialFocus"]),...x({tag:"nav"}),...(0,S.x$)()},"VNavigationDrawer"),gh=(0,k.ev)()({name:"VNavigationDrawer",props:vh(),emits:{"update:modelValue":e=>!0,"update:rail":e=>!0},setup(e,t){let{attrs:n,emit:i,slots:a}=t;const{isRtl:s}=(0,w.Vw)(),{themeClasses:l}=(0,S.ER)(e),{borderClasses:u}=Te(e),{backgroundColorClasses:c,backgroundColorStyles:d}=(0,pe.Y5)((()=>e.color)),{elevationClasses:h}=Se(e),{displayClasses:p,mobile:f}
3336=(0,Qt.AW)(e),{roundedClasses:m}=me(e),v=(0,Ct.tv)(),g=(0,$e.z)(e,"modelValue",null,(e=>!!e)),{ssrBootStyles:y}=Le(),{scopeId:b}=(0,vr.a)(),T=(0,o.iH)(),k=(0,o.XI)(!1),{runOpenDelay:E,runCloseDelay:I}=(0,Ld.g)(e,(e=>{k.value=e})),x=(0,r.Fl)((()=>e.rail&&e.expandOnHover&&k.value?Number(e.width):Number(e.rail?e.railWidth:e.width))),A=(0,r.Fl)((()=>(0,ke.Wc)(e.location,s.value))),P=(0,o.Vh)((()=>e.persistent)),O=(0,r.Fl)((()=>!e.permanent&&(f.value||e.temporary))),N=(0,r.Fl)((()=>e.sticky&&!O.value&&"bottom"!==A.value));(0,fh.P)(e,{isActive:g,localTop:O,contentEl:T}),(0,De.U)((()=>e.expandOnHover&&null!=e.rail),(()=>{(0,r.YP)(k,(e=>i("update:rail",!e)))})),(0,De.U)((()=>!e.disableResizeWatcher),(()=>{(0,r.YP)(O,(t=>!e.permanent&&(0,r.Y3)((()=>g.value=!t))))})),(0,De.U)((()=>!e.disableRouteWatcher&&!!v),(()=>{(0,r.YP)(v.currentRoute,(()=>O.value&&(g.value=!1)))})),(0,r.YP)((()=>e.permanent),(e=>{e&&(g.value=!0)})),null!=e.modelValue||O.value||(g.value=e.permanent||!f.value);const{isDragging:L,dragProgress:D}=hh({el:T,isActive:g,isTemporary:O,width:x,touchless:(0,o.Vh)((()=>e.touchless)),position:A}),R=(0,r.Fl)((()=>{const t=O.value?0:e.rail&&e.expandOnHover?Number(e.railWidth):x.value;return L.value?t*D.value:t})),{layoutItemStyles:F,layoutItemScrimStyles:M}=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:A,layoutSize:R,elementSize:x,active:(0,o.OT)(g),disableTransitions:(0,o.Vh)((()=>L.value)),absolute:(0,r.Fl)((()=>e.absolute||N.value&&"string"!==typeof V.value))}),{isStuck:V,stickyStyles:U}=ah({rootEl:T,isSticky:N,layoutItemStyles:F}),B=(0,pe.Y5)((()=>"string"===typeof e.scrim?e.scrim:null)),j=(0,r.Fl)((()=>({...L.value?{opacity:.2*D.value,transition:"none"}:void 0,...M.value})));return(0,oe.AF)({VList:{bgColor:"transparent"}}),(0,C.L)((()=>{const t=a.image||e.image;return(0,r._)(r.HY,null,[(0,r.Wm)(e.tag,(0,r.dG)({ref:T,onMouseenter:E,onMouseleave:I,class:["v-navigation-drawer",`v-navigation-drawer--${A.value}`,{"v-navigation-drawer--expand-on-hover":e.expandOnHover,"v-navigation-drawer--floating":e.floating,"v-navigation-drawer--is-hovering":k.value,"v-navigation-drawer--rail":e.rail,"v-navigation-drawer--temporary":O.value,"v-navigation-drawer--persistent":P.value,"v-navigation-drawer--active":g.value,"v-navigation-drawer--sticky":N.value},l.value,c.value,u.value,p.value,h.value,m.value,e.class],style:[d.value,F.value,y.value,U.value,e.style],inert:!g.value},b,n),{default:()=>[t&&(0,r._)("div",{key:"image",class:"v-navigation-drawer__img"},[a.image?(0,r.Wm)(le,{key:"image-defaults",disabled:!e.image,defaults:{VImg:{alt:"",cover:!0,height:"inherit",src:e.image}}},a.image):(0,r.Wm)(_e,{key:"image-img",alt:"",cover:!0,height:"inherit",src:e.image},null)]),a.prepend&&(0,r._)("div",{class:"v-navigation-drawer__prepend"},[a.prepend?.()]),(0,r._)("div",{class:"v-navigation-drawer__content"},[a.default?.()]),a.append&&(0,r._)("div",{class:"v-navigation-drawer__append"},[a.append?.()])]}),(0,r.Wm)($.uT,{name:"fade-transition"},{default:()=>[O.value&&(L.value||g.value)&&!!e.scrim&&(0,r._)("div",(0,r.dG)({class:["v-navigation-drawer__scrim",B.backgroundColorClasses.value],style:[j.value,B.backgroundColorStyles.value],onClick:()=>{P.value||(g.value=!1)}},b),null)]})])})),{isStuck:V}}});var yh=n(3337);const _h=(0,k.aZ)({name:"VNoSsr",setup(e,t){let{slots:n}=t;const r=(0,yh.x)();return()=>r.value&&n.default?.()}}),bh=50,Th=500;function wh(e){let{toggleUpDown:t}=e,n=-1,r=-1;function i(e){a(),s(e),window.addEventListener("pointerup",a),document.addEventListener("blur",a),n=window.setTimeout((()=>{r=window.setInterval((()=>s(e)),bh)}),Th)}function a(){window.clearTimeout(n),window.clearInterval(r),window.removeEventListener("pointerup",a),document.removeEventListener("blur",a)}function s(e){t("up"===e)}return(0,o.EB)(a),(0,o.EB)(a),{holdStart:i,holdStop:a}}const Sh=(0,c.U)({controlVariant:{type:String,default:"default"},inset:Boolean,hideInput:Boolean,modelValue:{type:Number,default:null},min:{type:Number,default:Number.MIN_SAFE_INTEGER},max:{type:Number,default:Number.MAX_SAFE_INTEGER},step:{type:Number,default:1},precision:{type:Number,default:0},minFractionDigits:{type:Number,default:null},decimalSeparator:{type:String,validator:e=>!e||1===e.length},...(0,s.CE)(zr(),["modelValue","validationValue"])},"VNumberInput"),kh=(0,k.ev)()({name:"VNumberInput",props:{...Sh()},emits:{"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,o.iH)(),{holdStart:a,holdStop:l}=wh({toggleUpDown:O}),u=Rr(e),c=(0,r.Fl)((()=>u.isDisabled.value||u.isReadonly.value)),d=(0,o.XI)(e.focused),{decimalSeparator:h}=(0,w.bU)(),p=(0,r.Fl)((()=>e.decimalSeparator?.[0]||h.value));function f(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.precision,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=null==n?String(t):t.toFixed(n);if(d.value&&r)return Number(i).toString().replace(".",p.value);if(null===e.minFractionDigits||null!==n&&n<e.minFractionDigits)return i.replace(".",p.value);let[a,o]=i.split(".");return o=(o??"").padEnd(e.minFractionDigits,"0").replace(new RegExp(`(?<=\\d{${e.minFractionDigits}}
3336)0+$`,"g"),""),[a,o].filter(Boolean).join(p.value)}const m=(0,$e.z)(e,"modelValue",null,(e=>e??null),(t=>null==t?t??null:(0,s.uZ)(Number(t),e.min,e.max))),v=(0,o.XI)(null),g=(0,o.XI)(null);(0,r.YP)(m,(e=>{d.value&&!c.value&&Number(v.value?.replace(p.value,"."))===e||(null==e?(v.value=null,g.value=null):isNaN(e)||(v.value=f(e),g.value=Number(v.value.replace(p.value,"."))))}),{immediate:!0});const y=(0,r.Fl)({get:()=>v.value,set(t){if(null===t||""===t)return m.value=null,v.value=null,void(g.value=null);const n=Number(t.replace(p.value,"."));isNaN(n)||(v.value=t,g.value=n,n<=e.max&&n>=e.min&&(m.value=n))}}),_=(0,r.Fl)((()=>{if(null===g.value)return!1;const t=Number(v.value?.replace(p.value,"."));return t!==(0,s.uZ)(t,e.min,e.max)})),b=(0,r.Fl)((()=>!c.value&&(null==m.value||m.value+e.step<=e.max))),T=(0,r.Fl)((()=>!c.value&&(null==m.value||m.value-e.step>=e.min))),S=(0,r.Fl)((()=>e.hideInput?"stacked":e.controlVariant)),k=(0,o.Vh)((()=>"split"===S.value?"$plus":"$collapse")),E=(0,o.Vh)((()=>"split"===S.value?"$minus":"$expand")),I=(0,o.Vh)((()=>"split"===S.value?"default":"small")),x=(0,o.Vh)((()=>"stacked"===S.value?"auto":"100%")),A={props:{onClick:D,onPointerup:R,onPointerdown:F,onPointercancel:R}},P={props:{onClick:D,onPointerup:R,onPointerdown:M,onPointercancel:R}};function $(e){if(null==e)return 0;const t=e.toString(),n=t.indexOf(".");return~n?t.length-n:0}function O(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(c.value)return;if(null==m.value)return void(y.value=f((0,s.uZ)(0,e.min,e.max)));let n=Math.max($(m.value),$(e.step));null!=e.precision&&(n=Math.max(n,e.precision)),t?b.value&&(y.value=f(m.value+e.step,n)):T.value&&(y.value=f(m.value-e.step,n))}function N(t){if(c.value)return;if(!t.data)return;const n=t.target,{value:i,selectionStart:a,selectionEnd:o}=n??{},l=i?i.slice(0,a)+t.data+i.slice(o):t.data,u=(0,s.$U)(l,e.precision,p.value);if(new RegExp(`^-?\\d*${(0,s.Dm)(p.value)}?\\d*$`).test(l)||(t.preventDefault(),n.value=u,(0,r.Y3)((()=>y.value=u))),null!=e.precision){if(l.split(p.value)[1]?.length>e.precision){t.preventDefault(),n.value=u,(0,r.Y3)((()=>y.value=u));const e=(a??0)+t.data.length;n.setSelectionRange(e,e)}0===e.precision&&l.endsWith(p.value)&&(t.preventDefault(),n.value=u,(0,r.Y3)((()=>y.value=u)))}}async function L(e){["Enter","ArrowLeft","ArrowRight","Backspace","Delete","Tab"].includes(e.key)||e.ctrlKey||["ArrowDown","ArrowUp"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),V(),await(0,r.Y3)(),"ArrowDown"===e.key?O(!1):O())}function D(e){e.stopPropagation()}function R(e){const t=e.currentTarget;t?.releasePointerCapture(e.pointerId),e.preventDefault(),l()}function F(e){const t=e.currentTarget;t?.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),a("up")}function M(e){const t=e.currentTarget;t?.setPointerCapture(e.pointerId),e.preventDefault(),e.stopPropagation(),a("down")}function V(){if(c.value)return;if(!i.value)return;const t=i.value.value,n=Number(t.replace(p.value,"."));t&&!isNaN(n)?y.value=f((0,s.uZ)(n,e.min,e.max)):y.value=null}function U(){c.value||(y.value=null===m.value||isNaN(m.value)?null:f(m.value,e.precision,!1))}function B(){c.value||(null===m.value||isNaN(m.value)?y.value=null:y.value=m.value.toString().replace(".",p.value))}function j(){B()}function W(){V()}return(0,r.YP)((()=>e.precision),(()=>U())),(0,r.YP)((()=>e.minFractionDigits),(()=>U())),(0,r.bv)((()=>{V()})),(0,C.L)((()=>{const{modelValue:t,type:a,...o}=Yr.filterProps(e);function s(){return n.increment?(0,r.Wm)(le,{key:"increment-defaults",defaults:{VBtn:{disabled:!b.value,height:x.value,size:I.value,icon:k.value,variant:"text"}}},{default:()=>[n.increment(A)]}):(0,r.Wm)(At,{"aria-hidden":"true","data-testid":"increment",disabled:!b.value,height:x.value,icon:k.value,key:"increment-btn",onClick:D,onPointerdown:F,onPointerup:R,onPointercancel:R,size:I.value,variant:"text",tabindex:"-1"},null)}function l(){return n.decrement?(0,r.Wm)(le,{key:"decrement-defaults",defaults:{VBtn:{disabled:!T.value,height:x.value,size:I.value,icon:E.value,variant:"text"}}},{default:()=>
3336[n.decrement(P)]}):(0,r.Wm)(At,{"aria-hidden":"true","data-testid":"decrement",disabled:!T.value,height:x.value,icon:E.value,key:"decrement-btn",onClick:D,onPointerdown:M,onPointerup:R,onPointercancel:R,size:I.value,variant:"text",tabindex:"-1"},null)}function u(){return(0,r._)("div",{class:"v-number-input__control"},[l(),(0,r.Wm)(_n,{vertical:"stacked"!==S.value},null),s()])}function c(){return e.hideInput||e.inset?void 0:(0,r.Wm)(_n,{vertical:!0},null)}const h="split"===S.value?(0,r._)("div",{class:"v-number-input__control"},[(0,r.Wm)(_n,{vertical:!0},null),s()]):e.reverse||"hidden"===S.value?void 0:(0,r._)(r.HY,null,[c(),u()]),p=n["append-inner"]||h,f="split"===S.value?(0,r._)("div",{class:"v-number-input__control"},[l(),(0,r.Wm)(_n,{vertical:!0},null)]):e.reverse&&"hidden"!==S.value?(0,r._)(r.HY,null,[u(),c()]):void 0,v=n["prepend-inner"]||f;return(0,r.Wm)(Yr,(0,r.dG)({ref:i},o,{modelValue:y.value,"onUpdate:modelValue":e=>y.value=e,focused:d.value,"onUpdate:focused":e=>d.value=e,validationValue:m.value,error:e.error||_.value||void 0,onBeforeinput:N,onFocus:j,onBlur:W,onKeydown:L,class:["v-number-input",{"v-number-input--default":"default"===S.value,"v-number-input--hide-input":e.hideInput,"v-number-input--inset":e.inset,"v-number-input--reverse":e.reverse,"v-number-input--split":"split"===S.value,"v-number-input--stacked":"stacked"===S.value},e.class],style:e.style,inputmode:"decimal"}),{...n,"append-inner":p?function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,r._)(r.HY,null,[n["append-inner"]?.(...t),h])}:void 0,"prepend-inner":v?function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return(0,r._)(r.HY,null,[f,n["prepend-inner"]?.(...t)])}:void 0})})),(0,mr.F)({},i)}}),Ch=(0,c.U)({autofocus:Boolean,divider:String,focusAll:Boolean,label:{type:String,default:"$vuetify.input.otp"},length:{type:[Number,String],default:6},masked:Boolean,modelValue:{type:[Number,String],default:void 0},placeholder:String,type:{type:String,default:"number"},...Ve(),...(0,ue.x)(),...Er(),...(0,s.ei)(Ar({variant:"outlined"}),["baseColor","bgColor","class","color","disabled","error","loading","rounded","style","theme","variant"])},"VOtpInput"),Eh=(0,k.ev)()({name:"VOtpInput",props:Ch(),emits:{finish:e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:l}=t;const{densityClasses:u}=Ue(e),{dimensionStyles:c}=(0,ue.$)(e),{isFocused:d,focus:h,blur:p}=Ir(e),f=(0,$e.z)(e,"modelValue","",(e=>null==e?[]:String(e).split("")),(e=>e.join(""))),{t:m}=(0,w.bU)(),v=(0,r.Fl)((()=>Number(e.length))),g=(0,r.Fl)((()=>Array(v.value).fill(0))),y=(0,o.iH)(-1),_=(0,o.iH)(),b=(0,o.iH)([]),T=(0,r.Fl)((()=>b.value[y.value]));let S=!1;function k(){if(O(T.value.value))return void(T.value.value="");if(S)return;const e=f.value.slice(),t=T.value.value;e[y.value]=t;let n=null;y.value>f.value.length?n=f.value.length+1:y.value+1!==v.value&&(n="next"),f.value=e,n&&(0,s.L7)(_.value,n)}function E(){S=!1,k()}function I(e){const t=f.value.slice(),n=y.value;let r=null;["ArrowLeft","ArrowRight","Backspace","Delete"].includes(e.key)&&(e.preventDefault(),"ArrowLeft"===e.key?r="prev":"ArrowRight"===e.key?r="next":["Backspace","Delete"].includes(e.key)&&(t[y.value]="",f.value=t,y.value>0&&"Backspace"===e.key?r="prev":requestAnimationFrame((()=>{b.value[n]?.select()}))),requestAnimationFrame((()=>{null!=r&&(0,s.L7)(_.value,r)})))}function x(e,t){t.preventDefault(),t.stopPropagation();const n=t?.clipboardData?.getData("Text").trim().slice(0,v.value)??"",r=n.length-1===-1?e:n.length-1;O(n)||(f.value=n.split(""),y.value=r)}function A(){f.value=[]}function P(e,t){h(),y.value=t}function $(){p(),y.value=-1}function O(t){return"number"===e.type&&/[^0-9]/g.test(t)}return(0,De.U)((()=>e.autofocus),(()=>{const e=(0,o.B)();e.run((()=>{const{intersectionRef:t,isIntersecting:n}=ct();(0,r.m0)((()=>{t.value=b.value[0]})),(0,r.YP)(n,(n=>{n&&(t.value?.focus(),e.stop())}))}))})),(0,oe.AF)({VField:{color:(0,o.Vh)((()=>e.color)),bgColor:(0,o.Vh)((()=>e.color)),baseColor:(0,o.Vh)((()=>
3336e.baseColor)),disabled:(0,o.Vh)((()=>e.disabled)),error:(0,o.Vh)((()=>e.error)),variant:(0,o.Vh)((()=>e.variant)),rounded:(0,o.Vh)((()=>e.rounded))}},{scoped:!0}),(0,r.YP)(f,(e=>{e.length===v.value&&a("finish",e.join(""))}),{deep:!0}),(0,r.YP)(y,(e=>{e<0||(0,r.Y3)((()=>{b.value[e]?.select()}))})),(0,C.L)((()=>{const[t,a]=(0,s.An)(n);return(0,r._)("div",(0,r.dG)({class:["v-otp-input",{"v-otp-input--divided":!!e.divider},u.value,e.class],style:[e.style]},t),[(0,r._)("div",{ref:_,class:"v-otp-input__content",style:(0,i.j5)([c.value])},[g.value.map(((t,n)=>(0,r._)(r.HY,null,[e.divider&&0!==n&&(0,r._)("span",{class:"v-otp-input__divider"},[e.divider]),(0,r.Wm)(Pr,{focused:d.value&&e.focusAll||y.value===n,key:n},{...l,loader:void 0,default:()=>(0,r._)("input",{ref:e=>b.value[n]=e,"aria-label":m(e.label,n+1),autofocus:0===n&&e.autofocus,autocomplete:"one-time-code",class:(0,i.C_)(["v-otp-input__field"]),disabled:e.disabled,inputmode:"number"===e.type?"numeric":"text",min:"number"===e.type?0:void 0,maxlength:0===n?v.value:"1",placeholder:e.placeholder,type:e.masked?"password":"number"===e.type?"text":e.type,value:f.value[n],onInput:k,onFocus:e=>P(e,n),onBlur:$,onKeydown:I,onCompositionstart:()=>S=!0,onCompositionend:E,onPaste:e=>x(n,e)},null)})]))),(0,r._)("input",(0,r.dG)({class:"v-otp-input-input",type:"hidden"},a,{value:f.value.join("")}),null),(0,r.Wm)(fr.y,{contained:!0,contentClass:"v-otp-input__loader",modelValue:!!e.loading,persistent:!0},{default:()=>[l.loader?.()??(0,r.Wm)(ft,{color:"boolean"===typeof e.loading?void 0:e.loading,indeterminate:!0,size:"24",width:"2"},null)]}),l.default?.()])])})),{blur:()=>{b.value?.some((e=>e.blur()))},focus:()=>{b.value?.[0].focus()},reset:A,isFocused:d}}});function Ih(e){return Math.floor(Math.abs(e))*Math.sign(e)}const xh=(0,c.U)({scale:{type:[Number,String],default:.5},...(0,a.l)()},"VParallax"),Ah=(0,k.ev)()({name:"VParallax",props:xh(),setup(e,t){let{slots:n}=t;const{intersectionRef:a,isIntersecting:c}=ct(),{resizeRef:d,contentRect:h}=u(),{height:p}=(0,Qt.AW)(),f=(0,o.iH)();let m;(0,r.m0)((()=>{a.value=d.value=f.value?.$el})),(0,r.YP)(c,(e=>{e?(m=(0,ri.rP)(a.value),m=m===document.scrollingElement?document:m,m.addEventListener("scroll",y,{passive:!0}),y()):m.removeEventListener("scroll",y)})),(0,r.Jd)((()=>{m?.removeEventListener("scroll",y)})),(0,r.YP)(p,y),(0,r.YP)((()=>h.value?.height),y);const v=(0,r.Fl)((()=>1-(0,s.uZ)(Number(e.scale))));let g=-1;function y(){c.value&&!(0,l.QE)()&&(cancelAnimationFrame(g),g=requestAnimationFrame((()=>{const e=f.value?.$el.querySelector(".v-img__img");if(!e)return;const t=m instanceof Document?document.documentElement.clientHeight:m.clientHeight,n=m instanceof Document?window.scrollY:m.scrollTop,r=a.value.getBoundingClientRect().top+n,i=h.value.height,o=r+(i-t)/2,s=Ih((n-o)*v.value),l=Math.max(1,(v.value*(t-i)+i)/i);e.style.setProperty("transform",`translateY(${s}px) scale(${l})`)})))}return(0,C.L)((()=>(0,r.Wm)(_e,{class:(0,i.C_)(["v-parallax",{"v-parallax--active":c.value},e.class]),style:(0,i.j5)(e.style),ref:f,cover:!0,onLoadstart:y,onLoad:y},n))),{}}}),Ph=(0,c.U)({...Yt({falseIcon:"$radioOff",trueIcon:"$radioOn"})},"VRadio"),$h=(0,k.ev)()({name:"VRadio",props:Ph(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>{const t=Xt.filterProps(e);return(0,r.Wm)(Xt,(0,r.dG)(t,{class:["v-radio",e.class],style:e.style,type:"radio"}),n)})),{}}}),Oh=(0,c.U)({height:{type:[Number,String],default:"auto"},...(0,s.CE)(Br(),["direction"]),...(0,s.CE)(qt(),["multiple"]),trueIcon:{type:st.lE,default:"$radioOn"},falseIcon:{type:st.lE,default:"$radioOff"},type:{type:String,default:"radio"}},"VRadioGroup"),Nh=(0,k.ev)()({name:"VRadioGroup",inheritAttrs:!1,props:Oh(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const a=(0,r.Me)(),l=(0,r.Fl)((()=>e.id||`radio-group-${a}`)),u=(0,$e.z)(e,"modelValue"),c=(0,o.iH)();return(0,C.L)((()=>{const[t,a]=(0,s.An)(n),o=jr.filterProps(e),d=Xt.filterProps(e),h=i.label?i.label({label:e.label,props:{for:l.value}}):e.label;return(0,r.Wm)(jr,(0,r.dG)({ref:c,class:["v-radio-group",e.class],style:e.style},t,o,{modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,id:l.value}),{...i,default:t=>{let{id:n,messagesId:o,isDisabled:s,isReadonly:l}=t;return(0,r._)(r.HY,null,[h&&(0,r.Wm)(Wt,{id:n.value},{default:()=>[h]}),(0,r.Wm)(zt,(0,r.dG)(d,{id:n.value,"aria-describedby":o.value,defaultsTarget:"VRadio",trueIcon:e.trueIcon,falseIcon:e.falseIcon,type:e.type,disabled:s.value,readonly:l.value,"aria-labelledby":h?n.value:void 0,multiple:!1},a,{modelValue:u.value,"onUpdate:modelValue":e=>u.value=e}),i)])}})})),(0,mr.F)({},c)}}),Lh=(0,c.U)({...Er(),...Br(),...Rs(),strict:Boolean,modelValue:{type:Array,default:()=>[0,0]}},"VRangeSlider"),Dh=(0,k.ev)()({name:"VRangeSlider",inheritAttrs:!1,props:Lh(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,end:e=>!0,start:e=>!0},setup(e,t){let{slots:n,emit:i,attrs:a}=t;const l=(0,o.iH)(),u=(0,o.iH)(),c=(0,o.iH)(),{rtlClasses:d}=(0,w.Vw)();function h(t){if(!l.value||!u.value)return;const n=Ls(t,l.value.$el,e.direction),r=Ls(t,u.value.$el,e.direction),i=Math.abs(n),a=Math.abs(r);return i<a||i===a&&n<0?l.value.$el:u.value.$el}const p=Fs(e),f=(0,$e.z)(e,"modelValue",void 0,(e=>e?.length?e.map((e=>p.roundValue(e))):[0,0])),{activeThumbRef:m,hasLabels:v,max:g,min:y,mousePressed:_,onSliderMousedown:b,onSliderTouchstart:T,position:S,trackContainerRef:k,disabled:E,readonly:I}=Ms({props:e,steps:p,onSliderStart:()=>{E.value||I.value?m.value?.blur():i("start",f.value)},onSliderEnd:t=>{let{value:n}=t;if(E.value||I.value)m.value?.blur();else{const t=m.value===l.value?.$el?[n,f.value[1]]:[f.value[0],n];!e.strict&&t[0]<t[1]&&(f.value=t)}i("end",f.value)},onSliderMove:t=>{let{value:n}=t;const[r,i]=f.value;E.value||I.value?m.value?.blur():(e.strict||r!==i||r===y.value||(m.value=n>r?u.value?.$el:l.value?.$el,m.value?.focus()),m.value===l.value?.$el?f.value=[Math.min(n,i),i]:f.value=[r,Math.max(r,n)])},getActiveThumb:h}),{isFocused:x,focus:A,blur:P}=Ir(e),$=(0,r.Fl)((()=>S(f.value[0]))),O=(0,r.Fl)((()=>S(f.value[1])));return(0,C.L)((()=>{const t=jr.filterProps(e),[i,o]=(0,s.An)(a),h=!!(e.label||n.label||n.prepend);return(0,r.Wm)(jr,(0,r.dG)({class:["v-slider","v-range-slider",{"v-slider--has-labels":!!n["tick-label"]||v.value,"v-slider--focused":x.value,"v-slider--pressed":_.value,"v-slider--disabled":E.value},d.value,e.class],style:e.style,ref:c},t,i,{focused:x.value}),{...n,prepend:h?t=>(0,r._)(r.HY,null,[n.label?.(t)??(e.label?(0,r.Wm)(Wt,{class:"v-slider__label",text:e.label},null):void 0),n.prepend?.(t)]):void 0,default:t=>{let{id:i,messagesId:a}=t;return(0,r._)("div",{class:"v-slider__container",onMousedown:I.value?void 0:b,onTouchstartPassive:I.value?void 0:T},[(0,r._)("input",{id:`${i.value}_start`,name:e.name||i.value,disabled:E.value,readonly:I.value,tabindex:"-1",value:f.value[0]},null),(0,r._)("input",{id:`${i.value}_stop`,name:e.name||i.value,disabled:E.value,readonly:I.value,tabindex:"-1",value:f.value[1]},null),(0,r.Wm)(js,{ref:k,start:$.value,stop:O.value},{"tick-label":n["tick-label"]}),(0,r.Wm)(Us,(0,r.dG)({ref:l,"aria-describedby":a.value,focused:x&&m.value===l.value?.$el,modelValue:f.value[0],"onUpdate:modelValue":e=>f.value=[e,f.value[1]],onFocus:e=>{A(),m.value=l.value?.$el,g.value!==y.value&&f.value[0]===f.value[1]&&f.value[1]===y.value&&e.relatedTarget!==u.value?.$el&&(l.value?.$el.blur(),u.value?.$el.focus())},onBlur:()=>{P(),m.value=void 0},min:y.value,max:f.value[1],position:$.value,ripple:e.ripple}
3336,o),{"thumb-label":n["thumb-label"]}),(0,r.Wm)(Us,(0,r.dG)({ref:u,"aria-describedby":a.value,focused:x&&m.value===u.value?.$el,modelValue:f.value[1],"onUpdate:modelValue":e=>f.value=[f.value[0],e],onFocus:e=>{A(),m.value=u.value?.$el,g.value!==y.value&&f.value[0]===f.value[1]&&f.value[0]===g.value&&e.relatedTarget!==l.value?.$el&&(u.value?.$el.blur(),l.value?.$el.focus())},onBlur:()=>{P(),m.value=void 0},min:f.value[0],max:g.value,position:O.value,ripple:e.ripple},o),{"thumb-label":n["thumb-label"]})])}})})),(0,mr.F)({focus:()=>l.value?.$el.focus()},c)}}),Rh=(0,c.U)({name:String,itemAriaLabel:{type:String,default:"$vuetify.rating.ariaLabel.item"},activeColor:String,color:String,clearable:Boolean,disabled:Boolean,emptyIcon:{type:st.lE,default:"$ratingEmpty"},fullIcon:{type:st.lE,default:"$ratingFull"},halfIncrements:Boolean,hover:Boolean,length:{type:[Number,String],default:5},readonly:Boolean,modelValue:{type:[Number,String],default:0},itemLabels:Array,itemLabelPosition:{type:String,default:"top",validator:e=>["top","bottom"].includes(e)},ripple:Boolean,...(0,a.l)(),...Ve(),...je(),...x(),...(0,S.x$)()},"VRating"),Fh=(0,k.ev)()({name:"VRating",props:Rh(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{t:a}=(0,w.bU)(),{themeClasses:l}=(0,S.ER)(e),u=(0,o.iH)(),c=(0,$e.z)(e,"modelValue"),d=(0,r.Fl)((()=>(0,s.uZ)(parseFloat(c.value),0,Number(e.length)))),h=(0,r.Fl)((()=>(0,s.MT)(Number(e.length),1))),p=(0,r.Fl)((()=>h.value.flatMap((t=>e.halfIncrements?[t-.5,t]:[t])))),f=(0,o.XI)(-1),m=(0,r.Fl)((()=>p.value.map((t=>{const n=e.hover&&f.value>-1,r=d.value>=t,i=f.value>=t,a=n?i:r,o=a?e.fullIcon:e.emptyIcon,s=e.activeColor??e.color,l=r||i?s:e.color;return{isFilled:r,isHovered:i,icon:o,color:l}})))),v=(0,r.Fl)((()=>[0,...p.value].map((t=>{function n(){f.value=t}function r(){f.value=-1}function i(){e.disabled||e.readonly||(c.value=d.value===t&&e.clearable?0:t)}return{onMouseenter:e.hover?n:void 0,onMouseleave:e.hover?r:void 0,onClick:i}})))),g=(0,r.Fl)((()=>e.halfIncrements?1+2*Math.floor(Math.max(0,Number(c.value??0)-.5)):Math.floor(Math.max(0,Number(c.value??0)-1))));function y(){const e=u.value?.querySelector('[tabindex="0"]');e?.focus()}function _(t){if(e.disabled||e.readonly)return;if(t.ctrlKey||t.altKey)return;const n=e.halfIncrements?.5:1;if("ArrowRight"===t.key){const t=Math.min(Number(e.length),Number(c.value??0)+n);c.value=t,(0,r.Y3)((()=>y()))}if("ArrowLeft"===t.key){const e=Math.max(0,Number(c.value??0)-n);c.value=e,(0,r.Y3)((()=>y()))}}const b=(0,r.Me)(),T=(0,r.Fl)((()=>e.name??`v-rating-${b}`));function k(t){let{value:o,index:s,showStar:l=!0}=t;const{onMouseenter:u,onMouseleave:c,onClick:h}=v.value[s+1],p=`${T.value}-${String(o).replace(".","-")}`,f=s===g.value,y={color:m.value[s]?.color,density:e.density,disabled:e.disabled,icon:m.value[s]?.icon,ripple:e.ripple,size:e.size,variant:"plain",tabindex:f?0:-1,onKeydown:_};return(0,r._)(r.HY,null,[(0,r._)("label",{for:p,class:(0,i.C_)({"v-rating__item--half":e.halfIncrements&&o%1>0,"v-rating__item--full":e.halfIncrements&&o%1===0}),onMouseenter:u,onMouseleave:c,onClick:h},[(0,r._)("span",{class:"v-rating__hidden"},[a(e.itemAriaLabel,o,e.length)]),l?n.item?n.item({...m.value[s],props:y,value:o,index:s,rating:d.value}):(0,r.Wm)(At,(0,r.dG)({"aria-label":a(e.itemAriaLabel,o,e.length)},y),null):void 0]),(0,r._)("input",{class:"v-rating__hidden",name:T.value,id:p,type:"radio",value:o,checked:d.value===o,tabindex:-1,readonly:e.readonly,disabled:e.disabled},null)])}function E(e){return n["item-label"]?n["item-label"](e):e.label?(0,r._)("span",null,[e.label]):(0,r._)("span",null,[(0,r.Uk)(" ")])}return(0,C.L)((()=>{const t=!!e.itemLabels?.length||n["item-label"];return(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-rating",{"v-rating--hover":e.hover,"v-rating--readonly":e.readonly},l.value,e.class]),style:(0,i.j5)(e.style),ref:u},{default:()=>[(0,r.Wm)(k,{value:0,index:-1,showStar:!1},null),h.value.map(((n,i)=>(0,r._)("div",{class:"v-rating__wrapper"},[t&&"top"===e.itemLabelPosition?E({value:n,index:i,label:e.itemLabels?.[i]}):void 0,(0,r._)("div",{class:"v-rating__item"},[e.halfIncrements?(0,r._)(r.HY,null,[(0,r.Wm)(k,{value:n-.5,index:2*i},null),(0,r.Wm)(k,{value:n,index:2*i+1},null)]):(0,r.Wm)(k,{value:n,index:i},null)]),t&&"bottom"===e.itemLabelPosition?E({value:n,index:i,label:e.itemLabels?.[i]}):void 0])))]})})),{}}}),Mh={actions:"button@2",article:"heading, paragraph",avatar:"avatar",button:"button",card:"image, heading","card-avatar":"image, list-item-avatar",chip:"chip","chip-group":"chip@8","date-picker":"list-item, heading, divider, date-picker-options, date-picker-days, actions","date-picker-options":"text, avatar@2","date-picker-days":"avatar@28",divi
3336der:"divider",heading:"heading",image:"image","list-item":"text","list-item-avatar":"avatar, text","list-item-two-line":"sentences","list-item-avatar-two-line":"avatar, sentences","list-item-three-line":"paragraph","list-item-avatar-three-line":"avatar, paragraph",ossein:"ossein",paragraph:"text@3",sentences:"text@2",subtitle:"text",table:"table-heading, table-thead, table-tbody, table-tfoot","table-heading":"heading, text","table-thead":"heading@6","table-tbody":"table-row-divider@6","table-row-divider":"table-row, divider","table-row":"table-cell@6","table-cell":"text","table-tfoot":"text@2, avatar@2",text:"text"};function Vh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,r._)("div",{class:(0,i.C_)(["v-skeleton-loader__bone",`v-skeleton-loader__${e}`])},[t])}function Uh(e,t){const[n,r]=e.split("@");return Array.from({length:r}).map((()=>Bh(n,t)))}function Bh(e,t){if(!e)return[];if(e.includes(","))return jh(e,t);if(e.includes("@"))return Uh(e,t);if(!(e in t))return(0,h.Kd)(`Unknown skeleton type "${e}", register it with the types prop`),[Vh(e)];const n=t[e];let r=[];return e===n||(n.includes(",")?r=jh(n,t):n.includes("@")?r=Uh(n,t):r.push(Bh(n,t))),[Vh(e,r)]}function jh(e,t){return e.replace(/\s/g,"").split(",").map((e=>Bh(e,t)))}const Wh=(0,c.U)({boilerplate:Boolean,color:String,loading:Boolean,loadingText:{type:String,default:"$vuetify.loading"},type:{type:[String,Array],default:"ossein"},types:Object,...(0,ue.x)(),...we(),...(0,S.x$)()},"VSkeletonLoader"),Hh=(0,k.ev)()({name:"VSkeletonLoader",inheritAttrs:!1,props:Wh(),setup(e,t){let{attrs:n,slots:i}=t;const{backgroundColorClasses:a,backgroundColorStyles:o}=(0,pe.Y5)((()=>e.color)),{dimensionStyles:l}=(0,ue.$)(e),{elevationClasses:u}=Se(e),{themeClasses:c}=(0,S.ER)(e),{t:d}=(0,w.bU)(),h=(0,r.Fl)((()=>Bh((0,s.FT)(e.type).join(","),{...Mh,...e.types})));return(0,C.L)((()=>{const t=!i.default||e.loading,s=e.boilerplate||!t?{}:{ariaLive:"polite",ariaLabel:d(e.loadingText),role:"alert"};return t?(0,r._)("div",(0,r.dG)({class:["v-skeleton-loader",{"v-skeleton-loader--boilerplate":e.boilerplate},c.value,a.value,u.value],style:[o.value,l.value]},s,n),[h.value]):(0,r._)(r.HY,null,[i.default?.()])})),{}}}),qh=(0,k.ev)()({name:"VSlideGroupItem",props:Ze(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const r=Qe(e,un);return()=>n.default?.({isSelected:r.isSelected.value,select:r.select,toggle:r.toggle,selectedClass:r.selectedClass.value})}});function Gh(e){const t=(0,o.XI)(e());let n=-1;function i(){clearInterval(n)}function a(){i(),(0,r.Y3)((()=>t.value=e()))}function s(r){const a=r?getComputedStyle(r):{transitionDuration:.2},o=1e3*parseFloat(a.transitionDuration)||200;if(i(),t.value<=0)return;const s=performance.now();n=window.setInterval((()=>{const n=performance.now()-s+o;t.value=Math.max(e()-n,0),t.value<=0&&i()}),o)}return(0,o.EB)(i),{clear:i,time:t,start:s,reset:a}}const zh=(0,c.U)({multiLine:Boolean,text:String,timer:[Boolean,String],timeout:{type:[Number,String],default:5e3},vertical:Boolean,...Ee({location:"bottom"}),...St(),...fe(),...Ge(),...(0,S.x$)(),...(0,s.CE)((0,fr.B)({transition:"v-snackbar-transition"}),["persistent","noClickAnimation","retainFocus","captureFocus","disableInitialFocus","scrim","scrollStrategy","stickToTarget","viewportMargin"])},"VSnackbar"),Yh=(0,k.ev)()({name:"VSnackbar",props:zh(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"modelValue"),{positionClasses:a}=kt(e),{scopeId:l}=(0,vr.a)(),{themeClasses:u}=(0,S.ER)(e),{colorClasses:c,colorStyles:d,variantClasses:h}
3336=ze(e),{roundedClasses:f}=me(e),m=Gh((()=>Number(e.timeout))),v=(0,o.iH)(),g=(0,o.iH)(),_=(0,o.XI)(!1),b=(0,o.XI)(0),T=(0,o.iH)(),w=(0,r.f3)(p,void 0);(0,De.U)((()=>!!w),(()=>{const e=y();(0,r.m0)((()=>{T.value=e.mainStyles.value}))})),(0,r.YP)(i,E),(0,r.YP)((()=>e.timeout),E),(0,r.bv)((()=>{i.value&&E()}));let k=-1;function E(){m.reset(),window.clearTimeout(k);const t=Number(e.timeout);if(!i.value||-1===t)return;const n=(0,s.vX)(g.value);m.start(n),k=window.setTimeout((()=>{i.value=!1}),t)}function I(){m.reset(),window.clearTimeout(k)}function x(){_.value=!0,I()}function A(){_.value=!1,E()}function P(e){b.value=e.touches[0].clientY}function $(e){Math.abs(b.value-e.changedTouches[0].clientY)>50&&(i.value=!1)}function O(){_.value&&A()}const N=(0,r.Fl)((()=>e.location.split(" ").reduce(((e,t)=>(e[`v-snackbar--${t}`]=!0,e)),{})));return(0,C.L)((()=>{const t=fr.y.filterProps(e),o=!!(n.default||n.text||e.text);return(0,r.Wm)(fr.y,(0,r.dG)({ref:v,class:["v-snackbar",{"v-snackbar--active":i.value,"v-snackbar--multi-line":e.multiLine&&!e.vertical,"v-snackbar--timer":!!e.timer,"v-snackbar--vertical":e.vertical},N.value,a.value,e.class],style:[T.value,e.style]},t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,contentProps:(0,r.dG)({class:["v-snackbar__wrapper",u.value,c.value,f.value,h.value],style:[d.value],onPointerenter:x,onPointerleave:A},t.contentProps),persistent:!0,noClickAnimation:!0,scrim:!1,scrollStrategy:"none",_disableGlobalStack:!0,onTouchstartPassive:P,onTouchend:$,onAfterLeave:O},l),{default:()=>[qe(!1,"v-snackbar"),e.timer&&!_.value&&(0,r._)("div",{key:"timer",class:"v-snackbar__timer"},[(0,r.Wm)(yt,{ref:g,color:"string"===typeof e.timer?e.timer:"info",max:e.timeout,modelValue:m.time.value},null)]),o&&(0,r._)("div",{key:"content",class:"v-snackbar__content",role:"status","aria-live":"polite"},[n.text?.()??e.text,n.default?.()]),n.actions&&(0,r.Wm)(le,{defaults:{VBtn:{variant:"text",ripple:!1,slim:!0}}},{default:()=>[(0,r._)("div",{class:"v-snackbar__actions"},[n.actions({isActive:i})])]})],activator:n.activator})})),(0,mr.F)({},v)}}),Kh=(0,c.U)({closable:[Boolean,String],closeText:{type:String,default:"$vuetify.dismiss"},modelValue:{type:Array,default:()=>[]},...(0,s.CE)(zh(),["modelValue"])},"VSnackbarQueue"),Xh=(0,k.ev)()({name:"VSnackbarQueue",props:Kh(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{t:a}=(0,w.bU)(),s=(0,o.XI)(!1),l=(0,o.XI)(!1),u=(0,o.XI)();function c(){e.modelValue.length?d():(u.value=void 0,l.value=!1)}function d(){const[t,...i]=e.modelValue;n("update:modelValue",i),u.value="string"===typeof t?{text:t}:t,(0,r.Y3)((()=>{s.value=!0}))}function h(){s.value=!1}(0,r.YP)((()=>e.modelValue.length),((e,t)=>{!l.value&&e>t&&d()})),(0,r.YP)(s,(e=>{e&&(l.value=!0)}));const p=(0,r.Fl)((()=>({color:"string"===typeof e.closable?e.closable:void 0,text:a(e.closeText)})));(0,C.L)((()=>{const t=!(!e.closable&&!i.actions),{modelValue:n,...a}=Yh.filterProps(e);return(0,r._)(r.HY,null,[l.value&&!!u.value&&(i.default?(0,r.Wm)(le,{defaults:{VSnackbar:u.value}},{default:()=>[i.default({item:u.value})]}):(0,r.Wm)(Yh,(0,r.dG)(a,u.value,{modelValue:s.value,"onUpdate:modelValue":e=>s.value=e,onAfterLeave:c}),{text:i.text?()=>i.text?.({item:u.value}):void 0,actions:t?()=>(0,r._)(r.HY,null,[i.actions?(0,r.Wm)(le,{defaults:{VBtn:p.value}},{default:()=>[i.actions({item:u.value,props:{onClick:h}})]}):(0,r.Wm)(At,(0,r.dG)(p.value,{onClick:h}),null)]):void 0}))])}))}}),Jh=(0,c.U)({autoDraw:Boolean,autoDrawDuration:[Number,String],autoDrawEasing:{type:String,default:"ease"},color:String,gradient:{type:Array,default:()=>[]},gradientDirection:{type:String,validator:e=>["top","bottom","left","right"].includes(e),default:"top"},height:{type:[String,Number],default:75},labels:{type:Array,default:()=>[]},labelSize:{type:[Number,String],default:7},lineWidth:{type:[String,Number],default:4},id:String,itemValue:{type:String,default:"value"},modelValue:{type:Array,default:()=>[]},min:[String,Number],max:[String,Number],padding:{type:[String,Number],default:8},showLabels:Boolean,smooth:[Boolean,String,Number],width:{type:[Number,String],default:300}}
3336,"Line"),Zh=(0,c.U)({autoLineWidth:Boolean,...Jh()},"VBarline"),Qh=(0,k.ev)()({name:"VBarline",props:Zh(),setup(e,t){let{slots:n}=t;const i=(0,r.Me)(),a=(0,r.Fl)((()=>e.id||`barline-${i}`)),o=(0,r.Fl)((()=>Number(e.autoDrawDuration)||500)),u=(0,r.Fl)((()=>Boolean(e.showLabels||e.labels.length>0||!!n?.label))),c=(0,r.Fl)((()=>parseFloat(e.lineWidth)||4)),d=(0,r.Fl)((()=>Math.max(e.modelValue.length*c.value,Number(e.width)))),h=(0,r.Fl)((()=>({minX:0,maxX:d.value,minY:0,maxY:parseInt(e.height,10)}))),p=(0,r.Fl)((()=>e.modelValue.map((t=>(0,s.qF)(t,e.itemValue,t)))));function f(t,n){const{minX:r,maxX:i,minY:a,maxY:o}=n,s=t.length;let l=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t);u>0&&null==e.min&&(u=0),l<0&&null==e.max&&(l=0);const c=i/(1===s?2:s),d=(o-a)/(l-u||1),h=o-Math.abs(u*d);return t.map(((e,t)=>{const n=Math.abs(d*e);return{x:r+t*c,y:h-n+Number(e<0)*n,height:n,value:e}}))}const m=(0,r.Fl)((()=>{const t=[],n=f(p.value,h.value),r=n.length;for(let i=0;t.length<r;i++){const r=n[i];let a=e.labels[i];a||(a="object"===typeof r?r.value:r),t.push({x:r.x,value:String(a)})}return t})),v=(0,r.Fl)((()=>f(p.value,h.value))),g=(0,r.Fl)((()=>1===v.value.length?(h.value.maxX-c.value)/2:(Math.abs(v.value[0].x-v.value[1].x)-c.value)/2)),y=(0,r.Fl)((()=>"boolean"===typeof e.smooth?e.smooth?2:0:Number(e.smooth)));(0,C.L)((()=>{const t=e.gradient.slice().length?e.gradient.slice().reverse():[""];return(0,r._)("svg",{display:"block"},[(0,r._)("defs",null,[(0,r._)("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:"left"===e.gradientDirection?"100%":"0",y1:"top"===e.gradientDirection?"100%":"0",x2:"right"===e.gradientDirection?"100%":"0",y2:"bottom"===e.gradientDirection?"100%":"0"},[t.map(((e,n)=>(0,r._)("stop",{offset:n/Math.max(t.length-1,1),"stop-color":e||"currentColor"},null)))])]),(0,r._)("clipPath",{id:`${a.value}-clip`},[v.value.map((t=>(0,r._)("rect",{x:t.x+g.value,y:t.y,width:c.value,height:t.height,rx:y.value,ry:y.value},[e.autoDraw&&!(0,l.QE)()&&(0,r._)(r.HY,null,[(0,r._)("animate",{attributeName:"y",from:t.y+t.height,to:t.y,dur:`${o.value}ms`,fill:"freeze"},null),(0,r._)("animate",{attributeName:"height",from:"0",to:t.height,dur:`${o.value}ms`,fill:"freeze"},null)])])))]),u.value&&(0,r._)("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[m.value.map(((t,i)=>(0,r._)("text",{x:t.x+g.value+c.value/2,y:parseInt(e.height,10)-2+(parseInt(e.labelSize,10)||5.25),"font-size":Number(e.labelSize)||7},[n.label?.({index:i,value:t.value})??t.value])))]),(0,r._)("g",{"clip-path":`url(#${a.value}-clip)`,fill:`url(#${a.value})`},[(0,r._)("rect",{x:0,y:0,width:Math.max(e.modelValue.length*c.value,Number(e.width)),height:e.height},null)])])}))}});function ep(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:75;if(0===e.length)return"";const i=e.shift(),a=e[e.length-1];return(n?`M${i.x} ${r-i.x+2} L${i.x} ${i.y}`:`M${i.x} ${i.y}`)+e.map(((n,r)=>{const a=e[r+1],o=e[r-1]||i,s=a&&np(a,n,o);if(!a||s)return`L${n.x} ${n.y}`;const l=Math.min(rp(o,n),rp(a,n)),u=l/2<t,c=u?l/2:t,d=ip(o,n,c),h=ip(a,n,c);return`L${d.x} ${d.y}S${n.x} ${n.y} ${h.x} ${h.y}`})).join("")+(n?`L${a.x} ${r-i.x+2} Z`:"")}function tp(e){return parseInt(e,10)}
3336function np(e,t,n){return tp(e.x+n.x)===tp(2*t.x)&&tp(e.y+n.y)===tp(2*t.y)}function rp(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function ip(e,t,n){const r={x:e.x-t.x,y:e.y-t.y},i=Math.sqrt(r.x*r.x+r.y*r.y),a={x:r.x/i,y:r.y/i};return{x:t.x+a.x*n,y:t.y+a.y*n}}const ap=(0,c.U)({fill:Boolean,...Jh()},"VTrendline"),op=(0,k.ev)()({name:"VTrendline",props:ap(),setup(e,t){let{slots:n}=t;const i=(0,r.Me)(),a=(0,r.Fl)((()=>e.id||`trendline-${i}`)),u=(0,r.Fl)((()=>Number(e.autoDrawDuration)||(e.fill?500:2e3))),c=(0,o.iH)(0),d=(0,o.iH)(null);function h(t,n){const{minX:r,maxX:i,minY:a,maxY:o}=n;1===t.length&&(t=[t[0],t[0]]);const s=t.length,l=null!=e.max?Number(e.max):Math.max(...t),u=null!=e.min?Number(e.min):Math.min(...t),c=(i-r)/(s-1),d=(o-a)/(l-u||1);return t.map(((e,t)=>({x:r+t*c,y:o-(e-u)*d,value:e})))}const p=(0,r.Fl)((()=>Boolean(e.showLabels||e.labels.length>0||!!n?.label))),f=(0,r.Fl)((()=>parseFloat(e.lineWidth)||4)),m=(0,r.Fl)((()=>Number(e.width))),v=(0,r.Fl)((()=>{const t=Number(e.padding);return{minX:t,maxX:m.value-t,minY:t,maxY:parseInt(e.height,10)-t}})),g=(0,r.Fl)((()=>e.modelValue.map((t=>(0,s.qF)(t,e.itemValue,t))))),y=(0,r.Fl)((()=>{const t=[],n=h(g.value,v.value),r=n.length;for(let i=0;t.length<r;i++){const r=n[i];let a=e.labels[i];a||(a="object"===typeof r?r.value:r),t.push({x:r.x,value:String(a)})}return t}));function _(t){const n="boolean"===typeof e.smooth?e.smooth?8:0:Number(e.smooth);return ep(h(g.value,v.value),n,t,parseInt(e.height,10))}(0,r.YP)((()=>e.modelValue),(async()=>{if(await(0,r.Y3)(),!e.autoDraw||!d.value||(0,l.QE)())return;const t=d.value,n=t.getTotalLength();e.fill?(t.style.transformOrigin="bottom center",t.style.transition="none",t.style.transform="scaleY(0)",t.getBoundingClientRect(),t.style.transition=`transform ${u.value}ms ${e.autoDrawEasing}`,t.style.transform="scaleY(1)"):(t.style.strokeDasharray=`${n}`,t.style.strokeDashoffset=`${n}`,t.getBoundingClientRect(),t.style.transition=`stroke-dashoffset ${u.value}ms ${e.autoDrawEasing}`,t.style.strokeDashoffset="0"),c.value=n}),{immediate:!0}),(0,C.L)((()=>{const t=e.gradient.slice().length?e.gradient.slice().reverse():[""];return(0,r._)("svg",{display:"block","stroke-width":parseFloat(e.lineWidth)??4},[(0,r._)("defs",null,[(0,r._)("linearGradient",{id:a.value,gradientUnits:"userSpaceOnUse",x1:"left"===e.gradientDirection?"100%":"0",y1:"top"===e.gradientDirection?"100%":"0",x2:"right"===e.gradientDirection?"100%":"0",y2:"bottom"===e.gradientDirection?"100%":"0"},[t.map(((e,n)=>(0,r._)("stop",{offset:n/Math.max(t.length-1,1),"stop-color":e||"currentColor"},null)))])]),p.value&&(0,r._)("g",{key:"labels",style:{textAnchor:"middle",dominantBaseline:"mathematical",fill:"currentColor"}},[y.value.map(((t,i)=>(0,r._)("text",{x:t.x+f.value/2+f.value/2,y:parseInt(e.height,10)-4+(parseInt(e.labelSize,10)||5.25),"font-size":Number(e.labelSize)||7},[n.label?.({index:i,value:t.value})??t.value])))]),(0,r._)("path",{ref:d,d:_(e.fill),fill:e.fill?`url(#${a.value})`:"none",stroke:e.fill?"none":`url(#${a.value})`},null),e.fill&&(0,r._)("path",{d:_(!1),fill:"none",stroke:e.color??e.gradient?.[0]},null)])}))}}),sp=(0,c.U)({type:{type:String,default:"trend"},...Zh(),...ap()},"VSparkline"),lp=(0,k.ev)()({name:"VSparkline",props:sp(),setup(e,t){let{slots:n}=t;const{textColorClasses:i,textColorStyles:a}=(0,pe.rY)((()=>e.color)),o=(0,r.Fl)((()=>Boolean(e.showLabels||e.labels.length>0||!!n?.label))),s=(0,r.Fl)((()=>{let t=parseInt(e.height,10);return o.value&&(t+=1.5*parseInt(e.labelSize,10)),t}));(0,C.L)((()=>{const t="trend"===e.type?op:Qh,o="trend"===e.type?op.filterProps(e):Qh.filterProps(e);return(0,r.Wm)(t,(0,r.dG)({key:e.type,class:i.value,style:a.value,viewBox:`0 0 ${e.width} ${parseInt(s.value,10)}`},o),n)}))}}),up=(0,c.U)({...(0,a.l)(),...yr({offset:8,minWidth:0,openDelay:0,closeDelay:100,location:"top center",transition:"scale-transition"})},"VSpeedDial"),cp=(0,k.ev)()({name:"VSpeedDial",props:up(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,$e.z)(e,"modelValue"),a=(0,o.iH)(),s=(0,r.Fl)((()=>{const[t,n="center"]=e.location?.split(" ")??[];return`${t} ${n}`})),l=(0,r.Fl)((()=>({[`v-speed-dial__content--${s.value.replace(" ","-")}`]:!0})));return(0,C.L)((()=>{const t=_r.filterProps(e);return(0,r.Wm)(_r,(0,r.dG)(t,{modelValue:i.value,"onUpdate:modelValue":e=>i.value=e,class:e.class,style:e.style,contentClass:["v-speed-dial__content",l.value,e.contentClass],location:s.value,ref:a,transition:"fade-transition"}),{...n,default:t=>(0,r.Wm)(le,{defaults:{VBtn:{size:"small"}}},{default:()=>[(0,r.Wm)(ve.J,{appear:!0,group:!0,transition:e.transition},{default:()=>[n.default?.(t)]})]})})})),{}}}),dp=Symbol.for("vuetify:v-stepper"),hp=(0,c.U)({color:String,disabled:{type:[Boolean,String],default:!1},prevText:{type:String,default:"$vuetify.stepper.prev"},nextText:{type:String,default:"$vuetify.stepper.next"}},"VStepperActions"),pp=(0,k.ev)()({name:"VStepperActions",props:hp(),emits:{"click:prev":()=>!0,"click:next":()=>!0},setup(e,t){let{emit:n,slots:i}=t;const{t:a}=(0,w.bU)();function o(){n("click:prev")}function s(){n("click:next")}return(0,C.L)((()=>{const t={onClick:o},n={onClick:s};return(0,r._)("div",{class:"v-stepper-actions"}
3336,[(0,r.Wm)(le,{defaults:{VBtn:{disabled:["prev",!0].includes(e.disabled),text:a(e.prevText),variant:"text"}}},{default:()=>[i.prev?.({props:t})??(0,r.Wm)(At,t,null)]}),(0,r.Wm)(le,{defaults:{VBtn:{color:e.color,disabled:["next",!0].includes(e.disabled),text:a(e.nextText),variant:"tonal"}}},{default:()=>[i.next?.({props:n})??(0,r.Wm)(At,n,null)]})])})),{}}}),fp=Nt("v-stepper-header"),mp=(0,c.U)({color:String,title:String,subtitle:String,complete:Boolean,completeIcon:{type:st.lE,default:"$complete"},editable:Boolean,editIcon:{type:st.lE,default:"$edit"},error:Boolean,errorIcon:{type:st.lE,default:"$error"},icon:st.lE,ripple:{type:[Boolean,Object],default:!0},rules:{type:Array,default:()=>[]}},"StepperItem"),vp=(0,c.U)({...mp(),...Ze()},"VStepperItem"),gp=(0,k.ev)()({name:"VStepperItem",directives:{vRipple:It.Z},props:vp(),emits:{"group:selected":e=>!0},setup(e,t){let{slots:n}=t;const a=Qe(e,dp,!0),o=(0,r.Fl)((()=>a?.value.value??e.value)),s=(0,r.Fl)((()=>e.rules.every((e=>!0===e())))),l=(0,r.Fl)((()=>!e.disabled&&e.editable)),u=(0,r.Fl)((()=>!e.disabled&&e.editable)),c=(0,r.Fl)((()=>e.error||!s.value)),d=(0,r.Fl)((()=>e.complete||e.rules.length>0&&s.value)),h=(0,r.Fl)((()=>c.value?e.errorIcon:d.value?e.completeIcon:a.isSelected.value&&e.editable?e.editIcon:e.icon)),p=(0,r.Fl)((()=>({canEdit:u.value,hasError:c.value,hasCompleted:d.value,title:e.title,subtitle:e.subtitle,step:o.value,value:e.value})));return(0,C.L)((()=>{const t=(!a||a.isSelected.value||d.value||u.value)&&!c.value&&!e.disabled,s=!(null==e.title&&!n.title),f=!(null==e.subt
3336itle&&!n.subtitle);function m(){a?.toggle()}return(0,r.wy)((0,r._)("button",{class:(0,i.C_)(["v-stepper-item",{"v-stepper-item--complete":d.value,"v-stepper-item--disabled":e.disabled,"v-stepper-item--error":c.value},a?.selectedClass.value]),disabled:!e.editable,type:"button",onClick:m},[l.value&&qe(!0,"v-stepper-item"),(0,r.Wm)(Bt,{key:"stepper-avatar",class:"v-stepper-item__avatar",color:t?e.color:void 0,size:24},{default:()=>[n.icon?.(p.value)??(h.value?(0,r.Wm)(ut,{icon:h.value},null):o.value)]}),(0,r._)("div",{class:"v-stepper-item__content"},[s&&(0,r._)("div",{key:"title",class:"v-stepper-item__title"},[n.title?.(p.value)??e.title]),f&&(0,r._)("div",{key:"subtitle",class:"v-stepper-item__subtitle"},[n.subtitle?.(p.value)??e.subtitle]),n.default?.(p.value)])]),[[It.Z,e.editable&&e.ripple,null]])})),{}}}),yp=(0,c.U)({...(0,s.CE)(as(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VStepperWindow"),_p=(0,k.ev)()({name:"VStepperWindow",props:yp(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,r.f3)(dp,null),a=(0,$e.z)(e,"modelValue"),o=(0,r.Fl)({get(){return null==a.value&&i?i.items.value.find((e=>i.selected.value.includes(e.id)))?.value:a.value},set(e){a.value=e}});return(0,C.L)((()=>{const t=os.filterProps(e);return(0,r.Wm)(os,(0,r.dG)({_as:"VStepperWindow"},t,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,class:["v-stepper-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)})),{}}}),bp=(0,c.U)({...cs()},"VStepperWindowItem"),Tp=(0,k.ev)()({name:"VStepperWindowItem",props:bp(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>{const t=ds.filterProps(e);return(0,r.Wm)(ds,(0,r.dG)({_as:"VStepperWindowItem"},t,{class:["v-stepper-window-item",e.class],style:e.style}),n)})),{}}}),wp=(0,c.U)({altLabels:Boolean,bgColor:String,completeIcon:st.lE,editIcon:st.lE,editable:Boolean,errorIcon:st.lE,hideActions:Boolean,items:{type:Array,default:()=>[]},itemTitle:{type:[String,Array,Function],default:"title"},itemValue:{type:[String,Array,Function],default:"value"},itemProps:{type:[Boolean,String,Array,Function],default:"props"},nonLinear:Boolean,flat:Boolean,...(0,Qt.Tp)()},"Stepper"),Sp=(0,c.U)({...wp(),...Je({mandatory:"force",selectedClass:"v-stepper-item--selected"}),...br(),...(0,s.ei)(hp(),["prevText","nextText"])},"VStepper"),kp=(0,k.ev)()({name:"VStepper",props:Sp(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const{items:i,next:a,prev:l,selected:u}=et(e,dp),{displayClasses:c,mobile:d}=(0,Qt.AW)(e),{completeIcon:h,editIcon:p,errorIcon:f,color:m,editable:v,prevText:g,nextText:y}=(0,o.BK)(e),_=(0,r.Fl)((()=>e.items.map(((t,n)=>{const r=(0,s.qF)(t,e.itemTitle,t),i=(0,s.qF)(t,e.itemValue,n+1),a=!0===e.itemProps?t:(0,s.qF)(t,e.itemProps),o={title:r,value:i,...a};return{title:o.title,value:o.value,props:o,raw:t}})))),b=(0,r.Fl)((()=>i.value.findIndex((e=>u.value.includes(e.id))))),T=(0,r.Fl)((()=>e.disabled?e.disabled:0===b.value?"prev":b.value===i.value.length-1&&"next"));return(0,oe.AF)({VStepperItem:{editable:v,errorIcon:f,completeIcon:h,editIcon:p,prevText:g,nextText:y},VStepperActions:{color:m,disabled:T,prevText:g,nextText:y}}),(0,C.L)((()=>{const t=Tr.filterProps(e),i=!(!n.header&&!e.items.length),o=e.items.length>0,s=!e.hideActions&&!(!o&&!n.actions);return(0,r.Wm)(Tr,(0,r.dG)(t,{color:e.bgColor,class:["v-stepper",{"v-stepper--alt-labels":e.altLabels,"v-stepper--flat":e.flat,"v-stepper--non-linear":e.nonLinear,"v-stepper--mobile":d.value},c.value,e.class],style:e.style}),{default:()=>[i&&(0,r.Wm)(fp,{key:"stepper-header"},{default:()=>[_.value.map(((e,t)=>{let{raw:i,...a}=e;return(0,r._)(r.HY,null,[!!t&&(0,r.Wm)(_n,null,null),(0,r.Wm)(gp,a.props,{default:n[`header-item.${a.value}`]??n.header,icon:n.icon,title:n.title,subtitle:n.subtitle})])}))]}),o&&(0,r.Wm)(_p,{key:"stepper-window"},{default:()=>[_.value.map((e=>(0,r.Wm)(Tp,{value:e.value},{default:()=>n[`item.${e.value}`]?.(e)??n.item?.(e)})))]}),n.default?.({prev:l,next:a}),s&&(n.actions?.({next:a,prev:l})??(0,r.Wm)(pp,{key:"stepper-actions","onClick:prev":l,"onClick:next":a},n))]})})),{prev:l,next:a}}}),Cp=(0,c.U)({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...Br(),...Yt()},"VSwitch"),Ep=(0,k.ev)()({name:"VSwitch",inheritAttrs:!1,props:Cp(),emits:{"update:focused":e=>!0,"update:modelValue":e=>!0,"update:indeterminate":e=>!0},setup(e,t){let{attrs:n,slots:a}=t;const u=(0,$e.z)(e,"indeterminate"),c=(0,$e.z)(e,"modelValue"),{loaderClasses:d}=bt(e),{isFocused:h,focus:p,blur:f}=Ir(e),m=(0,o.iH)(),v=(0,o.iH)(),g=l.lK&&window.matchMedia("(forced-colors: active)").matches,y=(0,o.Vh)((()=>"string"===typeof e.loading&&""!==e.loading?e.loading:e.color)),_=(0,r.Me)(),b=(0,o.Vh)((()=>e.id||`switch-${_}`));function T(){u.value&&(u.value=!1)}function w(e){e.stopPropagation(),e.preventDefault(),m.value?.input?.click()}return(0,C.L)((()=>
3336{const[t,o]=(0,s.An)(n),l=jr.filterProps(e),_=Xt.filterProps(e);return(0,r.Wm)(jr,(0,r.dG)({ref:v,class:["v-switch",{"v-switch--flat":e.flat},{"v-switch--inset":e.inset},{"v-switch--indeterminate":u.value},d.value,e.class]},t,l,{modelValue:c.value,"onUpdate:modelValue":e=>c.value=e,id:b.value,focused:h.value,style:e.style}),{...a,default:t=>{let{id:n,messagesId:s,isDisabled:l,isReadonly:d,isValid:h}=t;const v={model:c,isValid:h};return(0,r.Wm)(Xt,(0,r.dG)({ref:m},_,{modelValue:c.value,"onUpdate:modelValue":[e=>c.value=e,T],id:n.value,"aria-describedby":s.value,type:"checkbox","aria-checked":u.value?"mixed":void 0,disabled:l.value,readonly:d.value,onFocus:p,onBlur:f},o),{...a,default:e=>{let{backgroundColorClasses:t,backgroundColorStyles:n}=e;return(0,r._)("div",{class:(0,i.C_)(["v-switch__track",g?void 0:t.value]),style:(0,i.j5)(n.value),onClick:w},[a["track-true"]&&(0,r._)("div",{key:"prepend",class:"v-switch__track-true"},[a["track-true"](v)]),a["track-false"]&&(0,r._)("div",{key:"append",class:"v-switch__track-false"},[a["track-false"](v)])])},input:t=>{let{inputNode:n,icon:o,backgroundColorClasses:s,backgroundColorStyles:l}=t;return(0,r._)(r.HY,null,[n,(0,r._)("div",{class:(0,i.C_)(["v-switch__thumb",{"v-switch__thumb--filled":o||e.loading},e.inset||g?void 0:s.value]),style:(0,i.j5)(e.inset?void 0:l.value)},[a.thumb?(0,r.Wm)(le,{defaults:{VIcon:{icon:o,size:"x-small"}}},{default:()=>[a.thumb({...v,icon:o})]}):(0,r.Wm)(Y,null,{default:()=>[e.loading?(0,r.Wm)(Tt,{name:"v-switch",active:!0,color:!1===h.value?void 0:y.value},{default:e=>a.loader?a.loader(e):(0,r.Wm)(ft,{active:e.isActive,color:e.color,indeterminate:!0,size:"16",width:"2"},null)}):o&&(0,r.Wm)(ut,{key:String(o),icon:o,size:"x-small"},null)]})])])}})}})})),(0,mr.F)({},v)}}),Ip=(0,c.U)({color:String,height:[Number,String],window:Boolean,...(0,a.l)(),...we(),...g(),...fe(),...x(),...(0,S.x$)()},"VSystemBar"),xp=(0,k.ev)()({name:"VSystemBar",props:Ip(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{backgroundColorClasses:s,backgroundColorStyles:l}=(0,pe.Y5)((()=>e.color)),{elevationClasses:u}
3336=Se(e),{roundedClasses:c}=me(e),{ssrBootStyles:d}=Le(),h=(0,r.Fl)((()=>e.height??(e.window?32:24))),{layoutItemStyles:p}=_({id:e.name,order:(0,r.Fl)((()=>parseInt(e.order,10))),position:(0,o.XI)("top"),layoutSize:h,elementSize:h,active:(0,r.Fl)((()=>!0)),absolute:(0,o.Vh)((()=>e.absolute))});return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-system-bar",{"v-system-bar--window":e.window},a.value,s.value,u.value,c.value,e.class]),style:(0,i.j5)([l.value,p.value,d.value,e.style])},n))),{}}}),Ap=Symbol.for("vuetify:v-tabs"),Pp=(0,c.U)({fixed:Boolean,sliderColor:String,sliderTransition:String,sliderTransitionDuration:[String,Number],hideSlider:Boolean,inset:Boolean,direction:{type:String,default:"horizontal"},...(0,s.CE)(xt({selectedClass:"v-tab--selected",variant:"text"}),["active","block","flat","location","position","symbol"])},"VTab"),$p=(0,k.ev)()({name:"VTab",props:Pp(),setup(e,t){let{slots:n,attrs:a}=t;const{textColorClasses:s,textColorStyles:l}=(0,pe.rY)((()=>e.sliderColor)),{backgroundColorClasses:u,backgroundColorStyles:c}=(0,pe.Y5)((()=>e.sliderColor)),d=(0,o.iH)(),h=(0,o.iH)(),p=(0,r.Fl)((()=>"horizontal"===e.direction)),f=(0,r.Fl)((()=>d.value?.group?.isSelected.value??!1));function m(e,t){return{opacity:[0,1]}}function v(t,n){return"vertical"===e.direction?{transform:["scaleY(0)","scaleY(1)"]}:{transform:["scaleX(0)","scaleX(1)"]}}function g(e,t){const n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=p.value?"x":"y",a=p.value?"X":"Y",o=p.value?"right":"bottom",s=p.value?"width":"height",l=n[i],u=r[i],c=l>u?n[o]-r[o]:n[i]-r[i],d=Math.sign(c)>0?p.value?"right":"bottom":Math.sign(c)<0?p.value?"left":"top":"center",h=Math.abs(c)+(Math.sign(c)<0?n[s]:r[s]),f=h/Math.max(n[s],r[s])||0,m=n[s]/r[s]||0,v=1.5;return{transform:[`translate${a}(${c}px) scale${a}(${m})`,`translate${a}(${c/v}px) scale${a}(${(f-1)/v+1})`,"none"],transformOrigin:Array(3).fill(d)}}function y(t){let{value:n}=t;if(n){const t=d.value?.$el.parentElement?.querySelector(".v-tab--selected .v-tab__slider"),n=h.value;if(!t||!n)return;const r=getComputedStyle(t).backgroundColor,i={fade:m,grow:v,shift:g}[e.sliderTransition??"shift"]??g,a=Number(e.sliderTransitionDuration)||({fade:400,grow:350,shift:225}[e.sliderTransition??"shift"]??225);(0,R.j)(n,{backgroundColor:[r,r],...i(n,t)},{duration:a,easing:F.Ly})}}return(0,C.L)((()=>{const t=At.filterProps(e);return(0,r.Wm)(At,(0,r.dG)({symbol:Ap,ref:d,class:["v-tab",e.class,f.value&&e.inset?u.value:[]],style:[e.style,f.value&&e.inset?c.value:[],{backgroundColor:f.value&&e.inset?"transparent !important":void 0}],tabindex:f.value?0:-1,role:"tab","aria-selected":String(f.value),active:!1},t,a,{block:e.fixed,maxWidth:e.fixed?300:void 0,"onGroup:selected":y}),{...n,default:()=>(0,r._)(r.HY,null,[n.default?.()??e.text,!e.hideSlider&&(0,r._)("div",{ref:h,class:(0,i.C_)(["v-tab__slider",e.inset?u.value:s.value]),style:(0,i.j5)([l.value,e.inset?c.value:s.value])},null)])})})),(0,mr.F)({},d)}}),Op=(0,c.U)({...(0,s.CE)(as(),["continuous","nextIcon","prevIcon","showArrows","touch","mandatory"])},"VTabsWindow"),Np=(0,k.ev)()({name:"VTabsWindow",props:Op(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const i=(0,r.f3)(Ap,null),a=(0,$e.z)(e,"modelValue"),o=(0,r.Fl)({get(){return null==a.value&&i?i.items.value.find((e=>i.selected.value.includes(e.id)))?.value:a.value},set(e){a.value=e}});return(0,C.L)((()=>{const t=os.filterProps(e);return(0,r.Wm)(os,(0,r.dG)({_as:"VTabsWindow"},t,{modelValue:o.value,"onUpdate:modelValue":e=>o.value=e,class:["v-tabs-window",e.class],style:e.style,mandatory:!1,touch:!1}),n)})),{}}}),Lp=(0,c.U)({...cs()},"VTabsWindowItem"),Dp=(0,k.ev)()({name:"VTabsWindowItem",props:Lp(),setup(e,t){let{slots:n}=t;return(0,C.L)((()=>{const t=ds.filterProps(e);return(0,r.Wm)(ds,(0,r.dG)({_as:"VTabsWindowItem"},t,{class:["v-tabs-window-item",e.class],style:e.style}),n)})),{}}});function Rp(e){return e?e.map((e=>(0,s.Kn)(e)?e:{text:e,value:e})):[]}const Fp=(0,c.U)({alignTabs:{type:String,default:"start"},color:String,fixedTabs:Boolean,items:{type:Array,default:()=>[]},stacked:Boolean,bgColor:String,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,inset:Boolean,insetPadding:[String,Number],insetRadius:[String,Number],sliderColor:String,...(0,s.ei)(Pp(),["spaced","sliderTransition","sliderTransitionDuration"]),...cn({mandatory:"force",selectedClass:"v-tab-item--selected"}),...Ve(),...x()},"VTabs"),Mp=(0,k.ev)()({name:"VTabs",props:Fp(),emits:{"update:modelValue":e=>!0},setup(e,t){let{attrs:n,slots:i}=t;const a=(0,$e.z)(e,"modelValue"),l=(0,r.Fl)((()=>Rp(e.items))),{densityClasses:u}=Ue(e),{backgroundColorClasses:c,backgroundColorStyles:d}=(0,pe.Y5)((()=>e.bgColor)),{scopeId:h}=(0,vr.a)();return(0,oe.AF)({VTab:{color:(0,o.Vh)(e,"color"),direction:(0,o.
3336Vh)(e,"direction"),stacked:(0,o.Vh)(e,"stacked"),fixed:(0,o.Vh)(e,"fixedTabs"),inset:(0,o.Vh)(e,"inset"),sliderColor:(0,o.Vh)(e,"sliderColor"),sliderTransition:(0,o.Vh)(e,"sliderTransition"),sliderTransitionDuration:(0,o.Vh)(e,"sliderTransitionDuration"),hideSlider:(0,o.Vh)(e,"hideSlider")}}),(0,C.L)((()=>{const t=dn.filterProps(e),o=!!(i.window||e.items.length>0);return(0,r._)(r.HY,null,[(0,r.Wm)(dn,(0,r.dG)(t,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,class:["v-tabs",`v-tabs--${e.direction}`,`v-tabs--align-tabs-${e.alignTabs}`,{"v-tabs--fixed-tabs":e.fixedTabs,"v-tabs--grow":e.grow,"v-tabs--inset":e.inset,"v-tabs--stacked":e.stacked},u.value,c.value,e.class],style:[{"--v-tabs-height":(0,s.kb)(e.height),"--v-tabs-inset-padding":e.inset?(0,s.kb)(e.insetPadding):void 0,"--v-tabs-inset-radius":e.inset?(0,s.kb)(e.insetRadius):void 0},d.value,e.style],role:"tablist",symbol:Ap},h,n),{default:i.default??(()=>l.value.map((t=>i.tab?.({item:t})??(0,r.Wm)($p,(0,r.dG)(t,{key:t.text,value:t.value,spaced:e.spaced}),{default:i[`tab.${t.value}`]?()=>i[`tab.${t.value}`]?.({item:t}):void 0})))),prev:i.prev,next:i.next}),o&&(0,r.Wm)(Np,(0,r.dG)({modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,key:"tabs-window"},h),{default:()=>[l.value.map((e=>i.item?.({item:e})??(0,r.Wm)(Dp,{value:e.value},{default:()=>i[`item.${e.value}`]?.({item:e})}))),i.window?.()]})])})),{}}}),Vp=(0,c.U)({autoGrow:Boolean,autofocus:Boolean,counter:[Boolean,Number,String],counterValue:Function,prefix:String,placeholder:String,persistentPlaceholder:Boolean,persistentCounter:Boolean,noResize:Boolean,rows:{type:[Number,String],default:5,validator:e=>!isNaN(parseFloat(e))},maxHeight:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},maxRows:{type:[Number,String],validator:e=>!isNaN(parseFloat(e))},suffix:String,modelModifiers:Object,...Wr(),...(0,s.CE)(Br(),["direction"]),...Ar()},"VTextarea"),Up=(0,k.ev)()({name:"VTextarea",directives:{vIntersect:ge.Z},inheritAttrs:!1,props:Vp(),emits:{"click:control":e=>!0,"mousedown:control":e=>!0,"update:focused":e=>!0,"update:modelValue":e=>!0,"update:rows":e=>!0},setup(e,t){let{attrs:n,emit:a,slots:l}=t;const u=(0,$e.z)(e,"modelValue"),{isFocused:c,focus:d,blur:h}=Ir(e),{onIntersect:p}=qr(e),f=(0,r.Fl)((()=>"function"===typeof e.counterValue?e.counterValue(u.value):(u.value||"").toString().length)),m=(0,r.Fl)((()=>n.maxlength?n.maxlength:!e.counter||"number"!==typeof e.counter&&"string"!==typeof e.counter?void 0:e.counter)),v=(0,o.iH)(),g=(0,o.iH)(),y=(0,o.XI)(""),_=(0,o.iH)(),b=(0,o.iH)(0),{platform:T}=(0,Qt.AW)(),w=Hr(e),S=(0,r.Fl)((()=>e.persistentPlaceholder||c.value||e.active));function k(){w.isSuppressing.value&&w.update(),_.value!==document.activeElement&&_.value?.focus(),c.value||d()}function E(e){k(),a("click:control",e)}function I(e){a("mousedown:control",e)}function x(t){t.stopPropagation(),k(),(0,r.Y3)((()=>{u.value="",(0,s.dr)(e["onClick:clear"],t)}))}function A(t){const n=t.target;if(!e.modelModifiers?.trim)return void(u.value=n.value);const i=n.value,a=n.selectionStart,o=n.selectionEnd;u.value=i,(0,r.Y3)((()=>{let e=0;i.trimStart().length===n.value.length&&(e=i.length-n.value.length),null!=a&&(n.selectionStart=a-e),null!=o&&(n.selectionEnd=o-e)}))}const P=(0,o.iH)(),O=(0,o.iH)(Number(e.rows)),N=(0,r.Fl)((()=>["plain","underlined"].includes(e.variant)));function L(){(0,r.Y3)((()=>{if(!_.value)return;if(T.value.firefox)return void(b.value=12);const{offsetWidth:e,clientWidth:t}=_.value;b.value=Math.max(0,e-t)})),e.autoGrow&&(0,r.Y3)((()=>{if(!P.value||!g.value)return;const t=getComputedStyle(P.value),n=getComputedStyle(g.value.$el),r=parseFloat(t.getPropertyValue("--v-field-padding-top"))+parseFloat(t.getPropertyValue("--v-input-padding-top"))+parseFloat(t.getPropertyValue("--v-field-padding-bottom")),i=P.value.scrollHeight,a=parseFloat(t.lineHeight),o=Math.max(parseFloat(e.rows)*a+r,parseFloat(n.getPropertyValue("--v-input-control-height"))),l=e.maxHeight?parseFloat(e.maxHeight):parseFloat(e.maxRows)*a+r||1/0,u=(0,s.uZ)(i??0,o,l);O.value=Math.floor((u-r)/a),y.value=(0,s.kb)(u)}))}let D;return(0,r.m0)((()=>{e.autoGrow||(O.value=Number(e.rows))}
3336)),(0,r.bv)(L),(0,r.YP)(u,L),(0,r.YP)((()=>e.rows),L),(0,r.YP)((()=>e.maxHeight),L),(0,r.YP)((()=>e.maxRows),L),(0,r.YP)((()=>e.density),L),(0,r.YP)(O,(e=>{a("update:rows",e)})),(0,r.YP)(P,(e=>{e?(D=new ResizeObserver(L),D.observe(P.value)):D?.disconnect()})),(0,r.Jd)((()=>{D?.disconnect()})),(0,C.L)((()=>{const t=!!(l.counter||e.counter||e.counterValue),a=!0!==e.hideDetails&&!!(l.details||t&&(e.persistentCounter||!1===e.hideDetails||c.value)),[o,d]=(0,s.An)(n),{modelValue:T,...C}=jr.filterProps(e),L={...Pr.filterProps(e),"onClick:clear":x};return(0,r.Wm)(jr,(0,r.dG)({ref:v,modelValue:u.value,"onUpdate:modelValue":e=>u.value=e,class:["v-textarea v-text-field",{"v-textarea--prefixed":e.prefix,"v-textarea--suffixed":e.suffix,"v-text-field--prefixed":e.prefix,"v-text-field--suffixed":e.suffix,"v-textarea--auto-grow":e.autoGrow,"v-textarea--no-resize":e.noResize||e.autoGrow,"v-input--plain-underlined":N.value},e.class],style:[{"--v-textarea-max-height":e.maxHeight?(0,s.kb)(e.maxHeight):void 0,"--v-textarea-scroll-bar-width":(0,s.kb)(b.value)},e.style]},o,C,{centerAffix:1===O.value&&!N.value,focused:c.value}),{...l,default:t=>{let{id:n,isDisabled:a,isDirty:o,isReadonly:s,isValid:f,hasDetails:m}=t;return(0,r.Wm)(Pr,(0,r.dG)({ref:g,style:{"--v-textarea-control-height":y.value},onClick:E,onMousedown:I,"onClick:prependInner":e["onClick:prependInner"],"onClick:appendInner":e["onClick:appendInner"]},L,{id:n.value,active:S.value||o.value,labelId:`${n.value}-label`,centerAffix:1===O.value&&!N.value,dirty:o.value||e.dirty,disabled:a.value,focused:c.value,details:m.value,error:!1===f.value}),{...l,default:t=>{let{props:{class:o,...l},controlRef:c}=t;return(0,r._)(r.HY,null,[e.prefix&&(0,r._)("span",{class:"v-text-field__prefix"},[e.prefix]),(0,r.wy)((0,r._)("textarea",(0,r.dG)({ref:e=>_.value=c.value=e,class:o,value:u.value,onInput:A,autofocus:e.autofocus,readonly:s.value,disabled:a.value,placeholder:e.placeholder,rows:e.rows,name:w.fieldName.value,autocomplete:w.fieldAutocomplete.value,onFocus:k,onBlur:h,"aria-labelledby":`${n.value}-label`},l,d),null),[[ge.Z,{handler:p},null,{once:!0}]]),e.autoGrow&&(0,r.wy)((0,r._)("textarea",{class:(0,i.C_)([o,"v-textarea__sizer"]),id:`${l.id}-sizer`,"onUpdate:modelValue":e=>u.value=e,ref:P,readonly:!0,"aria-hidden":"true"},null),[[$.nr,u.value]]),e.suffix&&(0,r._)("span",{class:"v-text-field__suffix"},[e.suffix])])}})},details:a?n=>(0,r._)(r.HY,null,[l.details?.(n),t&&(0,r._)(r.HY,null,[(0,r._)("span",null,null),(0,r.Wm)(Sr,{active:e.persistentCounter||c.value,value:f.value,max:m.value,disabled:e.disabled},l.counter)])]):void 0})})),(0,mr.F)({},v,g,_)}}),Bp=(0,c.U)({withBackground:Boolean,...(0,a.l)(),...(0,S.x$)(),...x()},"VThemeProvider"),jp=(0,k.ev)()({name:"VThemeProvider",props:Bp(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e);return()=>e.withBackground?(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-theme-provider",a.value,e.class]),style:(0,i.j5)(e.style)},{default:()=>[n.default?.()]}):n.default?.()}}),Wp=(0,c.U)({dotColor:String,fillDot:Boolean,hideDot:Boolean,icon:st.lE,iconColor:String,lineColor:String,...(0,a.l)(),...fe(),...je(),...we()},"VTimelineDivider"),Hp=(0,k.ev)()({name:"VTimelineDivider",props:Wp(),setup(e,t){let{slots:n}=t;const{sizeClasses:a,sizeStyles:o}=We(e,"v-timeline-divider__dot"),{backgroundColorStyles:s,backgroundColorClasses:l}=(0,pe.Y5)((()=>
3336e.dotColor)),{roundedClasses:u}=me(e,"v-timeline-divider__dot"),{elevationClasses:c}=Se(e),{backgroundColorClasses:d,backgroundColorStyles:h}=(0,pe.Y5)((()=>e.lineColor));return(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-timeline-divider",{"v-timeline-divider--fill-dot":e.fillDot},e.class]),style:(0,i.j5)(e.style)},[(0,r._)("div",{class:(0,i.C_)(["v-timeline-divider__before",d.value]),style:(0,i.j5)(h.value)},null),!e.hideDot&&(0,r._)("div",{key:"dot",class:(0,i.C_)(["v-timeline-divider__dot",c.value,u.value,a.value]),style:(0,i.j5)(o.value)},[(0,r._)("div",{class:(0,i.C_)(["v-timeline-divider__inner-dot",l.value,u.value]),style:(0,i.j5)(s.value)},[n.default?(0,r.Wm)(le,{key:"icon-defaults",disabled:!e.icon,defaults:{VIcon:{color:e.iconColor,icon:e.icon,size:e.size}}},n.default):(0,r.Wm)(ut,{key:"icon",color:e.iconColor,icon:e.icon,size:e.size},null)])]),(0,r._)("div",{class:(0,i.C_)(["v-timeline-divider__after",d.value]),style:(0,i.j5)(h.value)},null)]))),{}}}),qp=(0,c.U)({density:String,dotColor:String,fillDot:Boolean,hideDot:Boolean,hideOpposite:{type:Boolean,default:void 0},icon:st.lE,iconColor:String,lineInset:[Number,String],side:{type:String,validator:e=>null==e||["start","end"].includes(e)},...(0,a.l)(),...(0,ue.x)(),...we(),...fe(),...je(),...x()},"VTimelineItem"),Gp=(0,k.ev)()({name:"VTimelineItem",props:qp(),setup(e,t){let{slots:n}=t;const{dimensionStyles:a}=(0,ue.$)(e),l=(0,o.XI)(0),u=(0,o.iH)();return(0,r.YP)(u,(e=>{e&&(l.value=e.$el.querySelector(".v-timeline-divider__dot")?.getBoundingClientRect().width??0)}),{flush:"post"}),(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-timeline-item",{"v-timeline-item--fill-dot":e.fillDot,"v-timeline-item--side-start":"start"===e.side,"v-timeline-item--side-end":"end"===e.side},e.class]),style:(0,i.j5)([{"--v-timeline-dot-size":(0,s.kb)(l.value),"--v-timeline-line-inset":e.lineInset?`calc(var(--v-timeline-dot-size) / 2 + ${(0,s.kb)(e.lineInset)})`:(0,s.kb)(0)},e.style])},[(0,r._)("div",{class:"v-timeline-item__body",style:(0,i.j5)(a.value)},[n.default?.()]),(0,r.Wm)(Hp,{ref:u,hideDot:e.hideDot,icon:e.icon,iconColor:e.iconColor,size:e.size,elevation:e.elevation,dotColor:e.dotColor,fillDot:e.fillDot,rounded:e.rounded},{default:n.icon}),"compact"!==e.density&&(0,r._)("div",{class:"v-timeline-item__opposite"},[!e.hideOpposite&&n.opposite?.()])]))),{}}}),zp=(0,c.U)({align:{type:String,default:"center",validator:e=>["center","start"].includes(e)},direction:{type:String,default:"vertical",validator:e=>["vertical","horizontal"].includes(e)},justify:{type:String,default:"auto",validator:e=>["auto","center"].includes(e)},side:{type:String,validator:e=>null==e||["start","end"].includes(e)},lineThickness:{type:[String,Number],default:2},lineColor:String,truncateLine:{type:String,validator:e=>["start","end","both"].includes(e)},...(0,s.ei)(qp({lineInset:0}),["dotColor","fillDot","hideOpposite","iconColor","lineInset","size"]),...(0,a.l)(),...Ve(),...x(),...(0,S.x$)()},"VTimeline"),Yp=(0,k.ev)()({name:"VTimeline",props:zp(),setup(e,t){let{slots:n}=t;const{themeClasses:a}=(0,S.ER)(e),{densityClasses:l}=Ue(e),{rtlClasses:u}=(0,w.Vw)();(0,oe.AF)({VTimelineDivider:{lineColor:(0,o.Vh)((()=>e.lineColor))},VTimelineItem:{density:(0,o.Vh)((()=>e.density)),dotColor:(0,o.Vh)((()=>e.dotColor)),fillDot:(0,o.Vh)((()=>e.fillDot)),hideOpposite:(0,o.Vh)((()=>e.hideOpposite)),iconColor:(0,o.Vh)((()=>e.iconColor)),lineColor:(0,o.Vh)((()=>e.lineColor)),lineInset:(0,o.Vh)((()=>e.lineInset)),size:(0,o.Vh)((()=>e.size))}});const c=(0,r.Fl)((()=>{const t=e.side?e.side:"default"!==e.density?"end":null;return t&&`v-timeline--side-${t}`})),d=(0,r.Fl)((()=>{const t=["v-timeline--truncate-line-start","v-timeline--truncate-line-end"];switch(e.truncateLine){case"both":return t;case"start":return t[0];case"end":return t[1];default:return null}}));return(0,C.L)((()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(["v-timeline",`v-timeline--${e.direction}`,`v-timeline--align-${e.align}`,`v-timeline--justify-${e.justify}`,d.value,{"v-timeline--inset-line":!!e.lineInset},a.value,l.value,c.value,u.value,e.class]),style:(0,i.j5)([{"--v-timeline-line-thickness":(0,s.kb)(e.lineThickness)},e.style])},n))),{}}}),Kp=(0,c.U)({allowedValues:Function,ampm:Boolean,color:String,disabled:Boolean,displayedValue:null,double:Boolean,format:{type:Function,default:e=>e},max:{type:Number,required:!0},min:{type:Number,required:!0},scrollable:Boolean,readonly:Boolean,rotate:{type:Number,default:0},step:{type:Number,default:1},modelValue:{type:Number}},"VTimePickerClock"),Xp=(0,k.ev)()({name:"VTimePickerClock",props:Kp(),emits:{change:e=>!0,input:e=>!0},setup(e,t){let{emit:n}=t;const a=(0,o.iH)(null),l=(0,o.iH)(null),u=(0,o.iH)(void 0),c=(0,o.iH)(!1),d=(0,o.iH)(null),h=(0,o.iH)(null),p=(0,s.Ds)((e=>n("change",e)),750),{textColorClasses:f,textColorStyles:m}=(0,pe.rY)((()=>e.color)),{backgroundColorClasses:v,backgroundColorStyles:g}=(0,pe.Y5)((()=>e.color)),y=(0,r.Fl)((()=>e.max-e.min+1)),_=(0,r.Fl)((()=>e.double?y.value/2:y.value)),b=(0,r.Fl)((()=>360/_.value)),T=(0,r.Fl)((()=>
3336b.value*Math.PI/180)),w=(0,r.Fl)((()=>null==e.modelValue?e.min:e.modelValue)),S=(0,r.Fl)((()=>.62)),k=(0,r.Fl)((()=>{const t=[];for(let n=e.min;n<=e.max;n+=e.step)t.push(n);return t}));function E(e){u.value!==e&&(u.value=e),n("input",e)}function I(t){return!e.allowedValues||e.allowedValues(t)}function x(t){if(!e.scrollable||e.disabled)return;t.preventDefault();const n=Math.sign(-t.deltaY||1);let r=w.value;do{r+=n,r=(r-e.min+y.value)%y.value+e.min}while(!I(r)&&r!==w.value);r!==e.displayedValue&&E(r),p(r)}function A(t){return e.double&&t-e.min>=_.value}function P(e){return A(e)?S.value:1}function $(t){const n=e.rotate*Math.PI/180;return{x:Math.sin((t-e.min)*T.value+n)*P(t),y:-Math.cos((t-e.min)*T.value+n)*P(t)}}function O(t,n){const r=(Math.round(t/b.value)+(n?_.value:0))%y.value+e.min;return t<360-b.value/2?r:n?e.max-_.value+1:e.min}function N(e){const{x:t,y:n}=$(e);return{left:`${Math.round(50+50*t)}%`,top:`${Math.round(50+50*n)}%`}}function L(e,t){const n=t.x-e.x,r=t.y-e.y;return Math.sqrt(n*n+r*r)}function D(e,t){const n=2*Math.atan2(t.y-e.y-L(e,t),t.x-e.x);return Math.abs(180*n/Math.PI)}function R(e){null===d.value&&(d.value=e),h.value=e,E(e)}function F(t){if(t.preventDefault(),!c.value&&"click"!==t.type||!a.value)return;const{width:n,top:r,left:i}=a.value?.getBoundingClientRect(),{width:o}=l.value?.getBoundingClientRect()??{width:0},{clientX:s,clientY:u}="touches"in t?t.touches[0]:t,d={x:n/2,y:-n/2},h={x:s-i,y:r-u},p=Math.round(D(d,h)-e.rotate+360)%360,f=e.double&&L(d,h)<(o+o*S.value)/4,m=Math.ceil(15/b.value);let v;for(let e=0;e<m;e++){if(v=O(p+e*b.value,f),I(v))return R(v);if(v=O(p-e*b.value,f),I(v))return R(v)}}function M(t){e.disabled||(t.preventDefault(),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",V),window.addEventListener("touchend",V),d.value=null,h.value=null,c.value=!0,F(t))}function V(e){e.stopPropagation(),U(),c.value=!1,null!==h.value&&I(h.value)&&n("change",h.value)}function U(){window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",V),window.removeEventListener("touchend",V)}(0,r.YP)((()=>e.modelValue),(e=>{u.value=e})),(0,o.EB)(U),(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)([{"v-time-picker-clock":!0,"v-time-picker-clock--indeterminate":null==e.modelValue,"v-time-picker-clock--readonly":e.readonly}]),onMousedown:M,onTouchstart:M,onWheel:x,ref:a},[(0,r._)("div",{class:"v-time-picker-clock__inner",ref:l},[(0,r._)("div",{class:(0,i.C_)([{"v-time-picker-clock__hand":!0,"v-time-picker-clock__hand--inner":A(e.modelValue)},f.value]),style:(0,i.j5)([{transform:`rotate(${e.rotate+b.value*(w.value-e.min)}deg) scaleY(${P(w.value)})`},m.value])},null),k.value.map((t=>{const n=t===w.value;return(0,r._)("div",{class:(0,i.C_)([{"v-time-picker-clock__item":!0,"v-time-picker-clock__item--active":n,"v-time-picker-clock__item--disabled":e.disabled||!I(t)},n&&v.value]),style:(0,i.j5)([N(t),n&&g.value])},[(0,r._)("span",null,[e.format(t)])])}))])])))}}),Jp=(0,c.U)({active:Boolean,color:String,disabled:Boolean,label:String,modelValue:String,error:String,showHint:Boolean,readonly:Boolean},"VTimePickerField"),Zp=(0,k.ev)()({name:"VTimePickerField",props:Jp(),emits:{"update:modelValue":e=>!0},setup(e,t){let{emit:n}=t;const{textColorClasses:a,textColorStyles:s}=(0,pe.rY)((()=>e.color)),l=(0,o.iH)(),u=(0,o.XI)(!1);function c(e){if(["Backspace","Delete"].includes(e.key)){e.preventDefault();const t=e.target;t.value="",n("update:modelValue",null)}}return(0,C.L)((()=>(0,r.Wm)(Yr,{ref:l,_as:"VTimePickerField",autocomplete:"off",class:(0,i.C_)(["v-time-picker-controls__time__field",{"v-time-picker-controls__time__field--active":e.active},e.active?a.value:[]]),style:(0,i.j5)(e.active?s.value:[]),disabled:e.disabled,variant:"solo-filled",inputmode:"numeric",hideDetails:"auto","aria-label":e.label,"aria-invalid":!!e.error,"aria-errormessage":e.error,error:!!e.error,hint:e.showHint?e.label:void 0,persistentHint:!0,flat:!0,modelValue:e.modelValue??(u.value?"":"--"),"onUpdate:modelValue":e=>n("update:modelValue",e),onKeydown:c,onFocus:()=>u.value=!0,onBlur:()=>u.value=!1},null))),(0,mr.F)({},l)}});function Qp(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return String(e).padStart(t,"0")}function ef(e){return e?(e-1)%12+1:12}function tf(e,t){return e%12+("pm"===t?12:0)}function nf(e){const t=e.replaceAll(/\D/g,"");return t.length>0?Number(t):null}function rf(e,t,n){if(n){if(12===e&&t)return{value:1};if(11===e&&t)return{value:12,togglePeriod:!0};if(12===e&&!t)return{value:11,togglePeriod:!0};if(1===e&&!t)return{value:12}}else{if(23===e&&t)return{value:0};if(0===e&&!t)return{value:23}}return{value:e+(t?1:-1)}}function af(e,t){return 59===e&&t?0:0!==e||t?e+(t?1:-1):59}const of=(0,c.U)({allowedHours:[Function,Array],allowedMinutes:[Function,Array],allowedSeconds:[Function,Array],max:String,min:String},"time-validation");function sf(e){const t=(0,r.Fl)((()=>{const t=e.min?Number(e.min.split(":")[0]):0,n=e.max?Number(e.max.split(":")[0]):23;return r=>!(r<t)&&(!(r>n)&&(Array.isArray(e.allowedHours)?e.allowedHours.includes(r):"function"!==typeof e.allowedHours||e.allowedHours(r)))})),n=(0,r.Fl)((()=>{const[t,n]=e.min?e.min.split(":").map(Number):[0,0],[r,i]=e.max?e.max.split(":").map(Number):[23,59],a=60*t+n,o=60*r+i;return(t,n)=>{if(null!==t){const e=60*t+n;if(e<a)return!1;if(e>o)return!1}return Array.isArray(e.allowedMinutes)?e.allowedMinutes.includes(n):"function"!==typeof e.allowedMinutes||e.allowedMinutes(n)}})),i=(0,r.Fl)((()=>{const[t,n,r]=e.min?e.min.split(":").map(Number):[0,0,0],[i,a,o]=e.max?e.max.split(":").map(Number):[23,59,59],s=3600*t+60*n+(r||0),l=3600*i+60*a+(o||0);return(t,n,r)=>{if(null!==t&&null!==n){const e=3600*t+60*n+r;if(e<s)return!1;if(e>l)return!1}return Array.isArray(e.allowedSeconds)?e.allowedSeconds.includes(r):"function"!==typeof e.allowedSeconds||e.allowedSeconds(r)}}));function a(e,r,a){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const l="hour"===e?t.value:"minute"===e?e=>n.value(o,e):e=>i.value(o,s,e),u="hour"===e?e=>rf(e,a,null).value:e=>af(e,a),c="hour"===e?24:60;for(let t=1;t<=c;t++)if(r=u(r),l(r))break;return r}return{isAllowedHour:t,isAllowedMinute:n,isAllowedSecond:i,findNextAllowed:a}}const lf=(0,c.U)({ampm:Boolean,color:String,disabled:Boolean,inputHints:Boolean,hour:[Number,String],minute:[Number,String],second:[Number,String],peri
3336od:String,readonly:Boolean,useSeconds:Boolean,value:Number,viewMode:String,...of()},"VTimePickerControls"),uf=(0,k.ev)()({name:"VTimePickerControls",props:lf(),emits:{"update:period":e=>!0,"update:viewMode":e=>!0,"update:hour":e=>!0,"update:minute":e=>!0,"update:second":e=>!0},setup(e,t){let{emit:n}=t;const{t:a}=(0,w.bU)(),{isAllowedHour:l,isAllowedMinute:u,isAllowedSecond:c,findNextAllowed:d}=sf(e),h=(0,r.Fl)((()=>null!==e.hour?e.ampm?tf(Number(e.hour),e.period??"am"):Number(e.hour):null)),p=(0,r.Fl)((()=>null!==e.minute?Number(e.minute):null)),f=(0,r.Fl)((()=>null===e.hour||(l.value?.(Number(h.value))??!0))),m=(0,r.Fl)((()=>null===e.minute||(u.value?.(h.value,Number(e.minute))??!0))),v=(0,r.Fl)((()=>null===e.second||(c.value?.(h.value,p.value,Number(e.second))??!0))),g={in:t=>{if(null==t||isNaN(Number(t)))return null;const n=Number(t);return e.ampm?Qp(ef(n)):Qp(n)},out:t=>{if(isNaN(Number(t))||null==t||""===t)return null;const n="string"===typeof t?nf(t):Number(t);return null===n?null:e.ampm?tf(n,e.period??"am"):(0,s.uZ)(n,0,23)}},y=(0,$e.z)(e,"hour",void 0,g.in,g.out),_={in:e=>null==e||isNaN(Number(e))?null:Qp(`${e}`),out:e=>{if(isNaN(Number(e))||null==e||""===e)return null;const t="string"===typeof e?nf(e):Number(e);return null!==t?(0,s.uZ)(t,0,59):null}},b=(0,$e.z)(e,"minute",void 0,_.in,_.out),T=(0,$e.z)(e,"second",void 0,_.in,_.out);function S(t){if(!["ArrowUp","ArrowDown"].includes(t.key))return;t.preventDefault(),t.stopPropagation();const i="am"===e.period,a=e.ampm?tf(Number(y.value??0),i?"am":"pm"):Number(y.value??0),o=d("hour",a,"ArrowUp"===t.key),s=i&&o>=12||!i&&o<12;e.ampm&&s?(n("update:period","am"===e.period?"pm":"am"),(0,r.Y3)((()=>y.value=Qp(o)))):y.value=Qp(o)}function k(e){if(!["ArrowUp","ArrowDown"].includes(e.key))return;e.preventDefault(),e.stopPropagation();const t=Number(b.value??0),n=d("minute",t,"ArrowUp"===e.key,h.value);b.value=Qp(n)}function E(e){if(!["ArrowUp","ArrowDown"].includes(e.key))return;e.preventDefault(),e.stopPropagation();const t=Number(T.value??0),n=d("second",t,"ArrowUp"===e.key,h.value,p.value);T.value=Qp(n)}function I(t,n,r){return i=>{if(!i.data)return;const a=i.target,{value:o,selectionStart:s,selectionEnd:l}=a??{};if(null===nf(i.data))return void i.preventDefault();const u=o?o.slice(0,s)+i.data+o.slice(l):i.data;if(u.length>2){if(s===l&&0===l&&i.data.trim().startsWith("0"))return i.preventDefault(),a.value=u.trim().substring(0,2),r(a.value),void(1===i.data.trim().length&&a.setSelectionRange(1,1));if(s===l&&1===l&&o.startsWith("0"))return i.preventDefault(),a.value=u.trim().substring(0,2),void r(a.value);const t="hour"===e.viewMode?e.ampm?12:23:59,n=nf(u);if(n>t)return i.preventDefault(),a.value=Qp(String(nf(i.data)).substring(0,2)),void r(a.value)}const c=t(u);n(c)&&i.preventDefault()}}function x(e){n("update:period",e)}const A=(0,o.iH)(),P=(0,o.iH)(),$=(0,o.iH)();(0,r.YP)((()=>e.viewMode),((e,t)=>{switch(t){case"hour":A.value.blur();break;case"minute":P.value.blur();break;case"second":$.value.blur();break}}));const O=I(g.out,(e=>g.in(e)===y.value),(e=>y.value=e)),N=I(_.out,(e=>_.in(e)===b.value),(e=>b.value=e)),L=I(_.out,(e=>_.in(e)===T.value),(e=>T.value=e));return(0,C.L)((()=>(0,r._)("div",{class:"v-time-picker-controls"},[(0,r._)("div",{class:(0,i.C_)({"v-time-picker-controls__time":!0,"v-time-picker-controls__time--with-ampm":e.ampm,"v-time-picker-controls__time--with-seconds":e.useSeconds})},[(0,r.Wm)(Zp,{ref:A,active:"hour"===e.viewMode,color:e.color,disabled:e.disabled,label:a("$vuetify.timePicker.hour"),showHint:e.inputHints,error:f.value?void 0:a("$vuetify.timePicker.notAllowed"),modelValue:y.value,"onUpdate:modelValue":e=>y.value=e,onKeydown:S,onBeforeinput:O,onFocus:()=>n("update:viewMode","hour")},null),(0,r._)("span",{class:"v-time-picker-controls__time__separator"},[(0,r.Uk)(":")]),(0,r.Wm)(Zp,{ref:P,active:"minute"===e.viewMode,color:e.color,disabled:e.disabled,label:a("$vuetify.timePicker.minute"),showHint:e.inputHints,error:m.value?void 0:a("$vuetify.timePicker.notAllowed"),modelValue:b.value,"onUpdate:modelValue":e=>b.value=e,onKeydown:k,onBeforeinput:N,onFocus:()=>n("update:viewMode","minute")},null),e.useSeconds&&(0,r._)("span",{key:"secondsDivider",class:"v-time-picker-control
3336s__time__separator"},[(0,r.Uk)(":")]),e.useSeconds&&(0,r._)(r.HY,null,[(0,r.Wm)(Zp,{key:"secondsVal",ref:$,active:"second"===e.viewMode,color:e.color,disabled:e.disabled,label:a("$vuetify.timePicker.second"),showHint:e.inputHints,error:v.value?void 0:a("$vuetify.timePicker.notAllowed"),modelValue:T.value,"onUpdate:modelValue":e=>T.value=e,onKeydown:E,onBeforeinput:L,onFocus:()=>n("update:viewMode","second")},null)]),e.ampm&&(0,r._)("div",{class:"v-time-picker-controls__ampm"},[(0,r.Wm)(At,{active:"am"===e.period,color:"am"===e.period?e.color:void 0,class:(0,i.C_)({"v-time-picker-controls__ampm__am":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":"am"===e.period}),disabled:e.disabled,text:a("$vuetify.timePicker.am"),variant:e.disabled&&"am"===e.period?"elevated":"tonal",onClick:()=>"am"!==e.period?x("am"):null},null),(0,r.Wm)(At,{active:"pm"===e.period,color:"pm"===e.period?e.color:void 0,class:(0,i.C_)({"v-time-picker-controls__ampm__pm":!0,"v-time-picker-controls__ampm__btn":!0,"v-time-picker-controls__ampm__btn__active":"pm"===e.period}),disabled:e.disabled,text:a("$vuetify.timePicker.pm"),variant:e.disabled&&"pm"===e.period?"elevated":"tonal",onClick:()=>"pm"!==e.period?x("pm"):null},null)])])]))),{}}}),cf=(0,c.U)({disabled:Boolean,format:{type:String,default:"ampm"},viewMode:{type:String,default:"hour"},period:{type:String,default:"am",validator:e=>["am","pm"].includes(e)},modelValue:null,readonly:Boolean,scrollable:Boolean,useSeconds:Boolean,variant:{type:String,default:"dial"},...of(),...(0,s.CE)(yl({title:"$vuetify.timePicker.title"}),["landscape"]),...Ve()},"VTimePicker"),df=(0,k.ev)()({name:"VTimePicker",props:cf(),emits:{"update:hour":e=>!0,"update:minute":e=>!0,"update:period":e=>!0,"update:second":e=>!0,"update:modelValue":e=>!0,"update:viewMode":e=>!0},setup(e,t){let{emit:n,slots:i}=t;const{t:a}=(0,w.bU)(),{densityClasses:l}=Ue(e),u=(0,o.iH)(null),c=(0,o.iH)(null),d=(0,o.iH)(null),h=(0,o.iH)(null),p=(0,o.iH)(null),f=(0,o.iH)(null),m=(0,$e.z)(e,"period","am"),v=(0,$e.z)(e,"viewMode","hour"),g=(0,o.iH)(null),y=(0,o.iH)(null),_=(0,r.Fl)((()=>"ampm"===e.format)),{isAllowedHour:b,isAllowedMinute:T,isAllowedSecond:S}=sf(e),k=(0,o.Vh)((()=>null!==e.modelValue&&null===u.value&&null===c.value&&(!e.useSeconds||null===d.value)));function E(){const t=I();null!==t&&t!==e.modelValue&&n("update:modelValue",t),k.value&&n("update:modelValue",null)}function I(){return null==u.value||null==c.value||e.useSeconds&&null==d.value?null:`${Qp(u.value)}:${Qp(c.value)}`+(e.useSeconds?`:${Qp(d.value)}`:"")}function x(e){if(null==e||""===e)u.value=null,c.value=null,d.value=null;else if(e instanceof Date)u.value=e.getHours(),c.value=e.getMinutes(),d.value=e.getSeconds();else{const[t,,n,,r,i]=e.trim().toLowerCase().match(/^(\d+):(\d+)(:(\d+))?([ap]m)?$/)||new Array(6);u.value=i?tf(parseInt(t,10),i):parseInt(t,10),c.value=parseInt(n,10),d.value=parseInt(r||0,10)}m.value=null==u.value||u.value<12?"am":"pm"}function A(e){"hour"===v.value?u.value=_.value?tf(e,m.value):e:"minute"===v.value?c.value=e:d.value=e}function P(t){switch(v.value||"hour"){case"hour":n("update:hour",t);break;case"minute":n("update:minute",t);break;case"second":n("update:second",t);break;default:break}const r=null!==u.value&&null!==c.value&&(!e.useSeconds||null!==d.value);if("hour"===v.value?v.value="minute":e.useSeconds&&"minute"===v.value&&(v.value="second"),u.value===h.value&&c.value===p.value&&(!e.useSeconds||d.value===f.value))return;const i=I();null!==i&&(h.value=u.value,p.value=c.value,e.useSeconds&&(f.value=d.value),r&&E())}(0,r.YP)(u,E),(0,r.YP)(c,E),(0,r.YP)(d,E),(0,r.YP)(m,((e,t)=>{null!=u.value&&e!==t&&("pm"===e&&u.value<12?u.value=u.value+12:"am"===e&&u.value>=12&&(u.value=u.value-12))})),(0,r.YP)((()=>e.modelValue),(e=>x(e))),(0,r.YP)((()=>e.useSeconds),((e,t)=>{t&&!e&&"second"===v.value&&(v.value="minute"),e||null===d.value||(d.value=null)})),(0,r.bv)((()=>{x(e.modelValue)})),(0,C.L)((()=>{const t=(0,s.CE)(_l.filterProps(e),["hideHeader"]),n=uf.filterProps(e),o=Xp.filterProps((0,s.CE)(e,["format","modelValue","min","max"])),h="hour"===v.value?b.value:"minute"===v.value?e=>T.value(u.value,e):e=>S.value(u.value,c.value,e);return(0,r.Wm)(_l,(0,r.dG)(t,{color:void 0,class:["v-time-picker",`v-time-picker--variant-${e.variant}`,e.class,l.value],hideHeader:e.hideHeader&&"input"!==e.variant,style:e.style}),{title:()=>i.title?.()??(0,r._)("div",{class:"v-time-picker__title"},[a(e.title)]),header:()=>(0,r.Wm)(uf,(0,r.dG)(n,{ampm:_.value,hour:u.value,minute:c.value,period:m.value,second:d.value,viewMode:v.value,inputHints:"input"===e.variant,"onUpdate:hour":e=>u.value=e,"onUpdate:minute":e=>c.value=e,"onUpdate:second":e=>d.value=e,"onUpdate:period":e=>m.value=e,"onUpdate:viewMode":e=>v.value=e,ref:g}),null),default:()=>(0,r.Wm)(Xp,(0,r.dG)(o,{allowedValues:h,double:"hour"===v.value&&!_.value,format:"hour"===v.value?_.value?ef:e=>e:e=>Qp(e,2),max:"hour"===v.value?_.value&&"am"===m.value?11:23:59,min:"hour"===v.value&&_.value&&"pm"===m.value?12:0,size:20,step:"hour"===v.value?1:5,modelValue:"hour"===v.value?u.value:"minute"===v.value?c.value:d.value,onChange:P,onInput:A,ref:y}),null),actions:i.actions})}))}}),hf=(0,c.U)({...(0,a.l)(),...Ge({variant:"text"})},"VToolbarItems"),pf=(0,k.ev)()({name:"VToolbarItems",props:hf(),setup(e,t){let{slots:n}=t;return(0,oe.AF)({VBtn:{color:(0,o.Vh)((()=>e.color)),height:"inherit",variant:(0,o.Vh)((()=>e.variant))}}),(0,C.L)((()=>(0,r._)("div",{class:(0,i.C_)(["v-toolbar-items",e.class]),style:(0,i.j5)(e.style)}
3336,[n.default?.()]))),{}}});var ff=n(9866);const mf=(0,c.U)({...(0,s.CE)(Gn({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand"}),["subgroup"])},"VTreeviewGroup"),vf=(0,k.ev)()({name:"VTreeviewGroup",props:mf(),setup(e,t){let{slots:n}=t;const i=(0,o.iH)(),a=(0,r.Fl)((()=>i.value?.isOpen?e.collapseIcon:e.expandIcon)),s=(0,r.Fl)((()=>({VTreeviewItem:{prependIcon:void 0,appendIcon:void 0,toggleIcon:a.value}})));return(0,C.L)((()=>{const t=zn.filterProps(e);return(0,r.Wm)(zn,(0,r.dG)(t,{ref:i,class:["v-treeview-group",e.class],subgroup:!0}),{...n,activator:n.activator?e=>(0,r._)(r.HY,null,[(0,r.Wm)(le,{defaults:s.value},{default:()=>[n.activator?.(e)]})]):void 0})})),{}}}),gf=Symbol.for("vuetify:v-treeview"),yf=(0,c.U)({loading:Boolean,hideActions:Boolean,hasCustomPrepend:Boolean,indentLines:Array,toggleIcon:st.lE,...Jn({slim:!0})},"VTreeviewItem"),_f=(0,k.ev)()({name:"VTreeviewItem",props:yf(),emits:{toggleExpand:e=>!0},setup(e,t){let{slots:n,emit:a}=t;const s=(0,r.f3)(gf,{visibleIds:(0,o.iH)()}).visibleIds,l=(0,o.iH)(),u=(0,r.Fl)((()=>l.value?.root.activatable.value&&l.value?.isGroupActivator)),c=(0,r.Fl)((()=>l.value?.link.isClickable.value||null!=e.value&&!!l.value?.list)),d=(0,r.Fl)((()=>!e.disabled&&!1!==e.link&&(e.link||c.value||u.value))),h=(0,r.Fl)((()=>s.value&&!s.value.has((0,o.IU)(l.value?.id))));function p(e){d.value&&u.value&&l.value?.activate(!l.value?.isActivated,e)}function f(e){e.preventDefault(),e.stopPropagation(),a("toggleExpand",e)}return(0,C.L)((()=>{const t=Zn.filterProps(e),a=n.prepend||e.toggleIcon||e.indentLines||e.prependIcon||e.prependAvatar;return(0,r.Wm)(Zn,(0,r.dG)({ref:l},t,{active:l.value?.isActivated||void 0,class:["v-treeview-item",{"v-treeview-item--activatable-group-activator":u.value,"v-treeview-item--filtered":h.value},e.class],role:"treeitem",ripple:!1,onClick:p}),{...n,prepend:a?t=>(0,r._)(r.HY,null,[e.indentLines&&e.indentLines.length>0?(0,r._)("div",{key:"indent-lines",class:"v-treeview-indent-lines",style:{"--v-indent-parts":e.indentLines.length}},[e.indentLines.map((e=>(0,r._)("div",{class:(0,i.C_)(`v-treeview-indent-line v-treeview-indent-line--${e}`)},null)))]):"",!e.hideActions&&(0,r.Wm)(Zd,{start:!0},{default:()=>[e.toggleIcon?(0,r._)(r.HY,null,[n.toggle?(0,r.Wm)(le,{key:"prepend-defaults",defaults:{VBtn:{density:"compact",icon:e.toggleIcon,variant:"text",loading:e.loading},VProgressCircular:{indeterminate:"disable-shrink",size:20,width:2}}},{default:()=>[n.toggle({...t,loading:e.loading,props:{onClick:f}})]}):(0,r.Wm)(At,{key:"prepend-toggle",density:"compact",icon:e.toggleIcon,loading:e.loading,variant:"text",onClick:f},{loader:()=>(0,r.Wm)(ft,{indeterminate:"disable-shrink",size:"20",width:"2"},null)})]):(0,r._)("div",{class:"v-treeview-item__level"},null)]}),e.hasCustomPrepend?(0,r.Wm)(le,{key:"prepend-defaults",defaults:{VAvatar:{density:e.density,image:e.appendAvatar},VIcon:{density:e.density,icon:e.appendIcon},VListItemAction:{start:!0}}},{default:()=>[n.prepend?.(t)]}):(0,r._)(r.HY,null,[n.prepend?.(t),e.prependAvatar&&(0,r.Wm)(Bt,{key:"prepend-avatar",density:e.density,image:e.prependAvatar},null),e.prependIcon&&(0,r.Wm)(ut,{key:"prepend-icon",density:e.density,icon:e.prependIcon},null)])]):void 0})})),(0,mr.F)({},l)}});function bf(e){let{depth:t,isLast:n,isLastGroup:r,leafLinks:i,separateRoots:a,parentIndentLines:o,variant:s}=e;const l=n&&(!r||a||t>1);return o&&t?"simple"===s?{leaf:[...o,"line"],node:[...o,"line"],children:[...o,"line"],footer:[...o,"line","line"]}:{leaf:[...o,l?"last-leaf":"leaf",...i?["leaf-link"]:[]],node:[...o,l?"last-leaf":"leaf"],children:[...o,l?"none":"line"],footer:[...o,l?"none":"line"]}:{leaf:void 0,node:void 0,children:o,footer:!o||l&&"simple"!==s?["none"]:[...o,a?"none":"line"]}}const Tf=(0,c.U)({fluid:Boolean,disabled:Boolean,loadChildren:Function,loadingIcon:{type:String,default:"$loading"},items:Array,openOnClick:{type:Boolean,default:void 0},indeterminateIcon:{type:st.lE,default:"$checkboxIndeterminate"},falseIcon:st.lE,trueIcon:st.lE,returnObject:Boolean,activatable:Boolean,selectable:Boolean,selectedColor:String,selectStrategy:[String,Function,Object],index:Number,isLastGroup:Boolean,separateRoots:Boolean,parentIndentLines:Array,indentLinesVariant:String,path:{type:Array,default:()=>[]},...(0,s.ei)(yf(),["hideActions"]),...Ve()},"VTreeviewChildren"),wf=(0,k.ev)()({name:"VTreeviewChildren",props:Tf(),setup(e,t){let{slots:n}=t;const i=(0,o.qj)(new Set),a=(0,o.iH)([]),l=(0,r.Fl)((()=>!e.disabled&&(null!=e.openOnClick?e.openOnClick:e.selectable&&!e.activatable)));async function u(t){try{if(!e.items?.length||!e.loadChildren)return;0===t?.children?.length&&(i.add(t.value),await e.loadChildren(t.raw))}finally{i.delete(t.value)}}function c(t,n){e.selectable&&t(n)}return()=>n.default?.()??e.items?.map(((t,d,h)=>{const{children:p,props:f}=t,m=i.has(t.value),v=!!h.at(d+1)?.children,g=e.path?.length??0,y=h.length-1===d,_={index:d,depth:g,isFirst:0===d,isLast:y,path:[...e.path,d],hideAction:e.hideActions},b=bf({depth:g,isLast:y,isLastGroup:e.isLastGroup,leafLinks:!e.hideActions&&!e.fluid,separateRoots:e.separateRoots,parentIndentLines:e.parentIndentLines,variant:e.indentLinesVariant}),T={toggle:n.toggle?e=>n.toggle?.({...e,..._,item:t.raw,internalItem:t,loading:m}):void 0,prepend:i=>(0,r._)(r.HY,null,[e.selectable&&(!p||p&&!["leaf","single-leaf"].includes(e.selectStrategy))&&(0,r.Wm)(Zd,{start:!0},{default:()=>[(0,r.Wm)(Zt,{key:t.value,modelValue:i.isSelected,disabled:e.disabled||f.disabled,loading:m,color:e.selectedColor,density:e.density,indeterminate:i.isIndeterminate,indeterminateIcon:e.indeterminateIcon,falseIcon:e.falseIcon,trueIcon:e.trueIcon,"onUpdate:modelValue":e=>c(i.select,e),onClick:e=>e.stopPropagation(),onKeydown:e=>
3336{["Enter","Space"].includes(e.key)&&(e.stopPropagation(),c(i.select,i.isSelected))}},null)]}),n.prepend?.({...i,..._,item:t.raw,internalItem:t})]),append:n.append?e=>n.append?.({...e,..._,item:t.raw,internalItem:t}):void 0,title:n.title?e=>n.title?.({...e,item:t.raw,internalItem:t}):void 0,subtitle:n.subtitle?e=>n.subtitle?.({...e,item:t.raw,internalItem:t}):void 0},w=vf.filterProps(f),S=wf.filterProps({...e,..._}),k={hideActions:e.hideActions,indentLines:b.footer};return p?(0,r.Wm)(vf,(0,r.dG)(w,{value:e.returnObject?t.raw:w?.value,rawId:w?.value}),{activator:i=>{let{props:o,isOpen:h}=i;const p={...f,...o,value:f?.value,hideActions:e.hideActions,indentLines:b.node,ariaExpanded:h,onToggleExpand:[()=>u(t),o.onClick],onClick:e.disabled||f.disabled?void 0:l.value?[()=>u(t),o.onClick]:()=>c(a.value[d]?.select,!a.value[d]?.isSelected)};return(0,s.WI)(n.header,{props:p,item:t.raw,internalItem:t,loading:m},(()=>(0,r.Wm)(_f,(0,r.dG)({ref:e=>a.value[d]=e},p,{hasCustomPrepend:!!n.prepend,value:e.returnObject?t.raw:f.value,loading:m}),T)))},default:()=>(0,r._)(r.HY,null,[(0,r.Wm)(wf,(0,r.dG)(S,{items:p,indentLinesVariant:e.indentLinesVariant,parentIndentLines:b.children,isLastGroup:v,returnObject:e.returnObject}),n),n.footer?.({props:k,item:t.raw,internalItem:t,loading:m})])}):(0,s.WI)(n.item,{props:f,item:t.raw,internalItem:t},(()=>"divider"===t.type?(0,s.WI)(n.divider,{props:t.raw},(()=>(0,r.Wm)(_n,t.props,null))):"subheader"===t.type?(0,s.WI)(n.subheader,{props:t.raw},(()=>(0,r.Wm)(er,t.props,null))):(0,r.Wm)(_f,(0,r.dG)(f,{hasCustomPrepend:!!n.prepend,hideActions:e.hideActions,indentLines:b.leaf,value:e.returnObject?(0,o.IU)(t.raw):f.value}),T)))}))}});function Sf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(const n of e)t.push(n),n.children&&Sf(n.children,t);return t}const kf=(0,c.U)({openAll:Boolean,indentLines:[Boolean,String],indentLinesColor:String,indentLinesOpacity:[String,Number],search:String,hideNoData:Boolean,noDataText:{type:String,default:"$vuetify.noDataText"},...di({filterKeys:["title"]}),...(0,s.CE)(Tf(),["index","path","indentLinesVariant","parentIndentLines","isLastGroup"]),...(0,s.CE)(hr({collapseIcon:"$treeviewCollapse",expandIcon:"$treeviewExpand",slim:!0}),["nav","openStrategy"]),modelValue:Array},"VTreeview"),Cf=(0,k.ev)()({name:"VTreeview",props:kf(),emits:{"update:opened":e=>!0,"update:activated":e=>!0,"update:selected":e=>!0,"update:modelValue":e=>!0,"click:open":e=>!0,"click:select":e=>!0},setup(e,t){let{slots:n,emit:i}=t;const{t:a}=(0,w.bU)(),{items:s}=dr(e),l=(0,o.Vh)((()=>e.activeColor)),u=(0,o.Vh)((()=>e.baseColor)),c=(0,o.Vh)((()=>e.color)),d=(0,$e.z)(e,"activated"),h=(0,$e.z)(e,"selected"),p=(0,r.Fl)({get:()=>e.modelValue??h.value,set(e){h.value=e,i("update:modelValue",e)}}),f=(0,o.iH)(),m=(0,r.Fl)((()=>e.openAll?T(s.value):e.opened)),v=(0,r.Fl)((()=>Sf(s.value))),g=(0,o.Vh)((()=>e.search)),{filteredItems:y}=pi(e,v,g),_=(0,r.Fl)((()=>{if(!g.value)return null;const t=f.value?.getPath;return t?new Set(y.value.flatMap((n=>{const r=e.returnObject?n.raw:n.props.value;return[...t(r),...b(r)].map(o.IU)}))):null}));function b(e){const t=[],n=(f.value?.children.get((0,o.IU)(e))??[]).slice();while(n.length){const e=n.shift();e&&(t.push(e),n.push(...(f.value?.children.get(e)??[]).slice()))}return t}function T(t){let n=[];for(const r of t)r.children&&(n.push(e.returnObject?(0,o.IU)(r.raw):r.value),r.children&&(n=n.concat(T(r.children))));return n}return(0,r.JJ)(gf,{visibleIds:_}),(0,oe.AF)({VTreeviewGroup:{activeColor:l,baseColor:u,color:c,collapseIcon:(0,o.Vh)((()=>e.collapseIcon)),expandIcon:(0,o.Vh)((()=>e.expandIcon))},VTreeviewItem:{activeClass:(0,o.Vh)((()=>e.activeClass)),activeColor:l,baseColor:u,color:c,density:(0,o.Vh)((()=>e.density)),disabled:(0,o.Vh)((()=>e.disabled)),lines:(0,o.Vh)((()=>e.lines)),variant:(0,o.Vh)((()=>e.variant))}}),(0,C.L)((()=>{const t=pr.filterProps(e),i=wf.filterProps(e),o="boolean"===typeof e.indentLines?"default":e.indentLines;return(0,r.Wm)(pr,(0,r.dG)({ref:f},t,{class:["v-treeview",{"v-treeview--fluid":e.fluid},e.class],role:"tree",openStrategy:"multiple",style:[{"--v-treeview-indent-line-color":e.indentLinesColor,"--v-treeview-indent-line-opacity":e.indentLinesOpacity},e.style],opened:m.value,activated:d.value,"onUpdate:activated":e=>d.value=e,selected:p.value,"onUpdate:selected":e=>p.value=e}),{default:()=>[0===_.value?.size&&!e.hideNoData&&(n["no-data"]?.()??(0,r.Wm)(Zn,{key:"no-data",title:a(e.noDataText)},null)),(0,r.Wm)(wf,(0,r.dG)(i,{density:e.density,returnObject:e.returnObject,items:s.value,parentIndentLines:e.indentLines?[]:void 0,indentLinesVariant:o}),n)]})})),{}}}),Ef=(0,k.ev)()({name:"VValidation",props:Vr(),emits:{"update:modelValue":e=>!0},setup(e,t){let{slots:n}=t;const r=Ur(e,"validation");return()=>n.default?.(r)}})},9617:function(e,t,n){"use strict";n.d(t,{Tj:function(){return c},Y5:function(){return l},rY:function(){return s},rd:function(){return o}});var r=n(2262),i=n(320),a=n(3819);function o(e){return(0,i.S3)((()=>{const{class:t,style:n}=c(e);return{colorClasses:t,colorStyles:n}}))}function s(e){const{colorClasses:t,colorStyles:n}=o((()=>({text:(0,r.Tn)(e)})));return{textColorClasses:t,textColorStyles:n}}function l(e){const{colorClasses:t,colorStyles:n}=o((()=>({background:(0,r.Tn)(e)})));return{backgroundColorClasses:t,backgroundColorStyles:n}}function u(e){return{text:"string"===typeof e.text?e.text.replace(/^text-/,""):e.text,background:"string"===typeof e.background?e.background.replace(/^bg-/,""):e.background}}function c(e){const t=u((0,r.Tn)(e)),n=[],i={};if(t.background)if((0,a.NA)(t.background)){if(i.backgroundColor=t.background,!t.text&&(0,a.Q1)(t.background)){const e=(0,a.lu)(t.background);if(null==e.a||1===e.a){const t=(0,a.YB)(e);i.color=t,i.caretColor=t}}}else n.push(`bg-${t.background}`);return t.text&&((0,a.NA)(t.text)?(i.color=t.text,i.caretColor=t.text):n.push(`text-${t.text}`)),{class:n,style:i}}},990:function(e,t,n){"use strict";n.d(t,{l:function(){return i}});var r=n(6393);const i=(0,r.U)({class:[String,Array,Object],style:{type:[String,Array,Object],default:null}},"component")},956:function(e,t,n){"use strict";n.d(t,{d:function(){return ie},tI:function(){return re},Bq:function(){return ae},$m:function(){return oe},M2:function(){return se},Yc:function(){return ue}});var r=n(8705),i=n(2262),a=n(6252),o=n(320),s=n(4245);function l(e){const t=e.slice(-2).toUpperCase();switch(!0){case"GB-alt-variant"===e:return{firstDay:0,firstWeekSize:4};case"001"===e:return{firstDay:1,firstWeekSize:1};case"AG AS BD BR BS BT BW BZ CA CO DM DO ET GT GU HK HN ID IL IN JM JP KE\n    KH KR LA MH MM MO MT MX MZ NI NP PA PE PH PK PR PY SA SG SV TH TT TW UM US\n    VE VI WS YE ZA ZW".includes(t):return{firstDay:0,firstWeekSize:1};case"AI AL AM AR AU AZ BA BM BN BY CL CM CN CR CY EC GE HR KG KZ LB LK LV\n    MD ME MK MN MY NZ RO RS SI TJ TM TR UA UY UZ VN XK".includes(t):return{firstDay:1,firstWeekSize:1};case"AD AN AT AX BE BG CH CZ DE DK EE ES FI FJ FO FR GB GF GP GR HU IE IS\n    IT LI LT LU MC MQ NL NO PL RE RU SE SK SM VA".includes(t):return{firstDay:1,firstWeekSize:4};
3336case"AE AF BH DJ DZ EG IQ IR JO KW LY OM QA SD SY".includes(t):return{firstDay:6,firstWeekSize:1};case"MV"===t:return{firstDay:5,firstWeekSize:1};case"PT"===t:return{firstDay:0,firstWeekSize:4};default:return null}}function u(e,t,n){const r=[];let i=[];const a=h(e),o=p(e),s=n??l(t)?.firstDay??0,u=(a.getDay()-s+7)%7,c=(o.getDay()-s+7)%7;for(let l=0;l<u;l++){const e=new Date(a);e.setDate(e.getDate()-(u-l)),i.push(e)}for(let l=1;l<=o.getDate();l++){const t=new Date(e.getFullYear(),e.getMonth(),l);i.push(t),7===i.length&&(r.push(i),i=[])}for(let l=1;l<7-c;l++){const e=new Date(o);e.setDate(e.getDate()+l),i.push(e)}return i.length>0&&r.push(i),r}function c(e,t,n){let r=(n??l(t)?.firstDay??0)%7;[0,1,2,3,4,5,6].includes(r)||((0,s.Kd)("Invalid firstDayOfWeek, expected discrete number in range [0-6]"),r=0);const i=new Date(e);while(i.getDay()!==r)i.setDate(i.getDate()-1);return i}function d(e,t){const n=new Date(e),r=((l(t)?.firstDay??0)+6)%7;while(n.getDay()!==r)n.setDate(n.getDate()+1);return n}function h(e){return new Date(e.getFullYear(),e.getMonth(),1)}function p(e){return new Date(e.getFullYear(),e.getMonth()+1,0)}function f(e){const t=e.split("-").map(Number);return new Date(t[0],t[1]-1,t[2])}const m=/^([12]\d{3}-([1-9]|0[1-9]|1[0-2])-([1-9]|0[1-9]|[12]\d|3[01]))$/;function v(e){if(null==e)return new Date;if(e instanceof Date)return e;if("string"===typeof e){let t;if(m.test(e))return f(e);if(t=Date.parse(e),!isNaN(t))return new Date(t)}return null}const g=new Date(2e3,0,2);function y(e,t,n){const r=t??l(e)?.firstDay??0;return(0,o.MT)(7).map((t=>{const i=new Date(g);return i.setDate(g.getDate()+r+t),new Intl.DateTimeFormat(e,{weekday:n??"narrow"}).format(i)}))}function _(e,t,n,r){const i=v(e)??new Date,a=r?.[t];if("function"===typeof a)return a(i,t,n);let o={};switch(t){case"fullDate":o={year:"numeric",month:"short",day:"numeric"};break;case"fullDateWithWeekday":o={weekday:"long",year:"numeric",month:"long",day:"numeric"};break;case"normalDate":const e=i.getDate(),t=new Intl.DateTimeFormat(n,{month:"long"}).format(i);return`${e} ${t}`;case"normalDateWithWeekday":o={weekday:"short",day:"numeric",month:"short"};break;case"shortDate":o={month:"short",day:"numeric"};break;case"year":o={year:"numeric"};break;case"month":o={month:"long"};break;case"monthShort":o={month:"short"};break;case"monthAndYear":o={month:"long",year:"numeric"};break;case"monthAndDate":o={month:"long",day:"numeric"};break;case"weekday":o={weekday:"long"};break;case"weekdayShort":o={weekday:"short"};break;case"dayOfMonth":return new Intl.NumberFormat(n).format(i.getDate());case"hours12h":o={hour:"numeric",hour12:!0};break;case"hours24h":o={hour:"numeric",hour12:!1};break;case"minutes":o={minute:"numeric"};break;case"seconds":o={second:"numeric"};break;case"fullTime":o={hour:"numeric",minute:"numeric"};break;case"fullTime12h":o={hour:"numeric",minute:"numeric",hour12:!0};break;case"fullTime24h":o={hour:"numeric",minute:"numeric",hour12:!1};break;case"fullDateTime":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"};break;case"fullDateTime12h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!0};break;case"fullDateTime24h":o={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",hour12:!1};break;case"keyboardDate":o={year:"numeric",month:"2-digit",day:"2-digit"};break;case"keyboardDateTime":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric"},new Intl.DateTimeFormat(n,o).format(i).replace(/, /g," ");case"keyboardDateTime12h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!0},new Intl.DateTimeFormat(n,o).format(i).replace(/, /g," ");case"keyboardDateTime24h":return o={year:"numeric",month:"2-digit",day:"2-digit",hour:"numeric",minute:"numeric",hour12:!1},new Intl.DateTimeFormat(n,o).format(i).replace(/, /g," ");default:o=a??{timeZone:"UTC",timeZoneName:"short"}}return new Intl.DateTimeFormat(n,o).format(i)}function b(e,t){const n=e.toJsDate(t),r=n.getFullYear(),i=(0,o.Sk)(String(n.getMonth()+1),2,"0"),a=(0,o.Sk)(String(n.getDate()),2,"0");return`${r}-${i}-${a}`}function T(e){const[t,n,r]=e.split("-").map(Number);return new Date(t,n-1,r)}function w(e,t){const n=new Date(e);return n.setMinutes(n.getMinutes()+t),n}function S(e,t){const n=new Date(e);return n.setHours(n.getHours()+t),n}function k(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}function C(e,t){const n=new Date(e);return n.setDate(n.getDate()+7*t),n}function E(e,t){const n=new Date(e);return n.setDate(1),n.setMonth(n.getMonth()+t),n}function I(e){return e.getFullYear()}function x(e){return e.getMonth()}function A(e,t,n,r){const i=l(t),a=n??i?.firstDay??0,o=i?.firstWeekSize??1;return void 0!==r?P(e,t,a,r):$(e,t,a,o)}function P(e,t,n,r){const i=(7+r-n)%7,a=c(e,t,n),o=k(a,6);
3336function s(e){return(7+new Date(e,0,1).getDay()-n)%7}let l=I(a);l<I(o)&&s(l+1)<=i&&l++;const u=new Date(l,0,1),d=s(l),h=k(u,d<=i?-d:7-d);return 1+Y(te(a),ee(h),"weeks")}function $(e,t,n,r){const i=c(e,t,n),a=k(c(e,t,n),6);function o(e){const r=new Date(e,0,1);return 7-Y(r,c(r,t,n),"days")}let s=I(i);s<I(a)&&o(s+1)>=r&&s++;const l=new Date(s,0,1),u=o(s),d=k(l,u>=r?u-7:u);return 1+Y(te(i),ee(d),"weeks")}function O(e){return e.getDate()}function N(e){return new Date(e.getFullYear(),e.getMonth()+1,1)}function L(e){return new Date(e.getFullYear(),e.getMonth()-1,1)}function D(e){return e.getHours()}function R(e){return e.getMinutes()}function F(e){return new Date(e.getFullYear(),0,1)}function M(e){return new Date(e.getFullYear(),11,31)}function V(e,t){return B(e,t[0])&&W(e,t[1])}function U(e){const t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}function B(e,t){return e.getTime()>t.getTime()}function j(e,t){return B(ee(e),ee(t))}function W(e,t){return e.getTime()<t.getTime()}function H(e,t){return e.getTime()===t.getTime()}function q(e,t){return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function G(e,t){return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()}function z(e,t){return e.getFullYear()===t.getFullYear()}function Y(e,t,n){const r=new Date(e),i=new Date(t);switch(n){case"years":return r.getFullYear()-i.getFullYear();case"quarters":return Math.floor((r.getMonth()-i.getMonth()+12*(r.getFullYear()-i.getFullYear()))/4);case"months":return r.getMonth()-i.getMonth()+12*(r.getFullYear()-i.getFullYear());case"weeks":return Math.floor((r.getTime()-i.getTime())/6048e5);case"days":return Math.floor((r.getTime()-i.getTime())/864e5);case"hours":return Math.floor((r.getTime()-i.getTime())/36e5);case"minutes":return Math.floor((r.getTime()-i.getTime())/6e4);case"seconds":return Math.floor((r.getTime()-i.getTime())/1e3);default:return r.getTime()-i.getTime()}}function K(e,t){const n=new Date(e);return n.setHours(t),n}function X(e,t){const n=new Date(e);return n.setMinutes(t),n}function J(e,t){const n=new Date(e);return n.setMonth(t),n}function Z(e,t){const n=new Date(e);return n.setDate(t),n}function Q(e,t){const n=new Date(e);return n.setFullYear(t),n}function ee(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0,0)}function te(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}class ne{constructor(e){this.locale=e.locale,this.formats=e.formats}date(e){return v(e)}toJsDate(e){return e}toISO(e){return b(this,e)}parseISO(e){return T(e)}addMinutes(e,t){return w(e,t)}addHours(e,t){return S(e,t)}addDays(e,t){return k(e,t)}addWeeks(e,t){return C(e,t)}addMonths(e,t){return E(e,t)}getWeekArray(e,t){const n=void 0!==t?Number(t):void 0;return u(e,this.locale,n)}startOfWeek(e,t){const n=void 0!==t?Number(t):void 0;return c(e,this.locale,n)}endOfWeek(e){return d(e,this.locale)}startOfMonth(e){return h(e)}endOfMonth(e){return p(e)}format(e,t){return _(e,t,this.locale,this.formats)}isEqual(e,t){return H(e,t)}isValid(e){return U(e)}isWithinRange(e,t){return V(e,t)}isAfter(e,t){return B(e,t)}isAfterDay(e,t){return j(e,t)}isBefore(e,t){return!B(e,t)&&!H(e,t)}isSameDay(e,t){return q(e,t)}isSameMonth(e,t){return G(e,t)}isSameYear(e,t){return z(e,t)}setMinutes(e,t){return X(e,t)}setHours(e,t){return K(e,t)}setMonth(e,t){return J(e,t)}setDate(e,t){return Z(e,t)}setYear(e,t){return Q(e,t)}getDiff(e,t,n){return Y(e,t,n)}getWeekdays(e,t){const n=void 0!==e?Number(e):void 0;return y(this.locale,n,t)}getYear(e){return I(e)}getMonth(e){return x(e)}getWeek(e,t,n){const r=void 0!==t?Number(t):void 0,i=void 0!==n?Number(n):void 0;return A(e,this.locale,r,i)}getDate(e){return O(e)}getNextMonth(e){return N(e)}getPreviousMonth(e){return L(e)}getHours(e){return D(e)}getMinutes(e){return R(e)}startOfDay(e){return ee(e)}endOfDay(e){return te(e)}startOfYear(e){return F(e)}endOfYear(e){return M(e)}}const re=Symbol.for("vuetify:date-options"),ie=Symbol.for("vuetify:date-adapter");function ae(e,t){const n=(0,o.Ee)({adapter:ne,locale:{af:"af-ZA",bg:"bg-BG",ca:"ca-ES",ckb:"",cs:"cs-CZ",de:"de-DE",el:"el-GR",en:"en-US",et:"et-EE",fa:"fa-IR",fi:"fi-FI",hr:"hr-HR",hu:"hu-HU",he:"he-IL",id:"id-ID",it:"it-IT",ja:"ja-JP",ko:"ko-KR",lv:"lv-LV",lt:"lt-LT",nl:"nl-NL",no:"no-NO",pl:"pl-PL",pt:"pt-PT",ro:"ro-RO",ru:"ru-RU",sk:"sk-SK",sl:"sl-SI",srCyrl:"sr-SP",srLatn:"sr-SP",sv:"sv-SE",th:"th-TH",tr:"tr-TR",az:"az-AZ",uk:"uk-UA",vi:"vi-VN",zhHans:"zh-CN",zhHant:"zh-TW"}},e);return{options:n,instance:le(n,t)}}function oe(e,t,n){const r=se(e,t,n),i=[t];for(let a=1;a<r;a++){const n=e.addDays(t,a);i.push(n)}return n&&i.push(e.endOfDay(n)),i}function se(e,t,n){const r=[`${e.toISO(n??t).split("T")[0]}T00:00:00Z`,`${e.toISO(t).split("T")[0]}T00:00:00Z`];return"string"===typeof e.date()?e.getDiff(r[0],r[1],"days"):e.getDiff(e.date(r[0]),e.date(r[1]),"days")}function le(e,t){const n=(0,i.qj)("function"===typeof e.adapter?new e.adapter({locale:e.locale[t.current.value]??t.current.value,formats:e.formats}):e.adapter);return(0,a.YP)(t.current,(t=>{n.locale=e.locale[t]??t??n.locale})),n}function ue(){const e=(0,a.f3)(re);if(!e)throw new Error("[Vuetify] Could not find injected date options");const t=(0,r.bU)();return le(e,t)}},121:function(e,t,n){"use strict";n.d(t,{tI:function(){return l},yB:function(){return u},Xz:function(){return c},Vn:function(){return p},AF:function(){return d}});var r=n(2262),i=n(6252),a=n(8383),o=n(320);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,a.F)("injectSelf");const{provides:n}=t;if(n&&e in n)return n[e]}const l=Symbol.for("vuetify:defaults");function u(e){return(0,r.iH)(e)}function c(){const e=(0,i.f3)(l);if(!e)throw new Error("[Vuetify] Could not find defaults instance");return e}function d(e,t){const n=c(),a=(0,r.iH)(e),s=(0,i.Fl)((()=>{const e=(0,r.SU)(t?.disabled);if(e)return n.value;const i=(0,r.SU)(t?.scoped),s=(0,r.SU)(t?.reset),l=(0,r.SU)(t?.root);if(null==a.value&&!(i||s||l))return n.value;let u=(0,o.Ee)(a.value,{prev:n.value});if(i)return u;if(s||l){const e=Number(s||1/0);for(let t=0;t<=e;
3336t++){if(!u||!("prev"in u))break;u=u.prev}return u&&"string"===typeof l&&l in u&&(u=(0,o.Ee)((0,o.Ee)(u,{prev:u}),u[l])),u}return u.prev?(0,o.Ee)(u.prev,u):u}));return(0,i.JJ)(l,s),s}function h(e,t){return e.props&&("undefined"!==typeof e.props[t]||"undefined"!==typeof e.props[(0,o.mA)(t)])}function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c();const u=(0,a.F)("useDefaults");if(t=t??u.type.name??u.type.__name,!t)throw new Error("[Vuetify] Could not determine component name");const d=(0,i.Fl)((()=>n.value?.[e._as??t])),p=new Proxy(e,{get(e,t){const r=Reflect.get(e,t);if("class"===t||"style"===t)return[d.value?.[t],r].filter((e=>null!=e));if(h(u.vnode,t))return r;const i=d.value?.[t];if(void 0!==i)return i;const a=n.value?.global?.[t];return void 0!==a?a:r}}),f=(0,r.XI)();function m(){const e=s(l,u);(0,i.JJ)(l,(0,i.Fl)((()=>f.value?(0,o.Ee)(e?.value??{},f.value):e?.value)))}return(0,i.m0)((()=>{if(d.value){const e=Object.entries(d.value).filter((e=>{let[t]=e;return t.startsWith(t[0].toUpperCase())}));f.value=e.length?Object.fromEntries(e):void 0}else f.value=void 0})),{props:p,provideSubDefaults:m}}},1259:function(e,t,n){"use strict";n.d(t,{g:function(){return o},h:function(){return a}});var r=n(6393),i=n(320);const a=(0,r.U)({closeDelay:[Number,String],openDelay:[Number,String]},"delay");function o(e,t){let n=()=>{};function r(r,a){n?.();const o=r?e.openDelay:e.closeDelay,s=Math.max(a?.minDelay??0,Number(o??0));return new Promise((e=>{n=(0,i.PQ)(s,(()=>{t?.(r),e(r)}))}))}function a(){return r(!0)}function o(e){return r(!1,e)}return{clearDelay:n,runOpenDelay:a,runCloseDelay:o}}},4101:function(e,t,n){"use strict";n.d(t,{$:function(){return s},x:function(){return o}});var r=n(6252),i=n(6393),a=n(320);const o=(0,i.U)({height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},"dimension");function s(e){const t=(0,r.Fl)((()=>{const t={},n=(0,a.kb)(e.height),r=(0,a.kb)(e.maxHeight),i=(0,a.kb)(e.maxWidth),o=(0,a.kb)(e.minHeight),s=(0,a.kb)(e.minWidth),l=(0,a.kb)(e.width);return null!=n&&(t.height=n),null!=r&&(t.maxHeight=r),null!=i&&(t.maxWidth=i),null!=o&&(t.minHeight=o),null!=s&&(t.minWidth=s),null!=l&&(t.width=l),t}));return{dimensionStyles:t}}},5879:function(e,t,n){"use strict";n.d(t,{AV:function(){return u},AW:function(){return y},Tp:function(){return g},fT:function(){return v},x6:function(){return c}});var r=n(2262),i=n(6252),a=n(320),o=n(6393),s=n(8383),l=n(6293);const u=["sm","md","lg","xl","xxl"],c=Symbol.for("vuetify:display"),d={mobileBreakpoint:"lg",thresholds:{xs:0,sm:600,md:960,lg:1280,xl:1920,xxl:2560}},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return(0,a.Ee)(d,e)};function p(e){return l.BR&&!e?window.innerWidth:"object"===typeof e&&e.clientWidth||0}function f(e){return l.BR&&!e?window.innerHeight:"object"===typeof e&&e.clientHeight||0}function m(e){const t=l.BR&&!e?window.navigator.userAgent:"ssr";function n(e){return Boolean(t.match(e))}const r=n(/android/i),i=n(/iphone|ipad|ipod/i),a=n(/cordova/i),o=n(/electron/i),s=n(/chrome/i),u=n(/edge/i),c=n(/firefox/i),d=n(/opera/i),h=n(/win/i),p=n(/mac/i),f=n(/linux/i);return{android:r,ios:i,cordova:a,electron:o,chrome:s,edge:u,firefox:c,opera:d,win:h,mac:p,linux:f,touch:l.sR,ssr:"ssr"===t}}function v(e,t){const{thresholds:n,mobileBreakpoint:a}=h(e),o=(0,r.XI)(f(t)),s=(0,r.XI)(m(t)),u=(0,r.qj)({}),c=(0,r.XI)(p(t));function d(){o.value=f(),c.value=p()}function v(){d(),s.value=m()}return(0,i.m0)((()=>{const e=c.value<n.sm,t=c.value<n.md&&!e,r=c.value<n.lg&&!(t||e),i=c.value<n.xl&&!(r||t||e),l=c.value<n.xxl&&!(i||r||t||e),d=c.value>=n.xxl,h=e?"xs":t?"sm":r?"md":i?"lg":l?"xl":"xxl",p="number"===typeof a?a:n[a],f=c.value<p;u.xs=e,u.sm=t,u.md=r,u.lg=i,u.xl=l,u.xxl=d,u.smAndUp=!e,u.mdAndUp=!(e||t),u.lgAndUp=!(e||t||r),u.xlAndUp=!(e||t||r||i),u.smAndDown=!(r||i||l||d),u.mdAndDown=!(i||l||d),u.lgAndDown=!(l||d),u.xlAndDown=!d,u.name=h,u.height=o.value,u.width=c.value,u.mobile=f,u.mobileBreakpoint=a,u.platform=s.value,u.thresholds=n})),l.BR&&(window.addEventListener("resize",d,{passive:!0}),(0,r.EB)((()=>{window.removeEventListener("resize",d)}),!0)),{...(0,r.BK)(u),update:v,ssr:!!t}}const g=(0,o.U)({mobile:{type:Boolean,default:!1},mobileBreakpoint:[Number,String]},"display");function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{mobile:null},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,s.B)();const n=(0,i.f3)(c);if(!n)throw new Error("Could not find Vuetify display injection");const a=(0,i.Fl)((()=>!!e.mobile||("number"===typeof e.mobileBreakpoint?n.width.value<e.mobileBreakpoint:e.mobileBreakpoint?n.width.value<n.thresholds.value[e.mobileBreakpoint]:null===e.mobile&&n.mobile.value))),o=(0,r.Vh)((()=>t?{[`${t}--mobile`]:a.value}:{}));
3336return{...n,displayClasses:o,mobile:a}}},7:function(e,t,n){"use strict";n.d(t,{N:function(){return l},P:function(){return h}});var r=n(2262),i=n(6252),a=n(6393),o=n(320),s=n(6293);const l=(0,a.U)({retainFocus:Boolean,captureFocus:Boolean,disableInitialFocus:Boolean},"focusTrap"),u=new Map;let c=0;function d(e){const t=document.activeElement;if("Tab"!==e.key||!t)return;const n=Array.from(u.values()).filter((e=>{let{isActive:n,contentEl:r}=e;return n.value&&r.value?.contains(t)})).map((e=>e.contentEl.value));let r,i=t.parentElement;while(i){if(n.includes(i)){r=i;break}i=i.parentElement}if(!r)return;const a=(0,o.ef)(r).filter((e=>e.tabIndex>=0));if(!a.length)return;const s=document.activeElement;if(1===a.length&&a[0].classList.contains("v-list")&&a[0].contains(s))return void e.preventDefault();const l=a[0],c=a[a.length-1];e.shiftKey&&(s===l||l.classList.contains("v-list")&&l.contains(s))&&(e.preventDefault(),c.focus()),!e.shiftKey&&(s===c||c.classList.contains("v-list")&&c.contains(s))&&(e.preventDefault(),l.focus())}function h(e,t){let{isActive:n,localTop:a,activatorEl:l,contentEl:h}=t;const p=Symbol("trap");let f=!1,m=-1;async function v(){f=!0,m=window.setTimeout((()=>{f=!1}),100)}async function g(e){const t=e.relatedTarget,i=e.target;if(document.removeEventListener("pointerdown",v),document.removeEventListener("keydown",y),await new Promise((e=>requestAnimationFrame(e))),n.value&&!f&&t!==i&&h.value&&(0,r.Tn)(a)&&![document,h.value].includes(i)&&!h.value.contains(i)){const e=(0,o.ef)(h.value);e[0]?.focus()}}function y(e){if("Tab"===e.key&&(document.removeEventListener("keydown",y),n.value&&h.value&&e.target&&!h.value.contains(e.target))){const t=(0,o.ef)(document.documentElement);if(e.shiftKey&&e.target===t.at(0)||!e.shiftKey&&e.target===t.at(-1)){const t=(0,o.ef)(h.value);t.length>0&&(e.preventDefault(),t[0].focus())}}}const _=(0,r.Vh)((()=>n.value&&e.captureFocus&&!e.disableInitialFocus));s.BR&&((0,i.YP)((()=>e.retainFocus),(e=>{e?u.set(p,{isActive:n,contentEl:h}):u.delete(p)}),{immediate:!0}),(0,i.YP)(_,(e=>{e?(document.addEventListener("pointerdown",v),document.addEventListener("focusin",g,{once:!0}),document.addEventListener("keydown",y)):(document.removeEventListener("pointerdown",v),document.removeEventListener("focusin",g),document.removeEventListener("keydown",y))}),{immediate:!0}),c++<1&&document.addEventListener("keydown",d)),(0,r.EB)((()=>{u.delete(p),clearTimeout(m),document.removeEventListener("pointerdown",v),document.removeEventListener("focusin",g),document.removeEventListener("keydown",y),--c<1&&document.removeEventListener("keydown",d)}))}},5584:function(e,t,n){"use strict";n.d(t,{F:function(){return a}});const r=Symbol("Forwarded refs");function i(e,t){let n=e;while(n){const e=Reflect.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}}function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e[r]=n,new Proxy(e,{get(e,t){if(Reflect.has(e,t))return Reflect.get(e,t);if("symbol"!==typeof t&&!t.startsWith("$")&&!t.startsWith("__"))for(const r of n)if(r.value&&Reflect.has(r.value,t)){const e=Reflect.get(r.value,t);return"function"===typeof e?e.bind(r.value):e}},has(e,t){if(Reflect.has(e,t))return!0;if("symbol"===typeof t||t.startsWith("$")||t.startsWith("__"))return!1;for(const r of n)if(r.value&&Reflect.has(r.value,t))return!0;return!1},set(e,t,r){if(Reflect.has(e,t))return Reflect.set(e,t,r);if("symbol"===typeof t||t.startsWith("$")||t.startsWith("__"))return!1;for(const i of n)if(i.value&&Reflect.has(i.value,t))return Reflect.set(i.value,t,r);return!1},getOwnPropertyDescriptor(e,t){const a=Reflect.getOwnPropertyDescriptor(e,t);if(a)return a;if("symbol"!==typeof t&&!t.startsWith("$")&&!t.startsWith("__")){for(const e of n){if(!e.value)continue;const n=i(e.value,t)??("_"in e.value?i(e.value._?.setupState,t):void 0);if(n)return n}for(const e of n){const n=e.value&&e.value[r];if(!n)continue;const a=n.slice();while(a.length){const e=a.shift(),n=i(e.value,t);if(n)return n;const o=e.value&&e.value[r];o&&a.push(...o)}}}}})}},2731:function(e,t,n){"use strict";n.d(t,{D6:function(){return m},Mr:function(){return c},jg:function(){return g}});var r=n(6252),i=n(2262),a=n(8705),o=n(2739),s=n(320),l=n(6293),u=n(4245);const c=Symbol.for("vuetify:goto");function d(){return{container:void 0,duration:300,layout:!1,offset:0,easing:"easeInOutCubic",patterns:o.iw}}function h(e){return p(e)??(document.scrollingElement||document.body)}function p(e){return"string"===typeof e?document.querySelector(e):(0,s.vX)(e)}function f(e,t,n){if("number"===typeof e)return t&&n?-e:e;let r=p(e),i=0;while(r)i+=t?r.offsetLeft:r.offsetTop,r=r.offsetParent;return i}function m(e,t){return{rtl:t.isRtl,options:(0,s.Ee)(d(),e)}}async function v(e,t,n,r){const i=n?"scrollLeft":"scrollTop",a=(0,s.Ee)(r?.options??d(),t),o=r?.rtl.value,c=("number"===typeof e?e:p(e))??0,m="parent"===a.container&&c instanceof HTMLElement?c.parentElement:h(a.container),v=(0,l.QE)()?a.patterns.instant:"function"===typeof a.easing?a.easing:a.patterns[a.easing];if(!v)throw new TypeError(`Easing function "${a.easing}" not found.`);let g;if("number"===typeof c)g=f(c,n,o);else if(g=f(c,n,o)-f(m,n,o),a.layout){const e=window.getComputedStyle(c),t=e.getPropertyValue("--v-layout-top");t&&(g-=parseInt(t,10))}g+=a.offset,g=y(m,g,!!o,!!n);const _=m[i]??0;if(g===_)return Promise.resolve(g);const b=performance.now();return new Promise((e=>requestAnimationFrame((function t(n){const r=n-b,o=r/a.duration,l=Math.floor(_+(g-_)*v((0,s.uZ)(o,0,1)));return m[i]=l,o>=1&&Math.abs(l-m[i])<10?e(g):o>2?((0,u.Kd)("Scroll target is not reachable"),e(m[i])):void requestAnimationFrame(t)}))))}function g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,r.f3)(c),{isRtl:n}=(0,a.Vw)();if(!t)throw new Error("[Vuetify] Could not find injected goto instance");const o={...t,rtl:(0,i.Vh)((()=>t.rtl.value||n.value))};async function l(t,n){return v(t,(0,s.Ee)(e,n),!1,o)}return l.horizontal=async(t,n)=>v(t,(0,s.Ee)(e,n),!0,o),l}function y(e,t,n,r){const{scrollWidth:i,scrollHeight:a}=e,[o,l]=e===document.scrollingElement?[window.innerWidth,window.innerHeight]:[e.offsetWidth,e.offsetHeight];let u,c;return r?n?(u=-(i-o),c=0):(u=0,c=i-o):(u=0,c=a+-l),(0,s.uZ)(t,u,c)}},3337:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(5879),i=n(2262),a=n(6252),o=n(6293);function s(){if(!o.BR)return(0,i.XI)(!1);const{ssr:e}=(0,r.AW)();if(e){const e=(0,i.XI)(!1);return(0,a.bv)((()=>{e.value=!0})),e}return(0,i.XI)(!0)}},1810:function(e,t,n){"use strict";n.d(t,{$0:function(){return m},$e:function(){return h},YK:function(){return c},bi:function(){return v},lE:function(){return u},oX:function(){return p},w8:function(){return f}});var r=n(6252),i=n(3577),a=n(2262),o=n(6393),s=n(2290),l=n(4245);const u=[String,Function,Object,Array],c=Symbol.for("vuetify:icons"),d=(0,o.U)({icon:{type:u},tag:{type:[String,Object,Function],required:!0}},"icon"),h=(0,s.ev)()({name:"VComponentIcon",props:d(),setup(e,t){let{slots:n}=t;return()=>{const t=e.icon;return(0,r.Wm)(e.tag,null,{default:()=>[e.icon?(0,r.Wm)(t,null,null):n.default?.()]})}}}),p=(0,s.aZ)({name:"VSvgIcon",inheritAttrs:!1,props:d(),setup(e,t){let{attrs:n}=t;return()=>(0,r.Wm)(e.tag,(0,r.dG)(n,{style:null}),{default:()=>[(0,r._)("svg",{class:"v-icon__svg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},[Array.isArray(e.icon)?e.icon.map((e=>Array.isArray(e)?(0,r._)("path",{d:e[0],"fill-opacity":e[1]},null):(0,r._)("path",{d:e},null))):(0,r._)("path",{d:e.icon},null)])]})}}),f=(0,s.aZ)({name:"VLigatureIcon",props:d(),setup(e){return()=>(0,r.Wm)(e.tag,null,{default:()=>[e.icon]})}}),m=(0,s.aZ)({name:"VClassIcon",props:d(),setup(e){return()=>(0,r.Wm)(e.tag,{class:(0,i.C_)(e.icon)},null)}}),v=e=>{const t=(0,r.f3)(c);if(!t)throw new Error("Missing Vuetify Icons provide!");const n=(0,r.Fl)((()=>{const n=(0,a.Tn)(e);if(!n)return{component:h};let r=n;if("string"===typeof r&&(r=r.trim(),r.startsWith("$")&&(r=t.aliases?.[r.slice(1)])),r||(0,l.Kd)(`Could not find aliased icon "${n}"`),Array.isArray(r))return{component:p,icon:r};if("string"!==typeof r)return{component:h,icon:r};const i=Object.keys(t.sets).find((e=>"string"===typeof r&&r.startsWith(`${e}:`))),o=i?r.slice(i.length+1):r,s=t.sets[i??t.defaultSet];return{component:s.component,icon:o}}));return{iconData:n}}},4220:function(e,t,n){"use strict";n.d(t,{H:function(){return o},l:function(){return s}});var r=n(2262),i=n(6252),a=n(6393);const o=(0,a.U)({eager:Boolean},"lazy");function s(e,t){const n=(0,r.XI)(!1),a=(0,r.Vh)((()=>n.value||e.eager||t.value));function o(){e.eager||(n.value=!1)}return(0,i.YP)(t,(()=>n.value=!0)),{isBooted:n,hasContent:a,onAfterLeave:o}}},8705:function(e,t,n){"use strict";n.d(t,{O:function(){return g},$2:function(){return _},O4:function(){return T},bU:function(){return b},Vw:function(){return C}});var r=n(6252),i=n(2262),a=n(9420),o=n(320),s=n(4245),l=n(3083);const u="$vuetify.",c=(e,t)=>e.replace(/\{(\d+)\}
3336/g,((e,n)=>String(t[Number(n)]))),d=(e,t,n)=>function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];if(!r.startsWith(u))return c(r,a);const d=r.replace(u,""),h=e.value&&n.value[e.value],p=t.value&&n.value[t.value];let f=(0,o.vO)(h,d,null);return f||((0,s.Kd)(`Translation key "${r}" not found in "${e.value}", trying fallback locale`),f=(0,o.vO)(p,d,null)),f||((0,s.N6)(`Translation key "${r}" not found in fallback`),f=r),"string"!==typeof f&&((0,s.N6)(`Translation key "${r}" has a non-string value`),f=r),c(f,a)};function h(e,t){return(n,r)=>{const i=new Intl.NumberFormat([e.value,t.value],r);return i.format(n)}}function p(e,t){const n=h(e,t);return n(.1).includes(",")?",":"."}function f(e,t,n){const i=(0,a.z)(e,t,e[t]??n.value);return i.value=e[t]??n.value,(0,r.YP)(n,(r=>{null==e[t]&&(i.value=n.value)})),i}function m(e){return t=>{const n=f(t,"locale",e.current),r=f(t,"fallback",e.fallback),a=f(t,"messages",e.messages);return{name:"vuetify",current:n,fallback:r,messages:a,decimalSeparator:(0,i.Vh)((()=>p(n,r))),t:d(n,r,a),n:h(n,r),provide:m({current:n,fallback:r,messages:a})}}}function v(e){const t=(0,i.XI)(e?.locale??"en"),n=(0,i.XI)(e?.fallback??"en"),r=(0,i.iH)({en:l.Z,...e?.messages});return{name:"vuetify",current:t,fallback:n,messages:r,decimalSeparator:(0,i.Vh)((()=>e?.decimalSeparator??p(t,n))),t:d(t,n,r),n:h(t,n),provide:m({current:t,fallback:n,messages:r})}}const g=Symbol.for("vuetify:locale");function y(e){return null!=e.name}function _(e){const t=e?.adapter&&y(e?.adapter)?e?.adapter:v(e),n=S(t,e);return{...t,...n}}function b(){const e=(0,r.f3)(g);if(!e)throw new Error("[Vuetify] Could not find injected locale instance");return e}function T(e){const t=(0,r.f3)(g);if(!t)throw new Error("[Vuetify] Could not find injected locale instance");const n=t.provide(e),i=k(n,t.rtl,e),a={...n,...i};return(0,r.JJ)(g,a),a}Symbol.for("vuetify:rtl");function w(){return{af:!1,ar:!0,bg:!1,ca:!1,ckb:!1,cs:!1,de:!1,el:!1,en:!1,es:!1,et:!1,fa:!0,fi:!1,fr:!1,hr:!1,hu:!1,he:!0,id:!1,it:!1,ja:!1,km:!1,ko:!1,lv:!1,lt:!1,nl:!1,no:!1,pl:!1,pt:!1,ro:!1,ru:!1,sk:!1,sl:!1,srCyrl:!1,srLatn:!1,sv:!1,th:!1,tr:!1,az:!1,uk:!1,vi:!1,zhHans:!1,zhHant:!1}}function S(e,t){const n=(0,i.iH)(t?.rtl??w()),a=(0,r.Fl)((()=>n.value[e.current.value]??!1));return{isRtl:a,rtl:n,rtlClasses:(0,i.Vh)((()=>"v-locale--is-"+(a.value?"rtl":"ltr")))}}function k(e,t,n){const a=(0,r.Fl)((()=>n.rtl??t.value[e.current.value]??!1));return{isRtl:a,rtl:t,rtlClasses:(0,i.Vh)((()=>"v-locale--is-"+(a.value?"rtl":"ltr")))}}function C(){const e=(0,r.f3)(g);if(!e)throw new Error("[Vuetify] Could not find injected rtl instance");return{isRtl:e.isRtl,rtlClasses:e.rtlClasses}}},9420:function(e,t,n){"use strict";n.d(t,{z:function(){return l}});var r=n(4539),i=n(2262),a=n(6252),o=n(8383),s=n(320);function l(e,t,n){let l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e=>e,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e=>e;const c=(0,o.F)("useProxiedModel"),d=(0,i.iH)(void 0!==e[t]?e[t]:n),h=(0,s.mA)(t),p=h!==t,f=p?(0,a.Fl)((()=>(e[t],!(!c.vnode.props?.hasOwnProperty(t)&&!c.vnode.props?.hasOwnProperty(h)||!c.vnode.props?.hasOwnProperty(`onUpdate:${t}`)&&!c.vnode.props?.hasOwnProperty(`onUpdate:${h}`))))):(0,a.Fl)((()=>(e[t],!(!c.vnode.props?.hasOwnProperty(t)||!c.vnode.props?.hasOwnProperty(`onUpdate:${t}`)))));(0,r.U)((()=>!f.value),(()=>{(0,a.YP)((()=>e[t]),(e=>{d.value=e}))}));const m=(0,a.Fl)({get(){const n=e[t];return l(f.value?n:d.value)},set(n){const r=u(n),a=(0,i.IU)(f.value?e[t]:d.value);a!==r&&l(a)!==n&&(d.value=r,c?.emit(`update:${t}`,r))}});return Object.defineProperty(m,"externalValue",{get:()=>f.value?e[t]:d.value}),m}},814:function(e,t,n){"use strict";n.d(t,{GN:function(){return p},Kx:function(){return m},nB:function(){return h},tv:function(){return d}});var r=n(6252),i=n(2262),a=n(8383),o=n(320),s=n(1115),l=n(6393),u=n(6293);function c(){const e=(0,a.F)("useRoute");return(0,r.Fl)((()=>e?.proxy?.$route))}function d(){return(0,a.F)("useRouter")?.proxy?.$router}function h(e,t){const n=(0,r.LL)("RouterLink"),a=(0,i.Vh)((()=>!(!e.href&&!e.to))),l=(0,r.Fl)((()=>a?.value||(0,o.B0)(t,"click")||(0,o.B0)(e,"click")));if("string"===typeof n||!("useLink"in n)){const t=(0,i.Vh)((()=>e.href));return{isLink:a,isRouterLink:(0,i.Vh)((()=>!1)),isClickable:l,href:t,linkProps:(0,i.qj)({href:t}),route:(0,i.Vh)((()=>{})),navigate:(0,i.Vh)((()=>{}))}}const u=n.useLink({to:(0,i.Vh)((()=>e.to||"")),replace:(0,i.Vh)((()=>e.replace))}),d=(0,r.Fl)((()=>e.to?u:void 0)),h=c(),p=(0,r.Fl)((()=>!!d.value&&(e.exact?h.value?d.value.isExactActive?.value&&(0,s.v)(d.value.route.value.query,h.value.query):d.value.isExactActive?.value??!1:d.value.isActive?.value??!1))),f=(0,r.Fl)((()=>e.to?d.value?.route.value.href:e.href)),m=(0,i.Vh)((()=>!!e.to));return{isLink:a,isRouterLink:m,isClickable:l,isActive:p,route:(0,i.Vh)((()=>d.value?.route.value)),navigate:(0,i.Vh)((()=>d.value?.navigate)),href:f,linkProps:(0,i.qj)({href:f,"aria-current":(0,i.Vh)((()=>p.value?"page":void 0)),"aria-disabled":(0,i.Vh)((()=>e.disabled&&a.value?"true":void 0)),tabindex:(0,i.Vh)((()=>e.disabled&&a.value?"-1":void 0))})}}const p=(0,l.U)({href:String,replace:Boolean,to:[String,Object],exact:Boolean},"router");let f=!1;function m(e,t){let n,a,o=!1;function s(e){e.state?.replaced||(o=!0,setTimeout((()=>o=!1)))}u.BR&&e?.beforeEach&&((0,r.Y3)((()=>{window.addEventListener("popstate",s),n=e.beforeEach((()=>f?o?t():void 0:(f=!0,new Promise((e=>{setTimeout((()=>e(o?t():void 0)))}))))),a=e?.afterEach((()=>
3336{f=!1}))})),(0,i.EB)((()=>{window.removeEventListener("popstate",s),n?.(),a?.()})))}},4288:function(e,t,n){"use strict";n.d(t,{a:function(){return i}});var r=n(8383);function i(){const e=(0,r.F)("useScopeId"),t=e.vnode.scopeId;return{scopeId:t?{[t]:""}:void 0}}},4999:function(e,t,n){"use strict";n.d(t,{ER:function(){return k},Fg:function(){return C},bo:function(){return d},jG:function(){return S},x$:function(){return h}});var r=n(2262),i=n(6252),a=n(6393),o=n(320),s=n(3819),l=n(6293),u=n(4245),c=n(8383);const d=Symbol.for("vuetify:theme"),h=(0,a.U)({theme:String},"theme");function p(){return{defaultTheme:"light",prefix:"v-",variations:{colors:[],lighten:0,darken:0},themes:{light:{dark:!1,colors:{background:"#FFFFFF",surface:"#FFFFFF","surface-bright":"#FFFFFF","surface-light":"#EEEEEE","surface-variant":"#424242","on-surface-variant":"#EEEEEE",primary:"#1867C0","primary-darken-1":"#1F5592",secondary:"#48A9A6","secondary-darken-1":"#018786",error:"#B00020",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#000000","border-opacity":.12,"high-emphasis-opacity":.87,"medium-emphasis-opacity":.6,"disabled-opacity":.38,"idle-opacity":.04,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.12,"dragged-opacity":.08,"theme-kbd":"#EEEEEE","theme-on-kbd":"#000000","theme-code":"#F5F5F5","theme-on-code":"#000000"}},dark:{dark:!0,colors:{background:"#121212",surface:"#212121","surface-bright":"#ccbfd6","surface-light":"#424242","surface-variant":"#c8c8c8","on-surface-variant":"#000000",primary:"#2196F3","primary-darken-1":"#277CC1",secondary:"#54B6B2","secondary-darken-1":"#48A9A6",error:"#CF6679",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},variables:{"border-color":"#FFFFFF","border-opacity":.12,"high-emphasis-opacity":1,"medium-emphasis-opacity":.7,"disabled-opacity":.5,"idle-opacity":.1,"hover-opacity":.04,"focus-opacity":.12,"selected-opacity":.08,"activated-opacity":.12,"pressed-opacity":.16,"dragged-opacity":.08,"theme-kbd":"#424242","theme-on-kbd":"#FFFFFF","theme-code":"#343434","theme-on-code":"#CCCCCC"}}},stylesheetId:"vuetify-theme-stylesheet",scoped:!1,unimportant:!1,utilities:!0}}function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p();const t=p();if(!e)return{...t,isDisabled:!0};const n={};for(const[r,i]of Object.entries(e.themes??{})){const e=i.dark||"dark"===r?t.themes?.dark:t.themes?.light;n[r]=(0,o.Ee)(e,i)}return(0,o.Ee)(t,{...e,themes:n})}function m(e,t,n,r){e.push(`${b(t,r)} {\n`,...n.map((e=>`  ${e};\n`)),"}\n")}function v(e,t){const n=e.dark?2:1,r=e.dark?1:2,i=[];for(const[a,o]of Object.entries(e.colors)){const e=(0,s.lu)(o);i.push(`--${t}theme-${a}: ${e.r},${e.g},${e.b}`),a.startsWith("on-")||i.push(`--${t}theme-${a}-overlay-multiplier: ${(0,s.zT)(o)>.18?n:r}`)}for(const[a,o]of Object.entries(e.variables)){const e="string"===typeof o&&o.startsWith("#")?(0,s.lu)(o):void 0,n=e?`${e.r}, ${e.g}, ${e.b}`:void 0;i.push(`--${t}${a}: ${n??o}`)}return i}function g(e,t,n){const r={};if(n)for(const i of["lighten","darken"]){const a="lighten"===i?s.$n:s._j;for(const l of(0,o.MT)(n[i],1))r[`${e}-${i}-${l}`]=(0,s.qX)(a((0,s.lu)(t),l))}return r}function y(e,t){if(!t)return{};let n={};for(const r of t.colors){const i=e[r];i&&(n={...n,...g(r,i,t)})}return n}function _(e){const t={};for(const n of Object.keys(e)){if(n.startsWith("on-")||e[`on-${n}`])continue;const r=`on-${n}`,i=(0,s.lu)(e[n]);t[r]=(0,s.YB)(i)}return t}function b(e,t){if(!t)return e;const n=`:where(${t})`;return":root"===e?n:`${n} ${e}`}function T(e,t,n){const r=w(e,t);r&&(r.innerHTML=n)}function w(e,t){if(!l.BR)return null;let n=document.getElementById(e);return n||(n=document.createElement("style"),n.id=e,n.type="text/css",t&&n.setAttribute("nonce",t),document.head.appendChild(n)),n}function S(e){const t=f(e),n=(0,r.XI)(t.defaultTheme),a=(0,r.iH)(t.themes),o=(0,r.XI)("light"),s=(0,i.Fl)({get(){return"system"===n.value?o.value:n.value},set(e){n.value=e}}),c=(0,i.Fl)((()=>{const e={};for(const[n,r]of Object.entries(a.value)){const i={...r.colors,...y(r.colors,t.variations)};e[n]={...r,colors:{...i,..._(i)}}}return e})),d=(0,r.Vh)((()=>c.value[s.value])),h=(0,r.Vh)((()=>"system"===n.value)),p=(0,i.Fl)((()=>{const e=[],n=t.unimportant?"":" !important",r=t.scoped?t.prefix:"";d.value?.dark&&m(e,":root",["color-scheme: dark"],t.scope),m(e,":root",v(d.value,t.prefix),t.scope);
3336for(const[a,o]of Object.entries(c.value))m(e,`.${t.prefix}theme--${a}`,["color-scheme: "+(o.dark?"dark":"normal"),...v(o,t.prefix)],t.scope);if(t.utilities){const i=[],a=[],o=new Set(Object.values(c.value).flatMap((e=>Object.keys(e.colors))));for(const e of o)e.startsWith("on-")?m(a,`.${e}`,[`color: rgb(var(--${t.prefix}theme-${e}))${n}`],t.scope):(m(i,`.${r}bg-${e}`,[`--${t.prefix}theme-overlay-multiplier: var(--${t.prefix}theme-${e}-overlay-multiplier)`,`background-color: rgb(var(--${t.prefix}theme-${e}))${n}`,`color: rgb(var(--${t.prefix}theme-on-${e}))${n}`],t.scope),m(a,`.${r}text-${e}`,[`color: rgb(var(--${t.prefix}theme-${e}))${n}`],t.scope),m(a,`.${r}border-${e}`,[`--${t.prefix}border-color: var(--${t.prefix}theme-${e})`],t.scope));t.layers?e.push("@layer background {\n",...i.map((e=>`  ${e}`)),"}\n","@layer foreground {\n",...a.map((e=>`  ${e}`)),"}\n"):e.push(...i,...a)}let i=e.map(((e,t)=>0===t?e:`    ${e}`)).join("");return t.layers&&(i="@layer vuetify.theme {\n"+e.map((e=>`  ${e}`)).join("")+"\n}"),i})),g=(0,r.Vh)((()=>t.isDisabled?void 0:`${t.prefix}theme--${s.value}`)),b=(0,r.Vh)((()=>Object.keys(c.value)));if(l.lK){const I=window.matchMedia("(prefers-color-scheme: dark)");function x(){o.value=I.matches?"dark":"light"}x(),I.addEventListener("change",x,{passive:!0}),(0,r.nZ)()&&(0,r.EB)((()=>{I.removeEventListener("change",x)}))}function w(e){if(t.isDisabled)return;const n=e._context.provides.usehead;if(n){function a(){return{style:[{textContent:p.value,id:t.stylesheetId,nonce:t.cspNonce||!1}]}}if(n.push){const o=n.push(a);l.BR&&(0,i.YP)(p,(()=>{o.patch(a)}))}else l.BR?(n.addHeadObjs((0,r.Vh)(a)),(0,i.m0)((()=>n.updateDOM()))):n.addHeadObjs(a())}else{function s(){T(t.stylesheetId,t.cspNonce,p.value)}l.BR?(0,i.YP)(p,s,{immediate:!0}):s()}}function S(e){"system"===e||b.value.includes(e)?s.value=e:(0,u.Kd)(`Theme "${e}" not found on the Vuetify theme instance`)}function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.value;const t=e.indexOf(s.value),n=-1===t?0:(t+1)%e.length;S(e[n])}function C(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["light","dark"];k(e)}const E=new Proxy(s,{get(e,t){return Reflect.get(e,t)},set(e,t,n){return"value"===t&&(0,u.Rn)(`theme.global.name.value = ${n}`,`theme.change('${n}')`),Reflect.set(e,t,n)}});return{install:w,change:S,cycle:k,toggle:C,isDisabled:t.isDisabled,isSystem:h,name:s,themes:a,current:d,computedThemes:c,prefix:t.prefix,themeClasses:g,styles:p,global:{name:E,current:d}}}function k(e){(0,c.F)("provideTheme");const t=(0,i.f3)(d,null);if(!t)throw new Error("Could not find Vuetify theme injection");const n=(0,r.Vh)((()=>e.theme??t.name.value)),a=(0,r.Vh)((()=>t.themes.value[n.value])),o=(0,r.Vh)((()=>t.isDisabled?void 0:`${t.prefix}theme--${n.value}`)),s={...t,name:n,current:a,themeClasses:o};return(0,i.JJ)(d,s),s}function C(){(0,c.F)("useTheme");const e=(0,i.f3)(d,null);if(!e)throw new Error("Could not find Vuetify theme injection");return e}},4539:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(2262),i=n(6252);function a(e,t){let n;function a(){n=(0,r.B)(),n.run((()=>t.length?t((()=>{n?.stop(),a()})):t()))}(0,i.YP)(e,(e=>{e&&!n?a():e||(n?.stop(),n=void 0)}),{immediate:!0}),(0,r.EB)((()=>{n?.stop()}))}},8918:function(e,t,n){"use strict";n.d(t,{J:function(){return l},X:function(){return s}});var r=n(9963),i=n(6252),a=n(6393),o=n(320);const s=(0,a.U)({transition:{type:null,default:"fade-transition",validator:e=>!0!==e}},"transition"),l=(e,t)=>{let{slots:n}=t;const{transition:a,disabled:s,group:l,target:u,...c}=e,{component:d=(l?r.W3:r.uT),...h}=(0,o.Kn)(a)?a:{};let p;return p=(0,o.Kn)(a)?(0,i.dG)(h,(0,o.op)({disabled:s,group:l,target:u}),c):(0,i.dG)({name:s||!a?"":a},c),(0,i.h)(d,p,n)}},4758:function(e,t,n){"use strict";function r(e){if("function"!==typeof e.getRootNode){while(e.parentNode)e=e.parentNode;return e!==document?null:document}const t=e.getRootNode();return t!==document&&t.getRootNode({composed:!0})!==document?null:t}function i(){return!0}function a(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];
3336if(!e||!i&&!1===o(e,n))return!1;const a=r(t);if("undefined"!==typeof ShadowRoot&&a instanceof ShadowRoot&&a.host===e.target)return!1;const s=("object"===typeof n.value&&n.value.include||(()=>[]))();return s.push(t),!s.some((t=>t?.contains(e.target)))}function o(e,t){const n="object"===typeof t.value&&t.value.closeConditional||i;return n(e)}function s(e,t,n){const r="function"===typeof n.value?n.value:n.value.handler;e.shadowTarget=e.target,t._clickOutside.lastMousedownWasOutside&&a(e,t,n)&&setTimeout((()=>{o(e,n)&&r&&r(e)}),0)}function l(e,t){const n=r(e);t(document),"undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&t(n)}n.d(t,{L:function(){return u},Z:function(){return c}});const u={mounted(e,t){const n=n=>s(n,e,t),r=n=>{e._clickOutside.lastMousedownWasOutside=a(n,e,t,!0)};l(e,(e=>{e.addEventListener("click",n,!0),e.addEventListener("mousedown",r,!0)})),e._clickOutside||(e._clickOutside={lastMousedownWasOutside:!1}),e._clickOutside[t.instance.$.uid]={onClick:n,onMousedown:r}},beforeUnmount(e,t){e._clickOutside&&(l(e,(n=>{if(!n||!e._clickOutside?.[t.instance.$.uid])return;const{onClick:r,onMousedown:i}=e._clickOutside[t.instance.$.uid];n.removeEventListener("click",r,!0),n.removeEventListener("mousedown",i,!0)})),delete e._clickOutside[t.instance.$.uid])}};var c=u},9568:function(e,t,n){"use strict";n.r(t),n.d(t,{ClickOutside:function(){return r.L},Intersect:function(){return i.N},Mutate:function(){return s},Resize:function(){return l.t},Ripple:function(){return u.H},Scroll:function(){return p},Tooltip:function(){return S},Touch:function(){return f.X}});var r=n(4758),i=n(680);function a(e,t){const n=t.modifiers||{},r=t.value,{once:i,immediate:a,...s}=n,l=!Object.keys(s).length,{handler:u,options:c}="object"===typeof r?r:{handler:r,options:{attributes:s?.attr??l,characterData:s?.char??l,childList:s?.child??l,subtree:s?.sub??l}},d=new MutationObserver((function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1?arguments[1]:void 0;u?.(n,r),i&&o(e,t)}));a&&u?.([],d),e._mutate=Object(e._mutate),e._mutate[t.instance.$.uid]={observer:d},d.observe(e,c)}function o(e,t){e._mutate?.[t.instance.$.uid]&&(e._mutate[t.instance.$.uid].observer.disconnect(),delete e._mutate[t.instance.$.uid])}const s={mounted:a,unmounted:o};var l=n(9797),u=n(3563);function c(e,t){const{self:n=!1}=t.modifiers??{},r=t.value,i="object"===typeof r&&r.options||{passive:!0},a="function"===typeof r||"handleEvent"in r?r:r.handler,o=n?e:t.arg?document.querySelector(t.arg):window;o&&(o.addEventListener("scroll",a,i),e._onScroll=Object(e._onScroll),e._onScroll[t.instance.$.uid]={handler:a,options:i,target:n?void 0:o})}function d(e,t){if(!e._onScroll?.[t.instance.$.uid])return;const{handler:n,options:r,target:i=e}=e._onScroll[t.instance.$.uid];i.removeEventListener("scroll",n,r),delete e._onScroll[t.instance.$.uid]}function h(e,t){t.value!==t.oldValue&&(d(e,t),c(e,t))}const p={mounted:c,unmounted:d,updated:h};var f=n(7522),m=n(9866),v=n(6252),g=n(9963),y=n(320),_=n(4245);function b(e,t){const n="string"===typeof e?(0,v.up)(e):e,r=T(n,t);return{mounted:r,updated:r,unmounted(e){(0,g.sY)(null,e)}}}function T(e,t){return function(n,r,i){const a="function"===typeof t?t(r):t,o=(0,y.Kn)(r.value)?r.value.text:"string"===typeof r.value?r.value:a?.text,s=(0,y.Kn)(r.value)?r.value:{},l=()=>o??n.textContent,u=(i.ctx===r.instance.$?w(i,r.instance.$)?.provides:i.ctx?.provides)??r.instance.$.provides,c=(0,v.h)(e,(0,v.dG)(a,s),l);c.appContext=Object.assign(Object.create(null),r.instance.$.appContext,{provides:u}),(0,g.sY)(c,n)}}function w(e,t){const n=new Set,r=t=>{for(const i of t){if(!i)continue;if(i===e||i.el&&e.el&&i.el===e.el)return!0;let t;if(n.add(i),i.suspense?t=r([i.ssContent]):Array.isArray(i.children)?t=r(i.children):i.component?.vnode&&(t=r([i.component?.subTree])),t)return t;n.delete(i)}return!1};if(!r([t.subTree]))return(0,_.N6)("Could not find original vnode, component will not inherit provides"),t;const i=Array.from(n).reverse();for(const a of i)if(a.component)return a.component;return t}const S=b(m.N,(e=>{const t=(0,y.Kn)(e.value)?!e.value.text:["",!1,null,void 0].includes(e.value);return{activator:t?null:"parent",location:e.arg?.replace("-"," "),text:"boolean"===typeof e.value?void 0:e.value}}))},680:function(e,t,n){"use strict";n.d(t,{N:function(){return o}});var r=n(6293);function i(e,t){if(!r.cu)return;const n=t.modifiers||{},i=t.value,{handler:o,options:s}="object"===typeof i?i:{handler:i,options:{}},l=new IntersectionObserver((function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;const s=e._observe?.[t.instance.$.uid];if(!s)return;const l=r.some((e=>e.isIntersecting));!o||n.quiet&&!s.init||n.once&&!l&&!s.init||o(l,r,i),l&&n.once?a(e,t):s.init=!0}),s);e._observe=Object(e._observe),e._observe[t.instance.$.uid]={init:!1,observer:l},l.observe(e)}function a(e,t){const n=e._observe?.[t.instance.$.uid];n&&(n.observer.unobserve(e),delete e._observe[t.instance.$.uid])}const o={mounted:i,unmounted:a,updated:(e,t)=>{e._observe?.[t.instance.$.uid]&&(a(e,t),i(e,t))}};t["Z"]=o},9797:function(e,t,n){"use strict";function r(e,t){const n=t.value,r={passive:!t.modifiers?.active};window.addEventListener("resize",n,r),e._onResize=Object(e._onResize),e._onResize[t.instance.$.uid]={handler:n,options:r},t.modifiers?.quiet||n()}function i(e,t){if(!e._onResize?.[t.instance.$.uid])return;const{handler:n,options:r}=e._onResize[t.instance.$.uid];window.removeEventListener("resize",n,r),delete e._onResize[t.instance.$.uid]}n.d(t,{t:function(){return a}});const a={mounted:r,unmounted:i};t["Z"]=a},3563:function(e,t,n){"use strict";n.d(t,{H:function(){return E},Z:function(){return I}});var r=n(320),i=n(3498);const a=Symbol("rippleStop"),o=80;function s(e,t){e.style.transform=t,e.style.webkitTransform=t}function l(e){return"TouchEvent"===e.constructor.name}function u(e){return"KeyboardEvent"===e.constructor.name}const c=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=0,a=0;if(!u(e)){const n=new i.xu(t),o=l(e)?e.touches[e.touches.length-1]:e,s=(0,i.Jc)([o.clientX,o.clientY]);r=s.x-n.left,a=s.y-n.top}let o=0,s=.3;t._ripple?.circle?(s=.15,o=t.clientWidth/2,o=n.center?o:o+Math.sqrt((r-o)**2+(a-o)**2)/4):o=Math.sqrt(t.clientWidth**2+t.clientHeight**2)/2;const c=(t.clientWidth-2*o)/2+"px",d=(t.clientHeight-2*o)/2+"px",h=n.center?c:r-o+"px",p=n.center?d:a-o+"px";return{radius:o,scale:s,x:h,y:p,centerX:c,centerY:d}},d={show(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t?._ripple?.enabled)return;const r=document.createElement("span"),i=document.createElement("span");r.appendChild(i),r.className="v-ripple__container",n.class&&(r.className+=` ${n.class}`);const{radius:a,scale:o,x:l,y:u,centerX:d,centerY:h}=c(e,t,n),p=2*a+"px";i.className="v-ripple__animation",i.style.width=p,i.style.height=p,t.appendChild(r);const f=window.getComputedStyle(t);f&&"static"===f.position&&(t.style.position="relative",t.dataset.previousPosition="static"),i.classList.add("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--visible"),s(i,`translate(${l}, ${u}) scale3d(${o},${o},${o})`),i.dataset.activated=String(performance.now()),requestAnimationFrame((()=>{requestAnimationFrame((()=>{i.classList.remove("v-ripple__animation--enter"),i.classList.add("v-ripple__animation--in"),s(i,`translate(${d}, ${h}) scale3d(1,1,1)`)}
3336))}))},hide(e){if(!e?._ripple?.enabled)return;const t=e.getElementsByClassName("v-ripple__animation");if(0===t.length)return;const n=Array.from(t).findLast((e=>!e.dataset.isHiding));if(!n)return;n.dataset.isHiding="true";const r=performance.now()-Number(n.dataset.activated),i=Math.max(250-r,0);setTimeout((()=>{n.classList.remove("v-ripple__animation--in"),n.classList.add("v-ripple__animation--out"),setTimeout((()=>{const t=e.getElementsByClassName("v-ripple__animation");1===t.length&&e.dataset.previousPosition&&(e.style.position=e.dataset.previousPosition,delete e.dataset.previousPosition),n.parentNode?.parentNode===e&&e.removeChild(n.parentNode)}),300)}),i)}};function h(e){return"undefined"===typeof e||!!e}function p(e){const t={},n=e.currentTarget;if(n?._ripple&&!n._ripple.touched&&!e[a]){if(e[a]=!0,l(e))n._ripple.touched=!0,n._ripple.isTouch=!0;else if(n._ripple.isTouch)return;if(t.center=n._ripple.centered||u(e),n._ripple.class&&(t.class=n._ripple.class),l(e)){if(n._ripple.showTimerCommit)return;n._ripple.showTimerCommit=()=>{d.show(e,n,t)},n._ripple.showTimer=window.setTimeout((()=>{n?._ripple?.showTimerCommit&&(n._ripple.showTimerCommit(),n._ripple.showTimerCommit=null)}),o)}else d.show(e,n,t)}}function f(e){e[a]=!0}function m(e){const t=e.currentTarget;if(t?._ripple){if(window.clearTimeout(t._ripple.showTimer),"touchend"===e.type&&t._ripple.showTimerCommit)return t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null,void(t._ripple.showTimer=window.setTimeout((()=>{m(e)})));window.setTimeout((()=>{t._ripple&&(t._ripple.touched=!1)})),d.hide(t)}}function v(e){const t=e.currentTarget;t?._ripple&&(t._ripple.showTimerCommit&&(t._ripple.showTimerCommit=null),window.clearTimeout(t._ripple.showTimer))}let g=!1;function y(e,t){!g&&t.includes(e.key)&&(g=!0,p(e))}function _(e){g=!1,m(e)}function b(e){g&&(g=!1,m(e))}function T(e,t,n){const{value:i,modifiers:a}=t,o=h(i);o||d.hide(e),e._ripple=e._ripple??{},e._ripple.enabled=o,e._ripple.centered=a.center,e._ripple.circle=a.circle;const s=(0,r.Kn)(i)?i:{};s.class&&(e._ripple.class=s.class);const l=s.keys??["Enter","Space"];if(e._ripple.keyDownHandler=e=>y(e,l),o&&!n){if(a.stop)return e.addEventListener("touchstart",f,{passive:!0}),void e.addEventListener("mousedown",f);e.addEventListener("touchstart",p,{passive:!0}),e.addEventListener("touchend",m,{passive:!0}),e.addEventListener("touchmove",v,{passive:!0}),e.addEventListener("touchcancel",m),e.addEventListener("mousedown",p),e.addEventListener("mouseup",m),e.addEventListener("mouseleave",m),e.addEventListener("keydown",e._ripple.keyDownHandler),e.addEventListener("keyup",_),e.addEventListener("blur",b),e.addEventListener("dragstart",m,{passive:!0})}else!o&&n&&w(e)}function w(e){e.removeEventListener("touchstart",f),e.removeEventListener("mousedown",f),e.removeEventListener("touchstart",p),e.removeEventListener("touchend",m),e.removeEventListener("touchmove",v),e.removeEventListener("touchcancel",m),e.removeEventListener("mousedown",p),e.removeEventListener("mouseup",m),e.removeEventListener("mouseleave",m),e._ripple?.keyDownHandler&&e.removeEventListener("keydown",e._ripple.keyDownHandler),e.removeEventListener("keyup",_),e.removeEventListener("blur",b),e.removeEventListener("dragstart",m)}function S(e,t){T(e,t,!1)}function k(e){w(e),delete e._ripple}function C(e,t){if(t.value===t.oldValue)return;const n=h(t.oldValue);T(e,t,n)}const E={mounted:S,unmounted:k,updated:C};var I=E},7522:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var r=n(320);const i=e=>{const{touchstartX:t,touchendX:n,touchstartY:r,touchendY:i}=e,a=.5,o=16;e.offsetX=n-t,e.offsetY=i-r,Math.abs(e.offsetY)<a*Math.abs(e.offsetX)&&(e.left&&n<t-o&&e.left(e),e.right&&n>t+o&&e.right(e)),Math.abs(e.offsetX)<a*Math.abs(e.offsetY)&&(e.up&&i<r-o&&e.up(e),e.down&&i>r+o&&e.down(e))};function a(e,t){const n=e.changedTouches[0];t.touchstartX=n.clientX,t.touchstartY=n.clientY,t.start?.({originalEvent:e,...t})}function o(e,t){const n=e.changedTouches[0];t.touchendX=n.clientX,t.touchendY=n.clientY,t.end?.({originalEvent:e,...t}),i(t)}function s(e,t){const n=e.changedTouches[0];t.touchmoveX=n.clientX,t.touchmoveY=n.clientY,t.move?.({originalEvent:e,...t})}function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:e.left,right:e.right,up:e.up,down:e.down,start:e.start,move:e.move,end:e.end};return{touchstart:e=>a(e,t),touchend:e=>o(e,t),touchmove:e=>s(e,t)}}function u(e,t){const n=t.value,i=n?.parent?e.parentElement:e,a=n?.options??{passive:!0},o=t.instance?.$.uid;if(!i||void 0===o)return;const s=l(t.value);i._touchHandlers=i._touchHandlers??Object.create(null),i._touchHandlers[o]=s,(0,r.XP)(s).forEac
3336h((e=>{i.addEventListener(e,s[e],a)}))}function c(e,t){const n=t.value?.parent?e.parentElement:e,i=t.instance?.$.uid;if(!n?._touchHandlers||void 0===i)return;const a=n._touchHandlers[i];a&&((0,r.XP)(a).forEach((e=>{n.removeEventListener(e,a[e])})),delete n._touchHandlers[i],(0,r.XP)(n._touchHandlers).length||delete n._touchHandlers)}const d={mounted:u,unmounted:c};t["Z"]=d},7626:function(e,t,n){"use strict";n.d(t,{Rd:function(){return _}});var r=n(1810),i=n(6252);const a={collapse:"mdi-chevron-up",complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close-circle",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-alert-circle",error:"mdi-close-circle",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sortAsc:"mdi-arrow-up",sortDesc:"mdi-arrow-down",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus",calendar:"mdi-calendar",treeviewCollapse:"mdi-menu-down",treeviewExpand:"mdi-menu-right",tableGroupCollapse:"mdi-chevron-down",tableGroupExpand:"mdi-chevron-right",eyeDropper:"mdi-eyedropper",upload:"mdi-cloud-upload",color:"mdi-palette",command:"mdi-apple-keyboard-command",ctrl:"mdi-apple-keyboard-control",space:"mdi-keyboard-space",shift:"mdi-apple-keyboard-shift",alt:"mdi-apple-keyboard-option",enter:"mdi-keyboard-return",arrowup:"mdi-arrow-up",arrowdown:"mdi-arrow-down",arrowleft:"mdi-arrow-left",arrowright:"mdi-arrow-right",backspace:"mdi-backspace",play:"mdi-play",pause:"mdi-pause",fullscreen:"mdi-fullscreen",fullscreenExit:"mdi-fullscreen-exit",volumeHigh:"mdi-volume-high",volumeMedium:"mdi-volume-medium",volumeLow:"mdi-volume-low",volumeOff:"mdi-volume-variant-off",search:"mdi-magnify"},o={component:e=>(0,i.h)(r.$0,{...e,class:"mdi"})};var s=n(320);function l(){return{svg:{component:r.oX},class:{component:r.$0}}}function u(e){const t=l(),n=e?.defaultSet??"mdi";return"mdi"!==n||t.mdi||(t.mdi=o),(0,s.Ee)({defaultSet:n,sets:t,aliases:{...a,vuetify:["M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z",["M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z",.6]],"vuetify-outline":"svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z","vuetify-play":["m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468
3336-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z",["M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z",.6]]}},e)}var c=n(956),d=n(121),h=n(5879),p=n(2731),f=n(8705),m=n(4999),v=n(2262),g=n(2290),y=n(6293);function _(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{blueprint:t,...n}=e,a=(0,s.Ee)(t,n),{aliases:o={},components:l={},directives:_={}}=a,b=(0,v.B)();return b.run((()=>{const e=(0,d.yB)(a.defaults),t=(0,h.fT)(a.display,a.ssr),n=(0,m.jG)(a.theme),s=u(a.icons),w=(0,f.$2)(a.locale),S=(0,c.Bq)(a.date,w),k=(0,p.D6)(a.goTo,w);function C(u){for(const e in _)u.directive(e,_[e]);for(const e in l)u.component(e,l[e]);for(const e in o)u.component(e,(0,g.aZ)({...o[e],name:e,aliasName:o[e].name}));const b=(0,v.B)();if(b.run((()=>{n.install(u)})),u.onUnmount((()=>b.stop())),u.provide(d.tI,e),u.provide(h.x6,t),u.provide(m.bo,n),u.provide(r.YK,s),u.provide(f.O,w),u.provide(c.tI,S.options),u.provide(c.d,S.instance),u.provide(p.Mr,k),y.BR&&a.ssr)if(u.$nuxt)u.$nuxt.hook("app:suspense:resolve",(()=>
3336{t.update()}));else{const{mount:e}=u;u.mount=function(){const n=e(...arguments);return(0,i.Y3)((()=>t.update())),u.mount=e,n}}u.mixin({computed:{$vuetify(){return(0,v.qj)({defaults:T.call(this,d.tI),display:T.call(this,h.x6),theme:T.call(this,m.bo),icons:T.call(this,r.YK),locale:T.call(this,f.O),date:T.call(this,c.d)})}}})}function E(){b.stop()}return{install:C,unmount:E,defaults:e,display:t,theme:n,icons:s,locale:w,date:S,goTo:k}}))}const b="3.13.4";function T(e){const t=this.$,n=t.parent?.provides??t.vnode.appContext?.provides;if(n&&e in n)return n[e]}_.version=b},967:function(e,t){"use strict";t["Z"]={badge:"Abzeichen",open:"Öffnen",close:"Schließen",dismiss:"Verwerfen",confirmEdit:{ok:"OK",cancel:"Abbrechen"},dataIterator:{noResultsText:"Keine Elemente gefunden",loadingText:"Lade Elemente..."},dataTable:{itemsPerPageText:"Zeilen pro Seite:",ariaLabel:{sortDescending:"Absteigend sortiert.",sortAscending:"Aufsteigend sortiert.",sortNone:"Nicht sortiert.",activateNone:"Aktivieren um Sortierung zu entfernen.",activateDescending:"Aktivieren um absteigend zu sortieren.",activateAscending:"Aktivieren um aufsteigend zu sortieren.",selectRow:"Zeile auswählen",selectAll:"Alle auswählen",selectGroup:"Gruppe auswählen"},sortBy:"Sortiere nach"},dataFooter:{itemsPerPageText:"Elemente pro Seite:",itemsPerPageAll:"Alle",nextPage:"Nächste Seite",prevPage:"Vorherige Seite",firstPage:"Erste Seite",lastPage:"Letzte Seite",pageText:"{0}-{1} von {2}"},dateRangeInput:{divider:"bis"},datePicker:{itemsSelected:"{0} ausgewählt",range:{title:"Daten auswählen",header:"Daten eingeben"},title:"Datum auswählen",header:"Datum eingeben",input:{placeholder:"Datum eingeben"},ariaLabel:{previousMonth:"Vorheriger Monat",nextMonth:"Nächster Monat",selectYear:"Jahr auswählen",previousYear:"Vorheriges Jahr",nextYear:"Nächstes Jahr",selectMonth:"Monat auswählen",selectDate:"{0}",currentDate:"Heute, {0}"}},noDataText:"Keine Daten vorhanden",carousel:{prev:"Vorheriges Bild",next:"Nächstes Bild",ariaLabel:{delimiter:"Element {0} von {1}"}},calendar:{moreEvents:"{0} mehr",today:"Heute"},input:{clear:"{0} leeren",prependAction:"{0} vorangestellte Aktion",appendAction:"{0} angehängte Aktion",otp:"Bitte OTP-Zeichen {0} eingeben"},fileInput:{counter:"{0} Dateien",counterSize:"{0} Dateien ({1} gesamt)"},fileUpload:{title:"Datei hier ablegen",divider:"oder",browse:"Dateien durchsuchen"},timePicker:{am:"AM",pm:"PM",title:"Uhrzeit auswählen",hour:"Stunde",minute:"Minuten",second:"Sekunden",notAllowed:"Wert ist nicht erlaubt"},pagination:{ariaLabel:{root:"Seitennavigation",next:"Nächste Seite",previous:"Vorherige Seite",page:"Gehe zu Seite {0}",currentPage:"Aktuelle Seite, Seite {0}",first:"Erste Seite",last:"Letzte Seite"}},stepper:{next:"Weiter",prev:"Zurück"},rating:{ariaLabel:{item:"Bewertung {0} von {1}"}},loading:"Laden...",infiniteScroll:{loadMore:"Mehr laden",empty:"Nichts weiteres"},rules:{required:"Dieses Feld ist erforderlich",email:"Bitte geben Sie eine gültige E-Mail-Adresse ein",number:"Dieses Feld darf nur Zahlen enthalten",integer:"Dieses Feld darf nur Ganzzahlen enthalten",capital:"Dieses Feld darf nur Großbuchstaben enthalten",maxLength:"Sie dürfen maximal {0} Zeichen eingeben",minLength:"Sie müssen mindestens {0} Zeichen eingeben",strictLength:"Die Länge des eingegebenen Feldes ist ungültig",exclude:"Das Zeichen {0} ist nicht erlaubt",notEmpty:"Bitte wählen Sie mindestens einen Wert aus",pattern:"Ungültiges Format"},command:{search:"Geben Sie einen Befehl ein oder suchen Sie..."},hotkey:{then:"dann",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Eingabe",escape:"Escape",upArrow:"Pfeil nach oben",downArrow:"Pfeil nach unten",leftArrow:"Pfeil nach links",rightArrow:"Pfeil nach rechts",backspace:"Rücktaste",space:"Leertaste",plus:"plus",shortcut:"Tastenkürzel: {0}",or:"oder"},video:{play:"Abspielen",pause:"Pause",seek:"Suchen",volume:"Lautstärke",showVolume:"Lautstärkeregler anzeigen",mute:"Stummschalten",unmute:"Stummschaltung aufheben",enterFullscreen:"Vollbild",exitFullscreen:"Vollbild beenden"},colorPicker:{ariaLabel:{eyedropper:"Farbe vom Bildschirm auswählen",hueSlider:"Farbton",alphaSl
3336ider:"Transparenz",redInput:"Rot",greenInput:"Grün",blueInput:"Blau",alphaInput:"Transparenz",hueInput:"Farbton",saturationInput:"Sättigung",lightnessInput:"Helligkeit",hexInput:"HEX-Wert",hexaInput:"HEX-Wert mit Transparenz",changeFormat:"Farbformat ändern"}}}},3083:function(e,t){"use strict";t["Z"]={badge:"Badge",open:"Open",close:"Close",dismiss:"Dismiss",confirmEdit:{ok:"OK",cancel:"Cancel"},dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending.",selectRow:"Select row",selectAll:"Select all",selectGroup:"Select group"},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},dateRangeInput:{divider:"to"},datePicker:{itemsSelected:"{0} selected",range:{title:"Select dates",header:"Enter dates"},title:"Select date",header:"Enter date",input:{placeholder:"Enter date"},ariaLabel:{previousMonth:"Previous month",nextMonth:"Next month",selectYear:"Select year",previousYear:"Previous year",nextYear:"Next year",selectMonth:"Select month",selectDate:"{0}",currentDate:"Today, {0}"}},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more",today:"Today"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action",otp:"Please enter OTP character {0}"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},fileUpload:{title:"Drag and drop files here",divider:"or",browse:"Browse Files"},timePicker:{am:"AM",pm:"PM",title:"Select Time",hour:"Hour",minute:"Minute",second:"Second",notAllowed:"Value is not allowed"},pagination:{ariaLabel:{root:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Go to page {0}",currentPage:"Page {0}, Current page",first:"First page",last:"Last page"}},stepper:{next:"Next",prev:"Previous"},rating:{ariaLabel:{item:"Rating {0} of {1}"}},loading:"Loading...",infiniteScroll:{loadMore:"Load more",empty:"No more"},rules:{required:"This field is required",email:"Please enter a valid email",number:"This field can only contain numbers",integer:"This field can only contain integer values",capital:"This field can only contain uppercase letters",maxLength:"You must enter a maximum of {0} characters",minLength:"You must enter a minimum of {0} characters",strictLength:"The length of the entered field is invalid",exclude:"The {0} character is not allowed",notEmpty:"Please choose at least one value",pattern:"Invalid format"},command:{search:"Type a command or search..."},hotkey:{then:"then",ctrl:"Ctrl",command:"Command",space:"Space",shift:"Shift",alt:"Alt",enter:"Enter",escape:"Escape",upArrow:"Up Arrow",downArrow:"Down Arrow",leftArrow:"Left Arrow",rightArrow:"Right Arrow",backspace:"Backspace",option:"Option",plus:"plus",shortcut:"Keyboard shortcut: {0}",or:"or"},video:{play:"Play",pause:"Pause",seek:"Seek",volume:"Volume",showVolume:"Show volume control",mute:"Mute",unmute:"Unmute",enterFullscreen:"Full screen",exitFullscreen:"Exit full screen"},colorPicker:{ariaLabel:{eyedropper:"Select color with eyedropper",hueSlider:"Hue",alphaSlider:"Alpha",redInput:"Red value",greenInput:"Green value",blueInput:"Blue value",alphaInput:"Alpha value",hueInput:"Hue value",saturationInput:"Saturation value",lightnessInput:"Lightness value",hexInput:"HEX value",hexaInput:"HEX with alpha value",changeFormat:"Change color format"}}}},1654:function(e,t){"use strict";t["Z"]={badge:"Infopiste",open:"Avaa",close:"Sulje",dismiss:"Hylkää",confirmEdit:{ok:"OK",cancel:"Peruuta"},dataIterator:{noResultsText:"Ei osumia",loadingText:"Ladataan kohteita..."},dataTable:{itemsPerPageText:"Rivejä sivulla:",ariaLabel:{sortDescending:": Järjestetty laskevasti. Poista järjestäminen aktivoimalla.",sortAscending:": Järjestetty nousevasti. J
3336ärjestä laskevasti aktivoimalla.",sortNone:": Ei järjestetty. Järjestä nousevasti aktivoimalla.",activateNone:"Aktivoi lajittelun poistamiseksi.",activateDescending:"Aktivoi laskevien laskevien lajittelemiseksi.",activateAscending:"Aktivoi lajitella nouseva.",selectRow:"Valitse rivi",selectAll:"Valitse kaikki",selectGroup:"Valitse ryhmä"},sortBy:"Järjestä"},dataFooter:{itemsPerPageText:"Kohteita sivulla:",itemsPerPageAll:"Kaikki",nextPage:"Seuraava sivu",prevPage:"Edellinen sivu",firstPage:"Ensimmäinen sivu",lastPage:"Viimeinen sivu",pageText:"{0}-{1} ({2})"},dateRangeInput:{divider:"–"},datePicker:{itemsSelected:"{0} valittu",range:{title:"Valitse päivämäärät",header:"Syötä päivämäärät"},title:"Valitse päivämäärä",header:"Syötä päivämäärä",input:{placeholder:"Syötä päivämäärä"},ariaLabel:{previousMonth:"Edellinen kuukausi",nextMonth:"Seuraava kuukausi",selectYear:"Valitse vuosi",previousYear:"Edellinen vuosi",nextYear:"Seuraava vuosi",selectMonth:"Valitse kuukausi",selectDate:"{0}",currentDate:"Tänään, {0}"}},noDataText:"Ei dataa",carousel:{prev:"Edellinen kuva",next:"Seuraava kuva",ariaLabel:{delimiter:"Karusellin kuva {0}/{1}"}},calendar:{moreEvents:"{0} lisää",today:"Tänään"},input:{clear:"Tyhjennä {0}",prependAction:"{0} edeltävä toiminto",appendAction:"{0} lisätty toiminto",otp:"Syötä OTP-merkki {0}"},fileInput:{counter:"{0} tiedostoa",counterSize:"{0} tiedostoa ({1} yhteensä)"},fileUpload:{title:"Vedä ja pudota tiedostot tähän",divider:"tai",browse:"Selaa tiedostoja"},timePicker:{am:"ap.",pm:"ip.",title:"Valitse aika",hour:"Tunti",minute:"Minuutit",second:"Sekunnit",notAllowed:"Arvo ei ole sallittu"},pagination:{ariaLabel:{root:"Sivutuksen navigointi",next:"Seuraava sivu",previous:"Edellinen sivu",page:"Mene sivulle {0}",currentPage:"Nykyinen sivu, Sivu {0}",first:"Ensimmäinen sivu",last:"Viimeinen sivu"}},stepper:{next:"Seuraava",prev:"Edellinen"},rating:{ariaLabel:{item:"Luokitus {0}/{1}"}},loading:"Ladataan...",infiniteScroll:{loadMore:"Lataa lisää",empty:"Ei enempää"},rules:{required:"Tämä kenttä on pakollinen",email:"Anna kelvollinen sähköpostiosoite",number:"Tämä kenttä voi sisältää vain numeroita",integer:"Tämä kenttä voi sisältää vain kokonaislukuja",capital:"Tämä kenttä voi sisältää vain isoja kirjaimia",maxLength:"Sinun tulee syöttää enintään {0} merkkiä",minLength:"Sinun tulee syöttää vähintään {0} merkkiä",strictLength:"Syötetyn kentän pituus on virheellinen",exclude:"Merkki {0}
3336 ei ole sallittu",notEmpty:"Valitse ainakin yksi arvo",pattern:"Virheellinen muoto"},command:{search:"Kirjoita komento tai hae..."},hotkey:{then:"sitten",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Enter",escape:"Escape",upArrow:"Nuoli ylös",downArrow:"Nuoli alas",leftArrow:"Nuoli vasemmalle",rightArrow:"Nuoli oikealle",backspace:"Askelpalautin",space:"Välilyönti",plus:"plus",shortcut:"Näppäinyhdistelmä: {0}",or:"tai"},video:{play:"Toista",pause:"Tauko",seek:"Hae",volume:"Äänenvoimakkuus",showVolume:"Näytä äänenvoimakkuuden säädin",mute:"Mykistä",unmute:"Poista mykistys",enterFullscreen:"Koko näyttö",exitFullscreen:"Poistu koko näytöstä"},colorPicker:{ariaLabel:{eyedropper:"Valitse väri näytöltä",hueSlider:"Sävy",alphaSlider:"Alfa",redInput:"Punainen",greenInput:"Vihreä",blueInput:"Sininen",alphaInput:"Alfa",hueInput:"Sävy",saturationInput:"Kylläisyys",lightnessInput:"Vaaleus",hexInput:"HEX-arvo",hexaInput:"HEX alfa-arvolla",changeFormat:"Vaihda värimuotoa"}}}},9423:function(e,t){"use strict";t["Z"]={badge:"Badge",open:"Ouvrir",close:"Fermer",dismiss:"Ignorer",confirmEdit:{ok:"OK",cancel:"Annuler"},dataIterator:{noResultsText:"Aucun enregistrement correspondant trouvé",loadingText:"Chargement de l'élément..."},dataTable:{itemsPerPageText:"Lignes par page :",ariaLabel:{sortDescending:"Tri décroissant.",sortAscending:"Tri croissant.",sortNone:"Non trié.",activateNone:"Activer pour supprimer le tri.",activateDescending:"Activer pour trier par ordre décroissant.",activateAscending:"Activer pour trier par ordre croissant.",selectRow:"Sélectionner la ligne",selectAll:"Tout sélectionner",selectGroup:"Sélectionner le groupe"},sortBy:"Trier par"},dataFooter:{itemsPerPageText:"Éléments par page :",itemsPerPageAll:"Tous",nextPage:"Page suivante",prevPage:"Page précédente",firstPage:"Première page",lastPage:"Dernière page",pageText:"{0}-{1} de {2}"},dateRangeInput:{divider:"à"},datePicker:{itemsSelected:"{0} sélectionné(s)",range:{title:"Sélectionner des dates",header:"Entrer des dates"},title:"Sélectionner une date",header:"Entrer une date",input:{placeholder:"Entrer une date"},ariaLabel:{previousMonth:"Mois précédent",nextMonth:"Mois suivant",selectYear:"Sélectionner une année",previousYear:"Année précédente",nextYear:"Année suivante",selectMonth:"Sélectionner un mois",selectDate:"{0}",currentDate:"Aujourd'hui, {0}"}},noDataText:"Aucune donnée disponible",carousel:{prev:"Visuel précédent",next:"Visuel suivant",ariaLabel:{delimiter:"Diapositive {0} de {1}"}},calendar:{moreEvents:"{0} de plus",today:"Aujourd'hui"},input:{clear:"Vider {0}",prependAction:"{0} action avant",appendAction:"{0} action après",otp:"Caractère {0} du mot de passe à usage unique"},fileInput:{counter:"{0} fichier(s)",counterSize:"{0} fichier(s) ({1} au total)"},fileUpload:{title:"Glissez-déposez des fichiers ici",divider:"ou",browse:"Parcourir les fichiers"},timePicker:{am:"AM",pm:"PM",title:"Sélectionner une heure",hour:"Heure",minute:"Minute",second:"Seconde",notAllowed:"La valeur n'est pas autorisée"},pagination:{ariaLabel:{root:"Navigation de pagination",next:"Page suivante",previous:"Page précédente",page:"Aller à la page {0}",currentPage:"Page actuelle, Page {0}",first:"Première page",last:"Dernière page"}},stepper:{next:"Suivant",prev:"Précédent"},rating:{ariaLabel:{item:"Note de {0} sur {1}"}},loading:"Chargement...",infiniteScroll:{loadMore:"Charger plus",empty:"Aucune donnée supplémentaire"},rules:{required:"Ce champ est requis",email:"Veuillez entrer une adresse email valide",number:"Ce champ ne peut contenir que des chiffres",integer:"Ce champ ne peut contenir que des valeurs entières",capital:"Ce champ ne peut contenir que des lettres majuscules",maxLength:"Vous devez entrer un maximum de {0} caractères",minLength:"Vous devez entrer un minimum de {0} caractères",strictLength:"La longueur du champ entré est invalide",exclude:"Le caractère {0} n’est pas autorisé",notEmpty:"Veuillez choisir au moins une valeur",pattern:"Format invalide"},command:{search:"Tapez une commande ou recherchez..."},hotkey:{then:"puis",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Entrée",escape:"Échap",upArrow:"Flèche haut",downArrow:"Flèche bas",leftArrow:"Flèche gauche",rightArrow:"Flèche droite",backspace:"Retour",space:"Espace",plus:"plus",shortcut:"Raccourci clavier : {0}",or:"ou"},video:{play:"Lire",pause:"Pause",seek:"Chercher",volume:"Volume",showVolume:"Afficher le contrôle du volume",mute:"Muet",unmute:"Activer le son",enterFullscreen:"Plein écran",exitFullscreen:"Quitter le plein écran"},colorPicker:{ariaLabel:{eyedropper:"Sélectionner une couleur à l'écran",hueSlider:"Teinte",alphaSl
3336ider:"Opacité",redInput:"Rouge",greenInput:"Vert",blueInput:"Bleu",alphaInput:"Opacité",hueInput:"Teinte",saturationInput:"Saturation",lightnessInput:"Luminosité",hexInput:"Valeur HEX",hexaInput:"Valeur HEX avec opacité",changeFormat:"Changer le format de couleur"}}}},7547:function(e,t){"use strict";t["Z"]={badge:"Distintivo",open:"Apri",close:"Chiudi",dismiss:"Ignora",confirmEdit:{ok:"OK",cancel:"Annulla"},dataIterator:{noResultsText:"Nessun risultato trovato",loadingText:"Caricamento in corso..."},dataTable:{itemsPerPageText:"Righe per pagina:",ariaLabel:{sortDescending:"Ordinati in ordine decrescente.",sortAscending:"Ordinati in ordine crescente.",sortNone:"Non ordinato.",activateNone:"Attiva per rimuovere l'ordinamento.",activateDescending:"Attiva per ordinare in ordine decrescente.",activateAscending:"Attiva per ordinare in ordine crescente.",selectRow:"Seleziona riga",selectAll:"Seleziona tutto",selectGroup:"Seleziona gruppo"},sortBy:"Ordina per"},dataFooter:{itemsPerPageText:"Elementi per pagina:",itemsPerPageAll:"Tutti",nextPage:"Pagina seguente",prevPage:"Pagina precedente",firstPage:"Prima pagina",lastPage:"Ultima pagina",pageText:"{0}-{1} di {2}"},dateRangeInput:{divider:"a"},datePicker:{itemsSelected:"{0} selezionato/i",range:{title:"Seleziona date",header:"Inserisci date"},title:"Seleziona data",header:"Inserisci data",input:{placeholder:"Inserisci data"},ariaLabel:{previousMonth:"Mese precedente",nextMonth:"Mese successivo",selectYear:"Seleziona anno",previousYear:"Anno precedente",nextYear:"Anno successivo",selectMonth:"Seleziona mese",selectDate:"{0}",currentDate:"Oggi, {0}"}},noDataText:"Nessun elemento disponibile",carousel:{prev:"Vista precedente",next:"Prossima vista",ariaLabel:{delimiter:"Slide carosello {0} di {1}"}},calendar:{moreEvents:"{0} di più",today:"Oggi"},input:{clear:"Cancella {0}",prependAction:"Azione precedente {0}",appendAction:"Azione successiva {0}",otp:"Inserisci il codice OTP {0}"},fileInput:{counter:"{0} file",counterSize:"{0} file ({1} in totale)"},fileUpload:{title:"Trascina e rilascia i file qui",divider:"o",browse:"Sfoglia i file"},timePicker:{am:"AM",pm:"PM",title:"Seleziona l'ora",hour:"Ora",minute:"Minuti",second:"Secondi",notAllowed:"Il valore non è consentito"},pagination:{ariaLabel:{root:"Navigazione impaginazione",next:"Pagina seguente",previous:"Pagina precedente",page:"Vai alla pagina {0}",currentPage:"Pagina corrente, pagina {0}",first:"Prima pagina",last:"Ultima pagina"}},stepper:{next:"Successivo",prev:"Precedente"},rating:{ariaLabel:{item:"Valutazione {0} di {1}"}},loading:"Caricamento...",infiniteScroll:{loadMore:"Carica altro",empty:"Nessun elemento"},rules:{required:"Questo campo è obbligatorio",email:"Inserisci un indirizzo email valido",number:"Questo campo può contenere solo numeri",integer:"Questo campo può contenere solo valori interi",capital:"Questo campo può contenere solo lettere maiuscole",maxLength:"Devi inserire un massimo di {0} caratteri",minLength:"Devi inserire un minimo di {0} caratteri",strictLength:"La lunghezza del campo inserito non è valida",exclude:"Il carattere {0} non è consentito",notEmpty:"Seleziona almeno un valore",pattern:"Formato non valido"},command:{search:"Digita un comando o cerca..."},hotkey:{then:"poi",ctrl:"Ctrl",command:"Command",shift:"Shift",alt:"Alt",option:"Option",enter:"Invio",escape:"Escape",upArrow:"Freccia su",downArrow:"Freccia giù",leftArrow:"Freccia sinistra",rightArrow:"Freccia destra",backspace:"Canc",space:"Spazio",plus:"più",shortcut:"Scorciatoia da tastiera: {0}",or:"o"},video:{play:"Riproduci",pause:"Metti in pausa",seek:"Cerca",volume:"Volume",showVolume:"Mostra controllo volume",mute:"Muto",unmute:"Riattiva audio",enterFullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero"},colorPicker:{ariaLabel:{eyedropper:"Seleziona il colore dallo schermo",hueSlider:"Tonalità",alphaSlider:"Trasparenza",redInput:"Rosso",greenInput:"Verde",blueInput:"Blu",alphaInput:"Trasparenza",hueInput:"Tonalità",saturationInput:"Saturazione",lightnessInput:"Luminosità",hexInput:"Valore esadecimale",hexaInput:"Valore esadecimale con trasparenza",changeFormat:"Cambia formato colore"}}}},8138:function(e,t,n){"use strict";n.d(t,{Oe:function(){return c},Wc:function(){return s},aw:function(){return u},dd:function(){return d},tb:function(){return l},wW:function(){return o}});var r=n(320);const i=["top","bottom"],a=["start","end","left","right"];function o(e,t){let[n,o]=e.split(" ");return o||(o=(0,r.q9)(i,n)?"start":(0,r.q9)(a,n)?"top":"center"),{side:s(n,t),align:s(o,t)}}function s(e,t){return"start"===e?t?"right":"left":"end"===e?t?"left"
3336:"right":e}function l(e){return{side:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.side],align:e.align}}function u(e){return{side:e.side,align:{center:"center",top:"bottom",bottom:"top",left:"right",right:"left"}[e.align]}}function c(e){return{side:e.align,align:e.side}}function d(e){return(0,r.q9)(i,e.side)?"y":"x"}},4592:function(e,t,n){"use strict";n.d(t,{G:function(){return i},j:function(){return a}});var r=n(3498);function i(e){const t=new r.xu(e),n=getComputedStyle(e),i=n.transform;if(i){let a,o,s,l,u;if(i.startsWith("matrix3d("))a=i.slice(9,-1).split(/, /),o=Number(a[0]),s=Number(a[5]),l=Number(a[12]),u=Number(a[13]);else{if(!i.startsWith("matrix("))return new r.xu(t);a=i.slice(7,-1).split(/, /),o=Number(a[0]),s=Number(a[3]),l=Number(a[4]),u=Number(a[5])}const c=n.transformOrigin,d=t.x-l-(1-o)*parseFloat(c),h=t.y-u-(1-s)*parseFloat(c.slice(c.indexOf(" ")+1)),p=o?t.width/o:e.offsetWidth+1,f=s?t.height/s:e.offsetHeight+1;return new r.xu({x:d,y:h,width:p,height:f})}return new r.xu(t)}function a(e,t,n){if("undefined"===typeof e.animate)return{finished:Promise.resolve()};let r;try{r=e.animate(t,n)}catch(i){return{finished:Promise.resolve()}}return"undefined"===typeof r.finished&&(r.finished=new Promise((e=>{r.onfinish=()=>{e(r)}}))),r}},3498:function(e,t,n){"use strict";n.d(t,{Jc:function(){return o},YQ:function(){return s},p2:function(){return a},xu:function(){return i}});var r=n(6293);class i{constructor(e){const t=document.body.currentCSSZoom??1,n=e instanceof Element,r=n?1+(1-t)/t:1,{x:i,y:a,width:o,height:s}=n?e.getBoundingClientRect():e;this.x=i*r,this.y=a*r,this.width=o*r,this.height=s*r}get top(){return this.y}get bottom(){return this.y+this.height}get left(){return this.x}get right(){return this.x+this.width}}function a(e,t){return{x:{before:Math.max(0,t.left-e.left),after:Math.max(0,e.right-t.right)},y:{before:Math.max(0,t.top-e.top),after:Math.max(0,e.bottom-t.bottom)}}}function o(e){if(Array.isArray(e)){const t=document.body.currentCSSZoom??1,n=1+(1-t)/t;return new i({x:e[0]*n,y:e[1]*n,width:0*n,height:0*n})}return new i(e)}function s(e){if(e===document.documentElement){if(visualViewport){const e=document.body.clientWidth,t=document.body.currentCSSZoom??(e?document.documentElement.clientWidth/e:1);return new i({x:visualViewport.scale>1||r.Wt?0:visualViewport.offsetLeft,y:visualViewport.scale>1||r.Wt?0:visualViewport.offsetTop,width:document.documentElement.clientWidth/t,height:document.documentElement.clientHeight/t})}return new i({x:0,y:0,width:document.documentElement.clientWidth,height:document.documentElement.clientHeight})}return new i(e)}},3819:function(e,t,n){"use strict";n.d(t,{tT:function(){return W},wQ:function(){return q},Gl:function(){return j},PJ:function(){return X},Bi:function(){return V},Ty:function(){return K},iC:function(){return H},Ls:function(){return B},qX:function(){return z},_j:function(){return Q},mj:function(){return te},YB:function(){return ne},zT:function(){return ee},NA:function(){return L},Q1:function(){return D},$n:function(){return Z},lu:function(){return M}});
3337/**
3338 * WCAG 3.0 APCA perceptual contrast algorithm from https://github.com/Myndex/SAPC-APCA
3339 * @licence https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
3340 * @see https://www.w3.org/WAI/GL/task-forces/silver/wiki/Visual_Contrast_of_Text_Subgroup
3341 */
3342const r=2.4,i=.2126729,a=.7151522,o=.072175,s=.55,l=.58,u=.57,c=.62,d=.03,h=1.45,p=5e-4,f=1.25,m=1.25,v=.078,g=12.82051282051282,y=.06,_=.001;function b(e,t){const n=(e.r/255)**r,b=(e.g/255)**r,T=(e.b/255)**r,w=(t.r/255)**r,S=(t.g/255)**r,k=(t.b/255)**r;let C,E=n*i+b*a+T*o,I=w*i+S*a+k*o;if(E<=d&&(E+=(d-E)**h),I<=d&&(I+=(d-I)**h),Math.abs(I-E)<p)return 0;if(I>E){const e=(I**s-E**l)*f;C=e<_?0:e<v?e-e*g*y:e-y}else{const e=(I**c-E**u)*m;C=e>-_?0:e>-v?e-e*g*y:e+y}return 100*C}var T=n(4245),w=n(320);const S=.20689655172413793,k=e=>e>S**3?Math.cbrt(e):e/(3*S**2)+4/29,C=e=>e>S?e**3:3*S**2*(e-4/29);function E(e){const t=k,n=t(e[1]);return[116*n-16,500*(t(e[0]/.95047)-n),200*(n-t(e[2]/1.08883))]}function I(e){const t=C,n=(e[0]+16)/116;return[.95047*t(n+e[1]/500),t(n),1.08883*t(n-e[2]/200)]}const x=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],A=e=>e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055,P=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],$=e=>e<=.04045?e/12.92:((e+.055)/1.055)**2.4;function O(e){const t=Array(3),n=A,r=x;for(let i=0;i<3;++i)t[i]=Math.round(255*(0,w.uZ)(n(r[i][0]*e[0]+r[i][1]*e[1]+r[i][2]*e[2])));return{r:t[0],g:t[1],b:t[2]}}function N(e){let{r:t,g:n,b:r}=e;const i=[0,0,0],a=$,o=P;t=a(t/255),n=a(n/255),r=a(r/255);for(let s=0;s<3;++s)i[s]=o[s][0]*t+o[s][1]*n+o[s][2]*r;return i}function L(e){return!!e&&/^(#|var\(--|(rgb|hsl)a?\()/.test(e)}function D(e){return L(e)&&!/^((rgb|hsl)a?\()?var\(--/.test(e)}const R=/^(?<fn>(?:rgb|hsl)a?)\((?<values>.+)\)/,F={rgb:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),rgba:(e,t,n,r)=>({r:e,g:t,b:n,a:r}),hsl:(e,t,n,r)=>U({h:e,s:t,l:n,a:r}),hsla:(e,t,n,r)=>U({h:e,s:t,l:n,a:r}),hsv:(e,t,n,r)=>V({h:e,s:t,v:n,a:r}),hsva:(e,t,n,r)=>V({h:e,s:t,v:n,a:r})};function M(e){if("number"===typeof e)return(isNaN(e)||e<0||e>16777215)&&(0,T.Kd)(`'${e}' is not a valid hex color`),{r:(16711680&e)>>
334216,g:(65280&e)>>8,b:255&e};if("string"===typeof e&&R.test(e)){const{groups:t}=e.match(R),{fn:n,values:r}=t,i=r.split(/,\s*|\s*\/\s*|\s+/).map(((e,t)=>e.endsWith("%")||t>0&&t<3&&["hsl","hsla","hsv","hsva"].includes(n)?parseFloat(e)/100:parseFloat(e)));return F[n](...i)}if("string"===typeof e){let t=e.startsWith("#")?e.slice(1):e;[3,4].includes(t.length)?t=t.split("").map((e=>e+e)).join(""):[6,8].includes(t.length)||(0,T.Kd)(`'${e}' is not a valid hex(a) color`);const n=parseInt(t,16);return(isNaN(n)||n<0||n>4294967295)&&(0,T.Kd)(`'${e}' is not a valid hex(a) color`),Y(t)}if("object"===typeof e){if((0,w.e$)(e,["r","g","b"]))return e;if((0,w.e$)(e,["h","s","l"]))return V(W(e));if((0,w.e$)(e,["h","s","v"]))return V(e)}throw new TypeError(`Invalid color: ${null==e?e:String(e)||e.constructor.name}\nExpected #hex, #hexa, rgb(), rgba(), hsl(), hsla(), object or number`)}function V(e){const{h:t,s:n,v:r,a:i}=e,a=e=>{const i=(e+t/60)%6;return r-r*n*Math.max(Math.min(i,4-i,1),0)},o=[a(5),a(3),a(1)].map((e=>Math.round(255*e)));return{r:o[0],g:o[1],b:o[2],a:i}}function U(e){return V(W(e))}function B(e){if(!e)return{h:0,s:1,v:1,a:1};const t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r);let o=0;i!==a&&(i===t?o=60*(0+(n-r)/(i-a)):i===n?o=60*(2+(r-t)/(i-a)):i===r&&(o=60*(4+(t-n)/(i-a)))),o<0&&(o+=360);const s=0===i?0:(i-a)/i,l=[o,s,i];return{h:l[0],s:l[1],v:l[2],a:e.a}}function j(e){const{h:t,s:n,v:r,a:i}=e,a=r-r*n/2,o=1===a||0===a?0:(r-a)/Math.min(a,1-a);return{h:t,s:o,l:a,a:i}}function W(e){const{h:t,s:n,l:r,a:i}=e,a=r+n*Math.min(r,1-r),o=0===a?0:2-2*r/a;return{h:t,s:o,v:a,a:i}}function H(e){let{r:t,g:n,b:r,a:i}=e;return void 0===i?`rgb(${t}, ${n}, ${r})`:`rgba(${t}, ${n}, ${r}, ${i})`}function q(e){return H(V(e))}function G(e){const t=Math.round(e).toString(16);return("00".substr(0,2-t.length)+t).toUpperCase()}function z(e){let{r:t,g:n,b:r,a:i}=e;return`#${[G(t),G(n),G(r),void 0!==i?G(Math.round(255*i)):""].join("")}`}function Y(e){e=J(e);let[t,n,r,i]=(0,w.yo)(e,2).map((e=>parseInt(e,16)));return i=void 0===i?i:i/255,{r:t,g:n,b:r,a:i}}function K(e){const t=Y(e);return B(t)}function X(e){return z(V(e))}function J(e){return e.startsWith("#")&&(e=e.slice(1)),e=e.replace(/([^0-9a-f])/gi,"F"),3!==e.length&&4!==e.length||(e=e.split("").map((e=>e+e)).join("")),6!==e.length&&(e=(0,w.qy)((0,w.qy)(e,6),8,"F")),e}function Z(e,t){const n=E(N(e));return n[0]=n[0]+10*t,O(I(n))}function Q(e,t){const n=E(N(e));return n[0]=n[0]-10*t,O(I(n))}function ee(e){const t=M(e);return N(t)[1]}function te(e,t){const n=ee(e),r=ee(t),i=Math.max(n,r),a=Math.min(n,r);
3342return(i+.05)/(a+.05)}function ne(e){const t=Math.abs(b(M(0),M(e))),n=Math.abs(b(M(16777215),M(e)));return n>Math.min(t,50)?"#fff":"#000"}},4245:function(e,t,n){"use strict";n.d(t,{Kd:function(){return i},N6:function(){return a},Rn:function(){return o}});var r=n(6252);function i(e){(0,r.ZK)(`Vuetify: ${e}`)}function a(e){(0,r.ZK)(`Vuetify error: ${e}`)}function o(e,t){t=Array.isArray(t)?t.slice(0,-1).map((e=>`'${e}'`)).join(", ")+` or '${t.at(-1)}'`:`'${t}'`,(0,r.ZK)(`[Vuetify UPGRADE] '${e}' is deprecated, use ${t} instead.`)}},1115:function(e,t,n){"use strict";n.d(t,{v:function(){return o}});var r=n(320);function i(e,t,n,i){if(!n||(0,r.pt)(e)||(0,r.pt)(t))return;const a=n.get(e);if(a)a.set(t,i);else{const r=new WeakMap;r.set(t,i),n.set(e,r)}}function a(e,t,n){if(!n||(0,r.pt)(e)||(0,r.pt)(t))return null;const i=n.get(e)?.get(t);if("boolean"===typeof i)return i;const a=n.get(t)?.get(e);return"boolean"===typeof a?a:null}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(e===t)return!0;if(e instanceof Date&&t instanceof Date&&e.getTime()!==t.getTime())return!1;if(e!==Object(e)||t!==Object(t))return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;
3342const s=a(e,t,n);return s||(i(e,t,n,!0),r.every((r=>o(e[r],t[r],n))))}},2290:function(e,t,n){"use strict";n.d(t,{aZ:function(){return l},d4:function(){return c},ev:function(){return u}});var r=n(121),i=n(6252),a=n(4245),o=n(320),s=n(6393);function l(e){if(e._setup=e._setup??e.setup,!e.name)return(0,a.Kd)("The component is missing an explicit name, unable to generate default prop value"),e;if(e._setup){e.props=(0,s.U)(e.props??{},e.name)();const t=Object.keys(e.props).filter((e=>"class"!==e&&"style"!==e));e.filterProps=function(e){return(0,o.ei)(e,t)},e.props._as=String,e.setup=function(t,n){const i=(0,r.Xz)();if(!i.value)return e._setup(t,n);const{props:a,provideSubDefaults:o}=(0,r.Vn)(t,t._as??e.name,i),s=e._setup(a,n);return o(),s}}return e}function u(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return t=>(e?l:i.aZ)(t)}function c(e,t){return t.props=e,t}},2739:function(e,t,n){"use strict";n.d(t,{Ly:function(){return r},iw:function(){return o},uX:function(){return i},x0:function(){return a}});const r="cubic-bezier(0.4, 0, 0.2, 1)",i="cubic-bezier(0.0, 0, 0.2, 1)",a="cubic-bezier(0.4, 0, 1, 1)",o={linear:e=>e,easeInQuad:e=>e**2,easeOutQuad:e=>e*(2-e),easeInOutQuad:e=>e<.5?2*e**2:(4-2*e)*e-1,easeInCubic:e=>e**3,easeOutCubic:e=>--e**3+1,easeInOutCubic:e=>e<.5?4*e**3:(e-1)*(2*e-2)*(2*e-2)+1,easeInQuart:e=>e**4,easeOutQuart:e=>1- --e**4,easeInOutQuart:e=>e<.5?8*e**4:1-8*--e**4,easeInQuint:e=>e**5,easeOutQuint:e=>1+--e**5,easeInOutQuint:e=>e<.5?16*e**5:1+16*--e**5,instant:e=>1}},8383:function(e,t,n){"use strict";n.d(t,{B:function(){return o},F:function(){return a}});var r=n(6252),i=n(320);function a(e,t){const n=(0,r.FN)();if(!n)throw new Error(`[Vuetify] ${e} ${t||"must be called from inside a setup function"}`);return n}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"composables";const t=a(e).type;return(0,i.mA)(t?.aliasName||t?.name)}},9816:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];while(e){if(t?o(e):a(e))return e;e=e.parentElement}return document.scrollingElement}function i(e,t){const n=[];if(t&&e&&!t.contains(e))return n;while(e){if(a(e)&&n.push(e),e===t)break;e=e.parentElement}return n}function a(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e),n="scroll"===t.overflowY||"auto"===t.overflowY&&e.scrollHeight>e.clientHeight,r="scroll"===t.overflowX||"auto"===t.overflowX&&e.scrollWidth>e.clientWidth;return n||r}function o(e){if(!e||e.nodeType!==Node.ELEMENT_NODE)return!1;const t=window.getComputedStyle(e);return["scroll","auto"].includes(t.overflowY)}n.d(t,{HA:function(){return i},QA:function(){return a},rP:function(){return r}})},6293:function(e,t,n){"use strict";n.d(t,{BR:function(){return r},QE:function(){return l},VB:function(){return o},Wt:function(){return u},cu:function(){return i},lK:function(){return s},sR:function(){return a}});const r="undefined"!==typeof window,i=r&&"IntersectionObserver"in window,a=r&&("ontouchstart"in window||window.navigator.maxTouchPoints>0),o=r&&"EyeDropper"in window,s=r&&"matchMedia"in window&&"function"===typeof window.matchMedia,l=()=>s&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,u=r&&CSS?.supports?.("-webkit-backdrop-filter","none")},320:function(e,t,n){"use strict";n.d(t,{$U:function(){return me},An:function(){return O},B0:function(){return Q},CE:function(){return E},CV:function(){return de},DC:function(){return Y},Dm:function(){return fe},Ds:function(){return L},Ee:function(){return B},F7:function(){return x},FT:function(){return N},Kn:function(){return y},Ku:function(){return oe},L7:function(){return re},MT:function(){return v},N0:function(){return he},Ob:function(){return C},PQ:function(){return ue},PU:function(){return z},RA:function(){return j},S3:function(){return K},Sk:function(){return M},U9:function(){return ve},WI:function(){return le},XE:function(){return U},XP:function(){return w},Y5:function(){return $},ZT:function(){return ae},_g:function(){return se},aH:function(){return ce},as:function(){return Z},bY:function(){return H},dc:function(){return ne},dr:function(){return ee},e$:function(){return S},ef:function(){return te},ei:function(){return k},ff:function(){return T},kb:function(){return g},mA:function(){return W},nL:function(){return ye},oJ:function(){return J},op:function(){return ge},pC:function(){return R},pt:function(){return pe},q9:function(){return X},qF:function(){return m},qy:function(){return F},uZ:function(){return D},vO:function(){return f},vX:function(){return b},xb:function(){return ie},yo:function(){return V}});var r=n(2262),i=n(6252),a=n(3577),o=n(4245),s=n(6293);function l(e,t,n){u(e,t),t.set(e,n)}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}
3342function c(e,t,n){return e.set(h(e,t),n),n}function d(e,t){return e.get(h(e,t))}function h(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function p(e,t,n){const r=t.length-1;if(r<0)return void 0===e?n:e;for(let i=0;i<r;i++){if(null==e)return n;e=e[t[i]]}return null==e||void 0===e[t[r]]?n:e[t[r]]}function f(e,t,n){return null!=e&&t&&"string"===typeof t?void 0!==e[t]?e[t]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),p(e,t.split("."),n)):n}function m(e,t,n){if(!0===t)return void 0===e?n:e;if(null==t||"boolean"===typeof t)return n;if(e!==Object(e)){if("function"!==typeof t)return n;const r=t(e,n);return"undefined"===typeof r?n:r}if("string"===typeof t)return f(e,t,n);if(Array.isArray(t))return p(e,t,n);if("function"!==typeof t)return n;const r=t(e,n);return"undefined"===typeof r?n:r}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from({length:e},((e,n)=>t+n))}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"px";if(null==e||""===e)return;const n=Number(e);return isNaN(n)?String(e):isFinite(n)?`${n}${t}`:void 0}function y(e){return null!==e&&"object"===typeof e&&!Array.isArray(e)}function _(e){let t;return null!==e&&"object"===typeof e&&((t=Object.getPrototypeOf(e))===Object.prototype||null===t)}function b(e){if(e&&"$el"in e){const t=e.$el;return t?.nodeType===Node.TEXT_NODE?t.nextElementSibling:t}return e}Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});const T=Object.freeze({enter:"Enter",tab:"Tab",delete:"Delete",esc:"Escape",space:"Space",up:"ArrowUp",down:"ArrowDown",left:"ArrowLeft",right:"ArrowRight",end:"End",home:"Home",del:"Delete",backspace:"Backspace",insert:"Insert",pageup:"PageUp",pagedown:"PageDown",shift:"Shift"});function w(e){return Object.keys(e)}function S(e,t){return t.every((t=>e.hasOwnProperty(t)))}function k(e,t){const n={};for(const r of t)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function C(e,t,n){const r=Object.create(null),i=Object.create(null);for(const a in e)t.some((e=>e instanceof RegExp?e.test(a):e===a))&&!n?.some((e=>e===a))?r[a]=e[a]:i[a]=e[a];return[r,i]}function E(e,t){const n={...e};return t.forEach((e=>delete n[e])),n}const I=/^on[^a-z]/,x=e=>I.test(e),A=["onAfterscriptexecute","onAnimationcancel","onAnimationend","onAnimationiteration","onAnimationstart","onAuxclick","onBeforeinput","onBeforescriptexecute","onChange","onClick","onCompositionend","onCompositionstart","onCompositionupdate","onContextmenu","onCopy","onCut","onDblclick","onFocusin","onFocusout","onFullscreenchange","onFullscreenerror","onGesturechange","onGestureend","onGesturestart","onGotpointercapture","onInput","onKeydown","onKeypress","onKeyup","onLostpointercapture","onMousedown","onMousemove","onMouseout","onMouseover","onMouseup","onMousewheel","onPaste","onPointercancel","onPointerdown","onPointerenter","onPointerleave","onPointermove","onPointerout","onPointerover","onPointerup","onReset","onSelect","onSubmit","onTouchcancel","onTouchend","onTouchmove","onTouchstart","onTransitioncancel","onTransitionend","onTransitionrun","onTransitionstart","onWheel"],P=["ArrowUp","ArrowDown","ArrowRight","ArrowLeft","Enter","Escape","Tab"," "];function $(e){return e.isComposing&&P.includes(e.key)}function O(e){const[t,n]=C(e,[I]),r=E(t,A),[i,a]=C(n,["class","style","id","inert",/^data-/]);return Object.assign(i,t),Object.assign(a,r),[i,a]}function N(e){return null==e?[]:Array.isArray(e)?e:[e]}function L(e,t){let n=0;const i=function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];clearTimeout(n),n=setTimeout((()=>e(...a)),(0,r.SU)(t))};return i.clear=()=>{clearTimeout(n)},i.immediate=e,i}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.max(t,Math.min(n,e))}function R(e){const t=e.toString().trim();return t.includes(".")?t.length-t.indexOf(".")-1:0}function F(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";return e+n.repeat(Math.max(0,t-e.length))}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";return n.repeat(Math.max(0,t-e.length))+e}function V(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[];let r=0;while(r<e.length)n.push(e.substr(r,t)),r+=t;return n}function U(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(e<t)return`${e} B`;const n=1024===t?["Ki","Mi","Gi"]:["k","M","G"];let r=-1;while(Math.abs(e)>=t&&r<n.length-1)e/=t,++r;return`${e.toFixed(1)} ${n[r]}B`}function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r={};for(const i in e)r[i]=e[i];for(const i in t){const a=e[i],o=t[i];_(a)&&_(o)?r[i]=B(a,o,n):n&&Array.isArray(a)&&Array.isArray(o)?r[i]=n(a,o):r[i]=o}return r}function j(e){return e.map((e=>e.type===i.HY?j(e.children):e)).flat()}function W(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(W.cache.has(e))return W.cache.get(e);const t=e.replace(/[^a-z]/gi,"-").replace(/\B([A-Z])/g,"-$1").toLowerCase();return W.cache.set(e,t),t}function H(e,t){if(!t||"object"!==typeof t)return[];if(Array.isArray(t))return t.map((t=>H(e,t))).flat(1);if(t.suspense)return H(e,t.ssContent);if(Array.isArray(t.children))return t.children.map((t=>H(e,t))).flat(1);if(t.component){if(Object.getOwnPropertyDescriptor(t.component.provides,e))return[t.component];if(t.component.subTree)return H(e,t.component.subTree).flat(1)}return[]}W.cache=new Map;var q=new WeakMap,G=new WeakMap;class z{constructor(e){l(this,q,[]),l(this,G,0),this.size=e}get isFull(){return d(q,this).length===this.size}push(e){d(q,this)[d(G,this)]=e,c(G,this,(d(G,this)+1)%this.size)}values(){return d(q,this).slice(d(G,this)).concat(d(q,this).slice(0,d(G,this)))}clear(){d(q,this).length=0,c(G,this,0)}}function Y(e){return"touches"in e?{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}}function K(e){const t=(0,r.qj)({});(0,i.m0)((()=>{const n=e();for(const e in n)t[e]=n[e]}),{flush:"sync"});const n={};for(const i in t)n[i]=(0,r.Vh)((()=>t[i]));return n}function X(e,t){return e.includes(t)}function J(e){return e[2].toLowerCase()+e.slice(3)}const Z=()=>[Function,Array];function Q(e,t){return t="on"+(0,a.kC)(t),!!(e[t]||e[`${t}Once`]||e[`${t}Capture`]||e[`${t}OnceCapture`]||e[`${t}CaptureOnce`])}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(Array.isArray(e))for(const i of e)i(...n);else"function"===typeof e&&e(...n)}function te(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=["button","[href]",'input:not([type="hidden"])',"select","textarea","details:not(:has(> summary))","details > summary","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]"].map((e=>`${e}${t?':not([tabindex="-1"])':""}:not([disabled], [inert])`)).join(", ");let r;try{r=[...e.querySelectorAll(n)]}catch(i){return(0,o.N6)(String(i)),[]}return r.filter((e=>!e.closest("[inert]"))).filter((e=>!!e.offsetParent||e.getClientRects().length>0)).filter((e=>!e.parentElement?.closest("details:not([open])")||"SUMMARY"===e.tagName&&"DETAILS"===e.parentElement?.tagName))}function ne(e,t,n){let r,i=e.indexOf(document.activeElement);const a="next"===t?1:-1;
3342do{i+=a,r=e[i]}while((!r||null==r.offsetParent||!(n?.(r)??1))&&i<e.length&&i>=0);return r}function re(e,t,n){const r=te(e);if(null==t)e!==document.activeElement&&e.contains(document.activeElement)||r[0]?.focus(n);else if("first"===t)r[0]?.focus(n);else if("last"===t)r.at(-1)?.focus(n);else if("number"===typeof t)r[t]?.focus(n);else{const i=ne(r,t);i?i.focus():re(e,"next"===t?"first":"last",n)}}function ie(e){return null===e||void 0===e||"string"===typeof e&&""===e.trim()}function ae(){}function oe(e,t){const n=s.BR&&"undefined"!==typeof CSS&&"undefined"!==typeof CSS.supports&&CSS.supports(`selector(${t})`);if(!n)return null;try{return!!e&&e.matches(t)}catch(r){return null}}function se(e){return e.some((e=>!(0,i.lA)(e)||e.type!==i.sv&&(e.type!==i.HY||se(e.children))))?e:null}function le(e,t,n){return e?.(t)??n?.(t)}function ue(e,t){if(!s.BR||0===e)return t(),()=>{};const n=window.setTimeout(t,e);return()=>window.clearTimeout(n)}function ce(e,t){const n=e.clientX,r=e.clientY,i=t.getBoundingClientRect(),a=i.left,o=i.top,s=i.right,l=i.bottom;return n>=a&&n<=s&&r>=o&&r<=l}function de(){const e=(0,r.XI)(),t=t=>{e.value=t};return Object.defineProperty(t,"value",{enumerable:!0,get:()=>e.value,set:t=>e.value=t}),Object.defineProperty(t,"el",{enumerable:!0,get:()=>b(e.value)}),t}function he(e){const t=1===e.key.length,n=!e.ctrlKey&&!e.metaKey&&!e.altKey;return t&&n}function pe(e){return"string"===typeof e||"number"===typeof e||"boolean"===typeof e||"bigint"===typeof e}function fe(e){return"\\^$*+?.()|{}[]".includes(e)?`\\${e}`:e}function me(e,t,n){const r=new RegExp(`[\\d\\-${fe(n)}]`),i=e.split("").filter((e=>r.test(e))).filter(((e,t,r)=>0===t&&/[-]/.test(e)||e===n&&t===r.indexOf(e)||/\d/.test(e))).join("");if(0===t)return i.split(n)[0];const a=new RegExp(`${fe(n)}\\d`);if(null!==t&&a.test(i)){const e=i.split(n);return[e[0],e[1].substring(0,t)].join(n)}return i}function ve(e){const t={};for(const n in e)t[(0,a._A)(n)]=e[n];return t}function ge(e){const t=["checked","disabled"];return Object.fromEntries(Object.entries(e).filter((e=>{let[n,r]=e;return t.includes(n)?!!r:void 0!==r})))}function ye(e){const t=e=>Array.isArray(e)?e.map((e=>t(e))):(0,r.dq)(e)||(0,r.PG)(e)||(0,r.X3)(e)?t((0,r.IU)(e)):_(e)?Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r]),n)),{}):e;return t(e)}},6393:function(e,t,n){"use strict";function r(e,t){return n=>Object.keys(e).reduce(((r,i)=>{const a="object"===typeof e[i]&&null!=e[i]&&!Array.isArray(e[i]),o=a?e[i]:{type:e[i]};return r[i]=n&&i in n?{...o,default:n[i]}:o,t&&!r[i].source&&(r[i].source=t),r}),{})}n.d(t,{U:function(){return r}})},1213:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(8383);function i(e){const t=(0,r.F)("useRender");t.render=e}}}]);
3343//# sourceMappingURL=chunk-vendors.ff4eb395.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.