@openremote/or-json-forms 1.30.0 → 1.31.0-snapshot.20260902153911

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,7 +13,7 @@ var ORJsonForms;(()=>{var e={6674(e,t,n){var i,o,r,a,s,l,c;e=n.nmd(e),!(i=functi
13
13
  font-weight: 600;
14
14
  line-height: 125.303%;
15
15
  }
16
- `;class eF extends ey{static finalizeStyles(e){return[ew,...super.finalizeStyles(e)]}}let ex=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ek={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:O};function eE(e){return(t,n)=>{let i;return"object"==typeof n?((e=ek,t,n)=>{let{kind:i,metadata:o}=n,r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),r.set(n.name,e),"accessor"===i){let{name:i}=n;return{set(n){let o=t.get.call(this);t.set.call(this,n),this.requestUpdate(i,o,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){let{name:i}=n;return function(n){let o=this[i];t.call(this,n),this.requestUpdate(i,o,e)}}throw Error("Unsupported decorator location: "+i)})(e,t,n):(i=t.hasOwnProperty(n),t.constructor.createProperty(n,e),i?Object.getOwnPropertyDescriptor(t,n):void 0)}}function eC(e){return eE({...e,state:!0,attribute:!1})}let eA=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function eS(e,t){return(n,i,o)=>{let r=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof i?n:o??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return eA(n,i,{get(){let e=t.call(this);return void 0===e&&(null!==(e=r(this))||this.hasUpdated)&&a.call(this,e),e}})}return eA(n,i,{get(){return r(this)}})}}var eT=n(5359),eI=n.n(eT),eO=n(1770),eR=n.n(eO),eD=n(8420),e$=n.n(eD),eL=n(5355),eM=n.n(eL),eN=n(9650),eB=n.n(eN),eP=n(9974),ej=n.n(eP),ez=n(9475),eU=n.n(ez),eH=n(4383),eV=n.n(eH),eW=n(2485),eG=n.n(eW),eq=n(8508),eY=n.n(eq),eK=n(6372),eX=n.n(eK),eJ=n(8466),eQ=n.n(eJ),eZ=n(8434),e0=n.n(eZ),e1=n(1582),e2=n.n(e1),e5=n(1285),e4=n.n(e5),e3=n(6461),e6=n.n(e3),e8=n(7564),e7=n.n(e8),e9=n(4360),te=n.n(e9),tt=n(469),tn=n.n(tt),ti=n(6672),to=n.n(ti),tr=n(6994),ta=n.n(tr),ts=n(9804),tl=n.n(ts),tc=n(1370),td=n.n(tc),tu=n(6520),tm=n.n(tu),tf=n(5482),th=n.n(tf);let tp="additionalProperties",tb="required";class tg{constructor(e){this.findOption=e,this.schemaObject=e=>{let t=this.properties(e),n={type:"object",properties:t,additionalProperties:this.findOption(t)(tp)},i=this.findOption(t)(tb);return i.length>0&&(n.required=i),n},this.properties=e=>Object.keys(e).reduce((t,n)=>(t[n]=this.property(e[n]),t),{}),this.property=e=>{switch(typeof e){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":if(Number.isInteger(e))return{type:"integer"};return{type:"number"};case"object":if(null==e)return{type:"null"};return this.schemaObjectOrArray(e);default:return{}}},this.schemaObjectOrArray=e=>e instanceof Array?this.schemaArray(e):this.schemaObject(e),this.schemaArray=e=>{if(!(e.length>0))return{type:"array",items:{}};{var t,n;let i,o=(t=e.map(this.property),n=e=>JSON.stringify(e),i={},t.filter(e=>{let t=n(e);return!Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=!0,!0)}));return 1===o.length?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}}}}let tv=(e,t={})=>new tg(e=>n=>{switch(n){case tp:if(Object.prototype.hasOwnProperty.call(t,tp))return t[tp];return!0;case tb:if(Object.prototype.hasOwnProperty.call(t,tb))return t[tb](e);return Object.keys(e);default:return}}).schemaObject(e),ty=new Set,t_=(e,t)=>t<=1?e:e+t.toString(),tw=(e,t)=>{let n=t_(e,t);return!ty.has(n)},tF=e=>{void 0===e&&(e="undefined");let t=0;for(;!tw(e,t);)t++;let n=t_(e,t);return ty.add(n),n},tx=e=>ty.delete(e),tk=()=>ty.clear(),tE=(e,t)=>{let n=e;return(eI()(e)||eI()(t)||t.startsWith("[")||(n=e+"."),eI()(n))?t:eI()(t)?n:`${n}${t}`},tC=e=>{let t=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(tT),n="#"===t[0]||""===t[0];return eM()(n?2:1,t.length,2).map(e=>t[e])},tA=e=>tC(e).join("."),tS=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),tT=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),tI=e=>`/properties/${e.split(".").map(e=>tS(e)).join("/properties/")}`,tO=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){let t=e.scope,n=tT(t.substr(t.lastIndexOf("/")+1));return eR()(n)}return""},tR=e=>eR()(e.replace("_"," ")),tD=(e,t)=>{let n=e.label;return"boolean"==typeof n?t$(tO(e,t),n):"string"==typeof n?t$(n,!0):"object"==typeof n?t$("string"==typeof n.text?n.text:tO(e,t),"boolean"!=typeof n.show||n.show):t$(tO(e,t),!0)},t$=(e,t)=>({text:e,show:t}),tL=(e,t)=>eI()(t)?e:t.split(".").reduce((e,t)=>{if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e),tM=(e,t={},n=!1)=>(void 0!==e.properties&&Object.keys(e.properties).forEach(n=>tM(e.properties[n],t)),"array"===e.type&&void 0!==e.items&&(Array.isArray(e.items)?n&&e.items.forEach(e=>tM(e,t)):tM(e.items,t)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>tM(e,t)),void 0!==e.$ref&&(t[e.$ref]=e),t),tN=(e,t,n)=>tB(e,t?.split("/").map(tT),n),tB=(e,t,n)=>{if(eI()(e))return;if("string"==typeof e.$ref&&(e=tN(n,e.$ref,n)),!t||0===t.length)return e;let[i,...o]=t;if("#"===i||void 0===i||""===i)return tB(e,o,n);let r=tB(eB()(e,i),o,n);if(r)return r;if("properties"===i||"items"===i){let t;for(let r of[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]))if(t=tB(r,[i,...o],n))break;return t}},tP={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};(bH=g1||(g1={})).HIDE="HIDE",bH.SHOW="SHOW",bH.ENABLE="ENABLE",bH.DISABLE="DISABLE";let tj=e=>t=>{t.options||(t.options={}),t.options.readonly=e},tz=e=>{tH(e,tj(!0))},tU=e=>{tH(e,tj(!1))},tH=(e,t)=>{if(!eI()(e)){if(tY(e))return void e.elements.forEach(e=>tH(e,t));t(e)}},tV=(e,t)=>{if(tZ(e)){if(tX(e)&&e.scope.endsWith(tI(t)))return e;else if(e.options?.detail)return tV(e.options.detail,t)}if(tY(e))for(let n of e.elements){let e=tV(n,t);if(void 0!==e)return e}},tW=(e,t)=>{if(!tX(e))return t??"";let n=tC(e.scope);return eI()(n)?t??"":tE(t,n.join("."))},tG=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,tq=e=>"Group"===e.type,tY=e=>void 0!==e.elements,tK=e=>!!e&&"object"==typeof e,tX=e=>tK(e)&&"string"==typeof e.scope,tJ=e=>!!e&&"object"==typeof e,tQ=e=>tJ(e)&&["string","boolean"].includes(typeof e.label),tZ=e=>"Control"===e.type,t0=(e,t,n,i)=>{if("AND"===t.type)return t.conditions.reduce((t,o)=>t&&t0(e,o,n,i),!0);if("OR"===t.type)return t.conditions.reduce((t,o)=>t||t0(e,o,n,i),!1);if("LEAF"===t.type)return tL(e,tW(t,n))===t.expectedValue;if(!ej()(t,"schema"))return!0;{let o=tL(e,tW(t,n));return(!t.failWhenUndefined||void 0!==o)&&i.validate(t.schema,o)}},t1=(e,t,n,i)=>t0(t,e.rule.condition,n,i),t2=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case g1.HIDE:return!o;case g1.SHOW:return o;default:return!0}},t5=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case g1.DISABLE:return!o;case g1.ENABLE:return o;default:return!0}},t4=e=>!!e.rule&&(e.rule.effect===g1.SHOW||e.rule.effect===g1.HIDE),t3=e=>!!e.rule&&(e.rule.effect===g1.ENABLE||e.rule.effect===g1.DISABLE),t6=(e,t,n,i)=>!e.rule||t2(e,t,n,i),t8=(e,t,n,i)=>!e.rule||t5(e,t,n,i),t7=e=>{if(e&&"object"==typeof e&&"properties"in e&&e.properties)return eU()(Object.keys(e.properties),t=>{let n=e.properties[t];return n&&"object"==typeof n&&"type"in n&&("string"===n.type||"number"===n.type||"integer"===n.type)})},t9=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(e=>void 0!==e.const),ne=e=>!!e&&"object"==typeof e&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),nt=(e,t)=>{let n=e.toISOString();if("date-time"===t);else if("date"===t)return n.split("T")[0];else if("time"===t)return n.split("T")[1].split(".")[0];return n},nn=e=>e.replace("#","root").replace(RegExp("/","g"),"_"),ni=(e,t)=>eG()(no(e),t),no=e=>{if(eI()(e))return[];if(!eI()(e.type)&&"string"==typeof e.type)return[e.type];if(eV()(e.type))return e.type;if(!eI()(e.properties)||!eI()(e.additionalProperties))return["object"];if(!eI()(e.items))return["array"];if(!eI()(e.enum)){let t=new Set;return e.enum.forEach(e=>{"string"==typeof e?t.add("string"):no(e).forEach(e=>t.add(e))}),Array.from(t)}if(!eI()(e.allOf)){let t=eU()(e.allOf,e=>0!==no(e).length);if(t)return no(t)}return[]},nr={schema:tN,data:tL},na={compose:tE,fromScoped:e=>tC(e.scope).join(".")},ns={isEnabled:(e,t,n)=>t8(e,t,void 0,n),isVisible:(e,t,n)=>t6(e,t,void 0,n)},nl=e=>{let t=new(eY())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return eX()(t),t},nc=(e,t)=>void 0===e||e(t)?[]:e.errors,nd="YYYY-MM-DD",nu="HH:mm:ss",nm="YYYY-MM-DDTHH:mm:ss.sssZ",nf=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");let n=(e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}})(e);return void 0===n||t.endsWith(n)||(t=`${t}.${n}`),t=tT(t=t.replace(/^./,""))},nh=(e,t,n)=>i=>{let o=eQ()(i,e=>"oneOf"===e.keyword||"anyOf"===e.keyword).map(e=>nf(e));return eQ()(i,i=>{if(-1!==nb.indexOf(i.keyword)&&!t9(i.parentSchema))return!1;let r=n(nf(i)),a=i.parentSchema;return!r||np(a)||t9(a)||-1===o.findIndex(t=>e.startsWith(t))||(r=r&&e0()(a,t)),r})},np=e=>e?.type==="object"||!!e?.properties,nb=["additionalProperties","allOf","anyOf","oneOf"],ng=e=>null==e?"":e.join("\n"),nv={createLabelDescriptionFrom:tD,convertToValidClassName:nn},ny=e=>({type:e,elements:[]}),n_=e=>({type:"Control",scope:e}),nw=(e,t,n,i,o,r)=>{if(!eI()(e)&&void 0!==e.$ref)return nw(tN(r,e.$ref,r),t,n,i,o,r);if(!eI()(e)&&(!eI()(e.oneOf)||!eI()(e.anyOf)||!eI()(e.allOf))){let e=n_(n);return t.push(e),e}let a=no(e);if(0===a.length)return null;if(a.length>1){let e=n_(n);return t.push(e),e}if("#"===n&&"object"===a[0]){let a=ny(o);if(t.push(a),e.properties&&e$()(e.properties).length>1&&((e,t)=>{if(!eI()(t)){let n=eR()(t);tq(e)?e.label=n:e.elements.push({type:"Label",text:n})}})(a,i),!eI()(e.properties)){let t=n+"/properties";Object.keys(e.properties).map(n=>{let i=e.properties[n],s=`${t}/${tS(n)}`;void 0!==i.$ref&&(i=tN(r,i.$ref,r)),nw(i,a.elements,s,n,o,r)})}return a}switch(a[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{let e=n_(n);return t.push(e),e}default:throw Error("Unknown type: "+JSON.stringify(e))}},nF=(e,t="VerticalLayout",n="#",i=e)=>((e,t)=>{if(!eI()(e)&&!tY(e)){let n=ny(t);return n.elements.push(e),n}return e})(nw(e,[],n,"",t,i),t),nx={jsonSchema:tv,uiSchema:nF,controlElement:n_},nk="jsonforms/INIT",nE="jsonforms/UPDATE_CORE",nC="jsonforms/SET_AJV",nA="jsonforms/UPDATE",nS="jsonforms/UPDATE_ERRORS",nT="jsonforms/VALIDATE",nI="jsonforms/ADD_RENDERER",nO="jsonforms/REMOVE_RENDERER",nR="jsonforms/ADD_CELL",nD="jsonforms/REMOVE_CELL",n$="jsonforms/SET_CONFIG",nL="jsonforms/ADD_UI_SCHEMA",nM="jsonforms/REMOVE_UI_SCHEMA",nN="jsonforms/SET_SCHEMA",nB="jsonforms/SET_UISCHEMA",nP="jsonforms/SET_VALIDATION_MODE",nj="jsonforms/SET_LOCALE",nz="jsonforms/SET_TRANSLATOR",nU="jsonforms/UPDATE_I18N",nH="jsonforms/ADD_DEFAULT_DATA",nV="jsonforms/REMOVE_DEFAULT_DATA",nW=e=>{if(!("type"in e)||"string"!=typeof e.type)return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(e=>"number"==typeof e);case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(e=>"object"==typeof e&&null!==e&&"from"in e&&"to"in e&&"number"==typeof e.from&&"number"==typeof e.to);default:return!1}},nG=(e,t=tv(e),n,i)=>({type:nk,data:e,schema:t,uischema:"object"==typeof n?n:nF(t),options:i}),nq=(e,t,n,i)=>({type:nE,data:e,schema:t,uischema:n,options:i}),nY=(e,t)=>({type:nH,schemaPath:e,data:t}),nK=e=>({type:nV,schemaPath:e}),nX=e=>({type:nC,ajv:e}),nJ=(e,t,n)=>({type:nA,path:e,updater:t,context:n}),nQ=e=>({type:nS,errors:e}),nZ=(e,t)=>({type:nI,tester:e,renderer:t}),n0=(e,t)=>({type:nR,tester:e,cell:t}),n1=(e,t)=>({type:nD,tester:e,cell:t}),n2=(e,t)=>({type:nO,tester:e,renderer:t}),n5=e=>({type:n$,config:e}),n4=e=>({type:nP,validationMode:e}),n3=(e,t)=>({type:nL,tester:e,uischema:t}),n6=e=>({type:nM,tester:e}),n8=e=>({type:nj,locale:e}),n7=e=>({type:nN,schema:e}),n9=(e,t)=>({type:nz,translator:e,errorTranslator:t}),ie=(e,t,n)=>({type:nU,locale:e,translator:t,errorTranslator:n}),it=e=>({type:nB,uischema:e});var ii=Object.freeze({__proto__:null,INIT:nk,UPDATE_CORE:nE,SET_AJV:nC,UPDATE_DATA:nA,UPDATE_ERRORS:nS,VALIDATE:nT,ADD_RENDERER:nI,REMOVE_RENDERER:nO,ADD_CELL:nR,REMOVE_CELL:nD,SET_CONFIG:n$,ADD_UI_SCHEMA:nL,REMOVE_UI_SCHEMA:nM,SET_SCHEMA:nN,SET_UISCHEMA:nB,SET_VALIDATION_MODE:nP,SET_LOCALE:nj,SET_TRANSLATOR:nz,UPDATE_I18N:nU,ADD_DEFAULT_DATA:nH,REMOVE_DEFAULT_DATA:nV,isUpdateArrayContext:nW,init:nG,updateCore:nq,registerDefaultData:nY,unregisterDefaultData:nK,setAjv:nX,update:nJ,updateErrors:nQ,registerRenderer:nZ,registerCell:n0,unregisterCell:n1,unregisterRenderer:n2,setConfig:n5,setValidationMode:n4,registerUISchema:n3,unregisterUISchema:n6,setLocale:n8,setSchema:n7,setTranslator:n9,updateI18n:ie,setUISchema:it});let io=(e=[],{type:t,tester:n,cell:i})=>{switch(t){case nR:return e.concat([{tester:n,cell:i}]);case nD:return e.filter(e=>e.tester!==n);default:return e}},ir={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},ia=(e={})=>e2()({},ir,e),is=(e=ia(),t)=>t.type===n$?ia(t.config):e,il={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},ic=(e,t)=>t&&id(t.options)?t.options.validationMode:e.validationMode,id=e=>!!e&&void 0!==e.validationMode,iu=(e,t)=>{var n;return t&&(n=t.options)&&void 0!==n.additionalErrors?t.options.additionalErrors:e.additionalErrors},im=(e,t)=>{if(t){if(ih(t.options))return t.options.ajv;else if(void 0!==t.options&&te()(t.options.compile))return t.options}return e.ajv?e.ajv:nl()},ih=e=>!!e&&void 0!==e.ajv,ip=(e=il,t)=>{switch(t.type){case nk:{let n=im(e,t),i=ic(e,t),o="NoValidation"===i?void 0:n.compile(t.schema),r=nc(o,t.data),a=iu(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:a,errors:r,validator:o,ajv:n,validationMode:i}}case nE:{let n=im(e,t),i=ic(e,t),o=e.validator,r=e.errors;e.schema!==t.schema||e.validationMode!==i||e.ajv!==n?r=nc(o="NoValidation"===i?void 0:n.compile(t.schema),t.data):e.data!==t.data&&(r=nc(o,t.data));let a=iu(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==r||e.validator!==o||e.validationMode!==i||e.additionalErrors!==a?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:e0()(r,e.errors)?e.errors:r,validator:o,validationMode:i,additionalErrors:a}:e}case nC:{let n=t.ajv,i="NoValidation"===e.validationMode?void 0:n.compile(e.schema),o=nc(i,e.data);return{...e,validator:i,errors:o}}case nN:{let n=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?e.ajv.compile(t.schema):e.validator,i=nc(n,e.data);return{...e,validator:n,schema:t.schema,errors:i}}case nB:return{...e,uischema:t.uischema};case nA:if(void 0===t.path||null===t.path)return e;if(""===t.path){let n=t.updater(e4()(e.data)),i=nc(e.validator,n);return{...e,data:n,errors:i}}{let n,i=eB()(e.data,t.path),o=t.updater(e4()(i));n=void 0!==o?e6()(t.path,o,void 0===e.data?{}:e.data):e7()(t.path,void 0===e.data?{}:e.data);let r=nc(e.validator,n);return{...e,data:n,errors:r}}case nS:return{...e,errors:t.errors};case nP:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){let n=nc(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){let n=e.ajv.compile(e.schema),i=nc(n,e.data);return{...e,validator:n,errors:i,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode};default:return e}},ib=(e=[],t)=>{switch(t.type){case nH:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case nV:return e.filter(e=>e.schemaPath!==t.schemaPath);default:return e}},ig=e=>iv(eB()(e,"jsonforms.defaultData")),iv=e=>e;(bV=g2||(g2={})).addTooltip="addTooltip",bV.addAriaLabel="addAriaLabel",bV.removeTooltip="removeTooltip",bV.upAriaLabel="upAriaLabel",bV.downAriaLabel="downAriaLabel",bV.noSelection="noSelection",bV.removeAriaLabel="removeAriaLabel",bV.noDataMessage="noDataMessage",bV.deleteDialogTitle="deleteDialogTitle",bV.deleteDialogMessage="deleteDialogMessage",bV.deleteDialogAccept="deleteDialogAccept",bV.deleteDialogDecline="deleteDialogDecline",bV.up="up",bV.down="down";let iy=[{key:g2.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:g2.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:g2.removeTooltip,default:()=>"Delete"},{key:g2.removeAriaLabel,default:()=>"Delete button"},{key:g2.upAriaLabel,default:()=>"Move item up"},{key:g2.up,default:()=>"Up"},{key:g2.down,default:()=>"Down"},{key:g2.downAriaLabel,default:()=>"Move item down"},{key:g2.noDataMessage,default:()=>"No data"},{key:g2.noSelection,default:()=>"No selection"},{key:g2.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:g2.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:g2.deleteDialogAccept,default:()=>"Yes"},{key:g2.deleteDialogDecline,default:()=>"No"}];(bW=g5||(g5={})).clearDialogTitle="clearDialogTitle",bW.clearDialogMessage="clearDialogMessage",bW.clearDialogAccept="clearDialogAccept",bW.clearDialogDecline="clearDialogDecline";let i_=[{key:g5.clearDialogTitle,default:()=>"Clear form?"},{key:g5.clearDialogMessage,default:()=>"Your data will be cleared. Do you want to proceed?"},{key:g5.clearDialogAccept,default:()=>"Yes"},{key:g5.clearDialogDecline,default:()=>"No"}],iw=(e,t)=>tG(t)?t.i18n:e?.i18n??void 0,iF=e=>e?.split(".").filter(e=>!/^\d+$/.test(e)).join(".")||"root",ix=(e,t,n)=>iw(e,t)??iF(n),ik=(e,t,n,i)=>`${ix(e,t,n)}.${i}`,iE=(e,t)=>`${e}.${t}`,iC=(e,t)=>t,iA=(e,t,n)=>{let i=t(ik(e.parentSchema,n,nf(e),`error.${e.keyword}`),void 0,{error:e});if(void 0!==i)return i;let o=t(`error.${e.keyword}`,void 0,{error:e});if(void 0!==o)return o;let r=t(e.message,void 0,{error:e});return void 0!==r?r:"required"===e.keyword&&e.message?.startsWith("must have required property")?t("is a required property","is a required property",{error:e}):e.message},iS=(e,t,n,i,o,r)=>{if(e.length>0&&n){let t=n(ik(i,o,r,"error.custom"),void 0,{schema:i,uischema:o,path:r,errors:e});if(void 0!==t)return t}return ng(e.map(e=>t(e,n,o)))},iT=(e,t)=>{if(!1===e.label||(void 0===e.label||null===e.label||!0===e.label)&&!tG(e))return;let n="string"==typeof e.label?e.label:JSON.stringify(e.label),i=iw(void 0,e);return t("string"==typeof i?`${i}.label`:n,n,{uischema:e})},iI=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iO=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iR=e=>{if(void 0!==e)return e.locale},iD=e=>void 0===e?iC:e.translate,i$=e=>void 0===e?iA:e.translateError,iL=e=>iR(eB()(e,"jsonforms.i18n")),iM=()=>e=>iD(eB()(e,"jsonforms.i18n")),iN=()=>e=>i$(eB()(e,"jsonforms.i18n")),iB={locale:"en",translate:iC,translateError:iA},iP=(e=iB,t)=>{switch(t.type){case nU:{let n=t.locale??iB.locale,i=t.translator??iB.translate,o=t.errorTranslator??iB.translateError;if(n!==e.locale||i!==e.translate||o!==e.translateError)return{...e,locale:n,translate:i,translateError:o};return e}case nz:return{...e,translate:t.translator??iC,translateError:t.errorTranslator??iA};case nj:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},ij=(e=[],t)=>{switch(t.type){case nI:return e.concat([{tester:t.tester,renderer:t.renderer}]);case nO:return e.filter(e=>e.tester!==t.tester);default:return e}},iz=e=>!eI()(e)&&void 0!==e.scope,iU=e=>(t,n,i)=>{if(eI()(t)||!iz(t)||eI()(n))return!1;let o=t.scope;if(eI()(o))return!1;let r=n;return ni(n,"object")&&(r=tN(n,o,i?.rootSchema)),void 0!==r&&e(r,i?.rootSchema)},iH=(e,t)=>(n,i,o)=>{if(eI()(n)||!iz(n))return!1;let r=n.scope,a=i;return ni(i,"object")&&(a=tN(i,r,o?.rootSchema)),void 0!==(a=eB()(a,e))&&t(a,o?.rootSchema)},iV=e=>iU(t=>!eI()(t)&&ni(t,e)),iW=e=>iU(t=>!eI()(t)&&t.format===e&&ni(t,"string")),iG=e=>t=>!eI()(t)&&t.type===e,iq=(e,t)=>n=>{if(eI()(n))return!1;let i=n.options;return!eI()(i)&&i[e]===t},iY=e=>t=>{if(eI()(t))return!1;let n=t.options;return!eI()(n)&&!th()(n[e])},iK=e=>t=>!eI()(e)&&!!iz(t)&&ta()(t.scope,e),iX=e=>t=>{if(eI()(e)||!iz(t))return!1;let n=t.scope;return!eI()(n)&&tl()(n.split("/"))===e},iJ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e&&o(t,n,i),!0),iQ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e||o(t,n,i),!1),iZ=(e,t)=>(n,i,o)=>t(n,i,o)?e:-1,i0=(e,t)=>(n,i,o)=>{let r=t(n,i,o);return -1===r?-1:r+e},i1=iJ(iG("Control"),iV("boolean")),i2=iJ(iG("Control"),iV("object")),i5=iJ(iG("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),i4=iJ(iG("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),i3=iJ(iG("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),i6=iJ(iG("Control"),iU(e=>ne(e))),i8=iJ(iG("Control"),iU(e=>t9(e))),i7=iJ(iG("Control"),iV("integer")),i9=iJ(iG("Control"),iV("number")),oe=iJ(iG("Control"),iV("string")),ot=iJ(iG("Control"),iq("multi",!0)),on=iJ(iG("Control"),iQ(iW("date"),iq("format","date"))),oi=iJ(iG("Control"),iQ(iW("time"),iq("format","time"))),oo=iJ(iG("Control"),iQ(iW("date-time"),iq("format","date-time"))),or=iJ(iU((e,t)=>ni(e,"array")&&!Array.isArray(tN(e,"items",t))),iH("items",(e,t)=>ni(e.$ref?tN(t,e.$ref,t):e,"object"))),oa=iJ(iG("Control"),or),os=(e,t,n)=>{if(eV()(e))return td()(e,(e,i)=>e||os(i,t,n),!1);if(t(e))return!0;if(e.$ref){let i=tN(n,e.$ref,n);if(i&&!i.$ref)return os(i,t,n)}return e.items?os(e.items,t,n):!!e.properties&&td()(tm()(e.properties),(e,[i,o])=>e||os(o,t,n),!1)},ol=(e,t,n)=>{if(!iG("Control")(e,t,n))return!1;let i=tN(t,e.scope,n?.rootSchema??t),o=0;if(void 0!==i&&void 0!==i.items){if(os(i.items,e=>e!==t&&void 0===e.$ref&&(!!(e.anyOf||e.allOf||e.oneOf&&!t9(e)||ni(e,"object")&&2==++o)||!!ni(e,"array")),n?.rootSchema))return!0;if(e.options&&e.options.detail){if("string"==typeof e.options.detail)return"DEFAULT"!==e.options.detail.toUpperCase();else if("object"==typeof e.options.detail&&e.options.detail.type)return!0}}return!1},oc=oa,od=iJ(iG("Control"),iU((e,t)=>0!==no(e).length&&!Array.isArray(tN(e,"items",t))),iH("items",(e,t)=>{let n=no(e.$ref?tN(t,e.$ref,t):e);return 1===n.length&&eG()(["integer","number","boolean","string"],n[0])})),ou=iJ(iG("Control"),iQ(iV("number"),iV("integer")),iU(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),iq("slider",!0)),om=iJ(iG("Control"),iV("integer"),iq("format",!0)),of=e=>"Categorization"===e.type,oh=e=>"Category"===e.type,op=e=>!eI()(e.elements)&&e.elements.map(e=>of(e)?op(e):oh(e)).reduce((e,t)=>e&&t,!0),ob=e=>op(e),og=e=>(t,n,i)=>!e(t,n,i);var ov=Object.freeze({__proto__:null,NOT_APPLICABLE:-1,isControl:iz,schemaMatches:iU,schemaSubPathMatches:iH,schemaTypeIs:iV,formatIs:iW,uiTypeIs:iG,optionIs:iq,hasOption:iY,scopeEndsWith:iK,scopeEndIs:iX,and:iJ,or:iQ,rankWith:iZ,withIncreasedRank:i0,isBooleanControl:i1,isObjectControl:i2,isAllOfControl:i5,isAnyOfControl:i4,isOneOfControl:i3,isEnumControl:i6,isOneOfEnumControl:i8,isIntegerControl:i7,isNumberControl:i9,isStringControl:oe,isMultiLineControl:ot,isDateControl:on,isTimeControl:oi,isDateTimeControl:oo,isObjectArray:or,isObjectArrayControl:oa,isObjectArrayWithNesting:ol,isArrayObjectControl:oc,isPrimitiveArrayControl:od,isRangeControl:ou,isNumberFormatControl:om,isCategorization:of,isCategory:oh,hasCategory:op,categorizationHasCategory:ob,not:og});let oy=(e=[],t)=>{switch(t.type){case nL:return e.slice().concat({tester:t.tester,uischema:t.uischema});case nM:{let n=e.slice();return to()(n,e=>e.tester===t.tester),n}default:return e}},o_=e=>(t,n,i)=>{let o=tn()(e,e=>e.tester(t,n,i));if(void 0!==o&&-1!==o.tester(t,n,i))return o.uischema},ow={core:ip,renderers:ij,cells:io,config:is,uischemas:oy,defaultData:ib,i18n:iP},oF=(e,t,n,i,o="VerticalLayout",r,a)=>{if(r&&r.options&&r.options.detail){if("string"==typeof r.options.detail){if("GENERATE"===r.options.detail.toUpperCase())return"function"==typeof o?o():nx.uiSchema(t,o,void 0,a)}else if("object"==typeof r.options.detail&&r.options.detail.type&&"string"==typeof r.options.detail.type)return r.options.detail}let s=o_(e)(t,n,i);return void 0===s?"function"==typeof o?o():nx.uiSchema(t,o,"#",a):s},ox=(e,t,n)=>n(e,t),ok=(e,t,n)=>i=>{let o=i.errors??[],r=i.additionalErrors??[];return nh(e,t,n)("ValidateAndHide"===i.validationMode?r:[...o,...r])},oE=(e,t)=>ok(e,t,t=>t===e),oC=(e,t)=>ok(e,t,t=>t.startsWith(e+".")),oA=(e,t)=>n=>oE(e,t)(n.jsonforms.core),oS=(e,t)=>n=>oC(e,t)(n.jsonforms.core),oT=e=>oM(eB()(e,"jsonforms.core")),oI=e=>oN(eB()(e,"jsonforms.core")),oO=e=>oB(eB()(e,"jsonforms.core")),oR=e=>oP(eB()(e,"jsonforms.core")),oD=e=>eB()(e,"jsonforms.renderers"),o$=e=>eB()(e,"jsonforms.cells"),oL=e=>eB()(e,"jsonforms.uischemas"),oM=e=>eB()(e,"data"),oN=e=>eB()(e,"schema"),oB=e=>eB()(e,"uischema"),oP=e=>eB()(e,"ajv"),oj=e=>e.jsonforms.config,oz=(e,t,n,i,o,r)=>!e?.jsonforms?.readonly&&(n&&t3(n)?t8(n,o,t?.path,oR(e)):"boolean"==typeof n?.options?.readonly?!n.options.readonly:"boolean"==typeof n?.options?.readOnly?!n.options.readOnly:"boolean"==typeof r?.readonly?!r.readonly:"boolean"==typeof r?.readOnly?!r.readOnly:i?.readOnly!==!0&&("boolean"!=typeof t?.enabled||t.enabled)),oU=(e,t,n)=>{let i=t+n;if(i<0||i>=e.length)return;let o=[t,i].sort((e,t)=>e-t);e.splice(o[0],2,e[o[1]],e[o[0]])},oH=(e,t)=>{oU(e,t,-1)},oV=(e,t)=>{oU(e,t,1)},oW=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,oG=(e,t)=>e&&!t,oq=(e,t)=>{let n=oY(e,t);return void 0===n?{}:n},oY=(e,t)=>{let n="string"==typeof e.$ref?nr.schema(t,e.$ref,t):e;if(void 0!==n.default)return oX(n,t);if(ni(n,"string"))return"date-time"===n.format||"date"===n.format||"time"===n.format?nt(new Date,n.format):"";if(ni(n,"integer")||ni(n,"number"))return 0;if(ni(n,"boolean"))return!1;if(ni(n,"array"))return[];if(ni(n,"object"))return oX(n,t);if(ni(n,"null"))return null;for(let n of["oneOf","anyOf","allOf"])if(e[n]&&Array.isArray(e[n])){let i=oK(e[n],t);if(void 0!==i)return i}},oK=(e,t)=>{if(e.length>0)for(let n of e){let e=oY(n,t);if(void 0!==e)return e}},oX=(e,t)=>{if(ni(e,"object")&&void 0===e.default){let n={};for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}return e.allOf&&Array.isArray(e.allOf)&&e.allOf.forEach(e=>{if(e&&e.properties)for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}}),n}return e4()(e.default)},oJ=(e,t,n,i)=>void 0===t||void 0!==t&&!e||!i&&!n,oQ=(e,t,n)=>{let i="string"==typeof e?e:JSON.stringify(e);return t&&(i=t(n?`${n}.${i}`:i,i)),{label:i,value:e}},oZ=(e,t,n)=>{let i=e.title??("string"==typeof e.const?e.const:JSON.stringify(e.const));return t&&(i=e.i18n?t(e.i18n,i):t(n?`${n}.${i}`:i,i)),{label:i,value:e.const}},o0=(e,t)=>{var n,i;let o,r,a,s,{uischema:l}=t,c=oT(e),d=tW(l,t.path),u=void 0===t.visible||t4(l)?t6(l,c,t.path,oR(e)):t.visible,m=t.id,f=oI(e),h=void 0!==l.scope&&(n=t.schema,i=l.scope,r=tT((o=i.split("/"))[o.length-1]),a=o.slice(0,o.length-2).join("/"),void 0!==(s=nr.schema(n,a,f))&&void 0!==s.required&&-1!==s.required.indexOf(r)),p=nr.schema(t.schema||f,l.scope,f),b=oA(d,p)(e),g=void 0!==p?p.description:"",v=nr.data(c,d),y=tD(l,p),_=y.show?y.text:"",w=oj(e),F=oz(e,t,l,p||f,c,w),x=p??f,k=iM()(e),E=iN()(e),C=ix(x,l,d),A=k(ik(x,l,d,"label"),_,{schema:x,uischema:l,path:d,errors:b});return{data:v,description:k(ik(x,l,d,"description"),g,{schema:x,uischema:l,path:d,errors:b}),errors:iS(b,E,k,x,l,d),label:A,visible:u,enabled:F,id:m,path:d,required:h,uischema:l,schema:x,config:oj(e),cells:t.cells||e.jsonforms.cells,rootSchema:f,i18nKeyPrefix:C}},o1=e=>({handleChange(t,n){e(nJ(t,()=>n))}}),o2=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,iM()(e),ix(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,iM()(e),ix(n.schema,n.uischema,n.path))];return{...n,options:i}},o5=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,iM()(e),ix(n.schema,n.uischema,n.path)));return{...n,options:i}},o4=(e,t)=>{let n=o0(e,t),i=n.schema.items;i=i&&i.$ref?tN(n.rootSchema,i.$ref,n.rootSchema):i;let o=t.options||i?.oneOf&&i.oneOf.map(t=>oZ(t,e.jsonforms.i18n?.translate,ix(n.schema,n.uischema,n.path)))||i?.enum?.map(t=>oQ(t,e.jsonforms.i18n?.translate,ix(n.schema,n.uischema,n.path)));return{...n,options:o}},o3=(e,t)=>{let{schema:n,path:i,uischema:o,childLabelProp:r,index:a}=t,s=tE(i,`${a}`),l=rd(oT(e),s,r,n,oI(e),e.jsonforms.i18n.translate,o);return{...t,childLabel:l}},o6=(e,t)=>{let{...n}=o0(e,t);return{...n,uischemas:e.jsonforms.uischemas}},o8=(e,t)=>{let{path:n,schema:i,uischema:o,label:r,...a}=o6(e,t),s=nr.schema(i,"items",a.rootSchema),l=oS(n,s)(e);return{...a,label:r,path:n,uischema:o,schema:s,arraySchema:i,childErrors:l,renderers:t.renderers||oD(e),cells:t.cells||o$(e)}},o7=e=>({addItem:(t,n)=>()=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(nJ(t,e=>(n.sort((e,t)=>e-t).reverse().forEach(t=>e.splice(t,1)),e),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(nJ(t,e=>(oH(e,n),e),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(nJ(t,e=>(oV(e,n),e),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),o9=e=>({addItem:(t,n)=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e)))},removeItem:(t,n)=>{e(nJ(t,e=>{let t=e.indexOf(n);return e.splice(t,1),e}))}}),re={visible:!0,enabled:!0,path:"",direction:"column"},rt=(e,t)=>{let n=oT(e),{uischema:i}=t,o=void 0===t.visible||t4(i)?t6(t.uischema,n,t.path,oR(e)):t.visible,r=nr.data(n,t.path),a=oj(e),s=oz(e,t,i,void 0,n,a),l=iM()(e),c=tJ(i)?iT(i,l):void 0;return{...re,renderers:t.renderers||oD(e),cells:t.cells||o$(e),visible:o,enabled:s,path:t.path,data:r,uischema:t.uischema,schema:t.schema,direction:t.direction??("HorizontalLayout"===i.type?"row":"VerticalLayout"===i.type?"column":re.direction),config:a,label:c}},rn=(e,t)=>({renderers:t.renderers||eB()(e.jsonforms,"renderers"),cells:t.cells||eB()(e.jsonforms,"cells"),schema:t.schema||oI(e),rootSchema:oI(e),uischema:t.uischema||oO(e),path:t.path,enabled:t.enabled,config:oj(e)}),ri={...re,errors:[]},ro=(e,t,n)=>{let i,{data:o,schema:r,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=o0(e,t),d=e.jsonforms.core.ajv,u=["required","additionalProperties","type","enum","const"],m=e=>!e||0===e.length||!e.find(e=>-1!==u.indexOf(e.keyword));for(let e=0;e<r[n]?.length;e++)try{let t=r[n][e];t.$ref&&(t=nr.schema(a,t.$ref,a));let s=d.compile(t);if(s(o),m(s.errors)){i=e;break}}catch(e){console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:o,schema:r,rootSchema:a,...c,i18nKeyPrefix:s,label:l,indexOfFittingSchema:i,uischemas:oL(e)}},rr=(e,t)=>ro(e,t,"allOf"),ra=(e,t)=>ro(e,t,"anyOf"),rs=(e,t)=>ro(e,t,"oneOf"),rl=(e,t)=>{let{path:n,schema:i,uischema:o,errors:r,label:a,...s}=o6(e,t),l=nr.schema(i,"items",s.rootSchema),c=iM()(e),d=iS(oS(n,l)(e),iN()(e),c,void 0,void 0,void 0),u=r+(r.length>0&&d.length>0?"\n":"")+d;return{...s,label:a,path:n,uischema:o,schema:l,arraySchema:i,data:s.data?s.data.length:0,errors:u,minItems:i.minItems}},rc=(e,t)=>{let{uischema:n}=t,i=void 0===t.visible||t4(n)?t6(t.uischema,oT(e),t.path,oR(e)):t.visible,o=n.text,r=iM()(e),a=iw(void 0,n);return{text:r(a?`${a}.text`:o??"",o,{uischema:n}),visible:i,config:oj(e),renderers:t.renderers||oD(e),cells:t.cells||o$(e),uischema:n}},rd=(e,t,n,i,o,r,a)=>{let s,l=nr.data(e,t);if(n||(n=t7(i)),!n)return"";let c=eB()(l,n);if(void 0===c)return"";let d=nr.schema(i,"#"+tI(n),o);if(ne(d))s=oQ(c,r,ix(d,tV(a,n),t+"."+n));else if(t9(d)){let e=d.oneOf.find(e=>e0()(e.const,c));e&&(s=oZ(e,r,ix(e,void 0,t+"."+n)))}return s?s.label:c},ru=(e,t)=>{let n,{id:i,schema:o,path:r,uischema:a,renderers:s,cells:l}=t,c=oT(e),d=void 0!==t.visible?t.visible:t6(a,c,void 0,oR(e)),u=oI(e),m=oj(e);n=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:oz(e,t,a,o||u,c,m));let f=iM()(e),h=iN()(e),p=iS(oA(r,o)(e),h,f,o,a,r),b=eI()(p);return{data:nr.data(c,r),visible:d,enabled:n,id:i,path:r,errors:p,isValid:b,schema:o,uischema:a,config:oj(e),rootSchema:u,renderers:s,cells:l}},rm=(e,t)=>{let n=ru(e,t),{renderers:i,cells:o,...r}=t;return{...n,...r,cells:o||e.jsonforms.cells||[]}},rf=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,iM()(e),ix(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,iM()(e),ix(n.schema,n.uischema,n.path))];return{...n,options:i}},rh=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,iM()(e),ix(n.schema,n.uischema,n.path)));return{...n,options:i}},rp=o1,rb=(e,t)=>{let{handleChange:n}=rp(e);return{handleChange:t.handleChange||n}},rg=(e,t,n,i,o,r)=>e.map((e,a)=>{let s=e.$ref&&nr.schema(t,e.$ref,t),l=s??e;return{schema:l,uischema:oF(r,l,i.scope,o,void 0,i,t),label:e.title??s?.title??`${n}-${a}`}}),rv=e=>(...t)=>({_$litDirective$:e,values:t});class ry{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let r_=rv(class extends ry{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let n in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let i=!!t[e];i===this.st.has(e)||this.nt?.has(e)||(i?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return et}}),{I:rw}={M:N,P:B,A:P,C:1,L:ea,R:ec,D:W,V:el,I:ed,H:eu,N:ef,U:eh,B:em,F:ep},rF=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),rF(e,t);return!0},rx=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},rk=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rA(t)}};function rE(e){void 0!==this._$AN?(rx(this),this._$AM=e,rk(this)):this._$AM=e}function rC(e,t=!1,n=0){let i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)rF(i[e],!1),rx(i[e]);else null!=i&&(rF(i,!1),rx(i));else rF(this,e)}let rA=e=>{2==e.type&&(e._$AP??=rC,e._$AQ??=rE)};class rS extends ry{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),rk(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(rF(this,e),rx(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class rT{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class rI{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}let rO=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,rR=rv(class extends rS{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new rT(this),this._$CX=new rI}render(...e){return e.find(e=>!rO(e))??et}update(e,t){let n=this._$Cbt,i=n.length;this._$Cbt=t;let o=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){let a=t[e];if(!rO(a))return this._$Cwt=e,a;e<i&&a===n[e]||(this._$Cwt=0x3fffffff,i=0,Promise.resolve(a).then(async e=>{for(;r.get();)await r.get();let t=o.deref();if(void 0!==t){let n=t._$Cbt.indexOf(a);n>-1&&n<t._$Cwt&&(t._$Cwt=n,t.setValue(e))}}))}return et}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var rD=function(e,t){return(rD=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r$(e,t){function n(){this.constructor=e}rD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rL=function(){return(rL=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rM=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),rN=function(){function e(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=e,this.initialize.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n)),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new rM({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(e,{bubbles:n,detail:t}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(i)},e}();function rB(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},i=function(){};e.document.addEventListener("test",i,n),e.document.removeEventListener("test",i,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}function rP(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(rj(n,t))return n;n=n.parentElement}return null}function rj(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var rz=function(e,t){return(rz=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rU(e,t){function n(){this.constructor=e}rz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rH=function(){return(rH=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rV={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},rW=function(e){function t(n){var i=e.call(this,rH(rH({},t.defaultAdapter),n))||this;return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return rU(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rV},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,i=n.LABEL_FLOAT_ABOVE,o=n.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(o))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(rM),rG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rU(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this;return new rW({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function(){var t=e.root;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rq=function(e,t){return(rq=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rY(e,t){function n(){this.constructor=e}rq(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rK=function(){return(rK=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rX={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},rJ=function(e){function t(n){var i=e.call(this,rK(rK({},t.defaultAdapter),n))||this;return i.transitionEndHandler_=function(e){return i.handleTransitionEnd(e)},i}return rY(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.activate=function(){this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(rX.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(rX.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(rX.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(rX.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING))},t}(rM),rQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rY(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new rJ({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rZ=function(e,t){return(rZ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r0(e,t){function n(){this.constructor=e}rZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r1=function(){return(r1=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r2={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},r5={NOTCH_ELEMENT_PADDING:8},r4={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},r3=function(e){function t(n){return e.call(this,r1(r1({},t.defaultAdapter),n))||this}return r0(t,e),Object.defineProperty(t,"strings",{get:function(){return r2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return r4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return r5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=r5.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(rM),r6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r0(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(r2.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+rW.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(r4.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(r4.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this;return new r3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){return e.notchElement_.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){return e.notchElement_.style.removeProperty("width")}})},t}(rN),r8=function(e,t){return(r8=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r7(e,t){function n(){this.constructor=e}r8(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r9=function(){return(r9=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ae={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},at={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},an={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ai=["touchstart","pointerdown","mousedown","keydown"],ao=["touchend","pointerup","mouseup","contextmenu"],ar=[],aa=function(e){function t(n){var i=e.call(this,r9(r9({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(e){return i.activate_(e)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return r7(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ae},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return at},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return an},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var i=t.cssClasses,o=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal_())})}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(i),e.adapter.removeClass(o),e.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(ai.forEach(function(e){t.adapter.registerInteractionHandler(e,t.activateHandler_)}),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):ao.forEach(function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)})},t.prototype.deregisterRootHandlers_=function(){var e=this;ai.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)}),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),ao.forEach(function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)})},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},t.prototype.activate_=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;if(!(i&&void 0!==e&&i.type!==e.type)){if(n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),void 0!==e&&ar.length>0&&ar.some(function(e){return t.adapter.containsEventTarget(e)}))return void this.resetActivationState_();void 0!==e&&(ar.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){ar=[],!n.wasElementMadeActive&&void 0!==e&&(" "===e.key||32===e.keyCode)&&(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})}}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,i=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var c="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates_(),m=u.startPoint,f=u.endPoint;c=m.x+"px, "+m.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout(function(){return e.activationTimerCallback_()},l)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var i,o,r=t.x,a=t.y,s=r+n.left,l=a+n.top;return"touchstart"===e.type?(i=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-l):(i=e.pageX-s,o=e.pageY-l),{x:i,y:o}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState_,o=i.hasDeactivationUXRun,r=i.isActivated;(o||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter.removeClass(n)},an.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=r9({},t);t.isProgrammatic?(requestAnimationFrame(function(){return e.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()}))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){this.frame_=this.adapter.computeBoundingRect();var e=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2))+t.numbers.PADDING;var n=Math.floor(e*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize_=n-1:this.initialSize_=n,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,i=e.VAR_LEFT,o=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(r,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(i,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords_.top+"px"))},t}(rM),as=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return r7(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var i=new t(e);return void 0!==n.isUnbounded&&(i.unbounded=n.isUnbounded),i},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function(){return function(e,t){void 0===t&&(t=!1);var n=e.CSS,i=g4;if("boolean"==typeof g4&&!t)return g4;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=o||r,t||(g4=i),i}(window)},computeBoundingRect:function(){return e.root.getBoundingClientRect()},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,rB())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,rB())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return rj(e.root,":active")},isSurfaceDisabled:function(){return!!e.disabled},isUnbounded:function(){return!!e.unbounded},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,rB())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,rB())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return!!this.unbounded_},set:function(e){this.unbounded_=!!e,this.setUnbounded_()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new aa(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root;this.unbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded_=function(){this.foundation.setUnbounded(!!this.unbounded_)},t}(rN),al={ROOT:"mdc-text-field-character-counter"},ac={ROOT_SELECTOR:"."+al.ROOT},ad=function(e){function t(n){return e.call(this,rL(rL({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return al},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ac},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(rM),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new ad({setContent:function(t){e.root.textContent=t}})},t}(rN),am={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},af={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},ah={LABEL_SCALE:.75},ap=["pattern","min","max","required","step","minlength","maxlength"],ab=["color","date","datetime-local","month","range","time","week"],ag=["mousedown","touchstart"],av=["click","keydown"],ay=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,rL(rL({},t.defaultAdapter),n))||this;return o.isFocused_=!1,o.receivedUserInput_=!1,o.isValid_=!0,o.useNativeValidation_=!0,o.validateOnValueChange_=!0,o.helperText_=i.helperText,o.characterCounter_=i.characterCounter,o.leadingIcon_=i.leadingIcon,o.trailingIcon_=i.trailingIcon,o.inputFocusHandler_=function(){return o.activateFocus()},o.inputBlurHandler_=function(){return o.deactivateFocus()},o.inputInputHandler_=function(){return o.handleInput()},o.setPointerXOffset_=function(e){return o.setTransformOrigin(e)},o.textFieldInteractionHandler_=function(){return o.handleTextFieldInteraction()},o.validationAttributeChangeHandler_=function(e){return o.handleValidationAttributeChange(e)},o}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return af},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return am},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ah},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return ab.indexOf(e)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&!!this.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.adapter.hasLabel()&&this.getNativeInput_().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler_():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating_(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler_),ag.forEach(function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)}),av.forEach(function(t){e.adapter.registerTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},t.prototype.destroy=function(){var e=this;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler_),ag.forEach(function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)}),av.forEach(function(t){e.adapter.deregisterTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput_=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some(function(e){return ap.indexOf(e)>-1&&(t.styleValidity_(!0),t.adapter.setLabelRequired(t.getNativeInput_().required),!0)}),e.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*ah.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.helperText_&&(this.helperText_.isPersistent()||!this.helperText_.isValidation()||!this.isValid_)&&this.helperText_.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!(this.isDisabled()||this.adapter.hasOutline())){var t=e.touches,n=t?t[0]:e,i=n.target.getBoundingClientRect(),o=n.clientX-i.left;this.adapter.setLineRippleTransformOrigin(o)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity_(e),this.styleFocused_(this.isFocused_),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},t.prototype.getValue=function(){return this.getNativeInput_().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput_().value=e),this.setCharacterCounter_(e.length),this.validateOnValueChange_){var t=this.isValid();this.styleValidity_(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.validateOnValueChange_&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},t.prototype.setValid=function(e){this.isValid_=e,this.styleValidity_(e);var t=!e&&!this.isFocused_&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange_=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange_},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation_=e},t.prototype.isDisabled=function(){return this.getNativeInput_().disabled},t.prototype.setDisabled=function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)},t.prototype.setHelperTextContent=function(e){this.helperText_&&this.helperText_.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon_&&this.leadingIcon_.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon_&&this.trailingIcon_.setContent(e)},t.prototype.setCharacterCounter_=function(e){if(this.characterCounter_){var t=this.getNativeInput_().maxLength;if(-1===t)throw Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(e,t)}},t.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},t.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},t.prototype.styleValidity_=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText_){if(this.helperText_.setValidity(e),!this.helperText_.isValidation())return;var i=this.helperText_.isVisible(),o=this.helperText_.getId();i&&o?this.adapter.setInputAttr(am.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(am.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused_=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled_=function(e){var n=t.cssClasses,i=n.DISABLED,o=n.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(o)):this.adapter.removeClass(i),this.leadingIcon_&&this.leadingIcon_.setDisabled(e),this.trailingIcon_&&this.trailingIcon_.setDisabled(e)},t.prototype.styleFloating_=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput_=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(rM),a_={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},aw={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+a_.ROOT},aF=function(e){function t(n){return e.call(this,rL(rL({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aw},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(aw.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(a_.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(a_.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(a_.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(a_.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(a_.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(a_.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(aw.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(a_.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(a_.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),this.adapter.setAttr(aw.ROLE,"alert")):this.adapter.removeAttr(aw.ROLE),t||n||this.hide_()},t.prototype.hide_=function(){this.adapter.setAttr(aw.ARIA_HIDDEN,"true")},t}(rM),ax=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new aF({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),ak={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},aE={ROOT:"mdc-text-field__icon"},aC=["click","keydown"],aA=function(e){function t(n){var i=e.call(this,rL(rL({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return r$(t,e),Object.defineProperty(t,"strings",{get:function(){return ak},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aE},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),aC.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;aC.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",ak.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(rM),aS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new aA({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(aA.strings.ICON_EVENT,{},!0)}})},t}(rN),aT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r,a){void 0===e&&(e=function(e,t){return new as(e,t)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new ax(e)}),void 0===i&&(i=function(e){return new au(e)}),void 0===o&&(o=function(e){return new aS(e)}),void 0===r&&(r=function(e){return new rG(e)}),void 0===a&&(a=function(e){return new r6(e)}),this.input_=this.root.querySelector(am.INPUT_SELECTOR);var s=this.root.querySelector(am.LABEL_SELECTOR);this.label_=s?r(s):null;var l=this.root.querySelector(am.LINE_RIPPLE_SELECTOR);this.lineRipple_=l?t(l):null;var c=this.root.querySelector(am.OUTLINE_SELECTOR);this.outline_=c?a(c):null;var d=aF.strings,u=this.root.nextElementSibling,m=u&&u.classList.contains(af.HELPER_LINE),f=m&&u&&u.querySelector(d.ROOT_SELECTOR);this.helperText_=f?n(f):null;var h=ad.strings,p=this.root.querySelector(h.ROOT_SELECTOR);!p&&m&&u&&(p=u.querySelector(h.ROOT_SELECTOR)),this.characterCounter_=p?i(p):null;var b=this.root.querySelector(am.LEADING_ICON_SELECTOR);this.leadingIcon_=b?o(b):null;var g=this.root.querySelector(am.TRAILING_ICON_SELECTOR);this.trailingIcon_=g?o(g):null,this.prefix_=this.root.querySelector(am.PREFIX_SELECTOR),this.suffix_=this.root.querySelector(am.SUFFIX_SELECTOR),this.ripple=this.createRipple_(e)},t.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple_&&this.lineRipple_.destroy(),this.helperText_&&this.helperText_.destroy(),this.characterCounter_&&this.characterCounter_.destroy(),this.leadingIcon_&&this.leadingIcon_.destroy(),this.trailingIcon_&&this.trailingIcon_.destroy(),this.label_&&this.label_.destroy(),this.outline_&&this.outline_.destroy(),e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function(){this.disabled=this.input_.disabled},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.input_.required},set:function(e){this.input_.required=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return this.input_.pattern},set:function(e){this.input_.pattern=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function(){return this.input_.minLength},set:function(e){this.input_.minLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.input_.maxLength},set:function(e){e<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.input_.min},set:function(e){this.input_.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.input_.max},set:function(e){this.input_.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.input_.step},set:function(e){this.input_.step=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function(){return this.prefix_?this.prefix_.textContent:null},set:function(e){this.prefix_&&(this.prefix_.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function(){return this.suffix_?this.suffix_.textContent:null},set:function(e){this.suffix_&&(this.suffix_.textContent=e)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input_.focus()},t.prototype.layout=function(){var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function(){return new ay(rL(rL(rL(rL(rL({},this.getRootAdapterMethods_()),this.getInputAdapterMethods_()),this.getLabelAdapterMethods_()),this.getLineRippleAdapterMethods_()),this.getOutlineAdapterMethods_()),this.getFoundationMap_())},t.prototype.getRootAdapterMethods_=function(){var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver(function(e){return t(e.map(function(e){return e.attributeName}).filter(function(e){return e}))});return n.observe(e.input_,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect()}}},t.prototype.getInputAdapterMethods_=function(){var e=this;return{getNativeInput:function(){return e.input_},setInputAttr:function(t,n){e.input_.setAttribute(t,n)},removeInputAttr:function(t){e.input_.removeAttribute(t)},isFocused:function(){return document.activeElement===e.input_},registerInputInteractionHandler:function(t,n){e.input_.addEventListener(t,n,rB())},deregisterInputInteractionHandler:function(t,n){e.input_.removeEventListener(t,n,rB())}}},t.prototype.getLabelAdapterMethods_=function(){var e=this;return{floatLabel:function(t){return e.label_&&e.label_.float(t)},getLabelWidth:function(){return e.label_?e.label_.getWidth():0},hasLabel:function(){return!!e.label_},shakeLabel:function(t){return e.label_&&e.label_.shake(t)},setLabelRequired:function(t){return e.label_&&e.label_.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods_=function(){var e=this;return{activateLineRipple:function(){e.lineRipple_&&e.lineRipple_.activate()},deactivateLineRipple:function(){e.lineRipple_&&e.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(t){e.lineRipple_&&e.lineRipple_.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods_=function(){var e=this;return{closeOutline:function(){return e.outline_&&e.outline_.closeNotch()},hasOutline:function(){return!!e.outline_},notchOutline:function(t){return e.outline_&&e.outline_.notch(t)}}},t.prototype.getFoundationMap_=function(){return{characterCounter:this.characterCounter_?this.characterCounter_.foundationForTextField:void 0,helperText:this.helperText_?this.helperText_.foundationForTextField:void 0,leadingIcon:this.leadingIcon_?this.leadingIcon_.foundationForTextField:void 0,trailingIcon:this.trailingIcon_?this.trailingIcon_.foundationForTextField:void 0}},t.prototype.createRipple_=function(e){var t=this,n=this.root.classList.contains(af.TEXTAREA),i=this.root.classList.contains(af.OUTLINED);if(n||i)return null;var o=rL(rL({},as.createAdapter(this)),{isSurfaceActive:function(){return rj(t.input_,":active")},registerInteractionHandler:function(e,n){return t.input_.addEventListener(e,n,rB())},deregisterInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n,rB())}});return e(this.root,new aa(o))},t}(rN),aI=function(e,t){return(aI=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aO(e,t){function n(){this.constructor=e}aI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aR=function(){return(aR=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aD={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},a$={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function aL(e){return!!e.document&&"function"==typeof e.document.createElement}function aM(e,t){if(aL(e)&&t in aD){var n=e.document.createElement("div"),i=aD[t],o=i.standard,r=i.prefixed;return o in n.style?o:r}return t}function aN(e,t){if(aL(e)&&t in a$){var n=e.document.createElement("div"),i=a$[t],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return t}var aB={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},aP={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},aj={ANIM_END_LATCH_MS:250},az=function(e){function t(n){var i=e.call(this,aR(aR({},t.defaultAdapter),n))||this;return i.currentCheckState_=aP.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return aO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aB},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aP},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return aj},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(aB.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aB.DISABLED):this.adapter.removeClass(aB.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1},aj.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=aP.TRANSITION_STATE_UNCHECKED,i=aB.SELECTED;t===n?this.adapter.removeClass(i):this.adapter.addClass(i),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=aP.TRANSITION_STATE_INDETERMINATE,t=aP.TRANSITION_STATE_CHECKED,n=aP.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var i=aP.TRANSITION_STATE_INIT,o=aP.TRANSITION_STATE_CHECKED,r=aP.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,l=a.ANIM_UNCHECKED_INDETERMINATE,c=a.ANIM_CHECKED_UNCHECKED,d=a.ANIM_CHECKED_INDETERMINATE,u=a.ANIM_INDETERMINATE_CHECKED,m=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case i:if(n===r)return"";return n===o?u:m;case r:return n===o?s:l;case o:return n===r?c:d;default:return n===o?u:m}},t.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(aP.ARIA_CHECKED_ATTR,aP.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(aP.ARIA_CHECKED_ATTR)},t}(rM),aU=["checked","indeterminate"],aH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){var e=aP.DATA_INDETERMINATE_ATTR;this.nativeControl_.indeterminate="true"===this.nativeControl_.getAttribute(e),this.nativeControl_.removeAttribute(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation.handleChange()},this.handleAnimationEnd_=function(){return e.foundation.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(aN(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(aN(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new az({addClass:function(t){return e.root.classList.add(t)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return!!e.root.parentNode},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.nativeControl_.removeAttribute(t)},setNativeControlAttr:function(t,n){e.nativeControl_.setAttribute(t,n)},setNativeControlDisabled:function(t){e.nativeControl_.disabled=t}})},t.prototype.createRipple_=function(){var e=this,t=aR(aR({},as.createAdapter(this)),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rj(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,rB())}});return new as(this.root,new aa(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);aU.forEach(function(i){var o=Object.getOwnPropertyDescriptor(n,i);if(aV(o)){var r=o.get,a={configurable:o.configurable,enumerable:o.enumerable,get:r,set:function(n){o.set.call(t,n),e.foundation.handleChange()}};Object.defineProperty(t,i,a)}})},t.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);aU.forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);aV(i)&&Object.defineProperty(e,n,i)})},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aP.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw Error("Checkbox component requires a "+e+" element");return t},enumerable:!0,configurable:!0}),t}(rN);function aV(e){return!!e&&"function"==typeof e.set}var aW=function(e,t){return(aW=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aG(e,t){function n(){this.constructor=e}aW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aq=function(){return(aq=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aY={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},aK={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},aX=function(e){function t(n){return e.call(this,aq(aq({},t.defaultAdapter),n))||this}return aG(t,e),Object.defineProperty(t,"strings",{get:function(){return aK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aY},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked_(e),this.updateCheckedStyling_(e)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aY.DISABLED):this.adapter.removeClass(aY.DISABLED)},t.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked_(t.checked),this.updateCheckedStyling_(t.checked)},t.prototype.updateCheckedStyling_=function(e){e?this.adapter.addClass(aY.CHECKED):this.adapter.removeClass(aY.CHECKED)},t.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(aK.ARIA_CHECKED_ATTR,""+!!e)},t}(rM),aJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aG(t,e),t.attachTo=function(e){return new t(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.changeHandler_)},t.prototype.initialSyncWithDOM=function(){var e=this;this.changeHandler_=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(t=e.foundation).handleChange.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n))},this.nativeControl_.addEventListener("change",this.changeHandler_),this.checked=this.checked},t.prototype.getDefaultFoundation=function(){var e=this;return new aX({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlChecked:function(t){return e.nativeControl_.checked=t},setNativeControlDisabled:function(t){return e.nativeControl_.disabled=t},setNativeControlAttr:function(t,n){return e.nativeControl_.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.foundation.setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple_=function(){var e=this,t=aX.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=aq(aq({},as.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,n){e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rj(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.nativeControl_.addEventListener(t,n,rB())},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new as(this.root,new aa(i))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aX.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!0,configurable:!0}),t}(rN),aQ=function(e,t){return(aQ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aZ(e,t){function n(){this.constructor=e}aQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a0=function(){return(a0=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a1="mdc-slider--disabled",a2="mdc-slider__thumb",a5="mdc-slider__thumb--top",a4="mdc-slider__thumb--with-indicator",a3="mdc-slider__tick-marks",a6="mdc-slider__tick-mark--active",a8="mdc-slider__tick-mark--inactive",a7="disabled",a9="value",se="step";(bG=g3||(g3={}))[bG.ACTIVE=0]="ACTIVE",bG[bG.INACTIVE=1]="INACTIVE",(bq=g6||(g6={}))[bq.START=1]="START",bq[bq.END=2]="END";var st="u">typeof window,sn=function(e){function t(n){var i=e.call(this,a0(a0({},t.defaultAdapter),n))||this;return i.initialStylesRemoved=!1,i.isDisabled=!1,i.isDiscrete=!1,i.step=1,i.hasTickMarks=!1,i.isRange=!1,i.thumb=null,i.downEventClientX=null,i.startThumbKnobWidth=0,i.endThumbKnobWidth=0,i}return aZ(t,e),Object.defineProperty(t,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(a1),this.isDiscrete=this.adapter.hasClass("mdc-slider--discrete"),this.hasTickMarks=this.adapter.hasClass("mdc-slider--tick-marks"),this.isRange=this.adapter.hasClass("mdc-slider--range");var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("min",this.isRange?g6.START:g6.END),"min"),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",g6.END),"max"),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,g6.END),a9),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,g6.START),a9):t;this.validateProperties({min:t,max:n,value:i,valueStart:o}),this.min=t,this.max=n,this.value=i,this.valueStart=o,this.valueBeforeDownEvent=i,this.valueStartBeforeDownEvent=o;var r=this.adapter.getInputAttribute(se,g6.END);if(r&&(this.step=this.convertAttributeValueToNumber(r,se)),this.step<=0)throw Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){e.handleInputChange(g6.START)},this.inputEndChangeListener=function(){e.handleInputChange(g6.END)},this.inputStartFocusListener=function(){e.handleInputFocus(g6.START)},this.inputEndFocusListener=function(){e.handleInputFocus(g6.END)},this.inputStartBlurListener=function(){e.handleInputBlur(g6.START)},this.inputEndBlurListener=function(){e.handleInputBlur(g6.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart)throw Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(e,g6.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value)throw Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+")");this.updateValue(e,g6.START)},t.prototype.getStep=function(){return this.step},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(a1),this.isRange&&this.adapter.setInputAttribute(a7,"",g6.START),this.adapter.setInputAttribute(a7,"",g6.END)):(this.adapter.removeClass(a1),this.isRange&&this.adapter.removeInputAttribute(a7,g6.START),this.adapter.removeInputAttribute(a7,g6.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(g6.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(g6.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null===this.thumb||(this.handleDragStart(e,n,this.thumb),this.isRange&&n>=this.valueStart&&n<=this.value||this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var i=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var e=this.thumb===g6.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,t=this.thumb===g6.START?this.valueStart:this.value;e!==t&&this.adapter.emitChangeEvent(t,this.thumb),this.adapter.emitDragEndEvent(t,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(a4,g6.START),this.adapter.addThumbClass(a4,g6.END))},t.prototype.handleThumbMouseleave=function(){!this.isDiscrete||!this.isRange||this.adapter.isInputFocused(g6.START)||this.adapter.isInputFocused(g6.END)||(this.adapter.removeThumbClass(a4,g6.START),this.adapter.removeThumbClass(a4,g6.END))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var i=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",i),t.adapter.deregisterEventHandler("touchend",i)};this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(e)},t.prototype.handlePointerdown=function(e){this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e)},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===g6.START?this.setValueStart(t):this.setValue(t)},t.prototype.handleInputFocus=function(e){if(this.isDiscrete&&(this.adapter.addThumbClass(a4,e),this.isRange)){var t=e===g6.START?g6.END:g6.START;this.adapter.addThumbClass(a4,t)}},t.prototype.handleInputBlur=function(e){if(this.isDiscrete&&(this.adapter.removeThumbClass(a4,e),this.isRange)){var t=e===g6.START?g6.END:g6.START;this.adapter.removeThumbClass(a4,t)}},t.prototype.handleDragStart=function(e,t,n){this.adapter.focusInput(n),e.preventDefault(),this.adapter.emitDragStartEvent(t,n)},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return g6.END;var n=this.adapter.getThumbBoundingClientRect(g6.START),i=this.adapter.getThumbBoundingClientRect(g6.END),o=e>=n.left&&e<=n.right,r=e>=i.left&&e<=i.right;return o&&r?null:o?g6.START:r?g6.END:t<this.valueStart?g6.START:t>this.value?g6.END:null},t.prototype.getThumbFromMoveEvent=function(e){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw Error("`downEventClientX` is null after move event.");return 5>Math.abs(this.downEventClientX-e)?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?g6.END:g6.START:this.adapter.isRTL()?g6.START:g6.END},t.prototype.updateUI=function(e){this.updateThumbAndInputAttributes(e),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===g6.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(a9,n,e),this.isRange&&e===g6.START?this.adapter.setInputAttribute("min",n,g6.END):this.isRange&&e===g6.END&&this.adapter.setInputAttribute("max",n,g6.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var i=this.adapter.getValueToAriaValueTextFn();i&&this.adapter.setInputAttribute("aria-valuetext",i(t),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===g6.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===g6.START?g6.START:g6.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,g6.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:e}).fill(g3.INACTIVE),o=Array.from({length:t}).fill(g3.ACTIVE),r=Array.from({length:n}).fill(g3.INACTIVE);this.adapter.updateTickMarks(i.concat(o).concat(r))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:this.quantize(n)},t.prototype.updateValue=function(e,t,n){var i=void 0===n?{}:n,o=i.emitInputEvent,r=i.emitChangeEvent;if(e=this.clampValue(e,t),this.isRange&&t===g6.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),o&&this.adapter.emitInputEvent(t===g6.START?this.valueStart:this.value,t),r&&this.adapter.emitChangeEvent(t===g6.START?this.valueStart:this.value,t)},t.prototype.quantize=function(e){return Math.round(e/this.step)*this.step},t.prototype.clampValue=function(e,t){return(e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===g6.START&&e>this.value)?this.value:this.isRange&&t===g6.END&&e<this.valueStart?this.valueStart:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,i=this.min,o=(this.value-this.valueStart)/(n-i),r=o*this.rect.width,a=this.adapter.isRTL(),s=st?aM(window,"transform"):"transform";if(this.isRange){var l=this.adapter.isRTL()?(n-this.value)/(n-i)*this.rect.width:(this.valueStart-i)/(n-i)*this.rect.width,c=l+r;requestAnimationFrame(function(){!a&&e===g6.START||a&&e!==g6.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","unset"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-c+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","unset"),t.adapter.setTrackActiveStyleProperty("left",l+"px")),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")");var n=a?c:l,i=t.adapter.isRTL()?l:c;e!==g6.START&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",g6.START),e!==g6.END&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+i+"px)",g6.END),t.removeInitialStyles(a),t.updateOverlappingThumbsUI(n,i,e)})}else requestAnimationFrame(function(){var e=a?t.rect.width-r:r;t.adapter.setThumbStyleProperty(s,"translateX("+e+"px)",g6.END),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")"),t.removeInitialStyles(a)})},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,g6.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,g6.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=st?aM(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,g6.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,g6.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame(function(){e.adapter.removeThumbStyleProperty(t,g6.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,g6.START)})}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var i=!1;if(this.adapter.isRTL()){var o=e-this.startThumbKnobWidth/2;i=t+this.endThumbKnobWidth/2>=o}else i=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2;i?(this.adapter.addThumbClass(a5,n||g6.END),this.adapter.removeThumbClass(a5,n===g6.START?g6.END:g6.START)):(this.adapter.removeThumbClass(a5,g6.START),this.adapter.removeThumbClass(a5,g6.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,i=e.value,o=e.valueStart;if(t>=n)throw Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+t+", max: ")+n+"]");if(this.isRange){if(i<t||i>n||o<t||o>n)throw Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+o+", end value: ")+i+"]");if(o>i)throw Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+o+", end value: ")+i+"]")}else if(i<t||i>n)throw Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+i)},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(g6.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g6.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g6.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(g6.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(g6.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(g6.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g6.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g6.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(g6.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(g6.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(g6.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g6.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g6.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(g6.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(g6.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(g6.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g6.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g6.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(g6.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(g6.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=st&&!!window.PointerEvent,t}(rM),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}return aZ(t,e),t.attachTo=function(e,n){return void 0===n&&(n={}),new t(e,void 0,n)},t.prototype.getDefaultFoundation=function(){var e=this;return new sn({hasClass:function(t){return e.root.classList.contains(t)},addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},addThumbClass:function(t,n){e.getThumbEl(n).classList.add(t)},removeThumbClass:function(t,n){e.getThumbEl(n).classList.remove(t)},getAttribute:function(t){return e.root.getAttribute(t)},getInputValue:function(t){return e.getInput(t).value},setInputValue:function(t,n){e.getInput(n).value=t},getInputAttribute:function(t,n){return e.getInput(n).getAttribute(t)},setInputAttribute:function(t,n,i){e.getInput(i).setAttribute(t,n)},removeInputAttribute:function(t,n){e.getInput(n).removeAttribute(t)},focusInput:function(t){e.getInput(t).focus()},isInputFocused:function(t){return e.getInput(t)===document.activeElement},getThumbKnobWidth:function(t){return e.getThumbEl(t).querySelector(".mdc-slider__thumb-knob").getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return e.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return e.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(e.root).direction},setThumbStyleProperty:function(t,n,i){e.getThumbEl(i).style.setProperty(t,n)},removeThumbStyleProperty:function(t,n){e.getThumbEl(n).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,n){e.trackActive.style.setProperty(t,n)},removeTrackActiveStyleProperty:function(t){e.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,n){e.getThumbEl(n).querySelector(".mdc-slider__value-indicator-text").textContent=String(t)},getValueToAriaValueTextFn:function(){return e.valueToAriaValueTextFn},updateTickMarks:function(t){var n=e.root.querySelector("."+a3);n||((n=document.createElement("div")).classList.add(a3),e.root.querySelector(".mdc-slider__track").appendChild(n)),t.length!==n.children.length?(n.innerHTML="",e.addTickMarks(n,t)):e.updateTickMarks(n,t)},setPointerCapture:function(t){e.root.setPointerCapture(t)},emitChangeEvent:function(t,n){e.emit("MDCSlider:change",{value:t,thumb:n})},emitInputEvent:function(t,n){e.emit("MDCSlider:input",{value:t,thumb:n})},emitDragStartEvent:function(t,n){e.getRipple(n).activate()},emitDragEndEvent:function(t,n){e.getRipple(n).deactivate()},registerEventHandler:function(t,n){e.listen(t,n)},deregisterEventHandler:function(t,n){e.unlisten(t,n)},registerThumbEventHandler:function(t,n,i){e.getThumbEl(t).addEventListener(n,i)},deregisterThumbEventHandler:function(t,n,i){e.getThumbEl(t).removeEventListener(n,i)},registerInputEventHandler:function(t,n,i){e.getInput(t).addEventListener(n,i)},deregisterInputEventHandler:function(t,n,i){e.getInput(t).removeEventListener(n,i)},registerBodyEventHandler:function(e,t){document.body.addEventListener(e,t)},deregisterBodyEventHandler:function(e,t){document.body.removeEventListener(e,t)},registerWindowEventHandler:function(e,t){window.addEventListener(e,t)},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t)}})},t.prototype.initialize=function(e){var t=(void 0===e?{}:e).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll(".mdc-slider__input")),this.thumbs=[].slice.call(this.root.querySelectorAll("."+a2)),this.trackActive=this.root.querySelector(".mdc-slider__track--active_fill"),this.ripples=this.createRipples(),t&&(this.skipInitialUIUpdate=!0)},t.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getValueStart=function(){return this.foundation.getValueStart()},t.prototype.setValueStart=function(e){this.foundation.setValueStart(e)},t.prototype.getValue=function(){return this.foundation.getValue()},t.prototype.setValue=function(e){this.foundation.setValue(e)},t.prototype.getDisabled=function(){return this.foundation.getDisabled()},t.prototype.setDisabled=function(e){this.foundation.setDisabled(e)},t.prototype.setValueToAriaValueTextFn=function(e){this.valueToAriaValueTextFn=e},t.prototype.getThumbEl=function(e){return e===g6.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},t.prototype.getInput=function(e){return e===g6.END?this.inputs[this.inputs.length-1]:this.inputs[0]},t.prototype.getRipple=function(e){return e===g6.END?this.ripples[this.ripples.length-1]:this.ripples[0]},t.prototype.addTickMarks=function(e,t){for(var n=document.createDocumentFragment(),i=0;i<t.length;i++){var o=document.createElement("div"),r=t[i]===g3.ACTIVE?a6:a8;o.classList.add(r),n.appendChild(o)}e.appendChild(n)},t.prototype.updateTickMarks=function(e,t){for(var n=Array.from(e.children),i=0;i<n.length;i++)t[i]===g3.ACTIVE?(n[i].classList.add(a6),n[i].classList.remove(a8)):(n[i].classList.add(a8),n[i].classList.remove(a6))},t.prototype.createRipples=function(){for(var e=[],t=[].slice.call(this.root.querySelectorAll("."+a2)),n=this,i=0;i<t.length;i++)!function(i){var o=t[i],r=n.inputs[i],a=a0(a0({},as.createAdapter(n)),{addClass:function(e){o.classList.add(e)},computeBoundingRect:function(){return o.getBoundingClientRect()},deregisterInteractionHandler:function(e,t){r.removeEventListener(e,t)},isSurfaceActive:function(){return rj(r,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(e,t){r.addEventListener(e,t)},removeClass:function(e){o.classList.remove(e)},updateCssVariable:function(e,t){o.style.setProperty(e,t)}}),s=new as(o,new aa(a));s.unbounded=!0,e.push(s)}(i);return e},t}(rN),so=function(e,t){return(so=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sr(e,t){function n(){this.constructor=e}so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sa=function(){return(sa=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ss={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},sl={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:'button:not(:disabled), [href]:not([aria-disabled="true"]), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'},sc={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(bY=g8||(g8={}))[bY.BOTTOM=1]="BOTTOM",bY[bY.CENTER=2]="CENTER",bY[bY.RIGHT=4]="RIGHT",bY[bY.FLIP_RTL=8]="FLIP_RTL",(bK=g7||(g7={}))[bK.TOP_LEFT=0]="TOP_LEFT",bK[bK.TOP_RIGHT=4]="TOP_RIGHT",bK[bK.BOTTOM_LEFT=1]="BOTTOM_LEFT",bK[bK.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",bK[bK.TOP_START=8]="TOP_START",bK[bK.TOP_END=12]="TOP_END",bK[bK.BOTTOM_START=9]="BOTTOM_START",bK[bK.BOTTOM_END=13]="BOTTOM_END";var sd=function(e,t){return(sd=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function su(e,t){function n(){this.constructor=e}sd(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sm=function(){return(sm=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sf=function(e,t){return(sf=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sh(e,t){function n(){this.constructor=e}sf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sp=function(){return(sp=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sb={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},sg={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+sb.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sb.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+sb.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sb.LIST_ITEM_CLASS+" a,\n ."+sb.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+sb.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},sv={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},sy="Backspace",s_="Enter",sw="Spacebar",sF="PageUp",sx="PageDown",sk="Home",sE="ArrowLeft",sC="ArrowUp",sA="ArrowRight",sS="ArrowDown",sT="Delete",sI="Escape",sO=new Set;sO.add(sy),sO.add(s_),sO.add(sw),sO.add(sF),sO.add(sx),sO.add("End"),sO.add(sk),sO.add(sE),sO.add(sC),sO.add(sA),sO.add(sS),sO.add(sT),sO.add(sI);var sR=new Map;sR.set(8,sy),sR.set(13,s_),sR.set(32,sw),sR.set(33,sF),sR.set(34,sx),sR.set(35,"End"),sR.set(36,sk),sR.set(37,sE),sR.set(38,sC),sR.set(39,sA),sR.set(40,sS),sR.set(46,sT),sR.set(27,sI);var sD=new Set;function s$(e){var t=e.key;if(sO.has(t))return t;var n=sR.get(e.keyCode);return n||"Unknown"}sD.add(sF),sD.add(sx),sD.add("End"),sD.add(sk),sD.add(sE),sD.add(sC),sD.add(sA),sD.add(sS);var sL=["input","button","textarea","select"],sM=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===sL.indexOf(n)&&e.preventDefault()}};function sN(e,t){var n,i=e.nextChar,o=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,a=e.focusedItemIndex,s=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){sP(t)},sv.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,-1===(n=1===t.typeaheadBuffer.length?function(e,t,n,i){var o,r=i.typeaheadBuffer[0],a=e.get(r);if(!a)return -1;if(r===i.currentFirstChar&&a[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%a.length;var s=a[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var l=-1;for(o=0;o<a.length;o++)if(!n(a[o].index)){l=o;break}for(;o<a.length;o++)if(a[o].index>t&&!n(a[o].index)){l=o;break}return -1!==l?(i.sortedIndexCursor=l,a[i.sortedIndexCursor].index):-1}(r,a,l,t):function(e,t,n){var i=n.typeaheadBuffer[0],o=e.get(i);if(!o)return -1;var r=o[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;for(var a=(n.sortedIndexCursor+1)%o.length,s=-1;a!==n.sortedIndexCursor;){var l=o[a],c=0===l.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(l.index);if(c&&d){s=a;break}a=(a+1)%o.length}return -1!==s?(n.sortedIndexCursor=s,o[n.sortedIndexCursor].index):-1}(r,l,t))||s||o(n),n}function sB(e){return e.typeaheadBuffer.length>0}function sP(e){e.typeaheadBuffer=""}function sj(e,t){var n=e.event,i=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===s$(n),c="ArrowUp"===s$(n),d="ArrowRight"===s$(n),u="ArrowDown"===s$(n),m="Home"===s$(n),f="End"===s$(n),h="Enter"===s$(n),p="Spacebar"===s$(n);if(l||c||d||u||m||f||h)return -1;if(!p&&1===n.key.length){sM(n);var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(b,t)}if(!p)return -1;if(i&&sM(n),i&&sB(t)){var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(b,t)}return -1}var sz=function(e){function t(n){var i=e.call(this,sp(sp({},t.defaultAdapter),n))||this;return i.wrapFocus_=!1,i.isVertical_=!0,i.isSingleSelectionList_=!1,i.selectedIndex_=sv.UNSET_INDEX,i.focusedItemIndex=sv.UNSET_INDEX,i.useActivatedClass_=!1,i.useSelectedAttr_=!1,i.ariaCurrentAttrValue_=null,i.isCheckboxList_=!1,i.isRadioList_=!1,i.hasTypeahead=!1,i.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},i.sortedIndexByFirstChar=new Map,i}return sh(t,e),Object.defineProperty(t,"strings",{get:function(){return sg},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return sb},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sv},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.setWrapFocus=function(e){this.wrapFocus_=e},t.prototype.setVerticalOrientation=function(e){this.isVertical_=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList_=e,e&&this.maybeInitializeSingleSelection()},t.prototype.maybeInitializeSingleSelection=function(){for(var e=0;e<this.adapter.getListItemCount();e++){var t=this.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_ACTIVATED_CLASS);if(t||n){n&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=e;return}}},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&sB(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass_=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr_=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex_},t.prototype.setSelectedIndex=function(e){this.isIndexValid_(e)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(e):this.isRadioList_?this.setRadioAtIndex_(e):this.setSingleSelectionAtIndex_(e))},t.prototype.handleFocusIn=function(e,t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},t.prototype.handleFocusOut=function(e,t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()},0)},t.prototype.handleKeydown=function(e,t,n){var i=this,o="ArrowLeft"===s$(e),r="ArrowUp"===s$(e),a="ArrowRight"===s$(e),s="ArrowDown"===s$(e),l="Home"===s$(e),c="End"===s$(e),d="Enter"===s$(e),u="Spacebar"===s$(e),m="A"===e.key||"a"===e.key;if(this.adapter.isRootFocused()){if(r||c?(e.preventDefault(),this.focusLastElement()):(s||l)&&(e.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var f={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)}};sj(f,this.typeaheadState)}return}var h=this.adapter.getFocusedElementIndex();if(-1!==h||!((h=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)sM(e),this.focusNextElement(h);else if(this.isVertical_&&r||!this.isVertical_&&o)sM(e),this.focusPrevElement(h);else if(l)sM(e),this.focusFirstElement();else if(c)sM(e),this.focusLastElement();else if(m&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===sv.UNSET_INDEX?[]:this.selectedIndex_);else if((d||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&d||(sM(e),this.adapter.listItemAtIndexHasClass(h,sb.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(h),this.adapter.notifyAction(h))}if(this.hasTypeahead){var f={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)}};sj(f,this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e===sv.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(e,t),this.adapter.notifyAction(e))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e+1;if(n>=t)if(!this.wrapFocus_)return e;else n=0;return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=e-1;if(t<0)if(!this.wrapFocus_)return e;else t=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(t),t},t.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},t.prototype.focusLastElement=function(){var e=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(e),e},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid_(e)&&(t?(this.adapter.removeClassForElementIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sg.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sg.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=sb.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=sb.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==sv.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==sv.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===sv.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,sg.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?sg.ARIA_CURRENT:sg.ARIA_SELECTED;if(this.selectedIndex_!==sv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==sv.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?sg.ARIA_SELECTED:sg.ARIA_CHECKED},t.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==sv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,t,"false"),this.adapter.setAttributeForElementIndex(e,t,"true"),this.selectedIndex_=e},t.prototype.setCheckboxAtIndex_=function(e){for(var t=this.getSelectionAttribute(),n=0;n<this.adapter.getListItemCount();n++){var i=!1;e.indexOf(n)>=0&&(i=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(n,i),this.adapter.setAttributeForElementIndex(n,t,i?"true":"false")}this.selectedIndex_=e},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===sv.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===e||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),e!==sv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){var e=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==sv.UNSET_INDEX?e=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(e=this.selectedIndex_.reduce(function(e,t){return Math.min(e,t)}))),e},t.prototype.isIndexValid_=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList_)throw Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return t.isIndexInRange_(e)})}if("number"!=typeof e)return!1;if(this.isCheckboxList_)throw Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange_(e)||this.isSingleSelectionList_&&e===sv.UNSET_INDEX},t.prototype.isIndexInRange_=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction_=function(e,t){void 0===t&&(t=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(e,t):this.setSelectedIndex(e)},t.prototype.toggleCheckboxAtIndex_=function(e,t){var n=this.getSelectionAttribute(),i=this.adapter.isCheckboxCheckedAtIndex(e);t&&(i=!i,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,i)),this.adapter.setAttributeForElementIndex(e,n,i?"true":"false");var o=this.selectedIndex_===sv.UNSET_INDEX?[]:this.selectedIndex_.slice();i?o.push(e):o=o.filter(function(t){return t!==e}),this.selectedIndex_=o},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.toggleAll=function(e){var t=this.adapter.getListItemCount();if(e.length===t)this.setCheckboxAtIndex_([]);else{for(var n=[],i=0;i<t;i++)(!this.adapter.listItemAtIndexHasClass(i,sb.LIST_ITEM_DISABLED_CLASS)||e.indexOf(i)>-1)&&n.push(i);this.setCheckboxAtIndex_(n)}},t.prototype.typeaheadMatchItem=function(e,t,n){var i=this;return void 0===n&&(n=!1),sN({focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,i=0;i<e;i++){var o=t(i).trim();if(o){var r=o[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:o.toLowerCase(),index:i})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){sP(this.typeaheadState)},t}(rM),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sh(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function(){return[].slice.call(this.root.querySelectorAll("."+sb.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!0,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},t.prototype.layout=function(){var e=this.root.getAttribute(sg.ARIA_ORIENTATION);this.vertical=e!==sg.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(e){e.setAttribute("tabindex","-1")}),[].slice.call(this.root.querySelectorAll(sg.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(e){return e.setAttribute("tabindex","-1")}),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t=e.querySelector("."+sb.LIST_ITEM_PRIMARY_TEXT_CLASS);if(t)return t.textContent||"";var n=e.querySelector("."+sb.LIST_ITEM_TEXT_CLASS);return n&&n.textContent||""},t.prototype.initializeListType=function(){var e=this,t=this.root.querySelectorAll(sg.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root.querySelector(sg.ARIA_CHECKED_RADIO_SELECTOR);if(t.length){var i=this.root.querySelectorAll(sg.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(i,function(t){return e.listElements.indexOf(t)})}else n&&(this.selectedIndex=this.listElements.indexOf(n))},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function(){var e=this;return new sz({addClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.add(n)},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus()},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(sg.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(sg.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(sg.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(n)},notifyAction:function(t){e.emit(sg.ACTION_EVENT,{index:t},!0)},removeClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.remove(n)},setAttributeForElementIndex:function(t,n,i){var o=e.listElements[t];o&&o.setAttribute(n,i)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var i=e.listElements[t].querySelector(sg.CHECKBOX_RADIO_SELECTOR);i.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),i.dispatchEvent(o)},setTabIndexForListItemChildren:function(t,n){var i=e.listElements[t];[].slice.call(i.querySelectorAll(sg.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(e){return e.setAttribute("tabindex",n)})}})},t.prototype.getListItemIndex_=function(e){var t=rP(e.target,"."+sb.LIST_ITEM_CLASS+", ."+sb.ROOT);return t&&rj(t,"."+sb.LIST_ITEM_CLASS)?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusIn(e,t)},t.prototype.handleFocusOutEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusOut(e,t)},t.prototype.handleKeydownEvent_=function(e){var t=this.getListItemIndex_(e),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(sb.LIST_ITEM_CLASS),t)},t.prototype.handleClickEvent_=function(e){var t=this.getListItemIndex_(e),n=!rj(e.target,sg.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,n)},t}(rN),sH=function(e,t){return(sH=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sV(e,t){function n(){this.constructor=e}sH(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sW=function(){return(sW=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sG=function(e){function t(n){var i=e.call(this,sW(sW({},t.defaultAdapter),n))||this;return i.isSurfaceOpen=!1,i.isQuickOpen=!1,i.isHoistedElement=!1,i.isFixedPosition=!1,i.openAnimationEndTimerId=0,i.closeAnimationEndTimerId=0,i.animationRequestId=0,i.anchorCorner=g7.TOP_START,i.originCorner=g7.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return sV(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ss},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sl},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sc},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return g7},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(n))throw Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^g8.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.adapter.addClass(t.cssClasses.OPEN),e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},sc.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;void 0===e&&(e=!1),this.isSurfaceOpen&&(this.isQuickOpen?(this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose()):(this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},sc.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()))},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){this.measurements=this.getAutoLayoutmeasurements();var e,n=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(n),o=this.hasBit(n,g8.BOTTOM)?"bottom":"top",r=this.hasBit(n,g8.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),s=this.getVerticalOriginOffset(n),l=this.measurements,c=l.anchorSize,d=l.surfaceSize,u=((e={})[r]=a,e[o]=s,e);c.width/d.width>sc.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(u),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(u),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(n,g8.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:i}},t.prototype.getoriginCorner=function(){var e,n,i,o,r=this.originCorner,a=this.measurements,s=a.viewportDistance,l=a.anchorSize,c=a.surfaceSize,d=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,g8.BOTTOM)?(e=s.top-d+l.height+this.anchorMargin.bottom,n=s.bottom-d-this.anchorMargin.bottom):(e=s.top-d+this.anchorMargin.top,n=s.bottom-d+l.height-this.anchorMargin.top),!(n-c.height>0)&&e>=n&&(r=this.setBit(r,g8.BOTTOM));var u=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,g8.FLIP_RTL),f=this.hasBit(this.anchorCorner,g8.RIGHT)||this.hasBit(r,g8.RIGHT),h=!1;(h=u&&m?!f:f)?(i=s.left+l.width+this.anchorMargin.right,o=s.right-this.anchorMargin.right):(i=s.left+this.anchorMargin.left,o=s.right+l.width-this.anchorMargin.left);var p=i-c.width>0,b=o-c.width>0,g=this.hasBit(r,g8.FLIP_RTL)&&this.hasBit(r,g8.RIGHT);return b&&g&&u||!p&&g?r=this.unsetBit(r,g8.RIGHT):(p&&h&&u||p&&!h&&f||!b&&i>=o)&&(r=this.setBit(r,g8.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,i=0,o=this.hasBit(e,g8.BOTTOM),r=this.hasBit(this.anchorCorner,g8.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return o?(i=n.top+this.anchorMargin.top-a,r||(i+=this.measurements.anchorSize.height)):(i=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,r&&(i-=this.measurements.anchorSize.height)),i},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,g8.RIGHT),i=this.hasBit(this.anchorCorner,g8.RIGHT);if(n){var o=i?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return i?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,g8.BOTTOM),i=this.hasBit(this.anchorCorner,g8.BOTTOM);return n?i?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,i=this.measurements,o=i.windowScroll,r=i.viewportDistance,a=Object.keys(e);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),l=s.next();!l.done;l=s.next()){var c=l.value,d=e[c]||0;d+=r[c],this.isFixedPosition||("top"===c?d+=o.y:"bottom"===c?d-=o.y:"left"===c?d+=o.x:d-=o.x),e[c]=d}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this.adapter.isFocused(),t=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(e||t)&&this.adapter.restoreFocus()},t.prototype.hasBit=function(e,t){return!!(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(rM),sq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sV(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(ss.ANCHOR)?t:null,this.root.classList.contains(ss.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(sl.OPENED_EVENT,this.registerBodyClickListener),this.listen(sl.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(sl.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(sl.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function(){return this.foundation.isOpen()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!0,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(ss.FIXED):this.root.classList.remove(ss.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new sG({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(sG.strings.CLOSED_EVENT,{})},notifyOpen:function(){return e.emit(sG.strings.OPENED_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n,i,o=(n=window,void 0===i&&(i=!1),(void 0===g9||i)&&(g9="transform"in n.document.createElement("div").style?"transform":"webkitTransform"),g9+"-origin");e.root.style.setProperty(o,t)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}})},t}(rN),sY={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},sK={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},sX={FOCUS_ROOT_INDEX:-1};(bX=ve||(ve={}))[bX.NONE=0]="NONE",bX[bX.LIST_ROOT=1]="LIST_ROOT",bX[bX.FIRST_ITEM=2]="FIRST_ITEM",bX[bX.LAST_ITEM=3]="LAST_ITEM";var sJ=function(e){function t(n){var i=e.call(this,sm(sm({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=ve.LIST_ROOT,i}return su(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sY},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return -1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return -1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);n<0||(this.adapter.notifySelected({index:n}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},sG.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case ve.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case ve.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case ve.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState_=e},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex_(e),!this.adapter.isSelectableItemAtIndex(e))throw Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,sK.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,sY.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,sY.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex_=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw Error("MDCMenuFoundation: No list item at specified index.")},t}(rM),sQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new sq(e)}),void 0===t&&(t=function(e){return new sU(e)}),this.menuSurfaceFactory_=e,this.listFactory_=t},t.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface_=this.menuSurfaceFactory_(this.root);var t=this.root.querySelector(sK.LIST_SELECTOR);t?(this.list_=this.listFactory_(t),this.list_.wrapFocus=!0):this.list_=null,this.handleKeydown_=function(t){return e.foundation.handleKeydown(t)},this.handleItemAction_=function(t){return e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened_=function(){return e.foundation.handleMenuSurfaceOpened()},this.menuSurface_.listen(sG.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(sz.strings.ACTION_EVENT,this.handleItemAction_)},t.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(sG.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(sz.strings.ACTION_EVENT,this.handleItemAction_),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function(){return this.menuSurface_.isOpen()},set:function(e){e?this.menuSurface_.open():this.menuSurface_.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function(){return!!this.list_&&this.list_.wrapFocus},set:function(e){this.list_&&(this.list_.wrapFocus=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list_&&(this.list_.hasTypeahead=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return!!this.list_&&this.list_.typeaheadInProgress},enumerable:!0,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list_?this.list_.typeaheadMatchItem(e,t):-1},t.prototype.layout=function(){this.list_&&this.list_.layout()},Object.defineProperty(t.prototype,"items",{get:function(){return this.list_?this.list_.listElements:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list_&&(this.list_.singleSelection=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.list_?this.list_.selectedIndex:sv.UNSET_INDEX},set:function(e){this.list_&&(this.list_.selectedIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface_.quickOpen=e},enumerable:!0,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface_.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface_.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list_&&this.list_.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface_.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface_.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface_.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface_.anchorElement=e},t.prototype.getDefaultFoundation=function(){var e=this;return new sJ({addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,i){e.items[t].setAttribute(n,i)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){return e.menuSurface_.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){return e.emit(sK.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(t){return e.items[t].focus()},focusListRoot:function(){return e.root.querySelector(sK.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!rP(e.items[t],"."+sY.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=rP(e.items[t],"."+sY.MENU_SELECTION_GROUP).querySelector("."+sY.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}})},t}(rN),sZ={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},s0={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},s1={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},s2=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=s1.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sZ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return -1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return -1}}},enumerable:!0,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===s1.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==s1.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(sZ.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(sZ.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(sZ.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(sZ.FOCUSED),n=e||t,i=this.adapter.hasClass(sZ.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(e>=0?e:0)}},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(sZ.ACTIVATED),this.isMenuOpen=!1,this.adapter.setSelectAnchorAttr("aria-expanded","false"),this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(sZ.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){if(!this.disabled&&!this.recentlyClicked){if(this.setClickDebounceTimeout(),this.isMenuOpen)return void this.adapter.closeMenu();this.adapter.setRippleCenter(e),this.openMenu()}},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(sZ.FOCUSED)){var t=s$(e)===s_,n=s$(e)===sw,i=s$(e)===sC,o=s$(e)===sS;if(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress()){var r=n?" ":e.key,a=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());a>=0&&this.setSelectedIndex(a),e.preventDefault();return}(t||n||i||o)&&(i&&this.getSelectedIndex()>0?this.setSelectedIndex(this.getSelectedIndex()-1):o&&this.getSelectedIndex()<this.adapter.getMenuItemCount()-1&&this.setSelectedIndex(this.getSelectedIndex()+1),this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(sZ.FOCUSED);if(e){var n=s1.LABEL_SCALE,i=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(i)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(sZ.INVALID),this.adapter.removeMenuClass(sZ.MENU_INVALID)):(this.adapter.addClass(sZ.INVALID),this.adapter.addMenuClass(sZ.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(sZ.REQUIRED)&&!this.adapter.hasClass(sZ.DISABLED)?this.getSelectedIndex()!==s1.UNSET_INDEX&&(0!==this.getSelectedIndex()||!!this.getValue()):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(sZ.REQUIRED):this.adapter.removeClass(sZ.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(g7.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(sZ.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(sZ.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(sZ.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(s0.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(s0.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},s1.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(rM),s5={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},s4={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},s3=function(e){function t(n){return e.call(this,sa(sa({},t.defaultAdapter),n))||this}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(s5.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t){this.showToScreenReader(),e?this.adapter.removeAttr(s5.ROLE):this.adapter.setAttr(s5.ROLE,"alert");return}this.adapter.removeAttr(s5.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(s5.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(s5.ARIA_HIDDEN,"true")},t}(rM),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),s8={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},s7=["click","keydown"],s9=function(e){function t(n){var i=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return sr(t,e),Object.defineProperty(t,"strings",{get:function(){return s8},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),s7.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;s7.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",s8.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(rM),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s9({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(s9.strings.ICON_EVENT,{},!0)}})},t}(rN),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r){if(void 0===e&&(e=function(e){return new rG(e)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new r6(e)}),void 0===i&&(i=function(e){return new sQ(e)}),void 0===o&&(o=function(e){return new le(e)}),void 0===r&&(r=function(e){return new s6(e)}),this.selectAnchor=this.root.querySelector(s0.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(s0.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(s0.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw Error("MDCSelect: Missing required element: The following selector must be present: '"+s0.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(s0.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(s0.ARIA_CONTROLS));a&&(this.helperText=r(a))}this.menuSetup(i);var s=this.root.querySelector(s0.LABEL_SELECTOR);this.label=s?e(s):null;var l=this.root.querySelector(s0.LINE_RIPPLE_SELECTOR);this.lineRipple=l?t(l):null;var c=this.root.querySelector(s0.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(s0.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=o(d)),this.root.classList.contains(sZ.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(sK.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value){this.foundation.setValue(this.hiddenInput.value,!0),this.foundation.layout();return}this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(sK.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!0,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){return new s2(sa(sa(sa(sa({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods()),this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(s0.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=sa(sa({},as.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new as(this.selectAnchor,new aa(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(s0.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){var n=e.selectedIndex;e.emit(s0.CHANGE_EVENT,{value:t,index:n},!0),e.hiddenInput&&(e.hiddenInput.value=t)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return!!e.outline},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return!!e.touches},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(rN),ln=function(e,t){return(ln=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function li(e,t){function n(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lo=function(){return(lo=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lr={ROOT:"mdc-form-field"},la={LABEL_SELECTOR:".mdc-form-field > label"},ls=function(e){function t(n){var i=e.call(this,lo(lo({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return li(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lr},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return la},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(rM),ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=ls.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new ls({activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(t,n){var i=e.labelEl();i&&i.removeEventListener(t,n)},registerInteractionHandler:function(t,n){var i=e.labelEl();i&&i.addEventListener(t,n)}})},t}(rN),lc=function(e,t){return(lc=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ld(e,t){function n(){this.constructor=e}lc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lu=function(){return(lu=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lm={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},lf={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},lh=function(e){function t(n){var i=e.call(this,lu(lu({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return ld(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lm},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lf},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(lf.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(lf.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(lf.ARIA_PRESSED))throw Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(lf.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(lm.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(lm.ICON_BUTTON_ON):this.adapter.removeClass(lm.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(lf.DATA_ARIA_LABEL_ON):this.adapter.getAttr(lf.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(lf.ARIA_LABEL,t||"")}else this.adapter.setAttr(lf.ARIA_PRESSED,""+e)},t}(rM),lp=lh.strings,lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return ld(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new lh({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(lp.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple=function(){var e=new as(this.root);return e.unbounded=!0,e},t}(rN);n(4532),(bJ=vt||(vt={})).CREATE="CREATE",bJ.UPDATE="UPDATE",bJ.DELETE="DELETE",(bQ=vn||(vn={})).LOW="LOW",bQ.MEDIUM="MEDIUM",bQ.HIGH="HIGH",(bZ=vi||(vi={})).MANUAL="MANUAL",bZ.CLIENT="CLIENT",bZ.GLOBAL_RULESET="GLOBAL_RULESET",bZ.REALM_RULESET="REALM_RULESET",bZ.ASSET_RULESET="ASSET_RULESET",bZ.AGENT="AGENT",(b0=vo||(vo={})).OPEN="OPEN",b0.ACKNOWLEDGED="ACKNOWLEDGED",b0.IN_PROGRESS="IN_PROGRESS",b0.RESOLVED="RESOLVED",b0.CLOSED="CLOSED",(b1=vr||(vr={})).BOTTOM_LEFT="BOTTOM_LEFT",b1.BOTTOM_RIGHT="BOTTOM_RIGHT",b1.TOP_LEFT="TOP_LEFT",b1.TOP_RIGHT="TOP_RIGHT",(b2=va||(va={})).CREATE="CREATE",b2.READ="READ",b2.UPDATE="UPDATE",b2.DELETE="DELETE",(b5=vs||(vs={})).NONE="NONE",b5.FORECAST="FORECAST",b5.SETPOINT="SETPOINT",(b4=vl||(vl={})).DISCONNECTED="DISCONNECTED",b4.CONNECTING="CONNECTING",b4.DISCONNECTING="DISCONNECTING",b4.CONNECTED="CONNECTED",b4.DISABLED="DISABLED",b4.WAITING="WAITING",b4.ERROR="ERROR",b4.STOPPED="STOPPED",(b3=vc||(vc={})).REQUEST_START="REQUEST_START",b3.REQUEST_REPEATING="REQUEST_REPEATING",b3.REQUEST_CANCEL="REQUEST_CANCEL",b3.READY="READY",b3.COMPLETED="COMPLETED",b3.RUNNING="RUNNING",b3.CANCELLED="CANCELLED",(b6=vd||(vd={})).TOGGLE="TOGGLE",b6.INCREMENT="INCREMENT",b6.DECREMENT="DECREMENT",b6.NEGATE="NEGATE",(b8=vu||(vu={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",b8.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",b8.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",b8.INVALID_VALUE="INVALID_VALUE",b8.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",b8.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",b8.CANNOT_PROCESS="CANNOT_PROCESS",b8.QUEUE_FULL="QUEUE_FULL",b8.UNKNOWN="UNKNOWN",b8.ASSET_ID_MISSING="ASSET_ID_MISSING",b8.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(b7=vm||(vm={})).PUBLIC="PUBLIC",b7.SHARED="SHARED",b7.PRIVATE="PRIVATE",(b9=vf||(vf={})).OFF="OFF",b9.ONE_MIN="ONE_MIN",b9.FIVE_MIN="FIVE_MIN",b9.QUARTER="QUARTER",b9.ONE_HOUR="ONE_HOUR",(ge=vh||(vh={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",ge.KEEP_LAYOUT="KEEP_LAYOUT",ge.REDIRECT="REDIRECT",ge.BLOCK_DEVICE="BLOCK_DEVICE",(gt=vp||(vp={})).CSV="CSV",gt.CSV_CROSSTAB="CSV_CROSSTAB",gt.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(gn=vb||(vb={})).MINUTE="MINUTE",gn.HOUR="HOUR",gn.DAY="DAY",gn.WEEK="WEEK",gn.MONTH="MONTH",gn.YEAR="YEAR",(gi=vg||(vg={})).MIN="MIN",gi.AVG="AVG",gi.MAX="MAX",gi.DIFFERENCE="DIFFERENCE",gi.COUNT="COUNT",gi.SUM="SUM",gi.MODE="MODE",gi.MEDIAN="MEDIAN",(go=vv||(vv={})).TERMINATING="TERMINATING",go.DISABLED="DISABLED",go.ALREADY_CONNECTED="ALREADY_CONNECTED",go.UNRECOGNISED="UNRECOGNISED",go.PERMANENT_ERROR="PERMANENT_ERROR",go.SYNC_ERROR="SYNC_ERROR",(gr=vy||(vy={})).HTTPS="HTTPS",gr.HTTP="HTTP",gr.TCP="TCP",(ga=v_||(v_={})).GET="GET",ga.POST="POST",ga.PUT="PUT",ga.DELETE="DELETE",ga.OPTIONS="OPTIONS",ga.PATCH="PATCH",(gs=vw||(vw={})).KEYCLOAK="KEYCLOAK",gs.NONE="NONE",(gl=vF||(vF={})).WEBSOCKET="WEBSOCKET",gl.POLLING="POLLING",(gc=vx||(vx={})).INTERNAL="INTERNAL",gc.CLIENT="CLIENT",gc.GLOBAL_RULESET="GLOBAL_RULESET",gc.REALM_RULESET="REALM_RULESET",gc.ASSET_RULESET="ASSET_RULESET",(gd=vk||(vk={})).REALM="REALM",gd.USER="USER",gd.ASSET="ASSET",gd.CUSTOM="CUSTOM",(gu=vE||(vE={})).NORMAL="NORMAL",gu.HIGH="HIGH",(gm=vC||(vC={})).DEVICE="DEVICE",gm.TOPIC="TOPIC",gm.CONDITION="CONDITION",(gf=vA||(vA={})).ALWAYS="ALWAYS",gf.ONCE="ONCE",gf.HOURLY="HOURLY",gf.DAILY="DAILY",gf.WEEKLY="WEEKLY",gf.MONTHLY="MONTHLY",gf.ANNUALLY="ANNUALLY",(gh=vS||(vS={})).TITLE="TITLE",gh.SOURCE="SOURCE",gh.STATUS="STATUS",gh.SENT_ON="SENT_ON",gh.DELIVERED_ON="DELIVERED_ON",(gp=vT||(vT={})).MESSAGE_INVALID="MESSAGE_INVALID",gp.CERTIFICATE_INVALID="CERTIFICATE_INVALID",gp.UNAUTHORIZED="UNAUTHORIZED",gp.FORBIDDEN="FORBIDDEN",gp.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",gp.CONFIG_DISABLED="CONFIG_DISABLED",gp.USER_DISABLED="USER_DISABLED",gp.SERVER_ERROR="SERVER_ERROR",gp.ASSET_ERROR="ASSET_ERROR",gp.SERVER_BUSY="SERVER_BUSY",(gb=vI||(vI={})).PRIVATE="PRIVATE",gb.PROTECTED="PROTECTED",gb.PUBLIC="PUBLIC",(gg=vO||(vO={})).EXACT="EXACT",gg.BEGIN="BEGIN",gg.END="END",gg.CONTAINS="CONTAINS",(gv=vR||(vR={})).EQUALS="EQUALS",gv.GREATER_THAN="GREATER_THAN",gv.GREATER_EQUALS="GREATER_EQUALS",gv.LESS_THAN="LESS_THAN",gv.LESS_EQUALS="LESS_EQUALS",gv.BETWEEN="BETWEEN",(gy=vD||(vD={})).CREATED_ON="CREATED_ON",gy.NAME="NAME",gy.ASSET_TYPE="ASSET_TYPE",gy.PARENT_ID="PARENT_ID",gy.REALM="REALM",(g_=v$||(v$={})).RESTRICTED="RESTRICTED",g_.LINKED="LINKED",g_.REALM="REALM",(gw=vL||(vL={})).AT_LEAST_ONE="AT_LEAST_ONE",gw.ALL="ALL",gw.NONE="NONE",(gF=vM||(vM={})).AND="AND",gF.OR="OR",(gx=vN||(vN={})).CREATED_ON="CREATED_ON",gx.FIRST_NAME="FIRST_NAME",gx.LAST_NAME="LAST_NAME",gx.USERNAME="USERNAME",gx.EMAIL="EMAIL",(gk=vB||(vB={})).STOPPED="STOPPED",gk.RUNNING="RUNNING",gk.ERROR="ERROR",(gE=vP||(vP={})).JAVASCRIPT="JAVASCRIPT",gE.GROOVY="GROOVY",gE.JSON="JSON",gE.FLOW="FLOW",(gC=vj||(vj={})).READY="READY",gC.DEPLOYED="DEPLOYED",gC.COMPILATION_ERROR="COMPILATION_ERROR",gC.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",gC.EXECUTION_ERROR="EXECUTION_ERROR",gC.LOOP_ERROR="LOOP_ERROR",gC.DISABLED="DISABLED",gC.PAUSED="PAUSED",gC.EXPIRED="EXPIRED",gC.REMOVED="REMOVED",gC.EMPTY="EMPTY",(gA=vz||(vz={})).SUNRISE="SUNRISE",gA.SUNSET="SUNSET",gA.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",gA.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",gA.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",gA.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",gA.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",gA.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",gA.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",gA.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",gA.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",gA.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",gA.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",gA.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",gA.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",gA.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",gA.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",gA.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",gA.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",gA.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(gS=vU||(vU={})).NUMBER="NUMBER",gS.NUMBER_ARRAY="NUMBER_ARRAY",gS.STRING="STRING",gS.BOOLEAN="BOOLEAN",gS.TRIGGER="TRIGGER",gS.COLOR="COLOR",gS.ANY="ANY",(gT=vH||(vH={})).NEW_LINE="NEW_LINE",gT.SPACER="SPACER",(gI=vV||(vV={})).INPUT="INPUT",gI.PROCESSOR="PROCESSOR",gI.OUTPUT="OUTPUT",gI.THEN="THEN",(gO=vW||(vW={})).TEXT="TEXT",gO.MULTILINE="MULTILINE",gO.NUMBER="NUMBER",gO.DROPDOWN="DROPDOWN",gO.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",gO.CHECKBOX="CHECKBOX",gO.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",gO.COLOR="COLOR",gO.DATE="DATE",(gR=vG||(vG={})).ADD="ADD",gR.ADD_OR_REPLACE="ADD_OR_REPLACE",gR.REPLACE="REPLACE",gR.DELETE="DELETE",gR.CLEAR="CLEAR",(gD=vq||(vq={})).PER_ASSET="PER_ASSET",gD.GLOBAL="GLOBAL",(g$=vY||(vY={})).READ_ADMIN="read:admin",g$.READ_LOGS="read:logs",g$.READ_USERS="read:users",g$.READ_MAP="read:map",g$.READ_ASSETS="read:assets",g$.READ_RULES="read:rules",g$.READ_INSIGHTS="read:insights",g$.READ_ALARMS="read:alarms",g$.READ_NOTIFICATIONS="read:notifications",g$.READ_SERVICES="read:services",g$.WRITE_SERVICES="write:services",g$.WRITE_USER="write:user",g$.WRITE_ADMIN="write:admin",g$.WRITE_LOGS="write:logs",g$.WRITE_ASSETS="write:assets",g$.WRITE_ATTRIBUTES="write:attributes",g$.WRITE_RULES="write:rules",g$.WRITE_INSIGHTS="write:insights",g$.WRITE_ALARMS="write:alarms",g$.WRITE_NOTIFICATIONS="write:notifications",g$.READ="read",g$.WRITE="write",(gL=vK||(vK={})).REGISTER="REGISTER",gL.UPDATE="UPDATE",gL.DEREGISTER="DEREGISTER",(gM=vX||(vX={})).AVAILABLE="AVAILABLE",gM.UNAVAILABLE="UNAVAILABLE",(gN=vJ||(vJ={})).ASSET="ASSET",gN.AGENT="AGENT",gN.NOTIFICATION="NOTIFICATION",gN.ALARM="ALARM",gN.RULES="RULES",gN.PROTOCOL="PROTOCOL",gN.GATEWAY="GATEWAY",gN.MODEL_AND_VALUES="MODEL_AND_VALUES",gN.API="API",gN.DATA="DATA",(gB=vQ||(vQ={})).INFO="INFO",gB.WARN="WARN",gB.ERROR="ERROR",(gP=vZ||(vZ={})).NUMERIC="numeric",gP.DIGIT_2="2-digit",gP.FULL="full",gP.LONG="long",gP.MEDIUM="medium",gP.SHORT="short",gP.NARROW="narrow",(gj=v0||(v0={})).SECONDLY="SECONDLY",gj.MINUTELY="MINUTELY",gj.HOURLY="HOURLY",gj.DAILY="DAILY",gj.WEEKLY="WEEKLY",gj.MONTHLY="MONTHLY",gj.YEARLY="YEARLY",(gz=v1||(v1={})).OMIT="OMIT",gz.BACKWARD="BACKWARD",gz.FORWARD="FORWARD",(gU=v2||(v2={})).JAPANESE="JAPANESE",gU.BUDDHIST="BUDDHIST",gU.ROC="ROC",gU.ISLAMIC="ISLAMIC",gU.ISO8601="ISO8601",gU.CHINESE="CHINESE",gU.ETHIOPIC="ETHIOPIC",gU.HEBREW="HEBREW",gU.GREGORIAN="GREGORIAN",(gH=v5||(v5={})).SU="SU",gH.MO="MO",gH.TU="TU",gH.WE="WE",gH.TH="TH",gH.FR="FR",gH.SA="SA",(gV=v4||(v4={})).PEOPLECOUNTERASSET="PeopleCounterAsset",gV.MAILAGENT="MailAgent",gV.UDPAGENT="UDPAgent",gV.ROOMASSET="RoomAsset",gV.CITYASSET="CityAsset",gV.VENTILATIONASSET="VentilationAsset",gV.TRADFRILIGHTASSET="TradfriLightAsset",gV.CONSOLEASSET="ConsoleAsset",gV.PRESENCESENSORASSET="PresenceSensorAsset",gV.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",gV.LIGHTASSET="LightAsset",gV.KNXAGENT="KNXAgent",gV.THETHINGSSTACKAGENT="TheThingsStackAgent",gV.PLUGASSET="PlugAsset",gV.CHIRPSTACKAGENT="ChirpStackAgent",gV.WEATHERASSET="WeatherAsset",gV.THINGASSET="ThingAsset",gV.WEBSOCKETAGENT="WebsocketAgent",gV.TCPAGENT="TCPAgent",gV.GATEWAYASSET="GatewayAsset",gV.SERIALAGENT="SerialAgent",gV.BLUETOOTHMESHAGENT="BluetoothMeshAgent",gV.PARKINGASSET="ParkingAsset",gV.TRADFRIPLUGASSET="TradfriPlugAsset",gV.SIMULATORAGENT="SimulatorAgent",gV.SNMPAGENT="SNMPAgent",gV.GROUPASSET="GroupAsset",gV.BUILDINGASSET="BuildingAsset",gV.MODBUSSERIALAGENT="ModbusSerialAgent",gV.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",gV.MQTTAGENT="MQTTAgent",gV.VELBUSTCPAGENT="VelbusTCPAgent",gV.ARTNETLIGHTASSET="ArtnetLightAsset",gV.VELBUSSERIALAGENT="VelbusSerialAgent",gV.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",gV.MICROPHONEASSET="MicrophoneAsset",gV.MODBUSTCPAGENT="ModbusTcpAgent",gV.ZWAVEAGENT="ZWaveAgent",gV.HTTPAGENT="HTTPAgent",gV.DOORASSET="DoorAsset",gV.THERMOSTATASSET="ThermostatAsset",gV.SHIPASSET="ShipAsset",(gW=v3||(v3={})).COLOURRGB="colourRGB",gW.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",gW.PRICEHOURLY="priceHourly",gW.MQTTPORT="MQTTPort",gW.PINGDISABLED="pingDisabled",gW.FLOW="flow",gW.CHILDASSETTYPE="childAssetType",gW.LASTACCESS="lastAccess",gW.POSITION="position",gW.NETWORKKEY="networkKey",gW.UNIVERSE="universe",gW.ROUTINGMODE="routingMode",gW.MSSINUMBER="MSSINumber",gW.LASTWILLRETAIN="lastWillRetain",gW.LASTWILLTOPIC="lastWillTopic",gW.SERIALBAUDRATE="serialBaudrate",gW.SUBSCRIBEQOS="subscribeQos",gW.LEDCOUNT="lEDCount",gW.LOCKED="locked",gW.CLOUDCOVERAGE="cloudCoverage",gW.BASEURL="baseURL",gW.PROTOCOL="protocol",gW.REQUIREDVALUES="requiredValues",gW.REGION="region",gW.CONSOLEPLATFORM="consolePlatform",gW.GATEWAYSTATUS="gatewayStatus",gW.NO2LEVEL="NO2Level",gW.ATMOSPHERICPRESSURE="atmosphericPressure",gW.SERIALPORT="serialPort",gW.APPLICATIONID="applicationId",gW.TAGS="tags",gW.UNLOCK="unlock",gW.CHECKINTERVALSECONDS="checkIntervalSeconds",gW.LOCATION="location",gW.CLIENTSECRET="clientSecret",gW.WINDDIRECTION="windDirection",gW.WINDSPEED="windSpeed",gW.PARTICLESPM10="particlesPM10",gW.APPLICATIONKEY="applicationKey",gW.LENGTH="length",gW.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",gW.USERNAMEPASSWORD="usernamePassword",gW.WATERLEVEL="waterLevel",gW.CONNECTHEADERS="connectHeaders",gW.CONSOLENAME="consoleName",gW.WEBSOCKETQUERY="websocketQuery",gW.PREFERHTML="preferHTML",gW.PARITY="parity",gW.COOLING="cooling",gW.POLLINGMILLIS="pollingMillis",gW.SOILTEMPERATURE="soilTemperature",gW.SUNIRRADIANCE="sunIrradiance",gW.MESSAGEMAXLENGTH="messageMaxLength",gW.WINDGUSTSPEED="windGustSpeed",gW.LIGHTID="lightId",gW.PROXYADDRESS="proxyAddress",gW.REQUESTQUERYPARAMETERS="requestQueryParameters",gW.MQTTHOST="MQTTHost",gW.SECUREGRPC="secureGRPC",gW.MODEL="model",gW.STREET="street",gW.MANUFACTURER="manufacturer",gW.DELETEPROCESSEDMAIL="deleteProcessedMail",gW.RESUMESESSION="resumeSession",gW.ONOFF="onOff",gW.APIKEY="ApiKey",gW.CITY="city",gW.PRESENCE="presence",gW.SPACESOCCUPIED="spacesOccupied",gW.STARTTLS="startTLS",gW.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",gW.WEBSOCKETPATH="websocketPath",gW.AGENTSTATUS="agentStatus",gW.PRICEDAILY="priceDaily",gW.COUNTGROWTHMINUTE="countGrowthMinute",gW.IMONUMBER="IMONumber",gW.ATTRIBUTION="Attribution",gW.TENANTID="tenantId",gW.REQUESTHEADERS="requestHeaders",gW.HOST="host",gW.COUNTOUTMINUTE="countOutMinute",gW.MESSAGECHARSET="messageCharset",gW.CERTIFICATEALIAS="certificateAlias",gW.EMAIL="email",gW.BINDPORT="bindPort",gW.CONSOLEVERSION="consoleVersion",gW.PARTICLESPM1="particlesPM1",gW.MTU="mtu",gW.SPEED="speed",gW.MESSAGESTRIPDELIMITER="messageStripDelimiter",gW.AREA="area",gW.COUNTRY="country",gW.SHIPTYPE="shipType",gW.CONNECTSUBSCRIPTIONS="connectSubscriptions",gW.RELATIVEHUMIDITY="relativeHumidity",gW.SOURCEADDRESS="sourceAddress",gW.RAINFALL="rainfall",gW.OAUTHGRANT="oAuthGrant",gW.OZONELEVEL="ozoneLevel",gW.SEQUENCENUMBER="sequenceNumber",gW.COUNTINMINUTE="countInMinute",gW.PORT="port",gW.SUNALTITUDE="sunAltitude",gW.COUNTOUT="countOut",gW.ROOMNUMBER="roomNumber",gW.TUNNELINGSUPPORTED="tunnelingSupported",gW.ENINUMBER="ENINumber",gW.PARTICLESPM2_5="particlesPM2_5",gW.AGENTDISABLED="agentDisabled",gW.DISABLED="disabled",gW.COUNTIN="countIn",gW.MESSAGESOURCEADDRESS="messageSourceAddress",gW.PROVISIONWEATHERASSET="ProvisionWeatherAsset",gW.TIMEINJECTIONINTERVAL="timeInjectionInterval",gW.TEMPERATURESETPOINT="temperatureSetpoint",gW.CONSOLEPROVIDERS="consoleProviders",gW.COUNTTOTAL="countTotal",gW.SPACESBUFFER="spacesBuffer",gW.DEVICECONFIG="deviceConfig",gW.SPACESTOTAL="spacesTotal",gW.BINDHOST="bindHost",gW.FANSPEED="fanSpeed",gW.MESSAGECONVERTBINARY="messageConvertBinary",gW.NOTES="notes",gW.MAILFOLDERNAME="mailFolderName",gW.MESSAGEDELIMITERS="messageDelimiters",gW.TEMPERATURE="temperature",gW.SUNZENITH="sunZenith",gW.SNMPVERSIONVALUE="SNMPVersionValue",gW.BRIGHTNESS="brightness",gW.POSTALCODE="postalCode",gW.SPACESOPEN="spacesOpen",gW.HUMIDITY="humidity",gW.SOUNDLEVEL="soundLevel",gW.SECUREMODE="secureMode",gW.DIRECTION="direction",gW.STOPBITS="stopbits",gW.UVINDEX="uVIndex",gW.CONNECTURL="connectURL",gW.CLIENTID="clientId",gW.NATMODE="NATMode",gW.UPDATEONWRITE="updateOnWrite",gW.LASTWILLPAYLOAD="lastWillPayload",gW.GROUPID="groupId",gW.FOLLOWREDIRECTS="followRedirects",gW.SUNAZIMUTH="sunAzimuth",gW.MESSAGECONVERTHEX="messageConvertHex",gW.WEBSOCKETMODE="websocketMode",gW.COLOURTEMPERATURE="colourTemperature",gW.PUBLISHQOS="publishQos",gW.DATABITS="dataBits",(gG=v6||(v6={})).FORMAT="format",gG.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",gG.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",gG.SECRET="secret",gG.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",gG.ATTRIBUTELINKS="attributeLinks",gG.RULERESETIMMEDIATE="ruleResetImmediate",gG.RULESTATE="ruleState",gG.AGENTLINKCONFIG="agentLinkConfig",gG.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",gG.FORECAST="forecast",gG.STOREDATAPOINTS="storeDataPoints",gG.LABEL="label",gG.CONSTRAINTS="constraints",gG.UNITS="units",gG.USERCONNECTED="userConnected",gG.SHOWONDASHBOARD="showOnDashboard",gG.READONLY="readOnly",gG.MULTILINE="multiline",gG.ACCESSPUBLICWRITE="accessPublicWrite",gG.MOMENTARY="momentary",gG.AGENTLINK="agentLink",gG.ACCESSRESTRICTEDREAD="accessRestrictedRead",gG.ACCESSPUBLICREAD="accessPublicRead",(gq=v8||(v8={})).ASSETQUERY="assetQuery",gq.WSURL="WS_URL",gq.COLOURRGB="colourRGB",gq.VALUEFORMAT="valueFormat",gq.TEXT="text",gq.BYTE="byte",gq.USERNAMEANDPASSWORD="usernameAndPassword",gq.HTTPURL="HTTP_URL",gq.ATTRIBUTELINK="attributeLink",gq.ASSETID="assetID",gq.NUMBERMAP="numberMap",gq.HTTPMETHOD="HTTPMethod",gq.ATTRIBUTESTATE="attributeState",gq.POSITIVENUMBER="positiveNumber",gq.POSITIVEINTEGER="positiveInteger",gq.EXECUTIONSTATUS="executionStatus",gq.BIGINTEGER="bigInteger",gq.VALUEDESCRIPTOR="valueDescriptor",gq.PERIODDURATIONISO8601="periodDurationISO8601",gq.LONG="long",gq.DATEANDTIME="dateAndTime",gq.BOOLEANMAP="booleanMap",gq.MQTTQOS="MQTTQos",gq.NEGATIVEINTEGER="negativeInteger",gq.TCPIPPORTNUMBER="TCP_IPPortNumber",gq.GEOJSONPOINT="GEO_JSONPoint",gq.SNMPVERSION="SNMPVersion",gq.ASSETTYPE="assetType",gq.JSONOBJECT="JSONObject",gq.INTEGERMAP="integerMap",gq.BIGNUMBER="bigNumber",gq.IPADDRESS="IPAddress",gq.EMAIL="email",gq.TIMESTAMP="timestamp",gq.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",gq.ATTRIBUTEREFERENCE="attributeReference",gq.UUID="UUID",gq.INTEGER="integer",gq.OAUTHGRANT="oAuthGrant",gq.NUMBER="number",gq.DEVICECONFIGMAP="DeviceConfigMap",gq.TEXTMAP="textMap",gq.WEBSOCKETSUBSCRIPTION="websocketSubscription",gq.BOOLEAN="boolean",gq.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",gq.FORECASTCONFIGURATION="forecastConfiguration",gq.TIMEDURATIONISO8601="timeDurationISO8601",gq.TIMESTAMPISO8601="timestampISO8601",gq.CONSOLEPROVIDERS="consoleProviders",gq.MULTIVALUEDTEXTMAP="multivaluedTextMap",gq.NEGATIVENUMBER="negativeNumber",gq.PARITYBIT="Paritybit",gq.JSON="JSON",gq.CRONEXPRESSION="CRONExpression",gq.INTEGERBYTE="integerByte",gq.AGENTLINK="agentLink",gq.DIRECTION="direction",gq.HOSTORIPADDRESS="hostOrIPAddress",gq.STOPBITS="Stopbits",gq.CALENDAREVENT="calendarEvent",gq.CONNECTIONSTATUS="connectionStatus",gq.VALUECONSTRAINT="valueConstraint",(gY=v7||(v7={})).MONTH="month",gY.MILE_SCANDINAVIAN="mile_scandinavian",gY.VAR="var",gY.OUNCE="ounce",gY.HECTARE="hectare",gY.YARD="yard",gY.YEAR="year",gY.GIGA="giga",gY.JOULE="joule",gY.VOLT="volt",gY.HERTZ="hertz",gY.MILE="mile",gY.DEGREE="degree",gY.KILO="kilo",gY.BTU="btu",gY.TERA="tera",gY.FOOT="foot",gY.MEGA="mega",gY.KELVIN="kelvin",gY.CARBON="carbon",gY.DECIBEL_ATTENUATED="decibel_attenuated",gY.INCH="inch",gY.SQUARED="squared",gY.PERCENTAGE="percentage",gY.IN_HG="inch_mercury",gY.CENTI="centi",gY.GRAM="gram",gY.CUBED="cubed",gY.DAY="day",gY.RADIAN="radian",gY.OHM="ohm",gY.MINUTE="minute",gY.PART_PER_MILLION="ppm",gY.AMP="amp",gY.MASS_POUND="pound",gY.KNOT="knot",gY.METRE="metre",gY.LITRE="litre",gY.FLUID_OUNCE="fluid_ounce",gY.HOUR="hour",gY.ACRE="acre",gY.CELSIUS="celsius",gY.RPM="rpm",gY.PASCAL="pascal",gY.DECIBEL="decibel",gY.LUMEN="lumen",gY.WEEK="week",gY.FAHRENHEIT="fahrenheit",gY.WATT="watt",gY.GALLON="gallon",gY.LUX="lux",gY.MILLI="milli",gY.BAR="bar",gY.HECTO="hecto",gY.PEAK="peak",gY.SECOND="second",gY.MICRO="micro",gY.PER="per",gY.STONE="stone",v9||(v9={});class lg{static getAssetDescriptors(){return lg._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=lg.getValueDescriptor(t)),n=t.jsonType?t:lg.getValueDescriptor(t.type)),!n&&e&&(n=lg.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let i=this.resolveValueTypeFromValue(n);if(!i)return;for(;t>0;)i+="[]",t--;return i}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let i,o;if(t&&"string"!=typeof t)i=t;else{let o=this.getAssetTypeInfo(e||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof t&&(i=this.getAttributeDescriptor(t,o)),!i&&n&&(i={type:n.type,name:n.name,meta:n.meta})}return i&&(o=this.getValueDescriptor(i.type)),[i,o]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}function lv(e){return(lv="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})(e)}function ly(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function l_(e){var t=function(e,t){if("object"!=lv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=lv(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lv(t)?t:t+""}function lw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,l_(i.key),i)}}function lF(e,t,n){return t&&lw(e.prototype,t),n&&lw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lx(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lk(e,t){return(lk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lE(e,t){if("function"!=typeof t&&null!==t)throw 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&&lk(e,t)}function lC(e,t){if(t&&("object"==lv(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return lx(e)}function lA(e){return(lA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lS(e,t,n){return(t=l_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function lI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lI(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}lg._assetTypeInfos=[],lg._metaItemDescriptors=[],lg._valueDescriptors=[];var lR={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},lD=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ly(this,e),this.init(t,n)}return lF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||lR,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lO(lO({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),l$=function(){function e(){ly(this,e),this.observers={}}return lF(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function lL(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function lM(e){return null==e?"":""+e}function lN(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var r="string"!=typeof t?[].concat(t):t.split(".");r.length>1;){if(o())return{};var a=i(r.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:i(r.shift())}}function lB(e,t,n){var i=lN(e,t,Object);i.obj[i.k]=n}function lP(e,t){var n=lN(e,t),i=n.obj,o=n.k;if(i)return i[o]}function lj(e,t,n){var i=lP(e,n);return void 0!==i?i:lP(t,n)}function lz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var lU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function lH(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return lU[e]}):e}var lV="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,lW=[" ",",","?","!",";"];function lG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lG(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lY=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ly(this,i),t=n.call(this),lV&&l$.call(lx(t)),t.data=e||{},t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return lF(i,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,r=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=lP(this.data,a);return s||!r||"string"!=typeof n?s:function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var o=n.split(i),r=t,a=0;a<o.length;++a){if(!r||"string"==typeof r[o[a]]&&a+1<o.length)return;if(void 0===r[o[a]]){for(var s=2,l=o.slice(a,a+s).join(i),c=r[l];void 0===c&&o.length>a+s;)s++,c=r[l=o.slice(a,a+s).join(i)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(l)){if("string"==typeof c)return c;if(l&&"string"==typeof c[l])return c[l]}var d=o.slice(a+s).join(i);if(d)return e(c,d,i);return}r=r[o[a]]}return r}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),lB(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)("string"==typeof n[o]||"[object Array]"===Object.prototype.toString.apply(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);var s=lP(this.data,a)||{};i?function e(t,n,i){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?i&&(t[o]=n[o]):e(t[o],n[o],i):t[o]=n[o]);return t}(s,n,o):s=lq(lq({},s),n),lB(this.data,a,s),r.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?lq(lq({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),i}(l$),lK={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,o){var r=this;return e.forEach(function(e){r.processors[e]&&(t=r.processors[e].process(t,n,i,o))}),t}};function lX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lX(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lQ={},lZ=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(e){var t,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ly(this,i),r=n.call(this),lV&&l$.call(lx(r)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=lx(r),t.forEach(function(t){e[t]&&(o[t]=e[t])}),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=lD.create("translator"),r}return lF(i,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var i=lW.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===i.length)return!0;var o=new RegExp("(".concat(i.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),r=!o.test(e);if(!r){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(r=!0)}return r}(e,n,i);if(r&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(i)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==lv(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,d=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(m){var f=t.nsSeparator||this.options.nsSeparator;return r?(h.res="".concat(d).concat(f).concat(l),h):"".concat(d).concat(f).concat(l)}return r?(h.res=l,h):l}var h=this.resolve(e,t),p=h&&h.res,b=h&&h.usedKey||l,g=h&&h.exactUsedKey||l,v=Object.prototype.toString.apply(p),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(_&&p&&w&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&("string"!=typeof y||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,p,lJ(lJ({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return r?(h.res=F,h):F}if(a){var x="[object Array]"===v,k=x?[]:{},E=x?g:b;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var A="".concat(E).concat(a).concat(C);k[C]=this.translate(A,lJ(lJ({},t),{joinArrays:!1,ns:c})),k[C]===A&&(k[C]=p[C])}p=k}}else if(_&&"string"==typeof y&&"[object Array]"===v)(p=p.join(y))&&(p=this.extendTranslation(p,e,t,n));else{var S=!1,T=!1,I=void 0!==t.count&&"string"!=typeof t.count,O=i.hasDefaultValue(t),R=I?this.pluralResolver.getSuffix(u,t.count,t):"",D=t["defaultValue".concat(R)]||t.defaultValue;!this.isValidLookup(p)&&O&&(S=!0,p=D),this.isValidLookup(p)||(T=!0,p=l);var $=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:p,L=O&&D!==p&&this.options.updateMissing;if(T||S||L){if(this.logger.log(L?"updateKey":"missingKey",u,d,l,L?D:p),a){var M=this.resolve(l,lJ(lJ({},t),{},{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var P=0;P<B.length;P++)N.push(B[P]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(t.lng||this.language):N.push(t.lng||this.language);var j=function(e,n,i){var r=O&&i!==p?i:$;o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,n,r,L,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,n,r,L,t),o.emit("missingKey",e,d,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?N.forEach(function(e){o.pluralResolver.getSuffixes(e,t).forEach(function(n){j([e],l+n,t["defaultValue".concat(n)]||D)})}):j(N,l,D))}p=this.extendTranslation(p,e,t,h,n),T&&p===l&&this.options.appendNamespaceToMissingKey&&(p="".concat(d,":").concat(l)),(T||S)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(l):l,S?p:void 0):this.options.parseMissingKeyHandler(p))}return r?(h.res=p,h):p}},{key:"extendTranslation",value:function(e,t,n,i,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,lJ(lJ({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(lJ(lJ({},n),{interpolation:lJ(lJ({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=lJ(lJ({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];return o&&o[0]===i[0]&&!n.context?(r.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):r.translate.apply(r,i.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var u=n.postProcess||this.options.postProcess,m="string"==typeof u?[u]:u;return null!=e&&m&&m.length&&!1!==n.applyPostProcessor&&(e=lK.handle(m,e,t,this.options&&this.options.postProcessPassResolved?lJ({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,o,r,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var d=l.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,m=u&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(r=e,!lQ["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(r)&&(lQ["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!a.isValidLookup(t)){o=n;var r,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,n,e,s);else{u&&(d=a.pluralResolver.getSuffix(n,s.count,s));var d,h="".concat(a.options.pluralSeparator,"zero");if(u&&(l.push(c+d),m&&l.push(c+h)),f){var p="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(p),u&&(l.push(p+d),m&&l.push(p+h))}}for(;r=l.pop();)a.isValidLookup(t)||(i=r,t=a.getResource(n,e,r,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:r}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),i}(l$);function l0(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l1=function(){function e(t){ly(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lD.create("languageUtils")}return lF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l0(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l0(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=l0(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var i=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(i))&&(t=i)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(i))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],r=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),i.forEach(function(e){0>o.indexOf(e)&&r(n.formatLanguageCode(e))}),o}}]),e}(),l2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],l5={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},l4=["v1","v2","v3"],l3={zero:0,one:1,two:2,few:3,many:4,other:5},l6=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ly(this,e),this.languageUtils=t,this.options=i,this.logger=lD.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},l2.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:l5[e.fc]}})}),n)}return lF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(e,t){return l3[e]-l3[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):i.numbers.map(function(i){return t.getSuffix(e,i,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var r=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!l4.includes(this.options.compatibilityJSON)}}]),e}();function l8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l8(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l9=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ly(this,e),this.logger=lD.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return lF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:lH,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?lz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?lz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?lz(t.nestingPrefix):t.nestingPrefixEscaped||lz("$t("),this.nestingSuffix=t.nestingSuffix?lz(t.nestingSuffix):t.nestingSuffixEscaped||lz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var o,r,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(s.formatSeparator)){var o=lj(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,l7(l7(l7({},i),t),{},{interpolationkey:e})):o}var r=e.split(s.formatSeparator),a=r.shift().trim(),c=r.join(s.formatSeparator).trim();return s.format(lj(t,l,a),c,n,l7(l7(l7({},i),t),{},{interpolationkey:a}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(r=d(n)))if("function"==typeof u){var l=u(e,o,i);r="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))r="";else if(m){r=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),r="";else"string"==typeof r||s.useRawValueToEscape||(r=lM(r));var c=t.safeValue(r);if(e=e.replace(o[0],c),m?(t.regex.lastIndex+=r.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,i,o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=l7({},r);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(i[1]);e=i[0];var r=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(r&&r.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=l7(l7({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),l=d,c=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=lM(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),c&&(i=l.reduce(function(e,t){return o.format(e,t,r.lng,l7(l7({},r),{},{interpolationkey:n[1].trim()}))},i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cn(e){var t={};return function(n,i,o){var r=i+JSON.stringify(o),a=t[r];return a||(a=e(i,o),t[r]=a),a(n)}}var ci=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ly(this,e),this.logger=lD.create("formatter"),this.options=t,this.formats={number:cn(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:cn(function(e,t){var n=new Intl.NumberFormat(e,ct(ct({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:cn(function(e,t){var n=new Intl.DateTimeFormat(e,ct({},t));return function(e){return n.format(e)}}),relativetime:cn(function(e,t){var n=new Intl.RelativeTimeFormat(e,ct({},t));return function(e){return n.format(e,t.range||"day")}}),list:cn(function(e,t){var n=new Intl.ListFormat(e,ct({},t));return function(e){return n.format(e)}})},this.init(t)}return lF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=cn(t)}},{key:"format",value:function(e,t,n,i){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var r=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var o=i[1].substring(0,i[1].length-1);"currency"===t&&0>o.indexOf(":")?n.currency||(n.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t,i=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return lT(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?lT(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],r=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=r),"false"===r&&(n[o.trim()]=!1),"true"===r&&(n[o.trim()]=!0),isNaN(r)||(n[o.trim()]=parseInt(r,10))}})}return{formatName:t,formatOptions:n}}(t),a=r.formatName,s=r.formatOptions;if(o.formats[a]){var l=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},d=c.locale||c.lng||i.locale||i.lng||n;l=o.formats[a](e,d,ct(ct(ct({},s),i),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ca=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(e,t,o){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ly(this,i),r=n.call(this),lV&&l$.call(lx(r)),r.backend=e,r.store=t,r.services=o,r.languageUtils=o.languageUtils,r.options=a,r.logger=lD.create("backendConnector"),r.waitingReads=[],r.maxParallelReads=a.maxParallelReads||10,r.readingCalls=0,r.maxRetries=a.maxRetries>=0?a.maxRetries:5,r.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,a.backend,a),r}return lF(i,[{key:"queueLoad",value:function(e,t,n,i){var o=this,r={},a={},s={},l={};return e.forEach(function(e){var i=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,i=!1,void 0===a[s]&&(a[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===l[t]&&(l[t]=!0)))}),i||(s[e]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),n&&this.store.addResourceBundle(o,r,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var i,s,l,c;i=n.loaded,(l=(s=lN(i,[o],Object)).obj)[c=s.k]=l[c]||[],l[c].push(r),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var c=i.waitingReads.shift();i.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o<i.maxRetries?setTimeout(function(){i.read.call(i,e,t,n,o+1,2*r,a)},r):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var r=this.queueLoad(e,t,i,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),o=i[0],r=i[1];this.read(o,r,"read",void 0,void 0,function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(r," for language ").concat(o," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(r," for language ").concat(o),a),t.loaded(e,i,a)})}},{key:"saveMissing",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,cr(cr({},r),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),i}(l$);function cs(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cd(){}var cu=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(ly(this,i),t=n.call(this),lV&&l$.call(lx(t)),t.options=cs(o),t.services={},t.logger=lD,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=lx(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),r&&!t.isInitialized&&!o.isClone){if(!t.options.initImmediate)return t.init(o,r),lC(t,lx(t));setTimeout(function(){t.init(o,r)},0)}return t}return lF(i,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===lv(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===lv(e[2])||"object"===lv(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=cc(cc(cc({},i),this.options),cs(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=cc(cc({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?lD.init(o(this.modules.logger),this.options):lD.init(null,this.options),this.modules.formatter?r=this.modules.formatter:"u">typeof Intl&&(r=ci);var r,a=new l1(this.options);this.store=new lY(this.options.resources,this.options);var s=this.services;s.logger=lD,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new l6(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),r&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(s.formatter=o(r),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new l9(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ca(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new lZ(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=cd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=lL(),d=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cd,i=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var r=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(r,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)})}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=lL();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cd),this.services.backendConnector.reload(e,t,function(e){i.resolve(),n(e)}),i}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lK.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=lL();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},r=function(e,r){r?(o(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var i="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,o=function e(t,o){if("object"!==lv(o)){for(var r,a=arguments.length,s=Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];r=i.options.overloadTranslationOptionHandler([t,o].concat(s))}else r=cc({},o);r.lng=r.lng||e.lng,r.lngs=r.lngs||e.lngs,r.ns=r.ns||e.ns,r.keyPrefix=r.keyPrefix||n||e.keyPrefix;var c=i.options.keySeparator||".",d=r.keyPrefix?"".concat(r.keyPrefix).concat(c).concat(t):t;return i.t(d,r)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(i,e)&&(!o||a(r,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=lL();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=lL();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],o=e.filter(function(e){return 0>i.indexOf(e)});return o.length?(this.options.preload=i.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cd,o=cc(cc(cc({},this.options),t),{isClone:!0}),r=new i(o);return(void 0!==t.debug||void 0!==t.prefix)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(function(t){r[t]=e[t]}),r.services=cc({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r.translator=new lZ(r.services,r.options),r.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r.emit.apply(r,[e].concat(n))}),r.init(o,n),r.translator.options=r.options,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(l$);lS(cu,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new cu(e,t)});var cm=cu.createInstance();cm.createInstance=cu.createInstance,cm.createInstance,cm.init,cm.loadResources,cm.reloadResources,cm.use,cm.changeLanguage,cm.getFixedT,cm.t,cm.exists,cm.setDefaultNamespace,cm.hasLoadedNamespace,cm.loadNamespaces,cm.loadLanguages;let cf=cm;var ch=n(4867),cp=n.n(ch);n(3472);class cb{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function cg(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>cg(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>cg(e[n],t[n]))}return!1}function cv(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,i)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!i[n-1]||"_"===i[n-1],o=n+1<i.length&&i[n+1]&&"_"!==i[n+1],r=n+3>i.length||!i[n+1]&&!i[n+3];(!t||o)&&(e=" "+e),!o&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}class cy{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,i,o,r,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(i=this.realm)?void 0:i.name)&&e.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>cy._evalValuePredicate(e.name,t)))&&(!this.attributes||cy._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!cy._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?cy._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let i;if(null==e)return!1;let o=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":i=o.startsWith(r);break;case"END":i=o.endsWith(r);break;case"CONTAINS":i=o.includes(r);break;default:i=o===r}return t.negate?!i:i}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,i;let o=null==(n=t.name)?void 0:n.value;if(!o)return!0;let r=null==(i=e.attributes)?void 0:i[o];if(!r)return!!t.negated;let a=!t.value||cy._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,i,o;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(i=t.items)?i:[]).map(t=>cy._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>cy._evalGroup(e,t))];return!a.length||("OR"===r?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>cy._collectNames(e))]}}cy._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var c_=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let cw=n(4461);class cF{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let i=new URLSearchParams(window.location.search),o=i.get("consoleName"),r=i.get("consoleVersion"),a=i.get("consolePlatform"),s=i.get("consoleProviders"),l=i.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let d=cF._createConsoleRegistration(),u=window.localStorage.getItem(this._storageKey);if(u)try{let e=JSON.parse(u);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},c)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let f=mJ.getAppName();f.length>0&&0>d.apps.indexOf(f)&&d.apps.push(f),this._registration=d,o&&(d.name=o),r&&(d.version=r),a&&(d.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return c_(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return c_(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return c_(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},i=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=i.hasPermission,this._registration.providers[e].success=i.success,this._registration.providers[e].enabled=i.success,this._registration.providers[e].data=i.data;let o=this._pendingProviderEnables.indexOf(e);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),i})}disableProvider(e){return c_(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return c_(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let i=new cb,o=()=>{delete this._pendingProviderPromises[n],i.reject("No response from provider")};return this._pendingProviderPromises[n]=[i,window.setTimeout(o,5e3)],this._doSendProviderMessage(e),i.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>c_(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return c_(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mJ.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&cF._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return c_(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,i=t.action,o=this._pendingProviderPromises[n+i];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+i],o[0].resolve(t));let r=this._providerMessageListeners[n+i];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:cw.name,version:cw.version,platform:cw.os.toString(),apps:[],model:((cw.manufacturer?cw.manufacturer+" ":"")+(cw.product?cw.product:"")).trim()}}_initialiseProvider(e){return c_(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function cx(e,t){return function(){return e.apply(t,arguments)}}let{toString:ck}=Object.prototype,{getPrototypeOf:cE}=Object,{iterator:cC,toStringTag:cA}=Symbol,cS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cT=(e,t)=>{let n=e,i=[];for(;null!=n&&n!==Object.prototype&&-1===i.indexOf(n);){if(i.push(n),cS(n,t))return!0;n=cE(n)}return!1},cI=(a=Object.create(null),e=>{let t=ck.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),cO=e=>(e=e.toLowerCase(),t=>cI(t)===e),cR=e=>t=>typeof t===e,{isArray:cD}=Array,c$=cR("undefined");function cL(e){return null!==e&&!c$(e)&&null!==e.constructor&&!c$(e.constructor)&&cB(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let cM=cO("ArrayBuffer"),cN=cR("string"),cB=cR("function"),cP=cR("number"),cj=e=>null!==e&&"object"==typeof e,cz=e=>{if(!cj(e))return!1;let t=cE(e);return(null===t||t===Object.prototype||null===cE(t))&&!cT(e,cA)&&!cT(e,cC)},cU=cO("Date"),cH=cO("File"),cV=cO("Blob"),cW=cO("FileList"),cG="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},cq=void 0!==cG.FormData?cG.FormData:void 0,cY=cO("URLSearchParams"),[cK,cX,cJ,cQ]=["ReadableStream","Request","Response","Headers"].map(cO);function cZ(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),cD(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(cL(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function c0(e,t){let n;if(cL(e))return null;t=t.toLowerCase();let i=Object.keys(e),o=i.length;for(;o-- >0;)if(t===(n=i[o]).toLowerCase())return n;return null}let c1="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,c2=e=>!c$(e)&&e!==c1,c5=(s="u">typeof Uint8Array&&cE(Uint8Array),e=>s&&e instanceof s),c4=cO("HTMLFormElement"),{propertyIsEnumerable:c3}=Object.prototype,c6=cO("RegExp"),c8=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};cZ(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},c7=cO("AsyncFunction"),c9=(bP="function"==typeof setImmediate,bj=cB(c1.postMessage),bP?setImmediate:bj?(bz=`axios@${Math.random()}`,bU=[],c1.addEventListener("message",({source:e,data:t})=>{e===c1&&t===bz&&bU.length&&bU.shift()()},!1),e=>{bU.push(e),c1.postMessage(bz,"*")}):e=>setTimeout(e)),de="u">typeof queueMicrotask?queueMicrotask.bind(c1):"u">typeof process&&process.nextTick||c9,dt=e=>null!=e&&cB(e[cC]),dn={isArray:cD,isArrayBuffer:cM,isBuffer:cL,isFormData:e=>{if(!e)return!1;if(cq&&e instanceof cq)return!0;let t=cE(e);if(!t||t===Object.prototype||!cB(e.append))return!1;let n=cI(e);return"formdata"===n||"object"===n&&cB(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cM(e.buffer)},isString:cN,isNumber:cP,isBoolean:e=>!0===e||!1===e,isObject:cj,isPlainObject:cz,isEmptyObject:e=>{if(!cj(e)||cL(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cK,isRequest:cX,isResponse:cJ,isHeaders:cQ,isUndefined:c$,isDate:cU,isFile:cH,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:cV,isRegExp:c6,isFunction:cB,isStream:e=>cj(e)&&cB(e.pipe),isURLSearchParams:cY,isTypedArray:c5,isFileList:cW,forEach:cZ,merge:function e(...t){let{caseless:n,skipUndefined:i}=c2(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&c0(o,r)||r,s=cS(o,a)?o[a]:void 0;cz(s)&&cz(t)?o[a]=e(s,t):cz(t)?o[a]=e({},t):cD(t)?o[a]=t.slice():i&&c$(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||cL(n)||(cZ(n,r),"object"!=typeof n||cD(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];c3.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(cZ(t,(t,i)=>{n&&cB(t)?Object.defineProperty(e,i,{__proto__:null,value:cx(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)a=o[r],(!i||i(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&cE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:cI,kindOfTest:cO,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(cD(e))return e;let t=e.length;if(!cP(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[cC]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:c4,hasOwnProperty:cS,hasOwnProp:cS,hasOwnInPrototypeChain:cT,getSafeProp:(e,t)=>null!=e&&cT(e,t)?e[t]:void 0,reduceDescriptors:c8,freezeMethods:e=>{c8(e,(t,n)=>{if(cB(e)&&["arguments","caller","callee"].includes(n))return!1;if(cB(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(cD(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:c0,global:c1,isContextDefined:c2,isSpecCompliantForm:function(e){return!!(e&&cB(e.append)&&"FormData"===e[cA]&&e[cC])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(cj(e)){if(t.has(e))return;if(cL(e))return e;if(!("toJSON"in e)){t.add(e);let i=cD(e)?[]:{};return cZ(e,(e,t)=>{let o=n(e);c$(o)||(i[t]=o)}),t.delete(e),i}}return e};return n(e)},isAsyncFn:c7,isThenable:e=>e&&(cj(e)||cB(e))&&cB(e.then)&&cB(e.catch),setImmediate:c9,asap:de,isIterable:dt,isSafeIterable:e=>null!=e&&cT(e,cC)&&dt(e)},di=dn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dr=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),da=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ds(e,t){return dn.isArray(e)?e.map(e=>ds(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function dl(e){let t=Object.create(null);return dn.forEach(e.toJSON(),(e,n)=>{t[n]=ds(e,da)}),t}let dc=Symbol("internals");function dd(e){return e&&String(e).trim().toLowerCase()}function du(e){return!1===e||null==e?e:dn.isArray(e)?e.map(du):ds(String(e),dr)}function dm(e,t,n,i,o){if(dn.isFunction(i))return i.call(this,t,n);if(o&&(t=n),dn.isString(t)){if(dn.isString(i))return -1!==t.indexOf(i);if(dn.isRegExp(i))return i.test(t)}}class df{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=dd(t);if(!o)return;let r=dn.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=du(e))}let r=(e,t)=>dn.forEach(e,(e,n)=>o(e,n,t));if(dn.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(dn.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var a;let n,i,o,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||s[n]&&di[n]||("set-cookie"===n?s[n]?s[n].push(i):s[n]=[i]:s[n]=s[n]?s[n]+", "+i:i)}),s),t)}else if(dn.isObject(e)&&dn.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!dn.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],dn.hasOwnProp(n,o)?(i=n[o],n[o]=dn.isArray(i)?[...i,t[1]]:[i,t[1]]):n[o]=t[1]}r(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=dd(e)){let n=dn.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(dn.isFunction(t))return t.call(this,e,n);if(dn.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dd(e)){let n=dn.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||dm(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=dd(e)){let o=dn.findKey(n,e);o&&(!t||dm(n,n[o],o,t))&&(delete n[o],i=!0)}}return dn.isArray(e)?e.forEach(o):o(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let o=t[n];(!e||dm(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return dn.forEach(this,(i,o)=>{let r=dn.findKey(n,o);if(r){t[r]=du(i),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=du(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return dn.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&dn.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[dc]=this[dc]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=dd(e);if(!t[i]){let o;o=dn.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{__proto__:null,value:function(n,i,o){return this[t].call(this,e,n,i,o)},configurable:!0})}),t[i]=!0}}return dn.isArray(e)?e.forEach(i):i(e),this}}df.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dn.reduceDescriptors(df.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),dn.freezeMethods(df);class dh extends Error{static from(e,t,n,i,o,r){let a=new dh(e.message,t||e.code,n,i,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),r&&Object.assign(a,r),a}constructor(e,t,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,n,i=this.config,o=i&&dn.hasOwnProp(i,"redact")?i.redact:void 0,r=dn.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(n=i=>{let o;if(null===i||"object"!=typeof i||dn.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof df&&(i=i.toJSON()),t.push(i),dn.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);dn.isUndefined(i)||(o[t]=i)});else{if(!dn.isPlainObject(i)&&function(e){if(dn.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(dn.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,r]of(o=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?"[REDACTED ****]":n(r);dn.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):dn.toJSONObject(i);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}dh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",dh.ERR_BAD_OPTION="ERR_BAD_OPTION",dh.ECONNABORTED="ECONNABORTED",dh.ETIMEDOUT="ETIMEDOUT",dh.ECONNREFUSED="ECONNREFUSED",dh.ERR_NETWORK="ERR_NETWORK",dh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",dh.ERR_DEPRECATED="ERR_DEPRECATED",dh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",dh.ERR_BAD_REQUEST="ERR_BAD_REQUEST",dh.ERR_CANCELED="ERR_CANCELED",dh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",dh.ERR_INVALID_URL="ERR_INVALID_URL",dh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dp=dh;function db(e){return dn.isPlainObject(e)||dn.isArray(e)}function dg(e){return dn.endsWith(e,"[]")?e.slice(0,-2):e}function dv(e,t,n){return e?e.concat(t).map(function(e,t){return e=dg(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let dy=dn.toFlatObject(dn,{},null,function(e){return/^is[A-Z]/.test(e)}),d_=function(e,t,n){if(!dn.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(n=dn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!dn.isUndefined(t[e])})).metaTokens,o=n.visitor||f,r=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&dn.isSpecCompliantForm(t),d=[];if(!dn.isFunction(o))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(dn.isDate(e))return e.toISOString();if(dn.isBoolean(e))return e.toString();if(!c&&dn.isBlob(e))throw new dp("Blob is not supported. Use a Buffer instead.");if(dn.isArrayBuffer(e)||dn.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new dp("Blob is not supported. Use a Buffer instead.",dp.ERR_NOT_SUPPORT)}return e}function m(e){if(e>l)throw new dp("Object is too deeply nested ("+e+" levels). Max depth: "+l,dp.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,o){let s=e;if(dn.isReactNative(t)&&dn.isReactNativeBlob(e))return t.append(dv(o,n,r),u(e)),!1;if(e&&!o&&"object"==typeof e)if(dn.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!dn.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),m(1+t.length-1),n})}(e);else{var c;if(dn.isArray(e)&&(c=e,dn.isArray(c)&&!c.some(db))||(dn.isFileList(e)||dn.endsWith(n,"[]"))&&(s=dn.toArray(e)))return n=dg(n),s.forEach(function(e,i){dn.isUndefined(e)||null===e||t.append(!0===a?dv([n],i,r):null===a?n:n+"[]",u(e))}),!1}return!!db(e)||(t.append(dv(o,n,r),u(e)),!1)}let h=Object.assign(dy,{defaultVisitor:f,convertValue:u,isVisitable:db});if(!dn.isObject(e))throw TypeError("data must be an object");return!function e(n,i,r=0){if(!dn.isUndefined(n)){if(m(r),-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),dn.forEach(n,function(n,a){!0===(!(dn.isUndefined(n)||null===n)&&o.call(t,n,dn.isString(a)?a.trim():a,i,h))&&e(n,i?i.concat(a):[a],r+1)}),d.pop()}}(e),t};function dw(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dF(e,t){this._pairs=[],e&&d_(e,this,t)}let dx=dF.prototype;function dk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dE(e,t,n){let i;if(!t)return e;e=e||"";let o=dn.isFunction(n)?{serialize:n}:n,r=dn.getSafeProp(o,"encode")||dk,a=dn.getSafeProp(o,"serialize");if(i=a?a(t,o):dn.isURLSearchParams(t)?t.toString():new dF(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}dx.append=function(e,t){this._pairs.push([e,t])},dx.toString=function(e){let t=e?t=>e.call(this,t,dw):dw;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dC=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){dn.forEach(this.handlers,function(t){null!==t&&e(t)})}},dA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dS="u">typeof URLSearchParams?URLSearchParams:dF,dT="u">typeof FormData?FormData:null,dI="u">typeof Blob?Blob:null,dO="u">typeof window&&"u">typeof document,dR="object"==typeof navigator&&navigator||void 0,dD=dO&&(!dR||0>["ReactNative","NativeScript","NS"].indexOf(dR.product)),d$="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dL=dO&&window.location.href||"http://localhost",dM={...d,isBrowser:!0,classes:{URLSearchParams:dS,FormData:dT,Blob:dI},protocols:["http","https","file","blob","url","data"]};function dN(e){if(e>100)throw new dp("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dp.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dB=function(e){if(dn.isFormData(e)&&dn.isFunction(e.entries)){let t={};return dn.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){dN(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&dn.isArray(i)?i.length:r,s)?dn.hasOwnProp(i,r)?i[r]=dn.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(dn.hasOwnProp(i,r)&&dn.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&dn.isArray(i[r])&&(i[r]=function(e){let t,n,i={},o=Object.keys(e),r=o.length;for(t=0;t<r;t++)i[n=o[t]]=e[n];return i}(i[r]))),!a}(function(e){let t,n=[],i=/\w+|\[(\w*)]/g;for(;null!==(t=i.exec(e));)dN(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dP=(e,t)=>null!=e&&dn.hasOwnProp(e,t)?e[t]:void 0,dj={transitional:dA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=dn.isObject(e);if(r&&dn.isHTMLForm(e)&&(e=new FormData(e)),dn.isFormData(e))return o?JSON.stringify(dB(e)):e;if(dn.isArrayBuffer(e)||dn.isBuffer(e)||dn.isStream(e)||dn.isFile(e)||dn.isBlob(e)||dn.isReadableStream(e))return e;if(dn.isArrayBufferView(e))return e.buffer;if(dn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dP(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return d_(e,new dM.classes.URLSearchParams,{visitor:function(e,t,n,i){return dM.isNode&&dn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=dn.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=dP(this,"env"),o=i&&i.FormData;return d_(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(dn.isString(a))try{return(0,JSON.parse)(a),dn.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dP(this,"transitional")||dj.transitional,n=t&&t.forcedJSONParsing,i=dP(this,"responseType"),o="json"===i;if(dn.isResponse(e)||dn.isReadableStream(e))return e;if(e&&dn.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dP(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw dp.from(e,dp.ERR_BAD_RESPONSE,this,null,dP(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dM.classes.FormData,Blob:dM.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dz(e,t){let n=this||dj,i=t||n,o=df.from(i.headers),r=i.data;return dn.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function dU(e){return!!(e&&e.__CANCEL__)}dn.forEach(["delete","get","head","post","put","patch","query"],e=>{dj.headers[e]={}});let dH=class extends dp{constructor(e,t,n){super(null==e?"canceled":e,dp.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dV(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dp("Request failed with status code "+n.status,n.status>=400&&n.status<500?dp.ERR_BAD_REQUEST:dp.ERR_BAD_RESPONSE,n.config,n.request,n))}let dW=function(e,t){let n,i=Array(e=e||10),o=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=o[a];n||(n=l),i[r]=s,o[r]=l;let d=a,u=0;for(;d!==r;)u+=i[d++],d%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let m=c&&l-c;return m?Math.round(1e3*u/m):void 0}},dG=function(e,t){let n,i,o=0,r=1e3/t,a=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=r?a(e,t):(n=e,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n)]},dq=(e,t,n=3)=>{let i=0,o=dW(50,250);return dG(n=>{if(!n||"number"!=typeof n.loaded)return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(r,a):r,l=Math.max(0,s-i),c=o(l);i=Math.max(i,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},dY=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dK=e=>(...t)=>dn.asap(()=>e(...t)),dX=dM.hasStandardBrowserEnv?(l=new URL(dM.origin),c=dM.navigator&&/(msie|trident)/i.test(dM.navigator.userAgent),e=>(e=new URL(e,dM.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port))):()=>!0,dJ=dM.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];dn.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),dn.isString(i)&&s.push(`path=${i}`),dn.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),dn.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let i=t[n].replace(/^\s+/,""),o=i.indexOf("=");if(-1!==o&&i.slice(0,o)===e)try{return decodeURIComponent(i.slice(o+1))}catch(e){return i.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},dQ=/^https?:(?!\/\/)/i,dZ=/[\t\n\r]/g;function d0(e,t){if("string"==typeof e&&dQ.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(dZ,"")))throw new dp('Invalid URL: missing "//" after protocol',dp.ERR_INVALID_URL,t)}function d1(e,t,n,i){d0(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(o||!1===n)?(d0(e,i),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let d2=e=>e instanceof df?{...e}:e;function d5(e,t){e=e||{},t=t||{};let n=Object.create(null);function i(e,t,n,i){return dn.isPlainObject(e)&&dn.isPlainObject(t)?dn.merge.call({caseless:i},e,t):dn.isPlainObject(t)?dn.merge({},t):dn.isArray(t)?t.slice():t}function o(e,t,n,o){return dn.isUndefined(t)?dn.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function r(e,t){if(!dn.isUndefined(t))return i(void 0,t)}function a(e,t){return dn.isUndefined(t)?dn.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,r){return dn.hasOwnProp(t,r)?i(n,o):dn.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(d2(e),d2(t),n,!0)};return dn.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;let r=dn.hasOwnProp(l,i)?l[i]:o,a=r(dn.hasOwnProp(e,i)?e[i]:void 0,dn.hasOwnProp(t,i)?t[i]:void 0,i);dn.isUndefined(a)&&r!==s||(n[i]=a)}),dn.hasOwnProp(t,"validateStatus")&&dn.isUndefined(t.validateStatus)&&!1===function(n){let i=dn.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!dn.isUndefined(i)){if(!dn.isPlainObject(i))return;else if(dn.hasOwnProp(i,n))return i[n]}let o=dn.hasOwnProp(e,"transitional")?e.transitional:void 0;if(dn.isPlainObject(o)&&dn.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(dn.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}let d4=["content-type","content-length"],d3=function(e){let t=d5({},e),n=e=>dn.hasOwnProp(t,e)?t[e]:void 0,i=n("data"),o=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");if(t.headers=s=df.from(s),t.url=dE(d1(c,u,d,t),n("params"),n("paramsSerializer")),l){let t=dn.getSafeProp(l,"username")||"",n=dn.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw dp.from(t,dp.ERR_BAD_OPTION_VALUE,e)}}if(dn.isFormData(i))if(dM.hasStandardBrowserEnv||dM.hasStandardBrowserWebWorkerEnv||dn.isReactNative(i))s.setContentType(void 0);else{var m,f;dn.isFunction(i.getHeaders)&&(m=s,f=i.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?m.set(f):Object.entries(f||{}).forEach(([e,t])=>{d4.includes(e.toLowerCase())&&m.set(e,t)}))}if(dM.hasStandardBrowserEnv&&(dn.isFunction(o)&&(o=o(t)),!0===o||null==o&&dX(t.url))){let e=r&&a&&dJ.read(a);e&&s.set(r,e)}return t},d6="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var i;let o,r,a,s,l,c,d=d3(e),u=d.data,m=df.from(d.headers).normalize(),{responseType:f,onUploadProgress:h,onDownloadProgress:p}=d;function b(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(o),d.signal&&d.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function v(){if(!g)return;let i=df.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());dV(function(e){t(e),b()},function(e){n(e),b()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(d.method.toUpperCase(),d.url,!0),g.timeout=d.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new dp("Request aborted",dp.ECONNABORTED,e,g)),b(),g=null)},g.onerror=function(t){let i=new dp(t&&t.message?t.message:"Network Error",dp.ERR_NETWORK,e,g);i.event=t||null,n(i),b(),g=null},g.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",i=d.transitional||dA;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new dp(t,i.clarifyTimeoutError?dp.ETIMEDOUT:dp.ECONNABORTED,e,g)),b(),g=null},void 0===u&&m.setContentType(null),"setRequestHeader"in g&&dn.forEach(dl(m),function(e,t){g.setRequestHeader(t,e)}),dn.isUndefined(d.withCredentials)||(g.withCredentials=!!d.withCredentials),f&&"json"!==f&&(g.responseType=d.responseType),p&&([a,l]=dq(p,!0),g.addEventListener("progress",a)),h&&g.upload&&([r,s]=dq(h),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(o=t=>{g&&(n(!t||t.type?new dH(null,e,g):t),g.abort(),b(),g=null)},d.cancelToken&&d.cancelToken.subscribe(o),d.signal&&(d.signal.aborted?o():d.signal.addEventListener("abort",o)));let y=(i=d.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(i))&&c[1]||"");if(y&&!dM.protocols.includes(y)){n(new dp("Unsupported protocol "+y+":",dp.ERR_BAD_REQUEST,e)),b();return}g.send(u||null)})},d8=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let o=0;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},d7=async function*(e,t){for await(let n of d9(e))yield*d8(n,t)},d9=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ue=(e,t,n,i)=>{let o,r=d7(e,t),a=0,s=e=>{!o&&(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await r.next();if(t){s(),e.close();return}let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},ut=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,un=(e,t,n)=>t+2<n&&ut(e.charCodeAt(t+1))&&ut(e.charCodeAt(t+2)),{isFunction:ui}=dn,uo=e=>{if(!dn.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ur=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ua=e=>{let t,n=void 0!==dn.global&&null!==dn.global?dn.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=dn.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?ui(r):"function"==typeof fetch,c=ui(a),d=ui(s);if(!l)return!1;let u=l&&ui(i),m=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&ur(()=>{let e=!1,t=new a(dM.origin,{body:new i,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),h=d&&u&&ur(()=>dn.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new dp(`Response type '${e}' is not supported`,dp.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(dn.isBlob(e))return e.size;if(dn.isSpecCompliantForm(e)){let t=new a(dM.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dn.isArrayBufferView(e)||dn.isArrayBuffer(e)?e.byteLength:(dn.isURLSearchParams(e)&&(e+=""),dn.isString(e))?(await m(e)).byteLength:void 0},g=async(e,t)=>{let n=dn.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:i,data:l,signal:d,cancelToken:m,timeout:v,onDownloadProgress:y,onUploadProgress:_,responseType:w,headers:F,withCredentials:x="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:C}=d3(e),A=dn.isNumber(E)&&E>-1,S=dn.isNumber(C)&&C>-1,T=r||fetch;w=w?(w+"").toLowerCase():"text";let I=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,i=!1,o=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof dp?t:new dH(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new dp(`timeout of ${t}ms exceeded`,dp.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>dn.asap(a),s})([d,m&&m.toAbortSignal()],v),O=null,R=I&&I.unsubscribe&&(()=>{I.unsubscribe()}),D=null,$=()=>new dp("Request body larger than maxBodyLength limit",dp.ERR_BAD_REQUEST,e,O);try{var L;let r,d,m,v,M=(d="auth",dn.hasOwnProp(e,d)?e[d]:void 0);if(M){let e=dn.getSafeProp(M,"username")||"",t=dn.getSafeProp(M,"password")||"";r={username:e,password:t}}if(m=(L=n).indexOf("://"),v=L,-1!==m&&(v=v.slice(m+3)),v.includes("@")||v.includes(":")){let e=new URL(n,dM.origin);if(!r&&(e.username||e.password)){let t=uo(e.username),n=uo(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;F.delete("authorization"),F.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length,t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){let t=i.charCodeAt(n+1),o=i.charCodeAt(n+2);ut(t)&&ut(o)&&(e-=2,n+=2)}let n=0,o=t-1,r=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));o>=0&&(61===i.charCodeAt(o)?(n++,o--):r(o)&&(n++,o-=3)),1===n&&o>=0&&(61===i.charCodeAt(o)?n++:r(o)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let o=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&un(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(n)>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O);if(S&&"get"!==i&&"head"!==i){let e=await b(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw $()}let N=S&&(dn.isReadableStream(l)||dn.isStream(l)),B=(e,t,n)=>ue(e,65536,e=>{if(S&&e>C)throw D=$();t&&t(e)},n);if(f&&"get"!==i&&"head"!==i&&(_||N)){if(t=null==t?await g(F,l):t,0!==t||N){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(dn.isFormData(l)&&(e=i.headers.get("content-type"))&&F.setContentType(e),i.body){let[e,n]=_&&dY(t,dq(dK(_)))||[];l=B(i.body,e,n)}}}else if(N&&!c&&u&&"get"!==i&&"head"!==i)l=B(l);else if(N&&c&&!f&&"get"!==i&&"head"!==i)throw new dp("Stream request bodies are not supported by the current fetch implementation",dp.ERR_NOT_SUPPORT,e,O);dn.isString(x)||(x=x?"include":"omit");let P=c&&"credentials"in a.prototype;if(dn.isFormData(l)){let e=F.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:I,method:i.toUpperCase(),headers:dl(F.normalize()),body:l,duplex:"half",credentials:P?x:void 0};O=c&&new a(n,j);let z=await (c?T(O,k):T(n,j)),U=df.from(z.headers);if(A){let t=dn.toFiniteNumber(U.getContentLength());if(null!=t&&t>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O)}let H=h&&("stream"===w||"response"===w);if(h&&z.body&&(y||A||H&&R)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let n=dn.toFiniteNumber(U.getContentLength()),[i,o]=y&&dY(n,dq(dK(y),!0))||[];z=new s(ue(z.body,65536,t=>{if(A&&t>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O);i&&i(t)},()=>{o&&o(),R&&R()}),t)}w=w||"text";let V=await p[dn.findKey(p,w)||"text"](z,e);if(A&&!h&&!H){let t;if(null!=V&&("number"==typeof V.byteLength?t=V.byteLength:"number"==typeof V.size?t=V.size:"string"==typeof V&&(t="function"==typeof o?new o().encode(V).byteLength:V.length)),"number"==typeof t&&t>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O)}return!H&&R&&R(),await new Promise((t,n)=>{dV(t,n,{data:V,headers:df.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:O})})}catch(t){if(R&&R(),I&&I.aborted&&I.reason instanceof dp){let n=I.reason;throw n.config=e,O&&(n.request=O),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(D)throw O&&!D.request&&(D.request=O),D;if(t instanceof dp)throw O&&!t.request&&(t.request=O),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dp("Network Error",dp.ERR_NETWORK,e,O,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dp.from(t,t&&t.code,e,O,t&&t.response)}}},us=new Map,ul=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,c=us;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:ua(t)),c=l;return l};ul();let uc={http:null,xhr:d6,fetch:{get:ul}};dn.forEach(uc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ud=e=>`- ${e}`,uu=e=>dn.isFunction(e)||null===e||!1===e,um=function(e,t){let n,i,{length:o}=e=dn.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!uu(n)&&void 0===(i=uc[(o=String(n)).toLowerCase()]))throw new dp(`Unknown adapter '${o}'`);if(i&&(dn.isFunction(i)||(i=i.get(t))))break;r[o||"#"+a]=i}if(!i){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dp("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(ud).join("\n"):" "+ud(e[0]):"as no adapter specified"),dp.ERR_NOT_SUPPORT)}return i};function uf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dH(null,e)}function uh(e){return uf(e),e.headers=df.from(e.headers),e.data=dz.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),um(e.adapter||dj.adapter,e)(e).then(function(t){uf(e),e.response=t;try{t.data=dz.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=df.from(t.headers),t},function(t){if(!dU(t)&&(uf(e),t&&t.response)){e.response=t.response;try{t.response.data=dz.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=df.from(t.response.headers)}return Promise.reject(t)})}let up={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{up[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ub={};up.transitional=function(e,t,n){function i(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new dp(i(o," has been removed"+(t?" in "+t:"")),dp.ERR_DEPRECATED);return t&&!ub[o]&&(ub[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},up.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let ug=function(e,t,n){if("object"!=typeof e||null===e)throw new dp("options must be an object",dp.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let r=i[o],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new dp("option "+r+" must be "+n,dp.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dp("Unknown option "+r,dp.ERR_BAD_OPTION)}};class uv{constructor(e){this.defaults=e||{},this.interceptors={request:new dC,response:new dC}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),o=-1===i?"":n.slice(i+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:r,headers:a}=t=d5(this.defaults,t);void 0!==o&&ug(o,{silentJSONParsing:up.transitional(up.boolean),forcedJSONParsing:up.transitional(up.boolean),clarifyTimeoutError:up.transitional(up.boolean),legacyInterceptorReqResOrdering:up.transitional(up.boolean),advertiseZstdAcceptEncoding:up.transitional(up.boolean),validateStatusUndefinedResolves:up.transitional(up.boolean)},!1),null!=r&&(dn.isFunction(r)?t.paramsSerializer={serialize:r}:ug(r,{encode:up.function,serialize:up.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ug(t,{baseUrl:up.spelling("baseURL"),withXsrfToken:up.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&dn.merge(a.common,a[t.method]);a&&dn.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=df.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||dA;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[uh.bind(this),void 0];for(e.unshift(...l),e.push(...d),i=e.length,n=Promise.resolve(t);u<i;)n=n.then(e[u++],e[u++]);return n}i=l.length;let m=t;for(;u<i;){let e=l[u++],t=l[u++];try{m=e(m)}catch(e){t.call(this,e);break}}try{n=uh.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){return dE(d1((e=d5(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}dn.forEach(["delete","get","head","options"],function(e){uv.prototype[e]=function(t,n){return this.request(d5(n||{},{method:e,url:t,data:n&&dn.hasOwnProp(n,"data")?n.data:void 0}))}}),dn.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(d5(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}uv.prototype[e]=t(),"query"!==e&&(uv.prototype[e+"Form"]=t(!0))});let uy=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new dH(e,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},u_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(u_).forEach(([e,t])=>{u_[t]=e});let uw=function e(t){let n=new uv(t),i=cx(uv.prototype.request,n);return dn.extend(i,uv.prototype,n,{allOwnKeys:!0}),dn.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(d5(t,n))},i}(dj);uw.Axios=uv,uw.CanceledError=dH,uw.CancelToken=uy,uw.isCancel=dU,uw.VERSION="1.18.1",uw.toFormData=d_,uw.AxiosError=dp,uw.Cancel=uw.CanceledError,uw.all=function(e){return Promise.all(e)},uw.spread=function(e){return function(t){return e.apply(null,t)}},uw.isAxiosError=function(e){return dn.isObject(e)&&!0===e.isAxiosError},uw.mergeConfig=d5,uw.AxiosHeaders=df,uw.formToJSON=e=>dB(dn.isHTMLForm(e)?new FormData(e):e),uw.getAdapter=um,uw.HttpStatusCode=u_,uw.default=uw;class uF{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:uV`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:uV`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:uV`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:uV`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:uV`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:uV`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:uV`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:uV`alarm/${e}/assets`,queryParams:t,options:n})}}class ux{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:uV`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:uV`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:uV`apps/info`,options:e})}}class uk{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uV`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:uV`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:uV`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uV`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:uV`dashboard/${e}/${t}`,options:n})}}class uE{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:uV`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:uV`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:uV`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:uV`syslog/event`,queryParams:e,options:t})}}class uC{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:uV`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:uV`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:uV`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:uV`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:uV`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:uV`gateway/status/${e}`,options:t})}}class uA{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:uV`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uV`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:uV`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:uV`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:uV`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:uV`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:uV`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:uV`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:uV`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:uV`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uV`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:uV`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uV`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/${t}`,options:n})}}class uS{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uV`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:uV`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uV`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class uT{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:uV`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:uV`info`,options:e})}}class uI{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uV`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:uV`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:uV`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uV`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:uV`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uV`realm/${e}`,data:t,options:n})}}class uO{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:uV`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:uV`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:uV`flow/${e}`,options:t})}}class uR{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:uV`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:uV`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:uV`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uV`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uV`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:uV`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:uV`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uV`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:uV`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uV`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:uV`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uV`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uV`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:uV`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uV`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:uV`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`rules/${e}`,data:t,options:n})}}class uD{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:uV`console/register`,data:e,options:t})}}class u${constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:uV`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:uV`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:uV`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:uV`provisioning/${e}`,data:t,options:n})}}class uL{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:uV`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:uV`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:uV`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:uV`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:uV`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:uV`map/upload`,queryParams:e,options:t})}}class uM{constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uV`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`asset/predicted/${e}/${t}`,data:n,options:i})}}class uN{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:uV`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:uV`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:uV`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:uV`configuration/manager/image/${e}`,options:t})}}class uB{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:uV`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:uV`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uV`asset/datapoint/${e}/${t}`,data:n,options:i})}}class uP{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:uV`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:uV`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:uV`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:uV`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:uV`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:uV`notification/${e}/delivered`,queryParams:t,options:n})}}class uj{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uV`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uV`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:uV`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:uV`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:uV`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:uV`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:uV`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:uV`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:uV`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:uV`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uV`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:uV`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uV`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:uV`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:uV`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uV`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`asset/${e}/attribute/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uV`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:uV`asset/${e}/child`,queryParams:t,options:n})}}class uz{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:uV`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:uV`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:uV`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:uV`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:uV`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:uV`service/${e}/${t}`,options:n})}}class uU{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:uV`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:uV`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:uV`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:uV`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:uV`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class uH{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:uV`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:uV`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:uV`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:uV`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:uV`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:uV`model/valueDescriptors`,queryParams:e,options:t})}}function uV(e,...t){let n="";for(let i=0;i<t.length;i++)n+=e[i],n+=encodeURIComponent(t[i]);return n+e[e.length-1]}class uW{constructor(e,t=uw.create()){this._alarmResource=new uq(e,t),this._appResource=new uY(e,t),this._dashboardResource=new uK(e,t),this._syslogResource=new uX(e,t),this._gatewayClientResource=new uJ(e,t),this._userResource=new uQ(e,t),this._agentResource=new uZ(e,t),this._statusResource=new u0(e,t),this._realmResource=new u1(e,t),this._flowResource=new u2(e,t),this._rulesResource=new u5(e,t),this._consoleResource=new u4(e,t),this._provisioningResource=new u3(e,t),this._mapResource=new u6(e,t),this._assetPredictedDatapointResource=new u8(e,t),this._configurationResource=new u7(e,t),this._assetDatapointResource=new u9(e,t),this._notificationResource=new me(e,t),this._assetResource=new mt(e,t),this._externalServiceResource=new mn(e,t),this._gatewayServiceResource=new mi(e,t),this._assetModelResource=new mo(e,t),this._assetResource=new mt(e,t)}get AlarmResource(){return this._alarmResource}get AppResource(){return this._appResource}get DashboardResource(){return this._dashboardResource}get SyslogResource(){return this._syslogResource}get GatewayClientResource(){return this._gatewayClientResource}get UserResource(){return this._userResource}get AgentResource(){return this._agentResource}get StatusResource(){return this._statusResource}get RealmResource(){return this._realmResource}get FlowResource(){return this._flowResource}get RulesResource(){return this._rulesResource}get ConsoleResource(){return this._consoleResource}get ProvisioningResource(){return this._provisioningResource}get MapResource(){return this._mapResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get NotificationResource(){return this._notificationResource}get AssetResource(){return this._assetResource}get ExternalServiceResource(){return this._externalServiceResource}get GatewayServiceResource(){return this._gatewayServiceResource}get AssetModelResource(){return this._assetModelResource}}class uG{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class uq extends uF{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uY extends ux{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uK extends uk{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uX extends uE{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uJ extends uC{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uQ extends uA{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uZ extends uS{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u0 extends uT{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u1 extends uI{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u2 extends uO{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u5 extends uR{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u4 extends uD{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u3 extends u${constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u6 extends uL{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u8 extends uM{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u7 extends uN{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u9 extends uB{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class me extends uP{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mt extends uj{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mn extends uz{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mi extends uU{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mo extends uH{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}var mr=n(8183),ma=n.n(mr);uw.isAxiosError;let ms=new class{get api(){return this._client}constructor(){this._axiosInstance=uw.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>ma().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new uW(e,this._axiosInstance)}};var ml=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};(gK=ye||(ye={})).DISCONNECTED="DISCONNECTED",gK.CONNECTED="CONNECTED",gK.CONNECTING="CONNECTING";let mc="SUBSCRIBED:",md="UNAUTHORIZED:",mu="TRIGGERED:",mm="EVENT:";class mf{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=mh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=ye.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===ye.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(ye.CONNECTING),this._connectingDeferred=new cb,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=mh.MIN_RECONNECT_DELAY,this._onStatusChanged(ye.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==ye.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new cb};return null!=this._pendingSubscription||this._status!==ye.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ml(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===ye.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==ye.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+mf._subscriptionCounter++;if(!this._assetEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(o,e=>{let t=e.asset.id;i?i.find(e=>t===e)&&n(e):e.asset.realm===mJ.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(i&&t){let e={messageID:"read-assets:"+i.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(o)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),o&&this.unsubscribe(o),t}return o})})}subscribeAttributeEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0],o=i?e.map(e=>e.id):e,r=i?e:void 0,a="AttributeEvent"+mf._subscriptionCounter++;if(!this._attributeEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;i?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):o?o.find(e=>r.id===e)&&n(t):t.realm===mJ.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&o){let e={messageID:"read-assets:"+o.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===ye.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===ye.CONNECTED&&this._onStatusChanged(ye.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(ye.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<mh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(mh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}mf.MIN_RECONNECT_DELAY=0,mf.MAX_RECONNECT_DELAY=3e4,mf._subscriptionCounter=0;class mh extends mf{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+mJ.config.realm;return this._connectDeferred=new cb,(mJ.authenticated?mJ.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(mc)){let e=JSON.parse(t.substring(mc.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(md)){let e=JSON.parse(t.substring(md.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(mu)){let e=JSON.parse(t.substring(mu.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(mm)){let e=JSON.parse(t.substring(mm.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new cb,e.subscriptionId||(e.subscriptionId=mh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=mm+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new cb;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(mm+JSON.stringify(e)),t.promise}}mh._subscriptionCounter=1;let mp=["__proto__","constructor","prototype"];function mb(e){return!("string"!=typeof e||0===e.length||e.length>128||mp.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mg(e){return!(!mb(e)||e.indexOf("/")>-1)}let mv={lng:mg,ns:function(e){return mb(e)}};function my(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function m_(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let mw=/\{\{(.+?)\}\}/g;function mF(e,t){let n=!1,i=e.replace(mw,(e,i)=>{let o=i.trim();if(mp.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=mv[o]||mg,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let mx="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:mx&&"function"==typeof mx.fetch&&(e=mx.fetch);let mk=m_()&&mx?mx.XMLHttpRequest:void 0,mE="function"==typeof ActiveXObject&&mx?mx.ActiveXObject:void 0,mC=["__proto__","constructor","prototype"],mA=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))mC.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},mS=(t,n,i,o)=>{let r=e=>{if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then(t=>{i(null,{status:e.status,data:t})}).catch(i)};if(o){let e=o(t,n);if(e instanceof Promise)return void e.then(r).catch(i)}"function"==typeof fetch?fetch(t,n).then(r).catch(i):e(t,n).then(r).catch(i)},mT=(t,n,i,o)=>{if("function"==typeof i&&(o=i,i=void 0),o=o||(()=>{}),e&&0!==n.indexOf("file:")){var r=n,a=i,s=o;t.queryStringParams&&(r=mA(r,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(e["Content-Type"]="application/json");let l="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,c={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:l},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{mS(r,c,s,d)}catch(e){if(!l||0===Object.keys(l).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(l).forEach(e=>{delete c[e]}),mS(r,c,s,d),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(m_()||"function"==typeof ActiveXObject){var l=n,c=i,d=o;c&&"object"==typeof c&&(c=mA("",c).slice(1)),t.queryStringParams&&(l=mA(l,t.queryStringParams));try{let e=mk?new mk:new mE("MSXML2.XMLHTTP.3.0");e.open(c?"POST":"GET",l,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,c&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))mC.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(c)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var mI=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:mT,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,i,o){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return o(null,{});let a=mF(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(my).join(", ")+"] namespaces=["+n.map(my).join(", ")+"]"),!1);this.loadUrl(a,o,t,i)})}loadUrl(e,t,n,i){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof i?[i]:i),r=my(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,o,(e,o)=>{let a,s;if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+r+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+r+"; status code: "+o.status,!1);if(!o&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+my(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof o.data?this.options.parse(o.data,n,i):o.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,i,o){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,i),a=0,s=[],l=[];e.forEach(n=>{let i=this.options.addPath;"function"==typeof this.options.addPath&&(i=this.options.addPath(n,t));let c=mF(i,{lng:n,ns:t});if(null==c){a+=1,o&&a===e.length&&o(s,l);return}this.options.request(this.options,c,r,(t,n)=>{a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,i=e.language;if(i&&"cimode"===i.toLowerCase())return;let o=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>o.indexOf(e)&&o.push(e)})};r(i),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),o.forEach(t=>{this.allOptions.ns.forEach(i=>{e.read(t,i,"read",null,null,(o,r)=>{o&&n.warn(`loading namespace ${i} for language ${t} failed`,o),!o&&r&&n.log(`loaded namespace ${i} for language ${t}`,r),e.loaded(`${t}|${i}`,o,r)})})})}};mI.type="backend";class mO extends ry{constructor(e){if(super(e),this.it=en,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===en||null==e)return this._t=void 0,this.it=e;if(e===et)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}mO.directiveName="unsafeHTML",mO.resultType=1,rv(mO);class mR extends mO{}mR.directiveName="unsafeSVG",mR.resultType=2;let mD=rv(mR),m$={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var mL=function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class mM extends CustomEvent{constructor(){super(mM.NAME,{bubbles:!0,composed:!0})}}mM.NAME="or-iconset-added";let mN=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new mM)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return ee``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):ee``}},mB=class extends eF{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[g`
16
+ `;class eF extends ey{static finalizeStyles(e){return[ew,...super.finalizeStyles(e)]}}let ex=e=>(t,n)=>{void 0!==n?n.addInitializer(()=>{customElements.define(e,t)}):customElements.define(e,t)},ek={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:O};function eE(e){return(t,n)=>{let i;return"object"==typeof n?((e=ek,t,n)=>{let{kind:i,metadata:o}=n,r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===i&&((e=Object.create(e)).wrapped=!0),r.set(n.name,e),"accessor"===i){let{name:i}=n;return{set(n){let o=t.get.call(this);t.set.call(this,n),this.requestUpdate(i,o,e)},init(t){return void 0!==t&&this.C(i,void 0,e,t),t}}}if("setter"===i){let{name:i}=n;return function(n){let o=this[i];t.call(this,n),this.requestUpdate(i,o,e)}}throw Error("Unsupported decorator location: "+i)})(e,t,n):(i=t.hasOwnProperty(n),t.constructor.createProperty(n,e),i?Object.getOwnPropertyDescriptor(t,n):void 0)}}function eC(e){return eE({...e,state:!0,attribute:!1})}let eA=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,n),n);function eS(e,t){return(n,i,o)=>{let r=t=>t.renderRoot?.querySelector(e)??null;if(t){let e,{get:t,set:a}="object"==typeof i?n:o??(e=Symbol(),{get(){return this[e]},set(t){this[e]=t}});return eA(n,i,{get(){let e=t.call(this);return void 0===e&&(null!==(e=r(this))||this.hasUpdated)&&a.call(this,e),e}})}return eA(n,i,{get(){return r(this)}})}}var eT=n(5359),eI=n.n(eT),eO=n(1770),eR=n.n(eO),eD=n(8420),e$=n.n(eD),eL=n(5355),eM=n.n(eL),eN=n(9650),eB=n.n(eN),eP=n(9974),ej=n.n(eP),ez=n(9475),eU=n.n(ez),eH=n(4383),eV=n.n(eH),eW=n(2485),eG=n.n(eW),eq=n(8508),eY=n.n(eq),eK=n(6372),eX=n.n(eK),eJ=n(8466),eQ=n.n(eJ),eZ=n(8434),e0=n.n(eZ),e1=n(1582),e2=n.n(e1),e5=n(1285),e4=n.n(e5),e3=n(6461),e6=n.n(e3),e8=n(7564),e7=n.n(e8),e9=n(4360),te=n.n(e9),tt=n(469),tn=n.n(tt),ti=n(6672),to=n.n(ti),tr=n(6994),ta=n.n(tr),ts=n(9804),tl=n.n(ts),tc=n(1370),td=n.n(tc),tu=n(6520),tm=n.n(tu),tf=n(5482),th=n.n(tf);let tp="additionalProperties",tb="required";class tg{constructor(e){this.findOption=e,this.schemaObject=e=>{let t=this.properties(e),n={type:"object",properties:t,additionalProperties:this.findOption(t)(tp)},i=this.findOption(t)(tb);return i.length>0&&(n.required=i),n},this.properties=e=>Object.keys(e).reduce((t,n)=>(t[n]=this.property(e[n]),t),{}),this.property=e=>{switch(typeof e){case"string":return{type:"string"};case"boolean":return{type:"boolean"};case"number":if(Number.isInteger(e))return{type:"integer"};return{type:"number"};case"object":if(null==e)return{type:"null"};return this.schemaObjectOrArray(e);default:return{}}},this.schemaObjectOrArray=e=>e instanceof Array?this.schemaArray(e):this.schemaObject(e),this.schemaArray=e=>{if(!(e.length>0))return{type:"array",items:{}};{var t,n;let i,o=(t=e.map(this.property),n=e=>JSON.stringify(e),i={},t.filter(e=>{let t=n(e);return!Object.prototype.hasOwnProperty.call(i,t)&&(i[t]=!0,!0)}));return 1===o.length?{type:"array",items:o[0]}:{type:"array",items:{oneOf:o}}}}}}let tv=(e,t={})=>new tg(e=>n=>{switch(n){case tp:if(Object.prototype.hasOwnProperty.call(t,tp))return t[tp];return!0;case tb:if(Object.prototype.hasOwnProperty.call(t,tb))return t[tb](e);return Object.keys(e);default:return}}).schemaObject(e),ty=new Set,t_=(e,t)=>t<=1?e:e+t.toString(),tw=(e,t)=>{let n=t_(e,t);return!ty.has(n)},tF=e=>{void 0===e&&(e="undefined");let t=0;for(;!tw(e,t);)t++;let n=t_(e,t);return ty.add(n),n},tx=e=>ty.delete(e),tk=()=>ty.clear(),tE=(e,t)=>{let n=e;return(eI()(e)||eI()(t)||t.startsWith("[")||(n=e+"."),eI()(n))?t:eI()(t)?n:`${n}${t}`},tC=e=>{let t=e.replace(/(anyOf|allOf|oneOf)\/[\d]+\//g,"").replace(/(then|else)\//g,"").split("/").map(tT),n="#"===t[0]||""===t[0];return eM()(n?2:1,t.length,2).map(e=>t[e])},tA=e=>tC(e).join("."),tS=e=>e?.replace(/~/g,"~0").replace(/\//g,"~1"),tT=e=>e?.replace(/~1/g,"/").replace(/~0/,"~"),tI=e=>`/properties/${e.split(".").map(e=>tS(e)).join("/properties/")}`,tO=(e,t)=>{if(t&&"string"==typeof t.title)return t.title;if("string"==typeof e.scope){let t=e.scope,n=tT(t.substr(t.lastIndexOf("/")+1));return eR()(n)}return""},tR=e=>eR()(e.replace("_"," ")),tD=(e,t)=>{let n=e.label;return"boolean"==typeof n?t$(tO(e,t),n):"string"==typeof n?t$(n,!0):"object"==typeof n?t$("string"==typeof n.text?n.text:tO(e,t),"boolean"!=typeof n.show||n.show):t$(tO(e,t),!0)},t$=(e,t)=>({text:e,show:t}),tL=(e,t)=>eI()(t)?e:t.split(".").reduce((e,t)=>{if(e&&Object.prototype.hasOwnProperty.call(e,t))return e[t]},e),tM=(e,t={},n=!1)=>(void 0!==e.properties&&Object.keys(e.properties).forEach(n=>tM(e.properties[n],t)),"array"===e.type&&void 0!==e.items&&(Array.isArray(e.items)?n&&e.items.forEach(e=>tM(e,t)):tM(e.items,t)),Array.isArray(e.anyOf)&&e.anyOf.forEach(e=>tM(e,t)),void 0!==e.$ref&&(t[e.$ref]=e),t),tN=(e,t,n)=>tB(e,t?.split("/").map(tT),n),tB=(e,t,n)=>{if(eI()(e))return;if("string"==typeof e.$ref&&(e=tN(n,e.$ref,n)),!t||0===t.length)return e;let[i,...o]=t;if("#"===i||void 0===i||""===i)return tB(e,o,n);let r=tB(eB()(e,i),o,n);if(r)return r;if("properties"===i||"items"===i){let t;for(let r of[].concat(e.oneOf??[],e.allOf??[],e.anyOf??[],e.then??[],e.else??[]))if(t=tB(r,[i,...o],n))break;return t}},tP={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}};(bH=g1||(g1={})).HIDE="HIDE",bH.SHOW="SHOW",bH.ENABLE="ENABLE",bH.DISABLE="DISABLE";let tj=e=>t=>{t.options||(t.options={}),t.options.readonly=e},tz=e=>{tH(e,tj(!0))},tU=e=>{tH(e,tj(!1))},tH=(e,t)=>{if(!eI()(e)){if(tY(e))return void e.elements.forEach(e=>tH(e,t));t(e)}},tV=(e,t)=>{if(tZ(e)){if(tX(e)&&e.scope.endsWith(tI(t)))return e;else if(e.options?.detail)return tV(e.options.detail,t)}if(tY(e))for(let n of e.elements){let e=tV(n,t);if(void 0!==e)return e}},tW=(e,t)=>{if(!tX(e))return t??"";let n=tC(e.scope);return eI()(n)?t??"":tE(t,n.join("."))},tG=e=>"object"==typeof e&&null!==e&&"string"==typeof e.i18n,tq=e=>"Group"===e.type,tY=e=>void 0!==e.elements,tK=e=>!!e&&"object"==typeof e,tX=e=>tK(e)&&"string"==typeof e.scope,tJ=e=>!!e&&"object"==typeof e,tQ=e=>tJ(e)&&["string","boolean"].includes(typeof e.label),tZ=e=>"Control"===e.type,t0=(e,t,n,i)=>{if("AND"===t.type)return t.conditions.reduce((t,o)=>t&&t0(e,o,n,i),!0);if("OR"===t.type)return t.conditions.reduce((t,o)=>t||t0(e,o,n,i),!1);if("LEAF"===t.type)return tL(e,tW(t,n))===t.expectedValue;if(!ej()(t,"schema"))return!0;{let o=tL(e,tW(t,n));return(!t.failWhenUndefined||void 0!==o)&&i.validate(t.schema,o)}},t1=(e,t,n,i)=>t0(t,e.rule.condition,n,i),t2=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case g1.HIDE:return!o;case g1.SHOW:return o;default:return!0}},t5=(e,t,n,i)=>{let o=t1(e,t,n,i);switch(e.rule.effect){case g1.DISABLE:return!o;case g1.ENABLE:return o;default:return!0}},t4=e=>!!e.rule&&(e.rule.effect===g1.SHOW||e.rule.effect===g1.HIDE),t3=e=>!!e.rule&&(e.rule.effect===g1.ENABLE||e.rule.effect===g1.DISABLE),t6=(e,t,n,i)=>!e.rule||t2(e,t,n,i),t8=(e,t,n,i)=>!e.rule||t5(e,t,n,i),t7=e=>{if(e&&"object"==typeof e&&"properties"in e&&e.properties)return eU()(Object.keys(e.properties),t=>{let n=e.properties[t];return n&&"object"==typeof n&&"type"in n&&("string"===n.type||"number"===n.type||"integer"===n.type)})},t9=e=>!!e&&Object.prototype.hasOwnProperty.call(e,"oneOf")&&e.oneOf&&e.oneOf.every(e=>void 0!==e.const),ne=e=>!!e&&"object"==typeof e&&(Object.prototype.hasOwnProperty.call(e,"enum")||Object.prototype.hasOwnProperty.call(e,"const")),nt=(e,t)=>{let n=e.toISOString();if("date-time"===t);else if("date"===t)return n.split("T")[0];else if("time"===t)return n.split("T")[1].split(".")[0];return n},nn=e=>e.replace("#","root").replace(RegExp("/","g"),"_"),ni=(e,t)=>eG()(no(e),t),no=e=>{if(eI()(e))return[];if(!eI()(e.type)&&"string"==typeof e.type)return[e.type];if(eV()(e.type))return e.type;if(!eI()(e.properties)||!eI()(e.additionalProperties))return["object"];if(!eI()(e.items))return["array"];if(!eI()(e.enum)){let t=new Set;return e.enum.forEach(e=>{"string"==typeof e?t.add("string"):no(e).forEach(e=>t.add(e))}),Array.from(t)}if(!eI()(e.allOf)){let t=eU()(e.allOf,e=>0!==no(e).length);if(t)return no(t)}return[]},nr={schema:tN,data:tL},na={compose:tE,fromScoped:e=>tC(e.scope).join(".")},ns={isEnabled:(e,t,n)=>t8(e,t,void 0,n),isVisible:(e,t,n)=>t6(e,t,void 0,n)},nl=e=>{let t=new(eY())({allErrors:!0,verbose:!0,strict:!1,addUsedSchema:!1,...e});return eX()(t),t},nc=(e,t)=>void 0===e||e(t)?[]:e.errors,nd="YYYY-MM-DD",nu="HH:mm:ss",nm="YYYY-MM-DDTHH:mm:ss.sssZ",nf=e=>{let t=e.dataPath||e.instancePath||"";t=t.replace(/\//g,".");let n=(e=>{switch(e.keyword){case"required":case"dependencies":return e.params.missingProperty;case"additionalProperties":return e.params.additionalProperty;default:return}})(e);return void 0===n||t.endsWith(n)||(t=`${t}.${n}`),t=tT(t=t.replace(/^./,""))},nh=(e,t,n)=>i=>{let o=eQ()(i,e=>"oneOf"===e.keyword||"anyOf"===e.keyword).map(e=>nf(e));return eQ()(i,i=>{if(-1!==nb.indexOf(i.keyword)&&!t9(i.parentSchema))return!1;let r=n(nf(i)),a=i.parentSchema;return!r||np(a)||t9(a)||-1===o.findIndex(t=>e.startsWith(t))||(r=r&&e0()(a,t)),r})},np=e=>e?.type==="object"||!!e?.properties,nb=["additionalProperties","allOf","anyOf","oneOf"],ng=e=>null==e?"":e.join("\n"),nv={createLabelDescriptionFrom:tD,convertToValidClassName:nn},ny=e=>({type:e,elements:[]}),n_=e=>({type:"Control",scope:e}),nw=(e,t,n,i,o,r)=>{if(!eI()(e)&&void 0!==e.$ref)return nw(tN(r,e.$ref,r),t,n,i,o,r);if(!eI()(e)&&(!eI()(e.oneOf)||!eI()(e.anyOf)||!eI()(e.allOf))){let e=n_(n);return t.push(e),e}let a=no(e);if(0===a.length)return null;if(a.length>1){let e=n_(n);return t.push(e),e}if("#"===n&&"object"===a[0]){let a=ny(o);if(t.push(a),e.properties&&e$()(e.properties).length>1&&((e,t)=>{if(!eI()(t)){let n=eR()(t);tq(e)?e.label=n:e.elements.push({type:"Label",text:n})}})(a,i),!eI()(e.properties)){let t=n+"/properties";Object.keys(e.properties).map(n=>{let i=e.properties[n],s=`${t}/${tS(n)}`;void 0!==i.$ref&&(i=tN(r,i.$ref,r)),nw(i,a.elements,s,n,o,r)})}return a}switch(a[0]){case"object":case"array":case"string":case"number":case"integer":case"null":case"boolean":{let e=n_(n);return t.push(e),e}default:throw Error("Unknown type: "+JSON.stringify(e))}},nF=(e,t="VerticalLayout",n="#",i=e)=>((e,t)=>{if(!eI()(e)&&!tY(e)){let n=ny(t);return n.elements.push(e),n}return e})(nw(e,[],n,"",t,i),t),nx={jsonSchema:tv,uiSchema:nF,controlElement:n_},nk="jsonforms/INIT",nE="jsonforms/UPDATE_CORE",nC="jsonforms/SET_AJV",nA="jsonforms/UPDATE",nS="jsonforms/UPDATE_ERRORS",nT="jsonforms/VALIDATE",nI="jsonforms/ADD_RENDERER",nO="jsonforms/REMOVE_RENDERER",nR="jsonforms/ADD_CELL",nD="jsonforms/REMOVE_CELL",n$="jsonforms/SET_CONFIG",nL="jsonforms/ADD_UI_SCHEMA",nM="jsonforms/REMOVE_UI_SCHEMA",nN="jsonforms/SET_SCHEMA",nB="jsonforms/SET_UISCHEMA",nP="jsonforms/SET_VALIDATION_MODE",nj="jsonforms/SET_LOCALE",nz="jsonforms/SET_TRANSLATOR",nU="jsonforms/UPDATE_I18N",nH="jsonforms/ADD_DEFAULT_DATA",nV="jsonforms/REMOVE_DEFAULT_DATA",nW=e=>{if(!("type"in e)||"string"!=typeof e.type)return!1;switch(e.type){case"ADD":return"values"in e&&Array.isArray(e.values)&&e.values.length>0;case"REMOVE":return"indices"in e&&Array.isArray(e.indices)&&e.indices.length>0&&e.indices.every(e=>"number"==typeof e);case"MOVE":return"moves"in e&&Array.isArray(e.moves)&&e.moves.length>0&&e.moves.every(e=>"object"==typeof e&&null!==e&&"from"in e&&"to"in e&&"number"==typeof e.from&&"number"==typeof e.to);default:return!1}},nG=(e,t=tv(e),n,i)=>({type:nk,data:e,schema:t,uischema:"object"==typeof n?n:nF(t),options:i}),nq=(e,t,n,i)=>({type:nE,data:e,schema:t,uischema:n,options:i}),nY=(e,t)=>({type:nH,schemaPath:e,data:t}),nK=e=>({type:nV,schemaPath:e}),nX=e=>({type:nC,ajv:e}),nJ=(e,t,n)=>({type:nA,path:e,updater:t,context:n}),nQ=e=>({type:nS,errors:e}),nZ=(e,t)=>({type:nI,tester:e,renderer:t}),n0=(e,t)=>({type:nR,tester:e,cell:t}),n1=(e,t)=>({type:nD,tester:e,cell:t}),n2=(e,t)=>({type:nO,tester:e,renderer:t}),n5=e=>({type:n$,config:e}),n4=e=>({type:nP,validationMode:e}),n3=(e,t)=>({type:nL,tester:e,uischema:t}),n6=e=>({type:nM,tester:e}),n8=e=>({type:nj,locale:e}),n7=e=>({type:nN,schema:e}),n9=(e,t)=>({type:nz,translator:e,errorTranslator:t}),ie=(e,t,n)=>({type:nU,locale:e,translator:t,errorTranslator:n}),it=e=>({type:nB,uischema:e});var ii=Object.freeze({__proto__:null,INIT:nk,UPDATE_CORE:nE,SET_AJV:nC,UPDATE_DATA:nA,UPDATE_ERRORS:nS,VALIDATE:nT,ADD_RENDERER:nI,REMOVE_RENDERER:nO,ADD_CELL:nR,REMOVE_CELL:nD,SET_CONFIG:n$,ADD_UI_SCHEMA:nL,REMOVE_UI_SCHEMA:nM,SET_SCHEMA:nN,SET_UISCHEMA:nB,SET_VALIDATION_MODE:nP,SET_LOCALE:nj,SET_TRANSLATOR:nz,UPDATE_I18N:nU,ADD_DEFAULT_DATA:nH,REMOVE_DEFAULT_DATA:nV,isUpdateArrayContext:nW,init:nG,updateCore:nq,registerDefaultData:nY,unregisterDefaultData:nK,setAjv:nX,update:nJ,updateErrors:nQ,registerRenderer:nZ,registerCell:n0,unregisterCell:n1,unregisterRenderer:n2,setConfig:n5,setValidationMode:n4,registerUISchema:n3,unregisterUISchema:n6,setLocale:n8,setSchema:n7,setTranslator:n9,updateI18n:ie,setUISchema:it});let io=(e=[],{type:t,tester:n,cell:i})=>{switch(t){case nR:return e.concat([{tester:n,cell:i}]);case nD:return e.filter(e=>e.tester!==n);default:return e}},ir={restrict:!1,trim:!1,showUnfocusedDescription:!1,hideRequiredAsterisk:!1},ia=(e={})=>e2()({},ir,e),is=(e=ia(),t)=>t.type===n$?ia(t.config):e,il={data:{},schema:{},uischema:void 0,errors:[],validator:void 0,ajv:void 0,validationMode:"ValidateAndShow",additionalErrors:[]},ic=(e,t)=>t&&id(t.options)?t.options.validationMode:e.validationMode,id=e=>!!e&&void 0!==e.validationMode,iu=(e,t)=>{var n;return t&&(n=t.options)&&void 0!==n.additionalErrors?t.options.additionalErrors:e.additionalErrors},im=(e,t)=>{if(t){if(ih(t.options))return t.options.ajv;else if(void 0!==t.options&&te()(t.options.compile))return t.options}return e.ajv?e.ajv:nl()},ih=e=>!!e&&void 0!==e.ajv,ip=(e=il,t)=>{switch(t.type){case nk:{let n=im(e,t),i=ic(e,t),o="NoValidation"===i?void 0:n.compile(t.schema),r=nc(o,t.data),a=iu(e,t);return{...e,data:t.data,schema:t.schema,uischema:t.uischema,additionalErrors:a,errors:r,validator:o,ajv:n,validationMode:i}}case nE:{let n=im(e,t),i=ic(e,t),o=e.validator,r=e.errors;e.schema!==t.schema||e.validationMode!==i||e.ajv!==n?r=nc(o="NoValidation"===i?void 0:n.compile(t.schema),t.data):e.data!==t.data&&(r=nc(o,t.data));let a=iu(e,t);return e.data!==t.data||e.schema!==t.schema||e.uischema!==t.uischema||e.ajv!==n||e.errors!==r||e.validator!==o||e.validationMode!==i||e.additionalErrors!==a?{...e,data:t.data,schema:t.schema,uischema:t.uischema,ajv:n,errors:e0()(r,e.errors)?e.errors:r,validator:o,validationMode:i,additionalErrors:a}:e}case nC:{let n=t.ajv,i="NoValidation"===e.validationMode?void 0:n.compile(e.schema),o=nc(i,e.data);return{...e,validator:i,errors:o}}case nN:{let n=t.schema&&e.ajv&&"NoValidation"!==e.validationMode?e.ajv.compile(t.schema):e.validator,i=nc(n,e.data);return{...e,validator:n,schema:t.schema,errors:i}}case nB:return{...e,uischema:t.uischema};case nA:if(void 0===t.path||null===t.path)return e;if(""===t.path){let n=t.updater(e4()(e.data)),i=nc(e.validator,n);return{...e,data:n,errors:i}}{let n,i=eB()(e.data,t.path),o=t.updater(e4()(i));n=void 0!==o?e6()(t.path,o,void 0===e.data?{}:e.data):e7()(t.path,void 0===e.data?{}:e.data);let r=nc(e.validator,n);return{...e,data:n,errors:r}}case nS:return{...e,errors:t.errors};case nP:if(e.validationMode===t.validationMode)return e;if("NoValidation"===t.validationMode){let n=nc(void 0,e.data);return{...e,errors:n,validationMode:t.validationMode}}if("NoValidation"===e.validationMode){let n=e.ajv.compile(e.schema),i=nc(n,e.data);return{...e,validator:n,errors:i,validationMode:t.validationMode}}return{...e,validationMode:t.validationMode};default:return e}},ib=(e=[],t)=>{switch(t.type){case nH:return e.concat([{schemaPath:t.schemaPath,data:t.data}]);case nV:return e.filter(e=>e.schemaPath!==t.schemaPath);default:return e}},ig=e=>iv(eB()(e,"jsonforms.defaultData")),iv=e=>e;(bV=g2||(g2={})).addTooltip="addTooltip",bV.addAriaLabel="addAriaLabel",bV.removeTooltip="removeTooltip",bV.upAriaLabel="upAriaLabel",bV.downAriaLabel="downAriaLabel",bV.noSelection="noSelection",bV.removeAriaLabel="removeAriaLabel",bV.noDataMessage="noDataMessage",bV.deleteDialogTitle="deleteDialogTitle",bV.deleteDialogMessage="deleteDialogMessage",bV.deleteDialogAccept="deleteDialogAccept",bV.deleteDialogDecline="deleteDialogDecline",bV.up="up",bV.down="down";let iy=[{key:g2.addTooltip,default:e=>e?`Add to ${e}`:"Add"},{key:g2.addAriaLabel,default:e=>e?`Add to ${e} button`:"Add button"},{key:g2.removeTooltip,default:()=>"Delete"},{key:g2.removeAriaLabel,default:()=>"Delete button"},{key:g2.upAriaLabel,default:()=>"Move item up"},{key:g2.up,default:()=>"Up"},{key:g2.down,default:()=>"Down"},{key:g2.downAriaLabel,default:()=>"Move item down"},{key:g2.noDataMessage,default:()=>"No data"},{key:g2.noSelection,default:()=>"No selection"},{key:g2.deleteDialogTitle,default:()=>"Confirm Deletion"},{key:g2.deleteDialogMessage,default:()=>"Are you sure you want to delete the selected entry?"},{key:g2.deleteDialogAccept,default:()=>"Yes"},{key:g2.deleteDialogDecline,default:()=>"No"}];(bW=g5||(g5={})).clearDialogTitle="clearDialogTitle",bW.clearDialogMessage="clearDialogMessage",bW.clearDialogAccept="clearDialogAccept",bW.clearDialogDecline="clearDialogDecline";let i_=[{key:g5.clearDialogTitle,default:()=>"Clear form?"},{key:g5.clearDialogMessage,default:()=>"Your data will be cleared. Do you want to proceed?"},{key:g5.clearDialogAccept,default:()=>"Yes"},{key:g5.clearDialogDecline,default:()=>"No"}],iw=(e,t)=>tG(t)?t.i18n:e?.i18n??void 0,iF=e=>e?.split(".").filter(e=>!/^\d+$/.test(e)).join(".")||"root",ix=(e,t,n)=>iw(e,t)??iF(n),ik=(e,t,n,i)=>`${ix(e,t,n)}.${i}`,iE=(e,t)=>`${e}.${t}`,iC=(e,t)=>t,iA=(e,t,n)=>{let i=t(ik(e.parentSchema,n,nf(e),`error.${e.keyword}`),void 0,{error:e});if(void 0!==i)return i;let o=t(`error.${e.keyword}`,void 0,{error:e});if(void 0!==o)return o;let r=t(e.message,void 0,{error:e});return void 0!==r?r:"required"===e.keyword&&e.message?.startsWith("must have required property")?t("is a required property","is a required property",{error:e}):e.message},iS=(e,t,n,i,o,r)=>{if(e.length>0&&n){let t=n(ik(i,o,r,"error.custom"),void 0,{schema:i,uischema:o,path:r,errors:e});if(void 0!==t)return t}return ng(e.map(e=>t(e,n,o)))},iT=(e,t)=>{if(!1===e.label||(void 0===e.label||null===e.label||!0===e.label)&&!tG(e))return;let n="string"==typeof e.label?e.label:JSON.stringify(e.label),i=iw(void 0,e);return t("string"==typeof i?`${i}.label`:n,n,{uischema:e})},iI=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iO=(e,t,n,i)=>{let o={};return t.forEach(t=>{let r=iE(n,t.key);o[t.key]=e(r,t.default(i))}),o},iR=e=>{if(void 0!==e)return e.locale},iD=e=>void 0===e?iC:e.translate,i$=e=>void 0===e?iA:e.translateError,iL=e=>iR(eB()(e,"jsonforms.i18n")),iM=()=>e=>iD(eB()(e,"jsonforms.i18n")),iN=()=>e=>i$(eB()(e,"jsonforms.i18n")),iB={locale:"en",translate:iC,translateError:iA},iP=(e=iB,t)=>{switch(t.type){case nU:{let n=t.locale??iB.locale,i=t.translator??iB.translate,o=t.errorTranslator??iB.translateError;if(n!==e.locale||i!==e.translate||o!==e.translateError)return{...e,locale:n,translate:i,translateError:o};return e}case nz:return{...e,translate:t.translator??iC,translateError:t.errorTranslator??iA};case nj:return{...e,locale:t.locale??navigator.languages[0]};default:return e}},ij=(e=[],t)=>{switch(t.type){case nI:return e.concat([{tester:t.tester,renderer:t.renderer}]);case nO:return e.filter(e=>e.tester!==t.tester);default:return e}},iz=e=>!eI()(e)&&void 0!==e.scope,iU=e=>(t,n,i)=>{if(eI()(t)||!iz(t)||eI()(n))return!1;let o=t.scope;if(eI()(o))return!1;let r=n;return ni(n,"object")&&(r=tN(n,o,i?.rootSchema)),void 0!==r&&e(r,i?.rootSchema)},iH=(e,t)=>(n,i,o)=>{if(eI()(n)||!iz(n))return!1;let r=n.scope,a=i;return ni(i,"object")&&(a=tN(i,r,o?.rootSchema)),void 0!==(a=eB()(a,e))&&t(a,o?.rootSchema)},iV=e=>iU(t=>!eI()(t)&&ni(t,e)),iW=e=>iU(t=>!eI()(t)&&t.format===e&&ni(t,"string")),iG=e=>t=>!eI()(t)&&t.type===e,iq=(e,t)=>n=>{if(eI()(n))return!1;let i=n.options;return!eI()(i)&&i[e]===t},iY=e=>t=>{if(eI()(t))return!1;let n=t.options;return!eI()(n)&&!th()(n[e])},iK=e=>t=>!eI()(e)&&!!iz(t)&&ta()(t.scope,e),iX=e=>t=>{if(eI()(e)||!iz(t))return!1;let n=t.scope;return!eI()(n)&&tl()(n.split("/"))===e},iJ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e&&o(t,n,i),!0),iQ=(...e)=>(t,n,i)=>e.reduce((e,o)=>e||o(t,n,i),!1),iZ=(e,t)=>(n,i,o)=>t(n,i,o)?e:-1,i0=(e,t)=>(n,i,o)=>{let r=t(n,i,o);return -1===r?-1:r+e},i1=iJ(iG("Control"),iV("boolean")),i2=iJ(iG("Control"),iV("object")),i5=iJ(iG("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"allOf"))),i4=iJ(iG("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"anyOf"))),i3=iJ(iG("Control"),iU(e=>Object.prototype.hasOwnProperty.call(e,"oneOf"))),i6=iJ(iG("Control"),iU(e=>ne(e))),i8=iJ(iG("Control"),iU(e=>t9(e))),i7=iJ(iG("Control"),iV("integer")),i9=iJ(iG("Control"),iV("number")),oe=iJ(iG("Control"),iV("string")),ot=iJ(iG("Control"),iq("multi",!0)),on=iJ(iG("Control"),iQ(iW("date"),iq("format","date"))),oi=iJ(iG("Control"),iQ(iW("time"),iq("format","time"))),oo=iJ(iG("Control"),iQ(iW("date-time"),iq("format","date-time"))),or=iJ(iU((e,t)=>ni(e,"array")&&!Array.isArray(tN(e,"items",t))),iH("items",(e,t)=>ni(e.$ref?tN(t,e.$ref,t):e,"object"))),oa=iJ(iG("Control"),or),os=(e,t,n)=>{if(eV()(e))return td()(e,(e,i)=>e||os(i,t,n),!1);if(t(e))return!0;if(e.$ref){let i=tN(n,e.$ref,n);if(i&&!i.$ref)return os(i,t,n)}return e.items?os(e.items,t,n):!!e.properties&&td()(tm()(e.properties),(e,[i,o])=>e||os(o,t,n),!1)},ol=(e,t,n)=>{if(!iG("Control")(e,t,n))return!1;let i=tN(t,e.scope,n?.rootSchema??t),o=0;if(void 0!==i&&void 0!==i.items){if(os(i.items,e=>e!==t&&void 0===e.$ref&&(!!(e.anyOf||e.allOf||e.oneOf&&!t9(e)||ni(e,"object")&&2==++o)||!!ni(e,"array")),n?.rootSchema))return!0;if(e.options&&e.options.detail){if("string"==typeof e.options.detail)return"DEFAULT"!==e.options.detail.toUpperCase();else if("object"==typeof e.options.detail&&e.options.detail.type)return!0}}return!1},oc=oa,od=iJ(iG("Control"),iU((e,t)=>0!==no(e).length&&!Array.isArray(tN(e,"items",t))),iH("items",(e,t)=>{let n=no(e.$ref?tN(t,e.$ref,t):e);return 1===n.length&&eG()(["integer","number","boolean","string"],n[0])})),ou=iJ(iG("Control"),iQ(iV("number"),iV("integer")),iU(e=>Object.prototype.hasOwnProperty.call(e,"maximum")&&Object.prototype.hasOwnProperty.call(e,"minimum")&&Object.prototype.hasOwnProperty.call(e,"default")),iq("slider",!0)),om=iJ(iG("Control"),iV("integer"),iq("format",!0)),of=e=>"Categorization"===e.type,oh=e=>"Category"===e.type,op=e=>!eI()(e.elements)&&e.elements.map(e=>of(e)?op(e):oh(e)).reduce((e,t)=>e&&t,!0),ob=e=>op(e),og=e=>(t,n,i)=>!e(t,n,i);var ov=Object.freeze({__proto__:null,NOT_APPLICABLE:-1,isControl:iz,schemaMatches:iU,schemaSubPathMatches:iH,schemaTypeIs:iV,formatIs:iW,uiTypeIs:iG,optionIs:iq,hasOption:iY,scopeEndsWith:iK,scopeEndIs:iX,and:iJ,or:iQ,rankWith:iZ,withIncreasedRank:i0,isBooleanControl:i1,isObjectControl:i2,isAllOfControl:i5,isAnyOfControl:i4,isOneOfControl:i3,isEnumControl:i6,isOneOfEnumControl:i8,isIntegerControl:i7,isNumberControl:i9,isStringControl:oe,isMultiLineControl:ot,isDateControl:on,isTimeControl:oi,isDateTimeControl:oo,isObjectArray:or,isObjectArrayControl:oa,isObjectArrayWithNesting:ol,isArrayObjectControl:oc,isPrimitiveArrayControl:od,isRangeControl:ou,isNumberFormatControl:om,isCategorization:of,isCategory:oh,hasCategory:op,categorizationHasCategory:ob,not:og});let oy=(e=[],t)=>{switch(t.type){case nL:return e.slice().concat({tester:t.tester,uischema:t.uischema});case nM:{let n=e.slice();return to()(n,e=>e.tester===t.tester),n}default:return e}},o_=e=>(t,n,i)=>{let o=tn()(e,e=>e.tester(t,n,i));if(void 0!==o&&-1!==o.tester(t,n,i))return o.uischema},ow={core:ip,renderers:ij,cells:io,config:is,uischemas:oy,defaultData:ib,i18n:iP},oF=(e,t,n,i,o="VerticalLayout",r,a)=>{if(r&&r.options&&r.options.detail){if("string"==typeof r.options.detail){if("GENERATE"===r.options.detail.toUpperCase())return"function"==typeof o?o():nx.uiSchema(t,o,void 0,a)}else if("object"==typeof r.options.detail&&r.options.detail.type&&"string"==typeof r.options.detail.type)return r.options.detail}let s=o_(e)(t,n,i);return void 0===s?"function"==typeof o?o():nx.uiSchema(t,o,"#",a):s},ox=(e,t,n)=>n(e,t),ok=(e,t,n)=>i=>{let o=i.errors??[],r=i.additionalErrors??[];return nh(e,t,n)("ValidateAndHide"===i.validationMode?r:[...o,...r])},oE=(e,t)=>ok(e,t,t=>t===e),oC=(e,t)=>ok(e,t,t=>t.startsWith(e+".")),oA=(e,t)=>n=>oE(e,t)(n.jsonforms.core),oS=(e,t)=>n=>oC(e,t)(n.jsonforms.core),oT=e=>oM(eB()(e,"jsonforms.core")),oI=e=>oN(eB()(e,"jsonforms.core")),oO=e=>oB(eB()(e,"jsonforms.core")),oR=e=>oP(eB()(e,"jsonforms.core")),oD=e=>eB()(e,"jsonforms.renderers"),o$=e=>eB()(e,"jsonforms.cells"),oL=e=>eB()(e,"jsonforms.uischemas"),oM=e=>eB()(e,"data"),oN=e=>eB()(e,"schema"),oB=e=>eB()(e,"uischema"),oP=e=>eB()(e,"ajv"),oj=e=>e.jsonforms.config,oz=(e,t,n,i,o,r)=>!e?.jsonforms?.readonly&&(n&&t3(n)?t8(n,o,t?.path,oR(e)):"boolean"==typeof n?.options?.readonly?!n.options.readonly:"boolean"==typeof n?.options?.readOnly?!n.options.readOnly:"boolean"==typeof r?.readonly?!r.readonly:"boolean"==typeof r?.readOnly?!r.readOnly:i?.readOnly!==!0&&("boolean"!=typeof t?.enabled||t.enabled)),oU=(e,t,n)=>{let i=t+n;if(i<0||i>=e.length)return;let o=[t,i].sort((e,t)=>e-t);e.splice(o[0],2,e[o[1]],e[o[0]])},oH=(e,t)=>{oU(e,t,-1)},oV=(e,t)=>{oU(e,t,1)},oW=(e,t,n)=>`${e??""}${t&&!n?"*":""}`,oG=(e,t)=>e&&!t,oq=(e,t)=>{let n=oY(e,t);return void 0===n?{}:n},oY=(e,t)=>{let n="string"==typeof e.$ref?nr.schema(t,e.$ref,t):e;if(void 0!==n.default)return oX(n,t);if(ni(n,"string"))return"date-time"===n.format||"date"===n.format||"time"===n.format?nt(new Date,n.format):"";if(ni(n,"integer")||ni(n,"number"))return 0;if(ni(n,"boolean"))return!1;if(ni(n,"array"))return[];if(ni(n,"object"))return oX(n,t);if(ni(n,"null"))return null;for(let n of["oneOf","anyOf","allOf"])if(e[n]&&Array.isArray(e[n])){let i=oK(e[n],t);if(void 0!==i)return i}},oK=(e,t)=>{if(e.length>0)for(let n of e){let e=oY(n,t);if(void 0!==e)return e}},oX=(e,t)=>{if(ni(e,"object")&&void 0===e.default){let n={};for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}return e.allOf&&Array.isArray(e.allOf)&&e.allOf.forEach(e=>{if(e&&e.properties)for(let i in e.properties){let o=e.properties[i],r=o.$ref?nr.schema(t,o.$ref,t):o;r&&void 0!==r.default&&(n[i]=e4()(r.default))}}),n}return e4()(e.default)},oJ=(e,t,n,i)=>void 0===t||void 0!==t&&!e||!i&&!n,oQ=(e,t,n)=>{let i="string"==typeof e?e:JSON.stringify(e);return t&&(i=t(n?`${n}.${i}`:i,i)),{label:i,value:e}},oZ=(e,t,n)=>{let i=e.title??("string"==typeof e.const?e.const:JSON.stringify(e.const));return t&&(i=e.i18n?t(e.i18n,i):t(n?`${n}.${i}`:i,i)),{label:i,value:e.const}},o0=(e,t)=>{var n,i;let o,r,a,s,{uischema:l}=t,c=oT(e),d=tW(l,t.path),u=void 0===t.visible||t4(l)?t6(l,c,t.path,oR(e)):t.visible,m=t.id,f=oI(e),h=void 0!==l.scope&&(n=t.schema,i=l.scope,r=tT((o=i.split("/"))[o.length-1]),a=o.slice(0,o.length-2).join("/"),void 0!==(s=nr.schema(n,a,f))&&void 0!==s.required&&-1!==s.required.indexOf(r)),p=nr.schema(t.schema||f,l.scope,f),b=oA(d,p)(e),g=void 0!==p?p.description:"",v=nr.data(c,d),y=tD(l,p),_=y.show?y.text:"",w=oj(e),F=oz(e,t,l,p||f,c,w),x=p??f,k=iM()(e),E=iN()(e),C=ix(x,l,d),A=k(ik(x,l,d,"label"),_,{schema:x,uischema:l,path:d,errors:b});return{data:v,description:k(ik(x,l,d,"description"),g,{schema:x,uischema:l,path:d,errors:b}),errors:iS(b,E,k,x,l,d),label:A,visible:u,enabled:F,id:m,path:d,required:h,uischema:l,schema:x,config:oj(e),cells:t.cells||e.jsonforms.cells,rootSchema:f,i18nKeyPrefix:C}},o1=e=>({handleChange(t,n){e(nJ(t,()=>n))}}),o2=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,iM()(e),ix(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,iM()(e),ix(n.schema,n.uischema,n.path))];return{...n,options:i}},o5=(e,t)=>{let n=o0(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,iM()(e),ix(n.schema,n.uischema,n.path)));return{...n,options:i}},o4=(e,t)=>{let n=o0(e,t),i=n.schema.items;i=i&&i.$ref?tN(n.rootSchema,i.$ref,n.rootSchema):i;let o=t.options||i?.oneOf&&i.oneOf.map(t=>oZ(t,e.jsonforms.i18n?.translate,ix(n.schema,n.uischema,n.path)))||i?.enum?.map(t=>oQ(t,e.jsonforms.i18n?.translate,ix(n.schema,n.uischema,n.path)));return{...n,options:o}},o3=(e,t)=>{let{schema:n,path:i,uischema:o,childLabelProp:r,index:a}=t,s=tE(i,`${a}`),l=rd(oT(e),s,r,n,oI(e),e.jsonforms.i18n.translate,o);return{...t,childLabel:l}},o6=(e,t)=>{let{...n}=o0(e,t);return{...n,uischemas:e.jsonforms.uischemas}},o8=(e,t)=>{let{path:n,schema:i,uischema:o,label:r,...a}=o6(e,t),s=nr.schema(i,"items",a.rootSchema),l=oS(n,s)(e);return{...a,label:r,path:n,uischema:o,schema:s,arraySchema:i,childErrors:l,renderers:t.renderers||oD(e),cells:t.cells||o$(e)}},o7=e=>({addItem:(t,n)=>()=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e),{type:"ADD",values:[n]}))},removeItems:(t,n)=>()=>{e(nJ(t,e=>(n.sort((e,t)=>e-t).reverse().forEach(t=>e.splice(t,1)),e),{type:"REMOVE",indices:n}))},moveUp:(t,n)=>()=>{e(nJ(t,e=>(oH(e,n),e),{type:"MOVE",moves:[{from:n,to:n-1}]}))},moveDown:(t,n)=>()=>{e(nJ(t,e=>(oV(e,n),e),{type:"MOVE",moves:[{from:n,to:n+1}]}))}}),o9=e=>({addItem:(t,n)=>{e(nJ(t,e=>null==e?[n]:(e.push(n),e)))},removeItem:(t,n)=>{e(nJ(t,e=>{let t=e.indexOf(n);return e.splice(t,1),e}))}}),re={visible:!0,enabled:!0,path:"",direction:"column"},rt=(e,t)=>{let n=oT(e),{uischema:i}=t,o=void 0===t.visible||t4(i)?t6(t.uischema,n,t.path,oR(e)):t.visible,r=nr.data(n,t.path),a=oj(e),s=oz(e,t,i,void 0,n,a),l=iM()(e),c=tJ(i)?iT(i,l):void 0;return{...re,renderers:t.renderers||oD(e),cells:t.cells||o$(e),visible:o,enabled:s,path:t.path,data:r,uischema:t.uischema,schema:t.schema,direction:t.direction??("HorizontalLayout"===i.type?"row":"VerticalLayout"===i.type?"column":re.direction),config:a,label:c}},rn=(e,t)=>({renderers:t.renderers||eB()(e.jsonforms,"renderers"),cells:t.cells||eB()(e.jsonforms,"cells"),schema:t.schema||oI(e),rootSchema:oI(e),uischema:t.uischema||oO(e),path:t.path,enabled:t.enabled,config:oj(e)}),ri={...re,errors:[]},ro=(e,t,n)=>{let i,{data:o,schema:r,rootSchema:a,i18nKeyPrefix:s,label:l,...c}=o0(e,t),d=e.jsonforms.core.ajv,u=["required","additionalProperties","type","enum","const"],m=e=>!e||0===e.length||!e.find(e=>-1!==u.indexOf(e.keyword));for(let e=0;e<r[n]?.length;e++)try{let t=r[n][e];t.$ref&&(t=nr.schema(a,t.$ref,a));let s=d.compile(t);if(s(o),m(s.errors)){i=e;break}}catch(e){console.debug("Combinator subschema is not self contained, can't hand it over to AJV")}return{data:o,schema:r,rootSchema:a,...c,i18nKeyPrefix:s,label:l,indexOfFittingSchema:i,uischemas:oL(e)}},rr=(e,t)=>ro(e,t,"allOf"),ra=(e,t)=>ro(e,t,"anyOf"),rs=(e,t)=>ro(e,t,"oneOf"),rl=(e,t)=>{let{path:n,schema:i,uischema:o,errors:r,label:a,...s}=o6(e,t),l=nr.schema(i,"items",s.rootSchema),c=iM()(e),d=iS(oS(n,l)(e),iN()(e),c,void 0,void 0,void 0),u=r+(r.length>0&&d.length>0?"\n":"")+d;return{...s,label:a,path:n,uischema:o,schema:l,arraySchema:i,data:s.data?s.data.length:0,errors:u,minItems:i.minItems}},rc=(e,t)=>{let{uischema:n}=t,i=void 0===t.visible||t4(n)?t6(t.uischema,oT(e),t.path,oR(e)):t.visible,o=n.text,r=iM()(e),a=iw(void 0,n);return{text:r(a?`${a}.text`:o??"",o,{uischema:n}),visible:i,config:oj(e),renderers:t.renderers||oD(e),cells:t.cells||o$(e),uischema:n}},rd=(e,t,n,i,o,r,a)=>{let s,l=nr.data(e,t);if(n||(n=t7(i)),!n)return"";let c=eB()(l,n);if(void 0===c)return"";let d=nr.schema(i,"#"+tI(n),o);if(ne(d))s=oQ(c,r,ix(d,tV(a,n),t+"."+n));else if(t9(d)){let e=d.oneOf.find(e=>e0()(e.const,c));e&&(s=oZ(e,r,ix(e,void 0,t+"."+n)))}return s?s.label:c},ru=(e,t)=>{let n,{id:i,schema:o,path:r,uischema:a,renderers:s,cells:l}=t,c=oT(e),d=void 0!==t.visible?t.visible:t6(a,c,void 0,oR(e)),u=oI(e),m=oj(e);n=!0!==e.jsonforms.readonly&&("boolean"==typeof t.enabled?t.enabled:oz(e,t,a,o||u,c,m));let f=iM()(e),h=iN()(e),p=iS(oA(r,o)(e),h,f,o,a,r),b=eI()(p);return{data:nr.data(c,r),visible:d,enabled:n,id:i,path:r,errors:p,isValid:b,schema:o,uischema:a,config:oj(e),rootSchema:u,renderers:s,cells:l}},rm=(e,t)=>{let n=ru(e,t),{renderers:i,cells:o,...r}=t;return{...n,...r,cells:o||e.jsonforms.cells||[]}},rf=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.enum?.map(t=>oQ(t,iM()(e),ix(n.schema,n.uischema,n.path)))||n.schema.const&&[oQ(n.schema.const,iM()(e),ix(n.schema,n.uischema,n.path))];return{...n,options:i}},rh=(e,t)=>{let n=ru(e,t),i=t.options||n.schema.oneOf?.map(t=>oZ(t,iM()(e),ix(n.schema,n.uischema,n.path)));return{...n,options:i}},rp=o1,rb=(e,t)=>{let{handleChange:n}=rp(e);return{handleChange:t.handleChange||n}},rg=(e,t,n,i,o,r)=>e.map((e,a)=>{let s=e.$ref&&nr.schema(t,e.$ref,t),l=s??e;return{schema:l,uischema:oF(r,l,i.scope,o,void 0,i,t),label:e.title??s?.title??`${n}-${a}`}}),rv=e=>(...t)=>({_$litDirective$:e,values:t});class ry{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,n){this._$Ct=e,this._$AM=t,this._$Ci=n}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}let r_=rv(class extends ry{constructor(e){if(super(e),1!==e.type||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(void 0===this.st){for(let n in this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e))),t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let n=e.element.classList;for(let e of this.st)e in t||(n.remove(e),this.st.delete(e));for(let e in t){let i=!!t[e];i===this.st.has(e)||this.nt?.has(e)||(i?(n.add(e),this.st.add(e)):(n.remove(e),this.st.delete(e)))}return et}}),{I:rw}={M:N,P:B,A:P,C:1,L:ea,R:ec,D:W,V:el,I:ed,H:eu,N:ef,U:eh,B:em,F:ep},rF=(e,t)=>{let n=e._$AN;if(void 0===n)return!1;for(let e of n)e._$AO?.(t,!1),rF(e,t);return!0},rx=e=>{let t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===n?.size)},rk=e=>{for(let t;t=e._$AM;e=t){let n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),rA(t)}};function rE(e){void 0!==this._$AN?(rx(this),this._$AM=e,rk(this)):this._$AM=e}function rC(e,t=!1,n=0){let i=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(i))for(let e=n;e<i.length;e++)rF(i[e],!1),rx(i[e]);else null!=i&&(rF(i,!1),rx(i));else rF(this,e)}let rA=e=>{2==e.type&&(e._$AP??=rC,e._$AQ??=rE)};class rS extends ry{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,t,n){super._$AT(e,t,n),rk(this),this.isConnected=e._$AU}_$AO(e,t=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),t&&(rF(this,e),rx(this))}setValue(e){if(void 0===this._$Ct.strings)this._$Ct._$AI(e,this);else{let t=[...this._$Ct._$AH];t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}disconnected(){}reconnected(){}}class rT{constructor(e){this.G=e}disconnect(){this.G=void 0}reconnect(e){this.G=e}deref(){return this.G}}class rI{constructor(){this.Y=void 0,this.Z=void 0}get(){return this.Y}pause(){this.Y??=new Promise(e=>this.Z=e)}resume(){this.Z?.(),this.Y=this.Z=void 0}}let rO=e=>null!==e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then,rR=rv(class extends rS{constructor(){super(...arguments),this._$Cwt=0x3fffffff,this._$Cbt=[],this._$CK=new rT(this),this._$CX=new rI}render(...e){return e.find(e=>!rO(e))??et}update(e,t){let n=this._$Cbt,i=n.length;this._$Cbt=t;let o=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let e=0;e<t.length&&!(e>this._$Cwt);e++){let a=t[e];if(!rO(a))return this._$Cwt=e,a;e<i&&a===n[e]||(this._$Cwt=0x3fffffff,i=0,Promise.resolve(a).then(async e=>{for(;r.get();)await r.get();let t=o.deref();if(void 0!==t){let n=t._$Cbt.indexOf(a);n>-1&&n<t._$Cwt&&(t._$Cwt=n,t.setValue(e))}}))}return et}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});var rD=function(e,t){return(rD=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r$(e,t){function n(){this.constructor=e}rD(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rL=function(){return(rL=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rM=function(){function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!0,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!0,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}(),rN=function(){function e(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];this.root=e,this.initialize.apply(this,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n)),this.foundation=void 0===t?this.getDefaultFoundation():t,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new rM({}))},e.prototype.initialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function(){throw Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(e,{bubbles:n,detail:t}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(i)},e}();function rB(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},i=function(){};e.document.addEventListener("test",i,n),e.document.removeEventListener("test",i,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}function rP(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(rj(n,t))return n;n=n.parentElement}return null}function rj(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}var rz=function(e,t){return(rz=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rU(e,t){function n(){this.constructor=e}rz(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rH=function(){return(rH=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rV={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},rW=function(e){function t(n){var i=e.call(this,rH(rH({},t.defaultAdapter),n))||this;return i.shakeAnimationEndHandler_=function(){return i.handleShakeAnimationEnd_()},i}return rU(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rV},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler_)},t.prototype.getWidth=function(){return this.adapter.getWidth()},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,i=n.LABEL_FLOAT_ABOVE,o=n.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(o))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd_=function(){var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(rM),rG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rU(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function(){return this.foundation.getWidth()},t.prototype.getDefaultFoundation=function(){var e=this;return new rW({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function(){var t=e.root;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rq=function(e,t){return(rq=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function rY(e,t){function n(){this.constructor=e}rq(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rK=function(){return(rK=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},rX={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},rJ=function(e){function t(n){var i=e.call(this,rK(rK({},t.defaultAdapter),n))||this;return i.transitionEndHandler_=function(e){return i.handleTransitionEnd(e)},i}return rY(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return rX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler_)},t.prototype.activate=function(){this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(rX.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function(){this.adapter.addClass(rX.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(rX.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(rX.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(rX.LINE_RIPPLE_DEACTIVATING))},t}(rM),rQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rY(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new rJ({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}})},t}(rN),rZ=function(e,t){return(rZ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r0(e,t){function n(){this.constructor=e}rZ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r1=function(){return(r1=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},r2={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},r5={NOTCH_ELEMENT_PADDING:8},r4={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},r3=function(e){function t(n){return e.call(this,r1(r1({},t.defaultAdapter),n))||this}return r0(t,e),Object.defineProperty(t,"strings",{get:function(){return r2},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return r4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return r5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!0,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=r5.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function(){var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty()},t}(rM),r6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r0(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.notchElement_=this.root.querySelector(r2.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+rW.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(r4.OUTLINE_UPGRADED),requestAnimationFrame(function(){e.style.transitionDuration=""})):this.root.classList.add(r4.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function(){this.foundation.closeNotch()},t.prototype.getDefaultFoundation=function(){var e=this;return new r3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){return e.notchElement_.style.setProperty("width",t+"px")},removeNotchWidthProperty:function(){return e.notchElement_.style.removeProperty("width")}})},t}(rN),r8=function(e,t){return(r8=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function r7(e,t){function n(){this.constructor=e}r8(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var r9=function(){return(r9=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ae={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},at={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},an={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300},ai=["touchstart","pointerdown","mousedown","keydown"],ao=["touchend","pointerup","mouseup","contextmenu"],ar=[],aa=function(e){function t(n){var i=e.call(this,r9(r9({},t.defaultAdapter),n))||this;return i.activationAnimationHasEnded_=!1,i.activationTimer_=0,i.fgDeactivationRemovalTimer_=0,i.fgScale_="0",i.frame_={width:0,height:0},i.initialSize_=0,i.layoutFrame_=0,i.maxRadius_=0,i.unboundedCoords_={left:0,top:0},i.activationState_=i.defaultActivationState_(),i.activationTimerCallback_=function(){i.activationAnimationHasEnded_=!0,i.runDeactivationUXLogicIfReady_()},i.activateHandler_=function(e){return i.activate_(e)},i.deactivateHandler_=function(){return i.deactivate_()},i.focusHandler_=function(){return i.handleFocus()},i.blurHandler_=function(){return i.handleBlur()},i.resizeHandler_=function(){return i.layout()},i}return r7(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ae},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return at},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return an},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this,n=this.supportsPressRipple_();if(this.registerRootHandlers_(n),n){var i=t.cssClasses,o=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame(function(){e.adapter.addClass(o),e.adapter.isUnbounded()&&(e.adapter.addClass(r),e.layoutInternal_())})}},t.prototype.destroy=function(){var e=this;if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,i=n.ROOT,o=n.UNBOUNDED;requestAnimationFrame(function(){e.adapter.removeClass(i),e.adapter.removeClass(o),e.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()},t.prototype.activate=function(e){this.activate_(e)},t.prototype.deactivate=function(){this.deactivate_()},t.prototype.layout=function(){var e=this;this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(function(){e.layoutInternal_(),e.layoutFrame_=0})},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function(){var e=this;requestAnimationFrame(function(){return e.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var e=this;requestAnimationFrame(function(){return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple_=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState_=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers_=function(e){var t=this;e&&(ai.forEach(function(e){t.adapter.registerInteractionHandler(e,t.activateHandler_)}),this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler_)),this.adapter.registerInteractionHandler("focus",this.focusHandler_),this.adapter.registerInteractionHandler("blur",this.blurHandler_)},t.prototype.registerDeactivationHandlers_=function(e){var t=this;"keydown"===e.type?this.adapter.registerInteractionHandler("keyup",this.deactivateHandler_):ao.forEach(function(e){t.adapter.registerDocumentInteractionHandler(e,t.deactivateHandler_)})},t.prototype.deregisterRootHandlers_=function(){var e=this;ai.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.activateHandler_)}),this.adapter.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler_)},t.prototype.deregisterDeactivationHandlers_=function(){var e=this;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler_),ao.forEach(function(t){e.adapter.deregisterDocumentInteractionHandler(t,e.deactivateHandler_)})},t.prototype.removeCssVars_=function(){var e=this,n=t.strings;Object.keys(n).forEach(function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)})},t.prototype.activate_=function(e){var t=this;if(!this.adapter.isSurfaceDisabled()){var n=this.activationState_;if(!n.isActivated){var i=this.previousActivationEvent_;if(!(i&&void 0!==e&&i.type!==e.type)){if(n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type),void 0!==e&&ar.length>0&&ar.some(function(e){return t.adapter.containsEventTarget(e)}))return void this.resetActivationState_();void 0!==e&&(ar.push(e.target),this.registerDeactivationHandlers_(e)),n.wasElementMadeActive=this.checkElementMadeActive_(e),n.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(function(){ar=[],!n.wasElementMadeActive&&void 0!==e&&(" "===e.key||32===e.keyCode)&&(n.wasElementMadeActive=t.checkElementMadeActive_(e),n.wasElementMadeActive&&t.animateActivation_()),n.wasElementMadeActive||(t.activationState_=t.defaultActivationState_())})}}}},t.prototype.checkElementMadeActive_=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive()},t.prototype.animateActivation_=function(){var e=this,n=t.strings,i=n.VAR_FG_TRANSLATE_START,o=n.VAR_FG_TRANSLATE_END,r=t.cssClasses,a=r.FG_DEACTIVATION,s=r.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal_();var c="",d="";if(!this.adapter.isUnbounded()){var u=this.getFgTranslationCoordinates_(),m=u.startPoint,f=u.endPoint;c=m.x+"px, "+m.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(s),this.activationTimer_=setTimeout(function(){return e.activationTimerCallback_()},l)},t.prototype.getFgTranslationCoordinates_=function(){var e,t=this.activationState_,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?function(e,t,n){if(!e)return{x:0,y:0};var i,o,r=t.x,a=t.y,s=r+n.left,l=a+n.top;return"touchstart"===e.type?(i=e.changedTouches[0].pageX-s,o=e.changedTouches[0].pageY-l):(i=e.pageX-s,o=e.pageY-l),{x:i,y:o}}(n,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2}).x-this.initialSize_/2,y:e.y-this.initialSize_/2},endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}},t.prototype.runDeactivationUXLogicIfReady_=function(){var e=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState_,o=i.hasDeactivationUXRun,r=i.isActivated;(o||!r)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter.addClass(n),this.fgDeactivationRemovalTimer_=setTimeout(function(){e.adapter.removeClass(n)},an.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses_=function(){var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded_=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState_=function(){var e=this;this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(function(){return e.previousActivationEvent_=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivate_=function(){var e=this,t=this.activationState_;if(t.isActivated){var n=r9({},t);t.isProgrammatic?(requestAnimationFrame(function(){return e.animateDeactivation_(n)}),this.resetActivationState_()):(this.deregisterDeactivationHandlers_(),requestAnimationFrame(function(){e.activationState_.hasDeactivationUXRun=!0,e.animateDeactivation_(n),e.resetActivationState_()}))}},t.prototype.animateDeactivation_=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady_()},t.prototype.layoutInternal_=function(){this.frame_=this.adapter.computeBoundingRect();var e=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter.isUnbounded()?e:Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2))+t.numbers.PADDING;var n=Math.floor(e*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&n%2!=0?this.initialSize_=n-1:this.initialSize_=n,this.fgScale_=""+this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()},t.prototype.updateLayoutCssVars_=function(){var e=t.strings,n=e.VAR_FG_SIZE,i=e.VAR_LEFT,o=e.VAR_TOP,r=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize_+"px"),this.adapter.updateCssVariable(r,this.fgScale_),this.adapter.isUnbounded()&&(this.unboundedCoords_={left:Math.round(this.frame_.width/2-this.initialSize_/2),top:Math.round(this.frame_.height/2-this.initialSize_/2)},this.adapter.updateCssVariable(i,this.unboundedCoords_.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords_.top+"px"))},t}(rM),as=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return r7(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var i=new t(e);return void 0!==n.isUnbounded&&(i.unbounded=n.isUnbounded),i},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function(){return function(e,t){void 0===t&&(t=!1);var n=e.CSS,i=g4;if("boolean"==typeof g4&&!t)return g4;if(!(n&&"function"==typeof n.supports))return!1;var o=n.supports("--css-vars","yes"),r=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return i=o||r,t||(g4=i),i}(window)},computeBoundingRect:function(){return e.root.getBoundingClientRect()},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,rB())},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,rB())},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return rj(e.root,":active")},isSurfaceDisabled:function(){return!!e.disabled},isUnbounded:function(){return!!e.unbounded},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,rB())},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,rB())},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return!!this.unbounded_},set:function(e){this.unbounded_=!!e,this.setUnbounded_()},enumerable:!0,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new aa(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var e=this.root;this.unbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded_=function(){this.foundation.setUnbounded(!!this.unbounded_)},t}(rN),al={ROOT:"mdc-text-field-character-counter"},ac={ROOT_SELECTOR:"."+al.ROOT},ad=function(e){function t(n){return e.call(this,rL(rL({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return al},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return ac},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(rM),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new ad({setContent:function(t){e.root.textContent=t}})},t}(rN),am={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},af={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon"},ah={LABEL_SCALE:.75},ap=["pattern","min","max","required","step","minlength","maxlength"],ab=["color","date","datetime-local","month","range","time","week"],ag=["mousedown","touchstart"],av=["click","keydown"],ay=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,rL(rL({},t.defaultAdapter),n))||this;return o.isFocused_=!1,o.receivedUserInput_=!1,o.isValid_=!0,o.useNativeValidation_=!0,o.validateOnValueChange_=!0,o.helperText_=i.helperText,o.characterCounter_=i.characterCounter,o.leadingIcon_=i.leadingIcon,o.trailingIcon_=i.trailingIcon,o.inputFocusHandler_=function(){return o.activateFocus()},o.inputBlurHandler_=function(){return o.deactivateFocus()},o.inputInputHandler_=function(){return o.handleInput()},o.setPointerXOffset_=function(e){return o.setTransformOrigin(e)},o.textFieldInteractionHandler_=function(){return o.handleTextFieldInteraction()},o.validationAttributeChangeHandler_=function(e){return o.handleValidationAttributeChange(e)},o}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return af},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return am},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return ah},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat_",{get:function(){var e=this.getNativeInput_().type;return ab.indexOf(e)>=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function(){return this.shouldAlwaysFloat_||this.isFocused_||!!this.getValue()||this.isBadInput_()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function(){return!this.isFocused_&&!this.isValid()&&!!this.getValue()},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!0},setInputAttr:function(){},removeInputAttr:function(){},registerTextFieldInteractionHandler:function(){},deregisterTextFieldInteractionHandler:function(){},registerInputInteractionHandler:function(){},deregisterInputInteractionHandler:function(){},registerValidationAttributeChangeHandler:function(){return new MutationObserver(function(){})},deregisterValidationAttributeChangeHandler:function(){},getNativeInput:function(){return null},isFocused:function(){return!1},activateLineRipple:function(){},deactivateLineRipple:function(){},setLineRippleTransformOrigin:function(){},shakeLabel:function(){},floatLabel:function(){},setLabelRequired:function(){},hasLabel:function(){return!1},getLabelWidth:function(){return 0},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.adapter.hasLabel()&&this.getNativeInput_().required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused()?this.inputFocusHandler_():this.adapter.hasLabel()&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating_(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler_),ag.forEach(function(t){e.adapter.registerInputInteractionHandler(t,e.setPointerXOffset_)}),av.forEach(function(t){e.adapter.registerTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.validationObserver_=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler_),this.setCharacterCounter_(this.getValue().length)},t.prototype.destroy=function(){var e=this;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler_),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler_),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler_),ag.forEach(function(t){e.adapter.deregisterInputInteractionHandler(t,e.setPointerXOffset_)}),av.forEach(function(t){e.adapter.deregisterTextFieldInteractionHandler(t,e.textFieldInteractionHandler_)}),this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver_)},t.prototype.handleTextFieldInteraction=function(){var e=this.adapter.getNativeInput();e&&e.disabled||(this.receivedUserInput_=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some(function(e){return ap.indexOf(e)>-1&&(t.styleValidity_(!0),t.adapter.setLabelRequired(t.getNativeInput_().required),!0)}),e.indexOf("maxlength")>-1&&this.setCharacterCounter_(this.getValue().length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()&&this.adapter.hasLabel())if(e){var t=this.adapter.getLabelWidth()*ah.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline()},t.prototype.activateFocus=function(){this.isFocused_=!0,this.styleFocused_(this.isFocused_),this.adapter.activateLineRipple(),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.helperText_&&(this.helperText_.isPersistent()||!this.helperText_.isValidation()||!this.isValid_)&&this.helperText_.showToScreenReader()},t.prototype.setTransformOrigin=function(e){if(!(this.isDisabled()||this.adapter.hasOutline())){var t=e.touches,n=t?t[0]:e,i=n.target.getBoundingClientRect(),o=n.clientX-i.left;this.adapter.setLineRippleTransformOrigin(o)}},t.prototype.handleInput=function(){this.autoCompleteFocus(),this.setCharacterCounter_(this.getValue().length)},t.prototype.autoCompleteFocus=function(){this.receivedUserInput_||this.activateFocus()},t.prototype.deactivateFocus=function(){this.isFocused_=!1,this.adapter.deactivateLineRipple();var e=this.isValid();this.styleValidity_(e),this.styleFocused_(this.isFocused_),this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput_=!1)},t.prototype.getValue=function(){return this.getNativeInput_().value},t.prototype.setValue=function(e){if(this.getValue()!==e&&(this.getNativeInput_().value=e),this.setCharacterCounter_(e.length),this.validateOnValueChange_){var t=this.isValid();this.styleValidity_(t)}this.adapter.hasLabel()&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating_(this.shouldFloat),this.validateOnValueChange_&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function(){return this.useNativeValidation_?this.isNativeInputValid_():this.isValid_},t.prototype.setValid=function(e){this.isValid_=e,this.styleValidity_(e);var t=!e&&!this.isFocused_&&!!this.getValue();this.adapter.hasLabel()&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange_=e},t.prototype.getValidateOnValueChange=function(){return this.validateOnValueChange_},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation_=e},t.prototype.isDisabled=function(){return this.getNativeInput_().disabled},t.prototype.setDisabled=function(e){this.getNativeInput_().disabled=e,this.styleDisabled_(e)},t.prototype.setHelperTextContent=function(e){this.helperText_&&this.helperText_.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon_&&this.leadingIcon_.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon_&&this.leadingIcon_.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon_&&this.trailingIcon_.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon_&&this.trailingIcon_.setContent(e)},t.prototype.setCharacterCounter_=function(e){if(this.characterCounter_){var t=this.getNativeInput_().maxLength;if(-1===t)throw Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter_.setCounterValue(e,t)}},t.prototype.isBadInput_=function(){return this.getNativeInput_().validity.badInput||!1},t.prototype.isNativeInputValid_=function(){return this.getNativeInput_().validity.valid},t.prototype.styleValidity_=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText_){if(this.helperText_.setValidity(e),!this.helperText_.isValidation())return;var i=this.helperText_.isVisible(),o=this.helperText_.getId();i&&o?this.adapter.setInputAttr(am.ARIA_DESCRIBEDBY,o):this.adapter.removeInputAttr(am.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused_=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled_=function(e){var n=t.cssClasses,i=n.DISABLED,o=n.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(o)):this.adapter.removeClass(i),this.leadingIcon_&&this.leadingIcon_.setDisabled(e),this.trailingIcon_&&this.trailingIcon_.setDisabled(e)},t.prototype.styleFloating_=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput_=function(){return(this.adapter?this.adapter.getNativeInput():null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(rM),a_={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},aw={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+a_.ROOT},aF=function(e){function t(n){return e.call(this,rL(rL({},t.defaultAdapter),n))||this}return r$(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return a_},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aw},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(aw.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function(){return this.adapter.hasClass(a_.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(a_.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(a_.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function(){return this.adapter.hasClass(a_.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(a_.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(a_.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(aw.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(a_.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(a_.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader(),this.adapter.setAttr(aw.ROLE,"alert")):this.adapter.removeAttr(aw.ROLE),t||n||this.hide_()},t.prototype.hide_=function(){this.adapter.setAttr(aw.ARIA_HIDDEN,"true")},t}(rM),ax=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new aF({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),ak={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},aE={ROOT:"mdc-text-field__icon"},aC=["click","keydown"],aA=function(e){function t(n){var i=e.call(this,rL(rL({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return r$(t,e),Object.defineProperty(t,"strings",{get:function(){return ak},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aE},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),aC.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;aC.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",ak.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault(),this.adapter.notifyIconAction())},t}(rM),aS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new aA({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(aA.strings.ICON_EVENT,{},!0)}})},t}(rN),aT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r$(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r,a){void 0===e&&(e=function(e,t){return new as(e,t)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new ax(e)}),void 0===i&&(i=function(e){return new au(e)}),void 0===o&&(o=function(e){return new aS(e)}),void 0===r&&(r=function(e){return new rG(e)}),void 0===a&&(a=function(e){return new r6(e)}),this.input_=this.root.querySelector(am.INPUT_SELECTOR);var s=this.root.querySelector(am.LABEL_SELECTOR);this.label_=s?r(s):null;var l=this.root.querySelector(am.LINE_RIPPLE_SELECTOR);this.lineRipple_=l?t(l):null;var c=this.root.querySelector(am.OUTLINE_SELECTOR);this.outline_=c?a(c):null;var d=aF.strings,u=this.root.nextElementSibling,m=u&&u.classList.contains(af.HELPER_LINE),f=m&&u&&u.querySelector(d.ROOT_SELECTOR);this.helperText_=f?n(f):null;var h=ad.strings,p=this.root.querySelector(h.ROOT_SELECTOR);!p&&m&&u&&(p=u.querySelector(h.ROOT_SELECTOR)),this.characterCounter_=p?i(p):null;var b=this.root.querySelector(am.LEADING_ICON_SELECTOR);this.leadingIcon_=b?o(b):null;var g=this.root.querySelector(am.TRAILING_ICON_SELECTOR);this.trailingIcon_=g?o(g):null,this.prefix_=this.root.querySelector(am.PREFIX_SELECTOR),this.suffix_=this.root.querySelector(am.SUFFIX_SELECTOR),this.ripple=this.createRipple_(e)},t.prototype.destroy=function(){this.ripple&&this.ripple.destroy(),this.lineRipple_&&this.lineRipple_.destroy(),this.helperText_&&this.helperText_.destroy(),this.characterCounter_&&this.characterCounter_.destroy(),this.leadingIcon_&&this.leadingIcon_.destroy(),this.trailingIcon_&&this.trailingIcon_.destroy(),this.label_&&this.label_.destroy(),this.outline_&&this.outline_.destroy(),e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function(){this.disabled=this.input_.disabled},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.isDisabled()},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.input_.required},set:function(e){this.input_.required=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function(){return this.input_.pattern},set:function(e){this.input_.pattern=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function(){return this.input_.minLength},set:function(e){this.input_.minLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.input_.maxLength},set:function(e){e<0?this.input_.removeAttribute("maxLength"):this.input_.maxLength=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.input_.min},set:function(e){this.input_.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.input_.max},set:function(e){this.input_.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this.input_.step},set:function(e){this.input_.step=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function(){return this.prefix_?this.prefix_.textContent:null},set:function(e){this.prefix_&&(this.prefix_.textContent=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function(){return this.suffix_?this.suffix_.textContent:null},set:function(e){this.suffix_&&(this.suffix_.textContent=e)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this.input_.focus()},t.prototype.layout=function(){var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function(){return new ay(rL(rL(rL(rL(rL({},this.getRootAdapterMethods_()),this.getInputAdapterMethods_()),this.getLabelAdapterMethods_()),this.getLineRippleAdapterMethods_()),this.getOutlineAdapterMethods_()),this.getFoundationMap_())},t.prototype.getRootAdapterMethods_=function(){var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver(function(e){return t(e.map(function(e){return e.attributeName}).filter(function(e){return e}))});return n.observe(e.input_,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect()}}},t.prototype.getInputAdapterMethods_=function(){var e=this;return{getNativeInput:function(){return e.input_},setInputAttr:function(t,n){e.input_.setAttribute(t,n)},removeInputAttr:function(t){e.input_.removeAttribute(t)},isFocused:function(){return document.activeElement===e.input_},registerInputInteractionHandler:function(t,n){e.input_.addEventListener(t,n,rB())},deregisterInputInteractionHandler:function(t,n){e.input_.removeEventListener(t,n,rB())}}},t.prototype.getLabelAdapterMethods_=function(){var e=this;return{floatLabel:function(t){return e.label_&&e.label_.float(t)},getLabelWidth:function(){return e.label_?e.label_.getWidth():0},hasLabel:function(){return!!e.label_},shakeLabel:function(t){return e.label_&&e.label_.shake(t)},setLabelRequired:function(t){return e.label_&&e.label_.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods_=function(){var e=this;return{activateLineRipple:function(){e.lineRipple_&&e.lineRipple_.activate()},deactivateLineRipple:function(){e.lineRipple_&&e.lineRipple_.deactivate()},setLineRippleTransformOrigin:function(t){e.lineRipple_&&e.lineRipple_.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods_=function(){var e=this;return{closeOutline:function(){return e.outline_&&e.outline_.closeNotch()},hasOutline:function(){return!!e.outline_},notchOutline:function(t){return e.outline_&&e.outline_.notch(t)}}},t.prototype.getFoundationMap_=function(){return{characterCounter:this.characterCounter_?this.characterCounter_.foundationForTextField:void 0,helperText:this.helperText_?this.helperText_.foundationForTextField:void 0,leadingIcon:this.leadingIcon_?this.leadingIcon_.foundationForTextField:void 0,trailingIcon:this.trailingIcon_?this.trailingIcon_.foundationForTextField:void 0}},t.prototype.createRipple_=function(e){var t=this,n=this.root.classList.contains(af.TEXTAREA),i=this.root.classList.contains(af.OUTLINED);if(n||i)return null;var o=rL(rL({},as.createAdapter(this)),{isSurfaceActive:function(){return rj(t.input_,":active")},registerInteractionHandler:function(e,n){return t.input_.addEventListener(e,n,rB())},deregisterInteractionHandler:function(e,n){return t.input_.removeEventListener(e,n,rB())}});return e(this.root,new aa(o))},t}(rN),aI=function(e,t){return(aI=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aO(e,t){function n(){this.constructor=e}aI(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aR=function(){return(aR=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aD={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},a$={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function aL(e){return!!e.document&&"function"==typeof e.document.createElement}function aM(e,t){if(aL(e)&&t in aD){var n=e.document.createElement("div"),i=aD[t],o=i.standard,r=i.prefixed;return o in n.style?o:r}return t}function aN(e,t){if(aL(e)&&t in a$){var n=e.document.createElement("div"),i=a$[t],o=i.standard,r=i.prefixed;return i.cssProperty in n.style?o:r}return t}var aB={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},aP={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},aj={ANIM_END_LATCH_MS:250},az=function(e){function t(n){var i=e.call(this,aR(aR({},t.defaultAdapter),n))||this;return i.currentCheckState_=aP.TRANSITION_STATE_INIT,i.currentAnimationClass_="",i.animEndLatchTimer_=0,i.enableAnimationEndHandler_=!1,i}return aO(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return aB},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return aP},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return aj},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},forceLayout:function(){},hasNativeControl:function(){return!1},isAttachedToDOM:function(){return!1},isChecked:function(){return!1},isIndeterminate:function(){return!1},removeClass:function(){},removeNativeControlAttr:function(){},setNativeControlAttr:function(){},setNativeControlDisabled:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.currentCheckState_=this.determineCheckState_(),this.updateAriaChecked_(),this.adapter.addClass(aB.UPGRADED)},t.prototype.destroy=function(){clearTimeout(this.animEndLatchTimer_)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aB.DISABLED):this.adapter.removeClass(aB.DISABLED)},t.prototype.handleAnimationEnd=function(){var e=this;this.enableAnimationEndHandler_&&(clearTimeout(this.animEndLatchTimer_),this.animEndLatchTimer_=setTimeout(function(){e.adapter.removeClass(e.currentAnimationClass_),e.enableAnimationEndHandler_=!1},aj.ANIM_END_LATCH_MS))},t.prototype.handleChange=function(){this.transitionCheckState_()},t.prototype.transitionCheckState_=function(){if(this.adapter.hasNativeControl()){var e=this.currentCheckState_,t=this.determineCheckState_();if(e!==t){this.updateAriaChecked_();var n=aP.TRANSITION_STATE_UNCHECKED,i=aB.SELECTED;t===n?this.adapter.removeClass(i):this.adapter.addClass(i),this.currentAnimationClass_.length>0&&(clearTimeout(this.animEndLatchTimer_),this.adapter.forceLayout(),this.adapter.removeClass(this.currentAnimationClass_)),this.currentAnimationClass_=this.getTransitionAnimationClass_(e,t),this.currentCheckState_=t,this.adapter.isAttachedToDOM()&&this.currentAnimationClass_.length>0&&(this.adapter.addClass(this.currentAnimationClass_),this.enableAnimationEndHandler_=!0)}}},t.prototype.determineCheckState_=function(){var e=aP.TRANSITION_STATE_INDETERMINATE,t=aP.TRANSITION_STATE_CHECKED,n=aP.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate()?e:this.adapter.isChecked()?t:n},t.prototype.getTransitionAnimationClass_=function(e,n){var i=aP.TRANSITION_STATE_INIT,o=aP.TRANSITION_STATE_CHECKED,r=aP.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,l=a.ANIM_UNCHECKED_INDETERMINATE,c=a.ANIM_CHECKED_UNCHECKED,d=a.ANIM_CHECKED_INDETERMINATE,u=a.ANIM_INDETERMINATE_CHECKED,m=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case i:if(n===r)return"";return n===o?u:m;case r:return n===o?s:l;case o:return n===r?c:d;default:return n===o?u:m}},t.prototype.updateAriaChecked_=function(){this.adapter.isIndeterminate()?this.adapter.setNativeControlAttr(aP.ARIA_CHECKED_ATTR,aP.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(aP.ARIA_CHECKED_ATTR)},t}(rM),aU=["checked","indeterminate"],aH=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aO(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.nativeControl_.checked=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function(){return this.nativeControl_.indeterminate},set:function(e){this.nativeControl_.indeterminate=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.nativeControl_.value},set:function(e){this.nativeControl_.value=e},enumerable:!0,configurable:!0}),t.prototype.initialize=function(){var e=aP.DATA_INDETERMINATE_ATTR;this.nativeControl_.indeterminate="true"===this.nativeControl_.getAttribute(e),this.nativeControl_.removeAttribute(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleChange_=function(){return e.foundation.handleChange()},this.handleAnimationEnd_=function(){return e.foundation.handleAnimationEnd()},this.nativeControl_.addEventListener("change",this.handleChange_),this.listen(aN(window,"animationend"),this.handleAnimationEnd_),this.installPropertyChangeHooks_()},t.prototype.destroy=function(){this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.handleChange_),this.unlisten(aN(window,"animationend"),this.handleAnimationEnd_),this.uninstallPropertyChangeHooks_(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new az({addClass:function(t){return e.root.classList.add(t)},forceLayout:function(){return e.root.offsetWidth},hasNativeControl:function(){return!!e.nativeControl_},isAttachedToDOM:function(){return!!e.root.parentNode},isChecked:function(){return e.checked},isIndeterminate:function(){return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.nativeControl_.removeAttribute(t)},setNativeControlAttr:function(t,n){e.nativeControl_.setAttribute(t,n)},setNativeControlDisabled:function(t){e.nativeControl_.disabled=t}})},t.prototype.createRipple_=function(){var e=this,t=aR(aR({},as.createAdapter(this)),{deregisterInteractionHandler:function(t,n){return e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rj(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){return e.nativeControl_.addEventListener(t,n,rB())}});return new as(this.root,new aa(t))},t.prototype.installPropertyChangeHooks_=function(){var e=this,t=this.nativeControl_,n=Object.getPrototypeOf(t);aU.forEach(function(i){var o=Object.getOwnPropertyDescriptor(n,i);if(aV(o)){var r=o.get,a={configurable:o.configurable,enumerable:o.enumerable,get:r,set:function(n){o.set.call(t,n),e.foundation.handleChange()}};Object.defineProperty(t,i,a)}})},t.prototype.uninstallPropertyChangeHooks_=function(){var e=this.nativeControl_,t=Object.getPrototypeOf(e);aU.forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);aV(i)&&Object.defineProperty(e,n,i)})},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aP.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw Error("Checkbox component requires a "+e+" element");return t},enumerable:!0,configurable:!0}),t}(rN);function aV(e){return!!e&&"function"==typeof e.set}var aW=function(e,t){return(aW=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aG(e,t){function n(){this.constructor=e}aW(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var aq=function(){return(aq=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},aY={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},aK={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},aX=function(e){function t(n){return e.call(this,aq(aq({},t.defaultAdapter),n))||this}return aG(t,e),Object.defineProperty(t,"strings",{get:function(){return aK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return aY},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlChecked:function(){},setNativeControlDisabled:function(){},setNativeControlAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked_(e),this.updateCheckedStyling_(e)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(aY.DISABLED):this.adapter.removeClass(aY.DISABLED)},t.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked_(t.checked),this.updateCheckedStyling_(t.checked)},t.prototype.updateCheckedStyling_=function(e){e?this.adapter.addClass(aY.CHECKED):this.adapter.removeClass(aY.CHECKED)},t.prototype.updateAriaChecked_=function(e){this.adapter.setNativeControlAttr(aK.ARIA_CHECKED_ATTR,""+!!e)},t}(rM),aJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ripple_=t.createRipple_(),t}return aG(t,e),t.attachTo=function(e){return new t(e)},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ripple_.destroy(),this.nativeControl_.removeEventListener("change",this.changeHandler_)},t.prototype.initialSyncWithDOM=function(){var e=this;this.changeHandler_=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return(t=e.foundation).handleChange.apply(t,function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}(arguments[t]));return e}(n))},this.nativeControl_.addEventListener("change",this.changeHandler_),this.checked=this.checked},t.prototype.getDefaultFoundation=function(){var e=this;return new aX({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlChecked:function(t){return e.nativeControl_.checked=t},setNativeControlDisabled:function(t){return e.nativeControl_.disabled=t},setNativeControlAttr:function(t,n){return e.nativeControl_.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.ripple_},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this.nativeControl_.checked},set:function(e){this.foundation.setChecked(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.nativeControl_.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple_=function(){var e=this,t=aX.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=aq(aq({},as.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function(){return n.getBoundingClientRect()},deregisterInteractionHandler:function(t,n){e.nativeControl_.removeEventListener(t,n,rB())},isSurfaceActive:function(){return rj(e.nativeControl_,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(t,n){e.nativeControl_.addEventListener(t,n,rB())},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new as(this.root,new aa(i))},Object.defineProperty(t.prototype,"nativeControl_",{get:function(){var e=aX.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!0,configurable:!0}),t}(rN),aQ=function(e,t){return(aQ=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function aZ(e,t){function n(){this.constructor=e}aQ(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a0=function(){return(a0=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a1="mdc-slider--disabled",a2="mdc-slider__thumb",a5="mdc-slider__thumb--top",a4="mdc-slider__thumb--with-indicator",a3="mdc-slider__tick-marks",a6="mdc-slider__tick-mark--active",a8="mdc-slider__tick-mark--inactive",a7="disabled",a9="value",se="step";(bG=g3||(g3={}))[bG.ACTIVE=0]="ACTIVE",bG[bG.INACTIVE=1]="INACTIVE",(bq=g6||(g6={}))[bq.START=1]="START",bq[bq.END=2]="END";var st="u">typeof window,sn=function(e){function t(n){var i=e.call(this,a0(a0({},t.defaultAdapter),n))||this;return i.initialStylesRemoved=!1,i.isDisabled=!1,i.isDiscrete=!1,i.step=1,i.hasTickMarks=!1,i.isRange=!1,i.thumb=null,i.downEventClientX=null,i.startThumbKnobWidth=0,i.endThumbKnobWidth=0,i}return aZ(t,e),Object.defineProperty(t,"defaultAdapter",{get:function(){return{hasClass:function(){return!1},addClass:function(){},removeClass:function(){},addThumbClass:function(){},removeThumbClass:function(){},getAttribute:function(){return null},getInputValue:function(){return""},setInputValue:function(){},getInputAttribute:function(){return null},setInputAttribute:function(){return null},removeInputAttribute:function(){return null},focusInput:function(){},isInputFocused:function(){return!1},getThumbKnobWidth:function(){return 0},getThumbBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getBoundingClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},isRTL:function(){return!1},setThumbStyleProperty:function(){},removeThumbStyleProperty:function(){},setTrackActiveStyleProperty:function(){},removeTrackActiveStyleProperty:function(){},setValueIndicatorText:function(){},getValueToAriaValueTextFn:function(){return null},updateTickMarks:function(){},setPointerCapture:function(){},emitChangeEvent:function(){},emitInputEvent:function(){},emitDragStartEvent:function(){},emitDragEndEvent:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){},registerThumbEventHandler:function(){},deregisterThumbEventHandler:function(){},registerInputEventHandler:function(){},deregisterInputEventHandler:function(){},registerBodyEventHandler:function(){},deregisterBodyEventHandler:function(){},registerWindowEventHandler:function(){},deregisterWindowEventHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.isDisabled=this.adapter.hasClass(a1),this.isDiscrete=this.adapter.hasClass("mdc-slider--discrete"),this.hasTickMarks=this.adapter.hasClass("mdc-slider--tick-marks"),this.isRange=this.adapter.hasClass("mdc-slider--range");var t=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("min",this.isRange?g6.START:g6.END),"min"),n=this.convertAttributeValueToNumber(this.adapter.getInputAttribute("max",g6.END),"max"),i=this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,g6.END),a9),o=this.isRange?this.convertAttributeValueToNumber(this.adapter.getInputAttribute(a9,g6.START),a9):t;this.validateProperties({min:t,max:n,value:i,valueStart:o}),this.min=t,this.max=n,this.value=i,this.valueStart=o,this.valueBeforeDownEvent=i,this.valueStartBeforeDownEvent=o;var r=this.adapter.getInputAttribute(se,g6.END);if(r&&(this.step=this.convertAttributeValueToNumber(r,se)),this.step<=0)throw Error("MDCSliderFoundation: step must be a positive number. Current step: "+this.step);this.mousedownOrTouchstartListener=this.handleMousedownOrTouchstart.bind(this),this.moveListener=this.handleMove.bind(this),this.pointerdownListener=this.handlePointerdown.bind(this),this.pointerupListener=this.handlePointerup.bind(this),this.thumbMouseenterListener=this.handleThumbMouseenter.bind(this),this.thumbMouseleaveListener=this.handleThumbMouseleave.bind(this),this.inputStartChangeListener=function(){e.handleInputChange(g6.START)},this.inputEndChangeListener=function(){e.handleInputChange(g6.END)},this.inputStartFocusListener=function(){e.handleInputFocus(g6.START)},this.inputEndFocusListener=function(){e.handleInputFocus(g6.END)},this.inputStartBlurListener=function(){e.handleInputBlur(g6.START)},this.inputEndBlurListener=function(){e.handleInputBlur(g6.END)},this.resizeListener=this.handleResize.bind(this),this.registerEventHandlers()},t.prototype.destroy=function(){this.deregisterEventHandlers()},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.getValue=function(){return this.value},t.prototype.setValue=function(e){if(this.isRange&&e<this.valueStart)throw Error("end thumb value ("+e+") must be >= start thumb value ("+this.valueStart+")");this.updateValue(e,g6.END)},t.prototype.getValueStart=function(){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");return this.valueStart},t.prototype.setValueStart=function(e){if(!this.isRange)throw Error("`valueStart` is only applicable for range sliders.");if(this.isRange&&e>this.value)throw Error("start thumb value ("+e+") must be <= end thumb value ("+this.value+")");this.updateValue(e,g6.START)},t.prototype.getStep=function(){return this.step},t.prototype.getDisabled=function(){return this.isDisabled},t.prototype.setDisabled=function(e){this.isDisabled=e,e?(this.adapter.addClass(a1),this.isRange&&this.adapter.setInputAttribute(a7,"",g6.START),this.adapter.setInputAttribute(a7,"",g6.END)):(this.adapter.removeClass(a1),this.isRange&&this.adapter.removeInputAttribute(a7,g6.START),this.adapter.removeInputAttribute(a7,g6.END))},t.prototype.getIsRange=function(){return this.isRange},t.prototype.layout=function(e){var t=(void 0===e?{}:e).skipUpdateUI;this.rect=this.adapter.getBoundingClientRect(),this.isRange&&(this.startThumbKnobWidth=this.adapter.getThumbKnobWidth(g6.START),this.endThumbKnobWidth=this.adapter.getThumbKnobWidth(g6.END)),t||this.updateUI()},t.prototype.handleResize=function(){this.layout()},t.prototype.handleDown=function(e){if(!this.isDisabled){this.valueStartBeforeDownEvent=this.valueStart,this.valueBeforeDownEvent=this.value;var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX;this.downEventClientX=t;var n=this.mapClientXOnSliderScale(t);this.thumb=this.getThumbFromDownEvent(t,n),null===this.thumb||(this.handleDragStart(e,n,this.thumb),this.isRange&&n>=this.valueStart&&n<=this.value||this.updateValue(n,this.thumb,{emitInputEvent:!0}))}},t.prototype.handleMove=function(e){if(!this.isDisabled){e.preventDefault();var t=null!=e.clientX?e.clientX:e.targetTouches[0].clientX,n=null!=this.thumb;if(this.thumb=this.getThumbFromMoveEvent(t),null!==this.thumb){var i=this.mapClientXOnSliderScale(t);n||(this.handleDragStart(e,i,this.thumb),this.adapter.emitDragStartEvent(i,this.thumb)),this.updateValue(i,this.thumb,{emitInputEvent:!0})}}},t.prototype.handleUp=function(){if(!this.isDisabled&&null!==this.thumb){var e=this.thumb===g6.START?this.valueStartBeforeDownEvent:this.valueBeforeDownEvent,t=this.thumb===g6.START?this.valueStart:this.value;e!==t&&this.adapter.emitChangeEvent(t,this.thumb),this.adapter.emitDragEndEvent(t,this.thumb),this.thumb=null}},t.prototype.handleThumbMouseenter=function(){this.isDiscrete&&this.isRange&&(this.adapter.addThumbClass(a4,g6.START),this.adapter.addThumbClass(a4,g6.END))},t.prototype.handleThumbMouseleave=function(){!this.isDiscrete||!this.isRange||this.adapter.isInputFocused(g6.START)||this.adapter.isInputFocused(g6.END)||(this.adapter.removeThumbClass(a4,g6.START),this.adapter.removeThumbClass(a4,g6.END))},t.prototype.handleMousedownOrTouchstart=function(e){var t=this,n="mousedown"===e.type?"mousemove":"touchmove";this.adapter.registerBodyEventHandler(n,this.moveListener);var i=function(){t.handleUp(),t.adapter.deregisterBodyEventHandler(n,t.moveListener),t.adapter.deregisterEventHandler("mouseup",i),t.adapter.deregisterEventHandler("touchend",i)};this.adapter.registerBodyEventHandler("mouseup",i),this.adapter.registerBodyEventHandler("touchend",i),this.handleDown(e)},t.prototype.handlePointerdown=function(e){this.adapter.setPointerCapture(e.pointerId),this.adapter.registerEventHandler("pointermove",this.moveListener),this.handleDown(e)},t.prototype.handleInputChange=function(e){var t=Number(this.adapter.getInputValue(e));e===g6.START?this.setValueStart(t):this.setValue(t)},t.prototype.handleInputFocus=function(e){if(this.isDiscrete&&(this.adapter.addThumbClass(a4,e),this.isRange)){var t=e===g6.START?g6.END:g6.START;this.adapter.addThumbClass(a4,t)}},t.prototype.handleInputBlur=function(e){if(this.isDiscrete&&(this.adapter.removeThumbClass(a4,e),this.isRange)){var t=e===g6.START?g6.END:g6.START;this.adapter.removeThumbClass(a4,t)}},t.prototype.handleDragStart=function(e,t,n){this.adapter.focusInput(n),e.preventDefault(),this.adapter.emitDragStartEvent(t,n)},t.prototype.getThumbFromDownEvent=function(e,t){if(!this.isRange)return g6.END;var n=this.adapter.getThumbBoundingClientRect(g6.START),i=this.adapter.getThumbBoundingClientRect(g6.END),o=e>=n.left&&e<=n.right,r=e>=i.left&&e<=i.right;return o&&r?null:o?g6.START:r?g6.END:t<this.valueStart?g6.START:t>this.value?g6.END:null},t.prototype.getThumbFromMoveEvent=function(e){if(null!==this.thumb)return this.thumb;if(null===this.downEventClientX)throw Error("`downEventClientX` is null after move event.");return 5>Math.abs(this.downEventClientX-e)?this.thumb:e<this.downEventClientX?this.adapter.isRTL()?g6.END:g6.START:this.adapter.isRTL()?g6.START:g6.END},t.prototype.updateUI=function(e){this.updateThumbAndInputAttributes(e),this.updateThumbAndTrackUI(e),this.updateValueIndicatorUI(e),this.updateTickMarksUI()},t.prototype.updateThumbAndInputAttributes=function(e){if(e){var t=this.isRange&&e===g6.START?this.valueStart:this.value,n=String(t);this.adapter.setInputAttribute(a9,n,e),this.isRange&&e===g6.START?this.adapter.setInputAttribute("min",n,g6.END):this.isRange&&e===g6.END&&this.adapter.setInputAttribute("max",n,g6.START),this.adapter.getInputValue(e)!==n&&this.adapter.setInputValue(n,e);var i=this.adapter.getValueToAriaValueTextFn();i&&this.adapter.setInputAttribute("aria-valuetext",i(t),e)}},t.prototype.updateValueIndicatorUI=function(e){if(this.isDiscrete){var t=this.isRange&&e===g6.START?this.valueStart:this.value;this.adapter.setValueIndicatorText(t,e===g6.START?g6.START:g6.END),!e&&this.isRange&&this.adapter.setValueIndicatorText(this.valueStart,g6.START)}},t.prototype.updateTickMarksUI=function(){if(this.isDiscrete&&this.hasTickMarks){var e=(this.valueStart-this.min)/this.step,t=(this.value-this.valueStart)/this.step+1,n=(this.max-this.value)/this.step,i=Array.from({length:e}).fill(g3.INACTIVE),o=Array.from({length:t}).fill(g3.ACTIVE),r=Array.from({length:n}).fill(g3.INACTIVE);this.adapter.updateTickMarks(i.concat(o).concat(r))}},t.prototype.mapClientXOnSliderScale=function(e){var t=(e-this.rect.left)/this.rect.width;this.adapter.isRTL()&&(t=1-t);var n=this.min+t*(this.max-this.min);return n===this.max||n===this.min?n:this.quantize(n)},t.prototype.updateValue=function(e,t,n){var i=void 0===n?{}:n,o=i.emitInputEvent,r=i.emitChangeEvent;if(e=this.clampValue(e,t),this.isRange&&t===g6.START){if(this.valueStart===e)return;this.valueStart=e}else{if(this.value===e)return;this.value=e}this.updateUI(t),o&&this.adapter.emitInputEvent(t===g6.START?this.valueStart:this.value,t),r&&this.adapter.emitChangeEvent(t===g6.START?this.valueStart:this.value,t)},t.prototype.quantize=function(e){return Math.round(e/this.step)*this.step},t.prototype.clampValue=function(e,t){return(e=Math.min(Math.max(e,this.min),this.max),this.isRange&&t===g6.START&&e>this.value)?this.value:this.isRange&&t===g6.END&&e<this.valueStart?this.valueStart:e},t.prototype.updateThumbAndTrackUI=function(e){var t=this,n=this.max,i=this.min,o=(this.value-this.valueStart)/(n-i),r=o*this.rect.width,a=this.adapter.isRTL(),s=st?aM(window,"transform"):"transform";if(this.isRange){var l=this.adapter.isRTL()?(n-this.value)/(n-i)*this.rect.width:(this.valueStart-i)/(n-i)*this.rect.width,c=l+r;requestAnimationFrame(function(){!a&&e===g6.START||a&&e!==g6.START?(t.adapter.setTrackActiveStyleProperty("transform-origin","right"),t.adapter.setTrackActiveStyleProperty("left","unset"),t.adapter.setTrackActiveStyleProperty("right",t.rect.width-c+"px")):(t.adapter.setTrackActiveStyleProperty("transform-origin","left"),t.adapter.setTrackActiveStyleProperty("right","unset"),t.adapter.setTrackActiveStyleProperty("left",l+"px")),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")");var n=a?c:l,i=t.adapter.isRTL()?l:c;e!==g6.START&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+n+"px)",g6.START),e!==g6.END&&e&&t.initialStylesRemoved||t.adapter.setThumbStyleProperty(s,"translateX("+i+"px)",g6.END),t.removeInitialStyles(a),t.updateOverlappingThumbsUI(n,i,e)})}else requestAnimationFrame(function(){var e=a?t.rect.width-r:r;t.adapter.setThumbStyleProperty(s,"translateX("+e+"px)",g6.END),t.adapter.setTrackActiveStyleProperty(s,"scaleX("+o+")"),t.removeInitialStyles(a)})},t.prototype.removeInitialStyles=function(e){if(!this.initialStylesRemoved){var t=e?"right":"left";this.adapter.removeThumbStyleProperty(t,g6.END),this.isRange&&this.adapter.removeThumbStyleProperty(t,g6.START),this.initialStylesRemoved=!0,this.resetTrackAndThumbAnimation()}},t.prototype.resetTrackAndThumbAnimation=function(){var e=this;if(this.isDiscrete){var t=st?aM(window,"transition"):"transition",n="all 0s ease 0s";this.adapter.setThumbStyleProperty(t,n,g6.END),this.isRange&&this.adapter.setThumbStyleProperty(t,n,g6.START),this.adapter.setTrackActiveStyleProperty(t,n),requestAnimationFrame(function(){e.adapter.removeThumbStyleProperty(t,g6.END),e.adapter.removeTrackActiveStyleProperty(t),e.isRange&&e.adapter.removeThumbStyleProperty(t,g6.START)})}},t.prototype.updateOverlappingThumbsUI=function(e,t,n){var i=!1;if(this.adapter.isRTL()){var o=e-this.startThumbKnobWidth/2;i=t+this.endThumbKnobWidth/2>=o}else i=e+this.startThumbKnobWidth/2>=t-this.endThumbKnobWidth/2;i?(this.adapter.addThumbClass(a5,n||g6.END),this.adapter.removeThumbClass(a5,n===g6.START?g6.END:g6.START)):(this.adapter.removeThumbClass(a5,g6.START),this.adapter.removeThumbClass(a5,g6.END))},t.prototype.convertAttributeValueToNumber=function(e,t){if(null===e)throw Error("MDCSliderFoundation: `"+t+"` must be non-null.");var n=Number(e);if(isNaN(n))throw Error("MDCSliderFoundation: `"+t+"` value is `"+e+"`, but must be a number.");return n},t.prototype.validateProperties=function(e){var t=e.min,n=e.max,i=e.value,o=e.valueStart;if(t>=n)throw Error("MDCSliderFoundation: min must be strictly less than max. "+("Current: [min: "+t+", max: ")+n+"]");if(this.isRange){if(i<t||i>n||o<t||o>n)throw Error("MDCSliderFoundation: values must be in [min, max] range. "+("Current values: [start value: "+o+", end value: ")+i+"]");if(o>i)throw Error("MDCSliderFoundation: start value must be <= end value. "+("Current values: [start value: "+o+", end value: ")+i+"]")}else if(i<t||i>n)throw Error("MDCSliderFoundation: value must be in [min, max] range. Current value: "+i)},t.prototype.registerEventHandlers=function(){this.adapter.registerWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.registerEventHandler("pointerdown",this.pointerdownListener),this.adapter.registerEventHandler("pointerup",this.pointerupListener)):(this.adapter.registerEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.registerEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.registerThumbEventHandler(g6.START,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g6.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g6.START,"change",this.inputStartChangeListener),this.adapter.registerInputEventHandler(g6.START,"focus",this.inputStartFocusListener),this.adapter.registerInputEventHandler(g6.START,"blur",this.inputStartBlurListener)),this.adapter.registerThumbEventHandler(g6.END,"mouseenter",this.thumbMouseenterListener),this.adapter.registerThumbEventHandler(g6.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.registerInputEventHandler(g6.END,"change",this.inputEndChangeListener),this.adapter.registerInputEventHandler(g6.END,"focus",this.inputEndFocusListener),this.adapter.registerInputEventHandler(g6.END,"blur",this.inputEndBlurListener)},t.prototype.deregisterEventHandlers=function(){this.adapter.deregisterWindowEventHandler("resize",this.resizeListener),t.SUPPORTS_POINTER_EVENTS?(this.adapter.deregisterEventHandler("pointerdown",this.pointerdownListener),this.adapter.deregisterEventHandler("pointerup",this.pointerupListener)):(this.adapter.deregisterEventHandler("mousedown",this.mousedownOrTouchstartListener),this.adapter.deregisterEventHandler("touchstart",this.mousedownOrTouchstartListener)),this.isRange&&(this.adapter.deregisterThumbEventHandler(g6.START,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g6.START,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g6.START,"change",this.inputStartChangeListener),this.adapter.deregisterInputEventHandler(g6.START,"focus",this.inputStartFocusListener),this.adapter.deregisterInputEventHandler(g6.START,"blur",this.inputStartBlurListener)),this.adapter.deregisterThumbEventHandler(g6.END,"mouseenter",this.thumbMouseenterListener),this.adapter.deregisterThumbEventHandler(g6.END,"mouseleave",this.thumbMouseleaveListener),this.adapter.deregisterInputEventHandler(g6.END,"change",this.inputEndChangeListener),this.adapter.deregisterInputEventHandler(g6.END,"focus",this.inputEndFocusListener),this.adapter.deregisterInputEventHandler(g6.END,"blur",this.inputEndBlurListener)},t.prototype.handlePointerup=function(){this.handleUp(),this.adapter.deregisterEventHandler("pointermove",this.moveListener)},t.SUPPORTS_POINTER_EVENTS=st&&!!window.PointerEvent,t}(rM),si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.skipInitialUIUpdate=!1,t.valueToAriaValueTextFn=null,t}return aZ(t,e),t.attachTo=function(e,n){return void 0===n&&(n={}),new t(e,void 0,n)},t.prototype.getDefaultFoundation=function(){var e=this;return new sn({hasClass:function(t){return e.root.classList.contains(t)},addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},addThumbClass:function(t,n){e.getThumbEl(n).classList.add(t)},removeThumbClass:function(t,n){e.getThumbEl(n).classList.remove(t)},getAttribute:function(t){return e.root.getAttribute(t)},getInputValue:function(t){return e.getInput(t).value},setInputValue:function(t,n){e.getInput(n).value=t},getInputAttribute:function(t,n){return e.getInput(n).getAttribute(t)},setInputAttribute:function(t,n,i){e.getInput(i).setAttribute(t,n)},removeInputAttribute:function(t,n){e.getInput(n).removeAttribute(t)},focusInput:function(t){e.getInput(t).focus()},isInputFocused:function(t){return e.getInput(t)===document.activeElement},getThumbKnobWidth:function(t){return e.getThumbEl(t).querySelector(".mdc-slider__thumb-knob").getBoundingClientRect().width},getThumbBoundingClientRect:function(t){return e.getThumbEl(t).getBoundingClientRect()},getBoundingClientRect:function(){return e.root.getBoundingClientRect()},isRTL:function(){return"rtl"===getComputedStyle(e.root).direction},setThumbStyleProperty:function(t,n,i){e.getThumbEl(i).style.setProperty(t,n)},removeThumbStyleProperty:function(t,n){e.getThumbEl(n).style.removeProperty(t)},setTrackActiveStyleProperty:function(t,n){e.trackActive.style.setProperty(t,n)},removeTrackActiveStyleProperty:function(t){e.trackActive.style.removeProperty(t)},setValueIndicatorText:function(t,n){e.getThumbEl(n).querySelector(".mdc-slider__value-indicator-text").textContent=String(t)},getValueToAriaValueTextFn:function(){return e.valueToAriaValueTextFn},updateTickMarks:function(t){var n=e.root.querySelector("."+a3);n||((n=document.createElement("div")).classList.add(a3),e.root.querySelector(".mdc-slider__track").appendChild(n)),t.length!==n.children.length?(n.innerHTML="",e.addTickMarks(n,t)):e.updateTickMarks(n,t)},setPointerCapture:function(t){e.root.setPointerCapture(t)},emitChangeEvent:function(t,n){e.emit("MDCSlider:change",{value:t,thumb:n})},emitInputEvent:function(t,n){e.emit("MDCSlider:input",{value:t,thumb:n})},emitDragStartEvent:function(t,n){e.getRipple(n).activate()},emitDragEndEvent:function(t,n){e.getRipple(n).deactivate()},registerEventHandler:function(t,n){e.listen(t,n)},deregisterEventHandler:function(t,n){e.unlisten(t,n)},registerThumbEventHandler:function(t,n,i){e.getThumbEl(t).addEventListener(n,i)},deregisterThumbEventHandler:function(t,n,i){e.getThumbEl(t).removeEventListener(n,i)},registerInputEventHandler:function(t,n,i){e.getInput(t).addEventListener(n,i)},deregisterInputEventHandler:function(t,n,i){e.getInput(t).removeEventListener(n,i)},registerBodyEventHandler:function(e,t){document.body.addEventListener(e,t)},deregisterBodyEventHandler:function(e,t){document.body.removeEventListener(e,t)},registerWindowEventHandler:function(e,t){window.addEventListener(e,t)},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t)}})},t.prototype.initialize=function(e){var t=(void 0===e?{}:e).skipInitialUIUpdate;this.inputs=[].slice.call(this.root.querySelectorAll(".mdc-slider__input")),this.thumbs=[].slice.call(this.root.querySelectorAll("."+a2)),this.trackActive=this.root.querySelector(".mdc-slider__track--active_fill"),this.ripples=this.createRipples(),t&&(this.skipInitialUIUpdate=!0)},t.prototype.initialSyncWithDOM=function(){this.foundation.layout({skipUpdateUI:this.skipInitialUIUpdate})},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getValueStart=function(){return this.foundation.getValueStart()},t.prototype.setValueStart=function(e){this.foundation.setValueStart(e)},t.prototype.getValue=function(){return this.foundation.getValue()},t.prototype.setValue=function(e){this.foundation.setValue(e)},t.prototype.getDisabled=function(){return this.foundation.getDisabled()},t.prototype.setDisabled=function(e){this.foundation.setDisabled(e)},t.prototype.setValueToAriaValueTextFn=function(e){this.valueToAriaValueTextFn=e},t.prototype.getThumbEl=function(e){return e===g6.END?this.thumbs[this.thumbs.length-1]:this.thumbs[0]},t.prototype.getInput=function(e){return e===g6.END?this.inputs[this.inputs.length-1]:this.inputs[0]},t.prototype.getRipple=function(e){return e===g6.END?this.ripples[this.ripples.length-1]:this.ripples[0]},t.prototype.addTickMarks=function(e,t){for(var n=document.createDocumentFragment(),i=0;i<t.length;i++){var o=document.createElement("div"),r=t[i]===g3.ACTIVE?a6:a8;o.classList.add(r),n.appendChild(o)}e.appendChild(n)},t.prototype.updateTickMarks=function(e,t){for(var n=Array.from(e.children),i=0;i<n.length;i++)t[i]===g3.ACTIVE?(n[i].classList.add(a6),n[i].classList.remove(a8)):(n[i].classList.add(a8),n[i].classList.remove(a6))},t.prototype.createRipples=function(){for(var e=[],t=[].slice.call(this.root.querySelectorAll("."+a2)),n=this,i=0;i<t.length;i++)!function(i){var o=t[i],r=n.inputs[i],a=a0(a0({},as.createAdapter(n)),{addClass:function(e){o.classList.add(e)},computeBoundingRect:function(){return o.getBoundingClientRect()},deregisterInteractionHandler:function(e,t){r.removeEventListener(e,t)},isSurfaceActive:function(){return rj(r,":active")},isUnbounded:function(){return!0},registerInteractionHandler:function(e,t){r.addEventListener(e,t)},removeClass:function(e){o.classList.remove(e)},updateCssVariable:function(e,t){o.style.setProperty(e,t)}}),s=new as(o,new aa(a));s.unbounded=!0,e.push(s)}(i);return e},t}(rN),so=function(e,t){return(so=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sr(e,t){function n(){this.constructor=e}so(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sa=function(){return(sa=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},ss={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},sl={CLOSED_EVENT:"MDCMenuSurface:closed",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:'button:not(:disabled), [href]:not([aria-disabled="true"]), input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'},sc={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67};(bY=g8||(g8={}))[bY.BOTTOM=1]="BOTTOM",bY[bY.CENTER=2]="CENTER",bY[bY.RIGHT=4]="RIGHT",bY[bY.FLIP_RTL=8]="FLIP_RTL",(bK=g7||(g7={}))[bK.TOP_LEFT=0]="TOP_LEFT",bK[bK.TOP_RIGHT=4]="TOP_RIGHT",bK[bK.BOTTOM_LEFT=1]="BOTTOM_LEFT",bK[bK.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",bK[bK.TOP_START=8]="TOP_START",bK[bK.TOP_END=12]="TOP_END",bK[bK.BOTTOM_START=9]="BOTTOM_START",bK[bK.BOTTOM_END=13]="BOTTOM_END";var sd=function(e,t){return(sd=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function su(e,t){function n(){this.constructor=e}sd(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sm=function(){return(sm=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sf=function(e,t){return(sf=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sh(e,t){function n(){this.constructor=e}sf(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sp=function(){return(sp=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sb={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},sg={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n ."+sb.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sb.LIST_ITEM_CLASS+" a\n ",FOCUSABLE_CHILD_ELEMENTS:"\n ."+sb.LIST_ITEM_CLASS+" button:not(:disabled),\n ."+sb.LIST_ITEM_CLASS+" a,\n ."+sb.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n .'+sb.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled)\n ',RADIO_SELECTOR:'input[type="radio"]'},sv={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},sy="Backspace",s_="Enter",sw="Spacebar",sF="PageUp",sx="PageDown",sk="Home",sE="ArrowLeft",sC="ArrowUp",sA="ArrowRight",sS="ArrowDown",sT="Delete",sI="Escape",sO=new Set;sO.add(sy),sO.add(s_),sO.add(sw),sO.add(sF),sO.add(sx),sO.add("End"),sO.add(sk),sO.add(sE),sO.add(sC),sO.add(sA),sO.add(sS),sO.add(sT),sO.add(sI);var sR=new Map;sR.set(8,sy),sR.set(13,s_),sR.set(32,sw),sR.set(33,sF),sR.set(34,sx),sR.set(35,"End"),sR.set(36,sk),sR.set(37,sE),sR.set(38,sC),sR.set(39,sA),sR.set(40,sS),sR.set(46,sT),sR.set(27,sI);var sD=new Set;function s$(e){var t=e.key;if(sO.has(t))return t;var n=sR.get(e.keyCode);return n||"Unknown"}sD.add(sF),sD.add(sx),sD.add("End"),sD.add(sk),sD.add(sE),sD.add(sC),sD.add(sA),sD.add(sS);var sL=["input","button","textarea","select"],sM=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase();-1===sL.indexOf(n)&&e.preventDefault()}};function sN(e,t){var n,i=e.nextChar,o=e.focusItemAtIndex,r=e.sortedIndexByFirstChar,a=e.focusedItemIndex,s=e.skipFocus,l=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout(function(){sP(t)},sv.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,-1===(n=1===t.typeaheadBuffer.length?function(e,t,n,i){var o,r=i.typeaheadBuffer[0],a=e.get(r);if(!a)return -1;if(r===i.currentFirstChar&&a[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%a.length;var s=a[i.sortedIndexCursor].index;if(!n(s))return s}i.currentFirstChar=r;var l=-1;for(o=0;o<a.length;o++)if(!n(a[o].index)){l=o;break}for(;o<a.length;o++)if(a[o].index>t&&!n(a[o].index)){l=o;break}return -1!==l?(i.sortedIndexCursor=l,a[i.sortedIndexCursor].index):-1}(r,a,l,t):function(e,t,n){var i=n.typeaheadBuffer[0],o=e.get(i);if(!o)return -1;var r=o[n.sortedIndexCursor];if(0===r.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(r.index))return r.index;for(var a=(n.sortedIndexCursor+1)%o.length,s=-1;a!==n.sortedIndexCursor;){var l=o[a],c=0===l.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(l.index);if(c&&d){s=a;break}a=(a+1)%o.length}return -1!==s?(n.sortedIndexCursor=s,o[n.sortedIndexCursor].index):-1}(r,l,t))||s||o(n),n}function sB(e){return e.typeaheadBuffer.length>0}function sP(e){e.typeaheadBuffer=""}function sj(e,t){var n=e.event,i=e.isTargetListItem,o=e.focusedItemIndex,r=e.focusItemAtIndex,a=e.sortedIndexByFirstChar,s=e.isItemAtIndexDisabled,l="ArrowLeft"===s$(n),c="ArrowUp"===s$(n),d="ArrowRight"===s$(n),u="ArrowDown"===s$(n),m="Home"===s$(n),f="End"===s$(n),h="Enter"===s$(n),p="Spacebar"===s$(n);if(l||c||d||u||m||f||h)return -1;if(!p&&1===n.key.length){sM(n);var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:n.key.toLowerCase(),sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(b,t)}if(!p)return -1;if(i&&sM(n),i&&sB(t)){var b={focusItemAtIndex:r,focusedItemIndex:o,nextChar:" ",sortedIndexByFirstChar:a,skipFocus:!1,isItemAtIndexDisabled:s};return sN(b,t)}return -1}var sz=function(e){function t(n){var i=e.call(this,sp(sp({},t.defaultAdapter),n))||this;return i.wrapFocus_=!1,i.isVertical_=!0,i.isSingleSelectionList_=!1,i.selectedIndex_=sv.UNSET_INDEX,i.focusedItemIndex=sv.UNSET_INDEX,i.useActivatedClass_=!1,i.useSelectedAttr_=!1,i.ariaCurrentAttrValue_=null,i.isCheckboxList_=!1,i.isRadioList_=!1,i.hasTypeahead=!1,i.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},i.sortedIndexByFirstChar=new Map,i}return sh(t,e),Object.defineProperty(t,"strings",{get:function(){return sg},enumerable:!0,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function(){return sb},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sv},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassForElementIndex:function(){},focusItemAtIndex:function(){},getAttributeForElementIndex:function(){return null},getFocusedElementIndex:function(){return 0},getListItemCount:function(){return 0},hasCheckboxAtIndex:function(){return!1},hasRadioAtIndex:function(){return!1},isCheckboxCheckedAtIndex:function(){return!1},isFocusInsideList:function(){return!1},isRootFocused:function(){return!1},listItemAtIndexHasClass:function(){return!1},notifyAction:function(){},removeClassForElementIndex:function(){},setAttributeForElementIndex:function(){},setCheckedCheckboxOrRadioAtIndex:function(){},setTabIndexForListItemChildren:function(){},getPrimaryTextAtIndex:function(){return""}}},enumerable:!0,configurable:!0}),t.prototype.layout=function(){0!==this.adapter.getListItemCount()&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList_=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList_=!0:this.maybeInitializeSingleSelection(),this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex()))},t.prototype.setWrapFocus=function(e){this.wrapFocus_=e},t.prototype.setVerticalOrientation=function(e){this.isVertical_=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList_=e,e&&this.maybeInitializeSingleSelection()},t.prototype.maybeInitializeSingleSelection=function(){for(var e=0;e<this.adapter.getListItemCount();e++){var t=this.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_SELECTED_CLASS),n=this.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_ACTIVATED_CLASS);if(t||n){n&&this.setUseActivatedClass(!0),this.isSingleSelectionList_=!0,this.selectedIndex_=e;return}}},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex())},t.prototype.isTypeaheadInProgress=function(){return this.hasTypeahead&&sB(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass_=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr_=e},t.prototype.getSelectedIndex=function(){return this.selectedIndex_},t.prototype.setSelectedIndex=function(e){this.isIndexValid_(e)&&(this.isCheckboxList_?this.setCheckboxAtIndex_(e):this.isRadioList_?this.setRadioAtIndex_(e):this.setSingleSelectionAtIndex_(e))},t.prototype.handleFocusIn=function(e,t){t>=0&&(this.focusedItemIndex=t,this.adapter.setAttributeForElementIndex(t,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(t,"0"))},t.prototype.handleFocusOut=function(e,t){var n=this;t>=0&&(this.adapter.setAttributeForElementIndex(t,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(t,"-1")),setTimeout(function(){n.adapter.isFocusInsideList()||n.setTabindexToFirstSelectedOrFocusedItem()},0)},t.prototype.handleKeydown=function(e,t,n){var i=this,o="ArrowLeft"===s$(e),r="ArrowUp"===s$(e),a="ArrowRight"===s$(e),s="ArrowDown"===s$(e),l="Home"===s$(e),c="End"===s$(e),d="Enter"===s$(e),u="Spacebar"===s$(e),m="A"===e.key||"a"===e.key;if(this.adapter.isRootFocused()){if(r||c?(e.preventDefault(),this.focusLastElement()):(s||l)&&(e.preventDefault(),this.focusFirstElement()),this.hasTypeahead){var f={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)}};sj(f,this.typeaheadState)}return}var h=this.adapter.getFocusedElementIndex();if(-1!==h||!((h=n)<0)){if(this.isVertical_&&s||!this.isVertical_&&a)sM(e),this.focusNextElement(h);else if(this.isVertical_&&r||!this.isVertical_&&o)sM(e),this.focusPrevElement(h);else if(l)sM(e),this.focusFirstElement();else if(c)sM(e),this.focusLastElement();else if(m&&e.ctrlKey&&this.isCheckboxList_)e.preventDefault(),this.toggleAll(this.selectedIndex_===sv.UNSET_INDEX?[]:this.selectedIndex_);else if((d||u)&&t){var p=e.target;if(p&&"A"===p.tagName&&d||(sM(e),this.adapter.listItemAtIndexHasClass(h,sb.LIST_ITEM_DISABLED_CLASS)))return;this.isTypeaheadInProgress()||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(h),this.adapter.notifyAction(h))}if(this.hasTypeahead){var f={event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)}};sj(f,this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e===sv.UNSET_INDEX||this.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList_()&&this.setSelectedIndexOnAction_(e,t),this.adapter.notifyAction(e))},t.prototype.focusNextElement=function(e){var t=this.adapter.getListItemCount(),n=e+1;if(n>=t)if(!this.wrapFocus_)return e;else n=0;return this.focusItemAtIndex(n),n},t.prototype.focusPrevElement=function(e){var t=e-1;if(t<0)if(!this.wrapFocus_)return e;else t=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(t),t},t.prototype.focusFirstElement=function(){return this.focusItemAtIndex(0),0},t.prototype.focusLastElement=function(){var e=this.adapter.getListItemCount()-1;return this.focusItemAtIndex(e),e},t.prototype.focusInitialElement=function(){var e=this.getFirstSelectedOrFocusedItemIndex();return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid_(e)&&(t?(this.adapter.removeClassForElementIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sg.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,sg.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex_=function(e){if(this.selectedIndex_!==e){var t=sb.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass_&&(t=sb.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex_!==sv.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex_,t),this.setAriaForSingleSelectionAtIndex_(e),this.setTabindexAtIndex(e),e!==sv.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,t),this.selectedIndex_=e}},t.prototype.setAriaForSingleSelectionAtIndex_=function(e){this.selectedIndex_===sv.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,sg.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue_,n=t?sg.ARIA_CURRENT:sg.ARIA_SELECTED;if(this.selectedIndex_!==sv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,n,"false"),e!==sv.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function(){return this.useSelectedAttr_?sg.ARIA_SELECTED:sg.ARIA_CHECKED},t.prototype.setRadioAtIndex_=function(e){var t=this.getSelectionAttribute();this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex_!==sv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,t,"false"),this.adapter.setAttributeForElementIndex(e,t,"true"),this.selectedIndex_=e},t.prototype.setCheckboxAtIndex_=function(e){for(var t=this.getSelectionAttribute(),n=0;n<this.adapter.getListItemCount();n++){var i=!1;e.indexOf(n)>=0&&(i=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(n,i),this.adapter.setAttributeForElementIndex(n,t,i?"true":"false")}this.selectedIndex_=e},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===sv.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex_ instanceof Array||this.selectedIndex_===e||this.adapter.setAttributeForElementIndex(this.selectedIndex_,"tabindex","-1"),e!==sv.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList_=function(){return this.isSingleSelectionList_||this.isCheckboxList_||this.isRadioList_},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function(){var e=this.getFirstSelectedOrFocusedItemIndex();this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function(){var e=this.focusedItemIndex>=0?this.focusedItemIndex:0;return this.isSelectableList_()&&("number"==typeof this.selectedIndex_&&this.selectedIndex_!==sv.UNSET_INDEX?e=this.selectedIndex_:this.selectedIndex_ instanceof Array&&this.selectedIndex_.length>0&&(e=this.selectedIndex_.reduce(function(e,t){return Math.min(e,t)}))),e},t.prototype.isIndexValid_=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList_)throw Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some(function(e){return t.isIndexInRange_(e)})}if("number"!=typeof e)return!1;if(this.isCheckboxList_)throw Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange_(e)||this.isSingleSelectionList_&&e===sv.UNSET_INDEX},t.prototype.isIndexInRange_=function(e){var t=this.adapter.getListItemCount();return e>=0&&e<t},t.prototype.setSelectedIndexOnAction_=function(e,t){void 0===t&&(t=!0),this.isCheckboxList_?this.toggleCheckboxAtIndex_(e,t):this.setSelectedIndex(e)},t.prototype.toggleCheckboxAtIndex_=function(e,t){var n=this.getSelectionAttribute(),i=this.adapter.isCheckboxCheckedAtIndex(e);t&&(i=!i,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,i)),this.adapter.setAttributeForElementIndex(e,n,i?"true":"false");var o=this.selectedIndex_===sv.UNSET_INDEX?[]:this.selectedIndex_.slice();i?o.push(e):o=o.filter(function(t){return t!==e}),this.selectedIndex_=o},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.toggleAll=function(e){var t=this.adapter.getListItemCount();if(e.length===t)this.setCheckboxAtIndex_([]);else{for(var n=[],i=0;i<t;i++)(!this.adapter.listItemAtIndexHasClass(i,sb.LIST_ITEM_DISABLED_CLASS)||e.indexOf(i)>-1)&&n.push(i);this.setCheckboxAtIndex_(n)}},t.prototype.typeaheadMatchItem=function(e,t,n){var i=this;return void 0===n&&(n=!1),sN({focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,sb.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function(){return function(e,t){for(var n=new Map,i=0;i<e;i++){var o=t(i).trim();if(o){var r=o[0].toLowerCase();n.has(r)||n.set(r,[]),n.get(r).push({text:o.toLowerCase(),index:i})}}return n.forEach(function(e){e.sort(function(e,t){return e.index-t.index})}),n}(this.adapter.getListItemCount(),this.adapter.getPrimaryTextAtIndex)},t.prototype.clearTypeaheadBuffer=function(){sP(this.typeaheadState)},t}(rM),sU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sh(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function(){return[].slice.call(this.root.querySelectorAll("."+sb.LIST_ITEM_CLASS))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return this.foundation.isTypeaheadInProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!0,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){this.handleClick_=this.handleClickEvent_.bind(this),this.handleKeydown_=this.handleKeydownEvent_.bind(this),this.focusInEventListener_=this.handleFocusInEvent_.bind(this),this.focusOutEventListener_=this.handleFocusOutEvent_.bind(this),this.listen("keydown",this.handleKeydown_),this.listen("click",this.handleClick_),this.listen("focusin",this.focusInEventListener_),this.listen("focusout",this.focusOutEventListener_),this.layout(),this.initializeListType()},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown_),this.unlisten("click",this.handleClick_),this.unlisten("focusin",this.focusInEventListener_),this.unlisten("focusout",this.focusOutEventListener_)},t.prototype.layout=function(){var e=this.root.getAttribute(sg.ARIA_ORIENTATION);this.vertical=e!==sg.ARIA_ORIENTATION_HORIZONTAL,[].slice.call(this.root.querySelectorAll(".mdc-list-item:not([tabindex])")).forEach(function(e){e.setAttribute("tabindex","-1")}),[].slice.call(this.root.querySelectorAll(sg.FOCUSABLE_CHILD_ELEMENTS)).forEach(function(e){return e.setAttribute("tabindex","-1")}),this.foundation.layout()},t.prototype.getPrimaryText=function(e){var t=e.querySelector("."+sb.LIST_ITEM_PRIMARY_TEXT_CLASS);if(t)return t.textContent||"";var n=e.querySelector("."+sb.LIST_ITEM_TEXT_CLASS);return n&&n.textContent||""},t.prototype.initializeListType=function(){var e=this,t=this.root.querySelectorAll(sg.ARIA_ROLE_CHECKBOX_SELECTOR),n=this.root.querySelector(sg.ARIA_CHECKED_RADIO_SELECTOR);if(t.length){var i=this.root.querySelectorAll(sg.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=[].map.call(i,function(t){return e.listElements.indexOf(t)})}else n&&(this.selectedIndex=this.listElements.indexOf(n))},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function(){var e=this;return new sz({addClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.add(n)},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus()},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function(){return e.listElements.indexOf(document.activeElement)},getListItemCount:function(){return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(sg.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(sg.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(sg.CHECKBOX_SELECTOR).checked},isFocusInsideList:function(){return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function(){return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(n)},notifyAction:function(t){e.emit(sg.ACTION_EVENT,{index:t},!0)},removeClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.remove(n)},setAttributeForElementIndex:function(t,n,i){var o=e.listElements[t];o&&o.setAttribute(n,i)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var i=e.listElements[t].querySelector(sg.CHECKBOX_RADIO_SELECTOR);i.checked=n;var o=document.createEvent("Event");o.initEvent("change",!0,!0),i.dispatchEvent(o)},setTabIndexForListItemChildren:function(t,n){var i=e.listElements[t];[].slice.call(i.querySelectorAll(sg.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX)).forEach(function(e){return e.setAttribute("tabindex",n)})}})},t.prototype.getListItemIndex_=function(e){var t=rP(e.target,"."+sb.LIST_ITEM_CLASS+", ."+sb.ROOT);return t&&rj(t,"."+sb.LIST_ITEM_CLASS)?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusIn(e,t)},t.prototype.handleFocusOutEvent_=function(e){var t=this.getListItemIndex_(e);this.foundation.handleFocusOut(e,t)},t.prototype.handleKeydownEvent_=function(e){var t=this.getListItemIndex_(e),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(sb.LIST_ITEM_CLASS),t)},t.prototype.handleClickEvent_=function(e){var t=this.getListItemIndex_(e),n=!rj(e.target,sg.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,n)},t}(rN),sH=function(e,t){return(sH=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function sV(e,t){function n(){this.constructor=e}sH(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var sW=function(){return(sW=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},sG=function(e){function t(n){var i=e.call(this,sW(sW({},t.defaultAdapter),n))||this;return i.isSurfaceOpen=!1,i.isQuickOpen=!1,i.isHoistedElement=!1,i.isFixedPosition=!1,i.openAnimationEndTimerId=0,i.closeAnimationEndTimerId=0,i.animationRequestId=0,i.anchorCorner=g7.TOP_START,i.originCorner=g7.TOP_START,i.anchorMargin={top:0,right:0,bottom:0,left:0},i.position={x:0,y:0},i}return sV(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return ss},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sl},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sc},enumerable:!0,configurable:!0}),Object.defineProperty(t,"Corner",{get:function(){return g7},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},hasAnchor:function(){return!1},isElementInContainer:function(){return!1},isFocused:function(){return!1},isRtl:function(){return!1},getInnerDimensions:function(){return{height:0,width:0}},getAnchorDimensions:function(){return null},getWindowDimensions:function(){return{height:0,width:0}},getBodyDimensions:function(){return{height:0,width:0}},getWindowScroll:function(){return{x:0,y:0}},setPosition:function(){},setMaxHeight:function(){},setTransformOrigin:function(){},saveFocus:function(){},restoreFocus:function(){},notifyClose:function(){},notifyOpen:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=t.cssClasses,n=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(n))throw Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function(){clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function(){this.originCorner=this.originCorner^g8.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.isOpen=function(){return this.isSurfaceOpen},t.prototype.open=function(){var e=this;this.isSurfaceOpen||(this.adapter.saveFocus(),this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions(),this.autoposition(),this.adapter.notifyOpen()):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame(function(){e.adapter.addClass(t.cssClasses.OPEN),e.dimensions=e.adapter.getInnerDimensions(),e.autoposition(),e.openAnimationEndTimerId=setTimeout(function(){e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen()},sc.TRANSITION_OPEN_DURATION)}),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;void 0===e&&(e=!1),this.isSurfaceOpen&&(this.isQuickOpen?(this.isSurfaceOpen=!1,e||this.maybeRestoreFocus(),this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),this.adapter.notifyClose()):(this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame(function(){n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout(function(){n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose()},sc.TRANSITION_CLOSE_DURATION)}),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus()))},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close()},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close()},t.prototype.autoposition=function(){this.measurements=this.getAutoLayoutmeasurements();var e,n=this.getoriginCorner(),i=this.getMenuSurfaceMaxHeight(n),o=this.hasBit(n,g8.BOTTOM)?"bottom":"top",r=this.hasBit(n,g8.RIGHT)?"right":"left",a=this.getHorizontalOriginOffset(n),s=this.getVerticalOriginOffset(n),l=this.measurements,c=l.anchorSize,d=l.surfaceSize,u=((e={})[r]=a,e[o]=s,e);c.width/d.width>sc.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(r="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(u),this.adapter.setTransformOrigin(r+" "+o),this.adapter.setPosition(u),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(n,g8.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function(){var e=this.adapter.getAnchorDimensions(),t=this.adapter.getBodyDimensions(),n=this.adapter.getWindowDimensions(),i=this.adapter.getWindowScroll();return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:i}},t.prototype.getoriginCorner=function(){var e,n,i,o,r=this.originCorner,a=this.measurements,s=a.viewportDistance,l=a.anchorSize,c=a.surfaceSize,d=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,g8.BOTTOM)?(e=s.top-d+l.height+this.anchorMargin.bottom,n=s.bottom-d-this.anchorMargin.bottom):(e=s.top-d+this.anchorMargin.top,n=s.bottom-d+l.height-this.anchorMargin.top),!(n-c.height>0)&&e>=n&&(r=this.setBit(r,g8.BOTTOM));var u=this.adapter.isRtl(),m=this.hasBit(this.anchorCorner,g8.FLIP_RTL),f=this.hasBit(this.anchorCorner,g8.RIGHT)||this.hasBit(r,g8.RIGHT),h=!1;(h=u&&m?!f:f)?(i=s.left+l.width+this.anchorMargin.right,o=s.right-this.anchorMargin.right):(i=s.left+this.anchorMargin.left,o=s.right+l.width-this.anchorMargin.left);var p=i-c.width>0,b=o-c.width>0,g=this.hasBit(r,g8.FLIP_RTL)&&this.hasBit(r,g8.RIGHT);return b&&g&&u||!p&&g?r=this.unsetBit(r,g8.RIGHT):(p&&h&&u||p&&!h&&f||!b&&i>=o)&&(r=this.setBit(r,g8.RIGHT)),r},t.prototype.getMenuSurfaceMaxHeight=function(e){var n=this.measurements.viewportDistance,i=0,o=this.hasBit(e,g8.BOTTOM),r=this.hasBit(this.anchorCorner,g8.BOTTOM),a=t.numbers.MARGIN_TO_EDGE;return o?(i=n.top+this.anchorMargin.top-a,r||(i+=this.measurements.anchorSize.height)):(i=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-a,r&&(i-=this.measurements.anchorSize.height)),i},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,g8.RIGHT),i=this.hasBit(this.anchorCorner,g8.RIGHT);if(n){var o=i?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?o-(this.measurements.viewportSize.width-this.measurements.bodySize.width):o}return i?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,g8.BOTTOM),i=this.hasBit(this.anchorCorner,g8.BOTTOM);return n?i?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,i=this.measurements,o=i.windowScroll,r=i.viewportDistance,a=Object.keys(e);try{for(var s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(a),l=s.next();!l.done;l=s.next()){var c=l.value,d=e[c]||0;d+=r[c],this.isFixedPosition||("top"===c?d+=o.y:"bottom"===c?d-=o.y:"left"===c?d+=o.x:d-=o.x),e[c]=d}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function(){var e=this.adapter.isFocused(),t=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(e||t)&&this.adapter.restoreFocus()},t.prototype.hasBit=function(e,t){return!!(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(rM),sq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sV(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(ss.ANCHOR)?t:null,this.root.classList.contains(ss.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function(){document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function(){document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(sl.OPENED_EVENT,this.registerBodyClickListener),this.listen(sl.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function(){this.unlisten("keydown",this.handleKeydown),this.unlisten(sl.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(sl.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function(){return this.foundation.isOpen()},t.prototype.open=function(){this.foundation.open()},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!0,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(ss.FIXED):this.root.classList.remove(ss.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new sG({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function(){return!!e.anchorElement},notifyClose:function(){return e.emit(sG.strings.CLOSED_EVENT,{})},notifyOpen:function(){return e.emit(sG.strings.OPENED_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function(){return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n,i,o=(n=window,void 0===i&&(i=!1),(void 0===g9||i)&&(g9="transform"in n.document.createElement("div").style?"transform":"webkitTransform"),g9+"-origin");e.root.style.setProperty(o,t)},isFocused:function(){return document.activeElement===e.root},saveFocus:function(){e.previousFocus=document.activeElement},restoreFocus:function(){e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus()},getInnerDimensions:function(){return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function(){return e.anchorElement?e.anchorElement.getBoundingClientRect():null},getWindowDimensions:function(){return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function(){return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function(){return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}})},t}(rN),sY={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},sK={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list",SELECTED_EVENT:"MDCMenu:selected"},sX={FOCUS_ROOT_INDEX:-1};(bX=ve||(ve={}))[bX.NONE=0]="NONE",bX[bX.LIST_ROOT=1]="LIST_ROOT",bX[bX.FIRST_ITEM=2]="FIRST_ITEM",bX[bX.LAST_ITEM=3]="LAST_ITEM";var sJ=function(e){function t(n){var i=e.call(this,sm(sm({},t.defaultAdapter),n))||this;return i.closeAnimationEndTimerId_=0,i.defaultFocusState_=ve.LIST_ROOT,i}return su(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sY},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sK},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return sX},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClassToElementAtIndex:function(){},removeClassFromElementAtIndex:function(){},addAttributeToElementAtIndex:function(){},removeAttributeFromElementAtIndex:function(){},elementContainsClass:function(){return!1},closeSurface:function(){},getElementIndex:function(){return -1},notifySelected:function(){},getMenuItemCount:function(){return 0},focusItemAtIndex:function(){},focusListRoot:function(){},getSelectedSiblingOfItemAtIndex:function(){return -1},isSelectableItemAtIndex:function(){return!1}}},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.closeAnimationEndTimerId_&&clearTimeout(this.closeAnimationEndTimerId_),this.adapter.closeSurface()},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);n<0||(this.adapter.notifySelected({index:n}),this.adapter.closeSurface(),this.closeAnimationEndTimerId_=setTimeout(function(){var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)},sG.numbers.TRANSITION_CLOSE_DURATION))},t.prototype.handleMenuSurfaceOpened=function(){switch(this.defaultFocusState_){case ve.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case ve.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount()-1);break;case ve.NONE:break;default:this.adapter.focusListRoot()}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState_=e},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex_(e),!this.adapter.isSelectableItemAtIndex(e))throw Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,sK.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,sY.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,sY.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_CHECKED_ATTR,"true")},t.prototype.setEnabled=function(e,t){this.validatedIndex_(e),t?(this.adapter.removeClassFromElementAtIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,sb.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,sK.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex_=function(e){var t=this.adapter.getMenuItemCount();if(!(e>=0&&e<t))throw Error("MDCMenuFoundation: No list item at specified index.")},t}(rM),sQ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return su(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new sq(e)}),void 0===t&&(t=function(e){return new sU(e)}),this.menuSurfaceFactory_=e,this.listFactory_=t},t.prototype.initialSyncWithDOM=function(){var e=this;this.menuSurface_=this.menuSurfaceFactory_(this.root);var t=this.root.querySelector(sK.LIST_SELECTOR);t?(this.list_=this.listFactory_(t),this.list_.wrapFocus=!0):this.list_=null,this.handleKeydown_=function(t){return e.foundation.handleKeydown(t)},this.handleItemAction_=function(t){return e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened_=function(){return e.foundation.handleMenuSurfaceOpened()},this.menuSurface_.listen(sG.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.listen("keydown",this.handleKeydown_),this.listen(sz.strings.ACTION_EVENT,this.handleItemAction_)},t.prototype.destroy=function(){this.list_&&this.list_.destroy(),this.menuSurface_.destroy(),this.menuSurface_.unlisten(sG.strings.OPENED_EVENT,this.handleMenuSurfaceOpened_),this.unlisten("keydown",this.handleKeydown_),this.unlisten(sz.strings.ACTION_EVENT,this.handleItemAction_),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function(){return this.menuSurface_.isOpen()},set:function(e){e?this.menuSurface_.open():this.menuSurface_.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function(){return!!this.list_&&this.list_.wrapFocus},set:function(e){this.list_&&(this.list_.wrapFocus=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list_&&(this.list_.hasTypeahead=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function(){return!!this.list_&&this.list_.typeaheadInProgress},enumerable:!0,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list_?this.list_.typeaheadMatchItem(e,t):-1},t.prototype.layout=function(){this.list_&&this.list_.layout()},Object.defineProperty(t.prototype,"items",{get:function(){return this.list_?this.list_.listElements:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list_&&(this.list_.singleSelection=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.list_?this.list_.selectedIndex:sv.UNSET_INDEX},set:function(e){this.list_&&(this.list_.selectedIndex=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface_.quickOpen=e},enumerable:!0,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface_.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface_.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list_&&this.list_.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface_.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface_.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface_.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface_.anchorElement=e},t.prototype.getDefaultFoundation=function(){var e=this;return new sJ({addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,i){e.items[t].setAttribute(n,i)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){return e.menuSurface_.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){return e.emit(sK.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function(){return e.items.length},focusItemAtIndex:function(t){return e.items[t].focus()},focusListRoot:function(){return e.root.querySelector(sK.LIST_SELECTOR).focus()},isSelectableItemAtIndex:function(t){return!!rP(e.items[t],"."+sY.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=rP(e.items[t],"."+sY.MENU_SELECTION_GROUP).querySelector("."+sY.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}})},t}(rN),sZ={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},s0={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},s1={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},s2=function(e){function t(n,i){void 0===i&&(i={});var o=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=s1.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=i.leadingIcon,o.helperText=i.helperText,o}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return sZ},enumerable:!0,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return s1},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s0},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},activateBottomLine:function(){},deactivateBottomLine:function(){},getSelectedIndex:function(){return -1},setSelectedIndex:function(){},hasLabel:function(){return!1},floatLabel:function(){},getLabelWidth:function(){return 0},setLabelRequired:function(){},hasOutline:function(){return!1},notchOutline:function(){},closeOutline:function(){},setRippleCenter:function(){},notifyChange:function(){},setSelectedText:function(){},isSelectAnchorFocused:function(){return!1},getSelectAnchorAttr:function(){return""},setSelectAnchorAttr:function(){},removeSelectAnchorAttr:function(){},addMenuClass:function(){},removeMenuClass:function(){},openMenu:function(){},closeMenu:function(){},getAnchorElement:function(){return null},setMenuAnchorElement:function(){},setMenuAnchorCorner:function(){},setMenuWrapFocus:function(){},focusMenuItemAtIndex:function(){},getMenuItemCount:function(){return 0},getMenuItemValues:function(){return[]},getMenuItemTextAtIndex:function(){return""},isTypeaheadInProgress:function(){return!1},typeaheadMatchItem:function(){return -1}}},enumerable:!0,configurable:!0}),t.prototype.getSelectedIndex=function(){return this.adapter.getSelectedIndex()},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount()||(e===s1.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim()),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu(),n||this.lastSelectedIndex===e||this.handleChange(),this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues().indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function(){var e=this.adapter.getSelectedIndex(),t=this.adapter.getMenuItemValues();return e!==s1.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function(){return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(sZ.DISABLED),this.adapter.closeMenu()):this.adapter.removeClass(sZ.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString())},t.prototype.openMenu=function(){this.adapter.addClass(sZ.ACTIVATED),this.adapter.openMenu(),this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function(){if(this.adapter.hasLabel()){var e=this.getValue().length>0,t=this.adapter.hasClass(sZ.FOCUSED),n=e||t,i=this.adapter.hasClass(sZ.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},t.prototype.layoutOptions=function(){var e=this.adapter.getMenuItemValues().indexOf(this.getValue());this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function(){if(0!==this.adapter.getMenuItemValues().length){var e=this.getSelectedIndex();this.adapter.focusMenuItemAtIndex(e>=0?e:0)}},t.prototype.handleMenuClosed=function(){this.adapter.removeClass(sZ.ACTIVATED),this.isMenuOpen=!1,this.adapter.setSelectAnchorAttr("aria-expanded","false"),this.adapter.isSelectAnchorFocused()||this.blur()},t.prototype.handleChange=function(){this.layout(),this.adapter.notifyChange(this.getValue()),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function(){this.adapter.addClass(sZ.FOCUSED),this.layout(),this.adapter.activateBottomLine()},t.prototype.handleBlur=function(){this.isMenuOpen||this.blur()},t.prototype.handleClick=function(e){if(!this.disabled&&!this.recentlyClicked){if(this.setClickDebounceTimeout(),this.isMenuOpen)return void this.adapter.closeMenu();this.adapter.setRippleCenter(e),this.openMenu()}},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(sZ.FOCUSED)){var t=s$(e)===s_,n=s$(e)===sw,i=s$(e)===sC,o=s$(e)===sS;if(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress()){var r=n?" ":e.key,a=this.adapter.typeaheadMatchItem(r,this.getSelectedIndex());a>=0&&this.setSelectedIndex(a),e.preventDefault();return}(t||n||i||o)&&(i&&this.getSelectedIndex()>0?this.setSelectedIndex(this.getSelectedIndex()-1):o&&this.getSelectedIndex()<this.adapter.getMenuItemCount()-1&&this.setSelectedIndex(this.getSelectedIndex()+1),this.openMenu(),e.preventDefault())}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline()){var t=this.adapter.hasClass(sZ.FOCUSED);if(e){var n=s1.LABEL_SCALE,i=this.adapter.getLabelWidth()*n;this.adapter.notchOutline(i)}else t||this.adapter.closeOutline()}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString()),e?(this.adapter.removeClass(sZ.INVALID),this.adapter.removeMenuClass(sZ.MENU_INVALID)):(this.adapter.addClass(sZ.INVALID),this.adapter.addMenuClass(sZ.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function(){return this.useDefaultValidation&&this.adapter.hasClass(sZ.REQUIRED)&&!this.adapter.hasClass(sZ.DISABLED)?this.getSelectedIndex()!==s1.UNSET_INDEX&&(0!==this.getSelectedIndex()||!!this.getValue()):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(sZ.REQUIRED):this.adapter.removeClass(sZ.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString()),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function(){return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function(){var e=this.adapter.getAnchorElement();e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(g7.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(sZ.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(sZ.INVALID)),this.layout(),this.layoutOptions()},t.prototype.blur=function(){this.adapter.removeClass(sZ.FOCUSED),this.layout(),this.adapter.deactivateBottomLine(),this.adapter.hasClass(sZ.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid())},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible(),n=this.helperText.getId();t&&n?this.adapter.setSelectAnchorAttr(s0.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(s0.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function(){var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout(function(){e.recentlyClicked=!1},s1.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(rM),s5={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},s4={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},s3=function(e){function t(n){return e.call(this,sa(sa({},t.defaultAdapter),n))||this}return sr(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return s4},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return s5},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(s5.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(s4.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t){this.showToScreenReader(),e?this.adapter.removeAttr(s5.ROLE):this.adapter.setAttr(s5.ROLE,"alert");return}this.adapter.removeAttr(s5.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(s5.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(s5.ARIA_HIDDEN,"true")},t}(rM),s6=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s3({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(rN),s8={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},s7=["click","keydown"],s9=function(e){function t(n){var i=e.call(this,sa(sa({},t.defaultAdapter),n))||this;return i.savedTabIndex_=null,i.interactionHandler_=function(e){return i.handleInteraction(e)},i}return sr(t,e),Object.defineProperty(t,"strings",{get:function(){return s8},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{getAttr:function(){return null},setAttr:function(){},removeAttr:function(){},setContent:function(){},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){},notifyIconAction:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this;this.savedTabIndex_=this.adapter.getAttr("tabindex"),s7.forEach(function(t){e.adapter.registerInteractionHandler(t,e.interactionHandler_)})},t.prototype.destroy=function(){var e=this;s7.forEach(function(t){e.adapter.deregisterInteractionHandler(t,e.interactionHandler_)})},t.prototype.setDisabled=function(e){this.savedTabIndex_&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex_),this.adapter.setAttr("role",s8.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction()},t}(rM),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!0,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new s9({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function(){return e.emit(s9.strings.ICON_EVENT,{},!0)}})},t}(rN),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,o,r){if(void 0===e&&(e=function(e){return new rG(e)}),void 0===t&&(t=function(e){return new rQ(e)}),void 0===n&&(n=function(e){return new r6(e)}),void 0===i&&(i=function(e){return new sQ(e)}),void 0===o&&(o=function(e){return new le(e)}),void 0===r&&(r=function(e){return new s6(e)}),this.selectAnchor=this.root.querySelector(s0.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(s0.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(s0.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw Error("MDCSelect: Missing required element: The following selector must be present: '"+s0.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(s0.ARIA_CONTROLS)){var a=document.getElementById(this.selectAnchor.getAttribute(s0.ARIA_CONTROLS));a&&(this.helperText=r(a))}this.menuSetup(i);var s=this.root.querySelector(s0.LABEL_SELECTOR);this.label=s?e(s):null;var l=this.root.querySelector(s0.LINE_RIPPLE_SELECTOR);this.lineRipple=l?t(l):null;var c=this.root.querySelector(s0.OUTLINE_SELECTOR);this.outline=c?n(c):null;var d=this.root.querySelector(s0.LEADING_ICON_SELECTOR);d&&(this.leadingIcon=o(d)),this.root.classList.contains(sZ.OUTLINED)||(this.ripple=this.createRipple())},t.prototype.initialSyncWithDOM=function(){var e=this;if(this.handleFocus=function(){e.foundation.handleFocus()},this.handleBlur=function(){e.foundation.handleBlur()},this.handleClick=function(t){e.selectAnchor.focus(),e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function(){e.foundation.handleMenuOpened()},this.handleMenuClosed=function(){e.foundation.handleMenuClosed()},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(sK.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value){this.foundation.setValue(this.hiddenInput.value,!0),this.foundation.layout();return}this.hiddenInput.value=this.value}},t.prototype.destroy=function(){this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(sl.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(sl.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(sK.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy(),this.ripple&&this.ripple.destroy(),this.outline&&this.outline.destroy(),this.leadingIcon&&this.leadingIcon.destroy(),this.helperText&&this.helperText.destroy(),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.foundation.getValue()},set:function(e){this.foundation.setValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this.foundation.getSelectedIndex()},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.foundation.getDisabled()},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.foundation.isValid()},set:function(e){this.foundation.setValid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this.foundation.getRequired()},set:function(e){this.foundation.setRequired(e)},enumerable:!0,configurable:!0}),t.prototype.layout=function(){this.foundation.layout()},t.prototype.layoutOptions=function(){this.foundation.layoutOptions(),this.menu.layout(),this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""}),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function(){return new s2(sa(sa(sa(sa({},this.getSelectAdapterMethods()),this.getCommonAdapterMethods()),this.getOutlineAdapterMethods()),this.getLabelAdapterMethods()),this.getFoundationMap())},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(s0.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map(function(e){return e.getAttribute(s0.VALUE_ATTR)||""})},t.prototype.createRipple=function(){var e=this,t=sa(sa({},as.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new as(this.selectAnchor,new aa(t))},t.prototype.getSelectAdapterMethods=function(){var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function(){return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function(){e.menu.open=!0},closeMenu:function(){e.menu.open=!1},getAnchorElement:function(){return e.root.querySelector(s0.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function(){var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus()},getMenuItemCount:function(){return e.menu.items.length},getMenuItemValues:function(){return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function(){return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function(){var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function(){e.lineRipple&&e.lineRipple.activate()},deactivateBottomLine:function(){e.lineRipple&&e.lineRipple.deactivate()},notifyChange:function(t){var n=e.selectedIndex;e.emit(s0.CHANGE_EVENT,{value:t,index:n},!0),e.hiddenInput&&(e.hiddenInput.value=t)}}},t.prototype.getOutlineAdapterMethods=function(){var e=this;return{hasOutline:function(){return!!e.outline},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function(){e.outline&&e.outline.closeNotch()}}},t.prototype.getLabelAdapterMethods=function(){var e=this;return{hasLabel:function(){return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function(){return e.label?e.label.getWidth():0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect();return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return!!e.touches},t.prototype.getFoundationMap=function(){return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(rN),ln=function(e,t){return(ln=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function li(e,t){function n(){this.constructor=e}ln(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lo=function(){return(lo=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lr={ROOT:"mdc-form-field"},la={LABEL_SELECTOR:".mdc-form-field > label"},ls=function(e){function t(n){var i=e.call(this,lo(lo({},t.defaultAdapter),n))||this;return i.click=function(){i.handleClick()},i}return li(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lr},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return la},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},t.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},t.prototype.handleClick=function(){var e=this;this.adapter.activateInputRipple(),requestAnimationFrame(function(){e.adapter.deactivateInputRipple()})},t}(rM),ll=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return li(t,e),t.attachTo=function(e){return new t(e)},t.prototype.labelEl=function(){var e=ls.strings.LABEL_SELECTOR;return this.root.querySelector(e)},t.prototype.getDefaultFoundation=function(){var e=this;return new ls({activateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.activate()},deactivateInputRipple:function(){e.input&&e.input.ripple&&e.input.ripple.deactivate()},deregisterInteractionHandler:function(t,n){var i=e.labelEl();i&&i.removeEventListener(t,n)},registerInteractionHandler:function(t,n){var i=e.labelEl();i&&i.addEventListener(t,n)}})},t}(rN),lc=function(e,t){return(lc=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function ld(e,t){function n(){this.constructor=e}lc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var lu=function(){return(lu=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},lm={ICON_BUTTON_ON:"mdc-icon-button--on",ROOT:"mdc-icon-button"},lf={ARIA_LABEL:"aria-label",ARIA_PRESSED:"aria-pressed",DATA_ARIA_LABEL_OFF:"data-aria-label-off",DATA_ARIA_LABEL_ON:"data-aria-label-on",CHANGE_EVENT:"MDCIconButtonToggle:change"},lh=function(e){function t(n){var i=e.call(this,lu(lu({},t.defaultAdapter),n))||this;return i.hasToggledAriaLabel=!1,i}return ld(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return lm},enumerable:!0,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return lf},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},hasClass:function(){return!1},notifyChange:function(){},removeClass:function(){},getAttr:function(){return null},setAttr:function(){}}},enumerable:!0,configurable:!0}),t.prototype.init=function(){var e=this.adapter.getAttr(lf.DATA_ARIA_LABEL_ON),t=this.adapter.getAttr(lf.DATA_ARIA_LABEL_OFF);if(e&&t){if(null!==this.adapter.getAttr(lf.ARIA_PRESSED))throw Error("MDCIconButtonToggleFoundation: Button should not set `aria-pressed` if it has a toggled aria label.");this.hasToggledAriaLabel=!0}else this.adapter.setAttr(lf.ARIA_PRESSED,String(this.isOn()))},t.prototype.handleClick=function(){this.toggle(),this.adapter.notifyChange({isOn:this.isOn()})},t.prototype.isOn=function(){return this.adapter.hasClass(lm.ICON_BUTTON_ON)},t.prototype.toggle=function(e){if(void 0===e&&(e=!this.isOn()),e?this.adapter.addClass(lm.ICON_BUTTON_ON):this.adapter.removeClass(lm.ICON_BUTTON_ON),this.hasToggledAriaLabel){var t=e?this.adapter.getAttr(lf.DATA_ARIA_LABEL_ON):this.adapter.getAttr(lf.DATA_ARIA_LABEL_OFF);this.adapter.setAttr(lf.ARIA_LABEL,t||"")}else this.adapter.setAttr(lf.ARIA_PRESSED,""+e)},t}(rM),lp=lh.strings,lb=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rippleComponent=t.createRipple(),t}return ld(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function(){var e=this;this.handleClick=function(){e.foundation.handleClick()},this.listen("click",this.handleClick)},t.prototype.destroy=function(){this.unlisten("click",this.handleClick),this.ripple.destroy(),e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function(){var e=this;return new lh({addClass:function(t){return e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},notifyChange:function(t){e.emit(lp.CHANGE_EVENT,t)},removeClass:function(t){return e.root.classList.remove(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function(){return this.rippleComponent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"on",{get:function(){return this.foundation.isOn()},set:function(e){this.foundation.toggle(e)},enumerable:!0,configurable:!0}),t.prototype.createRipple=function(){var e=new as(this.root);return e.unbounded=!0,e},t}(rN);n(4532),(bJ=vt||(vt={})).CREATE="CREATE",bJ.UPDATE="UPDATE",bJ.DELETE="DELETE",(bQ=vn||(vn={})).LOW="LOW",bQ.MEDIUM="MEDIUM",bQ.HIGH="HIGH",(bZ=vi||(vi={})).MANUAL="MANUAL",bZ.CLIENT="CLIENT",bZ.GLOBAL_RULESET="GLOBAL_RULESET",bZ.REALM_RULESET="REALM_RULESET",bZ.ASSET_RULESET="ASSET_RULESET",bZ.AGENT="AGENT",(b0=vo||(vo={})).OPEN="OPEN",b0.ACKNOWLEDGED="ACKNOWLEDGED",b0.IN_PROGRESS="IN_PROGRESS",b0.RESOLVED="RESOLVED",b0.CLOSED="CLOSED",(b1=vr||(vr={})).BOTTOM_LEFT="BOTTOM_LEFT",b1.BOTTOM_RIGHT="BOTTOM_RIGHT",b1.TOP_LEFT="TOP_LEFT",b1.TOP_RIGHT="TOP_RIGHT",(b2=va||(va={})).CREATE="CREATE",b2.READ="READ",b2.UPDATE="UPDATE",b2.DELETE="DELETE",(b5=vs||(vs={})).NONE="NONE",b5.FORECAST="FORECAST",b5.SETPOINT="SETPOINT",(b4=vl||(vl={})).DISCONNECTED="DISCONNECTED",b4.CONNECTING="CONNECTING",b4.DISCONNECTING="DISCONNECTING",b4.CONNECTED="CONNECTED",b4.DISABLED="DISABLED",b4.WAITING="WAITING",b4.ERROR="ERROR",b4.STOPPED="STOPPED",(b3=vc||(vc={})).REQUEST_START="REQUEST_START",b3.REQUEST_REPEATING="REQUEST_REPEATING",b3.REQUEST_CANCEL="REQUEST_CANCEL",b3.READY="READY",b3.COMPLETED="COMPLETED",b3.RUNNING="RUNNING",b3.CANCELLED="CANCELLED",(b6=vd||(vd={})).TOGGLE="TOGGLE",b6.INCREMENT="INCREMENT",b6.DECREMENT="DECREMENT",b6.NEGATE="NEGATE",(b8=vu||(vu={})).ASSET_NOT_FOUND="ASSET_NOT_FOUND",b8.ATTRIBUTE_NOT_FOUND="ATTRIBUTE_NOT_FOUND",b8.INSUFFICIENT_ACCESS="INSUFFICIENT_ACCESS",b8.INVALID_VALUE="INVALID_VALUE",b8.INTERCEPTOR_FAILURE="INTERCEPTOR_FAILURE",b8.STATE_STORAGE_FAILED="STATE_STORAGE_FAILED",b8.CANNOT_PROCESS="CANNOT_PROCESS",b8.QUEUE_FULL="QUEUE_FULL",b8.UNKNOWN="UNKNOWN",b8.ASSET_ID_MISSING="ASSET_ID_MISSING",b8.ATTRIBUTE_NAME_MISSING="ATTRIBUTE_NAME_MISSING",(b7=vm||(vm={})).PUBLIC="PUBLIC",b7.SHARED="SHARED",b7.PRIVATE="PRIVATE",(b9=vf||(vf={})).OFF="OFF",b9.ONE_MIN="ONE_MIN",b9.FIVE_MIN="FIVE_MIN",b9.QUARTER="QUARTER",b9.ONE_HOUR="ONE_HOUR",(ge=vh||(vh={})).WRAP_TO_SINGLE_COLUMN="WRAP_TO_SINGLE_COLUMN",ge.KEEP_LAYOUT="KEEP_LAYOUT",ge.REDIRECT="REDIRECT",ge.BLOCK_DEVICE="BLOCK_DEVICE",(gt=vp||(vp={})).CSV="CSV",gt.CSV_CROSSTAB="CSV_CROSSTAB",gt.CSV_CROSSTAB_MINUTE="CSV_CROSSTAB_MINUTE",(gn=vb||(vb={})).MINUTE="MINUTE",gn.HOUR="HOUR",gn.DAY="DAY",gn.WEEK="WEEK",gn.MONTH="MONTH",gn.YEAR="YEAR",(gi=vg||(vg={})).MIN="MIN",gi.AVG="AVG",gi.MAX="MAX",gi.DIFFERENCE="DIFFERENCE",gi.COUNT="COUNT",gi.SUM="SUM",gi.MODE="MODE",gi.MEDIAN="MEDIAN",(go=vv||(vv={})).TERMINATING="TERMINATING",go.DISABLED="DISABLED",go.ALREADY_CONNECTED="ALREADY_CONNECTED",go.UNRECOGNISED="UNRECOGNISED",go.PERMANENT_ERROR="PERMANENT_ERROR",go.SYNC_ERROR="SYNC_ERROR",(gr=vy||(vy={})).HTTPS="HTTPS",gr.HTTP="HTTP",gr.TCP="TCP",(ga=v_||(v_={})).GET="GET",ga.POST="POST",ga.PUT="PUT",ga.DELETE="DELETE",ga.OPTIONS="OPTIONS",ga.PATCH="PATCH",(gs=vw||(vw={})).KEYCLOAK="KEYCLOAK",gs.NONE="NONE",(gl=vF||(vF={})).WEBSOCKET="WEBSOCKET",gl.POLLING="POLLING",(gc=vx||(vx={})).INTERNAL="INTERNAL",gc.CLIENT="CLIENT",gc.GLOBAL_RULESET="GLOBAL_RULESET",gc.REALM_RULESET="REALM_RULESET",gc.ASSET_RULESET="ASSET_RULESET",(gd=vk||(vk={})).REALM="REALM",gd.USER="USER",gd.ASSET="ASSET",gd.CUSTOM="CUSTOM",(gu=vE||(vE={})).NORMAL="NORMAL",gu.HIGH="HIGH",(gm=vC||(vC={})).DEVICE="DEVICE",gm.TOPIC="TOPIC",gm.CONDITION="CONDITION",(gf=vA||(vA={})).ALWAYS="ALWAYS",gf.ONCE="ONCE",gf.HOURLY="HOURLY",gf.DAILY="DAILY",gf.WEEKLY="WEEKLY",gf.MONTHLY="MONTHLY",gf.ANNUALLY="ANNUALLY",(gh=vS||(vS={})).TITLE="TITLE",gh.SOURCE="SOURCE",gh.STATUS="STATUS",gh.SENT_ON="SENT_ON",gh.DELIVERED_ON="DELIVERED_ON",(gp=vT||(vT={})).MESSAGE_INVALID="MESSAGE_INVALID",gp.CERTIFICATE_INVALID="CERTIFICATE_INVALID",gp.UNAUTHORIZED="UNAUTHORIZED",gp.FORBIDDEN="FORBIDDEN",gp.UNIQUE_ID_MISMATCH="UNIQUE_ID_MISMATCH",gp.CONFIG_DISABLED="CONFIG_DISABLED",gp.USER_DISABLED="USER_DISABLED",gp.SERVER_ERROR="SERVER_ERROR",gp.ASSET_ERROR="ASSET_ERROR",gp.SERVER_BUSY="SERVER_BUSY",(gb=vI||(vI={})).PRIVATE="PRIVATE",gb.PROTECTED="PROTECTED",gb.PUBLIC="PUBLIC",(gg=vO||(vO={})).EXACT="EXACT",gg.BEGIN="BEGIN",gg.END="END",gg.CONTAINS="CONTAINS",(gv=vR||(vR={})).EQUALS="EQUALS",gv.GREATER_THAN="GREATER_THAN",gv.GREATER_EQUALS="GREATER_EQUALS",gv.LESS_THAN="LESS_THAN",gv.LESS_EQUALS="LESS_EQUALS",gv.BETWEEN="BETWEEN",(gy=vD||(vD={})).CREATED_ON="CREATED_ON",gy.NAME="NAME",gy.ASSET_TYPE="ASSET_TYPE",gy.PARENT_ID="PARENT_ID",gy.REALM="REALM",(g_=v$||(v$={})).RESTRICTED="RESTRICTED",g_.LINKED="LINKED",g_.REALM="REALM",(gw=vL||(vL={})).AT_LEAST_ONE="AT_LEAST_ONE",gw.ALL="ALL",gw.NONE="NONE",(gF=vM||(vM={})).AND="AND",gF.OR="OR",(gx=vN||(vN={})).CREATED_ON="CREATED_ON",gx.FIRST_NAME="FIRST_NAME",gx.LAST_NAME="LAST_NAME",gx.USERNAME="USERNAME",gx.EMAIL="EMAIL",(gk=vB||(vB={})).STOPPED="STOPPED",gk.RUNNING="RUNNING",gk.ERROR="ERROR",(gE=vP||(vP={})).JAVASCRIPT="JAVASCRIPT",gE.GROOVY="GROOVY",gE.JSON="JSON",gE.FLOW="FLOW",(gC=vj||(vj={})).READY="READY",gC.DEPLOYED="DEPLOYED",gC.COMPILATION_ERROR="COMPILATION_ERROR",gC.VALIDITY_PERIOD_ERROR="VALIDITY_PERIOD_ERROR",gC.EXECUTION_ERROR="EXECUTION_ERROR",gC.LOOP_ERROR="LOOP_ERROR",gC.DISABLED="DISABLED",gC.PAUSED="PAUSED",gC.EXPIRED="EXPIRED",gC.REMOVED="REMOVED",gC.EMPTY="EMPTY",(gA=vz||(vz={})).SUNRISE="SUNRISE",gA.SUNSET="SUNSET",gA.TWILIGHT_MORNING_VISUAL="TWILIGHT_MORNING_VISUAL",gA.TWILIGHT_MORNING_VISUAL_LOWER="TWILIGHT_MORNING_VISUAL_LOWER",gA.TWILIGHT_MORNING_HORIZON="TWILIGHT_MORNING_HORIZON",gA.TWILIGHT_MORNING_CIVIL="TWILIGHT_MORNING_CIVIL",gA.TWILIGHT_MORNING_NAUTICAL="TWILIGHT_MORNING_NAUTICAL",gA.TWILIGHT_MORNING_ASTRONOMICAL="TWILIGHT_MORNING_ASTRONOMICAL",gA.TWILIGHT_MORNING_GOLDEN_HOUR="TWILIGHT_MORNING_GOLDEN_HOUR",gA.TWILIGHT_MORNING_BLUE_HOUR="TWILIGHT_MORNING_BLUE_HOUR",gA.TWILIGHT_MORNING_NIGHT_HOUR="TWILIGHT_MORNING_NIGHT_HOUR",gA.TWILIGHT_EVENING_VISUAL="TWILIGHT_EVENING_VISUAL",gA.TWILIGHT_EVENING_VISUAL_LOWER="TWILIGHT_EVENING_VISUAL_LOWER",gA.TWILIGHT_EVENING_HORIZON="TWILIGHT_EVENING_HORIZON",gA.TWILIGHT_EVENING_CIVIL="TWILIGHT_EVENING_CIVIL",gA.TWILIGHT_EVENING_NAUTICAL="TWILIGHT_EVENING_NAUTICAL",gA.TWILIGHT_EVENING_ASTRONOMICAL="TWILIGHT_EVENING_ASTRONOMICAL",gA.TWILIGHT_EVENING_GOLDEN_HOUR="TWILIGHT_EVENING_GOLDEN_HOUR",gA.TWILIGHT_EVENING_BLUE_HOUR="TWILIGHT_EVENING_BLUE_HOUR",gA.TWILIGHT_EVENING_NIGHT_HOUR="TWILIGHT_EVENING_NIGHT_HOUR",(gS=vU||(vU={})).NUMBER="NUMBER",gS.NUMBER_ARRAY="NUMBER_ARRAY",gS.STRING="STRING",gS.BOOLEAN="BOOLEAN",gS.TRIGGER="TRIGGER",gS.COLOR="COLOR",gS.ANY="ANY",(gT=vH||(vH={})).NEW_LINE="NEW_LINE",gT.SPACER="SPACER",(gI=vV||(vV={})).INPUT="INPUT",gI.PROCESSOR="PROCESSOR",gI.OUTPUT="OUTPUT",gI.THEN="THEN",(gO=vW||(vW={})).TEXT="TEXT",gO.MULTILINE="MULTILINE",gO.NUMBER="NUMBER",gO.DROPDOWN="DROPDOWN",gO.DOUBLE_DROPDOWN="DOUBLE_DROPDOWN",gO.CHECKBOX="CHECKBOX",gO.ASSET_ATTRIBUTE="ASSET_ATTRIBUTE",gO.COLOR="COLOR",gO.DATE="DATE",(gR=vG||(vG={})).ADD="ADD",gR.ADD_OR_REPLACE="ADD_OR_REPLACE",gR.REPLACE="REPLACE",gR.DELETE="DELETE",gR.CLEAR="CLEAR",(gD=vq||(vq={})).PER_ASSET="PER_ASSET",gD.GLOBAL="GLOBAL",(g$=vY||(vY={})).READ_ADMIN="read:admin",g$.READ_LOGS="read:logs",g$.READ_USERS="read:users",g$.READ_MAP="read:map",g$.READ_ASSETS="read:assets",g$.READ_RULES="read:rules",g$.READ_INSIGHTS="read:insights",g$.READ_ALARMS="read:alarms",g$.READ_NOTIFICATIONS="read:notifications",g$.READ_SERVICES="read:services",g$.WRITE_SERVICES="write:services",g$.WRITE_USER="write:user",g$.WRITE_ADMIN="write:admin",g$.WRITE_LOGS="write:logs",g$.WRITE_ASSETS="write:assets",g$.WRITE_ATTRIBUTES="write:attributes",g$.WRITE_RULES="write:rules",g$.WRITE_INSIGHTS="write:insights",g$.WRITE_ALARMS="write:alarms",g$.WRITE_NOTIFICATIONS="write:notifications",g$.READ="read",g$.WRITE="write",(gL=vK||(vK={})).REGISTER="REGISTER",gL.UPDATE="UPDATE",gL.DEREGISTER="DEREGISTER",(gM=vX||(vX={})).AVAILABLE="AVAILABLE",gM.UNAVAILABLE="UNAVAILABLE",(gN=vJ||(vJ={})).ASSET="ASSET",gN.AGENT="AGENT",gN.NOTIFICATION="NOTIFICATION",gN.ALARM="ALARM",gN.RULES="RULES",gN.PROTOCOL="PROTOCOL",gN.GATEWAY="GATEWAY",gN.MODEL_AND_VALUES="MODEL_AND_VALUES",gN.API="API",gN.DATA="DATA",(gB=vQ||(vQ={})).INFO="INFO",gB.WARN="WARN",gB.ERROR="ERROR",(gP=vZ||(vZ={})).NUMERIC="numeric",gP.DIGIT_2="2-digit",gP.FULL="full",gP.LONG="long",gP.MEDIUM="medium",gP.SHORT="short",gP.NARROW="narrow",(gj=v0||(v0={})).SECONDLY="SECONDLY",gj.MINUTELY="MINUTELY",gj.HOURLY="HOURLY",gj.DAILY="DAILY",gj.WEEKLY="WEEKLY",gj.MONTHLY="MONTHLY",gj.YEARLY="YEARLY",(gz=v1||(v1={})).OMIT="OMIT",gz.BACKWARD="BACKWARD",gz.FORWARD="FORWARD",(gU=v2||(v2={})).JAPANESE="JAPANESE",gU.BUDDHIST="BUDDHIST",gU.ROC="ROC",gU.ISLAMIC="ISLAMIC",gU.ISO8601="ISO8601",gU.CHINESE="CHINESE",gU.ETHIOPIC="ETHIOPIC",gU.HEBREW="HEBREW",gU.GREGORIAN="GREGORIAN",(gH=v5||(v5={})).SU="SU",gH.MO="MO",gH.TU="TU",gH.WE="WE",gH.TH="TH",gH.FR="FR",gH.SA="SA",(gV=v4||(v4={})).PEOPLECOUNTERASSET="PeopleCounterAsset",gV.MAILAGENT="MailAgent",gV.UDPAGENT="UDPAgent",gV.ROOMASSET="RoomAsset",gV.CITYASSET="CityAsset",gV.VENTILATIONASSET="VentilationAsset",gV.TRADFRILIGHTASSET="TradfriLightAsset",gV.CONSOLEASSET="ConsoleAsset",gV.PRESENCESENSORASSET="PresenceSensorAsset",gV.OPENWEATHERMAPAGENT="OpenWeatherMapAgent",gV.LIGHTASSET="LightAsset",gV.KNXAGENT="KNXAgent",gV.THETHINGSSTACKAGENT="TheThingsStackAgent",gV.PLUGASSET="PlugAsset",gV.CHIRPSTACKAGENT="ChirpStackAgent",gV.WEATHERASSET="WeatherAsset",gV.THINGASSET="ThingAsset",gV.WEBSOCKETAGENT="WebsocketAgent",gV.TCPAGENT="TCPAgent",gV.GATEWAYASSET="GatewayAsset",gV.SERIALAGENT="SerialAgent",gV.BLUETOOTHMESHAGENT="BluetoothMeshAgent",gV.PARKINGASSET="ParkingAsset",gV.TRADFRIPLUGASSET="TradfriPlugAsset",gV.SIMULATORAGENT="SimulatorAgent",gV.SNMPAGENT="SNMPAgent",gV.GROUPASSET="GroupAsset",gV.BUILDINGASSET="BuildingAsset",gV.MODBUSSERIALAGENT="ModbusSerialAgent",gV.ENVIRONMENTSENSORASSET="EnvironmentSensorAsset",gV.MQTTAGENT="MQTTAgent",gV.VELBUSTCPAGENT="VelbusTCPAgent",gV.ARTNETLIGHTASSET="ArtnetLightAsset",gV.VELBUSSERIALAGENT="VelbusSerialAgent",gV.GROUNDWATERSENSORASSET="GroundwaterSensorAsset",gV.MICROPHONEASSET="MicrophoneAsset",gV.MODBUSTCPAGENT="ModbusTcpAgent",gV.ZWAVEAGENT="ZWaveAgent",gV.HTTPAGENT="HTTPAgent",gV.DOORASSET="DoorAsset",gV.THERMOSTATASSET="ThermostatAsset",gV.SHIPASSET="ShipAsset",(gW=v3||(v3={})).COLOURRGB="colourRGB",gW.WILDCARDSUBSCRIPTIONTOPICS="wildcardSubscriptionTopics",gW.PRICEHOURLY="priceHourly",gW.MQTTPORT="MQTTPort",gW.PINGDISABLED="pingDisabled",gW.FLOW="flow",gW.CHILDASSETTYPE="childAssetType",gW.LASTACCESS="lastAccess",gW.POSITION="position",gW.NETWORKKEY="networkKey",gW.UNIVERSE="universe",gW.ROUTINGMODE="routingMode",gW.MSSINUMBER="MSSINumber",gW.LASTWILLRETAIN="lastWillRetain",gW.LASTWILLTOPIC="lastWillTopic",gW.SERIALBAUDRATE="serialBaudrate",gW.SUBSCRIBEQOS="subscribeQos",gW.LEDCOUNT="lEDCount",gW.LOCKED="locked",gW.CLOUDCOVERAGE="cloudCoverage",gW.BASEURL="baseURL",gW.PROTOCOL="protocol",gW.REQUIREDVALUES="requiredValues",gW.REGION="region",gW.CONSOLEPLATFORM="consolePlatform",gW.GATEWAYSTATUS="gatewayStatus",gW.NO2LEVEL="NO2Level",gW.ATMOSPHERICPRESSURE="atmosphericPressure",gW.SERIALPORT="serialPort",gW.APPLICATIONID="applicationId",gW.TAGS="tags",gW.UNLOCK="unlock",gW.CHECKINTERVALSECONDS="checkIntervalSeconds",gW.LOCATION="location",gW.CLIENTSECRET="clientSecret",gW.WINDDIRECTION="windDirection",gW.WINDSPEED="windSpeed",gW.PARTICLESPM10="particlesPM10",gW.APPLICATIONKEY="applicationKey",gW.LENGTH="length",gW.PROBABILITYOFPRECIPITATION="probabilityOfPrecipitation",gW.USERNAMEPASSWORD="usernamePassword",gW.WATERLEVEL="waterLevel",gW.CONNECTHEADERS="connectHeaders",gW.CONSOLENAME="consoleName",gW.WEBSOCKETQUERY="websocketQuery",gW.PREFERHTML="preferHTML",gW.PARITY="parity",gW.COOLING="cooling",gW.POLLINGMILLIS="pollingMillis",gW.SOILTEMPERATURE="soilTemperature",gW.SUNIRRADIANCE="sunIrradiance",gW.MESSAGEMAXLENGTH="messageMaxLength",gW.WINDGUSTSPEED="windGustSpeed",gW.LIGHTID="lightId",gW.PROXYADDRESS="proxyAddress",gW.REQUESTQUERYPARAMETERS="requestQueryParameters",gW.MQTTHOST="MQTTHost",gW.SECUREGRPC="secureGRPC",gW.MODEL="model",gW.STREET="street",gW.MANUFACTURER="manufacturer",gW.DELETEPROCESSEDMAIL="deleteProcessedMail",gW.RESUMESESSION="resumeSession",gW.ONOFF="onOff",gW.APIKEY="ApiKey",gW.CITY="city",gW.PRESENCE="presence",gW.SPACESOCCUPIED="spacesOccupied",gW.STARTTLS="startTLS",gW.REQUESTTIMEOUTMILLIS="requestTimeoutMillis",gW.WEBSOCKETPATH="websocketPath",gW.AGENTSTATUS="agentStatus",gW.PRICEDAILY="priceDaily",gW.COUNTGROWTHMINUTE="countGrowthMinute",gW.IMONUMBER="IMONumber",gW.ATTRIBUTION="Attribution",gW.TENANTID="tenantId",gW.REQUESTHEADERS="requestHeaders",gW.HOST="host",gW.COUNTOUTMINUTE="countOutMinute",gW.MESSAGECHARSET="messageCharset",gW.CERTIFICATEALIAS="certificateAlias",gW.EMAIL="email",gW.BINDPORT="bindPort",gW.CONSOLEVERSION="consoleVersion",gW.PARTICLESPM1="particlesPM1",gW.MTU="mtu",gW.SPEED="speed",gW.MESSAGESTRIPDELIMITER="messageStripDelimiter",gW.AREA="area",gW.COUNTRY="country",gW.SHIPTYPE="shipType",gW.CONNECTSUBSCRIPTIONS="connectSubscriptions",gW.RELATIVEHUMIDITY="relativeHumidity",gW.SOURCEADDRESS="sourceAddress",gW.RAINFALL="rainfall",gW.OAUTHGRANT="oAuthGrant",gW.OZONELEVEL="ozoneLevel",gW.SEQUENCENUMBER="sequenceNumber",gW.COUNTINMINUTE="countInMinute",gW.PORT="port",gW.SUNALTITUDE="sunAltitude",gW.COUNTOUT="countOut",gW.ROOMNUMBER="roomNumber",gW.TUNNELINGSUPPORTED="tunnelingSupported",gW.ENINUMBER="ENINumber",gW.PARTICLESPM2_5="particlesPM2_5",gW.AGENTDISABLED="agentDisabled",gW.DISABLED="disabled",gW.COUNTIN="countIn",gW.MESSAGESOURCEADDRESS="messageSourceAddress",gW.PROVISIONWEATHERASSET="ProvisionWeatherAsset",gW.TIMEINJECTIONINTERVAL="timeInjectionInterval",gW.TEMPERATURESETPOINT="temperatureSetpoint",gW.CONSOLEPROVIDERS="consoleProviders",gW.COUNTTOTAL="countTotal",gW.SPACESBUFFER="spacesBuffer",gW.DEVICECONFIG="deviceConfig",gW.SPACESTOTAL="spacesTotal",gW.BINDHOST="bindHost",gW.FANSPEED="fanSpeed",gW.MESSAGECONVERTBINARY="messageConvertBinary",gW.NOTES="notes",gW.MAILFOLDERNAME="mailFolderName",gW.MESSAGEDELIMITERS="messageDelimiters",gW.TEMPERATURE="temperature",gW.SUNZENITH="sunZenith",gW.SNMPVERSIONVALUE="SNMPVersionValue",gW.BRIGHTNESS="brightness",gW.POSTALCODE="postalCode",gW.SPACESOPEN="spacesOpen",gW.HUMIDITY="humidity",gW.SOUNDLEVEL="soundLevel",gW.SECUREMODE="secureMode",gW.DIRECTION="direction",gW.STOPBITS="stopbits",gW.UVINDEX="uVIndex",gW.CONNECTURL="connectURL",gW.CLIENTID="clientId",gW.NATMODE="NATMode",gW.UPDATEONWRITE="updateOnWrite",gW.LASTWILLPAYLOAD="lastWillPayload",gW.GROUPID="groupId",gW.FOLLOWREDIRECTS="followRedirects",gW.SUNAZIMUTH="sunAzimuth",gW.MESSAGECONVERTHEX="messageConvertHex",gW.WEBSOCKETMODE="websocketMode",gW.COLOURTEMPERATURE="colourTemperature",gW.PUBLISHQOS="publishQos",gW.DATABITS="dataBits",(gG=v6||(v6={})).FORMAT="format",gG.DATAPOINTSMAXAGEDAYS="dataPointsMaxAgeDays",gG.ACCESSRESTRICTEDWRITE="accessRestrictedWrite",gG.SECRET="secret",gG.APPLYPREDICTEDDATAPOINTS="applyPredictedDataPoints",gG.ATTRIBUTELINKS="attributeLinks",gG.RULERESETIMMEDIATE="ruleResetImmediate",gG.RULESTATE="ruleState",gG.AGENTLINKCONFIG="agentLinkConfig",gG.HASPREDICTEDDATAPOINTS="hasPredictedDataPoints",gG.FORECAST="forecast",gG.STOREDATAPOINTS="storeDataPoints",gG.LABEL="label",gG.CONSTRAINTS="constraints",gG.UNITS="units",gG.USERCONNECTED="userConnected",gG.SHOWONDASHBOARD="showOnDashboard",gG.READONLY="readOnly",gG.MULTILINE="multiline",gG.ACCESSPUBLICWRITE="accessPublicWrite",gG.MOMENTARY="momentary",gG.AGENTLINK="agentLink",gG.ACCESSRESTRICTEDREAD="accessRestrictedRead",gG.ACCESSPUBLICREAD="accessPublicRead",(gq=v8||(v8={})).ASSETQUERY="assetQuery",gq.WSURL="WS_URL",gq.COLOURRGB="colourRGB",gq.VALUEFORMAT="valueFormat",gq.TEXT="text",gq.BYTE="byte",gq.USERNAMEANDPASSWORD="usernameAndPassword",gq.HTTPURL="HTTP_URL",gq.ATTRIBUTELINK="attributeLink",gq.ASSETID="assetID",gq.NUMBERMAP="numberMap",gq.HTTPMETHOD="HTTPMethod",gq.ATTRIBUTESTATE="attributeState",gq.POSITIVENUMBER="positiveNumber",gq.POSITIVEINTEGER="positiveInteger",gq.EXECUTIONSTATUS="executionStatus",gq.BIGINTEGER="bigInteger",gq.VALUEDESCRIPTOR="valueDescriptor",gq.PERIODDURATIONISO8601="periodDurationISO8601",gq.LONG="long",gq.DATEANDTIME="dateAndTime",gq.BOOLEANMAP="booleanMap",gq.MQTTQOS="MQTTQos",gq.NEGATIVEINTEGER="negativeInteger",gq.TCPIPPORTNUMBER="TCP_IPPortNumber",gq.GEOJSONPOINT="GEO_JSONPoint",gq.SNMPVERSION="SNMPVersion",gq.ASSETTYPE="assetType",gq.JSONOBJECT="JSONObject",gq.INTEGERMAP="integerMap",gq.BIGNUMBER="bigNumber",gq.IPADDRESS="IPAddress",gq.EMAIL="email",gq.TIMESTAMP="timestamp",gq.KNXMESSAGESOURCEADDRESS="kNXMessageSourceAddress",gq.ATTRIBUTEREFERENCE="attributeReference",gq.UUID="UUID",gq.INTEGER="integer",gq.OAUTHGRANT="oAuthGrant",gq.NUMBER="number",gq.DEVICECONFIGMAP="DeviceConfigMap",gq.TEXTMAP="textMap",gq.WEBSOCKETSUBSCRIPTION="websocketSubscription",gq.BOOLEAN="boolean",gq.TIMEANDPERIODDURATIONISO8601="timeAndPeriodDurationISO8601",gq.FORECASTCONFIGURATION="forecastConfiguration",gq.TIMEDURATIONISO8601="timeDurationISO8601",gq.TIMESTAMPISO8601="timestampISO8601",gq.CONSOLEPROVIDERS="consoleProviders",gq.MULTIVALUEDTEXTMAP="multivaluedTextMap",gq.NEGATIVENUMBER="negativeNumber",gq.PARITYBIT="Paritybit",gq.JSON="JSON",gq.CRONEXPRESSION="CRONExpression",gq.INTEGERBYTE="integerByte",gq.AGENTLINK="agentLink",gq.DIRECTION="direction",gq.HOSTORIPADDRESS="hostOrIPAddress",gq.STOPBITS="Stopbits",gq.CALENDAREVENT="calendarEvent",gq.CONNECTIONSTATUS="connectionStatus",gq.VALUECONSTRAINT="valueConstraint",(gY=v7||(v7={})).MONTH="month",gY.MILE_SCANDINAVIAN="mile_scandinavian",gY.VAR="var",gY.OUNCE="ounce",gY.HECTARE="hectare",gY.YARD="yard",gY.YEAR="year",gY.GIGA="giga",gY.JOULE="joule",gY.VOLT="volt",gY.HERTZ="hertz",gY.MILE="mile",gY.DEGREE="degree",gY.KILO="kilo",gY.BTU="btu",gY.TERA="tera",gY.FOOT="foot",gY.MEGA="mega",gY.KELVIN="kelvin",gY.CARBON="carbon",gY.DECIBEL_ATTENUATED="decibel_attenuated",gY.INCH="inch",gY.SQUARED="squared",gY.PERCENTAGE="percentage",gY.IN_HG="inch_mercury",gY.CENTI="centi",gY.GRAM="gram",gY.CUBED="cubed",gY.DAY="day",gY.RADIAN="radian",gY.OHM="ohm",gY.MINUTE="minute",gY.PART_PER_MILLION="ppm",gY.AMP="amp",gY.MASS_POUND="pound",gY.KNOT="knot",gY.METRE="metre",gY.LITRE="litre",gY.FLUID_OUNCE="fluid_ounce",gY.HOUR="hour",gY.ACRE="acre",gY.CELSIUS="celsius",gY.RPM="rpm",gY.PASCAL="pascal",gY.DECIBEL="decibel",gY.LUMEN="lumen",gY.WEEK="week",gY.FAHRENHEIT="fahrenheit",gY.WATT="watt",gY.GALLON="gallon",gY.LUX="lux",gY.MILLI="milli",gY.BAR="bar",gY.HECTO="hecto",gY.PEAK="peak",gY.SECOND="second",gY.MICRO="micro",gY.PER="per",gY.STONE="stone",v9||(v9={});class lg{static getAssetDescriptors(){return lg._assetTypeInfos.map(e=>e.assetDescriptor)}static getMetaItemDescriptors(){return[...this._metaItemDescriptors]}static getValueDescriptors(){return[...this._valueDescriptors]}static getAssetTypeInfos(){return[...this._assetTypeInfos]}static getAssetTypeInfo(e){if(e)return e.assetDescriptor?e:("string"!=typeof e&&(e=e.name),this._assetTypeInfos.find(t=>t.assetDescriptor.name===e))}static getAssetDescriptor(e){if(!e)return;if(e.assetDescriptor)return e.assetDescriptor;if("string"!=typeof e)return e;let t=this._assetTypeInfos.find(t=>t.assetDescriptor.name===e);return t?t.assetDescriptor:void 0}static getAttributeDescriptor(e,t){if(!e)return;let n=this.getAssetTypeInfo(t||"ThingAsset");if(n&&n.attributeDescriptors)return n.attributeDescriptors.find(t=>t.name===e)}static getValueDescriptor(e){let t;if(!e)return;if(e.endsWith("[]"))for(t=0;e.endsWith("[]");)e=e.substring(0,e.length-2),t++;let n=this._valueDescriptors.find(t=>t.name===e);return n&&t&&(n=Object.assign(Object.assign({},n),{arrayDimensions:t})),n}static resolveValueDescriptor(e,t){let n;return t&&("string"==typeof t&&(n=lg.getValueDescriptor(t)),n=t.jsonType?t:lg.getValueDescriptor(t.type)),!n&&e&&(n=lg.getValueDescriptor("JSON")),n}static resolveValueTypeFromValue(e){if(null!=e){if("number"==typeof e)return"number";if("string"==typeof e)return"text";if("boolean"==typeof e)return"boolean";if(Array.isArray(e)){let t=1,n=e.find(e=>null!=e);for(;Array.isArray(n);)n=n.find(e=>null!=e),t++;let i=this.resolveValueTypeFromValue(n);if(!i)return;for(;t>0;)i+="[]",t--;return i}if(e instanceof Date)return"dateAndTime"}}static getAttributeAndValueDescriptors(e,t,n){let i,o;if(t&&"string"!=typeof t)i=t;else{let o=this.getAssetTypeInfo(e||"ThingAsset");if(!o)return[void 0,void 0];"string"==typeof t&&(i=this.getAttributeDescriptor(t,o)),!i&&n&&(i={type:n.type,name:n.name,meta:n.meta})}return i&&(o=this.getValueDescriptor(i.type)),[i,o]}static getMetaItemDescriptor(e){if(e)return this._metaItemDescriptors.find(t=>t.name===e)}static getAssetDescriptorColour(e,t){let n=this.getAssetDescriptor(e);return n&&n.colour?n.colour:t}static getAssetDescriptorIcon(e,t){let n=this.getAssetDescriptor(e);return n&&n.icon?n.icon:t}}function lv(e){return(lv="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})(e)}function ly(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function l_(e){var t=function(e,t){if("object"!=lv(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=lv(i))return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lv(t)?t:t+""}function lw(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,l_(i.key),i)}}function lF(e,t,n){return t&&lw(e.prototype,t),n&&lw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function lx(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lk(e,t){return(lk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lE(e,t){if("function"!=typeof t&&null!==t)throw 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&&lk(e,t)}function lC(e,t){if(t&&("object"==lv(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return lx(e)}function lA(e){return(lA=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function lS(e,t,n){return(t=l_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function lI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lI(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}lg._assetTypeInfos=[],lg._metaItemDescriptors=[],lg._valueDescriptors=[];var lR={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},lD=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ly(this,e),this.init(t,n)}return lF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||lR,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lO(lO({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}()),l$=function(){function e(){ly(this,e),this.observers={}}return lF(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach(function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)}),this}},{key:"off",value:function(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e]=this.observers[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&[].concat(this.observers[e]).forEach(function(e){e.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),e}();function lL(){var e,t,n=new Promise(function(n,i){e=n,t=i});return n.resolve=e,n.reject=t,n}function lM(e){return null==e?"":""+e}function lN(e,t,n){function i(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var r="string"!=typeof t?[].concat(t):t.split(".");r.length>1;){if(o())return{};var a=i(r.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:i(r.shift())}}function lB(e,t,n){var i=lN(e,t,Object);i.obj[i.k]=n}function lP(e,t){var n=lN(e,t),i=n.obj,o=n.k;if(i)return i[o]}function lj(e,t,n){var i=lP(e,n);return void 0!==i?i:lP(t,n)}function lz(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var lU={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function lH(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,function(e){return lU[e]}):e}var lV="u">typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,lW=[" ",",","?","!",";"];function lG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lG(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lY=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(e){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return ly(this,i),t=n.call(this),lV&&l$.call(lx(t)),t.data=e||{},t.options=o,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return lF(i,[{key:"addNamespaces",value:function(e){0>this.options.ns.indexOf(e)&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,r=void 0!==i.ignoreJSONStructure?i.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=lP(this.data,a);return s||!r||"string"!=typeof n?s:function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(t){if(t[n])return t[n];for(var o=n.split(i),r=t,a=0;a<o.length;++a){if(!r||"string"==typeof r[o[a]]&&a+1<o.length)return;if(void 0===r[o[a]]){for(var s=2,l=o.slice(a,a+s).join(i),c=r[l];void 0===c&&o.length>a+s;)s++,c=r[l=o.slice(a,a+s).join(i)];if(void 0===c)return;if(null===c)return null;if(n.endsWith(l)){if("string"==typeof c)return c;if(l&&"string"==typeof c[l])return c[l]}var d=o.slice(a+s).join(i);if(d)return e(c,d,i);return}r=r[o[a]]}return r}}(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var a=[e,t];n&&(a=a.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(a=e.split("."),i=t,t=a[1]),this.addNamespaces(t),lB(this.data,a,i),o.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)("string"==typeof n[o]||"[object Array]"===Object.prototype.toString.apply(n[o]))&&this.addResource(e,t,o,n[o],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),i=n,n=t,t=a[1]),this.addNamespaces(t);var s=lP(this.data,a)||{};i?function e(t,n,i){for(var o in n)"__proto__"!==o&&"constructor"!==o&&(o in t?"string"==typeof t[o]||t[o]instanceof String||"string"==typeof n[o]||n[o]instanceof String?i&&(t[o]=n[o]):e(t[o],n[o],i):t[o]=n[o]);return t}(s,n,o):s=lq(lq({},s),n),lB(this.data,a,s),r.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return(t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI)?lq(lq({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(e){return t[e]&&Object.keys(t[e]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),i}(l$),lK={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,o){var r=this;return e.forEach(function(e){r.processors[e]&&(t=r.processors[e].process(t,n,i,o))}),t}};function lX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function lJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lX(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var lQ={},lZ=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(e){var t,o,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ly(this,i),r=n.call(this),lV&&l$.call(lx(r)),t=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=lx(r),t.forEach(function(t){e[t]&&(o[t]=e[t])}),r.options=a,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=lD.create("translator"),r}return lF(i,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],r=n&&e.indexOf(n)>-1,a=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!function(e,t,n){t=t||"",n=n||"";var i=lW.filter(function(e){return 0>t.indexOf(e)&&0>n.indexOf(e)});if(0===i.length)return!0;var o=new RegExp("(".concat(i.map(function(e){return"?"===e?"\\?":e}).join("|"),")")),r=!o.test(e);if(!r){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(r=!0)}return r}(e,n,i);if(r&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(i)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==lv(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,d=c[c.length-1],u=t.lng||this.language,m=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&"cimode"===u.toLowerCase()){if(m){var f=t.nsSeparator||this.options.nsSeparator;return r?(h.res="".concat(d).concat(f).concat(l),h):"".concat(d).concat(f).concat(l)}return r?(h.res=l,h):l}var h=this.resolve(e,t),p=h&&h.res,b=h&&h.usedKey||l,g=h&&h.exactUsedKey||l,v=Object.prototype.toString.apply(p),y=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p;if(_&&p&&w&&0>["[object Number]","[object Function]","[object RegExp]"].indexOf(v)&&("string"!=typeof y||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(b,p,lJ(lJ({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return r?(h.res=F,h):F}if(a){var x="[object Array]"===v,k=x?[]:{},E=x?g:b;for(var C in p)if(Object.prototype.hasOwnProperty.call(p,C)){var A="".concat(E).concat(a).concat(C);k[C]=this.translate(A,lJ(lJ({},t),{joinArrays:!1,ns:c})),k[C]===A&&(k[C]=p[C])}p=k}}else if(_&&"string"==typeof y&&"[object Array]"===v)(p=p.join(y))&&(p=this.extendTranslation(p,e,t,n));else{var S=!1,T=!1,I=void 0!==t.count&&"string"!=typeof t.count,O=i.hasDefaultValue(t),R=I?this.pluralResolver.getSuffix(u,t.count,t):"",D=t["defaultValue".concat(R)]||t.defaultValue;!this.isValidLookup(p)&&O&&(S=!0,p=D),this.isValidLookup(p)||(T=!0,p=l);var $=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&T?void 0:p,L=O&&D!==p&&this.options.updateMissing;if(T||S||L){if(this.logger.log(L?"updateKey":"missingKey",u,d,l,L?D:p),a){var M=this.resolve(l,lJ(lJ({},t),{},{keySeparator:!1}));M&&M.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var P=0;P<B.length;P++)N.push(B[P]);else"all"===this.options.saveMissingTo?N=this.languageUtils.toResolveHierarchy(t.lng||this.language):N.push(t.lng||this.language);var j=function(e,n,i){var r=O&&i!==p?i:$;o.options.missingKeyHandler?o.options.missingKeyHandler(e,d,n,r,L,t):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(e,d,n,r,L,t),o.emit("missingKey",e,d,n,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?N.forEach(function(e){o.pluralResolver.getSuffixes(e,t).forEach(function(n){j([e],l+n,t["defaultValue".concat(n)]||D)})}):j(N,l,D))}p=this.extendTranslation(p,e,t,h,n),T&&p===l&&this.options.appendNamespaceToMissingKey&&(p="".concat(d,":").concat(l)),(T||S)&&this.options.parseMissingKeyHandler&&(p="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(l):l,S?p:void 0):this.options.parseMissingKeyHandler(p))}return r?(h.res=p,h):p}},{key:"extendTranslation",value:function(e,t,n,i,o){var r=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,lJ(lJ({},this.options.interpolation.defaultVariables),n),i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(lJ(lJ({},n),{interpolation:lJ(lJ({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var l=e.match(this.interpolator.nestingRegexp);a=l&&l.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=lJ(lJ({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var d=e.match(this.interpolator.nestingRegexp);a<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];return o&&o[0]===i[0]&&!n.context?(r.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):r.translate.apply(r,i.concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var u=n.postProcess||this.options.postProcess,m="string"==typeof u?[u]:u;return null!=e&&m&&m.length&&!1!==n.applyPostProcessor&&(e=lK.handle(m,e,t,this.options&&this.options.postProcessPassResolved?lJ({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,o,r,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach(function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var d=l.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,m=u&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);d.forEach(function(e){a.isValidLookup(t)||(r=e,!lQ["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(r)&&(lQ["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(r,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(n){if(!a.isValidLookup(t)){o=n;var r,l=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(l,c,n,e,s);else{u&&(d=a.pluralResolver.getSuffix(n,s.count,s));var d,h="".concat(a.options.pluralSeparator,"zero");if(u&&(l.push(c+d),m&&l.push(c+h)),f){var p="".concat(c).concat(a.options.contextSeparator).concat(s.context);l.push(p),u&&(l.push(p+d),m&&l.push(p+h))}}for(;r=l.pop();)a.isValidLookup(t)||(i=r,t=a.getResource(n,e,r,s))}}))})}}),{res:t,usedKey:n,exactUsedKey:i,usedLng:o,usedNS:r}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),i}(l$);function l0(e){return e.charAt(0).toUpperCase()+e.slice(1)}var l1=function(){function e(t){ly(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=lD.create("languageUtils")}return lF(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return null;var t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||0>e.indexOf("-"))return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map(function(e){return e.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l0(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=l0(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=l0(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach(function(e){if(!t){var i=n.formatLanguageCode(e);(!n.options.supportedLngs||n.isSupportedCode(i))&&(t=i)}}),!t&&this.options.supportedLngs&&e.forEach(function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find(function(e){if(0===e.indexOf(i))return e})}}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],r=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&r(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&r(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&r(this.getLanguagePartFromCode(e))):"string"==typeof e&&r(this.formatLanguageCode(e)),i.forEach(function(e){0>o.indexOf(e)&&r(n.formatLanguageCode(e))}),o}}]),e}(),l2=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],l5={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(+(1!=e&&(e%10!=1||e%100==11)))},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:3*(e%100==3||e%100==4))},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},l4=["v1","v2","v3"],l3={zero:0,one:1,two:2,few:3,many:4,other:5},l6=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ly(this,e),this.languageUtils=t,this.options=i,this.logger=lD.create("pluralResolver"),(!this.options.compatibilityJSON||"v4"===this.options.compatibilityJSON)&&("u"<typeof Intl||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(n={},l2.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:l5[e.fc]}})}),n)}return lF(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map(function(e){return"".concat(t).concat(e)})}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(e,t){return l3[e]-l3[t]}).map(function(e){return"".concat(t.options.prepend).concat(e)}):i.numbers.map(function(i){return t.getSuffix(e,i,n)}):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.getRule(e,n);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(t)):this.getSuffixRetroCompatible(i,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,i=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[i];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var r=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):r():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?r():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!l4.includes(this.options.compatibilityJSON)}}]),e}();function l8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function l7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l8(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var l9=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ly(this,e),this.logger=lD.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return lF(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:lH,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?lz(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?lz(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?lz(t.nestingPrefix):t.nestingPrefixEscaped||lz("$t("),this.nestingSuffix=t.nestingSuffix?lz(t.nestingSuffix):t.nestingSuffixEscaped||lz(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var o,r,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(0>e.indexOf(s.formatSeparator)){var o=lj(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,l7(l7(l7({},i),t),{},{interpolationkey:e})):o}var r=e.split(s.formatSeparator),a=r.shift().trim(),c=r.join(s.formatSeparator).trim();return s.format(lj(t,l,a),c,n,l7(l7(l7({},i),t),{},{interpolationkey:a}))};this.resetRegExp();var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&void 0!==i.interpolation.skipOnVariables?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach(function(t){for(a=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(r=d(n)))if("function"==typeof u){var l=u(e,o,i);r="string"==typeof l?l:""}else if(i&&i.hasOwnProperty(n))r="";else if(m){r=o[0];continue}else s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),r="";else"string"==typeof r||s.useRawValueToEscape||(r=lM(r));var c=t.safeValue(r);if(e=e.replace(o[0],c),m?(t.regex.lastIndex+=r.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}}),e}},{key:"nest",value:function(e,t){var n,i,o=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=l7({},r);function s(e,t){var n=this.nestingOptionsSeparator;if(0>e.indexOf(n))return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(i[1]);e=i[0];var r=(o=this.interpolate(o,a)).match(/'/g),s=o.match(/"/g);(r&&r.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{a=JSON.parse(o),t&&(a=l7(l7({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map(function(e){return e.trim()});n[1]=d.shift(),l=d,c=!0}if((i=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=lM(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),c&&(i=l.reduce(function(e,t){return o.format(e,t,r.lng,l7(l7({},r),{},{interpolationkey:n[1].trim()}))},i.trim())),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e}();function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ce(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ce(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cn(e){var t={};return function(n,i,o){var r=i+JSON.stringify(o),a=t[r];return a||(a=e(i,o),t[r]=a),a(n)}}var ci=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ly(this,e),this.logger=lD.create("formatter"),this.options=t,this.formats={number:cn(function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}}),currency:cn(function(e,t){var n=new Intl.NumberFormat(e,ct(ct({},t),{},{style:"currency"}));return function(e){return n.format(e)}}),datetime:cn(function(e,t){var n=new Intl.DateTimeFormat(e,ct({},t));return function(e){return n.format(e)}}),relativetime:cn(function(e,t){var n=new Intl.RelativeTimeFormat(e,ct({},t));return function(e){return n.format(e,t.range||"day")}}),list:cn(function(e,t){var n=new Intl.ListFormat(e,ct({},t));return function(e){return n.format(e)}})},this.init(t)}return lF(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=cn(t)}},{key:"format",value:function(e,t,n,i){var o=this;return t.split(this.formatSeparator).reduce(function(e,t){var r=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var o=i[1].substring(0,i[1].length-1);"currency"===t&&0>o.indexOf(":")?n.currency||(n.currency=o.trim()):"relativetime"===t&&0>o.indexOf(":")?n.range||(n.range=o.trim()):o.split(";").forEach(function(e){if(e){var t,i=function(e){if(Array.isArray(e))return e}(t=e.split(":"))||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e){if(e){if("string"==typeof e)return lT(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?lT(e,void 0):void 0}}(t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],r=i.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=r),"false"===r&&(n[o.trim()]=!1),"true"===r&&(n[o.trim()]=!0),isNaN(r)||(n[o.trim()]=parseInt(r,10))}})}return{formatName:t,formatOptions:n}}(t),a=r.formatName,s=r.formatOptions;if(o.formats[a]){var l=e;try{var c=i&&i.formatParams&&i.formatParams[i.interpolationkey]||{},d=c.locale||c.lng||i.locale||i.lng||n;l=o.formats[a](e,d,ct(ct(ct({},s),i),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(a)),e},e)}}]),e}();function co(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?co(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ca=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(e,t,o){var r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ly(this,i),r=n.call(this),lV&&l$.call(lx(r)),r.backend=e,r.store=t,r.services=o,r.languageUtils=o.languageUtils,r.options=a,r.logger=lD.create("backendConnector"),r.waitingReads=[],r.maxParallelReads=a.maxParallelReads||10,r.readingCalls=0,r.maxRetries=a.maxRetries>=0?a.maxRetries:5,r.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(o,a.backend,a),r}return lF(i,[{key:"queueLoad",value:function(e,t,n,i){var o=this,r={},a={},s={},l={};return e.forEach(function(e){var i=!0;t.forEach(function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===a[s]&&(a[s]=!0):(o.state[s]=1,i=!1,void 0===a[s]&&(a[s]=!0),void 0===r[s]&&(r[s]=!0),void 0===l[t]&&(l[t]=!0)))}),i||(s[e]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),o=i[0],r=i[1];t&&this.emit("failedLoading",o,r,t),n&&this.store.addResourceBundle(o,r,n),this.state[e]=t?-1:2;var a={};this.queue.forEach(function(n){var i,s,l,c;i=n.loaded,(l=(s=lN(i,[o],Object)).obj)[c=s.k]=l[c]||[],l[c].push(r),void 0!==n.pending[e]&&(delete n.pending[e],n.pendingCount--),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach(function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach(function(t){void 0===a[e][t]&&(a[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(function(e){return!e.done})}},{key:"read",value:function(e,t,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:r,callback:a}):(this.readingCalls++,this.backend[n](e,t,function(s,l){if(i.readingCalls--,i.waitingReads.length>0){var c=i.waitingReads.shift();i.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o<i.maxRetries?setTimeout(function(){i.read.call(i,e,t,n,o+1,2*r,a)},r):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var r=this.queueLoad(e,t,i,o);if(!r.toLoad.length)return r.pending.length||o(),null;r.toLoad.forEach(function(e){n.loadOne(e)})}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),o=i[0],r=i[1];this.read(o,r,"read",void 0,void 0,function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(r," for language ").concat(o," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(r," for language ").concat(o),a),t.loaded(e,i,a)})}},{key:"saveMissing",value:function(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null==n||""===n||(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,cr(cr({},r),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),i}(l$);function cs(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&0>e.supportedLngs.indexOf("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cl(Object(n),!0).forEach(function(t){lS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cd(){}var cu=function(e){lE(i,e);var t,n=(t=function(){if("u"<typeof Reflect||!Reflect.construct||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(){var e,n=lA(i);return e=t?Reflect.construct(n,arguments,lA(this).constructor):n.apply(this,arguments),lC(this,e)});function i(){var e,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(ly(this,i),t=n.call(this),lV&&l$.call(lx(t)),t.options=cs(o),t.services={},t.logger=lD,t.modules={external:[]},Object.getOwnPropertyNames(Object.getPrototypeOf(e=lx(t))).forEach(function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}),r&&!t.isInitialized&&!o.isClone){if(!t.options.initImmediate)return t.init(o,r),lC(t,lx(t));setTimeout(function(){t.init(o,r)},0)}return t}return lF(i,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:0>t.ns.indexOf("translation")&&(t.defaultNS=t.ns[0]));var i={debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===lv(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===lv(e[2])||"object"===lv(e[3])){var n=e[3]||e[2];Object.keys(n).forEach(function(e){t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}};function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=cc(cc(cc({},i),this.options),cs(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=cc(cc({},i.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){this.modules.logger?lD.init(o(this.modules.logger),this.options):lD.init(null,this.options),this.modules.formatter?r=this.modules.formatter:"u">typeof Intl&&(r=ci);var r,a=new l1(this.options);this.store=new lY(this.options.resources,this.options);var s=this.services;s.logger=lD,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new l6(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),r&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(s.formatter=o(r),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new l9(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ca(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new lZ(this.services,this.options),this.translator.on("*",function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];e.emit.apply(e,[t].concat(i))}),this.modules.external.forEach(function(t){t.init&&t.init(e)})}if(this.format=this.options.interpolation.format,n||(n=cd),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.length>0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}});var c=lL(),d=function(){var t=function(t,i){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cd,i=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return i();var r=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach(function(e){0>r.indexOf(e)&&r.push(e)})};o?a(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(e){return a(e)}),this.options.preload&&this.options.preload.forEach(function(e){return a(e)}),this.services.backendConnector.load(r,this.options.ns,function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),i(e)})}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=lL();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cd),this.services.backendConnector.reload(e,t,function(e){i.resolve(),n(e)}),i}},{key:"use",value:function(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&lK.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=lL();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},r=function(e,r){r?(o(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve(function(){return n.t.apply(n,arguments)}),t&&t(e,function(){return n.t.apply(n,arguments)})},a=function(t){e||t||!n.services.languageDetector||(t=[]);var i="string"==typeof t?t:n.services.languageUtils.getBestMatchFromCodes(t);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,function(e){r(e,i)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(e,t,n){var i=this,o=function e(t,o){if("object"!==lv(o)){for(var r,a=arguments.length,s=Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];r=i.options.overloadTranslationOptionHandler([t,o].concat(s))}else r=cc({},o);r.lng=r.lng||e.lng,r.lngs=r.lngs||e.lngs,r.ns=r.ns||e.ns,r.keyPrefix=r.keyPrefix||n||e.keyPrefix;var c=i.options.keySeparator||".",d=r.keyPrefix?"".concat(r.keyPrefix).concat(c).concat(t):t;return i.t(d,r)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=n,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase())return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return -1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!(this.hasResourceBundle(i,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(i,e)&&(!o||a(r,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=lL();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach(function(e){0>n.options.ns.indexOf(e)&&n.options.ns.push(e)}),this.loadResources(function(e){i.resolve(),t&&t(e)}),i):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=lL();"string"==typeof e&&(e=[e]);var i=this.options.preload||[],o=e.filter(function(e){return 0>i.indexOf(e)});return o.length?(this.options.preload=i.concat(o),this.loadResources(function(e){n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e)?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cd,o=cc(cc(cc({},this.options),t),{isClone:!0}),r=new i(o);return(void 0!==t.debug||void 0!==t.prefix)&&(r.logger=r.logger.clone(t)),["store","services","language"].forEach(function(t){r[t]=e[t]}),r.services=cc({},this.services),r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r.translator=new lZ(r.services,r.options),r.translator.on("*",function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r.emit.apply(r,[e].concat(n))}),r.init(o,n),r.translator.options=r.options,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),i}(l$);lS(cu,"createInstance",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new cu(e,t)});var cm=cu.createInstance();cm.createInstance=cu.createInstance,cm.createInstance,cm.init,cm.loadResources,cm.reloadResources,cm.use,cm.changeLanguage,cm.getFixedT,cm.t,cm.exists,cm.setDefaultNamespace,cm.hasLoadedNamespace,cm.loadNamespaces,cm.loadLanguages;let cf=cm;var ch=n(4867),cp=n.n(ch);n(3472);class cb{get resolve(){return this._resolve}get reject(){return this._reject}get promise(){return this._promise}constructor(){this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),Object.freeze(this)}}function cg(e,t,n=!0){if(null==e||null==t)return e===t;if(e.constructor!==t.constructor)return!1;if(e instanceof Function||e instanceof RegExp)return e===t;if(e===t||e.valueOf()===t.valueOf())return!0;if(Array.isArray(e)&&e.length!==t.length||e instanceof Date||!(e instanceof Object)||!(t instanceof Object))return!1;if(n){if(Array.isArray(e))return e.every((e,n)=>cg(e,t[n]));let n=Object.keys(e);return Object.keys(t).every(e=>-1!==n.indexOf(e))&&n.every(n=>cg(e[n],t[n]))}return!1}function cv(e){if(null==e)return"";let t=!1;return e.split(/([A-Z]|\d)/).map((e,n,i)=>{if(!e)return e;if(!t)return t=!0,e.charAt(0).toUpperCase()+e.slice(1);if("_"===e)return" ";if(1===e.length&&e===e.toUpperCase()){let t=!i[n-1]||"_"===i[n-1],o=n+1<i.length&&i[n+1]&&"_"!==i[n+1],r=n+3>i.length||!i[n+1]&&!i[n+3];(!t||o)&&(e=" "+e),!o&&(t||r)||(e=e.toLowerCase())}return e}).join("").trim()}class cy{constructor(e){e&&Object.assign(this,e)}matches(e){var t,n,i,o,r,a,s;if((null==(t=this.ids)?void 0:t.length)&&(!e.id||!this.ids.includes(e.id))||(null==(n=this.types)?void 0:n.length)&&(!e.type||!this.types.includes(e.type))||(null==(i=this.realm)?void 0:i.name)&&e.realm!==this.realm.name||(null==(o=this.parents)?void 0:o.length)&&!this.parents.some(t=>!t.id||e.parentId===t.id))return!1;if(null==(r=this.paths)?void 0:r.length){let t=null!=(a=e.path)?a:[];if(!this.paths.some(e=>{var n;return(null!=(n=e.path)?n:[]).every((e,n)=>t[n]===e)}))return!1}return(null==(s=this.names)||!s.length||!!this.names.every(t=>cy._evalValuePredicate(e.name,t)))&&(!this.attributes||cy._evalGroup(e,this.attributes))}static getUnsupportedFields(e){return Object.keys(e).filter(e=>!cy._SUPPORTED_FIELDS.has(e))}collectAttributeNames(){return this.attributes?cy._collectNames(this.attributes):[]}static _evalValuePredicate(e,t){var n;switch(t.predicateType){case"string":{let i;if(null==e)return!1;let o=!1!==t.caseSensitive?String(e):String(e).toLowerCase(),r=!1!==t.caseSensitive?t.value:null==(n=t.value)?void 0:n.toLowerCase();switch(t.match){case"BEGIN":i=o.startsWith(r);break;case"END":i=o.endsWith(r);break;case"CONTAINS":i=o.includes(r);break;default:i=o===r}return t.negate?!i:i}case"boolean":return e===t.value;case"number":{let n;if("number"!=typeof e)return!1;switch(t.operator){case"GREATER_THAN":n=e>t.value;break;case"GREATER_EQUALS":n=e>=t.value;break;case"LESS_THAN":n=e<t.value;break;case"LESS_EQUALS":n=e<=t.value;break;case"BETWEEN":n=e>=t.value&&e<=t.rangeValue;break;default:n=e===t.value}return t.negate?!n:n}}return!1}static _evalPredicate(e,t){var n,i;let o=null==(n=t.name)?void 0:n.value;if(!o)return!0;let r=null==(i=e.attributes)?void 0:i[o];if(!r)return!!t.negated;let a=!t.value||cy._evalValuePredicate(r.value,t.value);return t.negated?!a:a}static _evalGroup(e,t){var n,i,o;let r=null!=(n=t.operator)?n:"AND",a=[...(null!=(i=t.items)?i:[]).map(t=>cy._evalPredicate(e,t)),...(null!=(o=t.groups)?o:[]).map(t=>cy._evalGroup(e,t))];return!a.length||("OR"===r?a.some(Boolean):a.every(Boolean))}static _collectNames(e){var t,n;return[...(null!=(t=e.items)?t:[]).map(e=>{var t;return null==(t=e.name)?void 0:t.value}).filter(e=>!!e),...(null!=(n=e.groups)?n:[]).flatMap(e=>cy._collectNames(e))]}}cy._SUPPORTED_FIELDS=new Set(["ids","types","names","parents","paths","realm","attributes"]);var c_=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};let cw=n(4461);class cF{constructor(e,t,n){this._autoEnable=!1,this._initialised=!1,this._initialiseInProgress=!1,this._pendingProviderPromises={},this._providerMessageListeners={},this._pendingProviderEnables=[],this._registrationTimer=null,this._realm=e,this._autoEnable=t,this._enableCompleteCallback=n,window.OpenRemoteConsole=this;let i=new URLSearchParams(window.location.search),o=i.get("consoleName"),r=i.get("consoleVersion"),a=i.get("consolePlatform"),s=i.get("consoleProviders"),l=i.get("consoleAutoEnable"),c=s&&s.length>0?s.split(" "):["push"];this._pendingProviderEnables=c;let d=cF._createConsoleRegistration(),u=window.localStorage.getItem(this._storageKey);if(u)try{let e=JSON.parse(u);e.id&&(d.id=e.id),e.name&&(d.name=e.name),e.providers&&(d.providers=e.providers),e.apps&&(d.apps=e.apps)}catch(e){console.error("Failed to deserialise console registration")}let m=d.providers;for(let e of(d.providers={},c)){let t=m&&m.hasOwnProperty(e)?m[e]:{enabled:!1,disabled:!1};d.providers[e]=t}let f=mJ.getAppName();f.length>0&&0>d.apps.indexOf(f)&&d.apps.push(f),this._registration=d,o&&(d.name=o),r&&(d.version=r),a&&(d.platform=a),l&&(this._autoEnable="TRUE"===l||"true"===l)}get registration(){return this._registration}get autoEnable(){return this._autoEnable}get pendingProviderEnables(){return this._pendingProviderEnables.slice(0)}get shellApple(){let e=navigator.userAgentData&&navigator.userAgentData.platform?navigator.userAgentData.platform:navigator.platform;return e&&("iP"===e.substring(0,2)||"Mac"===e.substring(0,3))&&window.webkit&&window.webkit.messageHandlers}get shellAndroid(){return!!window.MobileInterface}get isMobile(){return this.shellApple||this.shellAndroid}initialise(){return c_(this,void 0,void 0,function*(){if(!this._initialised&&!this._initialiseInProgress){console.debug("Console: initialising"),this._initialiseInProgress=!0;try{if(this._registration.providers)for(let e of Object.keys(this._registration.providers))yield this._initialiseProvider(e);this._registration.id||(yield this.sendRegistration()),this._initialised=!0,this._initialiseInProgress=!1,0===this._pendingProviderEnables.length?(yield this.sendRegistration(),this._callCompletedCallback()):this._autoEnable&&(yield this.enableProviders())}catch(e){console.error(e)}finally{this._initialiseInProgress=!1}}})}enableProviders(){return c_(this,void 0,void 0,function*(){if(!this._initialised)throw Error("Console must be initialised before enabling providers");for(let e=this._pendingProviderEnables.length-1;e>-1;e--){let t=this._pendingProviderEnables[e];yield this.enableProvider(t)}})}enableProvider(e,t){return c_(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before enabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: enabling provider '"+e+"'");let n={provider:e,action:"PROVIDER_ENABLE",consoleId:this._registration.id,data:t},i=yield this.sendProviderMessage(n,!0);this._registration.providers[e].hasPermission=i.hasPermission,this._registration.providers[e].success=i.success,this._registration.providers[e].enabled=i.success,this._registration.providers[e].data=i.data;let o=this._pendingProviderEnables.indexOf(e);return o>=0&&(this._pendingProviderEnables.splice(o,1),0===this._pendingProviderEnables.length&&(this.sendRegistration().catch(()=>void 0),this._callCompletedCallback())),i})}disableProvider(e){return c_(this,void 0,void 0,function*(){if(!this._initialised)throw console.debug("Console must be initialised before disabling providers"),Error("Console must be initialised before disabling providers");if(!this._registration.providers.hasOwnProperty(e))throw console.debug("Invalid console provider '"+e+"'"),Error("Invalid console provider '"+e+"'");console.debug("Console: disabling provider '"+e+"'");let t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_DISABLE"},!0);return this._registration.providers[e].disabled=!0,this._registration.providers[e].enabled=!1,t})}getProvider(e){return this._registration&&this._registration.providers?this._registration.providers[e]:void 0}sendProviderMessage(e,t){return c_(this,void 0,void 0,function*(){if("storage"!==e.provider&&!this._registration.providers.hasOwnProperty(e.provider))throw console.debug("Invalid console provider '"+e.provider+"'"),Error("Invalid console provider '"+e.provider+"'");if(!t)return void this._doSendProviderMessage(e);let n=e.provider+e.action;if(this._pendingProviderPromises[n])throw Error("Message already pending for provider '"+e.provider+"' with action '"+e.action+"'");let i=new cb,o=()=>{delete this._pendingProviderPromises[n],i.reject("No response from provider")};return this._pendingProviderPromises[n]=[i,window.setTimeout(o,5e3)],this._doSendProviderMessage(e),i.promise})}sendRegistration(){return this._registrationTimer&&(window.clearTimeout(this._registrationTimer),this._registrationTimer=null),new Promise((e,t)=>{this._registrationTimer=window.setTimeout(()=>c_(this,void 0,void 0,function*(){this._registrationTimer=null,console.debug("Console: updating registration");try{yield this._sendRegistration(!0),e()}catch(e){console.error("Failed to register console",e),t(e)}}))})}_sendRegistration(e){return c_(this,void 0,void 0,function*(){this._normaliseRegistration();let t=!!this._registration.id;try{let e=yield mJ.rest.api.ConsoleResource.register(this._registration);if(200!==e.status)throw Error("Failed to register console");this._registration=e.data,console.debug("Console: registration successful"),console.debug("Console: updating locally stored registration"),window.localStorage.setItem(this._storageKey,JSON.stringify(this._registration))}catch(n){if(e&&t&&cF._isStaleRegistrationResponse(n)){console.warn("Console registration ID is stale or cannot be claimed; creating a new console registration"),window.localStorage.removeItem(this._storageKey),delete this._registration.id,yield this._sendRegistration(!1);return}throw n}})}_normaliseRegistration(){this._registration.name||(this._registration.name="Console"),this._registration.platform||(this._registration.platform="N/A"),this._registration.version||(this._registration.version="N/A"),this._registration.providers||(this._registration.providers={})}get _storageKey(){return"OpenRemoteConsole:"+this._realm}static _isStaleRegistrationResponse(e){let t=e&&e.response?e.response.status:void 0;return 403===t||409===t}storeData(e,t){this.sendProviderMessage({provider:"storage",action:"STORE",key:e,value:t},!1)}retrieveData(e){return c_(this,void 0,void 0,function*(){let t=this.sendProviderMessage({provider:"storage",action:"RETRIEVE",key:e},!0);try{let e=yield Promise.race([t,new Promise((e,t)=>setTimeout(t,2e3))]);if(e&&e.value){let t=e.value;return"null"===t?void 0:t}}catch(e){console.log("Failed to retrieve data from storage provider")}})}addProviderMessageListener(e,t){this._providerMessageListeners[e.provider+e.action]=t}removeProviderMessageListener(e){delete this._providerMessageListeners[e.provider+e.action]}_postNativeShellMessage(e){try{if(this.shellAndroid)return window.MobileInterface.postMessage(JSON.stringify(e));if(this.shellApple)return window.webkit.messageHandlers.int.postMessage(e)}catch(e){console.error("Failed to send shell message towards console",e)}}_doSendGenericMessage(e,t){let n={type:e,data:t};this.isMobile?this._postNativeShellMessage(n):console.warn("Failed to send generic message to console.",n)}_doSendProviderMessage(e){if(this.isMobile)this._postNativeShellMessage({type:"provider",data:e});else{if(!e.provider||!e.action)return;switch(e.provider.trim().toUpperCase()){case"PUSH":switch(e.action.trim().toUpperCase()){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"push",version:"web",enabled:!0,disabled:!1,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"push",hasPermission:!0,success:!0}));break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;case"STORAGE":switch(e.action){case"PROVIDER_INIT":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_INIT",provider:"storage",version:"1.0.0",disabled:!1,enabled:!0,hasPermission:!0,requiresPermission:!1,success:!0}));break;case"PROVIDER_ENABLE":this._handleProviderResponse(JSON.stringify({action:"PROVIDER_ENABLE",provider:"storage",hasPermission:!0,success:!0}));break;case"STORE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'store' action requires a `key`");null===e.value?window.localStorage.removeItem(t):window.localStorage.setItem(t,JSON.stringify(e.value))}break;case"RETRIEVE":{let t=e.key?e.key.trim():null;if(!t||0===t.length)throw Error("Storage provider 'retrieve' action requires a `key`");let n=window.localStorage.getItem(t);if(null!==n)try{n=JSON.parse(n)}catch(e){}this._handleProviderResponse(JSON.stringify({action:"RETRIEVE",provider:"storage",key:t,value:n}))}break;default:throw Error("Unsupported provider '"+e.provider+"' and action '"+e.action+"'")}break;default:console.error("Unsupported provider: "+e.provider)}}}_handleProviderResponse(e){if(!e)return;let t=JSON.parse(e),n=t.provider,i=t.action,o=this._pendingProviderPromises[n+i];o&&(window.clearTimeout(o[1]),delete this._pendingProviderPromises[n+i],o[0].resolve(t));let r=this._providerMessageListeners[n+i];r&&r(t)}_callCompletedCallback(){let e=this._enableCompleteCallback;this._enableCompleteCallback=null,e&&window.setTimeout(()=>{e()},0)}static _createConsoleRegistration(){return{name:cw.name,version:cw.version,platform:cw.os.toString(),apps:[],model:((cw.manufacturer?cw.manufacturer+" ":"")+(cw.product?cw.product:"")).trim()}}_initialiseProvider(e){return c_(this,void 0,void 0,function*(){let t;console.debug("Console: initialising provider '"+e+"'");try{t=yield this.sendProviderMessage({provider:e,action:"PROVIDER_INIT"},!0),this._registration.providers[e].version=t.version,this._registration.providers[e].requiresPermission=t.requiresPermission,this._registration.providers[e].hasPermission=t.hasPermission,this._registration.providers[e].success=t.success,this._registration.providers[e].enabled=t.enabled,this._registration.providers[e].disabled=t.disabled,this._registration.providers[e].data=t.data}catch(e){console.error(e),t={action:"",disabled:!1,enabled:!1,hasPermission:!1,provider:"",requiresPermission:!1,version:"",success:!1}}if(t.success||(console.debug("Provider initialisation failed: '"+e+"'"),t.disabled=!0,this._registration.providers[e].disabled=!0),t.disabled||t.enabled){let t=this._pendingProviderEnables.indexOf(e);t>=0&&this._pendingProviderEnables.splice(t,1)}})}}function cx(e,t){return function(){return e.apply(t,arguments)}}let{toString:ck}=Object.prototype,{getPrototypeOf:cE}=Object,{iterator:cC,toStringTag:cA}=Symbol,cS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),cT=(e,t)=>{let n=e,i=[];for(;null!=n&&n!==Object.prototype&&-1===i.indexOf(n);){if(i.push(n),cS(n,t))return!0;n=cE(n)}return!1},cI=(a=Object.create(null),e=>{let t=ck.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),cO=e=>(e=e.toLowerCase(),t=>cI(t)===e),cR=e=>t=>typeof t===e,{isArray:cD}=Array,c$=cR("undefined");function cL(e){return null!==e&&!c$(e)&&null!==e.constructor&&!c$(e.constructor)&&cB(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let cM=cO("ArrayBuffer"),cN=cR("string"),cB=cR("function"),cP=cR("number"),cj=e=>null!==e&&"object"==typeof e,cz=e=>{if(!cj(e))return!1;let t=cE(e);return(null===t||t===Object.prototype||null===cE(t))&&!cT(e,cA)&&!cT(e,cC)},cU=cO("Date"),cH=cO("File"),cV=cO("Blob"),cW=cO("FileList"),cG="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},cq=void 0!==cG.FormData?cG.FormData:void 0,cY=cO("URLSearchParams"),[cK,cX,cJ,cQ]=["ReadableStream","Request","Response","Headers"].map(cO);function cZ(e,t,{allOwnKeys:n=!1}={}){let i,o;if(null!=e)if("object"!=typeof e&&(e=[e]),cD(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{let o;if(cL(e))return;let r=n?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(i=0;i<a;i++)o=r[i],t.call(null,e[o],o,e)}}function c0(e,t){let n;if(cL(e))return null;t=t.toLowerCase();let i=Object.keys(e),o=i.length;for(;o-- >0;)if(t===(n=i[o]).toLowerCase())return n;return null}let c1="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,c2=e=>!c$(e)&&e!==c1,c5=(s="u">typeof Uint8Array&&cE(Uint8Array),e=>s&&e instanceof s),c4=cO("HTMLFormElement"),{propertyIsEnumerable:c3}=Object.prototype,c6=cO("RegExp"),c8=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),i={};cZ(n,(n,o)=>{let r;!1!==(r=t(n,o,e))&&(i[o]=r||n)}),Object.defineProperties(e,i)},c7=cO("AsyncFunction"),c9=(bP="function"==typeof setImmediate,bj=cB(c1.postMessage),bP?setImmediate:bj?(bz=`axios@${Math.random()}`,bU=[],c1.addEventListener("message",({source:e,data:t})=>{e===c1&&t===bz&&bU.length&&bU.shift()()},!1),e=>{bU.push(e),c1.postMessage(bz,"*")}):e=>setTimeout(e)),de="u">typeof queueMicrotask?queueMicrotask.bind(c1):"u">typeof process&&process.nextTick||c9,dt=e=>null!=e&&cB(e[cC]),dn={isArray:cD,isArrayBuffer:cM,isBuffer:cL,isFormData:e=>{if(!e)return!1;if(cq&&e instanceof cq)return!0;let t=cE(e);if(!t||t===Object.prototype||!cB(e.append))return!1;let n=cI(e);return"formdata"===n||"object"===n&&cB(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&cM(e.buffer)},isString:cN,isNumber:cP,isBoolean:e=>!0===e||!1===e,isObject:cj,isPlainObject:cz,isEmptyObject:e=>{if(!cj(e)||cL(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:cK,isRequest:cX,isResponse:cJ,isHeaders:cQ,isUndefined:c$,isDate:cU,isFile:cH,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:cV,isRegExp:c6,isFunction:cB,isStream:e=>cj(e)&&cB(e.pipe),isURLSearchParams:cY,isTypedArray:c5,isFileList:cW,forEach:cZ,merge:function e(...t){let{caseless:n,skipUndefined:i}=c2(this)&&this||{},o={},r=(t,r)=>{if("__proto__"===r||"constructor"===r||"prototype"===r)return;let a=n&&"string"==typeof r&&c0(o,r)||r,s=cS(o,a)?o[a]:void 0;cz(s)&&cz(t)?o[a]=e(s,t):cz(t)?o[a]=e({},t):cD(t)?o[a]=t.slice():i&&c$(t)||(o[a]=t)};for(let e=0,n=t.length;e<n;e++){let n=t[e];if(!n||cL(n)||(cZ(n,r),"object"!=typeof n||cD(n)))continue;let i=Object.getOwnPropertySymbols(n);for(let e=0;e<i.length;e++){let t=i[e];c3.call(n,t)&&r(n[t],t)}}return o},extend:(e,t,n,{allOwnKeys:i}={})=>(cZ(t,(t,i)=>{n&&cB(t)?Object.defineProperty(e,i,{__proto__:null,value:cx(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let o,r,a,s={};if(t=t||{},null==e)return t;do{for(r=(o=Object.getOwnPropertyNames(e)).length;r-- >0;)a=o[r],(!i||i(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=!1!==n&&cE(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:cI,kindOfTest:cO,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let i=e.indexOf(t,n);return -1!==i&&i===n},toArray:e=>{if(!e)return null;if(cD(e))return e;let t=e.length;if(!cP(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,i=(e&&e[cC]).call(e);for(;(n=i.next())&&!n.done;){let i=n.value;t.call(e,i[0],i[1])}},matchAll:(e,t)=>{let n,i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:c4,hasOwnProperty:cS,hasOwnProp:cS,hasOwnInPrototypeChain:cT,getSafeProp:(e,t)=>null!=e&&cT(e,t)?e[t]:void 0,reduceDescriptors:c8,freezeMethods:e=>{c8(e,(t,n)=>{if(cB(e)&&["arguments","caller","callee"].includes(n))return!1;if(cB(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(cD(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:c0,global:c1,isContextDefined:c2,isSpecCompliantForm:function(e){return!!(e&&cB(e.append)&&"FormData"===e[cA]&&e[cC])},toJSONObject:e=>{let t=new WeakSet,n=e=>{if(cj(e)){if(t.has(e))return;if(cL(e))return e;if(!("toJSON"in e)){t.add(e);let i=cD(e)?[]:{};return cZ(e,(e,t)=>{let o=n(e);c$(o)||(i[t]=o)}),t.delete(e),i}}return e};return n(e)},isAsyncFn:c7,isThenable:e=>e&&(cj(e)||cB(e))&&cB(e.then)&&cB(e.catch),setImmediate:c9,asap:de,isIterable:dt,isSafeIterable:e=>null!=e&&cT(e,cC)&&dt(e)},di=dn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),dr=RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),da=RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function ds(e,t){return dn.isArray(e)?e.map(e=>ds(e,t)):function(e){let t=0,n=e.length;for(;t<n;){let n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){let t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(t,""))}function dl(e){let t=Object.create(null);return dn.forEach(e.toJSON(),(e,n)=>{t[n]=ds(e,da)}),t}let dc=Symbol("internals");function dd(e){return e&&String(e).trim().toLowerCase()}function du(e){return!1===e||null==e?e:dn.isArray(e)?e.map(du):ds(String(e),dr)}function dm(e,t,n,i,o){if(dn.isFunction(i))return i.call(this,t,n);if(o&&(t=n),dn.isString(t)){if(dn.isString(i))return -1!==t.indexOf(i);if(dn.isRegExp(i))return i.test(t)}}class df{constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function o(e,t,n){let o=dd(t);if(!o)return;let r=dn.findKey(i,o);r&&void 0!==i[r]&&!0!==n&&(void 0!==n||!1===i[r])||(i[r||t]=du(e))}let r=(e,t)=>dn.forEach(e,(e,n)=>o(e,n,t));if(dn.isPlainObject(e)||e instanceof this.constructor)r(e,t);else{let i;if(dn.isString(e)&&(e=e.trim())&&(i=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(i.trim()))){var a;let n,i,o,s;r((s={},(a=e)&&a.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!n||s[n]&&di[n]||("set-cookie"===n?s[n]?s[n].push(i):s[n]=[i]:s[n]=s[n]?s[n]+", "+i:i)}),s),t)}else if(dn.isObject(e)&&dn.isSafeIterable(e)){let n=Object.create(null),i,o;for(let t of e){if(!dn.isArray(t))throw TypeError("Object iterator must return a key-value pair");o=t[0],dn.hasOwnProp(n,o)?(i=n[o],n[o]=dn.isArray(i)?[...i,t[1]]:[i,t[1]]):n[o]=t[1]}r(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=dd(e)){let n=dn.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=i.exec(e);)n[t[1]]=t[2];return n}if(dn.isFunction(t))return t.call(this,e,n);if(dn.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=dd(e)){let n=dn.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||dm(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function o(e){if(e=dd(e)){let o=dn.findKey(n,e);o&&(!t||dm(n,n[o],o,t))&&(delete n[o],i=!0)}}return dn.isArray(e)?e.forEach(o):o(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let o=t[n];(!e||dm(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){let t=this,n={};return dn.forEach(this,(i,o)=>{let r=dn.findKey(n,o);if(r){t[r]=du(i),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=du(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return dn.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&dn.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[dc]=this[dc]={accessors:{}}).accessors,n=this.prototype;function i(e){let i=dd(e);if(!t[i]){let o;o=dn.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{__proto__:null,value:function(n,i,o){return this[t].call(this,e,n,i,o)},configurable:!0})}),t[i]=!0}}return dn.isArray(e)?e.forEach(i):i(e),this}}df.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dn.reduceDescriptors(df.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),dn.freezeMethods(df);class dh extends Error{static from(e,t,n,i,o,r){let a=new dh(e.message,t||e.code,n,i,o);return Object.defineProperty(a,"cause",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),r&&Object.assign(a,r),a}constructor(e,t,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,n,i=this.config,o=i&&dn.hasOwnProp(i,"redact")?i.redact:void 0,r=dn.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(n=i=>{let o;if(null===i||"object"!=typeof i||dn.isBuffer(i))return i;if(-1===t.indexOf(i)){if(i instanceof df&&(i=i.toJSON()),t.push(i),dn.isArray(i))o=[],i.forEach((e,t)=>{let i=n(e);dn.isUndefined(i)||(o[t]=i)});else{if(!dn.isPlainObject(i)&&function(e){if(dn.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(dn.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(i))return t.pop(),i;for(let[t,r]of(o=Object.create(null),Object.entries(i))){let i=e.has(t.toLowerCase())?"[REDACTED ****]":n(r);dn.isUndefined(i)||(o[t]=i)}}return t.pop(),o}})(i)):dn.toJSONObject(i);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}}dh.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",dh.ERR_BAD_OPTION="ERR_BAD_OPTION",dh.ECONNABORTED="ECONNABORTED",dh.ETIMEDOUT="ETIMEDOUT",dh.ECONNREFUSED="ECONNREFUSED",dh.ERR_NETWORK="ERR_NETWORK",dh.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",dh.ERR_DEPRECATED="ERR_DEPRECATED",dh.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",dh.ERR_BAD_REQUEST="ERR_BAD_REQUEST",dh.ERR_CANCELED="ERR_CANCELED",dh.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",dh.ERR_INVALID_URL="ERR_INVALID_URL",dh.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let dp=dh;function db(e){return dn.isPlainObject(e)||dn.isArray(e)}function dg(e){return dn.endsWith(e,"[]")?e.slice(0,-2):e}function dv(e,t,n){return e?e.concat(t).map(function(e,t){return e=dg(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let dy=dn.toFlatObject(dn,{},null,function(e){return/^is[A-Z]/.test(e)}),d_=function(e,t,n){if(!dn.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let i=(n=dn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!dn.isUndefined(t[e])})).metaTokens,o=n.visitor||f,r=n.dots,a=n.indexes,s=n.Blob||"u">typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=s&&dn.isSpecCompliantForm(t),d=[];if(!dn.isFunction(o))throw TypeError("visitor must be a function");function u(e){if(null===e)return"";if(dn.isDate(e))return e.toISOString();if(dn.isBoolean(e))return e.toString();if(!c&&dn.isBlob(e))throw new dp("Blob is not supported. Use a Buffer instead.");if(dn.isArrayBuffer(e)||dn.isTypedArray(e)){if(c&&"function"==typeof s)return new s([e]);if("u">typeof Buffer)return Buffer.from(e);throw new dp("Blob is not supported. Use a Buffer instead.",dp.ERR_NOT_SUPPORT)}return e}function m(e){if(e>l)throw new dp("Object is too deeply nested ("+e+" levels). Max depth: "+l,dp.ERR_FORM_DATA_DEPTH_EXCEEDED)}function f(e,n,o){let s=e;if(dn.isReactNative(t)&&dn.isReactNativeBlob(e))return t.append(dv(o,n,r),u(e)),!1;if(e&&!o&&"object"==typeof e)if(dn.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=function(e){if(1/0===l)return JSON.stringify(e);let t=[];return JSON.stringify(e,function(e,n){if(!dn.isObject(n))return n;for(;t.length&&t[t.length-1]!==this;)t.pop();return t.push(n),m(1+t.length-1),n})}(e);else{var c;if(dn.isArray(e)&&(c=e,dn.isArray(c)&&!c.some(db))||(dn.isFileList(e)||dn.endsWith(n,"[]"))&&(s=dn.toArray(e)))return n=dg(n),s.forEach(function(e,i){dn.isUndefined(e)||null===e||t.append(!0===a?dv([n],i,r):null===a?n:n+"[]",u(e))}),!1}return!!db(e)||(t.append(dv(o,n,r),u(e)),!1)}let h=Object.assign(dy,{defaultVisitor:f,convertValue:u,isVisitable:db});if(!dn.isObject(e))throw TypeError("data must be an object");return!function e(n,i,r=0){if(!dn.isUndefined(n)){if(m(r),-1!==d.indexOf(n))throw Error("Circular reference detected in "+i.join("."));d.push(n),dn.forEach(n,function(n,a){!0===(!(dn.isUndefined(n)||null===n)&&o.call(t,n,dn.isString(a)?a.trim():a,i,h))&&e(n,i?i.concat(a):[a],r+1)}),d.pop()}}(e),t};function dw(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function dF(e,t){this._pairs=[],e&&d_(e,this,t)}let dx=dF.prototype;function dk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dE(e,t,n){let i;if(!t)return e;e=e||"";let o=dn.isFunction(n)?{serialize:n}:n,r=dn.getSafeProp(o,"encode")||dk,a=dn.getSafeProp(o,"serialize");if(i=a?a(t,o):dn.isURLSearchParams(t)?t.toString():new dF(t,o).toString(r)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}dx.append=function(e,t){this._pairs.push([e,t])},dx.toString=function(e){let t=e?t=>e.call(this,t,dw):dw;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let dC=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){dn.forEach(this.handlers,function(t){null!==t&&e(t)})}},dA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},dS="u">typeof URLSearchParams?URLSearchParams:dF,dT="u">typeof FormData?FormData:null,dI="u">typeof Blob?Blob:null,dO="u">typeof window&&"u">typeof document,dR="object"==typeof navigator&&navigator||void 0,dD=dO&&(!dR||0>["ReactNative","NativeScript","NS"].indexOf(dR.product)),d$="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dL=dO&&window.location.href||"http://localhost",dM={...d,isBrowser:!0,classes:{URLSearchParams:dS,FormData:dT,Blob:dI},protocols:["http","https","file","blob","url","data"]};function dN(e){if(e>100)throw new dp("FormData field is too deeply nested ("+e+" levels). Max depth: 100",dp.ERR_FORM_DATA_DEPTH_EXCEEDED)}let dB=function(e){if(dn.isFormData(e)&&dn.isFunction(e.entries)){let t={};return dn.forEachEntry(e,(e,n)=>{!function e(t,n,i,o){dN(o);let r=t[o++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),s=o>=t.length;return(r=!r&&dn.isArray(i)?i.length:r,s)?dn.hasOwnProp(i,r)?i[r]=dn.isArray(i[r])?i[r].concat(n):[i[r],n]:i[r]=n:(dn.hasOwnProp(i,r)&&dn.isObject(i[r])||(i[r]=[]),e(t,n,i[r],o)&&dn.isArray(i[r])&&(i[r]=function(e){let t,n,i={},o=Object.keys(e),r=o.length;for(t=0;t<r;t++)i[n=o[t]]=e[n];return i}(i[r]))),!a}(function(e){let t,n=[],i=/\w+|\[(\w*)]/g;for(;null!==(t=i.exec(e));)dN(n.length),n.push("[]"===t[0]?"":t[1]||t[0]);return n}(e),n,t,0)}),t}return null},dP=(e,t)=>null!=e&&dn.hasOwnProp(e,t)?e[t]:void 0,dj={transitional:dA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,i=t.getContentType()||"",o=i.indexOf("application/json")>-1,r=dn.isObject(e);if(r&&dn.isHTMLForm(e)&&(e=new FormData(e)),dn.isFormData(e))return o?JSON.stringify(dB(e)):e;if(dn.isArrayBuffer(e)||dn.isBuffer(e)||dn.isStream(e)||dn.isFile(e)||dn.isBlob(e)||dn.isReadableStream(e))return e;if(dn.isArrayBufferView(e))return e.buffer;if(dn.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){let t=dP(this,"formSerializer");if(i.indexOf("application/x-www-form-urlencoded")>-1)return d_(e,new dM.classes.URLSearchParams,{visitor:function(e,t,n,i){return dM.isNode&&dn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t}).toString();if((n=dn.isFileList(e))||i.indexOf("multipart/form-data")>-1){let i=dP(this,"env"),o=i&&i.FormData;return d_(n?{"files[]":e}:e,o&&new o,t)}}if(r||o){t.setContentType("application/json",!1);var a=e;if(dn.isString(a))try{return(0,JSON.parse)(a),dn.trim(a)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(a)}return e}],transformResponse:[function(e){let t=dP(this,"transitional")||dj.transitional,n=t&&t.forcedJSONParsing,i=dP(this,"responseType"),o="json"===i;if(dn.isResponse(e)||dn.isReadableStream(e))return e;if(e&&dn.isString(e)&&(n&&!i||o)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,dP(this,"parseReviver"))}catch(e){if(!n&&o){if("SyntaxError"===e.name)throw dp.from(e,dp.ERR_BAD_RESPONSE,this,null,dP(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:dM.classes.FormData,Blob:dM.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function dz(e,t){let n=this||dj,i=t||n,o=df.from(i.headers),r=i.data;return dn.forEach(e,function(e){r=e.call(n,r,o.normalize(),t?t.status:void 0)}),o.normalize(),r}function dU(e){return!!(e&&e.__CANCEL__)}dn.forEach(["delete","get","head","post","put","patch","query"],e=>{dj.headers[e]={}});let dH=class extends dp{constructor(e,t,n){super(null==e?"canceled":e,dp.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function dV(e,t,n){let i=n.config.validateStatus;!n.status||!i||i(n.status)?e(n):t(new dp("Request failed with status code "+n.status,n.status>=400&&n.status<500?dp.ERR_BAD_REQUEST:dp.ERR_BAD_RESPONSE,n.config,n.request,n))}let dW=function(e,t){let n,i=Array(e=e||10),o=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(s){let l=Date.now(),c=o[a];n||(n=l),i[r]=s,o[r]=l;let d=a,u=0;for(;d!==r;)u+=i[d++],d%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),l-n<t)return;let m=c&&l-c;return m?Math.round(1e3*u/m):void 0}},dG=function(e,t){let n,i,o=0,r=1e3/t,a=(t,r=Date.now())=>{o=r,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-o;s>=r?a(e,t):(n=e,i||(i=setTimeout(()=>{i=null,a(n)},r-s)))},()=>n&&a(n)]},dq=(e,t,n=3)=>{let i=0,o=dW(50,250);return dG(n=>{if(!n||"number"!=typeof n.loaded)return;let r=n.loaded,a=n.lengthComputable?n.total:void 0,s=null!=a?Math.min(r,a):r,l=Math.max(0,s-i),c=o(l);i=Math.max(i,s),e({loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a?(a-s)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},dY=(e,t)=>{let n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},dK=e=>(...t)=>dn.asap(()=>e(...t)),dX=dM.hasStandardBrowserEnv?(l=new URL(dM.origin),c=dM.navigator&&/(msie|trident)/i.test(dM.navigator.userAgent),e=>(e=new URL(e,dM.origin),l.protocol===e.protocol&&l.host===e.host&&(c||l.port===e.port))):()=>!0,dJ=dM.hasStandardBrowserEnv?{write(e,t,n,i,o,r,a){if("u"<typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];dn.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),dn.isString(i)&&s.push(`path=${i}`),dn.isString(o)&&s.push(`domain=${o}`),!0===r&&s.push("secure"),dn.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let n=0;n<t.length;n++){let i=t[n].replace(/^\s+/,""),o=i.indexOf("=");if(-1!==o&&i.slice(0,o)===e)try{return decodeURIComponent(i.slice(o+1))}catch(e){return i.slice(o+1)}}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}},dQ=/^https?:(?!\/\/)/i,dZ=/[\t\n\r]/g;function d0(e,t){if("string"==typeof e&&dQ.test((function(e){let t=0;for(;t<e.length&&32>=e.charCodeAt(t);)t++;return e.slice(t)})(e).replace(dZ,"")))throw new dp('Invalid URL: missing "//" after protocol',dp.ERR_INVALID_URL,t)}function d1(e,t,n,i){d0(t,i);let o=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(o||!1===n)?(d0(e,i),t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e):t}let d2=e=>e instanceof df?{...e}:e;function d5(e,t){e=e||{},t=t||{};let n=Object.create(null);function i(e,t,n,i){return dn.isPlainObject(e)&&dn.isPlainObject(t)?dn.merge.call({caseless:i},e,t):dn.isPlainObject(t)?dn.merge({},t):dn.isArray(t)?t.slice():t}function o(e,t,n,o){return dn.isUndefined(t)?dn.isUndefined(e)?void 0:i(void 0,e,n,o):i(e,t,n,o)}function r(e,t){if(!dn.isUndefined(t))return i(void 0,t)}function a(e,t){return dn.isUndefined(t)?dn.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,o,r){return dn.hasOwnProp(t,r)?i(n,o):dn.hasOwnProp(e,r)?i(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,allowedSocketPaths:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(d2(e),d2(t),n,!0)};return dn.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;let r=dn.hasOwnProp(l,i)?l[i]:o,a=r(dn.hasOwnProp(e,i)?e[i]:void 0,dn.hasOwnProp(t,i)?t[i]:void 0,i);dn.isUndefined(a)&&r!==s||(n[i]=a)}),dn.hasOwnProp(t,"validateStatus")&&dn.isUndefined(t.validateStatus)&&!1===function(n){let i=dn.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!dn.isUndefined(i)){if(!dn.isPlainObject(i))return;else if(dn.hasOwnProp(i,n))return i[n]}let o=dn.hasOwnProp(e,"transitional")?e.transitional:void 0;if(dn.isPlainObject(o)&&dn.hasOwnProp(o,n))return o[n]}("validateStatusUndefinedResolves")&&(dn.hasOwnProp(e,"validateStatus")?n.validateStatus=i(void 0,e.validateStatus):delete n.validateStatus),n}let d4=["content-type","content-length"],d3=function(e){let t=d5({},e),n=e=>dn.hasOwnProp(t,e)?t[e]:void 0,i=n("data"),o=n("withXSRFToken"),r=n("xsrfHeaderName"),a=n("xsrfCookieName"),s=n("headers"),l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");if(t.headers=s=df.from(s),t.url=dE(d1(c,u,d,t),n("params"),n("paramsSerializer")),l){let t=dn.getSafeProp(l,"username")||"",n=dn.getSafeProp(l,"password")||"";try{s.set("Authorization","Basic "+btoa(t+":"+(n?encodeURIComponent(n).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):"")))}catch(t){throw dp.from(t,dp.ERR_BAD_OPTION_VALUE,e)}}if(dn.isFormData(i))if(dM.hasStandardBrowserEnv||dM.hasStandardBrowserWebWorkerEnv||dn.isReactNative(i))s.setContentType(void 0);else{var m,f;dn.isFunction(i.getHeaders)&&(m=s,f=i.getHeaders(),"content-only"!==n("formDataHeaderPolicy")?m.set(f):Object.entries(f||{}).forEach(([e,t])=>{d4.includes(e.toLowerCase())&&m.set(e,t)}))}if(dM.hasStandardBrowserEnv&&(dn.isFunction(o)&&(o=o(t)),!0===o||null==o&&dX(t.url))){let e=r&&a&&dJ.read(a);e&&s.set(r,e)}return t},d6="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){var i;let o,r,a,s,l,c,d=d3(e),u=d.data,m=df.from(d.headers).normalize(),{responseType:f,onUploadProgress:h,onDownloadProgress:p}=d;function b(){s&&s(),l&&l(),d.cancelToken&&d.cancelToken.unsubscribe(o),d.signal&&d.signal.removeEventListener("abort",o)}let g=new XMLHttpRequest;function v(){if(!g)return;let i=df.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());dV(function(e){t(e),b()},function(e){n(e),b()},{data:f&&"text"!==f&&"json"!==f?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:i,config:e,request:g}),g=null}g.open(d.method.toUpperCase(),d.url,!0),g.timeout=d.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){!g||4!==g.readyState||(0!==g.status||g.responseURL&&g.responseURL.startsWith("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new dp("Request aborted",dp.ECONNABORTED,e,g)),b(),g=null)},g.onerror=function(t){let i=new dp(t&&t.message?t.message:"Network Error",dp.ERR_NETWORK,e,g);i.event=t||null,n(i),b(),g=null},g.ontimeout=function(){let t=d.timeout?"timeout of "+d.timeout+"ms exceeded":"timeout exceeded",i=d.transitional||dA;d.timeoutErrorMessage&&(t=d.timeoutErrorMessage),n(new dp(t,i.clarifyTimeoutError?dp.ETIMEDOUT:dp.ECONNABORTED,e,g)),b(),g=null},void 0===u&&m.setContentType(null),"setRequestHeader"in g&&dn.forEach(dl(m),function(e,t){g.setRequestHeader(t,e)}),dn.isUndefined(d.withCredentials)||(g.withCredentials=!!d.withCredentials),f&&"json"!==f&&(g.responseType=d.responseType),p&&([a,l]=dq(p,!0),g.addEventListener("progress",a)),h&&g.upload&&([r,s]=dq(h),g.upload.addEventListener("progress",r),g.upload.addEventListener("loadend",s)),(d.cancelToken||d.signal)&&(o=t=>{g&&(n(!t||t.type?new dH(null,e,g):t),g.abort(),b(),g=null)},d.cancelToken&&d.cancelToken.subscribe(o),d.signal&&(d.signal.aborted?o():d.signal.addEventListener("abort",o)));let y=(i=d.url,(c=/^([-+\w]{1,25}):(?:\/\/)?/.exec(i))&&c[1]||"");if(y&&!dM.protocols.includes(y)){n(new dp("Unsupported protocol "+y+":",dp.ERR_BAD_REQUEST,e)),b();return}g.send(u||null)})},d8=function*(e,t){let n,i=e.byteLength;if(!t||i<t)return void(yield e);let o=0;for(;o<i;)n=o+t,yield e.slice(o,n),o=n},d7=async function*(e,t){for await(let n of d9(e))yield*d8(n,t)},d9=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ue=(e,t,n,i)=>{let o,r=d7(e,t),a=0,s=e=>{!o&&(o=!0,i&&i(e))};return new ReadableStream({async pull(e){try{let{done:t,value:i}=await r.next();if(t){s(),e.close();return}let o=i.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw s(e),e}},cancel:e=>(s(e),r.return())},{highWaterMark:2})},ut=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,un=(e,t,n)=>t+2<n&&ut(e.charCodeAt(t+1))&&ut(e.charCodeAt(t+2)),{isFunction:ui}=dn,uo=e=>{if(!dn.isString(e))return e;try{return decodeURIComponent(e)}catch(t){return e}},ur=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},ua=e=>{let t,n=void 0!==dn.global&&null!==dn.global?dn.global:globalThis,{ReadableStream:i,TextEncoder:o}=n,{fetch:r,Request:a,Response:s}=e=dn.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),l=r?ui(r):"function"==typeof fetch,c=ui(a),d=ui(s);if(!l)return!1;let u=l&&ui(i),m=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new a(e).arrayBuffer())),f=c&&u&&ur(()=>{let e=!1,t=new a(dM.origin,{body:new i,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),h=d&&u&&ur(()=>dn.isReadableStream(new s("").body)),p={stream:h&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{p[e]||(p[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new dp(`Response type '${e}' is not supported`,dp.ERR_NOT_SUPPORT,n)})});let b=async e=>{if(null==e)return 0;if(dn.isBlob(e))return e.size;if(dn.isSpecCompliantForm(e)){let t=new a(dM.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return dn.isArrayBufferView(e)||dn.isArrayBuffer(e)?e.byteLength:(dn.isURLSearchParams(e)&&(e+=""),dn.isString(e))?(await m(e)).byteLength:void 0},g=async(e,t)=>{let n=dn.toFiniteNumber(e.getContentLength());return null==n?b(t):n};return async e=>{let t,{url:n,method:i,data:l,signal:d,cancelToken:m,timeout:v,onDownloadProgress:y,onUploadProgress:_,responseType:w,headers:F,withCredentials:x="same-origin",fetchOptions:k,maxContentLength:E,maxBodyLength:C}=d3(e),A=dn.isNumber(E)&&E>-1,S=dn.isNumber(C)&&C>-1,T=r||fetch;w=w?(w+"").toLowerCase():"text";let I=((e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;let n=new AbortController,i=!1,o=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;n.abort(t instanceof dp?t:new dH(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,o(new dp(`timeout of ${t}ms exceeded`,dp.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o,{once:!0}));let{signal:s}=n;return s.unsubscribe=()=>dn.asap(a),s})([d,m&&m.toAbortSignal()],v),O=null,R=I&&I.unsubscribe&&(()=>{I.unsubscribe()}),D=null,$=()=>new dp("Request body larger than maxBodyLength limit",dp.ERR_BAD_REQUEST,e,O);try{var L;let r,d,m,v,M=(d="auth",dn.hasOwnProp(e,d)?e[d]:void 0);if(M){let e=dn.getSafeProp(M,"username")||"",t=dn.getSafeProp(M,"password")||"";r={username:e,password:t}}if(m=(L=n).indexOf("://"),v=L,-1!==m&&(v=v.slice(m+3)),v.includes("@")||v.includes(":")){let e=new URL(n,dM.origin);if(!r&&(e.username||e.password)){let t=uo(e.username),n=uo(e.password);r={username:t,password:n}}(e.username||e.password)&&(e.username="",e.password="",n=e.href)}if(r){let e;F.delete("authorization"),F.set("Authorization","Basic "+btoa((e=(r.username||"")+":"+(r.password||""),encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))))))}if(A&&"string"==typeof n&&n.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length,t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){let t=i.charCodeAt(n+1),o=i.charCodeAt(n+2);ut(t)&&ut(o)&&(e-=2,n+=2)}let n=0,o=t-1,r=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));o>=0&&(61===i.charCodeAt(o)?(n++,o--):r(o)&&(n++,o-=3)),1===n&&o>=0&&(61===i.charCodeAt(o)?n++:r(o)&&n++);let a=3*Math.floor(e/4)-(n||0);return a>0?a:0}let o=0;for(let e=0,t=i.length;e<t;e++){let n=i.charCodeAt(e);if(37===n&&un(i,e,t))o+=1,e+=2;else if(n<128)o+=1;else if(n<2048)o+=2;else if(n>=55296&&n<=56319&&e+1<t){let t=i.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(n)>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O);if(S&&"get"!==i&&"head"!==i){let e=await b(l);if("number"==typeof e&&isFinite(e)&&(t=e,e>C))throw $()}let N=S&&(dn.isReadableStream(l)||dn.isStream(l)),B=(e,t,n)=>ue(e,65536,e=>{if(S&&e>C)throw D=$();t&&t(e)},n);if(f&&"get"!==i&&"head"!==i&&(_||N)){if(t=null==t?await g(F,l):t,0!==t||N){let e,i=new a(n,{method:"POST",body:l,duplex:"half"});if(dn.isFormData(l)&&(e=i.headers.get("content-type"))&&F.setContentType(e),i.body){let[e,n]=_&&dY(t,dq(dK(_)))||[];l=B(i.body,e,n)}}}else if(N&&!c&&u&&"get"!==i&&"head"!==i)l=B(l);else if(N&&c&&!f&&"get"!==i&&"head"!==i)throw new dp("Stream request bodies are not supported by the current fetch implementation",dp.ERR_NOT_SUPPORT,e,O);dn.isString(x)||(x=x?"include":"omit");let P=c&&"credentials"in a.prototype;if(dn.isFormData(l)){let e=F.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&F.delete("content-type")}F.set("User-Agent","axios/1.18.1",!1);let j={...k,signal:I,method:i.toUpperCase(),headers:dl(F.normalize()),body:l,duplex:"half",credentials:P?x:void 0};O=c&&new a(n,j);let z=await (c?T(O,k):T(n,j)),U=df.from(z.headers);if(A){let t=dn.toFiniteNumber(U.getContentLength());if(null!=t&&t>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O)}let H=h&&("stream"===w||"response"===w);if(h&&z.body&&(y||A||H&&R)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=z[e]});let n=dn.toFiniteNumber(U.getContentLength()),[i,o]=y&&dY(n,dq(dK(y),!0))||[];z=new s(ue(z.body,65536,t=>{if(A&&t>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O);i&&i(t)},()=>{o&&o(),R&&R()}),t)}w=w||"text";let V=await p[dn.findKey(p,w)||"text"](z,e);if(A&&!h&&!H){let t;if(null!=V&&("number"==typeof V.byteLength?t=V.byteLength:"number"==typeof V.size?t=V.size:"string"==typeof V&&(t="function"==typeof o?new o().encode(V).byteLength:V.length)),"number"==typeof t&&t>E)throw new dp("maxContentLength size of "+E+" exceeded",dp.ERR_BAD_RESPONSE,e,O)}return!H&&R&&R(),await new Promise((t,n)=>{dV(t,n,{data:V,headers:df.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:O})})}catch(t){if(R&&R(),I&&I.aborted&&I.reason instanceof dp){let n=I.reason;throw n.config=e,O&&(n.request=O),t!==n&&Object.defineProperty(n,"cause",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),n}if(D)throw O&&!D.request&&(D.request=O),D;if(t instanceof dp)throw O&&!t.request&&(t.request=O),t;if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message)){let n=new dp("Network Error",dp.ERR_NETWORK,e,O,t&&t.response);throw Object.defineProperty(n,"cause",{__proto__:null,value:t.cause||t,writable:!0,enumerable:!1,configurable:!0}),n}throw dp.from(t,t&&t.code,e,O,t&&t.response)}}},us=new Map,ul=e=>{let t=e&&e.env||{},{fetch:n,Request:i,Response:o}=t,r=[i,o,n],a=r.length,s,l,c=us;for(;a--;)s=r[a],void 0===(l=c.get(s))&&c.set(s,l=a?new Map:ua(t)),c=l;return l};ul();let uc={http:null,xhr:d6,fetch:{get:ul}};dn.forEach(uc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let ud=e=>`- ${e}`,uu=e=>dn.isFunction(e)||null===e||!1===e,um=function(e,t){let n,i,{length:o}=e=dn.isArray(e)?e:[e],r={};for(let a=0;a<o;a++){let o;if(i=n=e[a],!uu(n)&&void 0===(i=uc[(o=String(n)).toLowerCase()]))throw new dp(`Unknown adapter '${o}'`);if(i&&(dn.isFunction(i)||(i=i.get(t))))break;r[o||"#"+a]=i}if(!i){let e=Object.entries(r).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new dp("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(ud).join("\n"):" "+ud(e[0]):"as no adapter specified"),dp.ERR_NOT_SUPPORT)}return i};function uf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new dH(null,e)}function uh(e){return uf(e),e.headers=df.from(e.headers),e.data=dz.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),um(e.adapter||dj.adapter,e)(e).then(function(t){uf(e),e.response=t;try{t.data=dz.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=df.from(t.headers),t},function(t){if(!dU(t)&&(uf(e),t&&t.response)){e.response=t.response;try{t.response.data=dz.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=df.from(t.response.headers)}return Promise.reject(t)})}let up={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{up[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let ub={};up.transitional=function(e,t,n){function i(e,t){return"[Axios v1.18.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,r)=>{if(!1===e)throw new dp(i(o," has been removed"+(t?" in "+t:"")),dp.ERR_DEPRECATED);return t&&!ub[o]&&(ub[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,r)}},up.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let ug=function(e,t,n){if("object"!=typeof e||null===e)throw new dp("options must be an object",dp.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let r=i[o],a=Object.prototype.hasOwnProperty.call(t,r)?t[r]:void 0;if(a){let t=e[r],n=void 0===t||a(t,r,e);if(!0!==n)throw new dp("option "+r+" must be "+n,dp.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new dp("Unknown option "+r,dp.ERR_BAD_OPTION)}};class uv{constructor(e){this.defaults=e||{},this.interceptors={request:new dC,response:new dC}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){let t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),o=-1===i?"":n.slice(i+1);String(e.stack).endsWith(o)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){let n,i;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:r,headers:a}=t=d5(this.defaults,t);void 0!==o&&ug(o,{silentJSONParsing:up.transitional(up.boolean),forcedJSONParsing:up.transitional(up.boolean),clarifyTimeoutError:up.transitional(up.boolean),legacyInterceptorReqResOrdering:up.transitional(up.boolean),advertiseZstdAcceptEncoding:up.transitional(up.boolean),validateStatusUndefinedResolves:up.transitional(up.boolean)},!1),null!=r&&(dn.isFunction(r)?t.paramsSerializer={serialize:r}:ug(r,{encode:up.function,serialize:up.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),ug(t,{baseUrl:up.spelling("baseURL"),withXsrfToken:up.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&dn.merge(a.common,a[t.method]);a&&dn.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete a[e]}),t.headers=df.concat(s,a);let l=[],c=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;c=c&&e.synchronous;let n=t.transitional||dA;n&&n.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let d=[];this.interceptors.response.forEach(function(e){d.push(e.fulfilled,e.rejected)});let u=0;if(!c){let e=[uh.bind(this),void 0];for(e.unshift(...l),e.push(...d),i=e.length,n=Promise.resolve(t);u<i;)n=n.then(e[u++],e[u++]);return n}i=l.length;let m=t;for(;u<i;){let e=l[u++],t=l[u++];try{m=e(m)}catch(e){t.call(this,e);break}}try{n=uh.call(this,m)}catch(e){return Promise.reject(e)}for(u=0,i=d.length;u<i;)n=n.then(d[u++],d[u++]);return n}getUri(e){return dE(d1((e=d5(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls,e),e.params,e.paramsSerializer)}}dn.forEach(["delete","get","head","options"],function(e){uv.prototype[e]=function(t,n){return this.request(d5(n||{},{method:e,url:t,data:n&&dn.hasOwnProp(n,"data")?n.data:void 0}))}}),dn.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,i,o){return this.request(d5(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}uv.prototype[e]=t(),"query"!==e&&(uv.prototype[e+"Form"]=t(!0))});let uy=class e{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,i=new Promise(e=>{n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e,i,o){n.reason||(n.reason=new dH(e,i,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let t;return{token:new e(function(e){t=e}),cancel:t}}},u_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(u_).forEach(([e,t])=>{u_[t]=e});let uw=function e(t){let n=new uv(t),i=cx(uv.prototype.request,n);return dn.extend(i,uv.prototype,n,{allOwnKeys:!0}),dn.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(d5(t,n))},i}(dj);uw.Axios=uv,uw.CanceledError=dH,uw.CancelToken=uy,uw.isCancel=dU,uw.VERSION="1.18.1",uw.toFormData=d_,uw.AxiosError=dp,uw.Cancel=uw.CanceledError,uw.all=function(e){return Promise.all(e)},uw.spread=function(e){return function(t){return e.apply(null,t)}},uw.isAxiosError=function(e){return dn.isObject(e)&&!0===e.isAxiosError},uw.mergeConfig=d5,uw.AxiosHeaders=df,uw.formToJSON=e=>dB(dn.isHTMLForm(e)?new FormData(e):e),uw.getAdapter=um,uw.HttpStatusCode=u_,uw.default=uw;class uF{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uV`dashboard`,data:e,options:t})}update(e,t){return this.httpClient.request({method:"PUT",url:uV`dashboard`,data:e,options:t})}getAllRealmDashboards(e,t){return this.httpClient.request({method:"GET",url:uV`dashboard/all/${e}`,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uV`dashboard/query`,data:e,options:t})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`dashboard/${e}/${t}`,options:n})}get(e,t,n){return this.httpClient.request({method:"GET",url:uV`dashboard/${e}/${t}`,options:n})}}class ux{constructor(e){this.httpClient=e}doProtocolAssetDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uV`agent/assetDiscovery/${e}`,queryParams:t,options:n})}doProtocolAssetImport(e,t,n,i){return this.httpClient.request({method:"POST",url:uV`agent/assetImport/${e}`,queryParams:n,data:t,options:i})}doProtocolInstanceDiscovery(e,t,n){return this.httpClient.request({method:"GET",url:uV`agent/instanceDiscovery/${e}`,queryParams:t,options:n})}}class uk{constructor(e){this.httpClient=e}getApps(e){return this.httpClient.request({method:"GET",url:uV`apps`,options:e})}getConsoleConfig(e){return this.httpClient.request({method:"GET",url:uV`apps/consoleConfig`,options:e})}getAppInfos(e){return this.httpClient.request({method:"GET",url:uV`apps/info`,options:e})}}class uE{constructor(e){this.httpClient=e}getConfig(e){return this.httpClient.request({method:"GET",url:uV`syslog/config`,options:e})}updateConfig(e,t){return this.httpClient.request({method:"PUT",url:uV`syslog/config`,data:e,options:t})}clearEvents(e){return this.httpClient.request({method:"DELETE",url:uV`syslog/event`,options:e})}getEvents(e,t){return this.httpClient.request({method:"GET",url:uV`syslog/event`,queryParams:e,options:t})}}class uC{constructor(e){this.httpClient=e}createAlarm(e,t,n){return this.httpClient.request({method:"POST",url:uV`alarm`,queryParams:t,data:e,options:n})}getAlarms(e,t){return this.httpClient.request({method:"GET",url:uV`alarm`,queryParams:e,options:t})}removeAlarms(e,t){return this.httpClient.request({method:"DELETE",url:uV`alarm`,data:e,options:t})}setAssetLinks(e,t){return this.httpClient.request({method:"PUT",url:uV`alarm/assets`,data:e,options:t})}getAlarm(e,t){return this.httpClient.request({method:"GET",url:uV`alarm/${e}`,options:t})}removeAlarm(e,t){return this.httpClient.request({method:"DELETE",url:uV`alarm/${e}`,options:t})}updateAlarm(e,t,n){return this.httpClient.request({method:"PUT",url:uV`alarm/${e}`,data:t,options:n})}getAssetLinks(e,t,n){return this.httpClient.request({method:"GET",url:uV`alarm/${e}/assets`,queryParams:t,options:n})}}class uA{constructor(e){this.httpClient=e}getNotifications(e,t){return this.httpClient.request({method:"GET",url:uV`notification`,queryParams:e,options:t})}removeNotifications(e,t){return this.httpClient.request({method:"DELETE",url:uV`notification`,queryParams:e,options:t})}sendNotification(e,t){return this.httpClient.request({method:"POST",url:uV`notification/alert`,data:e,options:t})}getNotificationsCount(e,t){return this.httpClient.request({method:"GET",url:uV`notification/count`,queryParams:e,options:t})}removeNotification(e,t){return this.httpClient.request({method:"DELETE",url:uV`notification/${e}`,options:t})}notificationAcknowledged(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`notification/${e}/acknowledged`,queryParams:n,data:t,options:i})}notificationDelivered(e,t,n){return this.httpClient.request({method:"PUT",url:uV`notification/${e}/delivered`,queryParams:t,options:n})}}class uS{constructor(e){this.httpClient=e}startTunnel(e,t){return this.httpClient.request({method:"POST",url:uV`gateway/tunnel`,data:e,options:t})}stopTunnel(e,t){return this.httpClient.request({method:"DELETE",url:uV`gateway/tunnel`,data:e,options:t})}getAllActiveTunnelInfos(e,t){return this.httpClient.request({method:"GET",url:uV`gateway/tunnel/${e}`,options:t})}getGatewayActiveTunnelInfos(e,t,n){return this.httpClient.request({method:"GET",url:uV`gateway/tunnel/${e}/${t}`,options:n})}getActiveTunnelInfo(e,t,n,i,o){return this.httpClient.request({method:"GET",url:uV`gateway/tunnel/${e}/${t}/${n}/${i}`,options:o})}}class uT{constructor(e){this.httpClient=e}createGlobalRuleset(e,t){return this.httpClient.request({method:"POST",url:uV`rules`,data:e,options:t})}getGlobalRulesets(e,t){return this.httpClient.request({method:"GET",url:uV`rules`,queryParams:e,options:t})}createAssetRuleset(e,t){return this.httpClient.request({method:"POST",url:uV`rules/asset`,data:e,options:t})}getAssetRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uV`rules/asset/for/${e}`,queryParams:t,options:n})}deleteAssetRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uV`rules/asset/${e}`,options:t})}getAssetRuleset(e,t){return this.httpClient.request({method:"GET",url:uV`rules/asset/${e}`,options:t})}updateAssetRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`rules/asset/${e}`,data:t,options:n})}getAssetGeofences(e,t){return this.httpClient.request({method:"GET",url:uV`rules/geofences/${e}`,options:t})}getAssetEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uV`rules/info/asset/${e}`,options:t})}getGlobalEngineInfo(e){return this.httpClient.request({method:"GET",url:uV`rules/info/global`,options:e})}getRealmEngineInfo(e,t){return this.httpClient.request({method:"GET",url:uV`rules/info/realm/${e}`,options:t})}createRealmRuleset(e,t){return this.httpClient.request({method:"POST",url:uV`rules/realm`,data:e,options:t})}getRealmRulesets(e,t,n){return this.httpClient.request({method:"GET",url:uV`rules/realm/for/${e}`,queryParams:t,options:n})}deleteRealmRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uV`rules/realm/${e}`,options:t})}getRealmRuleset(e,t){return this.httpClient.request({method:"GET",url:uV`rules/realm/${e}`,options:t})}updateRealmRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`rules/realm/${e}`,data:t,options:n})}deleteGlobalRuleset(e,t){return this.httpClient.request({method:"DELETE",url:uV`rules/${e}`,options:t})}getGlobalRuleset(e,t){return this.httpClient.request({method:"GET",url:uV`rules/${e}`,options:t})}updateGlobalRuleset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`rules/${e}`,data:t,options:n})}}class uI{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uV`realm`,data:e,options:t})}getAll(e){return this.httpClient.request({method:"GET",url:uV`realm`,options:e})}getAccessible(e){return this.httpClient.request({method:"GET",url:uV`realm/accessible`,options:e})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uV`realm/${e}`,options:t})}get(e,t){return this.httpClient.request({method:"GET",url:uV`realm/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uV`realm/${e}`,data:t,options:n})}}class uO{constructor(e){this.httpClient=e}getManagerConfig(e){return this.httpClient.request({method:"GET",url:uV`configuration/manager`,options:e})}update(e,t){return this.httpClient.request({method:"PUT",url:uV`configuration/manager`,data:e,options:t})}fileUpload(e,t,n){return this.httpClient.request({method:"POST",url:uV`configuration/manager/file`,queryParams:t,data:e,options:n})}getManagerConfigImage(e,t){return this.httpClient.request({method:"GET",url:uV`configuration/manager/image/${e}`,options:t})}}class uR{constructor(e){this.httpClient=e}getServices(e,t){return this.httpClient.request({method:"GET",url:uV`service`,queryParams:e,options:t})}registerService(e,t){return this.httpClient.request({method:"POST",url:uV`service`,data:e,options:t})}getGlobalServices(e){return this.httpClient.request({method:"GET",url:uV`service/global`,options:e})}registerGlobalService(e,t){return this.httpClient.request({method:"POST",url:uV`service/global`,data:e,options:t})}deregisterService(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`service/${e}/${t}`,options:n})}getService(e,t,n){return this.httpClient.request({method:"GET",url:uV`service/${e}/${t}`,options:n})}heartbeat(e,t,n){return this.httpClient.request({method:"PUT",url:uV`service/${e}/${t}`,options:n})}}class uD{constructor(e){this.httpClient=e}updateCurrentUserLocale(e,t){return this.httpClient.request({method:"PUT",url:uV`user/locale`,data:e,options:t})}query(e,t){return this.httpClient.request({method:"POST",url:uV`user/query`,data:e,options:t})}requestPasswordResetCurrent(e){return this.httpClient.request({method:"PUT",url:uV`user/request-password-reset`,options:e})}updatePasswordCurrent(e,t){return this.httpClient.request({method:"PUT",url:uV`user/reset-password`,data:e,options:t})}updateCurrent(e,t){return this.httpClient.request({method:"PUT",url:uV`user/update`,data:e,options:t})}getCurrent(e){return this.httpClient.request({method:"GET",url:uV`user/user`,options:e})}getCurrentUserRealmRoles(e){return this.httpClient.request({method:"GET",url:uV`user/userRealmRoles`,options:e})}getCurrentUserClientRoles(e,t){return this.httpClient.request({method:"GET",url:uV`user/userRoles/${e}`,options:t})}disconnectUserSession(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/disconnect/${t}`,options:n})}requestPasswordReset(e,t,n){return this.httpClient.request({method:"PUT",url:uV`user/${e}/request-password-reset/${t}`,options:n})}updatePassword(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`user/${e}/reset-password/${t}`,data:n,options:i})}resetSecret(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/reset-secret/${t}`,options:n})}updateRoles(e,t,n){return this.httpClient.request({method:"PUT",url:uV`user/${e}/roles`,data:t,options:n})}getUserRealmRoles(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/userRealmRoles/${t}`,options:n})}updateUserRealmRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`user/${e}/userRealmRoles/${t}`,data:n,options:i})}getUserClientRoles(e,t,n,i){return this.httpClient.request({method:"GET",url:uV`user/${e}/userRoles/${t}/${n}`,options:i})}updateUserClientRoles(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uV`user/${e}/userRoles/${t}/${n}`,data:i,options:o})}getUserSessions(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/userSessions/${t}`,options:n})}create(e,t,n){return this.httpClient.request({method:"POST",url:uV`user/${e}/users`,data:t,options:n})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uV`user/${e}/users`,data:t,options:n})}delete(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`user/${e}/users/${t}`,options:n})}getClientRoles(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/${t}/roles`,options:n})}updateClientRoles(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`user/${e}/${t}/roles`,data:n,options:i})}get(e,t,n){return this.httpClient.request({method:"GET",url:uV`user/${e}/${t}`,options:n})}}class u${constructor(e){this.httpClient=e}getPredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uV`asset/predicted/${e}/${t}`,data:n,options:i})}writePredictedDatapoints(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`asset/predicted/${e}/${t}`,data:n,options:i})}}class uL{constructor(e){this.httpClient=e}getAllNodeDefinitions(e){return this.httpClient.request({method:"GET",url:uV`flow`,options:e})}getNodeDefinition(e,t){return this.httpClient.request({method:"GET",url:uV`flow/${e}`,options:t})}getAllNodeDefinitionsByType(e,t){return this.httpClient.request({method:"GET",url:uV`flow/${e}`,options:t})}}class uM{constructor(e){this.httpClient=e}deleteConnections(e,t){return this.httpClient.request({method:"DELETE",url:uV`gateway/connection`,queryParams:e,options:t})}getConnections(e){return this.httpClient.request({method:"GET",url:uV`gateway/connection`,options:e})}deleteConnection(e,t){return this.httpClient.request({method:"DELETE",url:uV`gateway/connection/${e}`,options:t})}getConnection(e,t){return this.httpClient.request({method:"GET",url:uV`gateway/connection/${e}`,options:t})}setConnection(e,t,n){return this.httpClient.request({method:"PUT",url:uV`gateway/connection/${e}`,data:t,options:n})}getConnectionStatus(e,t){return this.httpClient.request({method:"GET",url:uV`gateway/status/${e}`,options:t})}}class uN{constructor(e){this.httpClient=e}register(e,t){return this.httpClient.request({method:"POST",url:uV`console/register`,data:e,options:t})}}class uB{constructor(e){this.httpClient=e}getAssetDescriptors(e,t){return this.httpClient.request({method:"GET",url:uV`model/assetDescriptors`,queryParams:e,options:t})}getAssetInfo(e,t,n){return this.httpClient.request({method:"GET",url:uV`model/assetInfo/${e}`,queryParams:t,options:n})}getAssetInfos(e,t){return this.httpClient.request({method:"GET",url:uV`model/assetInfos`,queryParams:e,options:t})}getValueDescriptorSchema(e,t){return this.httpClient.request({method:"GET",url:uV`model/getValueDescriptorSchema`,queryParams:e,options:t})}getMetaItemDescriptors(e,t){return this.httpClient.request({method:"GET",url:uV`model/metaItemDescriptors`,queryParams:e,options:t})}getValueDescriptors(e,t){return this.httpClient.request({method:"GET",url:uV`model/valueDescriptors`,queryParams:e,options:t})}}class uP{constructor(e){this.httpClient=e}getHealthStatus(e){return this.httpClient.request({method:"GET",url:uV`health`,options:e})}getInfo(e){return this.httpClient.request({method:"GET",url:uV`info`,options:e})}}class uj{constructor(e){this.httpClient=e}create(e,t){return this.httpClient.request({method:"POST",url:uV`asset`,data:e,options:t})}delete(e,t){return this.httpClient.request({method:"DELETE",url:uV`asset`,queryParams:e,options:t})}writeAttributeValues(e,t){return this.httpClient.request({method:"PUT",url:uV`asset/attributes`,data:e,options:t})}writeAttributeEvents(e,t){return this.httpClient.request({method:"PUT",url:uV`asset/attributes/timestamp`,data:e,options:t})}queryCount(e,t){return this.httpClient.request({method:"POST",url:uV`asset/count`,data:e,options:t})}updateNoneParent(e,t){return this.httpClient.request({method:"DELETE",url:uV`asset/parent`,queryParams:e,options:t})}getPartial(e,t){return this.httpClient.request({method:"GET",url:uV`asset/partial/${e}`,options:t})}queryAssets(e,t){return this.httpClient.request({method:"POST",url:uV`asset/query`,data:e,options:t})}queryAssetTree(e,t){return this.httpClient.request({method:"POST",url:uV`asset/tree`,data:e,options:t})}getCurrentUserAssets(e){return this.httpClient.request({method:"GET",url:uV`asset/user/current`,options:e})}createUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uV`asset/user/link`,data:e,options:t})}getUserAssetLinks(e,t){return this.httpClient.request({method:"GET",url:uV`asset/user/link`,queryParams:e,options:t})}deleteUserAssetLinks(e,t){return this.httpClient.request({method:"POST",url:uV`asset/user/link/delete`,data:e,options:t})}deleteAllUserAssetLinks(e,t,n){return this.httpClient.request({method:"DELETE",url:uV`asset/user/link/${e}/${t}`,options:n})}deleteUserAssetLink(e,t,n,i){return this.httpClient.request({method:"DELETE",url:uV`asset/user/link/${e}/${t}/${n}`,options:i})}get(e,t){return this.httpClient.request({method:"GET",url:uV`asset/${e}`,options:t})}update(e,t,n){return this.httpClient.request({method:"PUT",url:uV`asset/${e}`,data:t,options:n})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(e,t,n,i){return this.httpClient.request({method:"PUT",url:uV`asset/${e}/attribute/${t}`,data:n,options:i})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(e,t,n,i,o){return this.httpClient.request({method:"PUT",url:uV`asset/${e}/attribute/${t}/${n}`,data:i,options:o})}updateParent(e,t,n){return this.httpClient.request({method:"PUT",url:uV`asset/${e}/child`,queryParams:t,options:n})}}class uz{constructor(e){this.httpClient=e}createProvisioningConfig(e,t){return this.httpClient.request({method:"POST",url:uV`provisioning`,data:e,options:t})}getProvisioningConfigs(e){return this.httpClient.request({method:"GET",url:uV`provisioning`,options:e})}deleteProvisioningConfig(e,t){return this.httpClient.request({method:"DELETE",url:uV`provisioning/${e}`,options:t})}updateProvisioningConfig(e,t,n){return this.httpClient.request({method:"PUT",url:uV`provisioning/${e}`,data:t,options:n})}}class uU{constructor(e){this.httpClient=e}getDatapointExport(e,t){return this.httpClient.request({method:"GET",url:uV`asset/datapoint/export`,queryParams:e,options:t})}getDatapointPeriod(e,t){return this.httpClient.request({method:"GET",url:uV`asset/datapoint/periods`,queryParams:e,options:t})}getDatapoints(e,t,n,i){return this.httpClient.request({method:"POST",url:uV`asset/datapoint/${e}/${t}`,data:n,options:i})}}class uH{constructor(e){this.httpClient=e}getSettings(e){return this.httpClient.request({method:"GET",url:uV`map`,options:e})}saveSettings(e,t){return this.httpClient.request({method:"PUT",url:uV`map`,data:e,options:t})}deleteMap(e){return this.httpClient.request({method:"DELETE",url:uV`map/deleteMap`,options:e})}getCustomMapInfo(e){return this.httpClient.request({method:"GET",url:uV`map/getCustomMapInfo`,options:e})}getTile(e,t,n,i){return this.httpClient.request({method:"GET",url:uV`map/tile/${e}/${t}/${n}`,options:i})}uploadMap(e,t){return this.httpClient.request({method:"POST",url:uV`map/upload`,queryParams:e,options:t})}}function uV(e,...t){let n="";for(let i=0;i<t.length;i++)n+=e[i],n+=encodeURIComponent(t[i]);return n+e[e.length-1]}class uW{constructor(e,t=uw.create()){this._dashboardResource=new uq(e,t),this._agentResource=new uY(e,t),this._appResource=new uK(e,t),this._syslogResource=new uX(e,t),this._alarmResource=new uJ(e,t),this._notificationResource=new uQ(e,t),this._gatewayServiceResource=new uZ(e,t),this._rulesResource=new u0(e,t),this._realmResource=new u1(e,t),this._configurationResource=new u2(e,t),this._externalServiceResource=new u5(e,t),this._userResource=new u4(e,t),this._assetPredictedDatapointResource=new u3(e,t),this._flowResource=new u6(e,t),this._gatewayClientResource=new u8(e,t),this._consoleResource=new u7(e,t),this._assetModelResource=new u9(e,t),this._statusResource=new me(e,t),this._assetResource=new mt(e,t),this._provisioningResource=new mn(e,t),this._assetDatapointResource=new mi(e,t),this._mapResource=new mo(e,t),this._assetResource=new mt(e,t)}get DashboardResource(){return this._dashboardResource}get AgentResource(){return this._agentResource}get AppResource(){return this._appResource}get SyslogResource(){return this._syslogResource}get AlarmResource(){return this._alarmResource}get NotificationResource(){return this._notificationResource}get GatewayServiceResource(){return this._gatewayServiceResource}get RulesResource(){return this._rulesResource}get RealmResource(){return this._realmResource}get ConfigurationResource(){return this._configurationResource}get ExternalServiceResource(){return this._externalServiceResource}get UserResource(){return this._userResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get FlowResource(){return this._flowResource}get GatewayClientResource(){return this._gatewayClientResource}get ConsoleResource(){return this._consoleResource}get AssetModelResource(){return this._assetModelResource}get StatusResource(){return this._statusResource}get AssetResource(){return this._assetResource}get ProvisioningResource(){return this._provisioningResource}get AssetDatapointResource(){return this._assetDatapointResource}get MapResource(){return this._mapResource}}class uG{constructor(e){this.axios=e}request(e){let t={};t.method=e.method,t.url=e.url,t.params=e.queryParams,t.data=e.data,function(e,t){if(void 0!=t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}(t,e.options);let n=e.copyFn;return this.axios.request(t).then(e=>(n&&e.data&&(e.originalData=e.data,e.data=n(e.data)),e))}}class uq extends uF{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uY extends ux{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uK extends uk{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uX extends uE{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uJ extends uC{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uQ extends uA{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class uZ extends uS{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u0 extends uT{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u1 extends uI{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u2 extends uO{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u5 extends uR{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u4 extends uD{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u3 extends u${constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u6 extends uL{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u8 extends uM{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u7 extends uN{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class u9 extends uB{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class me extends uP{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mt extends uj{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mn extends uz{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mi extends uU{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}class mo extends uH{constructor(e,t=uw.create()){t.defaults.baseURL=e,super(new uG(t))}}var mr=n(8183),ma=n.n(mr);uw.isAxiosError;let ms=new class{get api(){return this._client}constructor(){this._axiosInstance=uw.create(),this._axiosInstance.defaults.headers.common["Content-Type"]="application/json",this._axiosInstance.interceptors.request.use(e=>(e.paramsSerializer=e=>ma().stringify(e,{arrayFormat:"repeat"}),e))}get axiosInstance(){return this._axiosInstance}get baseUrl(){return this._baseUrl}setTimeout(e){this._axiosInstance.defaults.timeout=e}addRequestInterceptor(e){this._axiosInstance.interceptors.request.use(e)}initialise(e){this._baseUrl=e,this._client=new uW(e,this._axiosInstance)}};var ml=function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function a(e){try{l(i.next(e))}catch(e){r(e)}}function s(e){try{l(i.throw(e))}catch(e){r(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((i=i.apply(e,t||[])).next())})};(gK=ye||(ye={})).DISCONNECTED="DISCONNECTED",gK.CONNECTED="CONNECTED",gK.CONNECTING="CONNECTING";let mc="SUBSCRIBED:",md="UNAUTHORIZED:",mu="TRIGGERED:",mm="EVENT:";class mf{constructor(){this._disconnectRequested=!1,this._reconnectDelayMillis=mh.MIN_RECONNECT_DELAY,this._reconnectTimer=null,this._status=ye.DISCONNECTED,this._connectingDeferred=null,this._statusCallbacks=[],this._pendingSubscription=null,this._queuedSubscriptions=[],this._subscriptionMap=new Map,this._assetEventCallbackMap=new Map,this._attributeEventCallbackMap=new Map,this._unloading=!1}get status(){return this._status}subscribeStatusChange(e){this._statusCallbacks.push(e)}unsubscribeStatusChange(e){!function(e,t){if(0===e.length)return;let n=e.indexOf(t);n>=0&&e.splice(n,1)}(this._statusCallbacks,e)}connect(){return(console.debug("Attempting to connect to events:",this.endpointUrl),this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this._status===ye.CONNECTED)?(console.debug("Already connected to events!"),Promise.resolve(!0)):((this._disconnectRequested=!1,this._connectingDeferred)?console.warn("Already connecting to events, continuing the previous one."):(this._onStatusChanged(ye.CONNECTING),this._connectingDeferred=new cb,this._doConnect().then(e=>{if(this._connectingDeferred){let t=this._connectingDeferred;e?(console.debug("Connected to event service: "+this.endpointUrl),this._reconnectDelayMillis=mh.MIN_RECONNECT_DELAY,this._onStatusChanged(ye.CONNECTED),window.setTimeout(()=>{this._onConnect()},0)):console.debug("Failed to connect to event service: "+this.endpointUrl),t.resolve(e)}}).finally(()=>{this._connectingDeferred=null})),this._connectingDeferred.promise)}disconnect(){console.debug("Disconnecting from event service: "+this.endpointUrl),this._disconnectRequested||(this._disconnectRequested=!0,this._reconnectTimer&&(window.clearTimeout(this._reconnectTimer),this._reconnectTimer=null),this.status!==ye.DISCONNECTED&&this._doDisconnect())}subscribe(e,t){let n={eventSubscription:e,callback:t,deferred:new cb};return null!=this._pendingSubscription||this._status!==ye.CONNECTED?(this._queuedSubscriptions.push(n),n.deferred.promise):(this._pendingSubscription=n,this._doSubscribe(e).then(e=>{if(this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._subscriptionMap.set(e,t),this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.resolve(e)}},e=>{if(console.error(e),this._pendingSubscription){let t=this._pendingSubscription;this._pendingSubscription=null,this._processNextSubscription();let n=t.deferred;t.deferred=null,n&&n.reject(e)}}),this._pendingSubscription.deferred.promise)}unsubscribe(e){return ml(this,void 0,void 0,function*(){if(this._subscriptionMap.delete(e))return void this._doUnsubscribe(e);if(this._assetEventCallbackMap.delete(e)){if(this._assetEventPromise&&0===this._assetEventCallbackMap.size){let e=yield this._assetEventPromise;this._assetEventPromise=void 0,this.unsubscribe(e)}return}if(this._attributeEventCallbackMap.delete(e)&&this._attributeEventPromise&&0===this._attributeEventCallbackMap.size){let e=yield this._attributeEventPromise;this._attributeEventPromise=void 0,this.unsubscribe(e)}})}sendEvent(e){this._status===ye.CONNECTED&&this._doSend(e)}sendEventWithReply(e){return this._status!==ye.CONNECTED?Promise.reject("Not connected"):this._doSendWithReply(e)}subscribeAssetEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0]?e.map(e=>e.id):e,o="AssetEvent"+mf._subscriptionCounter++;if(!this._assetEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"asset",filter:e};this._assetEventPromise=this.subscribe(t,e=>{this._assetEventCallbackMap.forEach(t=>t(e))})}return this._assetEventCallbackMap.set(o,e=>{let t=e.asset.id;i?i.find(e=>t===e)&&n(e):e.asset.realm===mJ.displayRealm&&n(e)}),this._assetEventPromise.then(()=>{try{if(i&&t){let e={messageID:"read-assets:"+i.join(",")+":"+o,eventType:"read-assets",assetQuery:{ids:i}};this.sendEventWithReply(e).then(e=>{e.assets&&this._assetEventCallbackMap.has(o)&&e.assets.forEach(e=>{n({eventType:"asset",asset:e,cause:"READ"})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),o&&this.unsubscribe(o),t}return o})})}subscribeAttributeEvents(e,t,n){return ml(this,void 0,void 0,function*(){let i=e&&"string"!=typeof e[0],o=i?e.map(e=>e.id):e,r=i?e:void 0,a="AttributeEvent"+mf._subscriptionCounter++;if(!this._attributeEventPromise){let e;mJ.authenticated||(e={filterType:"asset",realm:mJ.displayRealm});let t={eventType:"attribute",filter:e};this._attributeEventPromise=this.subscribe(t,e=>{this._attributeEventCallbackMap.forEach(t=>t(e))})}let s=t=>{let r=t.ref;i?e.forEach(e=>{r.id===e.id&&r.name===e.name&&n(t)}):o?o.find(e=>r.id===e)&&n(t):t.realm===mJ.displayRealm&&n(t)};return this._attributeEventCallbackMap.set(a,s),this._attributeEventPromise.then(()=>{try{if(t&&o){let e={messageID:"read-assets:"+o.join(",")+":"+a,eventType:"read-assets",assetQuery:{ids:o}};this.sendEventWithReply(e).then(e=>{e.assets&&this._attributeEventCallbackMap.has(a)&&e.assets.forEach(e=>{e.attributes&&Object.entries(e.attributes).forEach(([t,n])=>{(!r||r.find(n=>n.id===e.id&&n.name===t))&&s({eventType:"attribute",timestamp:n.timestamp,value:n.value,ref:{id:e.id,name:t}})})})})}}catch(t){throw console.error("Failed to subscribe to asset events for assets: "+e),a&&this.unsubscribe(a),t}return a})})}_processNextSubscription(){this._status===ye.CONNECTED&&0!==this._queuedSubscriptions.length&&setTimeout(()=>{let e=this._queuedSubscriptions.shift();e&&this.subscribe(e.eventSubscription,e.callback).then(t=>{let n=e.deferred;e.deferred=null,n&&n.resolve(t)},t=>{let n=e.deferred;e.deferred=null,n&&n.reject(t)})},0)}_onStatusChanged(e){e!==this._status&&(console.debug("Event provider status changed: "+e),this._status=e,this._unloading||window.setTimeout(()=>{this._statusCallbacks.forEach(t=>t(e))},0))}_onMessageReceived(e,t){let n=this._subscriptionMap.get(e);n&&n.callback(t)}_onConnect(){if(Object.keys(this._subscriptionMap).length>0){for(let e in this._subscriptionMap)this._subscriptionMap.has(e)&&this._queuedSubscriptions.unshift(this._subscriptionMap.get(e));this._subscriptionMap.clear()}this._processNextSubscription()}_onDisconnect(){this._status===ye.CONNECTED&&this._onStatusChanged(ye.DISCONNECTED),this._pendingSubscription&&(this._queuedSubscriptions.unshift(this._pendingSubscription),this._pendingSubscription=null),this._onStatusChanged(ye.CONNECTING),this._scheduleReconnect()}_scheduleReconnect(){this._reconnectTimer||!this._disconnectRequested&&(console.debug("Event provider scheduling reconnect in "+this._reconnectDelayMillis+"ms"),this._reconnectTimer=window.setTimeout(()=>{this._disconnectRequested||this.connect()},this._reconnectDelayMillis),this._reconnectDelayMillis<mh.MAX_RECONNECT_DELAY&&(this._reconnectDelayMillis=Math.min(mh.MAX_RECONNECT_DELAY,this._reconnectDelayMillis+3e3)))}}mf.MIN_RECONNECT_DELAY=0,mf.MAX_RECONNECT_DELAY=3e4,mf._subscriptionCounter=0;class mh extends mf{get endpointUrl(){return this._endpointUrl}constructor(e){super(),this._webSocket=void 0,this._connectDeferred=null,this._subscribeDeferred=null,this._repliesDeferred=new Map,this._endpointUrl=(e.startsWith("https:")?"wss":"ws")+"://"+e.substr(e.indexOf("://")+3)+"/websocket/events",window.addEventListener("beforeunload",()=>{this._unloading=!0,this.disconnect()})}_doConnect(){let e=this._endpointUrl+"?Realm="+mJ.config.realm;return this._connectDeferred=new cb,(mJ.authenticated?mJ.retrieveAuthorizationHeader().then(t=>{e+="&Authorization="+t}):Promise.resolve()).finally(()=>{this._webSocket=new WebSocket(e),this._webSocket.onopen=e=>{if(this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!0)}},this._webSocket.onerror=e=>{if(console.error("Event provider error:",e),this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onclose=()=>{if(console.warn("The WebSocket connection of the event provider has been closed."),this._webSocket=void 0,this._connectDeferred){let e=this._connectDeferred;this._connectDeferred=null,e.resolve(!1)}else this._beforeDisconnect()},this._webSocket.onmessage=e=>{let t=e.data;if(t&&t.startsWith(mc)){let e=JSON.parse(t.substring(mc.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&n.resolve(e.subscriptionId)}else if(t.startsWith(md)){let e=JSON.parse(t.substring(md.length)),n=this._subscribeDeferred;this._subscribeDeferred=null,n&&(console.warn("Unauthorized event subscription: "+JSON.stringify(e,null,2)),n.reject("Unauthorized"))}else if(t.startsWith(mu)){let e=JSON.parse(t.substring(mu.length));e.events&&e.events.forEach(t=>{this._onMessageReceived(e.subscriptionId,t)})}else if(t.startsWith(mm)){let e=JSON.parse(t.substring(mm.length));if(e.messageID){let t=this._repliesDeferred.get(e.messageID);this._repliesDeferred.delete(e.messageID),t&&t.resolve(e)}}}}),this._connectDeferred.promise}_beforeDisconnect(){this._onDisconnect()}_doDisconnect(){var e;null==(e=this._webSocket)||e.close(),this._subscribeDeferred=null,this._repliesDeferred.clear()}_doSubscribe(e){return this._webSocket?this._subscribeDeferred?Promise.reject("There's already a pending subscription"):(this._subscribeDeferred=new cb,e.subscriptionId||(e.subscriptionId=mh._subscriptionCounter+++""),this._webSocket.send("SUBSCRIBE:"+JSON.stringify(e)),this._subscribeDeferred.promise):Promise.reject("Not connected")}_doUnsubscribe(e){this._webSocket&&this._webSocket.send("UNSUBSCRIBE:"+JSON.stringify({subscriptionId:e}))}_doSend(e){let t=mm+JSON.stringify(e);this._webSocket.send(t)}_doSendWithReply(e){if(e.messageID||(e.messageID=(new Date().getTime()+10*Math.random()).toString(10)),this._repliesDeferred.has(e.messageID))return Promise.reject("There's already a pending send and reply with this ID");let t=new cb;return this._repliesDeferred.set(e.messageID,t),this._webSocket.send(mm+JSON.stringify(e)),t.promise}}mh._subscriptionCounter=1;let mp=["__proto__","constructor","prototype"];function mb(e){return!("string"!=typeof e||0===e.length||e.length>128||mp.indexOf(e)>-1||e.indexOf("..")>-1||e.indexOf("\\")>-1||/[?#%\s@]/.test(e)||/[\x00-\x1F\x7F]/.test(e))}function mg(e){return!(!mb(e)||e.indexOf("/")>-1)}let mv={lng:mg,ns:function(e){return mb(e)}};function my(e){return"string"!=typeof e?e:e.replace(/[\r\n\x00-\x1F\x7F]/g," ")}function m_(){return"function"==typeof XMLHttpRequest||"object"==typeof XMLHttpRequest}let mw=/\{\{(.+?)\}\}/g;function mF(e,t){let n=!1,i=e.replace(mw,(e,i)=>{let o=i.trim();if(mp.indexOf(o)>-1)return e;let r=t[o];if(null==r)return e;let a=mv[o]||mg,s=String(r).split("+");for(let t of s)if(!a(t))return n=!0,e;return s.join("+")});return n?null:i}let mx="u">typeof globalThis?globalThis:"u">typeof global?global:"u">typeof window?window:void 0;"function"==typeof fetch?e=fetch:mx&&"function"==typeof mx.fetch&&(e=mx.fetch);let mk=m_()&&mx?mx.XMLHttpRequest:void 0,mE="function"==typeof ActiveXObject&&mx?mx.ActiveXObject:void 0,mC=["__proto__","constructor","prototype"],mA=(e,t)=>{if(t&&"object"==typeof t){let n="";for(let e of Object.keys(t))mC.indexOf(e)>-1||(n+="&"+encodeURIComponent(e)+"="+encodeURIComponent(t[e]));if(!n)return e;e=e+(-1!==e.indexOf("?")?"&":"?")+n.slice(1)}return e},mS=(t,n,i,o)=>{let r=e=>{if(!e.ok)return i(e.statusText||"Error",{status:e.status});e.text().then(t=>{i(null,{status:e.status,data:t})}).catch(i)};if(o){let e=o(t,n);if(e instanceof Promise)return void e.then(r).catch(i)}"function"==typeof fetch?fetch(t,n).then(r).catch(i):e(t,n).then(r).catch(i)},mT=(t,n,i,o)=>{if("function"==typeof i&&(o=i,i=void 0),o=o||(()=>{}),e&&0!==n.indexOf("file:")){var r=n,a=i,s=o;t.queryStringParams&&(r=mA(r,t.queryStringParams));let e={..."function"==typeof t.customHeaders?t.customHeaders():t.customHeaders};"u"<typeof window&&"u">typeof global&&void 0!==global.process&&global.process.versions&&global.process.versions.node&&(e["User-Agent"]=`i18next-http-backend (node/${global.process.version}; ${global.process.platform} ${global.process.arch})`),a&&(e["Content-Type"]="application/json");let l="function"==typeof t.requestOptions?t.requestOptions(a):t.requestOptions,c={method:a?"POST":"GET",body:a?t.stringify(a):void 0,headers:e,...t._omitFetchOptions?{}:l},d="function"==typeof t.alternateFetch&&t.alternateFetch.length>=1?t.alternateFetch:void 0;try{mS(r,c,s,d)}catch(e){if(!l||0===Object.keys(l).length||!e.message||0>e.message.indexOf("not implemented"))return s(e);try{Object.keys(l).forEach(e=>{delete c[e]}),mS(r,c,s,d),t._omitFetchOptions=!0}catch(e){s(e)}}return}if(m_()||"function"==typeof ActiveXObject){var l=n,c=i,d=o;c&&"object"==typeof c&&(c=mA("",c).slice(1)),t.queryStringParams&&(l=mA(l,t.queryStringParams));try{let e=mk?new mk:new mE("MSXML2.XMLHTTP.3.0");e.open(c?"POST":"GET",l,1),t.crossDomain||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=!!t.withCredentials,c&&e.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),e.overrideMimeType&&e.overrideMimeType("application/json");let n=t.customHeaders;if(n="function"==typeof n?n():n)for(let t of Object.keys(n))mC.indexOf(t)>-1||e.setRequestHeader(t,n[t]);e.onreadystatechange=()=>{e.readyState>3&&d(e.status>=400?e.statusText:null,{status:e.status,data:e.responseText})},e.send(c)}catch(e){console&&console.log(e)}return}o(Error("No fetch and no xhr implementation found!"))};var mI=class{constructor(e,t={},n={}){this.services=e,this.options=t,this.allOptions=n,this.type="backend",this.init(e,t,n)}init(e,t={},n={}){if(this.services=e,this.options={...{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",parse:e=>JSON.parse(e),stringify:JSON.stringify,parsePayload:(e,t,n)=>({[t]:n||""}),parseLoadPayload:(e,t)=>void 0,request:mT,reloadInterval:"u"<typeof window&&36e5,customHeaders:{},queryStringParams:{},crossDomain:!1,withCredentials:!1,overrideMimeType:!1,requestOptions:{mode:"cors",credentials:"same-origin",cache:"default"}},...this.options||{},...t},this.allOptions=n,this.services&&this.options.reloadInterval){let e=setInterval(()=>this.reload(),this.options.reloadInterval);"object"==typeof e&&"function"==typeof e.unref&&e.unref()}}readMulti(e,t,n){this._readAny(e,e,t,t,n)}read(e,t,n){this._readAny([e],e,[t],t,n)}_readAny(e,t,n,i,o){var r,a;let s=this.options.loadPath;"function"==typeof this.options.loadPath&&(s=this.options.loadPath(e,n)),(s=(a=r=s)&&"function"==typeof a.then?r:Promise.resolve(r)).then(r=>{if(!r)return o(null,{});let a=mF(r,{lng:e.join("+"),ns:n.join("+")});if(null==a)return o(Error("i18next-http-backend: unsafe lng/ns value — refusing to build request URL for languages=["+e.map(my).join(", ")+"] namespaces=["+n.map(my).join(", ")+"]"),!1);this.loadUrl(a,o,t,i)})}loadUrl(e,t,n,i){let o=this.options.parseLoadPayload("string"==typeof n?[n]:n,"string"==typeof i?[i]:i),r=my(function(e){if("string"!=typeof e||0===e.length)return e;try{let t=new URL(e);if(t.username||t.password)return t.username="",t.password="",t.toString();return e}catch(t){return e.replace(/(\/\/)[^/@\s]+@/g,"$1")}}(e));this.options.request(this.options,e,o,(e,o)=>{let a,s;if(o&&(o.status>=500&&o.status<600||!o.status))return t("failed loading "+r+"; status code: "+o.status,!0);if(o&&o.status>=400&&o.status<500)return t("failed loading "+r+"; status code: "+o.status,!1);if(!o&&e&&e.message){let n=e.message.toLowerCase();if(["failed","fetch","network","load"].find(e=>n.indexOf(e)>-1))return t("failed loading "+r+": "+my(e.message),!0)}if(e)return t(e,!1);try{a="string"==typeof o.data?this.options.parse(o.data,n,i):o.data}catch(e){s="failed parsing "+r+" to json"}if(s)return t(s,!1);t(null,a)})}create(e,t,n,i,o){if(!this.options.addPath)return;"string"==typeof e&&(e=[e]);let r=this.options.parsePayload(t,n,i),a=0,s=[],l=[];e.forEach(n=>{let i=this.options.addPath;"function"==typeof this.options.addPath&&(i=this.options.addPath(n,t));let c=mF(i,{lng:n,ns:t});if(null==c){a+=1,o&&a===e.length&&o(s,l);return}this.options.request(this.options,c,r,(t,n)=>{a+=1,s.push(t),l.push(n),a===e.length&&"function"==typeof o&&o(s,l)})})}reload(){let{backendConnector:e,languageUtils:t,logger:n}=this.services,i=e.language;if(i&&"cimode"===i.toLowerCase())return;let o=[],r=e=>{t.toResolveHierarchy(e).forEach(e=>{0>o.indexOf(e)&&o.push(e)})};r(i),this.allOptions.preload&&this.allOptions.preload.forEach(e=>r(e)),o.forEach(t=>{this.allOptions.ns.forEach(i=>{e.read(t,i,"read",null,null,(o,r)=>{o&&n.warn(`loading namespace ${i} for language ${t} failed`,o),!o&&r&&n.log(`loaded namespace ${i} for language ${t}`,r),e.loaded(`${t}|${i}`,o,r)})})})}};mI.type="backend";class mO extends ry{constructor(e){if(super(e),this.it=en,2!==e.type)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===en||null==e)return this._t=void 0,this.it=e;if(e===et)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}mO.directiveName="unsafeHTML",mO.resultType=1,rv(mO);class mR extends mO{}mR.directiveName="unsafeSVG",mR.resultType=2;let mD=rv(mR),m$={logo:'<path style=\'pointer-events: var(--or-icon-pointer-events, none);\' fill="#C4D600" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#4E9D2D" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#1D5632"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-grayscale":'<path fill="#e2e2e2" d="m11.96125,23.85096c-6.56773,0 -11.90971,-5.34202 -11.90971,-11.90862l2.49411,0c0,5.19176 4.22389,9.41568 9.41561,9.41568c5.19053,0 9.41561,-4.22392 9.41561,-9.41568c0,-5.19176 -4.22389,-9.41568 -9.41561,-9.41568l0,-2.49413c6.56655,0 11.90971,5.34439 11.90971,11.9098c0,6.5666 -5.34316,11.90862 -11.90971,11.90862l0,0z" /><path fill="#bcbcbc" d="m10.25094,20.38647c-2.26848,-0.47231 -4.21822,-1.80199 -5.48741,-3.74009s-1.70892,-4.25777 -1.23545,-6.52625c0.47347,-2.26965 1.80315,-4.21822 3.74242,-5.48857c1.93926,-1.27035 4.25661,-1.70892 6.52625,-1.23545c4.68471,0.97719 7.70121,5.5828 6.72286,10.26635l-2.39994,-0.49907c0.70149,-3.36085 -1.4623,-6.66585 -4.82431,-7.36734c-1.62866,-0.33969 -3.29105,-0.02559 -4.68238,0.88645c-1.39134,0.91088 -2.34526,2.3092 -2.68495,3.93786c-0.33853,1.62633 -0.02443,3.28988 0.88645,4.68122c0.91088,1.39134 2.3092,2.34526 3.93786,2.68379l-0.50139,2.4011l0,0z"/><path fill="#8f8f8f"d="m12.03064,17.49616c-0.09524,0 -0.19048,-0.00116 -0.28457,-0.00465c-1.49833,-0.0755 -2.87818,-0.72942 -3.88636,-1.84097c-1.00818,-1.11271 -1.52156,-2.54948 -1.44722,-4.05013l2.44378,0.12196c-0.04181,0.84557 0.24856,1.65745 0.81769,2.28466c0.56681,0.62721 1.34733,0.99656 2.1929,1.03838c0.84208,0.03833 1.65629,-0.2474 2.2835,-0.81653c0.62837,-0.56797 0.99656,-1.34617 1.03954,-2.19174c0.08711,-1.74573 -1.26371,-3.23708 -3.00943,-3.3242l0.12196,-2.44378c3.09422,0.15332 5.4869,2.79455 5.33358,5.88877c-0.07434,1.49949 -0.72942,2.87818 -1.84097,3.8852c-1.04186,0.94313 -2.36945,1.45303 -3.7644,1.45303l0,0z"/>',"logo-plain":"m11.9925,23.91349c-6.58498,0 -11.94099,-5.35605 -11.94099,-11.9399l2.50066,0c0,5.20539 4.23498,9.44041 9.44033,9.44041c5.20416,0 9.44033,-4.23502 9.44033,-9.44041c0,-5.20539 -4.23498,-9.44041 -9.44033,-9.44041l0,-2.50068c6.5838,0 11.94099,5.35842 11.94099,11.94108c0,6.58385 -5.35719,11.9399 -11.94099,11.9399l0,0zm-1.80787,-3.27769c-2.31323,-0.48163 -4.30141,-1.83755 -5.59563,-3.81389s-1.74263,-4.34178 -1.25982,-6.65502c0.48281,-2.31443 1.83872,-4.30145 3.81623,-5.59686c1.97751,-1.29542 4.34056,-1.74264 6.65497,-1.25983c4.77711,0.99647 7.8531,5.69295 6.85545,10.46891l-2.44727,-0.50891c0.71532,-3.42716 -1.49114,-6.79738 -4.91946,-7.5127c-1.66078,-0.34639 -3.35596,-0.0261 -4.77474,0.90394c-1.41878,0.92886 -2.39152,2.35476 -2.73791,4.01555c-0.3452,1.65842 -0.02491,3.3548 0.90394,4.77359c0.92885,1.41879 2.35475,2.39154 4.01552,2.73675l-0.51128,2.44848l0,0zm1.81499,-2.92536c-0.09727,0 -0.19455,-0.00119 -0.29064,-0.00475c-1.53029,-0.07711 -2.93958,-0.74498 -3.96926,-1.88025c-1.02968,-1.13646 -1.55401,-2.60388 -1.47809,-4.13655l2.49591,0.12456c-0.04271,0.86361 0.25386,1.69282 0.83513,2.33341c0.5789,0.64059 1.37607,1.01783 2.23968,1.06053c0.86005,0.03915 1.69162,-0.25268 2.33221,-0.83395c0.64177,-0.58009 1.01782,-1.3749 1.06171,-2.23851c0.08897,-1.78298 -1.29066,-3.30616 -3.07362,-3.39513l0.12456,-2.49593c3.16022,0.15659 5.60394,2.85419 5.44735,6.01443c-0.07592,1.53149 -0.74498,2.9396 -1.88024,3.9681c-1.06408,0.96326 -2.41999,1.48403 -3.8447,1.48403l0,0z",marker:'<ellipse fill="#000" opacity="0.2" ry="1.5" rx="4" cy="22.5" cx="12" /><path style=\'pointer-events: var(--or-icon-pointer-events, none);\' d="m11.999999,0a8.437501,8.344057 0 0 1 8.437501,8.344057c0,6.500779 -5.798864,6.280799 -8.437501,14.412461c-2.638637,-8.131662 -8.437501,-7.911683 -8.437501,-14.412461a8.437501,8.344057 0 0 1 8.437501,-8.344057z" />',trash:'<path d="M6 9V19C6 19.5523 6.44772 20 7 20H17C17.5523 20 18 19.5523 18 19V9" stroke="#E21D12" stroke-width="2"/><path d="M14 11L14 16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M10 11V16" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M5 6H8.5H19" stroke="#E21D12" stroke-width="2" stroke-linecap="round"/><path d="M8.09516 4.02871L7 6H17L15.9048 4.02871C15.5521 3.39378 14.8829 3 14.1565 3H9.84347C9.11714 3 8.4479 3.39378 8.09516 4.02871Z" fill="#E21D12"/>',compass:"<path style='fill: rgba(2,3,2,0.94)' d='M11.1679 2.74808C11.5638 2.15434 12.4362 2.15434 12.8321 2.74808L17.3635 9.5453C17.8066 10.2099 17.3302 11.1 16.5315 11.1H7.46852C6.66982 11.1 6.19343 10.2099 6.63647 9.5453L11.1679 2.74808Z'/><path style='fill: rgba(34,38,34,0.26)' d='M12.8321 21.2519C12.4362 21.8457 11.5638 21.8457 11.1679 21.2519L6.63647 14.4547C6.19343 13.7901 6.66982 12.9 7.46852 12.9H16.5315C17.3302 12.9 17.8066 13.7901 17.3635 14.4547L12.8321 21.2519Z'/>"};var mL=function(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(r<3?o(a):r>3?o(t,n,a):o(t,n))||a);return r>3&&a&&Object.defineProperty(t,n,a),a};class mM extends CustomEvent{constructor(){super(mM.NAME,{bubbles:!0,composed:!0})}}mM.NAME="or-iconset-added";let mN=new class{constructor(){this._icons={}}addIconSet(e,t){this._icons[e]=t,this._defaultIconSet||(this._defaultIconSet=t),t.onAdd&&t.onAdd(),window.dispatchEvent(new mM)}getIconSet(e){return this._icons[e]}getIconTemplate(e){if(!e)return ee``;let t=(e||"").split(":"),n=t.pop(),i=t.pop(),o=this._defaultIconSet;return(i&&(o=this.getIconSet(i)),n&&o)?o.getIconTemplate(n):ee``}},mB=class extends eF{constructor(){super(...arguments),this._handler=e=>{this._updateIcon()}}static get styles(){return[g`
17
17
  :host {
18
18
  --internal-or-icon-width: var(--or-icon-width, 24px);
19
19
  --internal-or-icon-height: var(--or-icon-height, 24px);